@algosuite/vo-mcp 0.2.0-beta.33 → 0.2.0-beta.34
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/runner-cli.js
CHANGED
|
@@ -7817,6 +7817,10 @@ function makeLoopTicks({
|
|
|
7817
7817
|
applyRemoteConfig: () => false,
|
|
7818
7818
|
heartbeatFields: () => ({})
|
|
7819
7819
|
},
|
|
7820
|
+
// Host version awareness: reads `update_status` off the heartbeat ACK and logs
|
|
7821
|
+
// ONE line per drift change (daemon-update-status.mjs). No-op default keeps
|
|
7822
|
+
// old callers working; absent update_status reads as unknown, never current.
|
|
7823
|
+
updateStatusTracker = { applyHeartbeatResponse: () => false },
|
|
7820
7824
|
// Cached agent-availability provider (agent-availability.mjs); returns null
|
|
7821
7825
|
// until the first probe completes — the heartbeat simply omits the field.
|
|
7822
7826
|
getAgentAvailability = () => null,
|
|
@@ -7857,6 +7861,7 @@ function makeLoopTicks({
|
|
|
7857
7861
|
request.then((response) => {
|
|
7858
7862
|
capacityController.applyCapacity(response?.capacity, nextPayload.operatorId);
|
|
7859
7863
|
localModelController.applyRemoteConfig(response?.local_model, nextPayload.operatorId);
|
|
7864
|
+
updateStatusTracker.applyHeartbeatResponse(response);
|
|
7860
7865
|
}).catch((e) => log2(`heartbeat failed: ${e.message}`)).finally(() => {
|
|
7861
7866
|
for (const done of waiters) done();
|
|
7862
7867
|
if (state.pending) {
|
|
@@ -9859,7 +9864,7 @@ function startControlServer({ port, getStatus, requestStop, allowedOrigin, log:
|
|
|
9859
9864
|
return server;
|
|
9860
9865
|
}
|
|
9861
9866
|
function startDaemonControl({ cfg, runnerInstanceId, requestStop, getActiveCount, isRunning, startedAt, log: log2 = () => {
|
|
9862
|
-
}, onDuplicate = null }) {
|
|
9867
|
+
}, onDuplicate = null, getUpdateStatus = () => null }) {
|
|
9863
9868
|
if (!cfg.controlEnabled) return null;
|
|
9864
9869
|
return startControlServer({
|
|
9865
9870
|
port: cfg.controlPort,
|
|
@@ -9876,7 +9881,9 @@ function startDaemonControl({ cfg, runnerInstanceId, requestStop, getActiveCount
|
|
|
9876
9881
|
watchEnabled: cfg.watchEnabled,
|
|
9877
9882
|
activeTasks: getActiveCount(),
|
|
9878
9883
|
startedAt: new Date(startedAt).toISOString(),
|
|
9879
|
-
uptimeSec: Math.round((Date.now() - startedAt) / 1e3)
|
|
9884
|
+
uptimeSec: Math.round((Date.now() - startedAt) / 1e3),
|
|
9885
|
+
// Host version awareness — the app + `runner --status` read drift from here.
|
|
9886
|
+
updateStatus: getUpdateStatus()
|
|
9880
9887
|
}),
|
|
9881
9888
|
log: log2
|
|
9882
9889
|
});
|