gopherhole_openclaw_a2a 0.3.6 → 0.3.8
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/dist/src/connection.js +5 -1
- package/package.json +2 -2
- package/src/connection.ts +6 -1
package/dist/src/connection.js
CHANGED
|
@@ -30,7 +30,8 @@ export class A2AConnectionManager {
|
|
|
30
30
|
hubUrl,
|
|
31
31
|
autoReconnect: true,
|
|
32
32
|
reconnectDelay: this.config.reconnectIntervalMs ?? 5000,
|
|
33
|
-
|
|
33
|
+
maxReconnectDelay: 300000, // 5 min cap on backoff
|
|
34
|
+
// maxReconnectAttempts defaults to 0 (infinite) in SDK
|
|
34
35
|
requestTimeout: timeoutMs,
|
|
35
36
|
messageTimeout: timeoutMs,
|
|
36
37
|
agentCard: this.config.agentCard ?? {
|
|
@@ -82,6 +83,9 @@ export class A2AConnectionManager {
|
|
|
82
83
|
this.connected = false;
|
|
83
84
|
console.log(`[a2a] Disconnected from GopherHole: ${reason}`);
|
|
84
85
|
});
|
|
86
|
+
this.gopherhole.on('reconnecting', ({ attempt, delayMs }) => {
|
|
87
|
+
console.log(`[a2a] Reconnecting to GopherHole (attempt ${attempt}, waiting ${delayMs}ms)...`);
|
|
88
|
+
});
|
|
85
89
|
this.gopherhole.on('error', (error) => {
|
|
86
90
|
console.error('[a2a] GopherHole SDK error:', error.message);
|
|
87
91
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gopherhole_openclaw_a2a",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"homepage": "https://gopherhole.ai",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@gopherhole/sdk": "^0.2.
|
|
34
|
+
"@gopherhole/sdk": "^0.2.4",
|
|
35
35
|
"uuid": "^10.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/src/connection.ts
CHANGED
|
@@ -45,7 +45,8 @@ export class A2AConnectionManager {
|
|
|
45
45
|
hubUrl,
|
|
46
46
|
autoReconnect: true,
|
|
47
47
|
reconnectDelay: this.config.reconnectIntervalMs ?? 5000,
|
|
48
|
-
|
|
48
|
+
maxReconnectDelay: 300000, // 5 min cap on backoff
|
|
49
|
+
// maxReconnectAttempts defaults to 0 (infinite) in SDK
|
|
49
50
|
requestTimeout: timeoutMs,
|
|
50
51
|
messageTimeout: timeoutMs,
|
|
51
52
|
agentCard: this.config.agentCard ?? {
|
|
@@ -100,6 +101,10 @@ export class A2AConnectionManager {
|
|
|
100
101
|
console.log(`[a2a] Disconnected from GopherHole: ${reason}`);
|
|
101
102
|
});
|
|
102
103
|
|
|
104
|
+
this.gopherhole.on('reconnecting', ({ attempt, delayMs }) => {
|
|
105
|
+
console.log(`[a2a] Reconnecting to GopherHole (attempt ${attempt}, waiting ${delayMs}ms)...`);
|
|
106
|
+
});
|
|
107
|
+
|
|
103
108
|
this.gopherhole.on('error', (error) => {
|
|
104
109
|
console.error('[a2a] GopherHole SDK error:', error.message);
|
|
105
110
|
});
|