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

Function writeConfig

packages/plugin/src/shared/conflict-fixer.ts:51–53  ·  view source on GitHub ↗
(filePath: string, config: JsonObject)

Source from the content-addressed store, hash-verified

49}
50
51function writeConfig(filePath: string, config: JsonObject): void {
52 writeFileSync(filePath, `${stringify(config, null, 2)}\n`);
53}
54
55function resolveUserOpenCodeConfigPath(): string {
56 const paths = getOpenCodeConfigPaths({ binary: "opencode" });

Callers 1

fixConflictsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected