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
+8 -1
View File
@@ -16,17 +16,20 @@ FILES = [
"README.md",
"docs/antigravity-clean-workspace.md",
"docs/platform-adapters.md",
"docs/platform-branch-strategy.md",
"scripts/dr.py",
"scripts/deploy_adapters.py",
"scripts/update_platform_envs.py",
]
DIRS = [
".agent",
"configs",
"scripts/runtime",
"scripts/reporting",
]
ANTIGRAVITY_AGENT_SRC = REPO_ROOT / "platform_adapters" / "antigravity" / "agent"
EMPTY_DIRS = [
"projects",
]
@@ -80,6 +83,10 @@ def export_workspace(target: Path, *, force: bool, dry_run: bool) -> None:
raise FileNotFoundError(src)
copy_dir(src, target / rel, dry_run=dry_run)
if not ANTIGRAVITY_AGENT_SRC.exists():
raise FileNotFoundError(ANTIGRAVITY_AGENT_SRC)
copy_dir(ANTIGRAVITY_AGENT_SRC, target / ".agent", dry_run=dry_run)
for rel in EMPTY_DIRS:
if dry_run:
print(f"dir {rel} -> {target / rel}")