From 736e28256227a9bd6cff609f02490d09325a120d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Den=20Delimarsky=20=F0=9F=8C=BA?= <53200638+localden@users.noreply.github.com> Date: Fri, 12 Sep 2025 15:20:20 -0700 Subject: [PATCH] Update with check changes --- README.md | 2 +- src/specify_cli/__init__.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 63ebb59..153d1db 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ The `specify` command supports the following options: | Command | Description | |-------------|----------------------------------------------------------------| | `init` | Initialize a new Specify project from the latest template | -| `check` | Check for installed tools (`git`, `claude`, `gemini`) | +| `check` | Check for installed tools (`git`, `claude`, `gemini`, `code`/`code-insiders`, `cursor-agent`) | ### `specify init` Arguments & Options diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.py index 6bf3ea8..d2f29c1 100644 --- a/src/specify_cli/__init__.py +++ b/src/specify_cli/__init__.py @@ -812,8 +812,7 @@ def init( if not check_tool("gemini", "Install from: https://github.com/google-gemini/gemini-cli"): console.print("[red]Error:[/red] Gemini CLI is required for Gemini projects") agent_tool_missing = True - # GitHub Copilot check is not needed as it's typically available in supported IDEs - + if agent_tool_missing: console.print("\n[red]Required AI tool is missing![/red]") console.print("[yellow]Tip:[/yellow] Use --ignore-agent-tools to skip this check") @@ -963,11 +962,18 @@ def check(): tracker.add("git", "Git version control") tracker.add("claude", "Claude Code CLI") tracker.add("gemini", "Gemini CLI") + tracker.add("code", "VS Code (for GitHub Copilot)") + tracker.add("cursor-agent", "Cursor IDE agent (optional)") # Check each tool git_ok = check_tool_for_tracker("git", "https://git-scm.com/downloads", tracker) claude_ok = check_tool_for_tracker("claude", "https://docs.anthropic.com/en/docs/claude-code/setup", tracker) gemini_ok = check_tool_for_tracker("gemini", "https://github.com/google-gemini/gemini-cli", tracker) + # Check for VS Code (code or code-insiders) + code_ok = check_tool_for_tracker("code", "https://code.visualstudio.com/", tracker) + if not code_ok: + code_ok = check_tool_for_tracker("code-insiders", "https://code.visualstudio.com/insiders/", tracker) + cursor_ok = check_tool_for_tracker("cursor-agent", "https://cursor.sh/", tracker) # Render the final tree console.print(tracker.render())