Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: address round 5 review comments for agy deprecation
  • Loading branch information
dhilipkumars committed Mar 12, 2026
commit 9d5cb0e2c88938a9833925d74d8e01bf2cbb70c7
6 changes: 6 additions & 0 deletions src/specify_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def _format_rate_limit_error(status_code: int, headers: httpx.Headers, url: str)
"agy": {
"name": "Antigravity",
"folder": ".agent/",
Comment thread
dhilipkumars marked this conversation as resolved.
"commands_subdir": "commands",
"install_url": None, # IDE-based
"requires_cli": False,
},
Expand Down Expand Up @@ -1407,6 +1408,11 @@ def init(
_handle_agy_deprecation(console)
Comment thread
dhilipkumars marked this conversation as resolved.
else:
ai_skills = True
Comment thread
dhilipkumars marked this conversation as resolved.
console.print(
"\n[yellow]Note:[/yellow] 'agy' was selected interactively; "
"enabling [cyan]--ai-skills[/cyan] automatically for compatibility "
"(explicit .agent/commands usage is deprecated)."
)

# Validate --ai-commands-dir usage
if selected_ai == "generic":
Expand Down
3 changes: 3 additions & 0 deletions tests/test_ai_skills.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,9 @@ def _fake_select_with_arrows(*args, **kwargs):
return original_select_with_arrows(*args, **kwargs)

monkeypatch.setattr("specify_cli.select_with_arrows", _fake_select_with_arrows)

# Mock download_and_extract_template to prevent real HTTP downloads during testing
monkeypatch.setattr("specify_cli.download_and_extract_template", lambda *args, **kwargs: None)
# We need to bypass the `git init` step, wait, it has `--no-git` by default in tests maybe?
runner = CliRunner()
# Create temp dir to avoid directory already exists errors or whatever
Expand Down