@agi-fans/dsh-tui 0.22.0 → 0.23.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/LICENSE +26 -0
- package/lib/CHANGELOG.md +199 -1
- package/lib/chrome/box.d.ts +1 -18
- package/lib/chrome/box.js +2 -45
- package/lib/chrome/box.js.map +1 -1
- package/lib/chrome/code-highlight.js +4 -4
- package/lib/chrome/code-highlight.js.map +1 -1
- package/lib/chrome/command-output.d.ts +0 -1
- package/lib/chrome/command-output.js +11 -5
- package/lib/chrome/command-output.js.map +1 -1
- package/lib/chrome/goal-bar.js +1 -1
- package/lib/chrome/goal-bar.js.map +1 -1
- package/lib/chrome/main-screen-renderer.js +4 -3
- package/lib/chrome/main-screen-renderer.js.map +1 -1
- package/lib/chrome/markdown.d.ts +3 -3
- package/lib/chrome/markdown.js +85 -36
- package/lib/chrome/markdown.js.map +1 -1
- package/lib/chrome/md-style.d.ts +5 -2
- package/lib/chrome/md-style.js +13 -4
- package/lib/chrome/md-style.js.map +1 -1
- package/lib/chrome/renderer.d.ts +37 -1
- package/lib/chrome/renderer.js.map +1 -1
- package/lib/chrome/status-line.d.ts +3 -3
- package/lib/chrome/status-line.js +5 -5
- package/lib/chrome/status-line.js.map +1 -1
- package/lib/chrome/theme.d.ts +8 -3
- package/lib/chrome/theme.js +51 -153
- package/lib/chrome/theme.js.map +1 -1
- package/lib/commands/auth-account.d.ts +9 -0
- package/lib/commands/auth-account.js +202 -0
- package/lib/commands/auth-account.js.map +1 -0
- package/lib/commands/auth.js +238 -414
- package/lib/commands/auth.js.map +1 -1
- package/lib/commands/diff.js +22 -16
- package/lib/commands/diff.js.map +1 -1
- package/lib/commands/export.d.ts +0 -1
- package/lib/commands/export.js +97 -32
- package/lib/commands/export.js.map +1 -1
- package/lib/commands/files.js +2 -8
- package/lib/commands/files.js.map +1 -1
- package/lib/commands/integrations.d.ts +12 -1
- package/lib/commands/integrations.js +120 -23
- package/lib/commands/integrations.js.map +1 -1
- package/lib/commands/jobs-browser.d.ts +3 -0
- package/lib/commands/jobs-browser.js +152 -0
- package/lib/commands/jobs-browser.js.map +1 -0
- package/lib/commands/jobs.d.ts +3 -14
- package/lib/commands/jobs.js +26 -18
- package/lib/commands/jobs.js.map +1 -1
- package/lib/commands/model.d.ts +3 -0
- package/lib/commands/model.js +197 -120
- package/lib/commands/model.js.map +1 -1
- package/lib/commands/open-external.d.ts +2 -0
- package/lib/commands/open-external.js +19 -0
- package/lib/commands/open-external.js.map +1 -0
- package/lib/commands/permission.js +65 -54
- package/lib/commands/permission.js.map +1 -1
- package/lib/commands/plugins.js +381 -139
- package/lib/commands/plugins.js.map +1 -1
- package/lib/commands/schedule-catalog.d.ts +12 -0
- package/lib/commands/schedule-catalog.js +41 -0
- package/lib/commands/schedule-catalog.js.map +1 -0
- package/lib/commands/schedule-history.d.ts +4 -0
- package/lib/commands/schedule-history.js +62 -0
- package/lib/commands/schedule-history.js.map +1 -0
- package/lib/commands/schedule.d.ts +12 -15
- package/lib/commands/schedule.js +220 -187
- package/lib/commands/schedule.js.map +1 -1
- package/lib/commands/session-configuration.d.ts +3 -0
- package/lib/commands/session-configuration.js +62 -28
- package/lib/commands/session-configuration.js.map +1 -1
- package/lib/commands/session.js +111 -66
- package/lib/commands/session.js.map +1 -1
- package/lib/commands/terminal.js +14 -8
- package/lib/commands/terminal.js.map +1 -1
- package/lib/definition.d.ts +112 -15
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/input/actions.d.ts +1 -1
- package/lib/input/actions.js +5 -2
- package/lib/input/actions.js.map +1 -1
- package/lib/input/composer-files.d.ts +2 -0
- package/lib/input/composer-files.js +13 -3
- package/lib/input/composer-files.js.map +1 -1
- package/lib/input/image-paste.d.ts +5 -12
- package/lib/input/image-paste.js +32 -28
- package/lib/input/image-paste.js.map +1 -1
- package/lib/input/key-test.d.ts +5 -0
- package/lib/input/key-test.js +19 -0
- package/lib/input/key-test.js.map +1 -0
- package/lib/input/keys.d.ts +2 -0
- package/lib/input/keys.js +4 -1
- package/lib/input/keys.js.map +1 -1
- package/lib/locale/index.d.ts +6 -0
- package/lib/locale/index.js +32 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/prompt.d.ts +4 -0
- package/lib/locale/prompt.js +24 -0
- package/lib/locale/prompt.js.map +1 -0
- package/lib/locale/zh.d.ts +1114 -0
- package/lib/locale/zh.js +1115 -0
- package/lib/locale/zh.js.map +1 -0
- package/lib/prompt-intents.d.ts +4 -0
- package/lib/prompt-intents.js +4 -0
- package/lib/prompt-intents.js.map +1 -1
- package/lib/runtime/account-settings.d.ts +18 -0
- package/lib/runtime/account-settings.js +241 -0
- package/lib/runtime/account-settings.js.map +1 -0
- package/lib/runtime/agent-profile.d.ts +3 -3
- package/lib/runtime/agent-profile.js +4 -4
- package/lib/runtime/agent-profile.js.map +1 -1
- package/lib/runtime/btw-policy.js +2 -1
- package/lib/runtime/btw-policy.js.map +1 -1
- package/lib/runtime/btw.js +1 -2
- package/lib/runtime/btw.js.map +1 -1
- package/lib/runtime/composer-images.d.ts +2 -2
- package/lib/runtime/composer-images.js +4 -4
- package/lib/runtime/composer-images.js.map +1 -1
- package/lib/runtime/composer-shell.js +27 -1
- package/lib/runtime/composer-shell.js.map +1 -1
- package/lib/runtime/file-browser.d.ts +19 -0
- package/lib/runtime/file-browser.js +291 -0
- package/lib/runtime/file-browser.js.map +1 -0
- package/lib/runtime/file-review.d.ts +6 -9
- package/lib/runtime/file-review.js +91 -7
- package/lib/runtime/file-review.js.map +1 -1
- package/lib/runtime/help-reader.d.ts +12 -0
- package/lib/runtime/help-reader.js +50 -0
- package/lib/runtime/help-reader.js.map +1 -0
- package/lib/runtime/human-interaction.js +1 -1
- package/lib/runtime/human-interaction.js.map +1 -1
- package/lib/runtime/model-catalog-editor.d.ts +12 -0
- package/lib/runtime/model-catalog-editor.js +215 -0
- package/lib/runtime/model-catalog-editor.js.map +1 -0
- package/lib/runtime/model-settings.d.ts +11 -0
- package/lib/runtime/model-settings.js +404 -0
- package/lib/runtime/model-settings.js.map +1 -0
- package/lib/runtime/plugin-settings.d.ts +4 -1
- package/lib/runtime/plugin-settings.js +164 -88
- package/lib/runtime/plugin-settings.js.map +1 -1
- package/lib/runtime/prompt-browser.d.ts +9 -0
- package/lib/runtime/prompt-browser.js +19 -0
- package/lib/runtime/prompt-browser.js.map +1 -0
- package/lib/runtime/provider-local.d.ts +27 -27
- package/lib/runtime/provider-local.js +1264 -308
- package/lib/runtime/provider-local.js.map +1 -1
- package/lib/runtime/reference-reader.d.ts +15 -0
- package/lib/runtime/reference-reader.js +78 -0
- package/lib/runtime/reference-reader.js.map +1 -0
- package/lib/runtime/runner.js +38 -29
- package/lib/runtime/runner.js.map +1 -1
- package/lib/runtime/session-runtime.js +1 -1
- package/lib/runtime/session-runtime.js.map +1 -1
- package/lib/runtime/settings-draft.d.ts +21 -0
- package/lib/runtime/settings-draft.js +166 -0
- package/lib/runtime/settings-draft.js.map +1 -0
- package/lib/runtime/settings-preferences.js +1 -1
- package/lib/runtime/settings-preferences.js.map +1 -1
- package/lib/runtime/startup-notices.d.ts +0 -1
- package/lib/runtime/startup-notices.js +35 -6
- package/lib/runtime/startup-notices.js.map +1 -1
- package/lib/runtime/subagent-model-selection.js +2 -1
- package/lib/runtime/subagent-model-selection.js.map +1 -1
- package/lib/runtime/subagent-settings.d.ts +14 -0
- package/lib/runtime/subagent-settings.js +288 -0
- package/lib/runtime/subagent-settings.js.map +1 -0
- package/lib/runtime/terminal-notifications.d.ts +3 -0
- package/lib/runtime/terminal-notifications.js +13 -8
- package/lib/runtime/terminal-notifications.js.map +1 -1
- package/lib/runtime/terminal-probe.d.ts +2 -0
- package/lib/runtime/terminal-probe.js +9 -0
- package/lib/runtime/terminal-probe.js.map +1 -1
- package/lib/runtime/tool-presentation.js.map +1 -1
- package/lib/runtime/tool-reader.d.ts +5 -0
- package/lib/runtime/tool-reader.js +27 -0
- package/lib/runtime/tool-reader.js.map +1 -0
- package/lib/runtime/web-settings.d.ts +14 -0
- package/lib/runtime/web-settings.js +339 -0
- package/lib/runtime/web-settings.js.map +1 -0
- package/lib/session/command-attachments.d.ts +17 -0
- package/lib/session/command-attachments.js +50 -0
- package/lib/session/command-attachments.js.map +1 -0
- package/lib/session/context-diagnostics.d.ts +16 -0
- package/lib/session/context-diagnostics.js +15 -0
- package/lib/session/context-diagnostics.js.map +1 -1
- package/lib/session/external-agents.d.ts +3 -1
- package/lib/session/external-agents.js +35 -10
- package/lib/session/external-agents.js.map +1 -1
- package/lib/session/generation-continuation.d.ts +11 -0
- package/lib/session/generation-continuation.js +34 -0
- package/lib/session/generation-continuation.js.map +1 -0
- package/lib/session/goal-controls.d.ts +5 -0
- package/lib/session/goal-controls.js +81 -0
- package/lib/session/goal-controls.js.map +1 -0
- package/lib/session/interaction-adapter.d.ts +7 -3
- package/lib/session/interaction-adapter.js +121 -49
- package/lib/session/interaction-adapter.js.map +1 -1
- package/lib/session/message-queue.d.ts +2 -0
- package/lib/session/message-queue.js +102 -17
- package/lib/session/message-queue.js.map +1 -1
- package/lib/session/pending-inputs.d.ts +30 -0
- package/lib/session/pending-inputs.js +183 -0
- package/lib/session/pending-inputs.js.map +1 -0
- package/lib/session/session-configuration.js +1 -1
- package/lib/session/session-configuration.js.map +1 -1
- package/lib/session/session-controller.d.ts +32 -13
- package/lib/session/session-controller.js +444 -98
- package/lib/session/session-controller.js.map +1 -1
- package/lib/session/subagent-roster.d.ts +1 -0
- package/lib/session/subagent-roster.js +16 -5
- package/lib/session/subagent-roster.js.map +1 -1
- package/lib/session/subagent-tracker.d.ts +2 -0
- package/lib/session/subagent-tracker.js +18 -0
- package/lib/session/subagent-tracker.js.map +1 -1
- package/lib/session/tui-settings.d.ts +9 -5
- package/lib/session/tui-settings.js +3 -1
- package/lib/session/tui-settings.js.map +1 -1
- package/lib/session/workflow-projection.d.ts +2 -1
- package/lib/session/workflow-projection.js +34 -4
- package/lib/session/workflow-projection.js.map +1 -1
- package/lib/views/autocomplete.d.ts +10 -7
- package/lib/views/autocomplete.js +44 -37
- package/lib/views/autocomplete.js.map +1 -1
- package/lib/views/context-overview.d.ts +4 -0
- package/lib/views/context-overview.js +43 -0
- package/lib/views/context-overview.js.map +1 -0
- package/lib/views/copy-targets.d.ts +6 -2
- package/lib/views/copy-targets.js +19 -14
- package/lib/views/copy-targets.js.map +1 -1
- package/lib/views/document-reader.d.ts +10 -1
- package/lib/views/document-reader.js +59 -5
- package/lib/views/document-reader.js.map +1 -1
- package/lib/views/event-views.js +29 -11
- package/lib/views/event-views.js.map +1 -1
- package/lib/views/file-actions.js +21 -0
- package/lib/views/file-actions.js.map +1 -1
- package/lib/views/file-browser.d.ts +98 -0
- package/lib/views/file-browser.js +120 -0
- package/lib/views/file-browser.js.map +1 -0
- package/lib/views/history-search.js +4 -4
- package/lib/views/history-search.js.map +1 -1
- package/lib/views/hotkey-format.d.ts +3 -2
- package/lib/views/hotkey-format.js +4 -3
- package/lib/views/hotkey-format.js.map +1 -1
- package/lib/views/hotkeys.js +10 -12
- package/lib/views/hotkeys.js.map +1 -1
- package/lib/views/list-view.js +16 -11
- package/lib/views/list-view.js.map +1 -1
- package/lib/views/prompt-selector.d.ts +23 -1
- package/lib/views/prompt-selector.js +123 -60
- package/lib/views/prompt-selector.js.map +1 -1
- package/lib/views/settings-list.d.ts +6 -1
- package/lib/views/settings-list.js +69 -46
- package/lib/views/settings-list.js.map +1 -1
- package/lib/views/tool-actions.d.ts +16 -0
- package/lib/views/tool-actions.js +29 -0
- package/lib/views/tool-actions.js.map +1 -0
- package/lib/views/trajectory-timeline.d.ts +5 -6
- package/lib/views/trajectory-timeline.js +25 -15
- package/lib/views/trajectory-timeline.js.map +1 -1
- package/lib/views/trajectory.d.ts +23 -2
- package/lib/views/trajectory.js +404 -186
- package/lib/views/trajectory.js.map +1 -1
- package/lib/views/transcript-render.d.ts +39 -15
- package/lib/views/transcript-render.js +406 -208
- package/lib/views/transcript-render.js.map +1 -1
- package/lib/views/transcript-types.d.ts +3 -2
- package/lib/views/transcript-types.js.map +1 -1
- package/lib/views/workflow.d.ts +16 -0
- package/lib/views/workflow.js +42 -0
- package/lib/views/workflow.js.map +1 -0
- package/package.json +61 -58
- package/lib/chrome/welcome-tips.d.ts +0 -23
- package/lib/chrome/welcome-tips.js +0 -24
- package/lib/chrome/welcome-tips.js.map +0 -1
- package/lib/session/steering.d.ts +0 -3
- package/lib/session/steering.js +0 -9
- package/lib/session/steering.js.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Prompt adapters spread requests to add cancellation and localization.
|
|
2
|
+
const BROWSER_STATE = Symbol('prompt-browser-state');
|
|
3
|
+
export function promptBrowserState(request) {
|
|
4
|
+
return request[BROWSER_STATE];
|
|
5
|
+
}
|
|
6
|
+
/** Reopen related lists without losing their filter or focused row. */
|
|
7
|
+
export function createPromptBrowser(prompt) {
|
|
8
|
+
const lists = new Map();
|
|
9
|
+
return (request, key = request.title) => {
|
|
10
|
+
let state = lists.get(key);
|
|
11
|
+
if (state === undefined) {
|
|
12
|
+
state = { query: '' };
|
|
13
|
+
lists.set(key, state);
|
|
14
|
+
}
|
|
15
|
+
const browsingRequest = { ...request, [BROWSER_STATE]: state };
|
|
16
|
+
return prompt(browsingRequest);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=prompt-browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-browser.js","sourceRoot":"","sources":["../../src/runtime/prompt-browser.ts"],"names":[],"mappings":"AAQA,wEAAwE;AACxE,MAAM,aAAa,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAA;AAEpD,MAAM,UAAU,kBAAkB,CAAC,OAAkB;IACnD,OAAQ,OAAgE,CAAC,aAAa,CAAC,CAAA;AACzF,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,mBAAmB,CAAC,MAA4B;IAC9D,MAAM,KAAK,GAAG,IAAI,GAAG,EAA8B,CAAA;IACnD,OAAO,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE;QACtC,IAAI,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QAC1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,KAAK,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;YACrB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QACvB,CAAC;QACD,MAAM,eAAe,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,CAAA;QAC9D,OAAO,MAAM,CAAC,eAAe,CAAC,CAAA;IAChC,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* TUI capability seam — local terminal provider.
|
|
3
|
-
|
|
4
|
-
* Owns the tty: raw-mode key input (editing, history, slash/tab
|
|
5
|
-
* autocomplete, /settings overlay, Ctrl-R history search, PgUp/PgDn
|
|
6
|
-
* and Shift+Up/Down transcript scroll, Ctrl-O tool
|
|
7
|
-
* expand, bracketed paste, double-Escape conversation rewind, double Ctrl-C exit, Ctrl-D quit),
|
|
8
|
-
* SIGWINCH reflow, and the differential renderer. In non-tty mode
|
|
9
|
-
* (pipes, CI) it degrades to line-based input with plain append-only
|
|
10
|
-
* printing of settled blocks.
|
|
11
|
-
* @module @agi-fans/dsh-tui
|
|
12
|
-
*/
|
|
1
|
+
import type { TuiFileReview } from '../definition.ts';
|
|
13
2
|
import { HerdrAgentReporter } from './herdr-agent.ts';
|
|
14
3
|
import { type ImageProtocol } from '../chrome/terminal-images.ts';
|
|
15
4
|
import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
@@ -17,7 +6,7 @@ import type { Context } from '@deepseek-ai/cordis';
|
|
|
17
6
|
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
18
7
|
import type { WorkspaceChangesSummary } from '@deepseek-ai/dsh-workspace-changes';
|
|
19
8
|
import type { FileAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
20
|
-
import { type TuiAgentBehaviorSettingsBinding, type TuiCommand, type TuiOutputOptions, type TuiShellRequest, type TuiShellResult, type TuiPrompt, type TuiNoticeOptions, type TuiRecentSession, type TuiService, type TuiSessionControls, type TuiSessionStats, type TuiStatus, type TuiTranscriptReplacement, type TuiInputImage, type TuiInspectedSubagent, type TuiLoopStatus, type TuiSubagentRoster, type TuiSubmission, type TuiPendingInputs } from '../definition.ts';
|
|
9
|
+
import { type TuiAgentBehaviorSettingsBinding, type TuiCommand, type TuiOutputOptions, type TuiShellRequest, type TuiShellResult, type TuiPrompt, type TuiNoticeOptions, type TuiRecentSession, type TuiService, type TuiSessionControls, type TuiSessionStats, type TuiStatus, type TuiTranscriptReplacement, type TuiInputImage, type TuiInspectedSubagent, type TuiLoopStatus, type TuiSubagentRoster, type TuiSubmission, type TuiQueueEditRequest, type TuiPendingInputs } from '../definition.ts';
|
|
21
10
|
import { type DirReader, type PathSearcher } from '../views/path-complete.ts';
|
|
22
11
|
import { type FileSearcher, type SessionSearcher } from '../views/at-complete.ts';
|
|
23
12
|
import { type ClipboardReader, type ClipboardWriter } from '../input/clipboard.ts';
|
|
@@ -62,53 +51,57 @@ export interface Config extends TuiSettings {
|
|
|
62
51
|
* `loader/volatile-update` without remounting the terminal provider.
|
|
63
52
|
*/
|
|
64
53
|
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
54
|
+
uiLanguage: z<"en" | "zh-CN" | "auto", "en" | "zh-CN" | "auto", "volatile-defined">;
|
|
65
55
|
theme: z<"dark" | "light" | "system", "dark" | "light" | "system", "volatile-defined">;
|
|
66
56
|
colors: z<boolean, boolean, "volatile">;
|
|
67
|
-
motion: z<"
|
|
57
|
+
motion: z<"off" | "full" | "reduced", "off" | "full" | "reduced", "volatile-defined">;
|
|
68
58
|
mathMode: z<"auto" | "source", "auto" | "source", "volatile-defined">;
|
|
69
59
|
mermaidMode: z<"auto" | "source", "auto" | "source", "volatile-defined">;
|
|
70
60
|
hideThinking: z<boolean, boolean, "volatile-defined">;
|
|
71
61
|
editor: z<"auto" | "code" | "cursor" | "codium" | "nvim" | "vim" | "nano" | "vi", "auto" | "code" | "cursor" | "codium" | "nvim" | "vim" | "nano" | "vi", "volatile-defined">;
|
|
72
|
-
terminalTitle: z<"session" | "workspace" | "
|
|
62
|
+
terminalTitle: z<"session" | "workspace" | "off" | "status", "session" | "workspace" | "off" | "status", "volatile-defined">;
|
|
73
63
|
terminalState: z<"on" | "auto" | "off", "on" | "auto" | "off", "volatile-defined">;
|
|
64
|
+
busyEnter: z<"queue" | "steer", "queue" | "steer", "volatile-defined">;
|
|
74
65
|
pasteProtection: z<boolean, boolean, "volatile-defined">;
|
|
75
66
|
copyOnSelect: z<boolean, boolean, "volatile-defined">;
|
|
76
67
|
mouseInteraction: z<"tui" | "auto" | "native", "tui" | "auto" | "native", "volatile-defined">;
|
|
77
|
-
foldDensity: z<"standard" | "
|
|
68
|
+
foldDensity: z<"standard" | "verbose" | "compact" | "detailed", "standard" | "verbose" | "compact" | "detailed", "volatile-defined">;
|
|
78
69
|
expandTools: z<boolean, boolean, "volatile-defined">;
|
|
79
70
|
checkUpdates: z<boolean, boolean, "volatile-defined">;
|
|
80
|
-
startupChangelog: z<"
|
|
71
|
+
startupChangelog: z<"hidden" | "summary" | "expanded", "hidden" | "summary" | "expanded", "volatile-defined">;
|
|
81
72
|
notifications: z<"off" | "unfocused" | "always" | "long-running", "off" | "unfocused" | "always" | "long-running", "volatile-defined">;
|
|
82
73
|
notificationFocus: z<"unfocused" | "always", "unfocused" | "always", "volatile">;
|
|
83
74
|
notificationThreshold: z<"15s" | "30s" | "1m" | "2m", "15s" | "30s" | "1m" | "2m", "volatile">;
|
|
84
75
|
statusBar: z<any, any, "volatile" | "volatile-defined">;
|
|
85
|
-
statusPreset: z<"
|
|
76
|
+
statusPreset: z<"full" | "minimal" | "compact", "full" | "minimal" | "compact", "volatile">;
|
|
86
77
|
model: z<string, string, "defined">;
|
|
87
78
|
historyPath: z<string, string, "plain">;
|
|
88
79
|
keybindingsPath: z<string, string, "plain">;
|
|
89
80
|
dshHome: z<string, string, "plain">;
|
|
90
81
|
}>>, Schemastery.ObjectT<NoInfer<{
|
|
82
|
+
uiLanguage: z<"en" | "zh-CN" | "auto", "en" | "zh-CN" | "auto", "volatile-defined">;
|
|
91
83
|
theme: z<"dark" | "light" | "system", "dark" | "light" | "system", "volatile-defined">;
|
|
92
84
|
colors: z<boolean, boolean, "volatile">;
|
|
93
|
-
motion: z<"
|
|
85
|
+
motion: z<"off" | "full" | "reduced", "off" | "full" | "reduced", "volatile-defined">;
|
|
94
86
|
mathMode: z<"auto" | "source", "auto" | "source", "volatile-defined">;
|
|
95
87
|
mermaidMode: z<"auto" | "source", "auto" | "source", "volatile-defined">;
|
|
96
88
|
hideThinking: z<boolean, boolean, "volatile-defined">;
|
|
97
89
|
editor: z<"auto" | "code" | "cursor" | "codium" | "nvim" | "vim" | "nano" | "vi", "auto" | "code" | "cursor" | "codium" | "nvim" | "vim" | "nano" | "vi", "volatile-defined">;
|
|
98
|
-
terminalTitle: z<"session" | "workspace" | "
|
|
90
|
+
terminalTitle: z<"session" | "workspace" | "off" | "status", "session" | "workspace" | "off" | "status", "volatile-defined">;
|
|
99
91
|
terminalState: z<"on" | "auto" | "off", "on" | "auto" | "off", "volatile-defined">;
|
|
92
|
+
busyEnter: z<"queue" | "steer", "queue" | "steer", "volatile-defined">;
|
|
100
93
|
pasteProtection: z<boolean, boolean, "volatile-defined">;
|
|
101
94
|
copyOnSelect: z<boolean, boolean, "volatile-defined">;
|
|
102
95
|
mouseInteraction: z<"tui" | "auto" | "native", "tui" | "auto" | "native", "volatile-defined">;
|
|
103
|
-
foldDensity: z<"standard" | "
|
|
96
|
+
foldDensity: z<"standard" | "verbose" | "compact" | "detailed", "standard" | "verbose" | "compact" | "detailed", "volatile-defined">;
|
|
104
97
|
expandTools: z<boolean, boolean, "volatile-defined">;
|
|
105
98
|
checkUpdates: z<boolean, boolean, "volatile-defined">;
|
|
106
|
-
startupChangelog: z<"
|
|
99
|
+
startupChangelog: z<"hidden" | "summary" | "expanded", "hidden" | "summary" | "expanded", "volatile-defined">;
|
|
107
100
|
notifications: z<"off" | "unfocused" | "always" | "long-running", "off" | "unfocused" | "always" | "long-running", "volatile-defined">;
|
|
108
101
|
notificationFocus: z<"unfocused" | "always", "unfocused" | "always", "volatile">;
|
|
109
102
|
notificationThreshold: z<"15s" | "30s" | "1m" | "2m", "15s" | "30s" | "1m" | "2m", "volatile">;
|
|
110
103
|
statusBar: z<any, any, "volatile" | "volatile-defined">;
|
|
111
|
-
statusPreset: z<"
|
|
104
|
+
statusPreset: z<"full" | "minimal" | "compact", "full" | "minimal" | "compact", "volatile">;
|
|
112
105
|
model: z<string, string, "defined">;
|
|
113
106
|
historyPath: z<string, string, "plain">;
|
|
114
107
|
keybindingsPath: z<string, string, "plain">;
|
|
@@ -210,6 +203,7 @@ export declare class LocalTui implements TuiService {
|
|
|
210
203
|
setInspectedSubagent(inspected: TuiInspectedSubagent | undefined): void;
|
|
211
204
|
setTools(tools: readonly ToolInfo[]): void;
|
|
212
205
|
setCommands(commands: readonly TuiCommand[]): void;
|
|
206
|
+
reviewFiles(request: TuiFileReview): Promise<void>;
|
|
213
207
|
openTrajectory(events: readonly SessionEvent[]): boolean;
|
|
214
208
|
setSessionSearch(search?: SessionSearcher): void;
|
|
215
209
|
setFileSearch(search?: FileSearcher): void;
|
|
@@ -244,6 +238,7 @@ export declare class LocalTui implements TuiService {
|
|
|
244
238
|
}>;
|
|
245
239
|
signal: AbortSignal;
|
|
246
240
|
}): Promise<void>;
|
|
241
|
+
openContext(request: Parameters<NonNullable<TuiService['openContext']>>[0]): Promise<string | null>;
|
|
247
242
|
prompt(request: TuiPrompt): Promise<string | null>;
|
|
248
243
|
replaceSession(events: readonly SessionEvent[], presentations?: ReadonlyMap<number, TuiToolPresentation>, status?: TuiStatus, reason?: TuiTranscriptReplacement): void;
|
|
249
244
|
setSession(info: {
|
|
@@ -265,17 +260,22 @@ export declare class LocalTui implements TuiService {
|
|
|
265
260
|
readInput(signal?: AbortSignal): Promise<TuiSubmission | null>;
|
|
266
261
|
/** Compatibility helper for provider-level text editing tests and embedders. */
|
|
267
262
|
readline(): Promise<string | null>;
|
|
268
|
-
restoreInput(submission: TuiSubmission): void;
|
|
269
|
-
resolveQueueEdit(submission: TuiSubmission | null): void;
|
|
263
|
+
restoreInput(submission: TuiSubmission, sessionId?: string): void;
|
|
264
|
+
resolveQueueEdit(submission: TuiSubmission | null, request?: TuiQueueEditRequest): void;
|
|
270
265
|
onInterrupt(listener: () => void): () => void;
|
|
271
266
|
readonly pendingInputs: TuiPendingInputs;
|
|
267
|
+
setContinueHandler(handler: (request: {
|
|
268
|
+
sessionId: string;
|
|
269
|
+
failureSeq: number;
|
|
270
|
+
}) => Promise<void>): () => void;
|
|
271
|
+
setGoalHandler(handler: (signal: AbortSignal) => Promise<void>): () => void;
|
|
272
272
|
setQueueHandler(handler: (signal: AbortSignal) => Promise<void>): () => void;
|
|
273
|
-
onQueueEdit(listener: () => void): () => void;
|
|
273
|
+
onQueueEdit(listener: (request?: TuiQueueEditRequest) => void): () => void;
|
|
274
274
|
onRewind(listener: () => void): () => void;
|
|
275
275
|
onInspectSubagent(listener: (id: string) => void): () => void;
|
|
276
|
+
onInspectWorkflow(listener: (id: string) => void): () => void;
|
|
276
277
|
onInspectClose(listener: () => void): () => void;
|
|
277
278
|
onInspectSubmit(listener: (submission: TuiSubmission) => void): () => void;
|
|
278
|
-
setSteerHandler(handler: (text: string) => void): () => void;
|
|
279
279
|
dispose(): Promise<void>;
|
|
280
280
|
/** Re-render the current frame (resize reflow). */
|
|
281
281
|
refresh(): void;
|