v0.20.6 rebuild platform environments from templates

This commit is contained in:
Deep Research System
2026-05-07 21:00:21 +08:00
parent bb2c91754b
commit b3050260b2
93 changed files with 6027 additions and 89 deletions
+5 -2
View File
@@ -8,7 +8,8 @@ from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[2]
CANONICAL_SKILLS_DIR = REPO_ROOT / ".agent" / "skills"
CANONICAL_SKILLS_DIR = REPO_ROOT / "platform_adapters" / "antigravity" / "agent" / "skills"
LEGACY_AGENT_SKILLS_DIR = REPO_ROOT / ".agent" / "skills"
LEGACY_AGENTS_SKILLS_DIR = REPO_ROOT / ".agents" / "skills"
PROJECT_SKILLS_DIR = REPO_ROOT / "skills"
REQUIRED_SKILLS = {
@@ -39,6 +40,8 @@ class SkillRegistry:
if self.canonical_dir == CANONICAL_SKILLS_DIR and PROJECT_SKILLS_DIR.exists():
roots.append(PROJECT_SKILLS_DIR)
roots.append(self.canonical_dir)
if self.canonical_dir == CANONICAL_SKILLS_DIR and LEGACY_AGENT_SKILLS_DIR.exists():
roots.append(LEGACY_AGENT_SKILLS_DIR)
if self.canonical_dir == CANONICAL_SKILLS_DIR and LEGACY_AGENTS_SKILLS_DIR.exists():
roots.append(LEGACY_AGENTS_SKILLS_DIR)
return roots
@@ -107,5 +110,5 @@ class SkillRegistry:
def default_adapter_skill_dirs() -> list[Path]:
return [
REPO_ROOT / ".opencode" / "skills",
REPO_ROOT / ".agent" / "skills",
REPO_ROOT / "platform_adapters" / "antigravity" / "agent" / "skills",
]