gopherhole_openclaw_a2a 0.3.3 → 0.3.4
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,6 +41,8 @@ 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();
|
|
44
46
|
const connectFrame = {
|
|
45
47
|
type: 'req',
|
|
46
48
|
id: connectId,
|
|
@@ -51,14 +53,16 @@ export async function connectToGateway(port = 18789) {
|
|
|
51
53
|
client: {
|
|
52
54
|
id: 'gateway-client',
|
|
53
55
|
displayName: 'A2A Channel Plugin',
|
|
54
|
-
version: '0.
|
|
56
|
+
version: '0.3.4',
|
|
55
57
|
platform: process.platform,
|
|
56
58
|
mode: 'backend',
|
|
57
59
|
},
|
|
58
60
|
caps: [],
|
|
59
|
-
auth: token ? { token } : undefined,
|
|
61
|
+
auth: token ? { token, deviceId, deviceIdentity: deviceId } : undefined,
|
|
60
62
|
role: 'operator',
|
|
61
63
|
scopes: ['operator.admin'],
|
|
64
|
+
deviceId,
|
|
65
|
+
deviceIdentity: deviceId,
|
|
62
66
|
},
|
|
63
67
|
};
|
|
64
68
|
pendingRequests.set(connectId, {
|
package/package.json
CHANGED
package/src/gateway-client.ts
CHANGED
|
@@ -61,6 +61,10 @@ export async function connectToGateway(port = 18789): Promise<void> {
|
|
|
61
61
|
|
|
62
62
|
// Send connect handshake
|
|
63
63
|
const connectId = uuidv4();
|
|
64
|
+
|
|
65
|
+
// Generate a stable device identity for the A2A plugin
|
|
66
|
+
const deviceId = 'a2a-plugin-' + require('os').hostname();
|
|
67
|
+
|
|
64
68
|
const connectFrame = {
|
|
65
69
|
type: 'req',
|
|
66
70
|
id: connectId,
|
|
@@ -71,14 +75,16 @@ export async function connectToGateway(port = 18789): Promise<void> {
|
|
|
71
75
|
client: {
|
|
72
76
|
id: 'gateway-client',
|
|
73
77
|
displayName: 'A2A Channel Plugin',
|
|
74
|
-
version: '0.
|
|
78
|
+
version: '0.3.4',
|
|
75
79
|
platform: process.platform,
|
|
76
80
|
mode: 'backend',
|
|
77
81
|
},
|
|
78
82
|
caps: [],
|
|
79
|
-
auth: token ? { token } : undefined,
|
|
83
|
+
auth: token ? { token, deviceId, deviceIdentity: deviceId } : undefined,
|
|
80
84
|
role: 'operator',
|
|
81
85
|
scopes: ['operator.admin'],
|
|
86
|
+
deviceId,
|
|
87
|
+
deviceIdentity: deviceId,
|
|
82
88
|
},
|
|
83
89
|
};
|
|
84
90
|
|