Skip to content

Commit 098380a

Browse files
committed
fix: Skip CLI checks for IDE-based agents in check command
- Add requires_cli field handling to check() command - IDE-based agents (copilot, cursor-agent, windsurf, kilocode, roo) now properly skip CLI checks - Prevents false errors when checking for IDE-integrated agents that don't require CLI tools
1 parent 3b000fc commit 098380a

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/specify_cli/__init__.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,18 +1093,25 @@ def check():
10931093

10941094
tracker.add("git", "Git version control")
10951095
git_ok = check_tool("git", tracker=tracker)
1096-
1096+
10971097
agent_results = {}
10981098
for agent_key, agent_config in AGENT_CONFIG.items():
10991099
agent_name = agent_config["name"]
1100-
1100+
requires_cli = agent_config["requires_cli"]
1101+
11011102
tracker.add(agent_key, agent_name)
1102-
agent_results[agent_key] = check_tool(agent_key, tracker=tracker)
1103-
1103+
1104+
if requires_cli:
1105+
agent_results[agent_key] = check_tool(agent_key, tracker=tracker)
1106+
else:
1107+
# IDE-based agent - skip CLI check and mark as optional
1108+
tracker.skip(agent_key, "IDE-based, no CLI check")
1109+
agent_results[agent_key] = False # Don't count IDE agents as "found"
1110+
11041111
# Check VS Code variants (not in agent config)
11051112
tracker.add("code", "Visual Studio Code")
11061113
code_ok = check_tool("code", tracker=tracker)
1107-
1114+
11081115
tracker.add("code-insiders", "Visual Studio Code Insiders")
11091116
code_insiders_ok = check_tool("code-insiders", tracker=tracker)
11101117

0 commit comments

Comments
 (0)