@wrongstack/tui 0.295.1 → 0.296.3
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 +988 -0
- package/dist/app-action-type.d.ts.map +1 -0
- package/dist/app-initial-state.d.ts +1 -1
- package/dist/app-initial-state.d.ts.map +1 -1
- package/dist/app-key-handler.d.ts +11 -3
- package/dist/app-key-handler.d.ts.map +1 -1
- package/dist/app-props.d.ts +4 -2
- package/dist/app-props.d.ts.map +1 -1
- package/dist/app-reducer.d.ts +4 -2
- package/dist/app-reducer.d.ts.map +1 -1
- package/dist/app-settings-type.d.ts +75 -0
- package/dist/app-settings-type.d.ts.map +1 -0
- package/dist/app-state-core-types.d.ts +52 -0
- package/dist/app-state-core-types.d.ts.map +1 -0
- package/dist/app-state-fleet.d.ts +44 -0
- package/dist/app-state-fleet.d.ts.map +1 -0
- package/dist/app-state.d.ts +49 -1180
- package/dist/app-state.d.ts.map +1 -1
- package/dist/app-ui-state.d.ts +5 -0
- package/dist/app-ui-state.d.ts.map +1 -0
- package/dist/app-view-contract.d.ts +8 -1
- package/dist/app-view-contract.d.ts.map +1 -1
- package/dist/app-view.d.ts.map +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/brain-panel-model.d.ts +8 -0
- package/dist/brain-panel-model.d.ts.map +1 -1
- package/dist/clipboard.d.ts +1 -1
- package/dist/clipboard.d.ts.map +1 -1
- package/dist/components/agents-monitor-constants.d.ts +12 -0
- package/dist/components/agents-monitor-constants.d.ts.map +1 -0
- package/dist/components/agents-monitor.d.ts +1 -7
- package/dist/components/agents-monitor.d.ts.map +1 -1
- package/dist/components/auth-panel.d.ts +2 -0
- package/dist/components/auth-panel.d.ts.map +1 -1
- package/dist/components/brain-panel.d.ts.map +1 -1
- package/dist/components/connections-panel.d.ts +7 -0
- package/dist/components/connections-panel.d.ts.map +1 -0
- package/dist/components/f-key-picker.d.ts.map +1 -1
- package/dist/components/history/basic-format.d.ts +19 -0
- package/dist/components/history/basic-format.d.ts.map +1 -0
- package/dist/components/history/code-block-diff-helpers.d.ts +28 -0
- package/dist/components/history/code-block-diff-helpers.d.ts.map +1 -0
- package/dist/components/history/code-block.d.ts +1 -1
- package/dist/components/history/code-block.d.ts.map +1 -1
- package/dist/components/history/copy-icon.d.ts +25 -0
- package/dist/components/history/copy-icon.d.ts.map +1 -0
- package/dist/components/history/entry.d.ts.map +1 -1
- package/dist/components/history/index.d.ts +5 -6
- package/dist/components/history/index.d.ts.map +1 -1
- package/dist/components/history/sage-output-format.d.ts +58 -0
- package/dist/components/history/sage-output-format.d.ts.map +1 -0
- package/dist/components/history/stream-box.d.ts +23 -0
- package/dist/components/history/stream-box.d.ts.map +1 -0
- package/dist/components/history/tool-arg-format.d.ts +5 -0
- package/dist/components/history/tool-arg-format.d.ts.map +1 -0
- package/dist/components/history/tool-group.d.ts.map +1 -1
- package/dist/components/history/tool-output-summary.d.ts +4 -0
- package/dist/components/history/tool-output-summary.d.ts.map +1 -0
- package/dist/components/history/tool-visual-command.d.ts +3 -0
- package/dist/components/history/tool-visual-command.d.ts.map +1 -0
- package/dist/components/history/tool-visual-domain.d.ts +8 -0
- package/dist/components/history/tool-visual-domain.d.ts.map +1 -0
- package/dist/components/history/tool-visual-format.d.ts +13 -0
- package/dist/components/history/tool-visual-format.d.ts.map +1 -0
- package/dist/components/history/tool-visual-lsp.d.ts +4 -0
- package/dist/components/history/tool-visual-lsp.d.ts.map +1 -0
- package/dist/components/history/tool-visual-misc.d.ts +7 -0
- package/dist/components/history/tool-visual-misc.d.ts.map +1 -0
- package/dist/components/history/tool-visual-mode-workdir.d.ts +4 -0
- package/dist/components/history/tool-visual-mode-workdir.d.ts.map +1 -0
- package/dist/components/history/tool-visual-types.d.ts +9 -0
- package/dist/components/history/tool-visual-types.d.ts.map +1 -0
- package/dist/components/history/utils.d.ts +16 -54
- package/dist/components/history/utils.d.ts.map +1 -1
- package/dist/components/history/visual-lines.d.ts +7 -0
- package/dist/components/history/visual-lines.d.ts.map +1 -0
- package/dist/components/history/visual-memory-logs.d.ts +4 -0
- package/dist/components/history/visual-memory-logs.d.ts.map +1 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/kanban-panel.d.ts.map +1 -1
- package/dist/components/key-hint-bar.d.ts +11 -0
- package/dist/components/key-hint-bar.d.ts.map +1 -1
- package/dist/components/powerline-rail.d.ts +11 -4
- package/dist/components/powerline-rail.d.ts.map +1 -1
- package/dist/components/provider-colors.d.ts.map +1 -1
- package/dist/components/refine-countdown-panel.d.ts +25 -0
- package/dist/components/refine-countdown-panel.d.ts.map +1 -0
- package/dist/components/refine-failure-panel.d.ts +3 -1
- package/dist/components/refine-failure-panel.d.ts.map +1 -1
- package/dist/components/resume-picker.d.ts.map +1 -1
- package/dist/components/scrollable-history.d.ts +96 -17
- package/dist/components/scrollable-history.d.ts.map +1 -1
- package/dist/components/settings-picker-filter.d.ts +20 -0
- package/dist/components/settings-picker-filter.d.ts.map +1 -0
- package/dist/components/settings-picker-jumps.d.ts +16 -0
- package/dist/components/settings-picker-jumps.d.ts.map +1 -0
- package/dist/components/settings-picker-model.d.ts +271 -0
- package/dist/components/settings-picker-model.d.ts.map +1 -0
- package/dist/components/settings-picker-row-list.d.ts +21 -0
- package/dist/components/settings-picker-row-list.d.ts.map +1 -0
- package/dist/components/settings-picker.d.ts +8 -313
- package/dist/components/settings-picker.d.ts.map +1 -1
- package/dist/components/status-bar-format.d.ts +65 -0
- package/dist/components/status-bar-format.d.ts.map +1 -0
- package/dist/components/status-bar-helpers.d.ts +19 -0
- package/dist/components/status-bar-helpers.d.ts.map +1 -0
- package/dist/components/status-bar-types.d.ts +350 -0
- package/dist/components/status-bar-types.d.ts.map +1 -0
- package/dist/components/status-bar.d.ts +4 -444
- package/dist/components/status-bar.d.ts.map +1 -1
- package/dist/components/statusline-detail-panel.d.ts.map +1 -1
- package/dist/components/statusline-picker.d.ts +5 -3
- package/dist/components/statusline-picker.d.ts.map +1 -1
- package/dist/connections-health.d.ts +39 -0
- package/dist/connections-health.d.ts.map +1 -0
- package/dist/connections-slash.d.ts +12 -0
- package/dist/connections-slash.d.ts.map +1 -0
- package/dist/esc-close-panels.d.ts.map +1 -1
- package/dist/f-key-panels.d.ts +4 -2
- package/dist/f-key-panels.d.ts.map +1 -1
- package/dist/heap-watchdog.d.ts.map +1 -1
- package/dist/height-cache.d.ts.map +1 -1
- package/dist/history-archive.d.ts +69 -0
- package/dist/history-archive.d.ts.map +1 -0
- package/dist/history-entry.d.ts +52 -0
- package/dist/history-entry.d.ts.map +1 -1
- package/dist/hit-test.d.ts +3 -4
- package/dist/hit-test.d.ts.map +1 -1
- package/dist/hooks/use-app-picker-keys.d.ts +3 -2
- package/dist/hooks/use-app-picker-keys.d.ts.map +1 -1
- package/dist/hooks/use-app-runtime-refs.d.ts +38 -0
- package/dist/hooks/use-app-runtime-refs.d.ts.map +1 -0
- package/dist/hooks/use-app-session-state.d.ts +28 -0
- package/dist/hooks/use-app-session-state.d.ts.map +1 -0
- package/dist/hooks/use-autonomy-drivers.d.ts +1 -1
- package/dist/hooks/use-autonomy-drivers.d.ts.map +1 -1
- package/dist/hooks/use-brain-panel.d.ts +1 -1
- package/dist/hooks/use-brain-panel.d.ts.map +1 -1
- package/dist/hooks/use-brain-risk-sync.d.ts +11 -0
- package/dist/hooks/use-brain-risk-sync.d.ts.map +1 -0
- package/dist/hooks/use-client-telemetry.d.ts +1 -1
- package/dist/hooks/use-client-telemetry.d.ts.map +1 -1
- package/dist/hooks/use-core-tui-commands.d.ts +2 -1
- package/dist/hooks/use-core-tui-commands.d.ts.map +1 -1
- package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -1
- package/dist/hooks/use-enhance-runtime-state.d.ts +23 -0
- package/dist/hooks/use-enhance-runtime-state.d.ts.map +1 -0
- package/dist/hooks/use-git-session-status.d.ts.map +1 -1
- package/dist/hooks/use-help-panel.d.ts +6 -0
- package/dist/hooks/use-help-panel.d.ts.map +1 -0
- package/dist/hooks/use-history-copy-notice.d.ts +4 -0
- package/dist/hooks/use-history-copy-notice.d.ts.map +1 -0
- package/dist/hooks/use-history-viewport-sync.d.ts +13 -0
- package/dist/hooks/use-history-viewport-sync.d.ts.map +1 -0
- package/dist/hooks/use-initial-prompt.d.ts +1 -1
- package/dist/hooks/use-initial-prompt.d.ts.map +1 -1
- package/dist/hooks/use-interrupt-ladder.d.ts +2 -1
- package/dist/hooks/use-interrupt-ladder.d.ts.map +1 -1
- package/dist/hooks/use-kanban-board-focus.d.ts +8 -0
- package/dist/hooks/use-kanban-board-focus.d.ts.map +1 -0
- package/dist/hooks/use-live-settings-state.d.ts +20 -0
- package/dist/hooks/use-live-settings-state.d.ts.map +1 -0
- package/dist/hooks/use-mailbox-view-model.d.ts.map +1 -1
- package/dist/hooks/use-model-pick.d.ts +1 -1
- package/dist/hooks/use-model-pick.d.ts.map +1 -1
- package/dist/hooks/use-mouse-tracking.d.ts +15 -0
- package/dist/hooks/use-mouse-tracking.d.ts.map +1 -0
- package/dist/hooks/use-next-steps-auto-submit.d.ts +2 -1
- package/dist/hooks/use-next-steps-auto-submit.d.ts.map +1 -1
- package/dist/hooks/use-panel-controllers.d.ts +2 -1
- package/dist/hooks/use-panel-controllers.d.ts.map +1 -1
- package/dist/hooks/use-picker-keys-types.d.ts +56 -0
- package/dist/hooks/use-picker-keys-types.d.ts.map +1 -0
- package/dist/hooks/use-picker-keys.d.ts +2 -64
- package/dist/hooks/use-picker-keys.d.ts.map +1 -1
- package/dist/hooks/use-provider-event-bridge.d.ts +1 -1
- package/dist/hooks/use-provider-event-bridge.d.ts.map +1 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts +6 -1
- package/dist/hooks/use-session-interrupt-controller.d.ts.map +1 -1
- package/dist/hooks/use-settings-auto-save.d.ts +2 -1
- package/dist/hooks/use-settings-auto-save.d.ts.map +1 -1
- package/dist/hooks/use-shadow-panel.d.ts +17 -0
- package/dist/hooks/use-shadow-panel.d.ts.map +1 -0
- package/dist/hooks/use-slash-picker.d.ts +2 -1
- package/dist/hooks/use-slash-picker.d.ts.map +1 -1
- package/dist/hooks/use-stable-key-handler.d.ts +5 -0
- package/dist/hooks/use-stable-key-handler.d.ts.map +1 -0
- package/dist/hooks/use-statusbar-view-model.d.ts.map +1 -1
- package/dist/hooks/use-subagent-events.d.ts.map +1 -1
- package/dist/hooks/use-terminal-render-lifecycle.d.ts.map +1 -1
- package/dist/hooks/use-todos-auto-clear.d.ts +3 -0
- package/dist/hooks/use-todos-auto-clear.d.ts.map +1 -0
- package/dist/hooks/use-tui-activity.d.ts +7 -1
- package/dist/hooks/use-tui-activity.d.ts.map +1 -1
- package/dist/hooks/use-tui-environment-state.d.ts +1 -0
- package/dist/hooks/use-tui-environment-state.d.ts.map +1 -1
- package/dist/hooks/use-tui-slash-commands.d.ts +2 -1
- package/dist/hooks/use-tui-slash-commands.d.ts.map +1 -1
- package/dist/index.js +22376 -20119
- package/dist/index.js.map +4 -4
- package/dist/input-validation/action-helpers.d.ts +12 -0
- package/dist/input-validation/action-helpers.d.ts.map +1 -0
- package/dist/input-validation/action-types.d.ts +4 -0
- package/dist/input-validation/action-types.d.ts.map +1 -0
- package/dist/input-validation/allow-lists.d.ts +29 -0
- package/dist/input-validation/allow-lists.d.ts.map +1 -0
- package/dist/input-validation/limits.d.ts +27 -0
- package/dist/input-validation/limits.d.ts.map +1 -0
- package/dist/input-validation/result.d.ts +10 -0
- package/dist/input-validation/result.d.ts.map +1 -0
- package/dist/input-validation/state-entries.d.ts +22 -0
- package/dist/input-validation/state-entries.d.ts.map +1 -0
- package/dist/input-validation/terminal.d.ts +69 -0
- package/dist/input-validation/terminal.d.ts.map +1 -0
- package/dist/input-validation.d.ts +7 -176
- package/dist/input-validation.d.ts.map +1 -1
- package/dist/layout-engine.d.ts +5 -1
- package/dist/layout-engine.d.ts.map +1 -1
- package/dist/layout-store.d.ts.map +1 -1
- package/dist/mailbox-view-model-types.d.ts +19 -0
- package/dist/mailbox-view-model-types.d.ts.map +1 -0
- package/dist/memory-context-monitor.d.ts +6 -0
- package/dist/memory-context-monitor.d.ts.map +1 -1
- package/dist/memory-slash-format.d.ts +10 -0
- package/dist/memory-slash-format.d.ts.map +1 -0
- package/dist/memory-slash.d.ts.map +1 -1
- package/dist/mouse.d.ts +11 -4
- package/dist/mouse.d.ts.map +1 -1
- package/dist/on-panel-open.d.ts +1 -1
- package/dist/on-panel-open.d.ts.map +1 -1
- package/dist/overlay-key-router.d.ts +1 -1
- package/dist/overlay-key-router.d.ts.map +1 -1
- package/dist/reducers/activity.d.ts +2 -1
- package/dist/reducers/activity.d.ts.map +1 -1
- package/dist/reducers/composer.d.ts +2 -1
- package/dist/reducers/composer.d.ts.map +1 -1
- package/dist/reducers/conversation.d.ts +3 -2
- package/dist/reducers/conversation.d.ts.map +1 -1
- package/dist/reducers/dialogs.d.ts +3 -2
- package/dist/reducers/dialogs.d.ts.map +1 -1
- package/dist/reducers/fleet.d.ts +2 -1
- package/dist/reducers/fleet.d.ts.map +1 -1
- package/dist/reducers/helpers.d.ts +1 -1
- package/dist/reducers/helpers.d.ts.map +1 -1
- package/dist/reducers/panel-pickers.d.ts +2 -1
- package/dist/reducers/panel-pickers.d.ts.map +1 -1
- package/dist/reducers/settings-panel.d.ts +2 -1
- package/dist/reducers/settings-panel.d.ts.map +1 -1
- package/dist/reducers/settings-values.d.ts +2 -1
- package/dist/reducers/settings-values.d.ts.map +1 -1
- package/dist/reducers/workspace-panels.d.ts +3 -2
- package/dist/reducers/workspace-panels.d.ts.map +1 -1
- package/dist/run-tui-client-registration.d.ts +18 -0
- package/dist/run-tui-client-registration.d.ts.map +1 -0
- package/dist/run-tui-options.d.ts +569 -0
- package/dist/run-tui-options.d.ts.map +1 -0
- package/dist/run-tui-title-controller.d.ts +16 -0
- package/dist/run-tui-title-controller.d.ts.map +1 -0
- package/dist/run-tui.d.ts +5 -572
- package/dist/run-tui.d.ts.map +1 -1
- package/dist/scroll-anchor.d.ts +10 -14
- package/dist/scroll-anchor.d.ts.map +1 -1
- package/dist/settings-contracts.d.ts +6 -1
- package/dist/settings-contracts.d.ts.map +1 -1
- package/dist/submit-controller.d.ts +4 -0
- package/dist/submit-controller.d.ts.map +1 -1
- package/dist/submit-prompt-refinement.d.ts +2 -0
- package/dist/submit-prompt-refinement.d.ts.map +1 -1
- package/dist/terminal-modes.d.ts +3 -0
- package/dist/terminal-modes.d.ts.map +1 -0
- package/dist/terminal-silence.d.ts +3 -0
- package/dist/terminal-silence.d.ts.map +1 -0
- package/dist/terminal-title.d.ts +7 -1
- package/dist/terminal-title.d.ts.map +1 -1
- package/dist/tui-host-capabilities.d.ts +1 -1
- package/dist/tui-host-capabilities.d.ts.map +1 -1
- package/dist/ui-contracts.d.ts +2 -1
- package/dist/ui-contracts.d.ts.map +1 -1
- package/package.json +11 -12
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import type { Agent } from '@wrongstack/core/agent';
|
|
2
|
+
import type { AutonomousCoordinator, CoordinatorEvent, Director } from '@wrongstack/core/coordination';
|
|
3
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
4
|
+
import type { SlashCommandRegistry } from '@wrongstack/core/registry';
|
|
5
|
+
import type { QueueStore } from '@wrongstack/core/storage';
|
|
6
|
+
import type { AttachmentStore, AutonomyStage, FleetChatVerbosity, Message, TokenCounter, TokenSavingTier } from '@wrongstack/core/types';
|
|
7
|
+
import type { VisionAdapters } from '@wrongstack/runtime/vision';
|
|
8
|
+
import type { SddLifecycleResult, SddRunControl } from '@wrongstack/sdd';
|
|
9
|
+
import type { AgentTranscriptReader } from './components/agents-monitor.js';
|
|
10
|
+
import type { McpPickerItem } from './components/mcp-picker.js';
|
|
11
|
+
import type { PluginPickerItem } from './components/plugin-picker.js';
|
|
12
|
+
import type { StatuslineItem } from './components/statusline-picker.js';
|
|
13
|
+
import type { ToolPickerItem } from './components/tools-picker.js';
|
|
14
|
+
export interface RunTuiOptions {
|
|
15
|
+
agent: Agent;
|
|
16
|
+
slashRegistry: SlashCommandRegistry;
|
|
17
|
+
/** Host-owned mutable bridge for slash commands that need masked input. */
|
|
18
|
+
secretInputController?: {
|
|
19
|
+
readSecret(prompt: string): Promise<string>;
|
|
20
|
+
readText?(prompt: string): Promise<string>;
|
|
21
|
+
} | undefined;
|
|
22
|
+
attachments: AttachmentStore;
|
|
23
|
+
events: EventBus;
|
|
24
|
+
tokenCounter?: TokenCounter | undefined;
|
|
25
|
+
visionAdapters?: VisionAdapters | undefined;
|
|
26
|
+
/** Resolve current model vision support. Falls back to provider capability when omitted. */
|
|
27
|
+
supportsVision?: (() => boolean | Promise<boolean>) | undefined;
|
|
28
|
+
model: string;
|
|
29
|
+
banner?: boolean | undefined;
|
|
30
|
+
/** Persists the input queue across crashes; if omitted, the queue is in-memory only. */
|
|
31
|
+
queueStore?: QueueStore | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Called with the queue's display texts (head first) on EVERY queue change
|
|
34
|
+
* — enqueue, /queue delete, /queue clear, dequeue-for-delivery. The CLI
|
|
35
|
+
* mirrors the snapshot onto the live agent Context (core's
|
|
36
|
+
* setQueuedMessagesSnapshot) so a running agent learns what's waiting at
|
|
37
|
+
* its next iteration boundary without the queue being delivered early.
|
|
38
|
+
*/
|
|
39
|
+
onQueueChange?: ((items: string[]) => void) | undefined;
|
|
40
|
+
/** Surfaces the "⚠ YOLO" chip in the status bar. */
|
|
41
|
+
yolo?: boolean | undefined;
|
|
42
|
+
/** Query live YOLO state from the permission policy. */
|
|
43
|
+
getYolo?: (() => boolean) | undefined;
|
|
44
|
+
/** Set live YOLO state from TUI-owned controls such as ConfirmPrompt. */
|
|
45
|
+
onYolo?: ((enabled: boolean) => boolean) | undefined;
|
|
46
|
+
/** Query the live autonomy mode. */
|
|
47
|
+
getAutonomy?: (() => 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel') | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Access the eternal-autonomy engine. When autonomy mode flips to
|
|
50
|
+
* 'eternal' the TUI drives `runOneIteration()` from the post-slash hook
|
|
51
|
+
* so the engine and TUI never race for the shared Context.
|
|
52
|
+
*/
|
|
53
|
+
getEternalEngine?: (() => import('@wrongstack/core/execution').EternalAutonomyEngine | null) | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Access the parallel-eternal engine. When autonomy mode flips to
|
|
56
|
+
* 'eternal-parallel' the TUI drives `runOneIteration()` from the post-slash
|
|
57
|
+
* hook so the engine and TUI never race for the shared Context.
|
|
58
|
+
*/
|
|
59
|
+
getParallelEngine?: (() => import('@wrongstack/core/execution').ParallelEternalEngine | null) | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Access the active SDD parallel run's control surface (or null). The TUI's
|
|
62
|
+
* SIGINT handler uses it to stop a running `/sdd parallel` on the first Ctrl+C.
|
|
63
|
+
*/
|
|
64
|
+
getSddRun?: (() => SddRunControl | null) | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Apply a post-run SDD lifecycle op (clean / rollback / destroy) from the host.
|
|
67
|
+
* Drives the board overlay keys c / z / x so they work after the run ends.
|
|
68
|
+
*/
|
|
69
|
+
onSddLifecycle?: ((op: 'cleanup_worktrees' | 'rollback' | 'destroy', opts?: {
|
|
70
|
+
revertMerged?: boolean;
|
|
71
|
+
}) => Promise<SddLifecycleResult>) | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Subscribe to live per-iteration events from the eternal engine.
|
|
74
|
+
* Returns an unsubscribe function. TUI uses this to render each
|
|
75
|
+
* iteration as a live timeline entry as it lands.
|
|
76
|
+
*/
|
|
77
|
+
subscribeEternalIteration?: ((fn: (entry: import('@wrongstack/core/goal').JournalEntry) => void) => () => void) | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Subscribe to per-iteration stage transitions from the autonomy engines.
|
|
80
|
+
* TUI uses this to render live status in the status bar.
|
|
81
|
+
*/
|
|
82
|
+
subscribeEternalStage?: ((fn: (stage: AutonomyStage) => void) => () => void) | undefined;
|
|
83
|
+
/** Renders in the startup banner. Read from the CLI's package.json. */
|
|
84
|
+
appVersion?: string | undefined;
|
|
85
|
+
/** Provider id for the startup banner ("openai", "anthropic", ...). */
|
|
86
|
+
provider?: string | undefined;
|
|
87
|
+
/** Wire family — shown beneath provider in the banner. */
|
|
88
|
+
family?: string | undefined;
|
|
89
|
+
/** Last 3 chars of the active API key — shown in the banner for visual key-pick verification. */
|
|
90
|
+
keyTail?: string | undefined;
|
|
91
|
+
/** Active fallback profile name, shown in the banner (e.g. "default"). */
|
|
92
|
+
profile?: string | undefined;
|
|
93
|
+
/** Absolute path to the active profile's config.json
|
|
94
|
+
* (e.g. "~/.wrongstack/profiles/default/config.json"). When present,
|
|
95
|
+
* the banner shows the full path with the profile name highlighted,
|
|
96
|
+
* instead of the bare {@link profile} string. */
|
|
97
|
+
profileConfigPath?: string | undefined;
|
|
98
|
+
/** Background autonomy agents to display in the banner (Brain, Shadow,
|
|
99
|
+
* Kanban, Mailbox, Memory, etc.). Read from the mailbox at boot. */
|
|
100
|
+
autonomyAgents?: import('./components/history/types.js').AutonomyAgentStatus[] | undefined;
|
|
101
|
+
/** Latest version published to the npm registry (drives the
|
|
102
|
+
* "update available" indicator next to the banner version chip).
|
|
103
|
+
* Sourced from the CLI's preflight update-check. */
|
|
104
|
+
latestVersion?: string | undefined;
|
|
105
|
+
/** True when the preflight update-check found a newer version than
|
|
106
|
+
* {@link appVersion}. The banner renders `(update available)` next to
|
|
107
|
+
* the version chip when this is true, so users notice without having
|
|
108
|
+
* to read the stderr notice. */
|
|
109
|
+
updateAvailable?: boolean | undefined;
|
|
110
|
+
/** Snapshot of keyed providers + their model lists for the `/model` picker. Async — the catalog fetch may need to hit disk/network. */
|
|
111
|
+
getPickableProviders?: (() => Promise<import('./components/model-picker.js').ProviderOption[]>) | undefined;
|
|
112
|
+
/** Apply a (provider, model) pair after the picker confirms. Returns an error string on failure. */
|
|
113
|
+
switchProviderAndModel?: ((providerId: string, modelId: string) => string | null | Promise<string | null>) | undefined;
|
|
114
|
+
/** Apply an autonomy mode after the picker confirms. Returns an error string on failure. */
|
|
115
|
+
switchAutonomy?: ((mode: 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel') => string | null) | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Model-specific maxContext (tokens), resolved by the CLI via the
|
|
118
|
+
* ModelsRegistry. When omitted, the TUI falls back to the provider
|
|
119
|
+
* family's baseline (e.g. anthropic = 200_000), which can be wrong
|
|
120
|
+
* for variants like the 1M-context Opus build. The status bar's
|
|
121
|
+
* context chip uses this for its progress denominator.
|
|
122
|
+
*/
|
|
123
|
+
effectiveMaxContext?: number | undefined;
|
|
124
|
+
/** Absolute project root for goal.json loading. */
|
|
125
|
+
projectRoot?: string | undefined;
|
|
126
|
+
/** Full app config, used for HQ client publishing settings. */
|
|
127
|
+
appConfig?: import('@wrongstack/core/types').Config | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* The embedding host already owns the HQ publisher and telemetry bridges.
|
|
130
|
+
* Prevents this UI surface from opening a duplicate heartbeat-only client.
|
|
131
|
+
*/
|
|
132
|
+
hqTelemetryOwnedExternally?: boolean | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Terminal title animation on/off. Defaults to true. When false, the
|
|
135
|
+
* OSC-0 window/tab title stays static (the app name only, no spinner).
|
|
136
|
+
* Controlled via /settings → Terminal title animation.
|
|
137
|
+
*/
|
|
138
|
+
titleAnimation?: boolean | undefined;
|
|
139
|
+
/** Play terminal bell (\\x07) when agent run completes. */
|
|
140
|
+
chime?: boolean | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Enable full terminal mouse interaction (SGR drag + clickable UI). The TUI
|
|
143
|
+
* runs in the alternate screen and always owns plain wheel reports for its
|
|
144
|
+
* bounded chat viewport; this option additionally enables pointer dragging
|
|
145
|
+
* and app chrome clicks. Off by default; opt in here or via
|
|
146
|
+
* WRONGSTACK_MOUSE=1. See mouse.ts for the trade-off rationale.
|
|
147
|
+
*/
|
|
148
|
+
mouse?: boolean | undefined;
|
|
149
|
+
/** Show "confirm exit" message on first Ctrl+C instead of "exit". */
|
|
150
|
+
confirmExit?: boolean | undefined;
|
|
151
|
+
/** Active agent mode label shown in the status bar (e.g. "teach", "brief"). */
|
|
152
|
+
modeLabel?: string | undefined;
|
|
153
|
+
/** Token-saving tier — shown as a `💾 <tier>` chip in the TUI status bar (hidden when `'off'`). */
|
|
154
|
+
tokenSavingMode?: TokenSavingTier | undefined;
|
|
155
|
+
/** Number of registered tools — shown on the status bar line 2. */
|
|
156
|
+
toolCount?: number | undefined;
|
|
157
|
+
/** Live getter for the agent mode label so the status bar updates after /mode. */
|
|
158
|
+
getModeLabel?: (() => string) | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Get all available agent modes with their names, descriptions, and the
|
|
161
|
+
* currently active mode id. Used by the `/mode` picker in the TUI.
|
|
162
|
+
*/
|
|
163
|
+
getModes?: (() => Promise<{
|
|
164
|
+
modes: import('@wrongstack/core/types').Mode[];
|
|
165
|
+
activeId: string | null;
|
|
166
|
+
}>) | undefined;
|
|
167
|
+
/** Switch to a different agent mode by id (e.g. "teach", "brief"). */
|
|
168
|
+
switchMode?: ((modeId: string) => Promise<string | null>) | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Called ONCE on mount by the App to install its debug-stream telemetry
|
|
171
|
+
* callback. The CLI wires this to setDebugStreamCallback() from
|
|
172
|
+
* @wrongstack/providers. On App unmount, the default stderr callback
|
|
173
|
+
* is restored.
|
|
174
|
+
*/
|
|
175
|
+
registerDebugStreamCallback?: ((cb: (stats: {
|
|
176
|
+
chunkCount: number;
|
|
177
|
+
lastChunkSize: number;
|
|
178
|
+
lastDeltaMs: number;
|
|
179
|
+
totalBytes: number;
|
|
180
|
+
lastChunkAt: string;
|
|
181
|
+
}) => void) => void) | undefined;
|
|
182
|
+
/** Called on App unmount — restores the default stderr debug-stream callback. */
|
|
183
|
+
restoreDebugStreamCallback?: (() => void) | undefined;
|
|
184
|
+
/** Called from /clear so the TUI can wipe its history entries while agent.ctx + memory are cleared separately. */
|
|
185
|
+
onClearHistory?: ((dispatch: React.Dispatch<{
|
|
186
|
+
type: 'clearHistory';
|
|
187
|
+
model?: string | undefined;
|
|
188
|
+
provider?: string | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
type: 'resetContextChip';
|
|
191
|
+
} | {
|
|
192
|
+
type: 'streamReset';
|
|
193
|
+
} | {
|
|
194
|
+
type: 'toolStreamClear';
|
|
195
|
+
}>) => void) | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Live director instance. When set, the TUI renders a fleet panel
|
|
198
|
+
* showing every spawned subagent, its current task, streaming output,
|
|
199
|
+
* and runtime cost — updated live from the FleetBus. Pass null or omit
|
|
200
|
+
* when multi-agent / director mode is disabled.
|
|
201
|
+
*/
|
|
202
|
+
director?: Director | null | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* Read the CURRENT director. Unlike the static `director` option (captured
|
|
205
|
+
* at boot, null in non---director sessions), this sees a director the fleet
|
|
206
|
+
* host built lazily on the first delegate/spawn — the TUI's fleet-teardown
|
|
207
|
+
* paths (Ctrl+C, Esc, /steer) resolve through it.
|
|
208
|
+
*/
|
|
209
|
+
getDirector?: (() => Director | null) | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Optional roster reference for resolving subagent role ids to
|
|
212
|
+
* human-readable names. Same value passed to director.tools().
|
|
213
|
+
*/
|
|
214
|
+
fleetRoster?: Record<string, {
|
|
215
|
+
name: string;
|
|
216
|
+
}> | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* Shared controller for the `/fleet stream on|off` toggle. The slash
|
|
219
|
+
* command runs in the CLI process and needs to flip TUI reducer state;
|
|
220
|
+
* the App installs a dispatch-backed `setEnabled` here on mount so
|
|
221
|
+
* both sides stay synchronized.
|
|
222
|
+
*/
|
|
223
|
+
/**
|
|
224
|
+
* Shared controller for the `/fleet stream on|off` toggle. The slash
|
|
225
|
+
* command runs in the CLI process and needs to flip TUI reducer state;
|
|
226
|
+
* the App installs a dispatch-backed `setEnabled` here on mount so
|
|
227
|
+
* both sides stay synchronized.
|
|
228
|
+
*/
|
|
229
|
+
fleetStreamController?: {
|
|
230
|
+
mode: FleetChatVerbosity;
|
|
231
|
+
setMode: (mode: FleetChatVerbosity) => void;
|
|
232
|
+
} | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Read-only per-subagent transcript access for the F3 agents monitor
|
|
235
|
+
* (AgentMonitorService satisfies this structurally).
|
|
236
|
+
*/
|
|
237
|
+
agentTranscripts?: AgentTranscriptReader | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Controller for the `/interrupt` slash command. The App installs the real
|
|
240
|
+
* `abortLeader` on mount so the command can abort the in-flight leader run.
|
|
241
|
+
*/
|
|
242
|
+
interruptController?: {
|
|
243
|
+
abortLeader: () => boolean;
|
|
244
|
+
isRunning?: (() => boolean) | undefined;
|
|
245
|
+
confirmClear?: ((info: {
|
|
246
|
+
leaderActive: boolean;
|
|
247
|
+
subagentCount: number;
|
|
248
|
+
}) => Promise<boolean>) | undefined;
|
|
249
|
+
confirmSlash?: ((question: string, defaultYes: boolean) => Promise<boolean | null>) | undefined;
|
|
250
|
+
resetSession?: (() => void) | undefined;
|
|
251
|
+
waitForIdle?: (() => Promise<void>) | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* Controller for the `/enhance on|off` prompt-refinement toggle. The App
|
|
255
|
+
* installs a dispatch-backed `setEnabled` here on mount so the slash command
|
|
256
|
+
* (run in the CLI process) flips the TUI's reducer flag. Mirrors
|
|
257
|
+
* `fleetStreamController`.
|
|
258
|
+
*/
|
|
259
|
+
enhanceController?: {
|
|
260
|
+
enabled: boolean;
|
|
261
|
+
setEnabled: (enabled: boolean) => void;
|
|
262
|
+
} | undefined;
|
|
263
|
+
/** Capability-gated low-effort reasoning hint for the prompt refiner. */
|
|
264
|
+
getEnhancerReasoning?: ((providerId?: string, modelId?: string) => import('@wrongstack/core/types').ReasoningRequest | undefined | Promise<import('@wrongstack/core/types').ReasoningRequest | undefined>) | undefined;
|
|
265
|
+
/** Build an ephemeral Provider for retrying a failed refinement on another model (no session switch). */
|
|
266
|
+
buildEnhancerProvider?: ((providerId: string, modelId: string) => Promise<import('@wrongstack/core/types').Provider | undefined>) | undefined;
|
|
267
|
+
/** Resolve the one-key "retry with another model" fallback ref on a refine failure. */
|
|
268
|
+
getEnhanceFallbackRef?: (() => string | undefined) | undefined;
|
|
269
|
+
/** Resolve the dedicated refiner target for the initial refinement attempt. */
|
|
270
|
+
getConfiguredRefinerRef?: (() => string | undefined) | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Controller for status bar hidden items. App installs a dispatch-backed
|
|
273
|
+
* setter on mount so the /statusline slash command can update the TUI's
|
|
274
|
+
* visible bar without a round-trip. The initial value is loaded from
|
|
275
|
+
* the config file before App mounts.
|
|
276
|
+
*/
|
|
277
|
+
statuslineHiddenItems: StatuslineItem[];
|
|
278
|
+
setStatuslineHiddenItems: (items: StatuslineItem[]) => void;
|
|
279
|
+
/**
|
|
280
|
+
* Atomically updates in-memory state AND persists to
|
|
281
|
+
* Active profile/statusline.json. Used by the statusline picker to
|
|
282
|
+
* make each toggle immediately durable.
|
|
283
|
+
*/
|
|
284
|
+
saveStatuslineHiddenItems: (items: StatuslineItem[]) => Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* Controller for the agents monitor overlay. App installs a dispatch-backed
|
|
287
|
+
* setter on mount so the `/agents on|off` slash command can toggle the
|
|
288
|
+
* overlay without a round-trip.
|
|
289
|
+
*/
|
|
290
|
+
agentsMonitorController?: {
|
|
291
|
+
visible: boolean;
|
|
292
|
+
setVisible: (visible: boolean) => void;
|
|
293
|
+
} | undefined;
|
|
294
|
+
/**
|
|
295
|
+
* Mutable ref for opening TUI panels from slash commands. The slash commands
|
|
296
|
+
* call `onPanelOpen.current(action)` to open panels. The App sets
|
|
297
|
+
* `onPanelOpen.current` to its actual dispatch function on mount.
|
|
298
|
+
*/
|
|
299
|
+
onPanelOpen?: {
|
|
300
|
+
current: ((action: string) => boolean) | null;
|
|
301
|
+
} | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* If set, the App boots straight into goal mode — the text is wrapped
|
|
304
|
+
* in the GOAL preamble and submitted as the first turn. Lets users
|
|
305
|
+
* launch directly from the shell:
|
|
306
|
+
* wstack --tui --director --goal "audit packages/core for races"
|
|
307
|
+
* The chat shows a one-line "🎯 Goal locked: …" hint; the actual
|
|
308
|
+
* preamble is hidden from the visible history (same as `/goal`).
|
|
309
|
+
*/
|
|
310
|
+
initialGoal?: string | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* If set, submitted as the first turn verbatim (no preamble). Mainly
|
|
313
|
+
* for scripted shell aliases — `wstack --tui --ask "summarize foo.md"`
|
|
314
|
+
* — that want one turn pre-populated without the goal-mode framing.
|
|
315
|
+
* Ignored when `initialGoal` is also set.
|
|
316
|
+
*/
|
|
317
|
+
initialAsk?: string | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* Directory containing session JSONL files. Required for rewind
|
|
320
|
+
* functionality. When provided the TUI can list checkpoints and
|
|
321
|
+
* trigger a rewind via `/rewind` or Ctrl+R.
|
|
322
|
+
*/
|
|
323
|
+
sessionsDir?: string | undefined;
|
|
324
|
+
/** Live active session id for cross-surface client registration. */
|
|
325
|
+
getSessionId?: (() => string | undefined) | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* SDD session context getter. When an SDD session is active, returns
|
|
328
|
+
* the AI prompt context to inject into user messages.
|
|
329
|
+
*/
|
|
330
|
+
getSDDContext?: (() => Promise<string | null>) | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* Process AI output for SDD auto-detection (spec, tasks, plan).
|
|
333
|
+
* Returns displayable status messages.
|
|
334
|
+
*/
|
|
335
|
+
onSDDOutput?: ((output: string) => Promise<string[]>) | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* Subscribe to Goal phase/graph events from the PhaseOrchestrator.
|
|
338
|
+
* Returns an unsubscribe function. The TUI uses this to drive the
|
|
339
|
+
* PhaseMonitor and PhasePanel live views via dispatch actions.
|
|
340
|
+
*/
|
|
341
|
+
subscribeGoal?: ((handler: (event: string, payload: unknown) => void) => () => void) | undefined;
|
|
342
|
+
/**
|
|
343
|
+
* Read the persisted autonomy settings (defaultMode, autoProceedDelayMs).
|
|
344
|
+
* Used by the SettingsPicker in the TUI on mount and after Ctrl+S toggle.
|
|
345
|
+
*/
|
|
346
|
+
getSettings?: (() => import('./app-state.js').Settings) | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* Persist settings changes. Returns null on success, or an
|
|
349
|
+
* error string on failure (so the TUI can display it as a hint).
|
|
350
|
+
*/
|
|
351
|
+
saveSettings?: ((s: import('./app-state.js').Settings) => string | null | Promise<string | null>) | undefined;
|
|
352
|
+
/** Load toggleable plugin rows for the interactive plugin picker. */
|
|
353
|
+
getPluginItems?: (() => PluginPickerItem[]) | undefined;
|
|
354
|
+
/** Toggle one plugin from the interactive picker and return refreshed rows. */
|
|
355
|
+
onPluginToggle?: ((name: string) => Promise<{
|
|
356
|
+
items: PluginPickerItem[];
|
|
357
|
+
message?: string | undefined;
|
|
358
|
+
error?: string | undefined;
|
|
359
|
+
}>) | undefined;
|
|
360
|
+
/** Load MCP server rows for the interactive MCP picker. */
|
|
361
|
+
getMcpServers?: (() => McpPickerItem[]) | undefined;
|
|
362
|
+
/** Toggle one MCP server (enable/disable) from the interactive picker. */
|
|
363
|
+
onMcpToggle?: ((name: string) => Promise<{
|
|
364
|
+
items: McpPickerItem[];
|
|
365
|
+
message?: string | undefined;
|
|
366
|
+
error?: string | undefined;
|
|
367
|
+
}>) | undefined;
|
|
368
|
+
/** Restart one MCP server from the interactive picker. */
|
|
369
|
+
onMcpRestart?: ((name: string) => Promise<{
|
|
370
|
+
items: McpPickerItem[];
|
|
371
|
+
message?: string | undefined;
|
|
372
|
+
error?: string | undefined;
|
|
373
|
+
}>) | undefined;
|
|
374
|
+
/** Load tool rows for the interactive tool picker. */
|
|
375
|
+
getToolsItems?: (() => ToolPickerItem[]) | undefined;
|
|
376
|
+
/** Toggle one tool (enable/disable) from the interactive tool picker. */
|
|
377
|
+
onToolToggle?: ((name: string) => Promise<{
|
|
378
|
+
items: ToolPickerItem[];
|
|
379
|
+
message?: string | undefined;
|
|
380
|
+
error?: string | undefined;
|
|
381
|
+
}>) | undefined;
|
|
382
|
+
/** Get current brain risk level and decision log for the Brain panel. */
|
|
383
|
+
getBrainData?: (() => {
|
|
384
|
+
riskLevel: 'off' | 'low' | 'medium' | 'high' | 'all';
|
|
385
|
+
log: Array<{
|
|
386
|
+
kind: string;
|
|
387
|
+
question: string;
|
|
388
|
+
outcome: string;
|
|
389
|
+
age: string;
|
|
390
|
+
}>;
|
|
391
|
+
}) | undefined;
|
|
392
|
+
/** Set brain risk ceiling from the Brain panel. */
|
|
393
|
+
onBrainRiskLevel?: ((level: 'off' | 'low' | 'medium' | 'high' | 'all') => string | undefined) | undefined;
|
|
394
|
+
/** Full Brain settings editor bridge (live apply + persist to global config). */
|
|
395
|
+
brainPanelHost?: import('./brain-panel-model.js').BrainPanelHost | undefined;
|
|
396
|
+
/** Get current Shadow Agent state. */
|
|
397
|
+
getShadowData?: (() => {
|
|
398
|
+
activeId: string | null;
|
|
399
|
+
running: boolean;
|
|
400
|
+
model: string;
|
|
401
|
+
intervalMs: number;
|
|
402
|
+
}) | undefined;
|
|
403
|
+
/** Start Shadow Agent. Returns message or error. */
|
|
404
|
+
onShadowStart?: (() => Promise<string | undefined>) | undefined;
|
|
405
|
+
/** Stop Shadow Agent. Returns message or error. */
|
|
406
|
+
onShadowStop?: (() => Promise<string | undefined>) | undefined;
|
|
407
|
+
/**
|
|
408
|
+
* Host for the interactive `/auth` panel (provider/key management, OAuth
|
|
409
|
+
* sign-in, local-server add). The CLI builds this from its vault +
|
|
410
|
+
* models registry; when absent, `/auth` falls back to plain text.
|
|
411
|
+
*/
|
|
412
|
+
authHost?: import('./auth-panel-model.js').AuthPanelHost | undefined;
|
|
413
|
+
/**
|
|
414
|
+
* Predict likely next steps after a completed turn. The CLI wires this from
|
|
415
|
+
* the session provider and the `/next` toggle; it returns [] when prediction
|
|
416
|
+
* is disabled or autonomy isn't 'off'. Display-only — never executed.
|
|
417
|
+
*/
|
|
418
|
+
predictNext?: ((input: {
|
|
419
|
+
userRequest: string;
|
|
420
|
+
assistantSummary: string;
|
|
421
|
+
}) => Promise<string[]>) | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* Called after each agent turn with the assistant's final output text.
|
|
424
|
+
* The host parses "💡 Next steps" suggestions from the text and stores
|
|
425
|
+
* them in the shared suggestion store so `/next 1`, `/next 1 2 3` work.
|
|
426
|
+
*/
|
|
427
|
+
onSuggestionsParsed?: ((finalText: string) => void) | undefined;
|
|
428
|
+
/**
|
|
429
|
+
* Retrieve current suggestions from the shared suggestion store.
|
|
430
|
+
* Used by the TUI to display and auto-submit next steps in 'auto' mode.
|
|
431
|
+
*/
|
|
432
|
+
getSuggestions?: (() => string[]) | undefined;
|
|
433
|
+
/**
|
|
434
|
+
* Retrieve current auto suggestions (items with auto="true" attribute).
|
|
435
|
+
* Used by YOLO+auto mode for automatic next-step submission.
|
|
436
|
+
*/
|
|
437
|
+
getAutoSuggestions?: (() => string[]) | undefined;
|
|
438
|
+
/**
|
|
439
|
+
* Autonomy next prompt template for YOLO+auto mode. Contains {{suggestion}} placeholder.
|
|
440
|
+
*/
|
|
441
|
+
autonomyNextPrompt?: string | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* Write parsed next steps into the shared suggestion store.
|
|
444
|
+
* Called by the Entry component after parsing each assistant message
|
|
445
|
+
* so /next 1 and the auto-submit countdown can access them.
|
|
446
|
+
*/
|
|
447
|
+
setSuggestions?: ((steps: string[]) => void) | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* Messages restored from a previous session. When provided (non-empty),
|
|
450
|
+
* the TUI renders the prior conversation as history entries so a resumed
|
|
451
|
+
* session shows its full chat context, not just the LLM's internal state.
|
|
452
|
+
*/
|
|
453
|
+
restoredMessages?: Message[] | undefined;
|
|
454
|
+
/**
|
|
455
|
+
* Tool execution records from a previous session, keyed by tool_use id.
|
|
456
|
+
* Used to render tool entries (name, duration, ok/error) in the TUI on
|
|
457
|
+
* resume. Events are `tool_call_end` records from the session JSONL.
|
|
458
|
+
*/
|
|
459
|
+
restoredToolCalls?: Array<{
|
|
460
|
+
name: string;
|
|
461
|
+
id: string;
|
|
462
|
+
durationMs: number;
|
|
463
|
+
ok: boolean;
|
|
464
|
+
outputBytes?: number | undefined;
|
|
465
|
+
outputTokens?: number | undefined;
|
|
466
|
+
outputLines?: number | undefined;
|
|
467
|
+
}> | undefined;
|
|
468
|
+
/**
|
|
469
|
+
* Raw prior-session JSONL events. When provided, the boot `--resume` history
|
|
470
|
+
* is rebuilt with the canonical renderer (tool I/O + interleaved audit
|
|
471
|
+
* markers) instead of meta-only tool chips. Omitted → legacy fallback.
|
|
472
|
+
*/
|
|
473
|
+
restoredEvents?: import('@wrongstack/core/types').SessionEvent[] | undefined;
|
|
474
|
+
/**
|
|
475
|
+
* List recent session summaries for the /resume picker. The CLI reads
|
|
476
|
+
* from the session store and returns ResumeSessionEntry-shaped data.
|
|
477
|
+
*/
|
|
478
|
+
listSessions?: ((limit?: number) => Promise<import('./app-state.js').ResumeSessionEntry[]>) | undefined;
|
|
479
|
+
/**
|
|
480
|
+
* Resume a session by id: load JSONL events, replay history entries,
|
|
481
|
+
* rebuild agent context, and return hydrated entries for the TUI to
|
|
482
|
+
* display. Returns null when resume fails.
|
|
483
|
+
*/
|
|
484
|
+
onResumeSession?: ((sessionId: string) => Promise<{
|
|
485
|
+
entries: import('./components/history/types.js').HistoryEntry[];
|
|
486
|
+
nextId: number;
|
|
487
|
+
sessionId: string;
|
|
488
|
+
} | null>) | undefined;
|
|
489
|
+
getProjectPickerItems?: (() => Promise<import('./components/project-picker.js').ProjectPickerItem[]>) | undefined;
|
|
490
|
+
onProjectSelect?: ((key: string, kind: 'project' | 'action') => void) | undefined;
|
|
491
|
+
/**
|
|
492
|
+
* Request the TUI to exit with a specific code. Used by the project picker
|
|
493
|
+
* to trigger a clean exit before spawning a new wstack process in a different
|
|
494
|
+
* project directory. The host CLI catches this exit code and performs the
|
|
495
|
+
* actual project switch.
|
|
496
|
+
*/
|
|
497
|
+
requestExit?: (code: number) => void;
|
|
498
|
+
getLiveSessions?: (() => Promise<import('./components/sessions-panel.js').LiveSessionEntry[]>) | undefined;
|
|
499
|
+
onSwitchToSession?: ((sessionId: string, projectRoot: string, projectName: string) => void) | undefined;
|
|
500
|
+
/**
|
|
501
|
+
* When true, the agents monitor (F3) is open by default at TUI startup.
|
|
502
|
+
* Used by the `wrongstack quick` command to show agents panel immediately.
|
|
503
|
+
*/
|
|
504
|
+
initialAgentsMonitorOpen?: boolean | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* Access the project-level AutonomousCoordinator instance. When set, the TUI
|
|
507
|
+
* renders a coordination panel showing live goals, pending tasks, consensus
|
|
508
|
+
* decisions, and shared knowledge from all active sessions. The coordinator
|
|
509
|
+
* runs independently of the session — it coordinates multiple sessions.
|
|
510
|
+
*/
|
|
511
|
+
getAutonomousCoordinator?: () => AutonomousCoordinator | null | undefined;
|
|
512
|
+
/**
|
|
513
|
+
* Subscribe to live events from the AutonomousCoordinator:
|
|
514
|
+
* - `goal:added` — new coordination goal received
|
|
515
|
+
* - `goal:completed` — goal finished successfully
|
|
516
|
+
* - `goal:failed` — goal failed after max attempts
|
|
517
|
+
* - `task:ready` — task's dependencies are satisfied, ready to execute
|
|
518
|
+
* - `task:completed` — task finished
|
|
519
|
+
* - `knowledge:added` — new shared fact published
|
|
520
|
+
* - `consensus:reached` — multi-session agreement reached
|
|
521
|
+
* Returns an unsubscribe function.
|
|
522
|
+
*/
|
|
523
|
+
subscribeCoordinatorEvents?: (fn: (event: CoordinatorEvent) => void) => () => void;
|
|
524
|
+
/**
|
|
525
|
+
* Start the AutonomousCoordinator loop. Fire-and-forget — run() loops
|
|
526
|
+
* asynchronously. Pass a goal string to begin decomposition and task
|
|
527
|
+
* auction immediately.
|
|
528
|
+
*/
|
|
529
|
+
onCoordinatorStart?: ((goal?: string) => void) | undefined;
|
|
530
|
+
/** Stop the AutonomousCoordinator loop. */
|
|
531
|
+
onCoordinatorStop?: (() => void) | undefined;
|
|
532
|
+
/** List pending coordinator tasks claimable by this terminal. */
|
|
533
|
+
onCoordinatorTasks?: (() => Promise<Array<{
|
|
534
|
+
id: string;
|
|
535
|
+
title: string;
|
|
536
|
+
priority: string;
|
|
537
|
+
tags: string[];
|
|
538
|
+
}> | null>) | undefined;
|
|
539
|
+
/** Claim a coordinator task. Returns description on success. */
|
|
540
|
+
onCoordinatorClaim?: ((taskId: string) => Promise<string | null | {
|
|
541
|
+
description: string;
|
|
542
|
+
}>) | undefined;
|
|
543
|
+
/** Mark a claimed task as completed. */
|
|
544
|
+
onCoordinatorComplete?: ((taskId: string, result?: string) => Promise<string | null>) | undefined;
|
|
545
|
+
/** Mark a claimed task as failed. */
|
|
546
|
+
onCoordinatorFail?: ((taskId: string, error: string) => Promise<string | null>) | undefined;
|
|
547
|
+
/** Get coordinator stats for status display. */
|
|
548
|
+
onCoordinatorStatus?: (() => Promise<{
|
|
549
|
+
goals: {
|
|
550
|
+
total: number;
|
|
551
|
+
done: number;
|
|
552
|
+
pending: number;
|
|
553
|
+
failed: number;
|
|
554
|
+
};
|
|
555
|
+
dag: {
|
|
556
|
+
running: number;
|
|
557
|
+
ready: number;
|
|
558
|
+
done: number;
|
|
559
|
+
failed: number;
|
|
560
|
+
};
|
|
561
|
+
auction: {
|
|
562
|
+
pending: number;
|
|
563
|
+
inProgress: number;
|
|
564
|
+
};
|
|
565
|
+
} | null>) | undefined;
|
|
566
|
+
/** Access the persistent memory store for listing and inspecting memories. */
|
|
567
|
+
memoryStore?: import('@wrongstack/core/types').MemoryPort | undefined;
|
|
568
|
+
}
|
|
569
|
+
//# sourceMappingURL=run-tui-options.d.ts.map
|
|
@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AW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,GACtE,SAAS,CAAC;IACd,wCAAwC;IACxC,qBAAqB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IAClG,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC;IAC5F,gDAAgD;IAChD,mBAAmB,CAAC,EAChB,CAAC,MAAM,OAAO,CAAC;QACb,KAAK,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACxE,GAAG,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QACtE,OAAO,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC;KAClD,GAAG,IAAI,CAAC,CAAC,GACV,SAAS,CAAC;IACd,8EAA8E;IAC9E,WAAW,CAAC,EAAE,OAAO,wBAAwB,EAAE,UAAU,GAAG,SAAS,CAAC;CACvE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EventBus } from '@wrongstack/core/kernel';
|
|
2
|
+
export interface RunTuiTitleController {
|
|
3
|
+
setEnabled(on: boolean): void;
|
|
4
|
+
setModel(model: string): void;
|
|
5
|
+
}
|
|
6
|
+
export declare function createRunTuiTitleController(opts: {
|
|
7
|
+
stdout: NodeJS.WriteStream;
|
|
8
|
+
events: EventBus;
|
|
9
|
+
model: string;
|
|
10
|
+
projectRoot?: string | undefined;
|
|
11
|
+
}): {
|
|
12
|
+
controller: RunTuiTitleController;
|
|
13
|
+
start: () => void;
|
|
14
|
+
stop: () => void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=run-tui-title-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-tui-title-controller.d.ts","sourceRoot":"","sources":["../src/run-tui-title-controller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGxD,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC;IAC3B,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,GAAG;IAAE,UAAU,EAAE,qBAAqB,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CAkC7E"}
|