Skip to content

Commit ed90443

Browse files
committed
Consolidate Cursor naming
1 parent 058ee51 commit ed90443

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ specify init my-project
178178
specify init my-project --ai claude
179179

180180
# Initialize with Cursor support
181-
specify init my-project --ai cursor
181+
specify init my-project --ai cursor-agent
182182

183183
# Initialize with Windsurf support
184184
specify init my-project --ai windsurf

src/specify_cli/__init__.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _github_auth_headers(cli_token: str | None = None) -> dict:
8484
"install_url": "https://github.com/google-gemini/gemini-cli",
8585
"requires_cli": True,
8686
},
87-
"cursor": {
87+
"cursor-agent": {
8888
"name": "Cursor",
8989
"folder": ".cursor/",
9090
"install_url": None, # IDE-based
@@ -789,7 +789,7 @@ def ensure_executable_scripts(project_path: Path, tracker: StepTracker | None =
789789
@app.command()
790790
def init(
791791
project_name: str = typer.Argument(None, help="Name for your new project directory (optional if using --here, or use '.' for current directory)"),
792-
ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor, qwen, opencode, codex, windsurf, kilocode, auggie, codebuddy, or q"),
792+
ai_assistant: str = typer.Option(None, "--ai", help="AI assistant to use: claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, codebuddy, or q"),
793793
script_type: str = typer.Option(None, "--script", help="Script type to use: sh or ps"),
794794
ignore_agent_tools: bool = typer.Option(False, "--ignore-agent-tools", help="Skip checks for AI agent tools like Claude Code"),
795795
no_git: bool = typer.Option(False, "--no-git", help="Skip git repository initialization"),
@@ -904,12 +904,8 @@ def init(
904904
if not ignore_agent_tools:
905905
agent_config = AGENT_CONFIG.get(selected_ai)
906906
if agent_config and agent_config["requires_cli"]:
907-
cli_tool = selected_ai
908-
if selected_ai == "cursor":
909-
cli_tool = "cursor-agent"
910-
911907
install_url = agent_config["install_url"]
912-
if not check_tool(cli_tool, install_url):
908+
if not check_tool(selected_ai, install_url):
913909
error_panel = Panel(
914910
f"[cyan]{selected_ai}[/cyan] not found\n"
915911
f"Install from: [cyan]{install_url}[/cyan]\n"
@@ -1104,13 +1100,9 @@ def check():
11041100
agent_results = {}
11051101
for agent_key, agent_config in AGENT_CONFIG.items():
11061102
agent_name = agent_config["name"]
1107-
# Determine the CLI tool name (usually same as agent key, with exceptions)
1108-
cli_tool = agent_key
1109-
if agent_key == "cursor":
1110-
cli_tool = "cursor-agent"
11111103

1112-
tracker.add(cli_tool, agent_name)
1113-
agent_results[agent_key] = check_tool(cli_tool, tracker=tracker)
1104+
tracker.add(agent_key, agent_name)
1105+
agent_results[agent_key] = check_tool(agent_key, tracker=tracker)
11141106

11151107
# Check VS Code variants (not in agent config)
11161108
tracker.add("code", "Visual Studio Code")

0 commit comments

Comments
 (0)