@wrongstack/tui 0.10.2 → 0.24.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 +9 -0
- package/dist/index.js +429 -154
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -234,6 +234,15 @@ interface RunTuiOptions {
|
|
|
234
234
|
mode: 'off' | 'suggest' | 'auto';
|
|
235
235
|
delayMs: number;
|
|
236
236
|
}) => string | null | Promise<string | null>;
|
|
237
|
+
/**
|
|
238
|
+
* Predict likely next steps after a completed turn. The CLI wires this from
|
|
239
|
+
* the session provider and the `/next` toggle; it returns [] when prediction
|
|
240
|
+
* is disabled or autonomy isn't 'off'. Display-only — never executed.
|
|
241
|
+
*/
|
|
242
|
+
predictNext?: (input: {
|
|
243
|
+
userRequest: string;
|
|
244
|
+
assistantSummary: string;
|
|
245
|
+
}) => Promise<string[]>;
|
|
237
246
|
}
|
|
238
247
|
declare function runTui(opts: RunTuiOptions): Promise<number>;
|
|
239
248
|
|