clawmatrix 0.1.13 → 0.1.14
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/package.json +4 -4
- package/src/tool-proxy.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawmatrix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Decentralized mesh cluster plugin for OpenClaw — inter-gateway communication, model proxy, task handoff, and tool proxy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ws": "^8.19.0",
|
|
36
|
-
"zod": "^4.3.6"
|
|
36
|
+
"zod": "^4.3.6",
|
|
37
|
+
"@mariozechner/pi-coding-agent": ">=0.55.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/bun": "latest",
|
|
40
|
-
"@types/ws": "^8.18.1"
|
|
41
|
-
"openclaw": "^2026.3.2"
|
|
41
|
+
"@types/ws": "^8.18.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"typescript": "^5"
|
package/src/tool-proxy.ts
CHANGED
|
@@ -114,11 +114,17 @@ export class ToolProxy {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
try {
|
|
117
|
+
console.log(`Received tool request for: ${payload.tool}`);
|
|
118
|
+
console.log(`Is local tool? ${isLocalTool(payload.tool)}`);
|
|
119
|
+
|
|
117
120
|
const result = isLocalTool(payload.tool)
|
|
118
121
|
? await executeLocally(payload.tool, payload.params)
|
|
119
122
|
: await this.executeViaGateway(payload.tool, payload.params);
|
|
123
|
+
|
|
124
|
+
console.log(`Tool execution result: ${JSON.stringify(result)}`);
|
|
120
125
|
this.sendResponse(id, from, { success: true, result });
|
|
121
126
|
} catch (err) {
|
|
127
|
+
console.error(`Tool execution error: ${err}`);
|
|
122
128
|
this.sendResponse(id, from, {
|
|
123
129
|
success: false,
|
|
124
130
|
error: err instanceof Error ? err.message : String(err),
|