@wrongstack/tui 1.0.19 → 1.0.26

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 (159) hide show
  1. package/dist/app-action-type.d.ts +85 -1
  2. package/dist/app-key-handler.d.ts +1 -1
  3. package/dist/app-panel-state.d.ts +561 -0
  4. package/dist/app-props.d.ts +21 -1
  5. package/dist/app-reducer.d.ts +1 -1
  6. package/dist/app-state-core-types.d.ts +13 -0
  7. package/dist/app-state.d.ts +8 -534
  8. package/dist/app-status-region.d.ts +2 -1
  9. package/dist/app-ui-state.d.ts +2 -0
  10. package/dist/app-view-contract.d.ts +1 -1
  11. package/dist/app-view-pickers.d.ts +2 -1
  12. package/dist/app-view-state.d.ts +2 -0
  13. package/dist/app.d.ts +2 -2
  14. package/dist/auth-panel-model.d.ts +1 -0
  15. package/dist/background-strip-model.d.ts +65 -0
  16. package/dist/brain-panel-model.d.ts +7 -7
  17. package/dist/chat-search-slash.d.ts +15 -0
  18. package/dist/clipboard.d.ts +14 -1
  19. package/dist/components/agent-monitor-presentation.d.ts +61 -0
  20. package/dist/components/agents-monitor.d.ts +3 -49
  21. package/dist/components/audit-panel.d.ts +2 -1
  22. package/dist/components/auth-panel.d.ts +3 -1
  23. package/dist/components/background-strip.d.ts +20 -0
  24. package/dist/components/brain-panel.d.ts +3 -1
  25. package/dist/components/chat-search-bar.d.ts +19 -0
  26. package/dist/components/checkpoint-timeline.d.ts +7 -3
  27. package/dist/components/confirm-prompt.d.ts +6 -7
  28. package/dist/components/connections-panel.d.ts +2 -1
  29. package/dist/components/context-panel-sections.d.ts +53 -0
  30. package/dist/components/context-panel-types.d.ts +66 -0
  31. package/dist/components/context-panel.d.ts +2 -66
  32. package/dist/components/exit-confirm-panel.d.ts +2 -0
  33. package/dist/components/file-picker.d.ts +2 -1
  34. package/dist/components/help-panel.d.ts +5 -3
  35. package/dist/components/history/code-block.d.ts +2 -136
  36. package/dist/components/history/diff-model.d.ts +143 -0
  37. package/dist/components/history/scroll-controller-types.d.ts +11 -0
  38. package/dist/components/history/scrollbar-rail.d.ts +14 -2
  39. package/dist/components/history/use-history-controller.d.ts +5 -0
  40. package/dist/components/history/utils.d.ts +3 -9
  41. package/dist/components/history/visual-tool-output.d.ts +8 -0
  42. package/dist/components/input.d.ts +1 -1
  43. package/dist/components/kanban-panel-presentation.d.ts +114 -0
  44. package/dist/components/kanban-panel.d.ts +2 -47
  45. package/dist/components/mailbox-panel.d.ts +2 -1
  46. package/dist/components/mcp-picker.d.ts +3 -1
  47. package/dist/components/mode-picker.d.ts +3 -1
  48. package/dist/components/model-picker.d.ts +1 -1
  49. package/dist/components/monitor-shell.d.ts +19 -4
  50. package/dist/components/phase-monitor.d.ts +3 -1
  51. package/dist/components/plugin-picker.d.ts +3 -1
  52. package/dist/components/powerline-rail.d.ts +6 -3
  53. package/dist/components/prompt-picker-model.d.ts +16 -0
  54. package/dist/components/prompt-picker.d.ts +2 -16
  55. package/dist/components/provider-colors.d.ts +2 -12
  56. package/dist/components/refine-countdown-panel.d.ts +4 -3
  57. package/dist/components/resource-menu-model.d.ts +3 -0
  58. package/dist/components/resource-menu.d.ts +3 -3
  59. package/dist/components/scrollable-history.d.ts +1 -1
  60. package/dist/components/send-mode-model.d.ts +44 -0
  61. package/dist/components/send-mode-picker.d.ts +2 -43
  62. package/dist/components/settings-picker-row-list.d.ts +2 -1
  63. package/dist/components/settings-picker.d.ts +3 -1
  64. package/dist/components/shadow-panel.d.ts +2 -1
  65. package/dist/components/sidebar-content.d.ts +1 -47
  66. package/dist/components/sidebar-ipc-icons.d.ts +9 -0
  67. package/dist/components/sidebar-panel-agents.d.ts +10 -0
  68. package/dist/components/sidebar-panel-connections.d.ts +11 -0
  69. package/dist/components/sidebar-panel-coordinator.d.ts +11 -0
  70. package/dist/components/sidebar-panel-fleet.d.ts +16 -0
  71. package/dist/components/sidebar-panel-project.d.ts +12 -0
  72. package/dist/components/sidebar-panel-worktree.d.ts +10 -0
  73. package/dist/components/sidebar-panel-wrong-proxy.d.ts +25 -0
  74. package/dist/components/sidebar-panels-workspace.d.ts +10 -79
  75. package/dist/components/sidebar-presentation.d.ts +98 -0
  76. package/dist/components/sidebar.d.ts +3 -1
  77. package/dist/components/skill-picker.d.ts +2 -1
  78. package/dist/components/slash-confirm-panel.d.ts +2 -0
  79. package/dist/components/slash-menu.d.ts +2 -1
  80. package/dist/components/slash-modal-frame.d.ts +9 -0
  81. package/dist/components/status-bar-rails-async.d.ts +2 -2
  82. package/dist/components/status-bar-types.d.ts +6 -0
  83. package/dist/components/status-bar.d.ts +1 -1
  84. package/dist/components/statusline-picker-model.d.ts +45 -0
  85. package/dist/components/statusline-picker.d.ts +2 -41
  86. package/dist/components/tools-picker.d.ts +3 -1
  87. package/dist/components/user-input-prompt.d.ts +4 -2
  88. package/dist/connection-actions.d.ts +20 -0
  89. package/dist/connections-health.d.ts +8 -1
  90. package/dist/esc-close-panels.d.ts +0 -1
  91. package/dist/f-key-panels.d.ts +4 -0
  92. package/dist/hooks/fork-at-checkpoint.d.ts +25 -0
  93. package/dist/hooks/use-active-theme.d.ts +2 -1
  94. package/dist/hooks/use-app-execution-pipeline.d.ts +1 -1
  95. package/dist/hooks/use-app-panels-state.d.ts +1 -1
  96. package/dist/hooks/use-app-picker-keys.d.ts +5 -2
  97. package/dist/hooks/use-chip-staleness-guard.d.ts +6 -0
  98. package/dist/hooks/use-core-tui-commands.d.ts +7 -2
  99. package/dist/hooks/use-file-search.d.ts +10 -0
  100. package/dist/hooks/use-fleet-generation-gate.d.ts +4 -3
  101. package/dist/hooks/use-panel-controllers.d.ts +1 -1
  102. package/dist/hooks/use-picker-keys-brain-statusline.d.ts +4 -0
  103. package/dist/hooks/use-picker-keys-types.d.ts +1 -0
  104. package/dist/hooks/use-provider-warmup.d.ts +9 -0
  105. package/dist/hooks/use-queue-manager.d.ts +11 -1
  106. package/dist/hooks/use-session-rewind.d.ts +8 -1
  107. package/dist/hooks/use-shadow-panel.d.ts +1 -1
  108. package/dist/hooks/use-sidebar-panel-data.d.ts +7 -5
  109. package/dist/hooks/use-skill-mention-picker.d.ts +6 -0
  110. package/dist/hooks/use-slash-picker.d.ts +1 -1
  111. package/dist/hooks/use-stable-key-handler.d.ts +8 -1
  112. package/dist/hooks/use-status-sync-interval.d.ts +3 -2
  113. package/dist/hooks/use-statusbar-view-model.d.ts +2 -2
  114. package/dist/hooks/use-tui-environment-state.d.ts +3 -0
  115. package/dist/hooks/use-tui-event-bridge.d.ts +12 -0
  116. package/dist/hooks/use-windowed-picker.d.ts +3 -4
  117. package/dist/index.js +29522 -25452
  118. package/dist/ink.d.ts +5 -5
  119. package/dist/input-graphemes.d.ts +4 -0
  120. package/dist/input-key-router.d.ts +2 -0
  121. package/dist/input-tokens.d.ts +10 -0
  122. package/dist/input-validation/action-types.d.ts +1 -1
  123. package/dist/input-validation/limits.d.ts +2 -0
  124. package/dist/input-validation-coordination.d.ts +9 -0
  125. package/dist/input-validation-display.d.ts +9 -0
  126. package/dist/input-validation.d.ts +0 -52
  127. package/dist/kanban-arguments.d.ts +48 -0
  128. package/dist/kanban-command-types.d.ts +53 -0
  129. package/dist/kanban-reports.d.ts +42 -0
  130. package/dist/kanban-slash.d.ts +4 -125
  131. package/dist/key-routes/key-route-background-strip.d.ts +14 -0
  132. package/dist/key-routes/key-route-chat-search.d.ts +24 -0
  133. package/dist/key-routes/key-route-overlay.d.ts +2 -2
  134. package/dist/layout-store.d.ts +2 -2
  135. package/dist/memory-slash-render.d.ts +1 -1
  136. package/dist/message-checkpoint.d.ts +19 -0
  137. package/dist/motion.d.ts +16 -0
  138. package/dist/on-panel-open.d.ts +1 -1
  139. package/dist/picker-text-input.d.ts +4 -0
  140. package/dist/reducers/chat-search.d.ts +11 -0
  141. package/dist/reducers/composer-action-types.d.ts +6 -0
  142. package/dist/reducers/composer-pickers.d.ts +4 -0
  143. package/dist/reducers/composer.d.ts +1 -5
  144. package/dist/reducers/message-jump.d.ts +16 -0
  145. package/dist/reducers/panel-pickers.d.ts +1 -1
  146. package/dist/reducers/workspace-panels.d.ts +1 -1
  147. package/dist/resume-session-tree.d.ts +8 -0
  148. package/dist/rewind-prompt.d.ts +24 -0
  149. package/dist/run-tui-options.d.ts +24 -5
  150. package/dist/scroll-anchor.d.ts +6 -0
  151. package/dist/statusline-palette.d.ts +4 -0
  152. package/dist/submit-controller.d.ts +1 -1
  153. package/dist/submit-slash-command.d.ts +67 -0
  154. package/dist/theme-utils.d.ts +1 -1
  155. package/dist/transcript-search.d.ts +38 -0
  156. package/dist/ui-contracts.d.ts +2 -1
  157. package/dist/use-app-controller.d.ts +157 -0
  158. package/dist/use-controller-key-pipeline.d.ts +217 -0
  159. package/package.json +7 -7
