@adhdev/daemon-core 0.9.82-rc.23 → 0.9.82-rc.25
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 +2 -0
- package/dist/index.js +345 -166
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +345 -166
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-events.d.ts +14 -5
- package/dist/mesh/mesh-work-queue.d.ts +3 -1
- package/package.json +1 -1
- package/src/commands/router.ts +48 -22
- package/src/mesh/mesh-events.ts +157 -30
- package/src/mesh/mesh-work-queue.ts +135 -119
|
@@ -74,6 +74,8 @@ export interface CommandRouterDeps {
|
|
|
74
74
|
sessionHostControl?: SessionHostControlPlane | null;
|
|
75
75
|
/** Selected-coordinator mesh peer telemetry surface for target daemons, when supported by the runtime. */
|
|
76
76
|
getMeshPeerConnectionStatus?: (daemonId: string) => Record<string, unknown> | null;
|
|
77
|
+
/** Dispatch a command to a remote mesh node via P2P/relay. Injected by cloud runtime; absent in standalone. */
|
|
78
|
+
dispatchMeshCommand?: (daemonId: string, cmd: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
77
79
|
}
|
|
78
80
|
export interface CommandRouterResult {
|
|
79
81
|
success: boolean;
|