MCPcopy
hub / github.com/ValueCell-ai/ClawX / importSettings

Function importSettings

electron/utils/store.ts:173–181  ·  view source on GitHub ↗
(json: string)

Source from the content-addressed store, hash-verified

171 * Import settings from JSON
172 */
173export async function importSettings(json: string): Promise<void> {
174 try {
175 const settings = JSON.parse(json);
176 const store = await getSettingsStore();
177 store.set(settings);
178 } catch {
179 throw new Error('Invalid settings JSON');
180 }
181}

Callers

nothing calls this directly

Calls 2

getSettingsStoreFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected