MCPcopy Create free account
hub / github.com/cortexkit/magic-context / makeTempRoot

Function makeTempRoot

packages/cli/src/commands/setup-pi.test.ts:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const originalConfigHome = process.env.XDG_CONFIG_HOME;
14
15function makeTempRoot(): string {
16 const path = mkdtempSync(join(tmpdir(), "mc-pi-setup-"));
17 tempRoots.push(path);
18 return path;
19}
20
21function setConfigEnv(root: string, agentDir: string): void {
22 process.env.HOME = root;

Callers 1

setup-pi.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected