@adhdev/daemon-core 0.9.82-rc.27 → 0.9.82-rc.29
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/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/dist/repo-mesh-types.d.ts +6 -0
- package/package.json +1 -1
- package/src/commands/router.ts +29 -5
- package/src/repo-mesh-types.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -24368,12 +24368,12 @@ function collectLiveMeshSessionRecords(args) {
|
|
|
24368
24368
|
}
|
|
24369
24369
|
return matches;
|
|
24370
24370
|
}
|
|
24371
|
-
function applyCachedInlineMeshNodeStatus(status, node) {
|
|
24371
|
+
function applyCachedInlineMeshNodeStatus(status, node, options) {
|
|
24372
24372
|
const cachedStatus = readObjectRecord(node?.cachedStatus);
|
|
24373
24373
|
const liveGit = buildInlineMeshTransitGitStatus(node);
|
|
24374
|
-
const git = liveGit ?? buildCachedInlineMeshGitStatus(node);
|
|
24375
|
-
const error = liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
|
|
24376
|
-
const health = liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
|
|
24374
|
+
const git = options?.skipGit ? void 0 : liveGit ?? buildCachedInlineMeshGitStatus(node);
|
|
24375
|
+
const error = options?.skipError ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
|
|
24376
|
+
const health = options?.skipHealth ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
|
|
24377
24377
|
const machineStatus = readStringValue(cachedStatus.machineStatus, node?.machineStatus);
|
|
24378
24378
|
const lastSeenAt = toIsoTimestamp(cachedStatus.lastSeenAt ?? cachedStatus.last_seen_at ?? node?.lastSeenAt ?? node?.last_seen_at);
|
|
24379
24379
|
const updatedAt = toIsoTimestamp(cachedStatus.updatedAt ?? cachedStatus.updated_at ?? node?.updatedAt ?? node?.updated_at);
|
|
@@ -26769,7 +26769,18 @@ ${block}`);
|
|
|
26769
26769
|
}
|
|
26770
26770
|
}
|
|
26771
26771
|
if (!remoteProbeApplied) {
|
|
26772
|
-
|
|
26772
|
+
const connectionState = readStringValue(status.connection?.state);
|
|
26773
|
+
const inlineTransitGit = buildInlineMeshTransitGitStatus(node);
|
|
26774
|
+
const pendingPeerGitProbe = !inlineTransitGit && !isSelfNode && !!daemonId && (readStringValue(status.machineStatus) === "online" || readStringValue(status.health) === "online" || connectionState === "connecting" || connectionState === "connected" || connectionState === "unknown");
|
|
26775
|
+
if (pendingPeerGitProbe) {
|
|
26776
|
+
status.gitProbePending = true;
|
|
26777
|
+
status.health = "unknown";
|
|
26778
|
+
}
|
|
26779
|
+
if (applyCachedInlineMeshNodeStatus(
|
|
26780
|
+
status,
|
|
26781
|
+
node,
|
|
26782
|
+
pendingPeerGitProbe ? { skipGit: true, skipError: true, skipHealth: true } : void 0
|
|
26783
|
+
)) {
|
|
26773
26784
|
status.launchReady = !!daemonId && (readStringValue(status.machineStatus) === "online" || isSelfNode);
|
|
26774
26785
|
nodeStatuses.push(status);
|
|
26775
26786
|
continue;
|