@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.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +17 -5
package/dist/index.js
CHANGED
|
@@ -35857,7 +35857,8 @@ ${block2}`);
|
|
|
35857
35857
|
if (!mesh) return { success: false, error: "Mesh not found" };
|
|
35858
35858
|
const meshHost = resolveMeshHostStatus(mesh);
|
|
35859
35859
|
const refreshRequested = args?.refresh === true || args?.forceRefresh === true;
|
|
35860
|
-
const
|
|
35860
|
+
const peekScope = typeof args?.coordinatorDaemonId === "string" && args.coordinatorDaemonId.trim() ? args.coordinatorDaemonId.trim() : this.deps.statusInstanceId || void 0;
|
|
35861
|
+
const pendingCoordinatorEventCount = getPendingMeshCoordinatorEvents(meshId, peekScope).length;
|
|
35861
35862
|
const hadAggregateCache = this.aggregateMeshStatusCache.has(meshId);
|
|
35862
35863
|
if (!refreshRequested && pendingCoordinatorEventCount === 0) {
|
|
35863
35864
|
const cachedStatus = this.getCachedAggregateMeshStatus(meshId, mesh, { requireDirectPeerTruth: args?.requireDirectPeerTruth === true });
|
|
@@ -36145,7 +36146,7 @@ ${block2}`);
|
|
|
36145
36146
|
finalizeMeshNodeStatus({ status, node, daemonId, isSelfNode });
|
|
36146
36147
|
nodeStatuses.push(status);
|
|
36147
36148
|
}
|
|
36148
|
-
const callerCoordinatorDaemonId = typeof args?.coordinatorDaemonId === "string" && args.coordinatorDaemonId.trim() ? args.coordinatorDaemonId.trim() : void 0;
|
|
36149
|
+
const callerCoordinatorDaemonId = typeof args?.coordinatorDaemonId === "string" && args.coordinatorDaemonId.trim() ? args.coordinatorDaemonId.trim() : this.deps.statusInstanceId || void 0;
|
|
36149
36150
|
const pendingCoordinatorEvents = drainPendingMeshCoordinatorEvents(meshId, callerCoordinatorDaemonId);
|
|
36150
36151
|
const previewFreshness = (() => {
|
|
36151
36152
|
const localRepoRoot = nodeStatuses.map((node) => readStringValue(node?.git?.repoRoot, node?.repoRoot, node?.workspace)).find((candidate) => !!candidate && fs11.existsSync(candidate));
|