@wrongstack/tui 0.73.1 → 0.77.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 +50 -10
- package/dist/index.js +1239 -206
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,28 @@ interface ProviderOption {
|
|
|
13
13
|
modelsLabel?: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
interface Settings {
|
|
17
|
+
mode: 'off' | 'suggest' | 'auto';
|
|
18
|
+
delayMs: number;
|
|
19
|
+
titleAnimation: boolean;
|
|
20
|
+
yolo: boolean;
|
|
21
|
+
streamFleet: boolean;
|
|
22
|
+
chime: boolean;
|
|
23
|
+
confirmExit: boolean;
|
|
24
|
+
nextPrediction: boolean;
|
|
25
|
+
featureMcp: boolean;
|
|
26
|
+
featurePlugins: boolean;
|
|
27
|
+
featureMemory: boolean;
|
|
28
|
+
featureSkills: boolean;
|
|
29
|
+
featureModelsRegistry: boolean;
|
|
30
|
+
contextAutoCompact: boolean;
|
|
31
|
+
contextStrategy: 'hybrid' | 'intelligent' | 'selective';
|
|
32
|
+
logLevel: 'error' | 'warn' | 'info' | 'debug' | 'trace';
|
|
33
|
+
auditLevel: 'minimal' | 'standard' | 'full';
|
|
34
|
+
indexOnStart: boolean;
|
|
35
|
+
maxIterations: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
16
38
|
interface RunTuiOptions {
|
|
17
39
|
agent: Agent;
|
|
18
40
|
slashRegistry: SlashCommandRegistry;
|
|
@@ -89,6 +111,20 @@ interface RunTuiOptions {
|
|
|
89
111
|
* while the TUI is up and only what's currently on screen is visible.
|
|
90
112
|
*/
|
|
91
113
|
altScreen?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Terminal title animation on/off. Defaults to true. When false, the
|
|
116
|
+
* OSC-0 window/tab title stays static (the app name only, no spinner).
|
|
117
|
+
* Controlled via /settings → Terminal title animation.
|
|
118
|
+
*/
|
|
119
|
+
titleAnimation?: boolean;
|
|
120
|
+
/** Play terminal bell (\\x07) when agent run completes. */
|
|
121
|
+
chime?: boolean;
|
|
122
|
+
/** Show "confirm exit" message on first Ctrl+C instead of "exit". */
|
|
123
|
+
confirmExit?: boolean;
|
|
124
|
+
/** Active agent mode label shown in the status bar (e.g. "teach", "brief"). */
|
|
125
|
+
modeLabel?: string;
|
|
126
|
+
/** Live getter for the agent mode label so the status bar updates after /mode. */
|
|
127
|
+
getModeLabel?: () => string;
|
|
92
128
|
/**
|
|
93
129
|
* Called right after we exit the alt-screen on a clean shutdown. The
|
|
94
130
|
* CLI uses this to print a one-line "session saved to …" hint into
|
|
@@ -132,6 +168,16 @@ interface RunTuiOptions {
|
|
|
132
168
|
enabled: boolean;
|
|
133
169
|
setEnabled: (enabled: boolean) => void;
|
|
134
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* Controller for the `/enhance on|off` prompt-refinement toggle. The App
|
|
173
|
+
* installs a dispatch-backed `setEnabled` here on mount so the slash command
|
|
174
|
+
* (run in the CLI process) flips the TUI's reducer flag. Mirrors
|
|
175
|
+
* `fleetStreamController`.
|
|
176
|
+
*/
|
|
177
|
+
enhanceController?: {
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
setEnabled: (enabled: boolean) => void;
|
|
180
|
+
};
|
|
135
181
|
/**
|
|
136
182
|
* Controller for status bar hidden items. App installs a dispatch-backed
|
|
137
183
|
* setter on mount so the /statusline slash command can update the TUI's
|
|
@@ -191,18 +237,12 @@ interface RunTuiOptions {
|
|
|
191
237
|
* Read the persisted autonomy settings (defaultMode, autoProceedDelayMs).
|
|
192
238
|
* Used by the SettingsPicker in the TUI on mount and after Ctrl+S toggle.
|
|
193
239
|
*/
|
|
194
|
-
getSettings?: () =>
|
|
195
|
-
mode: 'off' | 'suggest' | 'auto';
|
|
196
|
-
delayMs: number;
|
|
197
|
-
};
|
|
240
|
+
getSettings?: () => Settings;
|
|
198
241
|
/**
|
|
199
|
-
* Persist
|
|
242
|
+
* Persist settings changes. Returns null on success, or an
|
|
200
243
|
* error string on failure (so the TUI can display it as a hint).
|
|
201
244
|
*/
|
|
202
|
-
saveSettings?: (s:
|
|
203
|
-
mode: 'off' | 'suggest' | 'auto';
|
|
204
|
-
delayMs: number;
|
|
205
|
-
}) => string | null | Promise<string | null>;
|
|
245
|
+
saveSettings?: (s: Settings) => string | null | Promise<string | null>;
|
|
206
246
|
/**
|
|
207
247
|
* Predict likely next steps after a completed turn. The CLI wires this from
|
|
208
248
|
* the session provider and the `/next` toggle; it returns [] when prediction
|
|
@@ -215,4 +255,4 @@ interface RunTuiOptions {
|
|
|
215
255
|
}
|
|
216
256
|
declare function runTui(opts: RunTuiOptions): Promise<number>;
|
|
217
257
|
|
|
218
|
-
export { type RunTuiOptions, runTui };
|
|
258
|
+
export { type RunTuiOptions, type Settings, runTui };
|