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

Function resolveLegacyReadFallback

packages/plugin/src/config/index.ts:62–64  ·  view source on GitHub ↗

* First existing legacy source owned by the OpenCode harness, for the read * fallback when the CortexKit base is absent. Pi has its own loader with the * symmetric Pi-scoped fallback.

(sources: readonly LegacyConfigSource[])

Source from the content-addressed store, hash-verified

60 * symmetric Pi-scoped fallback.
61 */
62function resolveLegacyReadFallback(sources: readonly LegacyConfigSource[]): LegacyReadFallback {
63 return { source: sources.find((s) => existsSync(s.path)) ?? null };
64}
65
66interface LoadedConfigFile {
67 config: Record<string, unknown>;

Callers 1

loadPluginConfigDetailedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected