@wrongstack/tui 0.282.0 → 0.282.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/README.md +2 -2
- package/dist/index.d.ts +14 -18
- package/dist/index.js +638 -508
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ const exitCode = await runTui({
|
|
|
23
23
|
slashRegistry, // SlashCommandRegistry
|
|
24
24
|
attachments: new DefaultAttachmentStore(),
|
|
25
25
|
events: new DefaultEventBus(),
|
|
26
|
-
model: '
|
|
26
|
+
model: 'anthropic-test-model',
|
|
27
27
|
banner: true,
|
|
28
28
|
yolo: false,
|
|
29
29
|
appVersion: '0.1.6',
|
|
@@ -40,7 +40,7 @@ process.exit(exitCode);
|
|
|
40
40
|
|
|
41
41
|
```
|
|
42
42
|
┌─ banner ─────────────────────────────────────────────┐
|
|
43
|
-
│ wrongstack 0.1.6 — anthropic ·
|
|
43
|
+
│ wrongstack 0.1.6 — anthropic · anthropic-test-model │
|
|
44
44
|
└──────────────────────────────────────────────────────┘
|
|
45
45
|
user> refactor auth.ts to async/await
|
|
46
46
|
⠋ thinking (3 tools used · 4.2k tokens · 1.3s)
|
package/dist/index.d.ts
CHANGED
|
@@ -220,10 +220,9 @@ interface PluginPickerItem {
|
|
|
220
220
|
summary: string;
|
|
221
221
|
/**
|
|
222
222
|
* When false the row is locked: the picker renders a 🔒 marker and ignores
|
|
223
|
-
* Enter/←/→ on it.
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
* matching the rationale in `PLUGIN_AUDIT_ENTRIES`.
|
|
223
|
+
* Enter/←/→ on it. The current built-in audit list is fully toggleable, but
|
|
224
|
+
* the component keeps this marker for future or externally supplied locked
|
|
225
|
+
* rows.
|
|
227
226
|
*/
|
|
228
227
|
lockable?: boolean | undefined;
|
|
229
228
|
}
|
|
@@ -842,22 +841,20 @@ declare function replaySessionEvents(events: SessionEvent[], startId: number): H
|
|
|
842
841
|
* Unified next-steps suggestion parser.
|
|
843
842
|
*
|
|
844
843
|
* Three code paths feed into the suggestion store:
|
|
845
|
-
* 1. TUI rendering — entry.tsx parses
|
|
846
|
-
* 2. REPL store — repl.ts parses
|
|
844
|
+
* 1. TUI rendering — entry.tsx parses only "<nextsteps>" from assistant output
|
|
845
|
+
* 2. REPL store — repl.ts parses only "<nextsteps>" from final agent output
|
|
847
846
|
* 3. /suggest output — suggest.ts parses LLM-generated numbered lists
|
|
848
847
|
*
|
|
849
848
|
* Heading mode (`requireHeading = true`):
|
|
850
|
-
*
|
|
851
|
-
*
|
|
849
|
+
* Assistant-output paths accept only balanced <nextsteps>...</nextsteps> blocks.
|
|
850
|
+
* Loose headings like "Next steps:" are intentionally ignored so `/next` only
|
|
851
|
+
* activates for the canonical machine-readable format.
|
|
852
852
|
*
|
|
853
853
|
* Raw mode (`requireHeading = false`):
|
|
854
854
|
* Parses numbered/bullet items from anywhere in text (subagent /suggest output).
|
|
855
855
|
*
|
|
856
|
-
* Supported
|
|
857
|
-
*
|
|
858
|
-
* ## Next steps (markdown heading)
|
|
859
|
-
* Next steps (plain text)
|
|
860
|
-
* <next_steps> (new XML tag format - preferred)
|
|
856
|
+
* Supported assistant-output format:
|
|
857
|
+
* <nextsteps> (canonical XML tag format)
|
|
861
858
|
*/
|
|
862
859
|
interface ParsedNextStep {
|
|
863
860
|
index: number;
|
|
@@ -871,7 +868,7 @@ interface ParseNextStepsResult {
|
|
|
871
868
|
/** Flat string array — what gets stored in the suggestion store. */
|
|
872
869
|
texts: string[];
|
|
873
870
|
/**
|
|
874
|
-
* Content with the entire
|
|
871
|
+
* Content with the entire canonical "<nextsteps>" block removed.
|
|
875
872
|
* Used by entry.tsx to strip suggestions from the rendered message body.
|
|
876
873
|
*/
|
|
877
874
|
stripped: string;
|
|
@@ -879,12 +876,11 @@ interface ParseNextStepsResult {
|
|
|
879
876
|
autoTexts: string[];
|
|
880
877
|
}
|
|
881
878
|
/**
|
|
882
|
-
* Parse "<
|
|
879
|
+
* Parse canonical "<nextsteps>" blocks from assistant output (or raw numbered lines).
|
|
883
880
|
*
|
|
884
881
|
* @param content — raw assistant message text or subagent output
|
|
885
|
-
* @param strict
|
|
886
|
-
*
|
|
887
|
-
* @param requireHeading — when true, a heading must precede the item list.
|
|
882
|
+
* @param strict — retained for compatibility; assistant-output paths always require the canonical XML tag.
|
|
883
|
+
* @param requireHeading — when true, a canonical XML tag must precede the item list.
|
|
888
884
|
* when false, numbered/bullet items are parsed from anywhere in text
|
|
889
885
|
* (used by /suggest subagent output which has no heading).
|
|
890
886
|
*/
|