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

Function getProjectConfigPaths

packages/pi-plugin/src/config/index.ts:72–75  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

70// fallback. The CortexKit target normalizes to .jsonc; we still detect a
71// pre-existing .json at the target for resilience.
72function getProjectConfigPaths(cwd: string): string[] {
73 const basePath = cortexKitProjectConfigBasePath(cwd);
74 return [`${basePath}.jsonc`, `${basePath}.json`];
75}
76
77function getUserConfigPaths(): string[] {
78 const basePath = cortexKitUserConfigBasePath();

Callers 2

loadPiConfigFunction · 0.85
loadPiConfigDetailedFunction · 0.85

Calls 1

Tested by

no test coverage detected