@wrongstack/tui 0.273.0 → 0.274.0

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
@@ -135,6 +135,9 @@ type ReasoningEffort = (typeof REASONING_EFFORTS)[number];
135
135
  declare const CACHE_TTLS: readonly ["default", "5m", "1h"];
136
136
  type CacheTtl = (typeof CACHE_TTLS)[number];
137
137
 
138
+ /** All possible statusline chip keys. */
139
+ type StatuslineItem = 'version' | 'state' | 'model' | 'tokens' | 'cache' | 'queue' | 'processes' | 'hint' | 'index' | 'breaker' | 'todos' | 'plan' | 'tasks' | 'fleet' | 'fleet_agents' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir' | 'project' | 'yolo' | 'autonomy' | 'eternal_stage' | 'goal' | 'mode' | 'auto_proceed' | 'sessions' | 'tools' | 'token_saving' | 'brain' | 'mailbox' | 'enhance' | 'debug_stream' | 'next_steps';
140
+
138
141
  /** Thin view over a SessionSummary for the resume picker. */
139
142
  interface ResumeSessionEntry {
140
143
  id: string;
@@ -174,6 +177,16 @@ type Settings = {
174
177
  logLevel: 'error' | 'warn' | 'info' | 'debug' | 'trace';
175
178
  auditLevel: 'minimal' | 'standard' | 'full';
176
179
  indexOnStart: boolean;
180
+ /** Multi-file diff summary footer cutoff. 0 = off; positive = min file count. */
181
+ multiDiffSummaryThreshold: number;
182
+ /**
183
+ * Settings-picker row the user last navigated to. Carried in the
184
+ * canonical Settings shape so reopening the picker after a session
185
+ * restart lands on the same row they were last tweaking, rather than
186
+ * always resetting to 0. Updated on every `settingsFieldMove` /
187
+ * `settingsFieldSet`; consumed by the `settingsOpen` action.
188
+ */
189
+ lastSettingsField: number;
177
190
  maxIterations: number;
178
191
  /** Maximum auto-proceed iterations (0 = unlimited). */
179
192
  autoProceedMaxIterations: number;
@@ -392,14 +405,14 @@ interface RunTuiOptions {
392
405
  * visible bar without a round-trip. The initial value is loaded from
393
406
  * the config file before App mounts.
394
407
  */
395
- statuslineHiddenItems: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>;
396
- setStatuslineHiddenItems: (items: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>) => void;
408
+ statuslineHiddenItems: StatuslineItem[];
409
+ setStatuslineHiddenItems: (items: StatuslineItem[]) => void;
397
410
  /**
398
411
  * Atomically updates in-memory state AND persists to
399
412
  * ~/.wrongstack/statusline.json. Used by the statusline picker to
400
413
  * make each toggle immediately durable.
401
414
  */
402
- saveStatuslineHiddenItems: (items: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>) => Promise<void>;
415
+ saveStatuslineHiddenItems: (items: StatuslineItem[]) => Promise<void>;
403
416
  /**
404
417
  * Controller for the agents monitor overlay. App installs a dispatch-backed
405
418
  * setter on mount so the `/agents on|off` slash command can toggle the