@wrongstack/tui 0.265.1 → 0.267.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
@@ -125,6 +125,10 @@ interface ProviderOption {
125
125
  modelsLabel?: string | undefined;
126
126
  }
127
127
 
128
+ /** Context window mode options — cyclable via ←/→. */
129
+ declare const CONTEXT_MODES: readonly ["balanced", "frugal", "deep", "archival"];
130
+ type ContextMode = (typeof CONTEXT_MODES)[number];
131
+
128
132
  /** Thin view over a SessionSummary for the resume picker. */
129
133
  interface ResumeSessionEntry {
130
134
  id: string;
@@ -159,6 +163,8 @@ type Settings = {
159
163
  allowOutsideProjectRoot: boolean;
160
164
  contextAutoCompact: boolean;
161
165
  contextStrategy: 'hybrid' | 'intelligent' | 'selective';
166
+ contextMode: ContextMode;
167
+ maxConcurrent: number;
162
168
  logLevel: 'error' | 'warn' | 'info' | 'debug' | 'trace';
163
169
  auditLevel: 'minimal' | 'standard' | 'full';
164
170
  indexOnStart: boolean;
@@ -363,6 +369,12 @@ interface RunTuiOptions {
363
369
  */
364
370
  statuslineHiddenItems: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>;
365
371
  setStatuslineHiddenItems: (items: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>) => void;
372
+ /**
373
+ * Atomically updates in-memory state AND persists to
374
+ * ~/.wrongstack/statusline.json. Used by the statusline picker to
375
+ * make each toggle immediately durable.
376
+ */
377
+ saveStatuslineHiddenItems: (items: Array<'todos' | 'plan' | 'tasks' | 'fleet' | 'git' | 'elapsed' | 'context' | 'cost' | 'working_dir'>) => Promise<void>;
366
378
  /**
367
379
  * Controller for the agents monitor overlay. App installs a dispatch-backed
368
380
  * setter on mount so the `/agents on|off` slash command can toggle the
@@ -372,6 +384,14 @@ interface RunTuiOptions {
372
384
  visible: boolean;
373
385
  setVisible: (visible: boolean) => void;
374
386
  } | undefined;
387
+ /**
388
+ * Mutable ref for opening TUI panels from slash commands. The slash commands
389
+ * call `onPanelOpen.current(action)` to open panels. The App sets
390
+ * `onPanelOpen.current` to its actual dispatch function on mount.
391
+ */
392
+ onPanelOpen?: {
393
+ current: ((action: string) => boolean) | null;
394
+ } | undefined;
375
395
  /**
376
396
  * If set, the App boots straight into goal mode — the text is wrapped
377
397
  * in the GOAL preamble and submitted as the first turn. Lets users