MCPcopy Create free account
hub / github.com/Microck/opencode-studio / loadOhMyOpenCodeConfig

Function loadOhMyOpenCodeConfig

server/index.js:1974–1982  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1972// ============================================
1973
1974function loadOhMyOpenCodeConfig() {
1975 const configPath = getOhMyOpenCodeConfigPath();
1976 if (!configPath || !fs.existsSync(configPath)) return {};
1977 try {
1978 return JSON.parse(fs.readFileSync(configPath, 'utf8'));
1979 } catch {
1980 return {};
1981 }
1982}
1983
1984function saveOhMyOpenCodeConfig(config) {
1985 const configPath = getOhMyOpenCodeConfigPath();

Callers 1

index.jsFile · 0.85

Calls 1

Tested by

no test coverage detected