@alfe.ai/openclaw 0.0.22 → 0.0.24
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.cjs +4055 -0
- package/dist/index.d.cts +186 -0
- package/dist/plugin.cjs +2 -0
- package/dist/plugin.d.cts +38 -0
- package/dist/plugin2.cjs +3302 -0
- package/dist/plugin2.js +7 -11
- package/package.json +9 -7
package/dist/plugin2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { resolveConfig } from "@alfe.ai/config";
|
|
5
|
+
import { AgentApiClient } from "@alfe.ai/agent-api-client";
|
|
5
6
|
import { createConnection } from "node:net";
|
|
6
7
|
import { randomUUID } from "node:crypto";
|
|
7
8
|
import { EventEmitter } from "node:events";
|
|
@@ -3189,17 +3190,12 @@ const plugin = {
|
|
|
3189
3190
|
log.warn(`Integration tools not registered — config not available: ${err.message}`);
|
|
3190
3191
|
}
|
|
3191
3192
|
if (cfg) {
|
|
3192
|
-
const
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
for (const tool of tools) api.registerTool(tool);
|
|
3199
|
-
log.info(`Registered ${String(tools.length)} integration tools: ${tools.map((t) => t.name).join(", ")}`);
|
|
3200
|
-
}).catch((err) => {
|
|
3201
|
-
log.warn(`Integration tools not registered — agent-api-client import failed: ${err.message}`);
|
|
3202
|
-
});
|
|
3193
|
+
const tools = buildIntegrationTools(new AgentApiClient({
|
|
3194
|
+
apiKey: cfg.apiKey,
|
|
3195
|
+
apiUrl: cfg.apiUrl
|
|
3196
|
+
}));
|
|
3197
|
+
for (const tool of tools) api.registerTool(tool);
|
|
3198
|
+
log.info(`Registered ${String(tools.length)} integration tools: ${tools.map((t) => t.name).join(", ")}`);
|
|
3203
3199
|
}
|
|
3204
3200
|
ipcClient = new IPCClient(socketPath);
|
|
3205
3201
|
ipcClient.on("event", (event, payload) => {
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "OpenClaw plugin for Alfe — connects to local gateway daemon via IPC for integration management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"import": "./dist/index.js"
|
|
12
13
|
},
|
|
13
14
|
"./plugin": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
"types": "./dist/plugin.d.ts",
|
|
16
|
+
"require": "./dist/plugin.cjs",
|
|
17
|
+
"import": "./dist/plugin.js"
|
|
16
18
|
}
|
|
17
19
|
},
|
|
18
20
|
"openclaw": {
|
|
@@ -23,8 +25,8 @@
|
|
|
23
25
|
"dependencies": {
|
|
24
26
|
"@auriclabs/logger": "^0.1.1",
|
|
25
27
|
"@sinclair/typebox": "^0.34.48",
|
|
26
|
-
"@alfe.ai/agent-api-client": "^0.0.
|
|
27
|
-
"@alfe.ai/config": "^0.0.
|
|
28
|
+
"@alfe.ai/agent-api-client": "^0.0.5",
|
|
29
|
+
"@alfe.ai/config": "^0.0.7"
|
|
28
30
|
},
|
|
29
31
|
"files": [
|
|
30
32
|
"dist",
|