@adhdev/daemon-core 0.9.82-rc.353 → 0.9.82-rc.355
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/handler.d.ts +15 -0
- package/dist/index.js +703 -220
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +703 -220
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/mesh-event-trace.d.ts +21 -0
- package/dist/mesh/mesh-runtime-store.d.ts +1 -1
- package/dist/mesh/mesh-work-queue.d.ts +1 -1
- package/dist/providers/acp-provider-instance.d.ts +3 -0
- package/dist/providers/cli-provider-instance.d.ts +14 -0
- package/dist/providers/manual-attendance.d.ts +63 -0
- package/dist/providers/provider-instance.d.ts +8 -0
- package/dist/providers/spec/adapter.d.ts +22 -0
- package/dist/providers/spec/fsm-driver.d.ts +49 -7
- package/dist/providers/spec/fsm-evaluator.d.ts +4 -0
- package/dist/providers/spec/types.d.ts +9 -5
- package/package.json +2 -2
- package/src/commands/cli-manager.ts +20 -2
- package/src/commands/handler.ts +32 -0
- package/src/commands/router.ts +19 -6
- package/src/git/git-diff.ts +31 -14
- package/src/mesh/mesh-event-trace.ts +67 -0
- package/src/mesh/mesh-events-coordinator.ts +117 -12
- package/src/mesh/mesh-events-pending.ts +33 -0
- package/src/mesh/mesh-events-stale.ts +3 -1
- package/src/mesh/mesh-reconcile-loop.ts +47 -0
- package/src/mesh/mesh-runtime-store.ts +18 -2
- package/src/mesh/mesh-work-queue.ts +8 -1
- package/src/providers/acp-provider-instance.ts +18 -1
- package/src/providers/cli-provider-instance.ts +123 -7
- package/src/providers/manual-attendance.ts +85 -0
- package/src/providers/provider-instance.ts +9 -0
- package/src/providers/spec/adapter.ts +67 -0
- package/src/providers/spec/cli-adapter.ts +6 -0
- package/src/providers/spec/evaluator.ts +24 -9
- package/src/providers/spec/fsm-driver.ts +135 -13
- package/src/providers/spec/fsm-evaluator.ts +19 -2
- package/src/providers/spec/types.ts +9 -5
|
@@ -102,6 +102,21 @@ export declare class DaemonCommandHandler implements CommandHelpers {
|
|
|
102
102
|
private logCommandStart;
|
|
103
103
|
private logCommandEnd;
|
|
104
104
|
setAgentStreamManager(manager: DaemonAgentStreamManager): void;
|
|
105
|
+
/**
|
|
106
|
+
* When a command in the manual-attendance set arrives for a session this
|
|
107
|
+
* daemon hosts, stamp the live instance so auto-approve holds while the user
|
|
108
|
+
* drives the session by hand. Provider-common: the signal is the command
|
|
109
|
+
* (foreground select_session / open_panel, controlbar invoke_provider_script
|
|
110
|
+
* / set_mode / change_model / set_thought_level, manual resolve_action,
|
|
111
|
+
* pty_input), never any CLI-specific modal text — so it works identically for
|
|
112
|
+
* every CLI/ACP provider. send_chat is deliberately excluded because a
|
|
113
|
+
* coordinator delegating a task to a worker also uses send_chat; counting it
|
|
114
|
+
* would wrongly suppress the worker's delegated auto-approve. For a remote
|
|
115
|
+
* mesh worker session the controlbar commands are forwarded to the owning
|
|
116
|
+
* worker daemon, which runs this same hook there, so attendance is recorded
|
|
117
|
+
* on the daemon that actually hosts the instance.
|
|
118
|
+
*/
|
|
119
|
+
private noteManualAttendanceIfApplicable;
|
|
105
120
|
handle(cmd: string, args: any): Promise<CommandResult>;
|
|
106
121
|
private dispatch;
|
|
107
122
|
/**
|