@wrongstack/tui 0.273.0 → 0.273.1

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;
@@ -392,14 +395,14 @@ interface RunTuiOptions {
392
395
  * visible bar without a round-trip. The initial value is loaded from
393
396
  * the config file before App mounts.
394
397
  */
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;
398
+ statuslineHiddenItems: StatuslineItem[];
399
+ setStatuslineHiddenItems: (items: StatuslineItem[]) => void;
397
400
  /**
398
401
  * Atomically updates in-memory state AND persists to
399
402
  * ~/.wrongstack/statusline.json. Used by the statusline picker to
400
403
  * make each toggle immediately durable.
401
404
  */
402
- saveStatuslineHiddenItems: (items: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>) => Promise<void>;
405
+ saveStatuslineHiddenItems: (items: StatuslineItem[]) => Promise<void>;
403
406
  /**
404
407
  * Controller for the agents monitor overlay. App installs a dispatch-backed
405
408
  * setter on mount so the `/agents on|off` slash command can toggle the