MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _build_workspace

Function _build_workspace

scripts/run_skill_smoke.py:57–65  ·  view source on GitHub ↗

Construct a workspace whose ``.claude/skills/`` mirrors the fixture catalogue. Returns the workspace root.

(tmp: Path)

Source from the content-addressed store, hash-verified

55
56
57def _build_workspace(tmp: Path) -> Path:
58 """Construct a workspace whose ``.claude/skills/`` mirrors the
59 fixture catalogue. Returns the workspace root."""
60 project = tmp / "proj"
61 skills_root = project / ".claude" / "skills"
62 skills_root.mkdir(parents=True)
63 for name in FIXTURE_NAMES:
64 shutil.copytree(FIXTURES_ROOT / name, skills_root / name)
65 return project
66
67
68def _isolate_env(tmp: Path) -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected