@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.
- package/dist/app-action-type.d.ts +85 -1
- package/dist/app-key-handler.d.ts +1 -1
- package/dist/app-panel-state.d.ts +561 -0
- package/dist/app-props.d.ts +21 -1
- package/dist/app-reducer.d.ts +1 -1
- package/dist/app-state-core-types.d.ts +13 -0
- package/dist/app-state.d.ts +8 -534
- package/dist/app-status-region.d.ts +2 -1
- package/dist/app-ui-state.d.ts +2 -0
- package/dist/app-view-contract.d.ts +1 -1
- package/dist/app-view-pickers.d.ts +2 -1
- package/dist/app-view-state.d.ts +2 -0
- package/dist/app.d.ts +2 -2
- package/dist/auth-panel-model.d.ts +1 -0
- package/dist/background-strip-model.d.ts +65 -0
- package/dist/brain-panel-model.d.ts +7 -7
- package/dist/chat-search-slash.d.ts +15 -0
- package/dist/clipboard.d.ts +14 -1
- package/dist/components/agent-monitor-presentation.d.ts +61 -0
- package/dist/components/agents-monitor.d.ts +3 -49
- package/dist/components/audit-panel.d.ts +2 -1
- package/dist/components/auth-panel.d.ts +3 -1
- package/dist/components/background-strip.d.ts +20 -0
- package/dist/components/brain-panel.d.ts +3 -1
- package/dist/components/chat-search-bar.d.ts +19 -0
- package/dist/components/checkpoint-timeline.d.ts +7 -3
- package/dist/components/confirm-prompt.d.ts +6 -7
- package/dist/components/connections-panel.d.ts +2 -1
- package/dist/components/context-panel-sections.d.ts +53 -0
- package/dist/components/context-panel-types.d.ts +66 -0
- package/dist/components/context-panel.d.ts +2 -66
- package/dist/components/exit-confirm-panel.d.ts +2 -0
- package/dist/components/file-picker.d.ts +2 -1
- package/dist/components/help-panel.d.ts +5 -3
- package/dist/components/history/code-block.d.ts +2 -136
- package/dist/components/history/diff-model.d.ts +143 -0
- package/dist/components/history/scroll-controller-types.d.ts +11 -0
- package/dist/components/history/scrollbar-rail.d.ts +14 -2
- package/dist/components/history/use-history-controller.d.ts +5 -0
- package/dist/components/history/utils.d.ts +3 -9
- package/dist/components/history/visual-tool-output.d.ts +8 -0
- package/dist/components/input.d.ts +1 -1
- package/dist/components/kanban-panel-presentation.d.ts +114 -0
- package/dist/components/kanban-panel.d.ts +2 -47
- package/dist/components/mailbox-panel.d.ts +2 -1
- package/dist/components/mcp-picker.d.ts +3 -1
- package/dist/components/mode-picker.d.ts +3 -1
- package/dist/components/model-picker.d.ts +1 -1
- package/dist/components/monitor-shell.d.ts +19 -4
- package/dist/components/phase-monitor.d.ts +3 -1
- package/dist/components/plugin-picker.d.ts +3 -1
- package/dist/components/powerline-rail.d.ts +6 -3
- package/dist/components/prompt-picker-model.d.ts +16 -0
- package/dist/components/prompt-picker.d.ts +2 -16
- package/dist/components/provider-colors.d.ts +2 -12
- package/dist/components/refine-countdown-panel.d.ts +4 -3
- package/dist/components/resource-menu-model.d.ts +3 -0
- package/dist/components/resource-menu.d.ts +3 -3
- package/dist/components/scrollable-history.d.ts +1 -1
- package/dist/components/send-mode-model.d.ts +44 -0
- package/dist/components/send-mode-picker.d.ts +2 -43
- package/dist/components/settings-picker-row-list.d.ts +2 -1
- package/dist/components/settings-picker.d.ts +3 -1
- package/dist/components/shadow-panel.d.ts +2 -1
- package/dist/components/sidebar-content.d.ts +1 -47
- package/dist/components/sidebar-ipc-icons.d.ts +9 -0
- package/dist/components/sidebar-panel-agents.d.ts +10 -0
- package/dist/components/sidebar-panel-connections.d.ts +11 -0
- package/dist/components/sidebar-panel-coordinator.d.ts +11 -0
- package/dist/components/sidebar-panel-fleet.d.ts +16 -0
- package/dist/components/sidebar-panel-project.d.ts +12 -0
- package/dist/components/sidebar-panel-worktree.d.ts +10 -0
- package/dist/components/sidebar-panel-wrong-proxy.d.ts +25 -0
- package/dist/components/sidebar-panels-workspace.d.ts +10 -79
- package/dist/components/sidebar-presentation.d.ts +98 -0
- package/dist/components/sidebar.d.ts +3 -1
- package/dist/components/skill-picker.d.ts +2 -1
- package/dist/components/slash-confirm-panel.d.ts +2 -0
- package/dist/components/slash-menu.d.ts +2 -1
- package/dist/components/slash-modal-frame.d.ts +9 -0
- package/dist/components/status-bar-rails-async.d.ts +2 -2
- package/dist/components/status-bar-types.d.ts +6 -0
- package/dist/components/status-bar.d.ts +1 -1
- package/dist/components/statusline-picker-model.d.ts +45 -0
- package/dist/components/statusline-picker.d.ts +2 -41
- package/dist/components/tools-picker.d.ts +3 -1
- package/dist/components/user-input-prompt.d.ts +4 -2
- package/dist/connection-actions.d.ts +20 -0
- package/dist/connections-health.d.ts +8 -1
- package/dist/esc-close-panels.d.ts +0 -1
- package/dist/f-key-panels.d.ts +4 -0
- package/dist/hooks/fork-at-checkpoint.d.ts +25 -0
- package/dist/hooks/use-active-theme.d.ts +2 -1
- package/dist/hooks/use-app-execution-pipeline.d.ts +1 -1
- package/dist/hooks/use-app-panels-state.d.ts +1 -1
- package/dist/hooks/use-app-picker-keys.d.ts +5 -2
- package/dist/hooks/use-chip-staleness-guard.d.ts +6 -0
- package/dist/hooks/use-core-tui-commands.d.ts +7 -2
- package/dist/hooks/use-file-search.d.ts +10 -0
- package/dist/hooks/use-fleet-generation-gate.d.ts +4 -3
- package/dist/hooks/use-panel-controllers.d.ts +1 -1
- package/dist/hooks/use-picker-keys-brain-statusline.d.ts +4 -0
- package/dist/hooks/use-picker-keys-types.d.ts +1 -0
- package/dist/hooks/use-provider-warmup.d.ts +9 -0
- package/dist/hooks/use-queue-manager.d.ts +11 -1
- package/dist/hooks/use-session-rewind.d.ts +8 -1
- package/dist/hooks/use-shadow-panel.d.ts +1 -1
- package/dist/hooks/use-sidebar-panel-data.d.ts +7 -5
- package/dist/hooks/use-skill-mention-picker.d.ts +6 -0
- package/dist/hooks/use-slash-picker.d.ts +1 -1
- package/dist/hooks/use-stable-key-handler.d.ts +8 -1
- package/dist/hooks/use-status-sync-interval.d.ts +3 -2
- package/dist/hooks/use-statusbar-view-model.d.ts +2 -2
- package/dist/hooks/use-tui-environment-state.d.ts +3 -0
- package/dist/hooks/use-tui-event-bridge.d.ts +12 -0
- package/dist/hooks/use-windowed-picker.d.ts +3 -4
- package/dist/index.js +29522 -25452
- package/dist/ink.d.ts +5 -5
- package/dist/input-graphemes.d.ts +4 -0
- package/dist/input-key-router.d.ts +2 -0
- package/dist/input-tokens.d.ts +10 -0
- package/dist/input-validation/action-types.d.ts +1 -1
- package/dist/input-validation/limits.d.ts +2 -0
- package/dist/input-validation-coordination.d.ts +9 -0
- package/dist/input-validation-display.d.ts +9 -0
- package/dist/input-validation.d.ts +0 -52
- package/dist/kanban-arguments.d.ts +48 -0
- package/dist/kanban-command-types.d.ts +53 -0
- package/dist/kanban-reports.d.ts +42 -0
- package/dist/kanban-slash.d.ts +4 -125
- package/dist/key-routes/key-route-background-strip.d.ts +14 -0
- package/dist/key-routes/key-route-chat-search.d.ts +24 -0
- package/dist/key-routes/key-route-overlay.d.ts +2 -2
- package/dist/layout-store.d.ts +2 -2
- package/dist/memory-slash-render.d.ts +1 -1
- package/dist/message-checkpoint.d.ts +19 -0
- package/dist/motion.d.ts +16 -0
- package/dist/on-panel-open.d.ts +1 -1
- package/dist/picker-text-input.d.ts +4 -0
- package/dist/reducers/chat-search.d.ts +11 -0
- package/dist/reducers/composer-action-types.d.ts +6 -0
- package/dist/reducers/composer-pickers.d.ts +4 -0
- package/dist/reducers/composer.d.ts +1 -5
- package/dist/reducers/message-jump.d.ts +16 -0
- package/dist/reducers/panel-pickers.d.ts +1 -1
- package/dist/reducers/workspace-panels.d.ts +1 -1
- package/dist/resume-session-tree.d.ts +8 -0
- package/dist/rewind-prompt.d.ts +24 -0
- package/dist/run-tui-options.d.ts +24 -5
- package/dist/scroll-anchor.d.ts +6 -0
- package/dist/statusline-palette.d.ts +4 -0
- package/dist/submit-controller.d.ts +1 -1
- package/dist/submit-slash-command.d.ts +67 -0
- package/dist/theme-utils.d.ts +1 -1
- package/dist/transcript-search.d.ts +38 -0
- package/dist/ui-contracts.d.ts +2 -1
- package/dist/use-app-controller.d.ts +157 -0
- package/dist/use-controller-key-pipeline.d.ts +217 -0
- 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
|
|
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. */
|