@alfe.ai/integrations 0.0.10 → 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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -290,8 +290,8 @@ interface IntegrationManifest {
|
|
|
290
290
|
config_schema: ConfigSchemaField[];
|
|
291
291
|
capabilities: string[];
|
|
292
292
|
hooks: IntegrationHooks;
|
|
293
|
-
/** Git repository URL (HTTPS
|
|
294
|
-
repository
|
|
293
|
+
/** Git repository URL (HTTPS) — not present in YAML, injected by the publish API */
|
|
294
|
+
repository?: string;
|
|
295
295
|
/**
|
|
296
296
|
* Agent runtimes this integration supports.
|
|
297
297
|
* If omitted or empty, the integration is considered universal (all runtimes).
|
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
|
-
|
|
1216
|
-
"
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
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.
|
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@auriclabs/logger": "^0.1.1",
|
|
16
|
-
"@alfe.ai/integration-manifest": "^0.0.
|
|
16
|
+
"@alfe.ai/integration-manifest": "^0.0.4"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|