(
self,
project_root: Path,
manifest: IntegrationManifest,
parsed_options: dict[str, Any] | None = None,
**opts: Any,
)
| 92 | return [self._resolve_executable(), "--print", prompt] |
| 93 | |
| 94 | def setup( |
| 95 | self, |
| 96 | project_root: Path, |
| 97 | manifest: IntegrationManifest, |
| 98 | parsed_options: dict[str, Any] | None = None, |
| 99 | **opts: Any, |
| 100 | ) -> list[Path]: |
| 101 | import click |
| 102 | |
| 103 | click.secho( |
| 104 | "Warning: The .agents/ layout requires Antigravity v1.20.5 or newer. " |
| 105 | "Please ensure your agy installation is up to date.", |
| 106 | fg="yellow", |
| 107 | err=True, |
| 108 | ) |
| 109 | created = super().setup(project_root, manifest, parsed_options=parsed_options, **opts) |
| 110 | |
| 111 | skills_dir = self.skills_dest(project_root).resolve() |
| 112 | for path in created: |
| 113 | try: |
| 114 | path.resolve().relative_to(skills_dir) |
| 115 | except ValueError: |
| 116 | continue |
| 117 | if path.name != "SKILL.md": |
| 118 | continue |
| 119 | |
| 120 | content = path.read_bytes().decode("utf-8") |
| 121 | updated = self.post_process_skill_content(content) |
| 122 | if updated != content: |
| 123 | path.write_bytes(updated.encode("utf-8")) |
| 124 | self.record_file_in_manifest(path, project_root, manifest) |
| 125 | |
| 126 | return created |
nothing calls this directly
no test coverage detected