mirror of
https://github.com/github/spec-kit.git
synced 2026-07-06 14:01:01 +08:00
refactor: rename forgecode agent key to forge
Aligns with AGENTS.md design principle: "Use the actual CLI tool name as the key, not a shortened version" (AGENTS.md:61-83). The actual CLI executable is 'forge', so the AGENT_CONFIG key should be 'forge' (not 'forgecode'). This follows the same pattern as other agents like cursor-agent and kiro-cli. Changes: - Renamed AGENT_CONFIG key: "forgecode" → "forge" - Removed cli_binary field (no longer needed) - Simplified check_tool() - removed cli_binary lookup logic - Simplified init() and check() - removed display_key mapping - Updated all tests: test_forge_name_field_in_frontmatter - Updated documentation: README.md Code simplification: - Removed 6 lines of workaround code - Removed 1 function parameter (display_key) - Eliminated all special-case logic for forge Note: No backward compatibility needed - forge is a new agent being introduced in this PR.
This commit is contained in:
@@ -331,10 +331,10 @@ build_variant() {
|
||||
iflow)
|
||||
mkdir -p "$base_dir/.iflow/commands"
|
||||
generate_commands iflow md "\$ARGUMENTS" "$base_dir/.iflow/commands" "$script" ;;
|
||||
forgecode)
|
||||
forge)
|
||||
mkdir -p "$base_dir/.forge/commands"
|
||||
generate_commands forgecode md "{{parameters}}" "$base_dir/.forge/commands" "$script" "handoffs"
|
||||
# Inject name field into frontmatter (forgecode requires name + description)
|
||||
generate_commands forge md "{{parameters}}" "$base_dir/.forge/commands" "$script" "handoffs"
|
||||
# Inject name field into frontmatter (forge requires name + description)
|
||||
for _cmd_file in "$base_dir/.forge/commands/"*.md; do
|
||||
[[ -f "$_cmd_file" ]] || continue
|
||||
_cmd_name=$(basename "$_cmd_file" .md)
|
||||
@@ -351,7 +351,7 @@ build_variant() {
|
||||
}
|
||||
|
||||
# Determine agent list
|
||||
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf junie codex kilocode auggie roo codebuddy amp shai tabnine kiro-cli agy bob vibe qodercli kimi trae pi iflow forgecode generic)
|
||||
ALL_AGENTS=(claude gemini copilot cursor-agent qwen opencode windsurf junie codex kilocode auggie roo codebuddy amp shai tabnine kiro-cli agy bob vibe qodercli kimi trae pi iflow forge generic)
|
||||
ALL_SCRIPTS=(sh ps)
|
||||
|
||||
validate_subset() {
|
||||
|
||||
Reference in New Issue
Block a user