mirror of
https://github.com/github/spec-kit
synced 2026-06-21 13:51:39 +00:00
2568422085
* refactor(agy): update storage directory from .agent to .agents * feat: update Antigravity integration to use .agents/ directory layout and add version compatibility warnings * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * refactor: remove deprecated --skills flag from AgyIntegration and update related test assertions * Update src/specify_cli/integrations/agy/__init__.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * refactor: update Antigravity integration requirement to v1.20.5 and remove obsolete tests * test: update skills directory path from .agent to .agents in preset restoration test * Update tests/integrations/test_integration_agy.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update tests/integrations/test_integration_agy.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
53 lines
1.3 KiB
Python
53 lines
1.3 KiB
Python
"""Antigravity (agy) integration — skills-based agent.
|
|
|
|
Antigravity uses ``.agents/skills/speckit-<name>/SKILL.md`` layout (enforced since v1.20.5).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from typing import TYPE_CHECKING, Any
|
|
|
|
from ..base import SkillsIntegration
|
|
|
|
if TYPE_CHECKING:
|
|
from ..manifest import IntegrationManifest
|
|
|
|
|
|
|
|
class AgyIntegration(SkillsIntegration):
|
|
"""Integration for Antigravity IDE."""
|
|
|
|
key = "agy"
|
|
config = {
|
|
"name": "Antigravity",
|
|
"folder": ".agents/",
|
|
"commands_subdir": "skills",
|
|
"install_url": None,
|
|
"requires_cli": False,
|
|
}
|
|
registrar_config = {
|
|
"dir": ".agents/skills",
|
|
"format": "markdown",
|
|
"args": "$ARGUMENTS",
|
|
"extension": "/SKILL.md",
|
|
}
|
|
context_file = "AGENTS.md"
|
|
|
|
def setup(
|
|
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)
|