MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / loadConfig

Function loadConfig

bin/cli.js:315–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313}
314
315function loadConfig() {
316 try {
317 if (!existsSync(CONFIG_DST)) return null;
318 return JSON.parse(readFileSync(CONFIG_DST, "utf-8"));
319 } catch {
320 return null;
321 }
322}
323
324function saveConfig(config) {
325 ensureDir(BASE_DIR);

Callers 2

resolveExtensionIdFunction · 0.85
statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected