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

Function setConfigEnv

packages/cli/src/commands/setup-pi.test.ts:21–25  ·  view source on GitHub ↗
(root: string, agentDir: string)

Source from the content-addressed store, hash-verified

19}
20
21function setConfigEnv(root: string, agentDir: string): void {
22 process.env.HOME = root;
23 process.env.PI_CODING_AGENT_DIR = agentDir;
24 process.env.XDG_CONFIG_HOME = join(root, ".config");
25}
26
27class MockPrompts implements PromptIO {
28 readonly messages: string[] = [];

Callers 1

setup-pi.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected