gopherhole_openclaw_a2a 0.3.6 → 0.3.7
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 +1 -1
- 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
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
|
});
|