@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.
- package/dist/commands/cli-manager.d.ts +13 -0
- package/dist/commands/low-family/index.d.ts +3 -0
- package/dist/commands/low-family/refine-config.d.ts +2 -0
- package/dist/commands/low-family/session-host.d.ts +2 -0
- package/dist/commands/low-family/spec-providerdev.d.ts +11 -0
- package/dist/commands/low-family/types.d.ts +16 -0
- package/dist/commands/router.d.ts +0 -1
- package/dist/index.js +2074 -2008
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2073 -2007
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events-utils.d.ts +0 -2
- package/package.json +2 -2
- package/src/commands/cli-manager.ts +69 -4
- package/src/commands/low-family/index.ts +23 -0
- package/src/commands/low-family/refine-config.ts +106 -0
- package/src/commands/low-family/session-host.ts +274 -0
- package/src/commands/low-family/spec-providerdev.ts +217 -0
- package/src/commands/low-family/types.ts +19 -0
- package/src/commands/router.ts +15 -555
- package/src/mesh/contracts.ts +12 -3
- package/src/mesh/mesh-events-coordinator.ts +1 -1
- package/src/mesh/mesh-events-utils.ts +0 -20
- package/src/providers/cli-provider-instance.ts +16 -3
|
@@ -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,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:
|