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