@alfe.ai/integrations 0.0.11 → 0.0.12

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 +17 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1211,17 +1211,28 @@ var OpenClawApplier = class {
1211
1211
  this.trackingPath = options.configPath ?? join(this.workspace, "config.json");
1212
1212
  }
1213
1213
  async applyPlugin(pkg) {
1214
+ await this.ensurePluginsAllow(pkg);
1214
1215
  if (!this.isPluginInstalled(pkg)) {
1215
- await execFileAsync("openclaw", [
1216
- "plugins",
1217
- "install",
1218
- pkg
1219
- ], { timeout: 6e4 });
1216
+ try {
1217
+ await execFileAsync("openclaw", [
1218
+ "plugins",
1219
+ "install",
1220
+ pkg
1221
+ ], { timeout: 6e4 });
1222
+ } catch (err) {
1223
+ await new Promise((r) => {
1224
+ setTimeout(r, 500);
1225
+ });
1226
+ if (!this.isPluginInstalled(pkg)) throw err;
1227
+ log.warn({
1228
+ pkg,
1229
+ err: err instanceof Error ? err.message : String(err)
1230
+ }, "openclaw plugins install exited with warnings but plugin is installed");
1231
+ }
1220
1232
  await new Promise((r) => {
1221
1233
  setTimeout(r, 500);
1222
1234
  });
1223
1235
  }
1224
- await this.ensurePluginsAllow(pkg);
1225
1236
  }
1226
1237
  /**
1227
1238
  * Ensure the plugin is in plugins.allow in openclaw.json.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/integrations",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Integration lifecycle management for Alfe — registry, resolution, installation, and state",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",