@wrongstack/tui 0.284.1 → 0.286.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.
Files changed (249) hide show
  1. package/dist/app-initial-state.d.ts +28 -0
  2. package/dist/app-initial-state.d.ts.map +1 -0
  3. package/dist/app-reducer.d.ts +5 -0
  4. package/dist/app-reducer.d.ts.map +1 -0
  5. package/dist/app-state.d.ts +1841 -0
  6. package/dist/app-state.d.ts.map +1 -0
  7. package/dist/app.d.ts +593 -0
  8. package/dist/app.d.ts.map +1 -0
  9. package/dist/clipboard.d.ts +2 -0
  10. package/dist/clipboard.d.ts.map +1 -0
  11. package/dist/components/agents-monitor.d.ts +114 -0
  12. package/dist/components/agents-monitor.d.ts.map +1 -0
  13. package/dist/components/animation-style.d.ts +51 -0
  14. package/dist/components/animation-style.d.ts.map +1 -0
  15. package/dist/components/audit-panel.d.ts +9 -0
  16. package/dist/components/audit-panel.d.ts.map +1 -0
  17. package/dist/components/auth-panel-model.d.ts +150 -0
  18. package/dist/components/auth-panel-model.d.ts.map +1 -0
  19. package/dist/components/auth-panel.d.ts +8 -0
  20. package/dist/components/auth-panel.d.ts.map +1 -0
  21. package/dist/components/autonomy-picker.d.ts +15 -0
  22. package/dist/components/autonomy-picker.d.ts.map +1 -0
  23. package/dist/components/brain-decision-prompt.d.ts +28 -0
  24. package/dist/components/brain-decision-prompt.d.ts.map +1 -0
  25. package/dist/components/brain-panel-model.d.ts +107 -0
  26. package/dist/components/brain-panel-model.d.ts.map +1 -0
  27. package/dist/components/brain-panel.d.ts +22 -0
  28. package/dist/components/brain-panel.d.ts.map +1 -0
  29. package/dist/components/checkpoint-timeline.d.ts +19 -0
  30. package/dist/components/checkpoint-timeline.d.ts.map +1 -0
  31. package/dist/components/confirm-prompt.d.ts +26 -0
  32. package/dist/components/confirm-prompt.d.ts.map +1 -0
  33. package/dist/components/continue-confirm-panel.d.ts +47 -0
  34. package/dist/components/continue-confirm-panel.d.ts.map +1 -0
  35. package/dist/components/coordinator-panel.d.ts +11 -0
  36. package/dist/components/coordinator-panel.d.ts.map +1 -0
  37. package/dist/components/design-picker.d.ts +14 -0
  38. package/dist/components/design-picker.d.ts.map +1 -0
  39. package/dist/components/enhance-panel.d.ts +36 -0
  40. package/dist/components/enhance-panel.d.ts.map +1 -0
  41. package/dist/components/esc-confirm-prompt.d.ts +17 -0
  42. package/dist/components/esc-confirm-prompt.d.ts.map +1 -0
  43. package/dist/components/f-key-picker.d.ts +13 -0
  44. package/dist/components/f-key-picker.d.ts.map +1 -0
  45. package/dist/components/file-picker.d.ts +8 -0
  46. package/dist/components/file-picker.d.ts.map +1 -0
  47. package/dist/components/fleet-monitor.d.ts +60 -0
  48. package/dist/components/fleet-monitor.d.ts.map +1 -0
  49. package/dist/components/fleet-panel.d.ts +69 -0
  50. package/dist/components/fleet-panel.d.ts.map +1 -0
  51. package/dist/components/goal-panel.d.ts +17 -0
  52. package/dist/components/goal-panel.d.ts.map +1 -0
  53. package/dist/components/help-overlay.d.ts +27 -0
  54. package/dist/components/help-overlay.d.ts.map +1 -0
  55. package/dist/components/help-panel.d.ts +16 -0
  56. package/dist/components/help-panel.d.ts.map +1 -0
  57. package/dist/components/history/assistant.d.ts +61 -0
  58. package/dist/components/history/assistant.d.ts.map +1 -0
  59. package/dist/components/history/banner.d.ts +13 -0
  60. package/dist/components/history/banner.d.ts.map +1 -0
  61. package/dist/components/history/code-block.d.ts +217 -0
  62. package/dist/components/history/code-block.d.ts.map +1 -0
  63. package/dist/components/history/entry.d.ts +19 -0
  64. package/dist/components/history/entry.d.ts.map +1 -0
  65. package/dist/components/history/index.d.ts +21 -0
  66. package/dist/components/history/index.d.ts.map +1 -0
  67. package/dist/components/history/replay.d.ts +44 -0
  68. package/dist/components/history/replay.d.ts.map +1 -0
  69. package/dist/components/history/types.d.ts +146 -0
  70. package/dist/components/history/types.d.ts.map +1 -0
  71. package/dist/components/history/utils.d.ts +65 -0
  72. package/dist/components/history/utils.d.ts.map +1 -0
  73. package/dist/components/history.d.ts +2 -0
  74. package/dist/components/history.d.ts.map +1 -0
  75. package/dist/components/input.d.ts +57 -0
  76. package/dist/components/input.d.ts.map +1 -0
  77. package/dist/components/kanban-panel.d.ts +7 -0
  78. package/dist/components/kanban-panel.d.ts.map +1 -0
  79. package/dist/components/key-hint-bar.d.ts +31 -0
  80. package/dist/components/key-hint-bar.d.ts.map +1 -0
  81. package/dist/components/live-activity-strip.d.ts +39 -0
  82. package/dist/components/live-activity-strip.d.ts.map +1 -0
  83. package/dist/components/mailbox-panel.d.ts +40 -0
  84. package/dist/components/mailbox-panel.d.ts.map +1 -0
  85. package/dist/components/mcp-picker.d.ts +18 -0
  86. package/dist/components/mcp-picker.d.ts.map +1 -0
  87. package/dist/components/mode-picker.d.ts +17 -0
  88. package/dist/components/mode-picker.d.ts.map +1 -0
  89. package/dist/components/model-picker.d.ts +37 -0
  90. package/dist/components/model-picker.d.ts.map +1 -0
  91. package/dist/components/phase-monitor.d.ts +33 -0
  92. package/dist/components/phase-monitor.d.ts.map +1 -0
  93. package/dist/components/phase-panel.d.ts +22 -0
  94. package/dist/components/phase-panel.d.ts.map +1 -0
  95. package/dist/components/plan-panel.d.ts +17 -0
  96. package/dist/components/plan-panel.d.ts.map +1 -0
  97. package/dist/components/plugin-picker.d.ts +22 -0
  98. package/dist/components/plugin-picker.d.ts.map +1 -0
  99. package/dist/components/process-list.d.ts +14 -0
  100. package/dist/components/process-list.d.ts.map +1 -0
  101. package/dist/components/project-picker.d.ts +21 -0
  102. package/dist/components/project-picker.d.ts.map +1 -0
  103. package/dist/components/prompt-picker.d.ts +31 -0
  104. package/dist/components/prompt-picker.d.ts.map +1 -0
  105. package/dist/components/provider-colors.d.ts +40 -0
  106. package/dist/components/provider-colors.d.ts.map +1 -0
  107. package/dist/components/queue-panel.d.ts +16 -0
  108. package/dist/components/queue-panel.d.ts.map +1 -0
  109. package/dist/components/resume-picker.d.ts +16 -0
  110. package/dist/components/resume-picker.d.ts.map +1 -0
  111. package/dist/components/scrollable-history.d.ts +60 -0
  112. package/dist/components/scrollable-history.d.ts.map +1 -0
  113. package/dist/components/sdd-board-overlay.d.ts +15 -0
  114. package/dist/components/sdd-board-overlay.d.ts.map +1 -0
  115. package/dist/components/send-mode-picker.d.ts +64 -0
  116. package/dist/components/send-mode-picker.d.ts.map +1 -0
  117. package/dist/components/sessions-panel.d.ts +46 -0
  118. package/dist/components/sessions-panel.d.ts.map +1 -0
  119. package/dist/components/settings-picker.d.ts +387 -0
  120. package/dist/components/settings-picker.d.ts.map +1 -0
  121. package/dist/components/shadow-panel.d.ts +13 -0
  122. package/dist/components/shadow-panel.d.ts.map +1 -0
  123. package/dist/components/shell-command-warning.d.ts +9 -0
  124. package/dist/components/shell-command-warning.d.ts.map +1 -0
  125. package/dist/components/slash-menu.d.ts +9 -0
  126. package/dist/components/slash-menu.d.ts.map +1 -0
  127. package/dist/components/status-bar.d.ts +378 -0
  128. package/dist/components/status-bar.d.ts.map +1 -0
  129. package/dist/components/statusline-picker.d.ts +55 -0
  130. package/dist/components/statusline-picker.d.ts.map +1 -0
  131. package/dist/components/suggestions.d.ts +9 -0
  132. package/dist/components/suggestions.d.ts.map +1 -0
  133. package/dist/components/todos-monitor.d.ts +13 -0
  134. package/dist/components/todos-monitor.d.ts.map +1 -0
  135. package/dist/components/tools-picker.d.ts +20 -0
  136. package/dist/components/tools-picker.d.ts.map +1 -0
  137. package/dist/components/worktree-monitor.d.ts +23 -0
  138. package/dist/components/worktree-monitor.d.ts.map +1 -0
  139. package/dist/components/worktree-panel.d.ts +21 -0
  140. package/dist/components/worktree-panel.d.ts.map +1 -0
  141. package/dist/f-key-panels.d.ts +46 -0
  142. package/dist/f-key-panels.d.ts.map +1 -0
  143. package/dist/file-search.d.ts +3 -0
  144. package/dist/file-search.d.ts.map +1 -0
  145. package/dist/fn-keys.d.ts +20 -0
  146. package/dist/fn-keys.d.ts.map +1 -0
  147. package/dist/git-info.d.ts +20 -0
  148. package/dist/git-info.d.ts.map +1 -0
  149. package/dist/heap-watchdog.d.ts +41 -0
  150. package/dist/heap-watchdog.d.ts.map +1 -0
  151. package/dist/highlight.d.ts +30 -0
  152. package/dist/highlight.d.ts.map +1 -0
  153. package/dist/hit-test.d.ts +75 -0
  154. package/dist/hit-test.d.ts.map +1 -0
  155. package/dist/hooks/fleet-chat-coalescer.d.ts +32 -0
  156. package/dist/hooks/fleet-chat-coalescer.d.ts.map +1 -0
  157. package/dist/hooks/use-auth-panel.d.ts +38 -0
  158. package/dist/hooks/use-auth-panel.d.ts.map +1 -0
  159. package/dist/hooks/use-autonomous-coordinator.d.ts +21 -0
  160. package/dist/hooks/use-autonomous-coordinator.d.ts.map +1 -0
  161. package/dist/hooks/use-brain-events.d.ts +7 -0
  162. package/dist/hooks/use-brain-events.d.ts.map +1 -0
  163. package/dist/hooks/use-brain-panel.d.ts +43 -0
  164. package/dist/hooks/use-brain-panel.d.ts.map +1 -0
  165. package/dist/hooks/use-director-fleet-bridge.d.ts +31 -0
  166. package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -0
  167. package/dist/hooks/use-file-search.d.ts +42 -0
  168. package/dist/hooks/use-file-search.d.ts.map +1 -0
  169. package/dist/hooks/use-input-history-persistence.d.ts +14 -0
  170. package/dist/hooks/use-input-history-persistence.d.ts.map +1 -0
  171. package/dist/hooks/use-mode-picker.d.ts +15 -0
  172. package/dist/hooks/use-mode-picker.d.ts.map +1 -0
  173. package/dist/hooks/use-model-pick.d.ts +34 -0
  174. package/dist/hooks/use-model-pick.d.ts.map +1 -0
  175. package/dist/hooks/use-paste-handling.d.ts +30 -0
  176. package/dist/hooks/use-paste-handling.d.ts.map +1 -0
  177. package/dist/hooks/use-picker-keys.d.ts +72 -0
  178. package/dist/hooks/use-picker-keys.d.ts.map +1 -0
  179. package/dist/hooks/use-prompt-picker.d.ts +28 -0
  180. package/dist/hooks/use-prompt-picker.d.ts.map +1 -0
  181. package/dist/hooks/use-queue-manager.d.ts +26 -0
  182. package/dist/hooks/use-queue-manager.d.ts.map +1 -0
  183. package/dist/hooks/use-statusline-hidden-sync.d.ts +14 -0
  184. package/dist/hooks/use-statusline-hidden-sync.d.ts.map +1 -0
  185. package/dist/hooks/use-statusline-state.d.ts +44 -0
  186. package/dist/hooks/use-statusline-state.d.ts.map +1 -0
  187. package/dist/hooks/use-stream-chip-expiration.d.ts +25 -0
  188. package/dist/hooks/use-stream-chip-expiration.d.ts.map +1 -0
  189. package/dist/hooks/use-subagent-events.d.ts +16 -0
  190. package/dist/hooks/use-subagent-events.d.ts.map +1 -0
  191. package/dist/hooks/use-token-counter-refresh.d.ts +30 -0
  192. package/dist/hooks/use-token-counter-refresh.d.ts.map +1 -0
  193. package/dist/hooks/use-tui-controllers.d.ts +37 -0
  194. package/dist/hooks/use-tui-controllers.d.ts.map +1 -0
  195. package/dist/hooks/use-tui-event-bridge.d.ts +29 -0
  196. package/dist/hooks/use-tui-event-bridge.d.ts.map +1 -0
  197. package/dist/hooks/use-working-dir-chip.d.ts +8 -0
  198. package/dist/hooks/use-working-dir-chip.d.ts.map +1 -0
  199. package/dist/index.d.ts +12 -910
  200. package/dist/index.d.ts.map +1 -0
  201. package/dist/index.js +4348 -2974
  202. package/dist/index.js.map +7 -1
  203. package/dist/ink.d.ts +20 -0
  204. package/dist/ink.d.ts.map +1 -0
  205. package/dist/input-editing.d.ts +76 -0
  206. package/dist/input-editing.d.ts.map +1 -0
  207. package/dist/input-tokens.d.ts +65 -0
  208. package/dist/input-tokens.d.ts.map +1 -0
  209. package/dist/kill-slash.d.ts +3 -0
  210. package/dist/kill-slash.d.ts.map +1 -0
  211. package/dist/markdown-table.d.ts +45 -0
  212. package/dist/markdown-table.d.ts.map +1 -0
  213. package/dist/markdown.d.ts +47 -0
  214. package/dist/markdown.d.ts.map +1 -0
  215. package/dist/mouse.d.ts +73 -0
  216. package/dist/mouse.d.ts.map +1 -0
  217. package/dist/on-panel-open.d.ts +62 -0
  218. package/dist/on-panel-open.d.ts.map +1 -0
  219. package/dist/paste-accumulator.d.ts +19 -0
  220. package/dist/paste-accumulator.d.ts.map +1 -0
  221. package/dist/ps-slash.d.ts +7 -0
  222. package/dist/ps-slash.d.ts.map +1 -0
  223. package/dist/queue-slash.d.ts +24 -0
  224. package/dist/queue-slash.d.ts.map +1 -0
  225. package/dist/reducers/fleet.d.ts +16 -0
  226. package/dist/reducers/fleet.d.ts.map +1 -0
  227. package/dist/reducers/helpers.d.ts +38 -0
  228. package/dist/reducers/helpers.d.ts.map +1 -0
  229. package/dist/rehydrate-history.d.ts +40 -0
  230. package/dist/rehydrate-history.d.ts.map +1 -0
  231. package/dist/run-tui.d.ts +522 -0
  232. package/dist/run-tui.d.ts.map +1 -0
  233. package/dist/sdd-lifecycle-entry.d.ts +18 -0
  234. package/dist/sdd-lifecycle-entry.d.ts.map +1 -0
  235. package/dist/slash-command-search.d.ts +10 -0
  236. package/dist/slash-command-search.d.ts.map +1 -0
  237. package/dist/steering-preamble.d.ts +25 -0
  238. package/dist/steering-preamble.d.ts.map +1 -0
  239. package/dist/submit-history.d.ts +17 -0
  240. package/dist/submit-history.d.ts.map +1 -0
  241. package/dist/terminal-title.d.ts +12 -0
  242. package/dist/terminal-title.d.ts.map +1 -0
  243. package/dist/theme.d.ts +91 -0
  244. package/dist/theme.d.ts.map +1 -0
  245. package/dist/thinking-word.d.ts +26 -0
  246. package/dist/thinking-word.d.ts.map +1 -0
  247. package/dist/tool-glyph.d.ts +18 -0
  248. package/dist/tool-glyph.d.ts.map +1 -0
  249. package/package.json +8 -9
