@adhdev/daemon-core 0.9.82-rc.28 → 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.mjs CHANGED
@@ -24135,12 +24135,12 @@ function collectLiveMeshSessionRecords(args) {
24135
24135
  }
24136
24136
  return matches;
24137
24137
  }
24138
- function applyCachedInlineMeshNodeStatus(status, node) {
24138
+ function applyCachedInlineMeshNodeStatus(status, node, options) {
24139
24139
  const cachedStatus = readObjectRecord(node?.cachedStatus);
24140
24140
  const liveGit = buildInlineMeshTransitGitStatus(node);
24141
- const git = liveGit ?? buildCachedInlineMeshGitStatus(node);
24142
- const error = liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
24143
- const health = liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
24141
+ const git = options?.skipGit ? void 0 : liveGit ?? buildCachedInlineMeshGitStatus(node);
24142
+ const error = options?.skipError ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
24143
+ const health = options?.skipHealth ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
24144
24144
  const machineStatus = readStringValue(cachedStatus.machineStatus, node?.machineStatus);
24145
24145
  const lastSeenAt = toIsoTimestamp(cachedStatus.lastSeenAt ?? cachedStatus.last_seen_at ?? node?.lastSeenAt ?? node?.last_seen_at);
24146
24146
  const updatedAt = toIsoTimestamp(cachedStatus.updatedAt ?? cachedStatus.updated_at ?? node?.updatedAt ?? node?.updated_at);
@@ -26536,7 +26536,18 @@ ${block}`);
26536
26536
  }
26537
26537
  }
26538
26538
  if (!remoteProbeApplied) {
26539
- if (applyCachedInlineMeshNodeStatus(status, node)) {
26539
+ const connectionState = readStringValue(status.connection?.state);
26540
+ const inlineTransitGit = buildInlineMeshTransitGitStatus(node);
26541
+ const pendingPeerGitProbe = !inlineTransitGit && !isSelfNode && !!daemonId && (readStringValue(status.machineStatus) === "online" || readStringValue(status.health) === "online" || connectionState === "connecting" || connectionState === "connected" || connectionState === "unknown");
26542
+ if (pendingPeerGitProbe) {
26543
+ status.gitProbePending = true;
26544
+ status.health = "unknown";
26545
+ }
26546
+ if (applyCachedInlineMeshNodeStatus(
26547
+ status,
26548
+ node,
26549
+ pendingPeerGitProbe ? { skipGit: true, skipError: true, skipHealth: true } : void 0
26550
+ )) {
26540
26551
  status.launchReady = !!daemonId && (readStringValue(status.machineStatus) === "online" || isSelfNode);
26541
26552
  nodeStatuses.push(status);
26542
26553
  continue;