@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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. 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 pairs = flattenConfig(config);
1314
- for (const [path, value] of pairs) try {
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
- path,
1319
- JSON.stringify(value),
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
- path,
1326
- value
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/integrations",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Integration lifecycle management for Alfe — registry, resolution, installation, and state",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",