@wrongstack/tui 0.109.1 → 0.141.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 +21 -0
- package/dist/index.js +334 -125
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,12 @@ type Settings = {
|
|
|
33
33
|
auditLevel: 'minimal' | 'standard' | 'full';
|
|
34
34
|
indexOnStart: boolean;
|
|
35
35
|
maxIterations: number;
|
|
36
|
+
/** Prompt refinement preview countdown (ms). */
|
|
37
|
+
enhanceDelayMs: number;
|
|
38
|
+
/** Raw SSE stream debugging — hex-dump every byte received from providers. */
|
|
39
|
+
debugStream: boolean;
|
|
40
|
+
/** Where to persist settings: 'global' or 'project'. */
|
|
41
|
+
configScope: 'global' | 'project';
|
|
36
42
|
};
|
|
37
43
|
|
|
38
44
|
interface RunTuiOptions {
|
|
@@ -115,6 +121,21 @@ interface RunTuiOptions {
|
|
|
115
121
|
modeLabel?: string | undefined;
|
|
116
122
|
/** Live getter for the agent mode label so the status bar updates after /mode. */
|
|
117
123
|
getModeLabel?: (() => string) | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Called ONCE on mount by the App to install its debug-stream telemetry
|
|
126
|
+
* callback. The CLI wires this to setDebugStreamCallback() from
|
|
127
|
+
* @wrongstack/providers. On App unmount, the default stderr callback
|
|
128
|
+
* is restored.
|
|
129
|
+
*/
|
|
130
|
+
registerDebugStreamCallback?: ((cb: (stats: {
|
|
131
|
+
chunkCount: number;
|
|
132
|
+
lastChunkSize: number;
|
|
133
|
+
lastDeltaMs: number;
|
|
134
|
+
totalBytes: number;
|
|
135
|
+
lastChunkAt: string;
|
|
136
|
+
}) => void) => void) | undefined;
|
|
137
|
+
/** Called on App unmount — restores the default stderr debug-stream callback. */
|
|
138
|
+
restoreDebugStreamCallback?: (() => void) | undefined;
|
|
118
139
|
/** Called from /clear so the TUI can wipe its history entries while agent.ctx + memory are cleared separately. */
|
|
119
140
|
onClearHistory?: ((dispatch: React.Dispatch<{
|
|
120
141
|
type: 'clearHistory';
|