@adhdev/daemon-core 0.9.82-rc.251 → 0.9.82-rc.253
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/router.ts +7 -11
package/package.json
CHANGED
package/src/commands/router.ts
CHANGED
|
@@ -7301,19 +7301,15 @@ export class DaemonCommandRouter {
|
|
|
7301
7301
|
nodeStatuses.push(status);
|
|
7302
7302
|
}
|
|
7303
7303
|
|
|
7304
|
-
// (B3) Resolve the coordinator daemon scope for the
|
|
7305
|
-
//
|
|
7306
|
-
//
|
|
7307
|
-
//
|
|
7308
|
-
//
|
|
7309
|
-
// they're running under, fall back to *this daemon's*
|
|
7310
|
-
// ID — the caller reached us over our IPC/WS, so they
|
|
7311
|
-
// are by definition under this daemon. Falling back to
|
|
7312
|
-
// undefined would silently miss every scoped event.
|
|
7304
|
+
// (B3) Resolve the coordinator daemon scope for the peek.
|
|
7305
|
+
// mesh_status is a read-only status query — it must not consume
|
|
7306
|
+
// (drain) pending events as a side effect. Coordinators that see
|
|
7307
|
+
// pendingCoordinatorEvents in the response are expected to call
|
|
7308
|
+
// get_pending_mesh_events to explicitly drain them after processing.
|
|
7313
7309
|
const callerCoordinatorDaemonId = typeof args?.coordinatorDaemonId === 'string' && args.coordinatorDaemonId.trim()
|
|
7314
7310
|
? args.coordinatorDaemonId.trim()
|
|
7315
7311
|
: (this.deps.statusInstanceId || undefined);
|
|
7316
|
-
const pendingCoordinatorEvents =
|
|
7312
|
+
const pendingCoordinatorEvents = getPendingMeshCoordinatorEvents(meshId, callerCoordinatorDaemonId);
|
|
7317
7313
|
const previewFreshness = (() => {
|
|
7318
7314
|
const localRepoRoot = nodeStatuses
|
|
7319
7315
|
.map((node: any) => readStringValue(node?.git?.repoRoot, node?.repoRoot, node?.workspace))
|
|
@@ -7323,7 +7319,7 @@ export class DaemonCommandRouter {
|
|
|
7323
7319
|
const asyncRefineJobs = buildMeshAsyncRefineJobs({
|
|
7324
7320
|
meshId,
|
|
7325
7321
|
ledgerEntries: asyncRefineLedgerEntries,
|
|
7326
|
-
pendingEvents: pendingCoordinatorEvents,
|
|
7322
|
+
pendingEvents: [...pendingCoordinatorEvents],
|
|
7327
7323
|
});
|
|
7328
7324
|
const historicalSessions = buildHistoricalMeshSessions({
|
|
7329
7325
|
meshId,
|