@adhdev/daemon-standalone 0.9.82-rc.28 → 0.9.82-rc.30

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 CHANGED
@@ -46348,12 +46348,12 @@ ${(0, import_node_path.resolve)(workspace || os17.tmpdir())}`;
46348
46348
  }
46349
46349
  return matches;
46350
46350
  }
46351
- function applyCachedInlineMeshNodeStatus(status, node) {
46351
+ function applyCachedInlineMeshNodeStatus(status, node, options) {
46352
46352
  const cachedStatus = readObjectRecord(node?.cachedStatus);
46353
46353
  const liveGit = buildInlineMeshTransitGitStatus(node);
46354
- const git = liveGit ?? buildCachedInlineMeshGitStatus(node);
46355
- const error48 = liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
46356
- const health = liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
46354
+ const git = options?.skipGit ? void 0 : liveGit ?? buildCachedInlineMeshGitStatus(node);
46355
+ const error48 = options?.skipError ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
46356
+ const health = options?.skipHealth ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
46357
46357
  const machineStatus = readStringValue(cachedStatus.machineStatus, node?.machineStatus);
46358
46358
  const lastSeenAt = toIsoTimestamp(cachedStatus.lastSeenAt ?? cachedStatus.last_seen_at ?? node?.lastSeenAt ?? node?.last_seen_at);
46359
46359
  const updatedAt = toIsoTimestamp(cachedStatus.updatedAt ?? cachedStatus.updated_at ?? node?.updatedAt ?? node?.updated_at);
@@ -48749,7 +48749,18 @@ ${block}`);
48749
48749
  }
48750
48750
  }
48751
48751
  if (!remoteProbeApplied) {
48752
- if (applyCachedInlineMeshNodeStatus(status, node)) {
48752
+ const connectionState = readStringValue(status.connection?.state);
48753
+ const inlineTransitGit = buildInlineMeshTransitGitStatus(node);
48754
+ const pendingPeerGitProbe = !inlineTransitGit && !isSelfNode && !!daemonId && (readStringValue(status.machineStatus) === "online" || readStringValue(status.health) === "online" || connectionState === "connecting" || connectionState === "connected" || connectionState === "unknown");
48755
+ if (pendingPeerGitProbe) {
48756
+ status.gitProbePending = true;
48757
+ status.health = "unknown";
48758
+ }
48759
+ if (applyCachedInlineMeshNodeStatus(
48760
+ status,
48761
+ node,
48762
+ pendingPeerGitProbe ? { skipGit: true, skipError: true, skipHealth: true } : void 0
48763
+ )) {
48753
48764
  status.launchReady = !!daemonId && (readStringValue(status.machineStatus) === "online" || isSelfNode);
48754
48765
  nodeStatuses.push(status);
48755
48766
  continue;