@adhdev/daemon-core 0.9.82-rc.360 → 0.9.82-rc.361

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.
@@ -113,6 +113,19 @@ export declare class DaemonCliManager {
113
113
  key: string;
114
114
  } | null;
115
115
  private findAdapterBySessionId;
116
+ /**
117
+ * WTCLAIM (B): resolve the adapter for a mesh dispatch that named a node
118
+ * (meshContext.nodeId) but carried no explicit session. Matches by the
119
+ * instance's bound mesh node id (settings.meshNodeId, falling back to the
120
+ * sticky meshLastNodeId) first, then by the node workspace (workingDir).
121
+ *
122
+ * Unlike findAdapter's step-2 fuzzy fallback, this NEVER degrades to a
123
+ * provider-only first-match: on a daemon hosting BOTH a base node and a
124
+ * cloned worktree node (same daemonId), that fuzzy match could land a
125
+ * worktree-targeted task on the base session. Returns null when no session
126
+ * is bound to this node so the caller fails closed.
127
+ */
128
+ private findMeshNodeAdapter;
116
129
  handleCliCommand(cmd: string, args: any): Promise<CommandResult | null>;
117
130
  }
118
131
  export {};
@@ -0,0 +1,3 @@
1
+ import type { LowFamilyRegistry } from './types.js';
2
+ export type { LowFamilyContext, LowFamilyHandler, LowFamilyRegistry } from './types.js';
3
+ export declare const lowFamilyRegistry: LowFamilyRegistry;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const refineConfigHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const sessionHostHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * RF-ROUTER LOW family — provider-dev / spec debug commands.
3
+ *
4
+ * Powers the dev console's spec editor: read/write a session's spec.json, validate
5
+ * an in-progress spec, and preview condition/section resolution against a live
6
+ * session's screen. Extracted verbatim from executeDaemonCommand; reads only
7
+ * ctx.deps.sessionRegistry + ctx.deps.cliManager. resolveSpecPathInProviders (a
8
+ * `this`-free module helper) is relocated here unchanged.
9
+ */
10
+ import type { LowFamilyHandler } from './types.js';
11
+ export declare const specProviderDevHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * RF-ROUTER LOW family — shared types for the extracted low-coupling command
3
+ * handlers. Each handler is a pure function of (context, args): it reads only the
4
+ * router deps it needs and returns the exact CommandRouterResult the original
5
+ * `executeDaemonCommand` switch case returned, so the router facade is unchanged.
6
+ *
7
+ * Registry dispatch: DaemonCommandRouter.executeDaemonCommand looks up the cmd in
8
+ * lowFamilyRegistry BEFORE its switch; a hit returns the handler result, a miss
9
+ * falls through to the remaining switch (and ultimately CommandHandler delegation).
10
+ */
11
+ import type { CommandRouterDeps, CommandRouterResult } from '../router.js';
12
+ export interface LowFamilyContext {
13
+ deps: CommandRouterDeps;
14
+ }
15
+ export type LowFamilyHandler = (ctx: LowFamilyContext, args: any) => Promise<CommandRouterResult>;
16
+ export type LowFamilyRegistry = Map<string, LowFamilyHandler>;
@@ -377,7 +377,6 @@ export declare class DaemonCommandRouter {
377
377
  private isCompletedHostedSession;
378
378
  private recordIntentionalMeshSessionStop;
379
379
  private cleanupMeshSessions;
380
- private traceSessionHostAction;
381
380
  /**
382
381
  * Unified command routing.
383
382
  * Returns result for all commands: