@wrongstack/tui 0.9.1 → 0.9.7

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/index.d.ts CHANGED
@@ -210,6 +210,22 @@ interface RunTuiOptions {
210
210
  * PhaseMonitor and PhasePanel live views via dispatch actions.
211
211
  */
212
212
  subscribeAutoPhase?: (handler: (event: string, payload: unknown) => void) => () => void;
213
+ /**
214
+ * Read the persisted autonomy settings (defaultMode, autoProceedDelayMs).
215
+ * Used by the SettingsPicker in the TUI on mount and after Ctrl+S toggle.
216
+ */
217
+ getSettings?: () => {
218
+ mode: 'off' | 'suggest' | 'auto';
219
+ delayMs: number;
220
+ };
221
+ /**
222
+ * Persist autonomy settings changes. Returns null on success, or an
223
+ * error string on failure (so the TUI can display it as a hint).
224
+ */
225
+ saveSettings?: (s: {
226
+ mode: 'off' | 'suggest' | 'auto';
227
+ delayMs: number;
228
+ }) => string | null | Promise<string | null>;
213
229
  }
214
230
  declare function runTui(opts: RunTuiOptions): Promise<number>;
215
231
 
package/dist/index.js CHANGED
@@ -6171,7 +6171,9 @@ async function runTui(opts) {
6171
6171
  getSDDContext: opts.getSDDContext,
6172
6172
  onSDDOutput: opts.onSDDOutput,
6173
6173
  sessionsDir: opts.sessionsDir,
6174
- projectRoot: opts.projectRoot
6174
+ projectRoot: opts.projectRoot,
6175
+ getSettings: opts.getSettings,
6176
+ saveSettings: opts.saveSettings
6175
6177
  }),
6176
6178
  { exitOnCtrlC: false }
6177
6179
  );