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

Function findOmoConfig

packages/cli/src/lib/paths.ts:44–55  ·  view source on GitHub ↗
(configDir: string)

Source from the content-addressed store, hash-verified

42}
43
44function findOmoConfig(configDir: string): string | null {
45 const locations = [
46 join(configDir, "oh-my-openagent.jsonc"),
47 join(configDir, "oh-my-openagent.json"),
48 join(configDir, "oh-my-opencode.jsonc"),
49 join(configDir, "oh-my-opencode.json"),
50 ];
51 for (const loc of locations) {
52 if (existsSync(loc)) return loc;
53 }
54 return null;
55}
56
57export function detectConfigPaths(): ConfigPaths {
58 const configDir = getOpenCodeConfigDir();

Callers 1

detectConfigPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected