Skip to content

Commit 70f6ba6

Browse files
fix: add grok-build to should_compile_agents_md and update dispatch test
- Add 'grok-build' to should_compile_agents_md() so compiling for grok-build correctly produces AGENTS.md output - Add 'agents_grok-build', 'commands_grok-build', 'instructions_grok-build' to the expected bucket keys in test_partition_parity_with_old_buckets, reflecting the new target registered in this PR Co-authored-by: sergio-sisternes-epam <207026618+sergio-sisternes-epam@users.noreply.github.com>
1 parent 43de5e2 commit 70f6ba6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/apm_cli/core/target_detection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def should_compile_agents_md(target: CompileTargetType) -> bool:
242242
"""Check if AGENTS.md should be compiled.
243243
244244
AGENTS.md is generated for vscode, cursor, opencode, codex, gemini,
245-
windsurf, kiro, antigravity, hermes, all, and minimal targets.
245+
windsurf, kiro, antigravity, grok-build, hermes, all, and minimal targets.
246246
Gemini needs it because GEMINI.md imports AGENTS.md.
247247
248248
Args:
@@ -261,6 +261,7 @@ def should_compile_agents_md(target: CompileTargetType) -> bool:
261261
"codex",
262262
"gemini",
263263
"antigravity",
264+
"grok-build",
264265
"windsurf",
265266
"kiro",
266267
"hermes",

tests/unit/integration/test_data_driven_dispatch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ def test_partition_parity_with_old_buckets(self):
326326
"rules_claude", # was instructions_claude, aliased
327327
"skills", # cross-target bucket
328328
"hooks", # cross-target bucket
329+
"agents_grok-build",
330+
"commands_grok-build",
331+
"instructions_grok-build",
329332
"prompts_copilot-app", # copilot-app uses dedicated prompts bucket
330333
"canvas_copilot", # canvas extensions (copilot-only, experimental)
331334
}

0 commit comments

Comments
 (0)