@@ -42,6 +42,26 @@ export type Action = {
42
42
  type: 'clearHistory';
43
43
  model?: string | undefined;
44
44
  provider?: string | undefined;
45
+ cwd?: string | undefined;
46
+ sessionId?: string | undefined;
47
+ /**
48
+ * Tells the reducer the boot-time restored transcript source has been
49
+ * discarded (e.g. by `/clear`). When explicitly `null` (not just
50
+ * omitted), the reducer resets the resume-derived state slice to the
51
+ * fresh values `createInitialState` would have produced with no
52
+ * restored entries: `historyBudget = undefined`, `autoProceedHold = false`,
53
+ * and `nextId` re-seeded from the surviving banner only. Pass
54
+ * `undefined` to leave the resume slice intact (existing behavior for
55
+ * `session.rewound` / `project.switched`).
56
+ */
57
+ restoredMessages?: readonly unknown[] | null | undefined;
58
+ restoredToolCalls?: readonly unknown[] | null | undefined;
59
+ restoredEvents?: readonly unknown[] | null | undefined;
60
+ /**
61
+ * Keep the checkpoint list. A rewind clears the screen but the
62
+ * checkpoints up to its target still belong to this conversation.
63
+ */
64
+ keepCheckpoints?: boolean | undefined;
45
65
  } | {
46
66
  type: 'streamDelta';
47
67
  delta: string;
@@ -83,6 +103,31 @@ export type Action = {
83
103
  } | {
84
104
  type: 'inspectOverlayScroll';
85
105
  delta: number;
106
+ }
107
+ /** Open the transcript search bar, optionally with a prefilled query. */
108
+ | {
109
+ type: 'chatSearchOpen';
110
+ query?: string | undefined;
111
+ includeReasoning: boolean;
112
+ } | {
113
+ type: 'chatSearchSetQuery';
114
+ query: string;
115
+ includeReasoning: boolean;
116
+ }
117
+ /** Move the selection: -1 = older match, +1 = newer match (wraps). */
118
+ | {
119
+ type: 'chatSearchStep';
120
+ delta: -1 | 1;
121
+ includeReasoning: boolean;
122
+ } | {
123
+ type: 'chatSearchClose';
124
+ }
125
+ /** Alt+↑ / Alt+↓: jump to the previous / next user message. */
126
+ | {
127
+ type: 'messageJump';
128
+ direction: -1 | 1;
129
+ } | {
130
+ type: 'messageJumpClear';
86
131
  } | {
87
132
  type: 'brainStatus';
88
133
  state: State['brain']['state'];
@@ -229,6 +274,12 @@ export type Action = {
229
274
  } | {
230
275
  type: 'skillPickerOpen';
231
276
  entries: SkillEntry[];
277
+ mention?: import('@wrongstack/core/skill-mentions').SkillMention | undefined;
278
+ } | {
279
+ type: 'skillMentionResults';
280
+ entries: SkillEntry[];
281
+ hint?: string | undefined;
282
+ mention: import('@wrongstack/core/skill-mentions').SkillMention;
232
283
  } | {
233
284
  type: 'skillPickerClose';
234
285
  } | {
@@ -369,6 +420,15 @@ export type Action = {
369
420
  /** Total entries in the replay, for the batch counter. */
370
421
  total: number;
371
422
  done?: boolean | undefined;
423
+ /** Keep input gated until replay effects and suggestion restoration settle. */
424
+ holdUntilSettled?: boolean | undefined;
425
+ /** Actual attached session metadata; absent for read-only replay. */
426
+ banner?: {
427
+ sessionId: string;
428
+ cwd?: string | undefined;
429
+ model?: string | undefined;
430
+ provider?: string | undefined;
431
+ } | undefined;
372
432
  contextSnapshot?: ContextSnapshot | undefined;
373
433
  }
374
434
  /**
@@ -725,6 +785,9 @@ export type Action = {
725
785
  } | {
726
786
  type: 'helpHint';
727
787
  text?: string | undefined;
788
+ } | {
789
+ type: 'helpScrollDetail';
790
+ delta: number;
728
791
  } | {
729
792
  type: 'shadowOpen';
730
793
  shadow: ShadowState;
@@ -1081,10 +1144,20 @@ export type Action = {
1081
1144
  } | {
1082
1145
  type: 'checkpointReceived';
1083
1146
  cp: State['checkpoints'][0];
1084
- } | {
1147
+ }
1148
+ /** `selected` preselects a row (a message picked with Alt+↑); default the newest. */
1149
+ | {
1085
1150
  type: 'rewindOverlayOpen';
1151
+ selected?: number | undefined;
1086
1152
  } | {
1087
1153
  type: 'rewindOverlayClose';
1154
+ }
1155
+ /** Fork the session at a checkpoint and switch to the fork. */
1156
+ | {
1157
+ type: 'checkpointFork';
1158
+ promptIndex: number;
1159
+ } | {
1160
+ type: 'forkRequestDone';
1088
1161
  } | {
1089
1162
  type: 'rewindOverlayMove';
1090
1163
  delta: number;
@@ -1122,6 +1195,17 @@ export type Action = {
1122
1195
  agent?: string | undefined;
1123
1196
  /** True when the task starts, false when it completes/fails. */
1124
1197
  active: boolean;
1198
+ } | {
1199
+ /** A task finished successfully; the reducer owns the count arithmetic. */
1200
+ type: 'goalRunTaskCompleted';
1201
+ phaseId: string;
1202
+ taskId: string;
1203
+ } | {
1204
+ /** Attach the assigned agent to an already-active task (reducer-owned). */
1205
+ type: 'goalRunTaskAgent';
1206
+ phaseId: string;
1207
+ taskId: string;
1208
+ agent?: string | undefined;
1125
1209
  } | {
1126
1210
  type: 'goalRunMonitorToggle';
1127
1211
  } | {
@@ -1,4 +1,4 @@
1
- import type { KeyEvent } from './components/input.js';
1
+ import { type KeyEvent } from './components/input.js';
2
2
  import type { AppKeyHandlerOptions } from './key-handler-context.js';
3
3
  export type { AppKeyHandlerOptions } from './key-handler-context.js';
4
4
  /** Keyboard activity means the user has taken control of an armed automatic turn. */