gopherhole_openclaw_a2a 0.3.4 → 0.3.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/README.md CHANGED
@@ -15,7 +15,7 @@ Then add to your OpenClaw config (`~/.openclaw/openclaw.json`):
15
15
  "channels": {
16
16
  "a2a": {
17
17
  "enabled": true,
18
- "bridgeUrl": "wss://gopherhole.ai/ws",
18
+ "bridgeUrl": "wss://hub.gopherhole.ai/ws",
19
19
  "apiKey": "gph_your_api_key_here"
20
20
  }
21
21
  }
@@ -23,7 +23,7 @@ export class A2AConnectionManager {
23
23
  }
24
24
  }
25
25
  async connectToGopherHole() {
26
- const hubUrl = this.config.bridgeUrl || 'wss://gopherhole.ai/ws';
26
+ const hubUrl = this.config.bridgeUrl || 'wss://hub.gopherhole.ai/ws';
27
27
  const timeoutMs = this.config.requestTimeoutMs ?? 180000;
28
28
  this.gopherhole = new GopherHole({
29
29
  apiKey: this.config.apiKey,
@@ -237,7 +237,7 @@ export class A2AConnectionManager {
237
237
  if (!this.config.apiKey) {
238
238
  return [];
239
239
  }
240
- const hubUrl = this.config.bridgeUrl || 'wss://gopherhole.ai/ws';
240
+ const hubUrl = this.config.bridgeUrl || 'wss://hub.gopherhole.ai/ws';
241
241
  // Convert wss:// to https:// for API calls
242
242
  const apiBase = hubUrl.replace('wss://', 'https://').replace('/ws', '');
243
243
  try {
@@ -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, deviceId, deviceIdentity: deviceId } : undefined,
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, {
@@ -47,7 +47,7 @@ export interface A2AResponse {
47
47
  * "channels": {
48
48
  * "a2a": {
49
49
  * "enabled": true,
50
- * "bridgeUrl": "wss://gopherhole.ai/ws",
50
+ * "bridgeUrl": "wss://hub.gopherhole.ai/ws",
51
51
  * "apiKey": "gph_your_api_key"
52
52
  * }
53
53
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gopherhole_openclaw_a2a",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
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
- "openclaw": {
13
+ "clawdbot": {
14
14
  "extensions": [
15
15
  "./dist/index.js"
16
16
  ]
package/src/connection.ts CHANGED
@@ -37,7 +37,7 @@ export class A2AConnectionManager {
37
37
  }
38
38
 
39
39
  private async connectToGopherHole(): Promise<void> {
40
- const hubUrl = this.config.bridgeUrl || 'wss://gopherhole.ai/ws';
40
+ const hubUrl = this.config.bridgeUrl || 'wss://hub.gopherhole.ai/ws';
41
41
  const timeoutMs = this.config.requestTimeoutMs ?? 180000;
42
42
 
43
43
  this.gopherhole = new GopherHole({
@@ -305,7 +305,7 @@ export class A2AConnectionManager {
305
305
  return [];
306
306
  }
307
307
 
308
- const hubUrl = this.config.bridgeUrl || 'wss://gopherhole.ai/ws';
308
+ const hubUrl = this.config.bridgeUrl || 'wss://hub.gopherhole.ai/ws';
309
309
  // Convert wss:// to https:// for API calls
310
310
  const apiBase = hubUrl.replace('wss://', 'https://').replace('/ws', '');
311
311
 
@@ -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, deviceId, deviceIdentity: deviceId } : undefined,
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
 
package/src/types.ts CHANGED
@@ -47,7 +47,7 @@ export interface A2AResponse {
47
47
  * "channels": {
48
48
  * "a2a": {
49
49
  * "enabled": true,
50
- * "bridgeUrl": "wss://gopherhole.ai/ws",
50
+ * "bridgeUrl": "wss://hub.gopherhole.ai/ws",
51
51
  * "apiKey": "gph_your_api_key"
52
52
  * }
53
53
  * }
@@ -55,7 +55,7 @@ export interface A2AResponse {
55
55
  */
56
56
  export interface A2AChannelConfig {
57
57
  enabled?: boolean;
58
- bridgeUrl?: string; // WebSocket URL (default: wss://gopherhole.ai/ws)
58
+ bridgeUrl?: string; // WebSocket URL (default: wss://hub.gopherhole.ai/ws)
59
59
  apiKey?: string; // GopherHole API key (gph_...)
60
60
  agentId?: string; // Our agent ID (default: "openclaw")
61
61
  agentName?: string; // Display name for agent card
File without changes