@alfe.ai/integrations 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1310,21 +1310,23 @@ var OpenClawApplier = class {
|
|
|
1310
1310
|
integrations[integrationId] = config;
|
|
1311
1311
|
tracking._integrations = integrations;
|
|
1312
1312
|
this.writeTracking(tracking);
|
|
1313
|
-
const
|
|
1314
|
-
|
|
1313
|
+
const batch = flattenConfig(config).map(([path, value]) => ({
|
|
1314
|
+
path,
|
|
1315
|
+
value
|
|
1316
|
+
}));
|
|
1317
|
+
try {
|
|
1315
1318
|
await execFileAsync("openclaw", [
|
|
1316
1319
|
"config",
|
|
1317
1320
|
"set",
|
|
1318
|
-
|
|
1319
|
-
JSON.stringify(
|
|
1321
|
+
"--batch-json",
|
|
1322
|
+
JSON.stringify(batch),
|
|
1320
1323
|
"--strict-json"
|
|
1321
1324
|
], { timeout: 1e4 });
|
|
1322
1325
|
} catch (err) {
|
|
1323
1326
|
log.error({
|
|
1324
1327
|
err: err instanceof Error ? err.message : String(err),
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}, "Failed to set config via openclaw config set");
|
|
1328
|
+
batch
|
|
1329
|
+
}, "Failed to set config via openclaw config set --batch-json");
|
|
1328
1330
|
throw err;
|
|
1329
1331
|
}
|
|
1330
1332
|
}
|
package/package.json
CHANGED