@wrongstack/tui 0.284.0 → 0.285.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.
- package/dist/app-initial-state.d.ts +26 -0
- package/dist/app-initial-state.d.ts.map +1 -0
- package/dist/app-reducer.d.ts +5 -0
- package/dist/app-reducer.d.ts.map +1 -0
- package/dist/app-state.d.ts +1801 -0
- package/dist/app-state.d.ts.map +1 -0
- package/dist/app.d.ts +579 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/clipboard.d.ts +2 -0
- package/dist/clipboard.d.ts.map +1 -0
- package/dist/components/agents-monitor.d.ts +49 -0
- package/dist/components/agents-monitor.d.ts.map +1 -0
- package/dist/components/animation-style.d.ts +51 -0
- package/dist/components/animation-style.d.ts.map +1 -0
- package/dist/components/audit-panel.d.ts +9 -0
- package/dist/components/audit-panel.d.ts.map +1 -0
- package/dist/components/auth-panel-model.d.ts +150 -0
- package/dist/components/auth-panel-model.d.ts.map +1 -0
- package/dist/components/auth-panel.d.ts +8 -0
- package/dist/components/auth-panel.d.ts.map +1 -0
- package/dist/components/autonomy-picker.d.ts +15 -0
- package/dist/components/autonomy-picker.d.ts.map +1 -0
- package/dist/components/brain-decision-prompt.d.ts +28 -0
- package/dist/components/brain-decision-prompt.d.ts.map +1 -0
- package/dist/components/brain-panel.d.ts +16 -0
- package/dist/components/brain-panel.d.ts.map +1 -0
- package/dist/components/checkpoint-timeline.d.ts +19 -0
- package/dist/components/checkpoint-timeline.d.ts.map +1 -0
- package/dist/components/confirm-prompt.d.ts +26 -0
- package/dist/components/confirm-prompt.d.ts.map +1 -0
- package/dist/components/continue-confirm-panel.d.ts +47 -0
- package/dist/components/continue-confirm-panel.d.ts.map +1 -0
- package/dist/components/coordinator-panel.d.ts +11 -0
- package/dist/components/coordinator-panel.d.ts.map +1 -0
- package/dist/components/design-picker.d.ts +14 -0
- package/dist/components/design-picker.d.ts.map +1 -0
- package/dist/components/enhance-panel.d.ts +36 -0
- package/dist/components/enhance-panel.d.ts.map +1 -0
- package/dist/components/esc-confirm-prompt.d.ts +17 -0
- package/dist/components/esc-confirm-prompt.d.ts.map +1 -0
- package/dist/components/f-key-picker.d.ts +13 -0
- package/dist/components/f-key-picker.d.ts.map +1 -0
- package/dist/components/file-picker.d.ts +8 -0
- package/dist/components/file-picker.d.ts.map +1 -0
- package/dist/components/fleet-monitor.d.ts +60 -0
- package/dist/components/fleet-monitor.d.ts.map +1 -0
- package/dist/components/fleet-panel.d.ts +69 -0
- package/dist/components/fleet-panel.d.ts.map +1 -0
- package/dist/components/goal-panel.d.ts +17 -0
- package/dist/components/goal-panel.d.ts.map +1 -0
- package/dist/components/help-overlay.d.ts +27 -0
- package/dist/components/help-overlay.d.ts.map +1 -0
- package/dist/components/help-panel.d.ts +16 -0
- package/dist/components/help-panel.d.ts.map +1 -0
- package/dist/components/history/assistant.d.ts +61 -0
- package/dist/components/history/assistant.d.ts.map +1 -0
- package/dist/components/history/banner.d.ts +13 -0
- package/dist/components/history/banner.d.ts.map +1 -0
- package/dist/components/history/code-block.d.ts +217 -0
- package/dist/components/history/code-block.d.ts.map +1 -0
- package/dist/components/history/entry.d.ts +19 -0
- package/dist/components/history/entry.d.ts.map +1 -0
- package/dist/components/history/index.d.ts +21 -0
- package/dist/components/history/index.d.ts.map +1 -0
- package/dist/components/history/replay.d.ts +44 -0
- package/dist/components/history/replay.d.ts.map +1 -0
- package/dist/components/history/types.d.ts +146 -0
- package/dist/components/history/types.d.ts.map +1 -0
- package/dist/components/history/utils.d.ts +65 -0
- package/dist/components/history/utils.d.ts.map +1 -0
- package/dist/components/history.d.ts +2 -0
- package/dist/components/history.d.ts.map +1 -0
- package/dist/components/input.d.ts +57 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/kanban-panel.d.ts +7 -0
- package/dist/components/kanban-panel.d.ts.map +1 -0
- package/dist/components/key-hint-bar.d.ts +31 -0
- package/dist/components/key-hint-bar.d.ts.map +1 -0
- package/dist/components/live-activity-strip.d.ts +39 -0
- package/dist/components/live-activity-strip.d.ts.map +1 -0
- package/dist/components/mailbox-panel.d.ts +40 -0
- package/dist/components/mailbox-panel.d.ts.map +1 -0
- package/dist/components/mcp-picker.d.ts +18 -0
- package/dist/components/mcp-picker.d.ts.map +1 -0
- package/dist/components/mode-picker.d.ts +17 -0
- package/dist/components/mode-picker.d.ts.map +1 -0
- package/dist/components/model-picker.d.ts +32 -0
- package/dist/components/model-picker.d.ts.map +1 -0
- package/dist/components/phase-monitor.d.ts +33 -0
- package/dist/components/phase-monitor.d.ts.map +1 -0
- package/dist/components/phase-panel.d.ts +22 -0
- package/dist/components/phase-panel.d.ts.map +1 -0
- package/dist/components/plan-panel.d.ts +17 -0
- package/dist/components/plan-panel.d.ts.map +1 -0
- package/dist/components/plugin-picker.d.ts +22 -0
- package/dist/components/plugin-picker.d.ts.map +1 -0
- package/dist/components/process-list.d.ts +14 -0
- package/dist/components/process-list.d.ts.map +1 -0
- package/dist/components/project-picker.d.ts +21 -0
- package/dist/components/project-picker.d.ts.map +1 -0
- package/dist/components/prompt-picker.d.ts +31 -0
- package/dist/components/prompt-picker.d.ts.map +1 -0
- package/dist/components/provider-colors.d.ts +40 -0
- package/dist/components/provider-colors.d.ts.map +1 -0
- package/dist/components/queue-panel.d.ts +16 -0
- package/dist/components/queue-panel.d.ts.map +1 -0
- package/dist/components/resume-picker.d.ts +16 -0
- package/dist/components/resume-picker.d.ts.map +1 -0
- package/dist/components/scrollable-history.d.ts +60 -0
- package/dist/components/scrollable-history.d.ts.map +1 -0
- package/dist/components/sdd-board-overlay.d.ts +15 -0
- package/dist/components/sdd-board-overlay.d.ts.map +1 -0
- package/dist/components/send-mode-picker.d.ts +64 -0
- package/dist/components/send-mode-picker.d.ts.map +1 -0
- package/dist/components/sessions-panel.d.ts +46 -0
- package/dist/components/sessions-panel.d.ts.map +1 -0
- package/dist/components/settings-picker.d.ts +371 -0
- package/dist/components/settings-picker.d.ts.map +1 -0
- package/dist/components/shadow-panel.d.ts +13 -0
- package/dist/components/shadow-panel.d.ts.map +1 -0
- package/dist/components/shell-command-warning.d.ts +9 -0
- package/dist/components/shell-command-warning.d.ts.map +1 -0
- package/dist/components/slash-menu.d.ts +9 -0
- package/dist/components/slash-menu.d.ts.map +1 -0
- package/dist/components/status-bar.d.ts +378 -0
- package/dist/components/status-bar.d.ts.map +1 -0
- package/dist/components/statusline-picker.d.ts +55 -0
- package/dist/components/statusline-picker.d.ts.map +1 -0
- package/dist/components/suggestions.d.ts +9 -0
- package/dist/components/suggestions.d.ts.map +1 -0
- package/dist/components/todos-monitor.d.ts +13 -0
- package/dist/components/todos-monitor.d.ts.map +1 -0
- package/dist/components/tools-picker.d.ts +20 -0
- package/dist/components/tools-picker.d.ts.map +1 -0
- package/dist/components/worktree-monitor.d.ts +23 -0
- package/dist/components/worktree-monitor.d.ts.map +1 -0
- package/dist/components/worktree-panel.d.ts +21 -0
- package/dist/components/worktree-panel.d.ts.map +1 -0
- package/dist/f-key-panels.d.ts +46 -0
- package/dist/f-key-panels.d.ts.map +1 -0
- package/dist/file-search.d.ts +3 -0
- package/dist/file-search.d.ts.map +1 -0
- package/dist/fn-keys.d.ts +20 -0
- package/dist/fn-keys.d.ts.map +1 -0
- package/dist/git-info.d.ts +20 -0
- package/dist/git-info.d.ts.map +1 -0
- package/dist/heap-watchdog.d.ts +41 -0
- package/dist/heap-watchdog.d.ts.map +1 -0
- package/dist/highlight.d.ts +30 -0
- package/dist/highlight.d.ts.map +1 -0
- package/dist/hit-test.d.ts +75 -0
- package/dist/hit-test.d.ts.map +1 -0
- package/dist/hooks/use-auth-panel.d.ts +38 -0
- package/dist/hooks/use-auth-panel.d.ts.map +1 -0
- package/dist/hooks/use-autonomous-coordinator.d.ts +21 -0
- package/dist/hooks/use-autonomous-coordinator.d.ts.map +1 -0
- package/dist/hooks/use-brain-events.d.ts +7 -0
- package/dist/hooks/use-brain-events.d.ts.map +1 -0
- package/dist/hooks/use-director-fleet-bridge.d.ts +17 -0
- package/dist/hooks/use-director-fleet-bridge.d.ts.map +1 -0
- package/dist/hooks/use-file-search.d.ts +42 -0
- package/dist/hooks/use-file-search.d.ts.map +1 -0
- package/dist/hooks/use-input-history-persistence.d.ts +14 -0
- package/dist/hooks/use-input-history-persistence.d.ts.map +1 -0
- package/dist/hooks/use-mode-picker.d.ts +15 -0
- package/dist/hooks/use-mode-picker.d.ts.map +1 -0
- package/dist/hooks/use-paste-handling.d.ts +30 -0
- package/dist/hooks/use-paste-handling.d.ts.map +1 -0
- package/dist/hooks/use-picker-keys.d.ts +58 -0
- package/dist/hooks/use-picker-keys.d.ts.map +1 -0
- package/dist/hooks/use-prompt-picker.d.ts +28 -0
- package/dist/hooks/use-prompt-picker.d.ts.map +1 -0
- package/dist/hooks/use-queue-manager.d.ts +26 -0
- package/dist/hooks/use-queue-manager.d.ts.map +1 -0
- package/dist/hooks/use-statusline-hidden-sync.d.ts +14 -0
- package/dist/hooks/use-statusline-hidden-sync.d.ts.map +1 -0
- package/dist/hooks/use-statusline-state.d.ts +44 -0
- package/dist/hooks/use-statusline-state.d.ts.map +1 -0
- package/dist/hooks/use-stream-chip-expiration.d.ts +25 -0
- package/dist/hooks/use-stream-chip-expiration.d.ts.map +1 -0
- package/dist/hooks/use-subagent-events.d.ts +8 -0
- package/dist/hooks/use-subagent-events.d.ts.map +1 -0
- package/dist/hooks/use-token-counter-refresh.d.ts +30 -0
- package/dist/hooks/use-token-counter-refresh.d.ts.map +1 -0
- package/dist/hooks/use-tui-controllers.d.ts +31 -0
- package/dist/hooks/use-tui-controllers.d.ts.map +1 -0
- package/dist/hooks/use-tui-event-bridge.d.ts +29 -0
- package/dist/hooks/use-tui-event-bridge.d.ts.map +1 -0
- package/dist/hooks/use-working-dir-chip.d.ts +8 -0
- package/dist/hooks/use-working-dir-chip.d.ts.map +1 -0
- package/dist/index.d.ts +11 -910
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2633 -2188
- package/dist/index.js.map +7 -1
- package/dist/ink.d.ts +20 -0
- package/dist/ink.d.ts.map +1 -0
- package/dist/input-editing.d.ts +76 -0
- package/dist/input-editing.d.ts.map +1 -0
- package/dist/input-tokens.d.ts +65 -0
- package/dist/input-tokens.d.ts.map +1 -0
- package/dist/kill-slash.d.ts +3 -0
- package/dist/kill-slash.d.ts.map +1 -0
- package/dist/markdown-table.d.ts +45 -0
- package/dist/markdown-table.d.ts.map +1 -0
- package/dist/markdown.d.ts +47 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/mouse.d.ts +73 -0
- package/dist/mouse.d.ts.map +1 -0
- package/dist/on-panel-open.d.ts +62 -0
- package/dist/on-panel-open.d.ts.map +1 -0
- package/dist/paste-accumulator.d.ts +19 -0
- package/dist/paste-accumulator.d.ts.map +1 -0
- package/dist/ps-slash.d.ts +7 -0
- package/dist/ps-slash.d.ts.map +1 -0
- package/dist/queue-slash.d.ts +24 -0
- package/dist/queue-slash.d.ts.map +1 -0
- package/dist/reducers/fleet.d.ts +16 -0
- package/dist/reducers/fleet.d.ts.map +1 -0
- package/dist/reducers/helpers.d.ts +38 -0
- package/dist/reducers/helpers.d.ts.map +1 -0
- package/dist/rehydrate-history.d.ts +40 -0
- package/dist/rehydrate-history.d.ts.map +1 -0
- package/dist/run-tui.d.ts +507 -0
- package/dist/run-tui.d.ts.map +1 -0
- package/dist/slash-command-search.d.ts +10 -0
- package/dist/slash-command-search.d.ts.map +1 -0
- package/dist/steering-preamble.d.ts +25 -0
- package/dist/steering-preamble.d.ts.map +1 -0
- package/dist/submit-history.d.ts +17 -0
- package/dist/submit-history.d.ts.map +1 -0
- package/dist/terminal-title.d.ts +12 -0
- package/dist/terminal-title.d.ts.map +1 -0
- package/dist/theme.d.ts +91 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/thinking-word.d.ts +26 -0
- package/dist/thinking-word.d.ts.map +1 -0
- package/dist/tool-glyph.d.ts +18 -0
- package/dist/tool-glyph.d.ts.map +1 -0
- package/package.json +8 -9
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import type { Agent, AttachmentStore, AutonomousCoordinator, CoordinatorEvent, Director, EventBus, Message, QueueStore, SlashCommandRegistry, TokenCounter, TokenSavingTier } from '@wrongstack/core';
|
|
2
|
+
import { type AutonomyStage } from '@wrongstack/core';
|
|
3
|
+
import type { VisionAdapters } from '@wrongstack/runtime/vision';
|
|
4
|
+
import type { SddLifecycleResult, SddRunControl } from '@wrongstack/sdd';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { McpPickerItem } from './components/mcp-picker.js';
|
|
7
|
+
import type { PluginPickerItem } from './components/plugin-picker.js';
|
|
8
|
+
import type { ToolPickerItem } from './components/tools-picker.js';
|
|
9
|
+
import type { StatuslineItem } from './components/statusline-picker.js';
|
|
10
|
+
export type { AutonomyStage };
|
|
11
|
+
export interface RunTuiOptions {
|
|
12
|
+
agent: Agent;
|
|
13
|
+
slashRegistry: SlashCommandRegistry;
|
|
14
|
+
attachments: AttachmentStore;
|
|
15
|
+
events: EventBus;
|
|
16
|
+
tokenCounter?: TokenCounter | undefined;
|
|
17
|
+
visionAdapters?: VisionAdapters | undefined;
|
|
18
|
+
/** Resolve current model vision support. Falls back to provider capability when omitted. */
|
|
19
|
+
supportsVision?: (() => boolean | Promise<boolean>) | undefined;
|
|
20
|
+
model: string;
|
|
21
|
+
banner?: boolean | undefined;
|
|
22
|
+
/** Persists the input queue across crashes; if omitted, the queue is in-memory only. */
|
|
23
|
+
queueStore?: QueueStore | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Called with the queue's display texts (head first) on EVERY queue change
|
|
26
|
+
* — enqueue, /queue delete, /queue clear, dequeue-for-delivery. The CLI
|
|
27
|
+
* mirrors the snapshot onto the live agent Context (core's
|
|
28
|
+
* setQueuedMessagesSnapshot) so a running agent learns what's waiting at
|
|
29
|
+
* its next iteration boundary without the queue being delivered early.
|
|
30
|
+
*/
|
|
31
|
+
onQueueChange?: ((items: string[]) => void) | undefined;
|
|
32
|
+
/** Surfaces the "⚠ YOLO" chip in the status bar. */
|
|
33
|
+
yolo?: boolean | undefined;
|
|
34
|
+
/** Query live YOLO state from the permission policy. */
|
|
35
|
+
getYolo?: (() => boolean) | undefined;
|
|
36
|
+
/** Set live YOLO state from TUI-owned controls such as ConfirmPrompt. */
|
|
37
|
+
onYolo?: ((enabled: boolean) => boolean) | undefined;
|
|
38
|
+
/** Query the live autonomy mode. */
|
|
39
|
+
getAutonomy?: (() => 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel') | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Access the eternal-autonomy engine. When autonomy mode flips to
|
|
42
|
+
* 'eternal' the TUI drives `runOneIteration()` from the post-slash hook
|
|
43
|
+
* so the engine and TUI never race for the shared Context.
|
|
44
|
+
*/
|
|
45
|
+
getEternalEngine?: (() => import('@wrongstack/core').EternalAutonomyEngine | null) | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Access the parallel-eternal engine. When autonomy mode flips to
|
|
48
|
+
* 'eternal-parallel' the TUI drives `runOneIteration()` from the post-slash
|
|
49
|
+
* hook so the engine and TUI never race for the shared Context.
|
|
50
|
+
*/
|
|
51
|
+
getParallelEngine?: (() => import('@wrongstack/core').ParallelEternalEngine | null) | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Access the active SDD parallel run's control surface (or null). The TUI's
|
|
54
|
+
* SIGINT handler uses it to stop a running `/sdd parallel` on the first Ctrl+C.
|
|
55
|
+
*/
|
|
56
|
+
getSddRun?: (() => SddRunControl | null) | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Apply a post-run SDD lifecycle op (clean / rollback / destroy) from the host.
|
|
59
|
+
* Drives the board overlay keys c / z / x so they work after the run ends.
|
|
60
|
+
*/
|
|
61
|
+
onSddLifecycle?: ((op: 'cleanup_worktrees' | 'rollback' | 'destroy', opts?: {
|
|
62
|
+
revertMerged?: boolean;
|
|
63
|
+
}) => Promise<SddLifecycleResult>) | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Subscribe to live per-iteration events from the eternal engine.
|
|
66
|
+
* Returns an unsubscribe function. TUI uses this to render each
|
|
67
|
+
* iteration as a live timeline entry as it lands.
|
|
68
|
+
*/
|
|
69
|
+
subscribeEternalIteration?: ((fn: (entry: import('@wrongstack/core').JournalEntry) => void) => () => void) | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Subscribe to per-iteration stage transitions from the autonomy engines.
|
|
72
|
+
* TUI uses this to render live status in the status bar.
|
|
73
|
+
*/
|
|
74
|
+
subscribeEternalStage?: ((fn: (stage: AutonomyStage) => void) => () => void) | undefined;
|
|
75
|
+
/** Renders in the startup banner. Read from the CLI's package.json. */
|
|
76
|
+
appVersion?: string | undefined;
|
|
77
|
+
/** Provider id for the startup banner ("openai", "anthropic", ...). */
|
|
78
|
+
provider?: string | undefined;
|
|
79
|
+
/** Wire family — shown beneath provider in the banner. */
|
|
80
|
+
family?: string | undefined;
|
|
81
|
+
/** Last 3 chars of the active API key — shown in the banner for visual key-pick verification. */
|
|
82
|
+
keyTail?: string | undefined;
|
|
83
|
+
/** Snapshot of keyed providers + their model lists for the `/model` picker. Async — the catalog fetch may need to hit disk/network. */
|
|
84
|
+
getPickableProviders?: (() => Promise<import('./components/model-picker.js').ProviderOption[]>) | undefined;
|
|
85
|
+
/** Apply a (provider, model) pair after the picker confirms. Returns an error string on failure. */
|
|
86
|
+
switchProviderAndModel?: ((providerId: string, modelId: string) => string | null | Promise<string | null>) | undefined;
|
|
87
|
+
/** Apply an autonomy mode after the picker confirms. Returns an error string on failure. */
|
|
88
|
+
switchAutonomy?: ((mode: 'off' | 'suggest' | 'auto' | 'eternal' | 'eternal-parallel') => string | null) | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Model-specific maxContext (tokens), resolved by the CLI via the
|
|
91
|
+
* ModelsRegistry. When omitted, the TUI falls back to the provider
|
|
92
|
+
* family's baseline (e.g. anthropic = 200_000), which can be wrong
|
|
93
|
+
* for variants like the 1M-context Opus build. The status bar's
|
|
94
|
+
* context chip uses this for its progress denominator.
|
|
95
|
+
*/
|
|
96
|
+
effectiveMaxContext?: number | undefined;
|
|
97
|
+
/** Absolute project root for goal.json loading. */
|
|
98
|
+
projectRoot?: string | undefined;
|
|
99
|
+
/** Full app config, used for HQ client publishing settings. */
|
|
100
|
+
appConfig?: import('@wrongstack/core').Config | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Terminal title animation on/off. Defaults to true. When false, the
|
|
103
|
+
* OSC-0 window/tab title stays static (the app name only, no spinner).
|
|
104
|
+
* Controlled via /settings → Terminal title animation.
|
|
105
|
+
*/
|
|
106
|
+
titleAnimation?: boolean | undefined;
|
|
107
|
+
/** Play terminal bell (\\x07) when agent run completes. */
|
|
108
|
+
chime?: boolean | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Enable terminal mouse tracking (SGR; click + wheel). Stays in the normal
|
|
111
|
+
* screen buffer so native scrollback survives, BUT while tracking is on the
|
|
112
|
+
* plain wheel reports to the app instead of scrolling history — only
|
|
113
|
+
* Shift+wheel reaches native scrollback. Off by default; opt in here or via
|
|
114
|
+
* WRONGSTACK_MOUSE=1. See mouse.ts for the trade-off rationale.
|
|
115
|
+
*/
|
|
116
|
+
mouse?: boolean | undefined;
|
|
117
|
+
/** Show "confirm exit" message on first Ctrl+C instead of "exit". */
|
|
118
|
+
confirmExit?: boolean | undefined;
|
|
119
|
+
/** Active agent mode label shown in the status bar (e.g. "teach", "brief"). */
|
|
120
|
+
modeLabel?: string | undefined;
|
|
121
|
+
/** Token-saving tier — shown as a `💾 <tier>` chip in the TUI status bar (hidden when `'off'`). */
|
|
122
|
+
tokenSavingMode?: TokenSavingTier | undefined;
|
|
123
|
+
/** Number of registered tools — shown on the status bar line 2. */
|
|
124
|
+
toolCount?: number | undefined;
|
|
125
|
+
/** Live getter for the agent mode label so the status bar updates after /mode. */
|
|
126
|
+
getModeLabel?: (() => string) | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Get all available agent modes with their names, descriptions, and the
|
|
129
|
+
* currently active mode id. Used by the `/mode` picker in the TUI.
|
|
130
|
+
*/
|
|
131
|
+
getModes?: (() => Promise<{
|
|
132
|
+
modes: import('@wrongstack/core').Mode[];
|
|
133
|
+
activeId: string | null;
|
|
134
|
+
}>) | undefined;
|
|
135
|
+
/** Switch to a different agent mode by id (e.g. "teach", "brief"). */
|
|
136
|
+
switchMode?: ((modeId: string) => Promise<string | null>) | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Called ONCE on mount by the App to install its debug-stream telemetry
|
|
139
|
+
* callback. The CLI wires this to setDebugStreamCallback() from
|
|
140
|
+
* @wrongstack/providers. On App unmount, the default stderr callback
|
|
141
|
+
* is restored.
|
|
142
|
+
*/
|
|
143
|
+
registerDebugStreamCallback?: ((cb: (stats: {
|
|
144
|
+
chunkCount: number;
|
|
145
|
+
lastChunkSize: number;
|
|
146
|
+
lastDeltaMs: number;
|
|
147
|
+
totalBytes: number;
|
|
148
|
+
lastChunkAt: string;
|
|
149
|
+
}) => void) => void) | undefined;
|
|
150
|
+
/** Called on App unmount — restores the default stderr debug-stream callback. */
|
|
151
|
+
restoreDebugStreamCallback?: (() => void) | undefined;
|
|
152
|
+
/** Called from /clear so the TUI can wipe its history entries while agent.ctx + memory are cleared separately. */
|
|
153
|
+
onClearHistory?: ((dispatch: React.Dispatch<{
|
|
154
|
+
type: 'clearHistory';
|
|
155
|
+
} | {
|
|
156
|
+
type: 'resetContextChip';
|
|
157
|
+
} | {
|
|
158
|
+
type: 'streamReset';
|
|
159
|
+
} | {
|
|
160
|
+
type: 'toolStreamClear';
|
|
161
|
+
}>) => void) | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Live director instance. When set, the TUI renders a fleet panel
|
|
164
|
+
* showing every spawned subagent, its current task, streaming output,
|
|
165
|
+
* and runtime cost — updated live from the FleetBus. Pass null or omit
|
|
166
|
+
* when multi-agent / director mode is disabled.
|
|
167
|
+
*/
|
|
168
|
+
director?: Director | null | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Read the CURRENT director. Unlike the static `director` option (captured
|
|
171
|
+
* at boot, null in non---director sessions), this sees a director the fleet
|
|
172
|
+
* host built lazily on the first delegate/spawn — the TUI's fleet-teardown
|
|
173
|
+
* paths (Ctrl+C, Esc, /steer) resolve through it.
|
|
174
|
+
*/
|
|
175
|
+
getDirector?: (() => Director | null) | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Optional roster reference for resolving subagent role ids to
|
|
178
|
+
* human-readable names. Same value passed to director.tools().
|
|
179
|
+
*/
|
|
180
|
+
fleetRoster?: Record<string, {
|
|
181
|
+
name: string;
|
|
182
|
+
}> | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Shared controller for the `/fleet stream on|off` toggle. The slash
|
|
185
|
+
* command runs in the CLI process and needs to flip TUI reducer state;
|
|
186
|
+
* the App installs a dispatch-backed `setEnabled` here on mount so
|
|
187
|
+
* both sides stay synchronized.
|
|
188
|
+
*/
|
|
189
|
+
/**
|
|
190
|
+
* Shared controller for the `/fleet stream on|off` toggle. The slash
|
|
191
|
+
* command runs in the CLI process and needs to flip TUI reducer state;
|
|
192
|
+
* the App installs a dispatch-backed `setEnabled` here on mount so
|
|
193
|
+
* both sides stay synchronized.
|
|
194
|
+
*/
|
|
195
|
+
fleetStreamController?: {
|
|
196
|
+
enabled: boolean;
|
|
197
|
+
setEnabled: (enabled: boolean) => void;
|
|
198
|
+
} | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* Controller for the `/interrupt` slash command. The App installs the real
|
|
201
|
+
* `abortLeader` on mount so the command can abort the in-flight leader run.
|
|
202
|
+
*/
|
|
203
|
+
interruptController?: {
|
|
204
|
+
abortLeader: () => boolean;
|
|
205
|
+
} | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Controller for the `/enhance on|off` prompt-refinement toggle. The App
|
|
208
|
+
* installs a dispatch-backed `setEnabled` here on mount so the slash command
|
|
209
|
+
* (run in the CLI process) flips the TUI's reducer flag. Mirrors
|
|
210
|
+
* `fleetStreamController`.
|
|
211
|
+
*/
|
|
212
|
+
enhanceController?: {
|
|
213
|
+
enabled: boolean;
|
|
214
|
+
setEnabled: (enabled: boolean) => void;
|
|
215
|
+
} | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Controller for status bar hidden items. App installs a dispatch-backed
|
|
218
|
+
* setter on mount so the /statusline slash command can update the TUI's
|
|
219
|
+
* visible bar without a round-trip. The initial value is loaded from
|
|
220
|
+
* the config file before App mounts.
|
|
221
|
+
*/
|
|
222
|
+
statuslineHiddenItems: StatuslineItem[];
|
|
223
|
+
setStatuslineHiddenItems: (items: StatuslineItem[]) => void;
|
|
224
|
+
/**
|
|
225
|
+
* Atomically updates in-memory state AND persists to
|
|
226
|
+
* ~/.wrongstack/statusline.json. Used by the statusline picker to
|
|
227
|
+
* make each toggle immediately durable.
|
|
228
|
+
*/
|
|
229
|
+
saveStatuslineHiddenItems: (items: StatuslineItem[]) => Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Controller for the agents monitor overlay. App installs a dispatch-backed
|
|
232
|
+
* setter on mount so the `/agents on|off` slash command can toggle the
|
|
233
|
+
* overlay without a round-trip.
|
|
234
|
+
*/
|
|
235
|
+
agentsMonitorController?: {
|
|
236
|
+
visible: boolean;
|
|
237
|
+
setVisible: (visible: boolean) => void;
|
|
238
|
+
} | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* Mutable ref for opening TUI panels from slash commands. The slash commands
|
|
241
|
+
* call `onPanelOpen.current(action)` to open panels. The App sets
|
|
242
|
+
* `onPanelOpen.current` to its actual dispatch function on mount.
|
|
243
|
+
*/
|
|
244
|
+
onPanelOpen?: {
|
|
245
|
+
current: ((action: string) => boolean) | null;
|
|
246
|
+
} | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* If set, the App boots straight into goal mode — the text is wrapped
|
|
249
|
+
* in the GOAL preamble and submitted as the first turn. Lets users
|
|
250
|
+
* launch directly from the shell:
|
|
251
|
+
* wstack --tui --director --goal "audit packages/core for races"
|
|
252
|
+
* The chat shows a one-line "🎯 Goal locked: …" hint; the actual
|
|
253
|
+
* preamble is hidden from the visible history (same as `/goal`).
|
|
254
|
+
*/
|
|
255
|
+
initialGoal?: string | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* If set, submitted as the first turn verbatim (no preamble). Mainly
|
|
258
|
+
* for scripted shell aliases — `wstack --tui --ask "summarize foo.md"`
|
|
259
|
+
* — that want one turn pre-populated without the goal-mode framing.
|
|
260
|
+
* Ignored when `initialGoal` is also set.
|
|
261
|
+
*/
|
|
262
|
+
initialAsk?: string | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* Directory containing session JSONL files. Required for rewind
|
|
265
|
+
* functionality. When provided the TUI can list checkpoints and
|
|
266
|
+
* trigger a rewind via `/rewind` or Ctrl+R.
|
|
267
|
+
*/
|
|
268
|
+
sessionsDir?: string | undefined;
|
|
269
|
+
/** Live active session id for cross-surface client registration. */
|
|
270
|
+
getSessionId?: (() => string | undefined) | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* SDD session context getter. When an SDD session is active, returns
|
|
273
|
+
* the AI prompt context to inject into user messages.
|
|
274
|
+
*/
|
|
275
|
+
getSDDContext?: (() => Promise<string | null>) | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* Process AI output for SDD auto-detection (spec, tasks, plan).
|
|
278
|
+
* Returns displayable status messages.
|
|
279
|
+
*/
|
|
280
|
+
onSDDOutput?: ((output: string) => Promise<string[]>) | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* Subscribe to AutoPhase phase/graph events from the PhaseOrchestrator.
|
|
283
|
+
* Returns an unsubscribe function. The TUI uses this to drive the
|
|
284
|
+
* PhaseMonitor and PhasePanel live views via dispatch actions.
|
|
285
|
+
*/
|
|
286
|
+
subscribeAutoPhase?: ((handler: (event: string, payload: unknown) => void) => () => void) | undefined;
|
|
287
|
+
/**
|
|
288
|
+
* Read the persisted autonomy settings (defaultMode, autoProceedDelayMs).
|
|
289
|
+
* Used by the SettingsPicker in the TUI on mount and after Ctrl+S toggle.
|
|
290
|
+
*/
|
|
291
|
+
getSettings?: (() => import('./app-state.js').Settings) | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* Persist settings changes. Returns null on success, or an
|
|
294
|
+
* error string on failure (so the TUI can display it as a hint).
|
|
295
|
+
*/
|
|
296
|
+
saveSettings?: ((s: import('./app-state.js').Settings) => string | null | Promise<string | null>) | undefined;
|
|
297
|
+
/** Load toggleable plugin rows for the interactive plugin picker. */
|
|
298
|
+
getPluginItems?: (() => PluginPickerItem[]) | undefined;
|
|
299
|
+
/** Toggle one plugin from the interactive picker and return refreshed rows. */
|
|
300
|
+
onPluginToggle?: ((name: string) => Promise<{
|
|
301
|
+
items: PluginPickerItem[];
|
|
302
|
+
message?: string | undefined;
|
|
303
|
+
error?: string | undefined;
|
|
304
|
+
}>) | undefined;
|
|
305
|
+
/** Load MCP server rows for the interactive MCP picker. */
|
|
306
|
+
getMcpServers?: (() => McpPickerItem[]) | undefined;
|
|
307
|
+
/** Toggle one MCP server (enable/disable) from the interactive picker. */
|
|
308
|
+
onMcpToggle?: ((name: string) => Promise<{
|
|
309
|
+
items: McpPickerItem[];
|
|
310
|
+
message?: string | undefined;
|
|
311
|
+
error?: string | undefined;
|
|
312
|
+
}>) | undefined;
|
|
313
|
+
/** Restart one MCP server from the interactive picker. */
|
|
314
|
+
onMcpRestart?: ((name: string) => Promise<{
|
|
315
|
+
items: McpPickerItem[];
|
|
316
|
+
message?: string | undefined;
|
|
317
|
+
error?: string | undefined;
|
|
318
|
+
}>) | undefined;
|
|
319
|
+
/** Load tool rows for the interactive tool picker. */
|
|
320
|
+
getToolsItems?: (() => ToolPickerItem[]) | undefined;
|
|
321
|
+
/** Toggle one tool (enable/disable) from the interactive tool picker. */
|
|
322
|
+
onToolToggle?: ((name: string) => Promise<{
|
|
323
|
+
items: ToolPickerItem[];
|
|
324
|
+
message?: string | undefined;
|
|
325
|
+
error?: string | undefined;
|
|
326
|
+
}>) | undefined;
|
|
327
|
+
/** Get current brain risk level and decision log for the Brain panel. */
|
|
328
|
+
getBrainData?: (() => {
|
|
329
|
+
riskLevel: 'off' | 'low' | 'medium' | 'high' | 'all';
|
|
330
|
+
log: Array<{
|
|
331
|
+
kind: string;
|
|
332
|
+
question: string;
|
|
333
|
+
outcome: string;
|
|
334
|
+
age: string;
|
|
335
|
+
}>;
|
|
336
|
+
}) | undefined;
|
|
337
|
+
/** Set brain risk ceiling from the Brain panel. */
|
|
338
|
+
onBrainRiskLevel?: ((level: 'off' | 'low' | 'medium' | 'high' | 'all') => string | undefined) | undefined;
|
|
339
|
+
/** Get current Shadow Agent state. */
|
|
340
|
+
getShadowData?: (() => {
|
|
341
|
+
activeId: string | null;
|
|
342
|
+
running: boolean;
|
|
343
|
+
model: string;
|
|
344
|
+
intervalMs: number;
|
|
345
|
+
}) | undefined;
|
|
346
|
+
/** Start Shadow Agent. Returns message or error. */
|
|
347
|
+
onShadowStart?: (() => Promise<string | undefined>) | undefined;
|
|
348
|
+
/** Stop Shadow Agent. Returns message or error. */
|
|
349
|
+
onShadowStop?: (() => Promise<string | undefined>) | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* Host for the interactive `/auth` panel (provider/key management, OAuth
|
|
352
|
+
* sign-in, local-server add). The CLI builds this from its vault +
|
|
353
|
+
* models registry; when absent, `/auth` falls back to plain text.
|
|
354
|
+
*/
|
|
355
|
+
authHost?: import('./components/auth-panel-model.js').AuthPanelHost | undefined;
|
|
356
|
+
/**
|
|
357
|
+
* Predict likely next steps after a completed turn. The CLI wires this from
|
|
358
|
+
* the session provider and the `/next` toggle; it returns [] when prediction
|
|
359
|
+
* is disabled or autonomy isn't 'off'. Display-only — never executed.
|
|
360
|
+
*/
|
|
361
|
+
predictNext?: ((input: {
|
|
362
|
+
userRequest: string;
|
|
363
|
+
assistantSummary: string;
|
|
364
|
+
}) => Promise<string[]>) | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* Called after each agent turn with the assistant's final output text.
|
|
367
|
+
* The host parses "💡 Next steps" suggestions from the text and stores
|
|
368
|
+
* them in the shared suggestion store so `/next 1`, `/next 1 2 3` work.
|
|
369
|
+
*/
|
|
370
|
+
onSuggestionsParsed?: ((finalText: string) => void) | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* Retrieve current suggestions from the shared suggestion store.
|
|
373
|
+
* Used by the TUI to display and auto-submit next steps in 'auto' mode.
|
|
374
|
+
*/
|
|
375
|
+
getSuggestions?: (() => string[]) | undefined;
|
|
376
|
+
/**
|
|
377
|
+
* Retrieve current auto suggestions (items with auto="true" attribute).
|
|
378
|
+
* Used by YOLO+auto mode for automatic next-step submission.
|
|
379
|
+
*/
|
|
380
|
+
getAutoSuggestions?: (() => string[]) | undefined;
|
|
381
|
+
/**
|
|
382
|
+
* Autonomy next prompt template for YOLO+auto mode. Contains {{suggestion}} placeholder.
|
|
383
|
+
*/
|
|
384
|
+
autonomyNextPrompt?: string | undefined;
|
|
385
|
+
/**
|
|
386
|
+
* Write parsed next steps into the shared suggestion store.
|
|
387
|
+
* Called by the Entry component after parsing each assistant message
|
|
388
|
+
* so /next 1 and the auto-submit countdown can access them.
|
|
389
|
+
*/
|
|
390
|
+
setSuggestions?: ((steps: string[]) => void) | undefined;
|
|
391
|
+
/**
|
|
392
|
+
* Messages restored from a previous session. When provided (non-empty),
|
|
393
|
+
* the TUI renders the prior conversation as history entries so a resumed
|
|
394
|
+
* session shows its full chat context, not just the LLM's internal state.
|
|
395
|
+
*/
|
|
396
|
+
restoredMessages?: Message[] | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Tool execution records from a previous session, keyed by tool_use id.
|
|
399
|
+
* Used to render tool entries (name, duration, ok/error) in the TUI on
|
|
400
|
+
* resume. Events are `tool_call_end` records from the session JSONL.
|
|
401
|
+
*/
|
|
402
|
+
restoredToolCalls?: Array<{
|
|
403
|
+
name: string;
|
|
404
|
+
id: string;
|
|
405
|
+
durationMs: number;
|
|
406
|
+
ok: boolean;
|
|
407
|
+
outputBytes?: number | undefined;
|
|
408
|
+
outputTokens?: number | undefined;
|
|
409
|
+
outputLines?: number | undefined;
|
|
410
|
+
}> | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* List recent session summaries for the /resume picker. The CLI reads
|
|
413
|
+
* from the session store and returns ResumeSessionEntry-shaped data.
|
|
414
|
+
*/
|
|
415
|
+
listSessions?: ((limit?: number) => Promise<import('./app-state.js').ResumeSessionEntry[]>) | undefined;
|
|
416
|
+
/**
|
|
417
|
+
* Resume a session by id: load JSONL events, replay history entries,
|
|
418
|
+
* rebuild agent context, and return hydrated entries for the TUI to
|
|
419
|
+
* display. Returns null when resume fails.
|
|
420
|
+
*/
|
|
421
|
+
onResumeSession?: ((sessionId: string) => Promise<{
|
|
422
|
+
entries: import('./components/history/types.js').HistoryEntry[];
|
|
423
|
+
nextId: number;
|
|
424
|
+
sessionId: string;
|
|
425
|
+
} | null>) | undefined;
|
|
426
|
+
getProjectPickerItems?: (() => Promise<import('./components/project-picker.js').ProjectPickerItem[]>) | undefined;
|
|
427
|
+
onProjectSelect?: ((key: string, kind: 'project' | 'action') => void) | undefined;
|
|
428
|
+
/**
|
|
429
|
+
* Request the TUI to exit with a specific code. Used by the project picker
|
|
430
|
+
* to trigger a clean exit before spawning a new wstack process in a different
|
|
431
|
+
* project directory. The host CLI catches this exit code and performs the
|
|
432
|
+
* actual project switch.
|
|
433
|
+
*/
|
|
434
|
+
requestExit?: (code: number) => void;
|
|
435
|
+
getLiveSessions?: (() => Promise<import('./components/sessions-panel.js').LiveSessionEntry[]>) | undefined;
|
|
436
|
+
onSwitchToSession?: ((sessionId: string, projectRoot: string, projectName: string) => void) | undefined;
|
|
437
|
+
/**
|
|
438
|
+
* When true, the agents monitor (F3) is open by default at TUI startup.
|
|
439
|
+
* Used by the `wrongstack quick` command to show agents panel immediately.
|
|
440
|
+
*/
|
|
441
|
+
initialAgentsMonitorOpen?: boolean | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* Access the project-level AutonomousCoordinator instance. When set, the TUI
|
|
444
|
+
* renders a coordination panel showing live goals, pending tasks, consensus
|
|
445
|
+
* decisions, and shared knowledge from all active sessions. The coordinator
|
|
446
|
+
* runs independently of the session — it coordinates multiple sessions.
|
|
447
|
+
*/
|
|
448
|
+
getAutonomousCoordinator?: () => AutonomousCoordinator | null | undefined;
|
|
449
|
+
/**
|
|
450
|
+
* Subscribe to live events from the AutonomousCoordinator:
|
|
451
|
+
* - `goal:added` — new coordination goal received
|
|
452
|
+
* - `goal:completed` — goal finished successfully
|
|
453
|
+
* - `goal:failed` — goal failed after max attempts
|
|
454
|
+
* - `task:ready` — task's dependencies are satisfied, ready to execute
|
|
455
|
+
* - `task:completed` — task finished
|
|
456
|
+
* - `knowledge:added` — new shared fact published
|
|
457
|
+
* - `consensus:reached` — multi-session agreement reached
|
|
458
|
+
* Returns an unsubscribe function.
|
|
459
|
+
*/
|
|
460
|
+
subscribeCoordinatorEvents?: (fn: (event: CoordinatorEvent) => void) => () => void;
|
|
461
|
+
/**
|
|
462
|
+
* Start the AutonomousCoordinator loop. Fire-and-forget — run() loops
|
|
463
|
+
* asynchronously. Pass a goal string to begin decomposition and task
|
|
464
|
+
* auction immediately.
|
|
465
|
+
*/
|
|
466
|
+
onCoordinatorStart?: ((goal?: string) => void) | undefined;
|
|
467
|
+
/** Stop the AutonomousCoordinator loop. */
|
|
468
|
+
onCoordinatorStop?: (() => void) | undefined;
|
|
469
|
+
/** List pending coordinator tasks claimable by this terminal. */
|
|
470
|
+
onCoordinatorTasks?: (() => Promise<Array<{
|
|
471
|
+
id: string;
|
|
472
|
+
title: string;
|
|
473
|
+
priority: string;
|
|
474
|
+
tags: string[];
|
|
475
|
+
}> | null>) | undefined;
|
|
476
|
+
/** Claim a coordinator task. Returns description on success. */
|
|
477
|
+
onCoordinatorClaim?: ((taskId: string) => Promise<string | null | {
|
|
478
|
+
description: string;
|
|
479
|
+
}>) | undefined;
|
|
480
|
+
/** Mark a claimed task as completed. */
|
|
481
|
+
onCoordinatorComplete?: ((taskId: string, result?: string) => Promise<string | null>) | undefined;
|
|
482
|
+
/** Mark a claimed task as failed. */
|
|
483
|
+
onCoordinatorFail?: ((taskId: string, error: string) => Promise<string | null>) | undefined;
|
|
484
|
+
/** Get coordinator stats for status display. */
|
|
485
|
+
onCoordinatorStatus?: (() => Promise<{
|
|
486
|
+
goals: {
|
|
487
|
+
total: number;
|
|
488
|
+
done: number;
|
|
489
|
+
pending: number;
|
|
490
|
+
failed: number;
|
|
491
|
+
};
|
|
492
|
+
dag: {
|
|
493
|
+
running: number;
|
|
494
|
+
ready: number;
|
|
495
|
+
done: number;
|
|
496
|
+
failed: number;
|
|
497
|
+
};
|
|
498
|
+
auction: {
|
|
499
|
+
pending: number;
|
|
500
|
+
inProgress: number;
|
|
501
|
+
};
|
|
502
|
+
} | null>) | undefined;
|
|
503
|
+
}
|
|
504
|
+
export declare function silenceTerminal(): void;
|
|
505
|
+
export declare function unsilenceTerminal(): void;
|
|
506
|
+
export declare function runTui(opts: RunTuiOptions): Promise<number>;
|
|
507
|
+
//# sourceMappingURL=run-tui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-tui.d.ts","sourceRoot":"","sources":["../src/run-tui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,KAAK,aAAa,EAUnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAA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AAC,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;CACf;AAwDD,wBAAgB,eAAe,IAAI,IAAI,CAUtC;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAUxC;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAulBjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SlashCommand } from '@wrongstack/core';
|
|
2
|
+
import type { SlashCommandMatch } from './app-state.js';
|
|
3
|
+
type SlashCommandEntry = {
|
|
4
|
+
cmd: SlashCommand;
|
|
5
|
+
owner: string;
|
|
6
|
+
fullName: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function buildSlashCommandMatches(entries: SlashCommandEntry[], rawQuery: string): SlashCommandMatch[];
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=slash-command-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash-command-search.d.ts","sourceRoot":"","sources":["../src/slash-command-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,YAAY,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAQF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,iBAAiB,EAAE,EAC5B,QAAQ,EAAE,MAAM,GACf,iBAAiB,EAAE,CAkBrB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { State } from './app-reducer.js';
|
|
2
|
+
/**
|
|
3
|
+
* Build the steering preamble that gets prepended to a user's message
|
|
4
|
+
* after they pressed Esc to interrupt the agent. The preamble carries
|
|
5
|
+
* three things the model would otherwise have to infer:
|
|
6
|
+
*
|
|
7
|
+
* 1. Context — exactly what was in flight (tool calls, subagents,
|
|
8
|
+
* partial assistant text). Without this the model rationalizes
|
|
9
|
+
* from chat scrollback and often resumes the prior task by
|
|
10
|
+
* accident.
|
|
11
|
+
* 2. Authority — a short, explicit list of what the model is
|
|
12
|
+
* allowed to do (abandon the prior plan, respawn fresh
|
|
13
|
+
* subagents, ask for clarification). Models hedge unless they
|
|
14
|
+
* believe they have permission to pivot hard.
|
|
15
|
+
* 3. New direction — the user's actual instruction, fenced off.
|
|
16
|
+
*
|
|
17
|
+
* The block is user-role plain text. We deliberately don't use a
|
|
18
|
+
* system role here — the human triggered this, so accountability
|
|
19
|
+
* stays with their turn and the model can challenge / clarify
|
|
20
|
+
* without violating role separation.
|
|
21
|
+
*
|
|
22
|
+
* Exported for the steering test that pins the contract.
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildSteeringPreamble(snapshot: State['steerSnapshot'], newDirection: string): string;
|
|
25
|
+
//# sourceMappingURL=steering-preamble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steering-preamble.d.ts","sourceRoot":"","sources":["../src/steering-preamble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,EAChC,YAAY,EAAE,MAAM,GACnB,MAAM,CA4CR"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type SubmitHistoryRoute = 'slash' | 'prompt-picker' | 'paste-image' | 'normal';
|
|
2
|
+
/**
|
|
3
|
+
* Decide whether a submitted input should be pushed into input history.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the current TUI submit behavior in `app.tsx`:
|
|
6
|
+
* - blank input is ignored entirely
|
|
7
|
+
* - `/image` and `/paste-image` are remembered
|
|
8
|
+
* - bare `/prompt` and `/prompts-browse` are remembered
|
|
9
|
+
* - all slash commands are remembered
|
|
10
|
+
* - normal free-text submissions are remembered
|
|
11
|
+
*/
|
|
12
|
+
export declare function shouldPushSubmittedHistory(raw: string): {
|
|
13
|
+
push: boolean;
|
|
14
|
+
route: SubmitHistoryRoute | 'empty';
|
|
15
|
+
trimmed: string;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=submit-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit-history.d.ts","sourceRoot":"","sources":["../src/submit-history.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,eAAe,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEtF;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG;IACvD,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB,CAaA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EventBus } from '@wrongstack/core';
|
|
2
|
+
export interface TerminalTitleOptions {
|
|
3
|
+
stdout: NodeJS.WriteStream;
|
|
4
|
+
events: EventBus;
|
|
5
|
+
model?: string | undefined;
|
|
6
|
+
appName?: string | undefined;
|
|
7
|
+
intervalMs?: number | undefined;
|
|
8
|
+
/** ms of silence before the title falls back to the idle marquee. */
|
|
9
|
+
idleAfterMs?: number | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function startTerminalTitle(opts: TerminalTitleOptions): () => void;
|
|
12
|
+
//# sourceMappingURL=terminal-title.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-title.d.ts","sourceRoot":"","sources":["../src/terminal-title.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAwBjD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC;IAC3B,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,IAAI,CA+DzE"}
|