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

Function getUserConfigPaths

packages/pi-plugin/src/config/index.ts:77–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77function getUserConfigPaths(): string[] {
78 const basePath = cortexKitUserConfigBasePath();
79 return [`${basePath}.jsonc`, `${basePath}.json`];
80}
81
82function resolveFirstExisting(paths: string[]): string | undefined {
83 return paths.find((path) => existsSync(path));

Callers 2

loadPiConfigFunction · 0.85
loadPiConfigDetailedFunction · 0.85

Calls 1

Tested by

no test coverage detected