@adhdev/daemon-core 0.9.82-rc.364 → 0.9.82-rc.366

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.
Files changed (41) hide show
  1. package/dist/commands/high-family/index.d.ts +3 -0
  2. package/dist/commands/high-family/mesh-coordinator-launch.d.ts +2 -0
  3. package/dist/commands/high-family/mesh-events.d.ts +2 -0
  4. package/dist/commands/high-family/mesh-status.d.ts +2 -0
  5. package/dist/commands/high-family/types.d.ts +60 -0
  6. package/dist/commands/med-family/cli-agent.d.ts +2 -0
  7. package/dist/commands/med-family/fast-forward.d.ts +2 -0
  8. package/dist/commands/med-family/ide.d.ts +10 -0
  9. package/dist/commands/med-family/index.d.ts +3 -0
  10. package/dist/commands/med-family/mesh-crud.d.ts +2 -0
  11. package/dist/commands/med-family/mesh-host-pairing.d.ts +2 -0
  12. package/dist/commands/med-family/mesh-queue.d.ts +2 -0
  13. package/dist/commands/med-family/types.d.ts +116 -0
  14. package/dist/commands/router.d.ts +291 -0
  15. package/dist/index.js +3824 -3565
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +3811 -3553
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/mesh/mesh-events-coordinator.d.ts +8 -0
  20. package/dist/system/hash.d.ts +8 -0
  21. package/package.json +2 -2
  22. package/src/commands/cli-manager.ts +30 -3
  23. package/src/commands/high-family/index.ts +28 -0
  24. package/src/commands/high-family/mesh-coordinator-launch.ts +592 -0
  25. package/src/commands/high-family/mesh-events.ts +47 -0
  26. package/src/commands/high-family/mesh-status.ts +639 -0
  27. package/src/commands/high-family/types.ts +76 -0
  28. package/src/commands/med-family/cli-agent.ts +218 -0
  29. package/src/commands/med-family/fast-forward.ts +198 -0
  30. package/src/commands/med-family/ide.ts +163 -0
  31. package/src/commands/med-family/index.ts +35 -0
  32. package/src/commands/med-family/mesh-crud.ts +788 -0
  33. package/src/commands/med-family/mesh-host-pairing.ts +234 -0
  34. package/src/commands/med-family/mesh-queue.ts +131 -0
  35. package/src/commands/med-family/types.ts +120 -0
  36. package/src/commands/mesh-coordinator.ts +2 -2
  37. package/src/commands/router.ts +328 -2847
  38. package/src/config/mesh-config.ts +3 -2
  39. package/src/mesh/mesh-active-work.ts +59 -81
  40. package/src/mesh/mesh-events-coordinator.ts +35 -1
  41. package/src/system/hash.ts +23 -0
@@ -0,0 +1,35 @@
1
+ /**
2
+ * RF-ROUTER MED family — command registry.
3
+ *
4
+ * Aggregates the medium-coupling command handlers extracted from
5
+ * DaemonCommandRouter.executeDaemonCommand into a single cmd → handler map. The
6
+ * router consults this registry after the LOW-family registry and before its
7
+ * switch (registry hit → return the handler result; miss → fall through to the
8
+ * remaining switch / CommandHandler delegation), so the facade and dispatch
9
+ * semantics are unchanged.
10
+ *
11
+ * MED handlers differ from LOW handlers in that they need router-private
12
+ * collaborators (mesh resolution, owner gating, inline-cache mutation, worktree /
13
+ * session cleanup, refine job starters, IDE launch). The router binds those onto
14
+ * MedFamilyContext at dispatch — see types.ts.
15
+ */
16
+ import { cliAgentHandlers } from './cli-agent.js';
17
+ import { ideHandlers } from './ide.js';
18
+ import { meshCrudHandlers } from './mesh-crud.js';
19
+ import { meshHostPairingHandlers } from './mesh-host-pairing.js';
20
+ import { meshQueueHandlers } from './mesh-queue.js';
21
+ import { fastForwardHandlers } from './fast-forward.js';
22
+ import type { MedFamilyRegistry } from './types.js';
23
+
24
+ export type { MedFamilyContext, MedFamilyHandler, MedFamilyRegistry } from './types.js';
25
+
26
+ export const medFamilyRegistry: MedFamilyRegistry = new Map(
27
+ Object.entries({
28
+ ...cliAgentHandlers,
29
+ ...ideHandlers,
30
+ ...meshCrudHandlers,
31
+ ...meshHostPairingHandlers,
32
+ ...meshQueueHandlers,
33
+ ...fastForwardHandlers,
34
+ }),
35
+ );