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

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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * RF-ROUTER LOW family — coordinator-prompt override/append file commands.
3
+ *
4
+ * Extracted verbatim from DaemonCommandRouter.executeDaemonCommand. Both handlers
5
+ * read/write only the on-disk ~/.adhdev/coordinator-prompts directory (no router
6
+ * instance state) and return the same CommandRouterResult the inlined cases did.
7
+ */
8
+ import type { LowFamilyHandler } from './types.js';
9
+ export declare const coordinatorPromptHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const daemonLifecycleHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const diagnosticsHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * RF-ROUTER LOW family — mesh ledger read / slice / import commands.
3
+ *
4
+ * Extracted verbatim from DaemonCommandRouter.executeDaemonCommand. Each handler
5
+ * touches only the on-disk mesh ledger (dynamically imported mesh-ledger module)
6
+ * keyed by meshId — no router instance state — and returns the same
7
+ * CommandRouterResult the inlined cases did.
8
+ */
9
+ import type { LowFamilyHandler } from './types.js';
10
+ export declare const meshLedgerHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const meshNodeLogsHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const notificationHandlers: Record<string, LowFamilyHandler>;
@@ -0,0 +1,2 @@
1
+ import type { LowFamilyHandler } from './types.js';
2
+ export declare const statusMetaHandlers: Record<string, LowFamilyHandler>;
@@ -9,8 +9,25 @@
9
9
  * falls through to the remaining switch (and ultimately CommandHandler delegation).
10
10
  */
11
11
  import type { CommandRouterDeps, CommandRouterResult } from '../router.js';
12
+ /** Mesh record resolved from the router's inline-mesh cache + local config. */
13
+ export type ResolvedMeshForCommand = {
14
+ mesh: any;
15
+ inline: boolean;
16
+ source: 'inline_cache' | 'inline_bootstrap' | 'local_config';
17
+ } | null;
12
18
  export interface LowFamilyContext {
13
19
  deps: CommandRouterDeps;
20
+ /**
21
+ * Bound `DaemonCommandRouter.getMeshForCommand`. A handful of LOW handlers
22
+ * (mesh-node-logs) must resolve a mesh node's owning daemonId from the
23
+ * router's inline-mesh cache, which is router instance state not present in
24
+ * `deps`. The router injects it at dispatch; handlers that don't need it
25
+ * ignore it. Optional so unit tests can omit it (and assert the guarded
26
+ * fallback) without constructing a full router.
27
+ */
28
+ getMeshForCommand?: (meshId: string, inlineMesh?: unknown, options?: {
29
+ preferInline?: boolean;
30
+ }) => Promise<ResolvedMeshForCommand>;
14
31
  }
15
32
  export type LowFamilyHandler = (ctx: LowFamilyContext, args: any) => Promise<CommandRouterResult>;
16
33
  export type LowFamilyRegistry = Map<string, LowFamilyHandler>;