@agi-fans/dsh-tui 0.22.0 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/LICENSE +26 -0
  2. package/lib/CHANGELOG.md +219 -1
  3. package/lib/chrome/box.d.ts +1 -18
  4. package/lib/chrome/box.js +2 -45
  5. package/lib/chrome/box.js.map +1 -1
  6. package/lib/chrome/code-highlight.js +4 -4
  7. package/lib/chrome/code-highlight.js.map +1 -1
  8. package/lib/chrome/command-output.d.ts +0 -1
  9. package/lib/chrome/command-output.js +11 -5
  10. package/lib/chrome/command-output.js.map +1 -1
  11. package/lib/chrome/goal-bar.js +1 -1
  12. package/lib/chrome/goal-bar.js.map +1 -1
  13. package/lib/chrome/main-screen-renderer.js +4 -3
  14. package/lib/chrome/main-screen-renderer.js.map +1 -1
  15. package/lib/chrome/markdown.d.ts +3 -3
  16. package/lib/chrome/markdown.js +85 -36
  17. package/lib/chrome/markdown.js.map +1 -1
  18. package/lib/chrome/md-style.d.ts +5 -2
  19. package/lib/chrome/md-style.js +13 -4
  20. package/lib/chrome/md-style.js.map +1 -1
  21. package/lib/chrome/renderer.d.ts +37 -1
  22. package/lib/chrome/renderer.js.map +1 -1
  23. package/lib/chrome/status-line.d.ts +3 -3
  24. package/lib/chrome/status-line.js +5 -5
  25. package/lib/chrome/status-line.js.map +1 -1
  26. package/lib/chrome/theme.d.ts +8 -3
  27. package/lib/chrome/theme.js +51 -153
  28. package/lib/chrome/theme.js.map +1 -1
  29. package/lib/commands/auth-account.d.ts +9 -0
  30. package/lib/commands/auth-account.js +202 -0
  31. package/lib/commands/auth-account.js.map +1 -0
  32. package/lib/commands/auth.js +238 -414
  33. package/lib/commands/auth.js.map +1 -1
  34. package/lib/commands/diff.js +22 -16
  35. package/lib/commands/diff.js.map +1 -1
  36. package/lib/commands/export.d.ts +0 -1
  37. package/lib/commands/export.js +99 -32
  38. package/lib/commands/export.js.map +1 -1
  39. package/lib/commands/files.js +11 -9
  40. package/lib/commands/files.js.map +1 -1
  41. package/lib/commands/integrations.d.ts +12 -1
  42. package/lib/commands/integrations.js +120 -23
  43. package/lib/commands/integrations.js.map +1 -1
  44. package/lib/commands/jobs-browser.d.ts +3 -0
  45. package/lib/commands/jobs-browser.js +152 -0
  46. package/lib/commands/jobs-browser.js.map +1 -0
  47. package/lib/commands/jobs.d.ts +3 -14
  48. package/lib/commands/jobs.js +26 -18
  49. package/lib/commands/jobs.js.map +1 -1
  50. package/lib/commands/model.d.ts +3 -0
  51. package/lib/commands/model.js +212 -128
  52. package/lib/commands/model.js.map +1 -1
  53. package/lib/commands/open-external.d.ts +2 -0
  54. package/lib/commands/open-external.js +19 -0
  55. package/lib/commands/open-external.js.map +1 -0
  56. package/lib/commands/permission.js +65 -54
  57. package/lib/commands/permission.js.map +1 -1
  58. package/lib/commands/plugins.js +381 -139
  59. package/lib/commands/plugins.js.map +1 -1
  60. package/lib/commands/schedule-catalog.d.ts +12 -0
  61. package/lib/commands/schedule-catalog.js +41 -0
  62. package/lib/commands/schedule-catalog.js.map +1 -0
  63. package/lib/commands/schedule-history.d.ts +4 -0
  64. package/lib/commands/schedule-history.js +62 -0
  65. package/lib/commands/schedule-history.js.map +1 -0
  66. package/lib/commands/schedule.d.ts +12 -15
  67. package/lib/commands/schedule.js +220 -187
  68. package/lib/commands/schedule.js.map +1 -1
  69. package/lib/commands/session-configuration.d.ts +3 -0
  70. package/lib/commands/session-configuration.js +62 -28
  71. package/lib/commands/session-configuration.js.map +1 -1
  72. package/lib/commands/session.js +116 -66
  73. package/lib/commands/session.js.map +1 -1
  74. package/lib/commands/terminal.js +14 -8
  75. package/lib/commands/terminal.js.map +1 -1
  76. package/lib/definition.d.ts +115 -15
  77. package/lib/index.d.ts +1 -0
  78. package/lib/index.js +1 -0
  79. package/lib/index.js.map +1 -1
  80. package/lib/input/actions.d.ts +1 -1
  81. package/lib/input/actions.js +5 -2
  82. package/lib/input/actions.js.map +1 -1
  83. package/lib/input/composer-files.d.ts +2 -0
  84. package/lib/input/composer-files.js +13 -3
  85. package/lib/input/composer-files.js.map +1 -1
  86. package/lib/input/image-paste.d.ts +5 -12
  87. package/lib/input/image-paste.js +32 -28
  88. package/lib/input/image-paste.js.map +1 -1
  89. package/lib/input/key-test.d.ts +5 -0
  90. package/lib/input/key-test.js +19 -0
  91. package/lib/input/key-test.js.map +1 -0
  92. package/lib/input/keys.d.ts +2 -0
  93. package/lib/input/keys.js +4 -1
  94. package/lib/input/keys.js.map +1 -1
  95. package/lib/locale/index.d.ts +6 -0
  96. package/lib/locale/index.js +32 -0
  97. package/lib/locale/index.js.map +1 -0
  98. package/lib/locale/prompt.d.ts +4 -0
  99. package/lib/locale/prompt.js +24 -0
  100. package/lib/locale/prompt.js.map +1 -0
  101. package/lib/locale/zh.d.ts +1114 -0
  102. package/lib/locale/zh.js +1115 -0
  103. package/lib/locale/zh.js.map +1 -0
  104. package/lib/prompt-intents.d.ts +4 -0
  105. package/lib/prompt-intents.js +4 -0
  106. package/lib/prompt-intents.js.map +1 -1
  107. package/lib/runtime/account-settings.d.ts +18 -0
  108. package/lib/runtime/account-settings.js +241 -0
  109. package/lib/runtime/account-settings.js.map +1 -0
  110. package/lib/runtime/agent-profile.d.ts +3 -3
  111. package/lib/runtime/agent-profile.js +4 -4
  112. package/lib/runtime/agent-profile.js.map +1 -1
  113. package/lib/runtime/btw-policy.js +2 -1
  114. package/lib/runtime/btw-policy.js.map +1 -1
  115. package/lib/runtime/btw.js +1 -2
  116. package/lib/runtime/btw.js.map +1 -1
  117. package/lib/runtime/composer-images.d.ts +2 -2
  118. package/lib/runtime/composer-images.js +4 -4
  119. package/lib/runtime/composer-images.js.map +1 -1
  120. package/lib/runtime/composer-shell.js +27 -1
  121. package/lib/runtime/composer-shell.js.map +1 -1
  122. package/lib/runtime/file-browser.d.ts +19 -0
  123. package/lib/runtime/file-browser.js +291 -0
  124. package/lib/runtime/file-browser.js.map +1 -0
  125. package/lib/runtime/file-review.d.ts +6 -9
  126. package/lib/runtime/file-review.js +91 -7
  127. package/lib/runtime/file-review.js.map +1 -1
  128. package/lib/runtime/help-reader.d.ts +12 -0
  129. package/lib/runtime/help-reader.js +50 -0
  130. package/lib/runtime/help-reader.js.map +1 -0
  131. package/lib/runtime/human-interaction.js +1 -1
  132. package/lib/runtime/human-interaction.js.map +1 -1
  133. package/lib/runtime/model-catalog-editor.d.ts +12 -0
  134. package/lib/runtime/model-catalog-editor.js +215 -0
  135. package/lib/runtime/model-catalog-editor.js.map +1 -0
  136. package/lib/runtime/model-settings.d.ts +11 -0
  137. package/lib/runtime/model-settings.js +404 -0
  138. package/lib/runtime/model-settings.js.map +1 -0
  139. package/lib/runtime/plugin-settings.d.ts +4 -1
  140. package/lib/runtime/plugin-settings.js +164 -88
  141. package/lib/runtime/plugin-settings.js.map +1 -1
  142. package/lib/runtime/prompt-browser.d.ts +9 -0
  143. package/lib/runtime/prompt-browser.js +19 -0
  144. package/lib/runtime/prompt-browser.js.map +1 -0
  145. package/lib/runtime/provider-local.d.ts +27 -27
  146. package/lib/runtime/provider-local.js +1288 -308
  147. package/lib/runtime/provider-local.js.map +1 -1
  148. package/lib/runtime/reference-reader.d.ts +15 -0
  149. package/lib/runtime/reference-reader.js +78 -0
  150. package/lib/runtime/reference-reader.js.map +1 -0
  151. package/lib/runtime/runner.js +38 -29
  152. package/lib/runtime/runner.js.map +1 -1
  153. package/lib/runtime/session-runtime.js +1 -1
  154. package/lib/runtime/session-runtime.js.map +1 -1
  155. package/lib/runtime/settings-draft.d.ts +21 -0
  156. package/lib/runtime/settings-draft.js +166 -0
  157. package/lib/runtime/settings-draft.js.map +1 -0
  158. package/lib/runtime/settings-preferences.js +1 -1
  159. package/lib/runtime/settings-preferences.js.map +1 -1
  160. package/lib/runtime/startup-notices.d.ts +0 -1
  161. package/lib/runtime/startup-notices.js +35 -6
  162. package/lib/runtime/startup-notices.js.map +1 -1
  163. package/lib/runtime/subagent-model-selection.js +2 -1
  164. package/lib/runtime/subagent-model-selection.js.map +1 -1
  165. package/lib/runtime/subagent-settings.d.ts +14 -0
  166. package/lib/runtime/subagent-settings.js +288 -0
  167. package/lib/runtime/subagent-settings.js.map +1 -0
  168. package/lib/runtime/terminal-notifications.d.ts +3 -0
  169. package/lib/runtime/terminal-notifications.js +13 -8
  170. package/lib/runtime/terminal-notifications.js.map +1 -1
  171. package/lib/runtime/terminal-probe.d.ts +2 -0
  172. package/lib/runtime/terminal-probe.js +9 -0
  173. package/lib/runtime/terminal-probe.js.map +1 -1
  174. package/lib/runtime/tool-presentation.js.map +1 -1
  175. package/lib/runtime/tool-reader.d.ts +5 -0
  176. package/lib/runtime/tool-reader.js +27 -0
  177. package/lib/runtime/tool-reader.js.map +1 -0
  178. package/lib/runtime/web-settings.d.ts +14 -0
  179. package/lib/runtime/web-settings.js +339 -0
  180. package/lib/runtime/web-settings.js.map +1 -0
  181. package/lib/session/command-attachments.d.ts +17 -0
  182. package/lib/session/command-attachments.js +50 -0
  183. package/lib/session/command-attachments.js.map +1 -0
  184. package/lib/session/context-diagnostics.d.ts +16 -0
  185. package/lib/session/context-diagnostics.js +15 -0
  186. package/lib/session/context-diagnostics.js.map +1 -1
  187. package/lib/session/external-agents.d.ts +3 -1
  188. package/lib/session/external-agents.js +35 -10
  189. package/lib/session/external-agents.js.map +1 -1
  190. package/lib/session/generation-continuation.d.ts +11 -0
  191. package/lib/session/generation-continuation.js +34 -0
  192. package/lib/session/generation-continuation.js.map +1 -0
  193. package/lib/session/goal-controls.d.ts +5 -0
  194. package/lib/session/goal-controls.js +81 -0
  195. package/lib/session/goal-controls.js.map +1 -0
  196. package/lib/session/interaction-adapter.d.ts +7 -3
  197. package/lib/session/interaction-adapter.js +121 -49
  198. package/lib/session/interaction-adapter.js.map +1 -1
  199. package/lib/session/message-queue.d.ts +2 -0
  200. package/lib/session/message-queue.js +102 -17
  201. package/lib/session/message-queue.js.map +1 -1
  202. package/lib/session/pending-inputs.d.ts +30 -0
  203. package/lib/session/pending-inputs.js +183 -0
  204. package/lib/session/pending-inputs.js.map +1 -0
  205. package/lib/session/session-configuration.js +1 -1
  206. package/lib/session/session-configuration.js.map +1 -1
  207. package/lib/session/session-controller.d.ts +33 -20
  208. package/lib/session/session-controller.js +500 -129
  209. package/lib/session/session-controller.js.map +1 -1
  210. package/lib/session/session-library.d.ts +3 -1
  211. package/lib/session/session-library.js +15 -0
  212. package/lib/session/session-library.js.map +1 -1
  213. package/lib/session/subagent-roster.d.ts +1 -0
  214. package/lib/session/subagent-roster.js +16 -5
  215. package/lib/session/subagent-roster.js.map +1 -1
  216. package/lib/session/subagent-tracker.d.ts +2 -0
  217. package/lib/session/subagent-tracker.js +18 -0
  218. package/lib/session/subagent-tracker.js.map +1 -1
  219. package/lib/session/tui-settings.d.ts +9 -5
  220. package/lib/session/tui-settings.js +3 -1
  221. package/lib/session/tui-settings.js.map +1 -1
  222. package/lib/session/workflow-projection.d.ts +2 -1
  223. package/lib/session/workflow-projection.js +34 -4
  224. package/lib/session/workflow-projection.js.map +1 -1
  225. package/lib/views/autocomplete.d.ts +12 -12
  226. package/lib/views/autocomplete.js +54 -45
  227. package/lib/views/autocomplete.js.map +1 -1
  228. package/lib/views/context-overview.d.ts +4 -0
  229. package/lib/views/context-overview.js +43 -0
  230. package/lib/views/context-overview.js.map +1 -0
  231. package/lib/views/copy-targets.d.ts +6 -2
  232. package/lib/views/copy-targets.js +19 -14
  233. package/lib/views/copy-targets.js.map +1 -1
  234. package/lib/views/document-reader.d.ts +10 -1
  235. package/lib/views/document-reader.js +63 -6
  236. package/lib/views/document-reader.js.map +1 -1
  237. package/lib/views/event-views.js +29 -11
  238. package/lib/views/event-views.js.map +1 -1
  239. package/lib/views/file-actions.js +21 -0
  240. package/lib/views/file-actions.js.map +1 -1
  241. package/lib/views/file-browser.d.ts +98 -0
  242. package/lib/views/file-browser.js +120 -0
  243. package/lib/views/file-browser.js.map +1 -0
  244. package/lib/views/history-search.js +4 -4
  245. package/lib/views/history-search.js.map +1 -1
  246. package/lib/views/hotkey-format.d.ts +3 -2
  247. package/lib/views/hotkey-format.js +4 -3
  248. package/lib/views/hotkey-format.js.map +1 -1
  249. package/lib/views/hotkeys.js +10 -12
  250. package/lib/views/hotkeys.js.map +1 -1
  251. package/lib/views/list-view.js +16 -11
  252. package/lib/views/list-view.js.map +1 -1
  253. package/lib/views/prompt-selector.d.ts +23 -1
  254. package/lib/views/prompt-selector.js +123 -60
  255. package/lib/views/prompt-selector.js.map +1 -1
  256. package/lib/views/settings-list.d.ts +6 -1
  257. package/lib/views/settings-list.js +69 -46
  258. package/lib/views/settings-list.js.map +1 -1
  259. package/lib/views/tool-actions.d.ts +16 -0
  260. package/lib/views/tool-actions.js +29 -0
  261. package/lib/views/tool-actions.js.map +1 -0
  262. package/lib/views/trajectory-timeline.d.ts +5 -6
  263. package/lib/views/trajectory-timeline.js +25 -15
  264. package/lib/views/trajectory-timeline.js.map +1 -1
  265. package/lib/views/trajectory.d.ts +23 -2
  266. package/lib/views/trajectory.js +404 -186
  267. package/lib/views/trajectory.js.map +1 -1
  268. package/lib/views/transcript-render.d.ts +39 -15
  269. package/lib/views/transcript-render.js +406 -208
  270. package/lib/views/transcript-render.js.map +1 -1
  271. package/lib/views/transcript-types.d.ts +3 -2
  272. package/lib/views/transcript-types.js.map +1 -1
  273. package/lib/views/workflow.d.ts +16 -0
  274. package/lib/views/workflow.js +42 -0
  275. package/lib/views/workflow.js.map +1 -0
  276. package/package.json +61 -58
  277. package/lib/chrome/welcome-tips.d.ts +0 -23
  278. package/lib/chrome/welcome-tips.js +0 -24
  279. package/lib/chrome/welcome-tips.js.map +0 -1
  280. package/lib/session/steering.d.ts +0 -3
  281. package/lib/session/steering.js +0 -9
  282. 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<"full" | "off" | "reduced", "full" | "off" | "reduced", "volatile-defined">;
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" | "status" | "off", "session" | "workspace" | "status" | "off", "volatile-defined">;
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" | "compact" | "detailed" | "verbose", "standard" | "compact" | "detailed" | "verbose", "volatile-defined">;
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<"summary" | "hidden" | "expanded", "summary" | "hidden" | "expanded", "volatile-defined">;
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<"minimal" | "compact" | "full", "minimal" | "compact" | "full", "volatile">;
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<"full" | "off" | "reduced", "full" | "off" | "reduced", "volatile-defined">;
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" | "status" | "off", "session" | "workspace" | "status" | "off", "volatile-defined">;
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" | "compact" | "detailed" | "verbose", "standard" | "compact" | "detailed" | "verbose", "volatile-defined">;
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<"summary" | "hidden" | "expanded", "summary" | "hidden" | "expanded", "volatile-defined">;
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<"minimal" | "compact" | "full", "minimal" | "compact" | "full", "volatile">;
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;