agent-relay-runner 0.119.1 → 0.119.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay-runner",
|
|
3
|
-
"version": "0.119.
|
|
3
|
+
"version": "0.119.2",
|
|
4
4
|
"description": "Unified provider lifecycle runner for Agent Relay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"agent-relay-providers": "0.104.2",
|
|
24
|
-
"agent-relay-sdk": "0.2.
|
|
24
|
+
"agent-relay-sdk": "0.2.104",
|
|
25
25
|
"callmux": "0.23.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -344,6 +344,10 @@ function relayTokenFromEnv() {
|
|
|
344
344
|
}
|
|
345
345
|
// sdk/src/bus-client.ts
|
|
346
346
|
import { EventEmitter } from "events";
|
|
347
|
+
function unrefTimer(timer) {
|
|
348
|
+
timer?.unref?.();
|
|
349
|
+
}
|
|
350
|
+
|
|
347
351
|
class MemoryCursorStore {
|
|
348
352
|
value = null;
|
|
349
353
|
async load() {
|
|
@@ -655,6 +659,7 @@ class RelayBusClient extends EventEmitter {
|
|
|
655
659
|
this.heartbeat = setInterval(() => {
|
|
656
660
|
this.sendHeartbeat();
|
|
657
661
|
}, this.options.heartbeatIntervalMs ?? 30000);
|
|
662
|
+
unrefTimer(this.heartbeat);
|
|
658
663
|
}
|
|
659
664
|
stopHeartbeat() {
|
|
660
665
|
if (this.heartbeat)
|
|
@@ -667,6 +672,7 @@ class RelayBusClient extends EventEmitter {
|
|
|
667
672
|
this.stopHeartbeatWatchdog();
|
|
668
673
|
const intervalMs = Math.max(100, Math.min(5000, this.heartbeatIntervalMs()));
|
|
669
674
|
this.heartbeatWatchdog = setInterval(() => this.checkHeartbeatAck(), intervalMs);
|
|
675
|
+
unrefTimer(this.heartbeatWatchdog);
|
|
670
676
|
}
|
|
671
677
|
stopHeartbeatWatchdog() {
|
|
672
678
|
if (this.heartbeatWatchdog)
|
|
@@ -753,6 +759,10 @@ class RelayBusClient extends EventEmitter {
|
|
|
753
759
|
}
|
|
754
760
|
}
|
|
755
761
|
// sdk/src/provider-base.ts
|
|
762
|
+
function unrefTimer2(timer) {
|
|
763
|
+
timer?.unref?.();
|
|
764
|
+
}
|
|
765
|
+
|
|
756
766
|
class ProviderBase {
|
|
757
767
|
options;
|
|
758
768
|
client;
|
|
@@ -814,6 +824,7 @@ class ProviderBase {
|
|
|
814
824
|
this.client.status({ agentStatus: "online", ready: false });
|
|
815
825
|
}
|
|
816
826
|
}, 30000);
|
|
827
|
+
unrefTimer2(this.drain);
|
|
817
828
|
}
|
|
818
829
|
}
|
|
819
830
|
// sdk/src/claim-tracker.ts
|