MCPcopy Index your code
hub / github.com/Microck/opencode-studio / saveConfig

Function saveConfig

server/index.js:985–989  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

983};
984
985const saveConfig = (config) => {
986 const configPath = getConfigPath();
987 if (!configPath) throw new Error('No config path found');
988 atomicWriteFileSync(configPath, JSON.stringify(config, null, 2));
989};
990
991const aggregateModels = () => {
992 const roots = getSearchRoots();

Callers 2

index.jsFile · 0.70
restoreFromBackupFunction · 0.70

Calls 2

getConfigPathFunction · 0.85
atomicWriteFileSyncFunction · 0.85

Tested by

no test coverage detected