@adhdev/daemon-core 0.9.82-rc.343 → 0.9.82-rc.344
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/commands/router.d.ts +20 -4
- package/dist/index.js +599 -324
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +619 -344
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events-pending.d.ts +10 -0
- package/dist/mesh/mesh-events-utils.d.ts +10 -0
- package/dist/mesh/mesh-ledger.d.ts +1 -1
- package/dist/mesh/mesh-runtime-store.d.ts +1 -0
- package/dist/mesh/mesh-work-queue.d.ts +10 -0
- package/dist/providers/cli-provider-instance.d.ts +1 -0
- package/dist/providers/provider-instance-manager.d.ts +1 -0
- package/dist/providers/provider-instance.d.ts +2 -0
- package/package.json +2 -2
- package/src/commands/cli-manager.ts +18 -0
- package/src/commands/router.ts +86 -8
- package/src/mesh/mesh-events-coordinator.ts +38 -2
- package/src/mesh/mesh-events-pending.ts +54 -4
- package/src/mesh/mesh-events-utils.ts +61 -9
- package/src/mesh/mesh-ledger.ts +1 -0
- package/src/mesh/mesh-reconcile-loop.ts +170 -3
- package/src/mesh/mesh-runtime-store.ts +38 -4
- package/src/mesh/mesh-work-queue.ts +13 -0
- package/src/providers/cli-provider-instance.ts +4 -1
- package/src/providers/provider-instance-manager.ts +1 -1
- package/src/providers/provider-instance.ts +1 -1
|
@@ -323,12 +323,28 @@ export declare class DaemonCommandRouter {
|
|
|
323
323
|
* controlbar commands do not — so the controlbar buttons appear to do nothing.
|
|
324
324
|
*
|
|
325
325
|
* Mirror the existing node-level remote-forward pattern (fast_forward_mesh_node etc.):
|
|
326
|
-
* scan the
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
326
|
+
* scan the candidate mesh nodes for the one hosting the targetSessionId, and return its
|
|
327
|
+
* daemonId when that daemonId is a remote daemon (i.e. not this coordinator's own
|
|
328
|
+
* statusInstanceId). Returns undefined for a locally-hosted session (no forward — execute
|
|
329
|
+
* locally as before) or when ownership can't be resolved.
|
|
330
|
+
*
|
|
331
|
+
* The candidate set spans BOTH the cached inline-mesh nodes and the live aggregate
|
|
332
|
+
* mesh-status snapshots. The inline cache reliably carries only each node's single primary
|
|
333
|
+
* session (cachedStatus.activeSession), so a worker hosting more than one session exposes its
|
|
334
|
+
* non-primary sessions only on the aggregate snapshot nodes (status.activeSessions /
|
|
335
|
+
* activeSessionDetails, built from live session records). collectMeshNodeHostedSessionIds does
|
|
336
|
+
* the wider plural-shape scan so a controlbar/modal command targeting a non-primary remote
|
|
337
|
+
* session still resolves its owner — the singular readCachedInlineMeshActiveSessions semantics
|
|
338
|
+
* other consumers depend on stay untouched.
|
|
330
339
|
*/
|
|
331
340
|
resolveRemoteMeshSessionOwnerDaemonId(sessionId: string): string | undefined;
|
|
341
|
+
/**
|
|
342
|
+
* Candidate nodes for remote-session owner resolution: the cached inline-mesh nodes (which
|
|
343
|
+
* carry each node's primary session) plus the nodes from every cached aggregate mesh-status
|
|
344
|
+
* snapshot (which carry each node's full live session list). getCachedInlineMeshNodes()
|
|
345
|
+
* returns a fresh array, so appending the aggregate nodes never mutates cached state.
|
|
346
|
+
*/
|
|
347
|
+
private collectMeshSessionOwnerCandidateNodes;
|
|
332
348
|
getCachedInlineMesh(meshId: string, inlineMesh?: unknown): any | undefined;
|
|
333
349
|
private warmInlineMeshCache;
|
|
334
350
|
private getMeshForCommand;
|