gopherhole_openclaw_a2a 0.3.4 → 0.3.5
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.
|
@@ -41,8 +41,6 @@ export async function connectToGateway(port = 18789) {
|
|
|
41
41
|
connected = true;
|
|
42
42
|
// Send connect handshake
|
|
43
43
|
const connectId = uuidv4();
|
|
44
|
-
// Generate a stable device identity for the A2A plugin
|
|
45
|
-
const deviceId = 'a2a-plugin-' + require('os').hostname();
|
|
46
44
|
const connectFrame = {
|
|
47
45
|
type: 'req',
|
|
48
46
|
id: connectId,
|
|
@@ -58,11 +56,9 @@ export async function connectToGateway(port = 18789) {
|
|
|
58
56
|
mode: 'backend',
|
|
59
57
|
},
|
|
60
58
|
caps: [],
|
|
61
|
-
auth: token ? { token
|
|
59
|
+
auth: token ? { token } : undefined,
|
|
62
60
|
role: 'operator',
|
|
63
61
|
scopes: ['operator.admin'],
|
|
64
|
-
deviceId,
|
|
65
|
-
deviceIdentity: deviceId,
|
|
66
62
|
},
|
|
67
63
|
};
|
|
68
64
|
pendingRequests.set(connectId, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gopherhole_openclaw_a2a",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "GopherHole A2A plugin for OpenClaw - connect your AI agent to the GopherHole network",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"clean": "rm -rf dist",
|
|
11
11
|
"prepublishOnly": "npm run build"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"clawdbot": {
|
|
14
14
|
"extensions": [
|
|
15
15
|
"./dist/index.js"
|
|
16
16
|
]
|
package/src/gateway-client.ts
CHANGED
|
@@ -62,9 +62,6 @@ export async function connectToGateway(port = 18789): Promise<void> {
|
|
|
62
62
|
// Send connect handshake
|
|
63
63
|
const connectId = uuidv4();
|
|
64
64
|
|
|
65
|
-
// Generate a stable device identity for the A2A plugin
|
|
66
|
-
const deviceId = 'a2a-plugin-' + require('os').hostname();
|
|
67
|
-
|
|
68
65
|
const connectFrame = {
|
|
69
66
|
type: 'req',
|
|
70
67
|
id: connectId,
|
|
@@ -80,11 +77,9 @@ export async function connectToGateway(port = 18789): Promise<void> {
|
|
|
80
77
|
mode: 'backend',
|
|
81
78
|
},
|
|
82
79
|
caps: [],
|
|
83
|
-
auth: token ? { token
|
|
80
|
+
auth: token ? { token } : undefined,
|
|
84
81
|
role: 'operator',
|
|
85
82
|
scopes: ['operator.admin'],
|
|
86
|
-
deviceId,
|
|
87
|
-
deviceIdentity: deviceId,
|
|
88
83
|
},
|
|
89
84
|
};
|
|
90
85
|
|
|
File without changes
|