@adhdev/daemon-core 1.0.28-rc.10 → 1.0.28-rc.11

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.
@@ -174,6 +174,13 @@ export interface CliAdapter {
174
174
  resolveModal?(buttonIndex: number): void;
175
175
  resolveModalMatched?(buttonIndex: number): boolean;
176
176
  isApprovalRecentlyResolved?(): boolean;
177
+ /**
178
+ * TX-FSM Stage 0 (shadow): receive the daemon-normalized transcript signal
179
+ * observation (SignalSnapshot envelope, providers/spec/signal-envelope.ts).
180
+ * Optional — only the spec-driven FSM adapter implements it; callers must
181
+ * typeof-guard. Shadow-only: the observation can never gate a transition.
182
+ */
183
+ setSignalObservation?(snapshot: unknown): void;
177
184
  setOnPtyData?(callback: (data: string) => void): void;
178
185
  writeRaw?(data: string): void;
179
186
  resize?(cols: number, rows: number): void;
@@ -7,6 +7,20 @@ export interface DaemonUpgradeHelperPayload {
7
7
  restartArgv: string[];
8
8
  cwd?: string;
9
9
  sessionHostAppName?: string;
10
+ /**
11
+ * Restart-only mode: wait for the parent daemon to exit, then re-spawn it
12
+ * without running any npm install. Used by daemon_restart (mesh
13
+ * restart_daemon_node mode="restart") to reset daemon state (memory leaks,
14
+ * zombie sessions, wedged internals) with minimal downtime.
15
+ */
16
+ skipInstall?: boolean;
17
+ /**
18
+ * Opt-in hard refresh: also stop the session-host process, which destroys
19
+ * EVERY hosted CLI session (no idle-gate — see SessionHostServer.stop).
20
+ * Mirrors what Windows already does unconditionally on upgrade (conpty.node
21
+ * lock). Default off: POSIX leaves the host running so sessions rebind.
22
+ */
23
+ killSessionHost?: boolean;
10
24
  }
11
25
  export interface CurrentGlobalInstallSurface {
12
26
  npmExecutable: string;