@@ -0,0 +1,91 @@
1
+ export declare const pastel: Readonly<{
2
+ readonly black: '#11111b';
3
+ readonly red: '#f38ba8';
4
+ readonly green: '#a6e3a1';
5
+ readonly yellow: '#f9e2af';
6
+ readonly blue: '#89b4fa';
7
+ readonly magenta: '#cba6f7';
8
+ readonly cyan: '#94e2d5';
9
+ readonly white: '#cdd6f4';
10
+ readonly gray: '#7f849c';
11
+ readonly grey: '#7f849c';
12
+ readonly blackBright: '#585b70';
13
+ readonly redBright: '#eba0ac';
14
+ readonly greenBright: '#b8e8b0';
15
+ readonly yellowBright: '#f5e6b8';
16
+ readonly blueBright: '#89dceb';
17
+ readonly magentaBright: '#b4befe';
18
+ readonly cyanBright: '#99e6da';
19
+ readonly whiteBright: '#ffffff';
20
+ }>;
21
+ /**
22
+ * Resolve a color value to its pastel equivalent. Known ANSI names map to the
23
+ * {@link pastel} hex; hex/rgb strings and unknown values (e.g. Ink's `'dim'`)
24
+ * pass through unchanged. `undefined` stays `undefined` so callers can spread
25
+ * it without forcing a color.
26
+ */
27
+ export declare function softColor(color?: string): string | undefined;
28
+ /**
29
+ * Whether the host terminal can render truecolor backgrounds.
30
+ *
31
+ * Surfaced as `theme.supportsBackground` so diff / status / progress
32
+ * components can opt out of pastel background washes on plain terminals
33
+ * (e.g. `TERM=xterm`, `NO_COLOR=1`, or a piped non-TTY). Detection follows
34
+ * the chalk / supports-color convention: explicit `NO_COLOR` wins, then
35
+ * `COLORTERM=truecolor|24bit`, then a `TERM` substring match. Default is
36
+ * `true` (most modern terminals are truecolor); a missing TTY flips it to
37
+ * `false` so captured output stays clean.
38
+ *
39
+ * Both `env` and `isTTY` are overridable so unit tests can exercise every
40
+ * branch without mutating process state.
41
+ */
42
+ export declare function detectSupportsBackground(env?: NodeJS.ProcessEnv, isTTY?: boolean): boolean;
43
+ export interface Theme {
44
+ /** Primary accent — prompts, links, tool names, assistant label. */
45
+ accent: string;
46
+ /** USER: label + the user's own message text marker. */
47
+ user: string;
48
+ /** ASSISTANT: label. */
49
+ assistant: string;
50
+ /** Tool name / tool activity. */
51
+ tool: string;
52
+ /** Success states (✓, passing, added diff lines). */
53
+ success: string;
54
+ /** Warnings, queued items, the user-input label. */
55
+ warn: string;
56
+ /** Errors, failures, deleted diff lines, danger chips. */
57
+ error: string;
58
+ /** Muted/secondary text. `true` maps to Ink's `dimColor`; a color name also works. */
59
+ dim: true | string;
60
+ /**
61
+ * Whether the host terminal can render truecolor backgrounds. Determined
62
+ * at startup from `process.env.TERM` / `COLORTERM` / `NO_COLOR` plus
63
+ * `process.stdout.isTTY`; passed to diff blocks so they can fall back to
64
+ * marker-only colouring when the terminal strips backgrounds.
65
+ */
66
+ supportsBackground: boolean;
67
+ /** Default (quiet) border color for panels. */
68
+ borderDefault: string;
69
+ /** Active/attention border (confirm prompts, focused frames). */
70
+ borderActive: string;
71
+ /** Banner / brand accent. */
72
+ brand: string;
73
+ /** Per-monitor accent borders so each overlay has a distinct identity. */
74
+ monitor: {
75
+ fleet: string;
76
+ agents: string;
77
+ worktree: string;
78
+ phase: string;
79
+ };
80
+ /**
81
+ * Diff add/delete row washes. Dark, low-luminance tints (deep green /
82
+ * deep maroon) so the row reads as added/removed while the foreground
83
+ * text — including syntax-highlight pastels — keeps full contrast on
84
+ * top. Mirrors the Claude Code diff look rather than a light pastel
85
+ * wash with dark text.
86
+ */
87
+ diffAddBg: string;
88
+ diffDelBg: string;
89
+ }
90
+ export declare const theme: Theme;
91
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,MAAM;oBAEV,SAAS;kBACX,SAAS;oBACP,SAAS;qBACR,SAAS;mBACX,SAAS;sBACN,SAAS;mBACZ,SAAS;oBACR,SAAS;mBAEV,SAAS;mBACT,SAAS;0BAEF,SAAS;wBACX,SAAS;0BACP,SAAS;2BACR,SAAS;yBACX,SAAS;4BACN,SAAS;yBACZ,SAAS;0BACR,SAAS;EACb,CAAC;AAEZ;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG5D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,GAAE,MAAM,CAAC,UAAwB,EACpC,KAAK,GAAE,OAAuC,GAC7C,OAAO,CAUT;AAED,MAAM,WAAW,KAAK;IACpB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,sFAAsF;IACtF,GAAG,EAAE,IAAI,GAAG,MAAM,CAAC;IACnB;;;;;OAKG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B,+CAA+C;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,KAAK,EAAE,KA6BlB,CAAC"}
@@ -0,0 +1,26 @@
1
+ export declare const DEFAULT_TUI_THINKING_WORD = "thinking";
2
+ export declare const MAX_TUI_THINKING_WORD_LENGTH = 16;
3
+ /**
4
+ * Pool of fun working-state words surfaced when the user hasn't pinned a
5
+ * specific one. Every entry must satisfy {@link normalizeTuiThinkingWord}
6
+ * (single token, ≤ {@link MAX_TUI_THINKING_WORD_LENGTH} chars) so it renders
7
+ * verbatim in the statusline chip.
8
+ */
9
+ export declare const TUI_THINKING_WORD_POOL: readonly ['pondering', 'cogitating', 'ruminating', 'noodling', 'brewing', 'conjuring', 'percolating', 'scheming', 'tinkering', 'vibing', 'crafting', 'wrangling', 'summoning', 'finagling', 'marinating', 'hatching', 'juggling', 'spelunking', 'contemplating', 'bamboozling', 'alchemizing', 'incubating', 'doodling', 'mulling'];
10
+ /**
11
+ * Normalize the configurable statusline word shown while the TUI is working.
12
+ * The value must be a single short word; invalid values fall back to the default.
13
+ */
14
+ export declare function normalizeTuiThinkingWord(value: unknown): string;
15
+ /**
16
+ * Whether the configured value should resolve to a random pool word rather than
17
+ * a fixed one. True when the user never set a word (empty/unset), left it at the
18
+ * literal default `'thinking'`, or explicitly asked for `'random'`.
19
+ */
20
+ export declare function isRandomTuiThinkingWord(value: unknown): boolean;
21
+ /**
22
+ * Pick a random word from {@link TUI_THINKING_WORD_POOL}, avoiding `previous`
23
+ * when possible so consecutive working spells feel varied.
24
+ */
25
+ export declare function pickRandomTuiThinkingWord(previous?: string): string;
26
+ //# sourceMappingURL=thinking-word.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thinking-word.d.ts","sourceRoot":"","sources":["../src/thinking-word.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,aAAa,CAAC;AACpD,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,YACjC,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,aAAa,EACb,UAAU,EACV,WAAW,EACX,QAAQ,EACR,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,UAAU,EACV,YAAY,EACZ,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,UAAU,EACV,SAAS,CACD,CAAC;AAEX;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQ/D;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI/D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAMnE"}
@@ -0,0 +1,18 @@
1
+ import { type ToolIconId } from '@wrongstack/tools/tool-icons';
2
+ /**
3
+ * Canonical ToolIconId → single-width terminal glyph. Chosen from ranges with
4
+ * broad monospace coverage (Geometric Shapes / Dingbats / Math Operators).
5
+ */
6
+ export declare const TOOL_GLYPHS: Record<ToolIconId, string>;
7
+ export interface ToolVisual {
8
+ /** Single-width terminal glyph for the tool. */
9
+ glyph: string;
10
+ /** Canonical hex color (same value the WebUI uses). */
11
+ color: string;
12
+ }
13
+ /**
14
+ * Resolve a tool name to its `{ glyph, color }` for TUI rendering.
15
+ * Unknown / MCP / plugin tools fall back to the neutral `•` glyph + gray color.
16
+ */
17
+ export declare function getToolVisual(name: string): ToolVisual;
18
+ //# sourceMappingURL=tool-glyph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-glyph.d.ts","sourceRoot":"","sources":["../src/tool-glyph.ts"],"names":[],"mappings":"AAWA,OAAO,EAAiC,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAyBlD,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAGtD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/tui",
3
- "version": "0.284.1",
3
+ "version": "0.286.0",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
6
6
  "repository": {
@@ -27,24 +27,23 @@
27
27
  "dependencies": {
28
28
  "ink": "^7.1.0",
29
29
  "react": "^19.2.7",
30
- "@wrongstack/core": "0.284.1",
31
- "@wrongstack/tools": "0.284.1",
32
- "@wrongstack/kanban": "0.284.1",
33
- "@wrongstack/runtime": "0.284.1",
34
- "@wrongstack/sdd": "0.284.1"
30
+ "@wrongstack/core": "0.286.0",
31
+ "@wrongstack/sdd": "0.286.0",
32
+ "@wrongstack/kanban": "0.286.0",
33
+ "@wrongstack/runtime": "0.286.0",
34
+ "@wrongstack/tools": "0.286.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^26.0.1",
38
38
  "@types/react": "^19.2.17",
39
39
  "ink-testing-library": "^4.0.0",
40
- "tsup": "^8.5.1",
41
- "typescript": "^6.0.3"
40
+ "typescript": "^7.0.2"
42
41
  },
43
42
  "publishConfig": {
44
43
  "access": "public"
45
44
  },
46
45
  "scripts": {
47
- "build": "tsup",
46
+ "build": "node ../../scripts/build-package.mjs",
48
47
  "test": "vitest run --config vitest.config.ts",
49
48
  "test:watch": "vitest --config vitest.config.ts",
50
49
  "test:coverage": "vitest run --coverage --config vitest.config.ts",