adhdev 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/cli/index.js CHANGED
@@ -46934,12 +46934,12 @@ function collectLiveMeshSessionRecords(args) {
46934
46934
  }
46935
46935
  return matches;
46936
46936
  }
46937
- function applyCachedInlineMeshNodeStatus(status, node) {
46937
+ function applyCachedInlineMeshNodeStatus(status, node, options) {
46938
46938
  const cachedStatus = readObjectRecord(node?.cachedStatus);
46939
46939
  const liveGit = buildInlineMeshTransitGitStatus(node);
46940
- const git = liveGit ?? buildCachedInlineMeshGitStatus(node);
46941
- const error48 = liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
46942
- const health = liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
46940
+ const git = options?.skipGit ? void 0 : liveGit ?? buildCachedInlineMeshGitStatus(node);
46941
+ const error48 = options?.skipError ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
46942
+ const health = options?.skipHealth ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
46943
46943
  const machineStatus = readStringValue(cachedStatus.machineStatus, node?.machineStatus);
46944
46944
  const lastSeenAt = toIsoTimestamp(cachedStatus.lastSeenAt ?? cachedStatus.last_seen_at ?? node?.lastSeenAt ?? node?.last_seen_at);
46945
46945
  const updatedAt = toIsoTimestamp(cachedStatus.updatedAt ?? cachedStatus.updated_at ?? node?.updatedAt ?? node?.updated_at);
@@ -49372,7 +49372,18 @@ ${block}`);
49372
49372
  }
49373
49373
  }
49374
49374
  if (!remoteProbeApplied) {
49375
- if (applyCachedInlineMeshNodeStatus(status, node)) {
49375
+ const connectionState = readStringValue(status.connection?.state);
49376
+ const inlineTransitGit = buildInlineMeshTransitGitStatus(node);
49377
+ const pendingPeerGitProbe = !inlineTransitGit && !isSelfNode && !!daemonId && (readStringValue(status.machineStatus) === "online" || readStringValue(status.health) === "online" || connectionState === "connecting" || connectionState === "connected" || connectionState === "unknown");
49378
+ if (pendingPeerGitProbe) {
49379
+ status.gitProbePending = true;
49380
+ status.health = "unknown";
49381
+ }
49382
+ if (applyCachedInlineMeshNodeStatus(
49383
+ status,
49384
+ node,
49385
+ pendingPeerGitProbe ? { skipGit: true, skipError: true, skipHealth: true } : void 0
49386
+ )) {
49376
49387
  status.launchReady = !!daemonId && (readStringValue(status.machineStatus) === "online" || isSelfNode);
49377
49388
  nodeStatuses.push(status);
49378
49389
  continue;
@@ -98445,7 +98456,7 @@ var init_adhdev_daemon = __esm({
98445
98456
  init_version();
98446
98457
  init_src();
98447
98458
  init_runtime_defaults();
98448
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.28" });
98459
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.29" });
98449
98460
  AdhdevDaemon = class _AdhdevDaemon {
98450
98461
  localHttpServer = null;
98451
98462
  localWss = null;