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

Function resolvePiLegacyFallback

packages/pi-plugin/src/config/index.ts:91–95  ·  view source on GitHub ↗
(
	sources: readonly LegacyConfigSource[],
)

Source from the content-addressed store, hash-verified

89// would re-enable features the user's real config disabled. Pi reads only Pi
90// legacy paths so a differing pair stays correct per-harness.
91function resolvePiLegacyFallback(
92 sources: readonly LegacyConfigSource[],
93): LegacyConfigSource | null {
94 return sources.find((source) => existsSync(source.path)) ?? null;
95}
96
97function loadConfigFile(
98 path: string,

Callers 2

loadPiConfigFunction · 0.85
loadPiConfigDetailedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected