MCPcopy Create free account
hub / github.com/SethGammon/Citadel / withTempProject

Function withTempProject

scripts/test-memory-blocks.js:23–30  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

21}
22
23function withTempProject(run) {
24 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-memory-'));
25 try {
26 run(dir);
27 } finally {
28 fs.rmSync(dir, { recursive: true, force: true });
29 }
30}
31
32withTempProject((projectRoot) => {
33 write(path.join(projectRoot, 'AGENTS.md'), [

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected