|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from pathlib import Path |
6 | 5 | from typing import Any |
7 | 6 |
|
8 | 7 | from ..._utils import dump_frontmatter |
9 | 8 | from ..base import SkillsIntegration |
10 | | -from ..manifest import IntegrationManifest |
11 | 9 |
|
12 | 10 | # Mapping of command template stem → argument-hint text shown inline |
13 | 11 | # when a user invokes the slash command in Alquimia AI. |
@@ -165,45 +163,3 @@ def post_process_skill_content(self, content: str) -> str: |
165 | 163 | updated = self.inject_argument_hint(updated, hint) |
166 | 164 | break |
167 | 165 | return updated |
168 | | - |
169 | | - def setup( |
170 | | - self, |
171 | | - project_root: Path, |
172 | | - manifest: IntegrationManifest, |
173 | | - parsed_options: dict[str, Any] | None = None, |
174 | | - **opts: Any, |
175 | | - ) -> list[Path]: |
176 | | - """Install Alquimia skills, then inject Alquimia-specific flags and argument-hints.""" |
177 | | - created = super().setup(project_root, manifest, parsed_options, **opts) |
178 | | - |
179 | | - # Post-process generated skill files |
180 | | - skills_dir = self.skills_dest(project_root).resolve() |
181 | | - |
182 | | - for path in created: |
183 | | - # Only touch SKILL.md files under the skills directory |
184 | | - try: |
185 | | - path.resolve().relative_to(skills_dir) |
186 | | - except ValueError: |
187 | | - continue |
188 | | - if path.name != "SKILL.md": |
189 | | - continue |
190 | | - |
191 | | - content_bytes = path.read_bytes() |
192 | | - content = content_bytes.decode("utf-8") |
193 | | - |
194 | | - updated = content |
195 | | - |
196 | | - # Inject argument-hint if available for this skill |
197 | | - skill_dir_name = path.parent.name # e.g. "speckit-plan" |
198 | | - stem = skill_dir_name |
199 | | - if stem.startswith("speckit-"): |
200 | | - stem = stem[len("speckit-") :] |
201 | | - hint = ARGUMENT_HINTS.get(stem, "") |
202 | | - if hint: |
203 | | - updated = self.inject_argument_hint(updated, hint) |
204 | | - |
205 | | - if updated != content: |
206 | | - path.write_bytes(updated.encode("utf-8")) |
207 | | - self.record_file_in_manifest(path, project_root, manifest) |
208 | | - |
209 | | - return created |
0 commit comments