MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / load

Function load

src/runtime-config.js:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106let _state = structuredClone(DEFAULTS);
107
108function load() {
109 if (!existsSync(FILE)) return;
110 try {
111 const raw = JSON.parse(readFileSync(FILE, 'utf-8'));
112 _state = deepMerge(DEFAULTS, raw);
113 } catch (e) {
114 log.warn(`runtime-config: failed to load ${FILE}: ${e.message}`);
115 }
116}
117
118function persist() {
119 try {

Callers 1

runtime-config.jsFile · 0.85

Calls 1

deepMergeFunction · 0.85

Tested by

no test coverage detected