@alfe.ai/integrations 0.0.5 → 0.0.6
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 +11 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1161,7 +1161,7 @@ var IntegrationManager = class {
|
|
|
1161
1161
|
/**
|
|
1162
1162
|
* OpenClawApplier — applies plugins, skills, and config to the OpenClaw runtime.
|
|
1163
1163
|
*
|
|
1164
|
-
* Plugins are installed via `
|
|
1164
|
+
* Plugins are installed via `npm install` in the OpenClaw workspace directory.
|
|
1165
1165
|
* Skills are copied to ~/.alfe/skills/{name}.
|
|
1166
1166
|
* Config is deep-merged into the OpenClaw agent config, with per-integration
|
|
1167
1167
|
* tracking so changes can be cleanly removed on deactivation.
|
|
@@ -1193,16 +1193,18 @@ var OpenClawApplier = class {
|
|
|
1193
1193
|
this.configPath = options.configPath ?? join(this.workspace, "config.json");
|
|
1194
1194
|
}
|
|
1195
1195
|
async applyPlugin(pkg) {
|
|
1196
|
-
await execFileAsync("
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1196
|
+
await execFileAsync("openclaw", [
|
|
1197
|
+
"plugins",
|
|
1198
|
+
"install",
|
|
1199
|
+
pkg
|
|
1200
|
+
], { timeout: 6e4 });
|
|
1200
1201
|
}
|
|
1201
1202
|
async removePlugin(pkg) {
|
|
1202
|
-
await execFileAsync("
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1203
|
+
await execFileAsync("openclaw", [
|
|
1204
|
+
"plugins",
|
|
1205
|
+
"uninstall",
|
|
1206
|
+
pkg
|
|
1207
|
+
], { timeout: 3e4 });
|
|
1206
1208
|
}
|
|
1207
1209
|
applySkill(name, srcPath) {
|
|
1208
1210
|
if (!existsSync(srcPath)) throw new Error(`Skill source path not found: ${srcPath}`);
|
package/package.json
CHANGED