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

Function writePiSettings

packages/cli/src/adapters/pi.ts:184–189  ·  view source on GitHub ↗
(settings: PiSettingsLike)

Source from the content-addressed store, hash-verified

182}
183
184function writePiSettings(settings: PiSettingsLike): void {
185 const settingsPath = getPiUserExtensionsPath();
186 ensureDir(settingsPath);
187 const text = stringifyJsonc(settings, null, 2);
188 writeFileAtomic(settingsPath, `${text}\n`);
189}
190
191/**
192 * Match a Pi packages array entry against our plugin source.

Callers 2

ensurePluginEntryMethod · 0.85
removePluginEntryMethod · 0.85

Calls 4

getPiUserExtensionsPathFunction · 0.90
writeFileAtomicFunction · 0.90
stringifyJsoncFunction · 0.85
ensureDirFunction · 0.70

Tested by

no test coverage detected