fix(builder): detect platform tracks independently

This commit is contained in:
2026-10-12 13:26:35 +08:00
parent 558c6facc2
commit 299f6dd9b2
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ def clean_config(config: dict[str, Any]) -> dict[str, Any]:
def config_from_binding(root: Path, selector: str) -> dict[str, Any]:
"""Materialize a common agent-runtime tester binding for legacy local.yaml."""
runtime_path = Path(__file__).resolve().parents[2] / "skills" / "agent-runtime" / "scripts" / "agent.py"
runtime_path = Path(__file__).resolve().parents[3] / "skills" / "agent-runtime" / "scripts" / "agent.py"
if not runtime_path.is_file():
raise RuntimeError(f"找不到共享 agent-runtime: {runtime_path}")
spec = importlib.util.spec_from_file_location("pouch_agent_runtime", runtime_path)