@adhdev/daemon-core 0.9.82-rc.159 → 0.9.82-rc.160

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
@@ -35578,7 +35578,8 @@ ${block2}`);
35578
35578
  if (!mesh) return { success: false, error: "Mesh not found" };
35579
35579
  const meshHost = resolveMeshHostStatus(mesh);
35580
35580
  const refreshRequested = args?.refresh === true || args?.forceRefresh === true;
35581
- const pendingCoordinatorEventCount = getPendingMeshCoordinatorEvents(meshId).length;
35581
+ const peekScope = typeof args?.coordinatorDaemonId === "string" && args.coordinatorDaemonId.trim() ? args.coordinatorDaemonId.trim() : this.deps.statusInstanceId || void 0;
35582
+ const pendingCoordinatorEventCount = getPendingMeshCoordinatorEvents(meshId, peekScope).length;
35582
35583
  const hadAggregateCache = this.aggregateMeshStatusCache.has(meshId);
35583
35584
  if (!refreshRequested && pendingCoordinatorEventCount === 0) {
35584
35585
  const cachedStatus = this.getCachedAggregateMeshStatus(meshId, mesh, { requireDirectPeerTruth: args?.requireDirectPeerTruth === true });
@@ -35866,7 +35867,7 @@ ${block2}`);
35866
35867
  finalizeMeshNodeStatus({ status, node, daemonId, isSelfNode });
35867
35868
  nodeStatuses.push(status);
35868
35869
  }
35869
- const callerCoordinatorDaemonId = typeof args?.coordinatorDaemonId === "string" && args.coordinatorDaemonId.trim() ? args.coordinatorDaemonId.trim() : void 0;
35870
+ const callerCoordinatorDaemonId = typeof args?.coordinatorDaemonId === "string" && args.coordinatorDaemonId.trim() ? args.coordinatorDaemonId.trim() : this.deps.statusInstanceId || void 0;
35870
35871
  const pendingCoordinatorEvents = drainPendingMeshCoordinatorEvents(meshId, callerCoordinatorDaemonId);
35871
35872
  const previewFreshness = (() => {
35872
35873
  const localRepoRoot = nodeStatuses.map((node) => readStringValue(node?.git?.repoRoot, node?.repoRoot, node?.workspace)).find((candidate) => !!candidate && fs11.existsSync(candidate));