gopherhole_openclaw_a2a 0.4.1 → 0.4.2

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.
@@ -77,7 +77,11 @@ export class A2AConnectionManager {
77
77
  // Set up event handlers
78
78
  this.gopherhole.on('connect', () => {
79
79
  this.connected = true;
80
- console.log('[a2a] Connected to GopherHole Hub via SDK');
80
+ console.log('[a2a] Connected to GopherHole Hub via SDK (awaiting welcome)');
81
+ });
82
+ // Welcome received — agent identity is now known
83
+ this.gopherhole.on('ready', ({ agentId }) => {
84
+ console.log(`[a2a] GopherHole ready — agent ID: ${agentId}`);
81
85
  });
82
86
  this.gopherhole.on('disconnect', (reason) => {
83
87
  this.connected = false;
@@ -96,10 +100,11 @@ export class A2AConnectionManager {
96
100
  this.gopherhole.on('system', (message) => {
97
101
  this.handleSystemMessage(message);
98
102
  });
99
- // Connect
103
+ // Connect — note: connect() resolves on socket open; the agent ID is
104
+ // delivered asynchronously via the 'welcome' message, which triggers
105
+ // the 'ready' event above. Do NOT log gopherhole.id here — it will be null.
100
106
  try {
101
107
  await this.gopherhole.connect();
102
- console.log(`[a2a] GopherHole SDK connected, agent ID: ${this.gopherhole.id}`);
103
108
  }
104
109
  catch (err) {
105
110
  console.error('[a2a] Failed to connect to GopherHole:', err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gopherhole_openclaw_a2a",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
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",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@gopherhole/sdk": "^0.7.1",
38
+ "@gopherhole/sdk": "^0.7.2",
39
39
  "uuid": "^10.0.0"
40
40
  },
41
41
  "devDependencies": {