fix(integrations): migrate Antigravity (agy) layout to .agents/ and deprecate --skills#2276
fix(integrations): migrate Antigravity (agy) layout to .agents/ and deprecate --skills#2276mnriem merged 11 commits intogithub:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Antigravity (agy) integration to use the newer .agents directory layout instead of .agent, aligning with updated Antigravity IDE specs.
Changes:
- Switched the default integration storage folder from
.agent/to.agents/. - Updated the registrar directory from
.agent/skillsto.agents/skills. - Updated the
--skillsoption help text to reference a newer Antigravity version.
Show a summary per file
| File | Description |
|---|---|
src/specify_cli/integrations/agy/__init__.py |
Updates agy integration paths to .agents and refreshes the --skills help text. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
src/specify_cli/integrations/agy/init.py:39
- The help text says
--skillsis the default since v1.23.2, but the module docstring still states the default changed in v1.20.5. Please reconcile these version statements (either update the docstring version or clarify what changed in each release) to avoid confusing users.
help="Install as agent skills (default for Antigravity since v1.23.2)",
- Files reviewed: 1/1 changed files
- Comments generated: 1
mnriem
left a comment
There was a problem hiding this comment.
Please address Copilot feedback. Also note that if this requires a newer version of agy installed you should warn users about this when the integration gets installed. Also please include a test when changing behavior
… and add version compatibility warnings
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
src/specify_cli/integrations/agy/init.py:65
- Emitting terminal output directly from
setup()is likely to interfere with the RichLive(...)progress UI used byspecify init(the integration setup runs inside aLivecontext). Consider moving this warning to the CLI layer (so it can be rendered via the existing Rich console/panels) or routing it through a logger/structured return value instead of printing during setup.
import click
click.secho(
"Warning: The .agents/ layout requires Antigravity v1.19.5 or newer. "
"Please ensure your agy installation is up to date.",
fg="yellow",
err=True,
)
return super().setup(project_root, manifest, parsed_options=parsed_options, **opts)
- Files reviewed: 2/2 changed files
- Comments generated: 2
|
Please address Copilot support. BTW what is the reason for mentioning --skills? Can we get rid of that? Thoughts? |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Good catch! Since explicit command support was deprecated in v1.20.5, the |
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 3
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
src/specify_cli/integrations/agy/init.py:53
- This PR adds behavior beyond the PR description: AgyIntegration now emits a setup-time warning and (by removing the previous options() override) drops the integration-level
--skillsoption. Please update the PR description (and any release notes if applicable) to reflect these user-visible changes so reviewers/users don’t miss them.
self,
project_root: Path,
manifest: IntegrationManifest,
parsed_options: dict[str, Any] | None = None,
**opts: Any,
) -> list[Path]:
import click
click.secho(
"Warning: The .agents/ layout requires Antigravity v1.20.5 or newer. "
"Please ensure your agy installation is up to date.",
fg="yellow",
err=True,
)
return super().setup(project_root, manifest, parsed_options=parsed_options, **opts)
- Files reviewed: 2/2 changed files
- Comments generated: 1
|
Please address Test & Lint errors |
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 1
|
Please address Copilot feedback |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 1
|
Please change PR title / description to match intent of the PR as per Copilot feedback |
I've updated the PR title and description to accurately reflect the changes. It now explicitly details the auto-migration step we added, the retention of the --skills flag for backward compatibility, and the new version warning. Thanks for the feedback! |
|
Thank you! |
Description
Changes
.agent/to.agents/.shutil.movemigration step inAgyIntegration.setup()to auto-rename.agent/to.agents/if the new directory doesn't exist yet, preventing breakage for legacy projects.--skillsas a deprecated, no-op flag instead of removing it completely to ensure existing automation scripts do not break during option parsing..agents/layout requires Antigravityv1.20.5or newer.Testing
uv run specify --helpuv sync && uv run pytestagy/integrations/__init__.pyAI Disclosure