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

Function writeConfig

packages/pi-plugin/src/config/index.test.ts:29–32  ·  view source on GitHub ↗
(path: string, text: string)

Source from the content-addressed store, hash-verified

27}
28
29function writeConfig(path: string, text: string): void {
30 mkdirSync(join(path, ".."), { recursive: true });
31 writeFileSync(path, text, "utf-8");
32}
33
34// Hard cutover: both harnesses read config from the shared CortexKit location.
35// Project config: <cwd>/.cortexkit/magic-context.*

Callers 3

writeProjectConfigFunction · 0.70
writeUserConfigFunction · 0.70
index.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected