@deepseek-harness-tui/dsh-tui 0.19.0 → 0.20.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 (224) hide show
  1. package/README.md +67 -57
  2. package/bin/dsh-tui.js +26 -8
  3. package/cordis.patch.yml +5 -3
  4. package/cordis.yml +3 -2
  5. package/guide/dsh-tui-guide/claude-backend.en.md +6 -5
  6. package/guide/dsh-tui-guide/claude-backend.md +5 -5
  7. package/guide/dsh-tui-guide/configuration.en.md +1 -1
  8. package/guide/dsh-tui-guide/configuration.md +1 -1
  9. package/guide/dsh-tui-guide/getting-started.en.md +2 -2
  10. package/guide/dsh-tui-guide/getting-started.md +2 -2
  11. package/guide/dsh-tui-guide/migrate.en.md +5 -0
  12. package/guide/dsh-tui-guide/migrate.md +4 -0
  13. package/guide/dsh-tui-guide/plugins.en.md +17 -1
  14. package/guide/dsh-tui-guide/plugins.md +12 -1
  15. package/guide/dsh-tui-guide/user-guide.en.md +7 -2
  16. package/guide/dsh-tui-guide/user-guide.md +7 -2
  17. package/lib/settings.json +24 -8
  18. package/lib/types/adapter/kernel/host-facade.d.ts +3 -1
  19. package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -1
  20. package/lib/types/adapter/kernel/host-facade.js +6 -0
  21. package/lib/types/adapter/kernel/runtime.d.ts.map +1 -1
  22. package/lib/types/adapter/kernel/runtime.js +5 -0
  23. package/lib/types/adapter/kernel/slices/extensions.d.ts +1 -0
  24. package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -1
  25. package/lib/types/adapter/kernel/slices/extensions.js +6 -1
  26. package/lib/types/adapter/kernel/slices/index.d.ts +1 -1
  27. package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -1
  28. package/lib/types/adapter/kernel/slices/index.js +3 -2
  29. package/lib/types/adapter/ports/channel-catalog.d.ts +19 -0
  30. package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
  31. package/lib/types/adapter/ports/channel-view.d.ts +39 -3
  32. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  33. package/lib/types/adapter/ports/extensions.d.ts +9 -0
  34. package/lib/types/adapter/ports/extensions.d.ts.map +1 -1
  35. package/lib/types/adapter/ports/index.d.ts +1 -1
  36. package/lib/types/adapter/ports/index.d.ts.map +1 -1
  37. package/lib/types/adapter/upstream/extensions-driver.d.ts +4 -1
  38. package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -1
  39. package/lib/types/adapter/upstream/extensions-driver.js +111 -1
  40. package/lib/types/adapter/upstream/index.d.ts +1 -1
  41. package/lib/types/adapter/upstream/index.d.ts.map +1 -1
  42. package/lib/types/adapter/upstream/index.js +1 -1
  43. package/lib/types/agent/events.d.ts +3 -1
  44. package/lib/types/agent/events.d.ts.map +1 -1
  45. package/lib/types/api.d.ts +1 -1
  46. package/lib/types/api.d.ts.map +1 -1
  47. package/lib/types/backends/claude/backend.d.ts.map +1 -1
  48. package/lib/types/backends/claude/backend.js +7 -2
  49. package/lib/types/backends/claude/tools.d.ts.map +1 -1
  50. package/lib/types/backends/claude/tools.js +8 -3
  51. package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
  52. package/lib/types/backends/codex/translate/presentation.js +5 -2
  53. package/lib/types/channel/interaction.d.ts.map +1 -1
  54. package/lib/types/channel/interaction.js +1 -0
  55. package/lib/types/channel/permissions.d.ts +15 -0
  56. package/lib/types/channel/permissions.d.ts.map +1 -1
  57. package/lib/types/channel/permissions.js +28 -0
  58. package/lib/types/channel/projection.d.ts.map +1 -1
  59. package/lib/types/channel/projection.js +11 -1
  60. package/lib/types/channel/questions.d.ts +26 -0
  61. package/lib/types/channel/questions.d.ts.map +1 -1
  62. package/lib/types/channel/questions.js +43 -0
  63. package/lib/types/commands.js +1 -1
  64. package/lib/types/components/FileSuggestions.d.ts +2 -2
  65. package/lib/types/components/FileSuggestions.d.ts.map +1 -1
  66. package/lib/types/components/FileSuggestions.js +25 -5
  67. package/lib/types/components/MessageList.d.ts.map +1 -1
  68. package/lib/types/components/MessageList.js +3 -3
  69. package/lib/types/components/PromptInput.d.ts +7 -1
  70. package/lib/types/components/PromptInput.d.ts.map +1 -1
  71. package/lib/types/components/PromptInput.js +81 -23
  72. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  73. package/lib/types/components/SplitDiffView.js +3 -2
  74. package/lib/types/components/StarPrompt.d.ts +5 -3
  75. package/lib/types/components/StarPrompt.d.ts.map +1 -1
  76. package/lib/types/components/StarPrompt.js +56 -6
  77. package/lib/types/components/SubagentCard.d.ts.map +1 -1
  78. package/lib/types/components/SubagentCard.js +1 -1
  79. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  80. package/lib/types/components/SubagentDashboard.js +3 -2
  81. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  82. package/lib/types/components/SubagentDetailScene.js +1 -1
  83. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  84. package/lib/types/components/messages/AssistantToolUseMessage.js +121 -23
  85. package/lib/types/components/teamRoster.d.ts +6 -3
  86. package/lib/types/components/teamRoster.d.ts.map +1 -1
  87. package/lib/types/dsh-adapter/approvals.d.ts +19 -0
  88. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  89. package/lib/types/dsh-adapter/approvals.js +17 -1
  90. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  91. package/lib/types/dsh-adapter/backend/translate.js +15 -3
  92. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  93. package/lib/types/dsh-adapter/channel/extensions.js +7 -4
  94. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
  95. package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
  96. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
  97. package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
  98. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  99. package/lib/types/dsh-adapter/channel/settings-host.js +179 -33
  100. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
  101. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
  102. package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
  103. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
  104. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
  105. package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
  106. package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
  107. package/lib/types/dsh-adapter/childStderr.d.ts +1 -1
  108. package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -1
  109. package/lib/types/dsh-adapter/childStderr.js +5 -0
  110. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
  111. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
  112. package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
  113. package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
  114. package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
  115. package/lib/types/dsh-adapter/compat/messages.js +2 -2
  116. package/lib/types/dsh-adapter/contract.d.ts +12 -5
  117. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  118. package/lib/types/dsh-adapter/contract.js +15 -4
  119. package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
  120. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
  121. package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
  122. package/lib/types/dsh-adapter/extensions.d.ts +3 -2
  123. package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
  124. package/lib/types/dsh-adapter/extensions.js +5 -2
  125. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  126. package/lib/types/dsh-adapter/host-contract.js +2 -2
  127. package/lib/types/dsh-adapter/host-dsh.d.ts +6 -0
  128. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  129. package/lib/types/dsh-adapter/host-dsh.js +29 -0
  130. package/lib/types/dsh-adapter/index.d.ts +9 -1
  131. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  132. package/lib/types/dsh-adapter/index.js +5 -0
  133. package/lib/types/dsh-adapter/mention-providers.d.ts +91 -0
  134. package/lib/types/dsh-adapter/mention-providers.d.ts.map +1 -0
  135. package/lib/types/dsh-adapter/mention-providers.js +214 -0
  136. package/lib/types/dsh-adapter/migrate/entry.d.ts +2 -0
  137. package/lib/types/dsh-adapter/migrate/entry.d.ts.map +1 -0
  138. package/lib/types/dsh-adapter/migrate/entry.js +46 -0
  139. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
  140. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
  141. package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
  142. package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
  143. package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
  144. package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
  145. package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
  146. package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
  147. package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
  148. package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
  149. package/lib/types/dsh-adapter/oauth/index.js +44 -0
  150. package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
  151. package/lib/types/dsh-adapter/oauth/service.js +5 -6
  152. package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
  153. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  154. package/lib/types/dsh-adapter/plugin-manage.js +3 -2
  155. package/lib/types/dsh-adapter/plugin.d.ts +237 -6
  156. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  157. package/lib/types/dsh-adapter/plugin.js +611 -23
  158. package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
  159. package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
  160. package/lib/types/dsh-adapter/session-projection-store.js +30 -23
  161. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
  162. package/lib/types/dsh-adapter/sessionTree.js +4 -1
  163. package/lib/types/dsh-adapter/subagents.d.ts +1 -0
  164. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  165. package/lib/types/dsh-adapter/subagents.js +10 -2
  166. package/lib/types/dsh-adapter/team-mode.d.ts +29 -17
  167. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  168. package/lib/types/dsh-adapter/team-mode.js +138 -17
  169. package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
  170. package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
  171. package/lib/types/dsh-adapter/team-roster.js +206 -39
  172. package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
  173. package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
  174. package/lib/types/dsh-adapter/team-tools.js +81 -26
  175. package/lib/types/extensions.d.ts +2 -0
  176. package/lib/types/extensions.d.ts.map +1 -1
  177. package/lib/types/extensions.js +4 -1
  178. package/lib/types/i18n.d.ts +71 -11
  179. package/lib/types/i18n.d.ts.map +1 -1
  180. package/lib/types/i18n.js +32 -9
  181. package/lib/types/ink/dom.d.ts.map +1 -1
  182. package/lib/types/ink/dom.js +13 -3
  183. package/lib/types/ink/flush-tick.d.ts +6 -0
  184. package/lib/types/ink/flush-tick.d.ts.map +1 -1
  185. package/lib/types/ink/flush-tick.js +31 -0
  186. package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
  187. package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
  188. package/lib/types/ink/hooks/use-terminal-title.js +23 -3
  189. package/lib/types/ink/ink.js +2 -2
  190. package/lib/types/ink/jumpback-state.d.ts +33 -0
  191. package/lib/types/ink/jumpback-state.d.ts.map +1 -0
  192. package/lib/types/ink/jumpback-state.js +51 -0
  193. package/lib/types/ink/jumpback.d.ts +78 -0
  194. package/lib/types/ink/jumpback.d.ts.map +1 -0
  195. package/lib/types/ink/jumpback.js +515 -0
  196. package/lib/types/ink/log-update.js +37 -14
  197. package/lib/types/ink/notify-helper/activate.cs +836 -0
  198. package/lib/types/ink/notify-helper/compile.d.ts +30 -0
  199. package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
  200. package/lib/types/ink/notify-helper/compile.js +235 -0
  201. package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
  202. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
  203. package/lib/types/ink/terminal-notification-windows.js +14 -21
  204. package/lib/types/ink/terminal-notification.d.ts +31 -2
  205. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  206. package/lib/types/ink/terminal-notification.js +51 -0
  207. package/lib/types/ink/terminal.d.ts +2 -1
  208. package/lib/types/ink/terminal.d.ts.map +1 -1
  209. package/lib/types/ink/terminal.js +9 -4
  210. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  211. package/lib/types/screens/AgentTranscriptScene.js +1 -1
  212. package/lib/types/screens/Chat.d.ts +8 -4
  213. package/lib/types/screens/Chat.d.ts.map +1 -1
  214. package/lib/types/screens/Chat.js +40 -11
  215. package/lib/types/settings/definitions.d.ts +12 -0
  216. package/lib/types/settings/definitions.d.ts.map +1 -1
  217. package/lib/types/settings/definitions.js +15 -7
  218. package/lib/types/utils/fileSuggestions.d.ts +14 -3
  219. package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
  220. package/lib/types/utils/fileSuggestions.js +33 -0
  221. package/package.json +117 -112
  222. package/presets/liangshen/agent.cordis.yml +4 -0
  223. package/tui-profile/feed/README.md +1 -1
  224. package/tui-profile/feed/first-party.json +1 -1
package/README.md CHANGED
@@ -44,7 +44,7 @@ Resuming a DSH session preserves its recorded reasoning effort (or its live sele
44
44
  - **Pixel whale pet** — three startup intros, click to wake; freezes after the first task.
45
45
  - **Launchpad and first-run guide** — every ordinary launch lands on a landing page with a **real input box** (big text + whale + quick actions, dropping whole blocks on short/narrow terminals; whale-girl images use a compact native-canvas footprint instead of leaving a large gap before the title; on by default — /settings `launchpad` off boots straight into chat); command completion matches chat: `Tab` fills the input, `Enter` runs the command and clears it. The first run walks a four-step wizard (accounts & models / language+theme / model+workspace / shortcuts), re-runnable with `/setup`; its first step signs in to a subscription and catches the models it brings in (none → no question, one → that one, several → you choose), or adds an API key through the `/provider` wizard, which asks which of the enabled models to switch to or keeps the current one.
46
46
  - **Terminal-native UI** — streaming Markdown, tool cards, `/` and `@` completion, `#L12-14` ranges, history search, zh/en UI.
47
- - **Task completion notifications** — DSH, Claude and Codex notify after successful live work settles, with no queued follow-up or active goal. The title is “dsh-TUI · Task complete”; the body shows the latest settled reply as a single-line plain-text preview (Markdown formatting removed, up to 200 characters). OSC 777/9 apply an additional 2048-byte sequence budget, including title and protocol bytes, preserving whole graphemes. No reply shows only the title; BEL only rings. `/settings` → Conversation: `taskNotifications` = `unfocused` (default), `always`, or `off`; `notificationMethod` = `auto` (default), `osc9`, `bel`, or `windows`. Auto uses separate title/body fields on Ghostty/WezTerm (OSC 777) and Kitty (OSC 99); iTerm2/Warp and explicit `osc9` use a title prefix; other terminals ring the bell; delivery follows your terminal's notification/bell settings. On local Windows, `auto` resolves to `windows`, the system's native notifications: a task-completion toast. The first toast registers that user's AppUserModelID under HKCU, the toast appears about 3 seconds after the task ends (the PowerShell cold start that buys the no-extra-install route), and for DSH sessions an enabled, active external DSH notification plugin in the running profile makes dsh-TUI yield to it (no toast, no bell); an installed but disabled plugin does not suppress notifications; if that AppUserModelID cannot be written, the notification falls back to the bell instead of going silent. SSH sessions keep the attached terminal's notification protocol in `auto` mode; explicit `windows` still selects the host's native transport. tmux requires `set -g allow-passthrough on` for OSC notifications and `set -g focus-events on` for focus reporting. Terminals without focus reporting need `always`. Replay, cancellation and failures do not notify. Works in inline and fullscreen modes.
47
+ - **Notifications** — one switch covers four system notifications: task completion, a tool approval waiting for your decision, a question waiting for your answer, and a plan review waiting for your decision. Task completion: DSH, Claude and Codex notify after successful live work settles, with no queued follow-up or active goal. The title is “dsh-TUI · Task complete”; the body shows the latest settled reply as a single-line plain-text preview (Markdown formatting removed, up to 200 characters). OSC 777/9 apply an additional 2048-byte sequence budget, including title and protocol bytes, preserving whole graphemes. No reply shows only the title; BEL only rings. `/settings` → Conversation: `taskNotifications` = `unfocused` (default), `always`, or `off`; `notificationMethod` = `auto` (default), `osc9`, `bel`, or `windows`. Auto uses separate title/body fields on Ghostty/WezTerm (OSC 777) and Kitty (OSC 99); iTerm2/Warp and explicit `osc9` use a title prefix; other terminals ring the bell; delivery follows your terminal's notification/bell settings. On local Windows, `auto` resolves to `windows`, the system's native notifications: a task-completion toast. The first toast registers that user's AppUserModelID under HKCU, the toast appears about 3 seconds after the task ends (the PowerShell cold start that buys the no-extra-install route), and for DSH sessions an enabled, active external DSH notification plugin in the running profile makes dsh-TUI yield to it (no toast, no bell); an installed but disabled plugin does not suppress notifications; if that AppUserModelID cannot be written, the notification falls back to the bell instead of going silent. `jumpBack` (Windows, off by default) turns these toasts into a way back to the pane that raised them; it needs the native toast path (`notificationMethod` = `windows`, which `auto` picks on local Windows). With `/settings` → Conversation → `jumpBack` on, the pane title ends with `[dsh-tui:<16 hex>]`, one marker for the life of the process; switching it off removes the suffix at once. While it is on, this process refreshes a marker file at `~/.dsh-tui/notify/jumpback/<session>.json` (`schemaVersion: 1`, `marker`, `pid`, `startedAt`) when the setting is turned on and before each notification it sends, and the first toast that can promise a jump registers the per-user protocol handler (`URL Protocol` plus `shell\open\command`) under `HKCU\Software\Classes\dsh-tui`; a normal exit removes the file, and removes the key once no other live instance still needs it. Only a pre-send probe that finds exactly one target pane (or tab title) puts an activation URI on the toast; clicking it re-runs five checks — same pane, keyboard focus, marker still in the title, foreground window, not minimized — and refuses rather than jumping anywhere else when any of them fails. A click whose target has gone away changes nothing. Layouts that cannot be verified — a pane in an unselected tab that is not that tab's focused pane, profiles using `suppressApplicationTitle`, and terminals other than Windows Terminal (tested on Windows Terminal 1.24) — get a plain toast whose click changes nothing. The probe adds about half a second before each toast; the first one after enabling can also wait for the helper to compile (a few seconds, once), and a machine whose in-box compiler keeps failing retries it at most every five minutes. External notification senders can read the same marker file and point their own toast at `dsh-tui:activate?m=<marker>`; the URI and file format are a read-only contract, and this release ships no plugin-side implementation. SSH sessions keep the attached terminal's notification protocol in `auto` mode; explicit `windows` still selects the host's native transport. tmux requires `set -g allow-passthrough on` for OSC notifications and `set -g focus-events on` for focus reporting. Terminals without focus reporting need `always`. Replay, cancellation and failures do not notify. Works in inline and fullscreen modes. A tool approval adds its own notification: the title is “dsh-TUI · Approval needed”; the body carries the session name, the tool name and the asker's reason. The reason is host-provided text (the model's own justification can appear verbatim), so it is normalized to one plain line and length-capped, but the body makes no redaction promise; the tool call's arguments are never read for it. A native toast still being prepared is dropped if the switch turns off, the session is no longer the attached one, or the approval, question or plan review is no longer waiting. Every approval notifies, and only the current session’s does; background sessions and subagents stay quiet. The switch covers all four, so `off` silences approvals, questions and plan reviews along with completions. An enabled, active external DSH notification plugin still makes dsh-TUI yield for completions, approvals and questions; a plan review never yields, and outside local Windows (or in SSH) the existing terminal notification protocol or bell is used. An ordinary question adds its own notification: the title is “dsh-TUI · Waiting for your answer” and the body carries the first question's header and question; options and detail stay in the panel. Local wizard and sign-in questionnaires announce the same way; a subagent's question stays in the panel in this release; the 0.2.2 approval-intent asks are announced the same way as an ordinary question. A plan review is announced as “dsh-TUI · Plan review” and carries the question header and question, never the plan itself, and it is the one notice that does not yield: an external notifier maps approvals and ordinary questions to its own notification but not a plan review, so yielding would leave only its generic idle notice, which never says a plan review is waiting.
48
48
  - **Native cursor** — focused text inputs inherit your terminal's cursor shape, color, blinking, and enabled animation or trail effects in both inline and fullscreen modes. The `/model` picker shows the same cursor during movement between provider tabs, model rows, and effort levels, then hides it after **0.5 seconds at rest**; clipped regions fall back to the model row. The session manager also moves this cursor between the workspace rail, session rows, and search box; typing claims the search caret, and navigation returns it to the focused row. Configure animation and trail effects in your terminal.
49
49
  - **Images** — Kitty/Sixel thumbnails, centered preview with zoom and pan, paste-time fitting, text fallback. Kitty images scale to the reserved cells' physical pixels, including on HiDPI terminals.
50
50
  - **Mermaid diagrams** — ````mermaid ```` fences drawn as Unicode diagrams.
@@ -54,6 +54,7 @@ Resuming a DSH session preserves its recorded reasoning effort (or its live sele
54
54
  - **Live state** — activity animation, context bar, TPS, cache hit rate, effort, tokens, session cost estimate (main + subagents), Git and session metadata. Title, trajectory-strip and session-state animations update independently of the transcript and pause when idle or unfocused.
55
55
  Context-bar fill follows backend occupancy; colors estimate content composition. Compaction clears obsolete estimates, and missing composition displays a single used block with a measured used count in both hover details.
56
56
  - **One session manager** — `/resume` `/home` `/agentview` `/bg` `⌸`.
57
+ - Live Compact partial checkpoints appear as folded summaries in chat and summary entries in `/tree`; they do not reset the whole context composition. Occupancy follows the host token meter. Folded previews use the durable summary with the same compactionId; expansion retains the complete text, which is also the fallback when the summary event is missing.
57
58
  - **Session workflow** — `/new` `/compact` `/export` `/btw`, model hot-switch, fork, rewind, vim, fullscreen draft editor.
58
59
  `/btw` uses an overlay when its sidebar cannot render. Main-task questionnaires and the fullscreen draft editor take priority while preserving the side question and draft.
59
60
  - **IDE selection channel** — a VS Code selection lands in the prompt.
@@ -129,10 +130,18 @@ The `deepseek-official` API-key route needs `DEEPSEEK_API_KEY`. On DSH
129
130
  and select the separate account route through `/model`. Other supported
130
131
  accounts can sign in through `/provider` or `/auth` after startup.
131
132
 
132
- The primary compatibility target is DSH `0.2.2-rc.1`. This adapter supports its
133
+ The primary compatibility target is DSH `0.2.2-rc.3`. This adapter supports its
133
134
  Shell API, V4 session messages, declarative presets, and profile-backed settings;
134
135
  older supported hosts retain their compatibility paths. See [configuration](docs/configuration.en.md).
135
136
 
137
+ DSH account notices use the existing account card. A notification with complete
138
+ coupon metadata keeps the coupon presentation; otherwise the card shows the
139
+ server's title and message without inventing an amount. The card refreshes its
140
+ language and follows the server's display deadline. Enter or Esc dismisses it;
141
+ account-page actions point to the official DSH account page and are not executed
142
+ inside this TUI. Older hosts keep their original bonus API.
143
+
144
+
136
145
  On DSH 0.2.1-rc.2 and later, `/settings` also selects DeepSeek Search / Fetch APIs and edits their
137
146
  endpoint and result limits, supporting custom Loader entry IDs and a masked API
138
147
  key input saved through DSH's credential store. Official Flash model labels show the `1017` release
@@ -231,6 +240,7 @@ dsh-tui migrate codex --dry-run # preview what would land, write nothing
231
240
  In-TUI browsing: the session screen (`/resume`) shows a tab per agent that has conversations; picking one imports just that conversation and opens it.
232
241
  In-TUI: `/migrate` (optionally `/migrate <agent> [--dry-run]`) runs the same import in a child process and reports through the notification flow.
233
242
  CLI alternative: `dsh-tui migrate ...` from any shell runs the same import.
243
+ With an installed `dsh` that supports host module resolution, both entries use its framework packages; a fresh profile does not need a separate copy. Dependency failures report their cause instead of asking for an update.
234
244
  Full guide: [Session migration](docs/migrate.en.md).
235
245
 
236
246
  - More agents (pi, opencode, …) extend the adapter registry as adapters land; grok-build reads `GROK_HOME` when set.
@@ -265,6 +275,9 @@ The easiest install: open the kernel picker (the launchpad "Kernel" entry or
265
275
  `/kernel`) and press Enter on the dim Claude row — the wizard locates the
266
276
  profile directory and installs the pinned SDK for you; the command above is
267
277
  its manual equivalent.
278
+ An existing Claude Code CLI, including a Homebrew installation, still needs
279
+ this SDK. If the SDK is unavailable, the row retains the detected CLI version
280
+ and says "SDK unavailable"; press Enter to install the SDK in the profile.
268
281
  The confirmation shows the exact package and version. Closing the wizard,
269
282
  including clicking outside it on the launchpad, cancels a pending installation.
270
283
 
@@ -349,61 +362,58 @@ Using ChatGPT subscription tokens in third-party clients is subject to
349
362
  OpenAI’s terms. Full instructions and current boundaries:
350
363
  [Codex backend](docs/codex-backend.en.md).
351
364
 
352
- ### Experimental: DSH Agent Teams
353
-
354
- DSH's experimental Agent Teams lets the session's agent (the Lead) create
355
- named teammates that share the working directory, message each other and
356
- coordinate on a shared task board. It ships with dsh, is off by default, and
357
- `/plugin list` advertises it. Switch it on:
358
-
359
- ```sh
360
- /plugin enable @deepseek-ai/dsh-experimental-agent-team-profile
361
- ```
365
+ ### DSH Agent Teams
366
+
367
+ DSH Agent Teams lets the session's agent (the Lead) delegate to named
368
+ subagents that share the working directory, message each other and coordinate
369
+ on a shared task board. Since DSH `0.2.2-rc.2` it ships inside `dsh-base`:
370
+ there is no plugin to install and no bundle to enable. It is off by default
371
+ per root session — `/team on` enables it for this session and its whole
372
+ subagent tree (the choice survives restarts), and `/team off` switches it off
373
+ while keeping the subagents and the task board. `/team` (or `/team status`)
374
+ reports the saved selection, the service and this session's subagents. When
375
+ subagents are still running, `/team off` asks first (`/team off force`): they
376
+ keep running — only the task tools and the Team guidance stop.
377
+
378
+ Members are the root session's named subagents: `subagent` / `subagent_fork`
379
+ take an optional `name` (the root is `lead`, descendants are paths such as
380
+ `reviewer/checker`) and are the delegation tools — there is no
381
+ `spawn_teammate` any more. The four `team_task_*` tools are the shared task
382
+ board. Control tools address agents by name: `send_message({agent, message})`,
383
+ `interrupt_agent({agent})`, `list_agents` rows `{name, status, description?}`,
384
+ and `wait_agent` reports `{timedOut}`. Their calls and results render as
385
+ one-line cards (`send_message` with its target and `sent`, `list_agents` with
386
+ named rows), and a message between agents as a `✉ <sender>` bubble in the
387
+ receiving session. The agents dashboard (Ctrl+A) and the agents side panel
388
+ show a team view: the Lead line, members under their catalog name with
389
+ `running` / `idle` status, the remaining subagents, a read-only task board
390
+ (status, owner, `blocked`, write-scope warnings) and a banner when the team
391
+ record was rejected. A root with Team off still shows its read-only board with
392
+ a note, and an empty one falls back to the plain subagent view.
393
+
394
+ An older DSH line (`0.2.2-rc.1` and earlier) mounts the retired experimental
395
+ bundle instead, and TUI keeps that behavior there: the switch stays
396
+ `/plugin enable|disable @deepseek-ai/dsh-experimental-agent-team-profile`
397
+ (`/team` points at it; a launch without the profile plugin service gets the
398
+ `dsh plugin --profile dsh-tui add <bundle>@<dsh-version>` CLI route), the
399
+ durable roster comes from the projection, `spawn_teammate` is the delegation
400
+ tool (with `subagent` / `subagent_fork` removed while it is present), and
401
+ disabling the bundle while teammates run asks first. Those packages ship in
402
+ lockstep with DSH and pin their peers exactly, so the version must match.
403
+
404
+ Limits: on `0.2.2-rc.1` and earlier the switch covers the whole profile, not
405
+ one session; there is no "enter teammate session" yet, and `/export` leaves
406
+ team messages out. Upstream limits apply: teammates share one working
407
+ directory, a team lives in one process, and a task owner is never released
408
+ automatically. Upgrade every process that opens the same session store
409
+ together: catalogs written by `0.2.2-rc.2` subagents cannot be opened by older
410
+ DSH.
411
+
412
+ A delegation provider whose settled runs fail at least twice and at least half
413
+ the time gets one degraded-channel line above the agents list; the built-in
414
+ `subagent` route, workflow members and per-type Claude children are excluded
415
+ because there is no provider to switch to.
362
416
 
363
- The switch enables or disables the bundle in the profile, so it persists
364
- across restarts, and on a `dsh --profile` launch it applies at once — running
365
- sessions included: the model is told which tools came and went. `/team` appears
366
- in Help and `/` completion only once the team service is mounted, and only
367
- reports: `/team` (or `/team status`) shows the bundle, the service and this
368
- session's teammates. `/team on|off` was removed; typing it points at
369
- `/plugin enable|disable`. Turning the bundle off while teammates run asks
370
- first, and switching off stops them: the team service releases the teammates
371
- still running as it unloads. Inside a teammate session the other teammates'
372
- runs are not visible, so the question counts them as possibly running. The
373
- team record stays in the session and comes back when the bundle is enabled
374
- again.
375
-
376
- If the running DSH does not ship the bundle (`/plugin list` stays silent),
377
- switch DSH to one of the supported lines first (`0.2.2-rc.1`, `0.2.1-rc.5`, `0.2.1-rc.4`, `0.2.1-rc.3`,
378
- `0.2.1-rc.2`, `0.2.1-alpha.5`, `0.2.0-rc.1` or `0.2.0-rc.2`). To install it into the profile explicitly,
379
- run `dsh plugin --profile dsh-tui add @deepseek-ai/dsh-experimental-agent-team-profile@<your-dsh-version>`:
380
- the team packages ship in lockstep with DSH and pin their DSH peers exactly,
381
- so the version must match.
382
-
383
- While a request carries `spawn_teammate`, dsh-TUI drops `subagent` /
384
- `subagent_fork` from it, and the team's `send_message` / `list_agents` /
385
- `interrupt_agent` / `wait_agent` take the place of the legacy controls of the
386
- same names, so `spawn_teammate` is the delegation tool; with the team off
387
- the legacy tools are back. Subagents that are not team members (workflow,
388
- ralph) keep `subagent`. A teammate shows up as a subagent row, a message between
389
- members as a `✉ <sender>` bubble in the receiving session (a teammate's
390
- received messages show on its subagent detail as agent messages), and the
391
- other team tools as one-line cards (`send_message` with its target and
392
- `sent`). The agents dashboard (Ctrl+A) and the agents side
393
- panel switch to a team view: each teammate under its member name with
394
- `running` / `idle` / `provisioning` / `failed` (a teammate whose turn ended
395
- is idle — a message wakes it — not done), the Lead line, the remaining
396
- subagents, a read-only task board (status, owner, `blocked`, write-scope
397
- warnings) and a banner when the team record was rejected. A delegation
398
- provider whose settled runs fail at least twice and at least half the time
399
- gets one degraded-channel line above the list; the built-in `subagent` route,
400
- workflow members and per-type Claude children are excluded because there is
401
- no provider to switch to.
402
-
403
- Limits: the switch covers the whole profile, not one session (a launch
404
- without the profile plugin service, or without hot reload, needs `dsh plugin`
405
- and a restart); there is no "enter teammate session" yet, and `/export` leaves team messages out. Upstream limits apply: teammates share one working directory, a
406
- team lives in one process, and a task owner is never released automatically.
407
417
  Subagent failure badges and the Companion error state share session-scoped unread
408
418
  status. Opening that child’s detail or main view acknowledges only that failure;
409
419
  a new run or failure alerts again. Acknowledgements survive panel remounts and
@@ -642,7 +652,7 @@ Managing what is installed: `/plugin remove <bundle>`, `/plugin enable <name | r
642
652
 
643
653
  These three actions have no cancellation — the service offers none — so `esc` only closes the pane while the write finishes and reports itself into the transcript. Enable and disable have no CLI verb either (the service writes them into the profile's own files). **Grants follow the lifecycle**: `enable` enables and grants the declared permissions, `disable` disables and revokes the permissions that component declared, and `remove` **deletes the component's `grants`/`denies` entries** after the removal — grants are keyed by component id, so leaving them behind lets any later package reusing that id inherit them silently; a reinstall asks again. Backend data directories, storage namespaces and the effect ledger stay, and the residue report names each source by its path. A failed grant write never blocks an install or enable — it is reported instead. Grants are behavioural constraints, not a security boundary.
644
654
 
645
- `/plugin list` also advertises the experimental features DSH ships, leaves off by default, and this app knows how to drive (currently Agent Teams, Auto review, Session search and Git worktrees), each with its switch and usage line. A DSH installation that does not ship one shows no such section.
655
+ `/plugin list` also advertises the experimental features DSH ships, leaves off by default, and this app knows how to drive (currently Auto review, Session search and Git worktrees), each with its switch and usage line. A DSH installation that does not ship one shows no such section. Agent Teams is no longer one of them: `0.2.2-rc.2` builds it into `dsh-base`, so it is switched per session with `/team on|off` instead of a bundle.
646
656
 
647
657
  ## Documentation
648
658
 
package/bin/dsh-tui.js CHANGED
@@ -531,6 +531,10 @@ const MSG = {
531
531
  `[dsh-tui] \`migrate\` 需要 profile 的编译产物,但它缺失或版本过旧、不含 CLI 入口。\n` +
532
532
  `请先升级:\n dsh-tui update`,
533
533
  },
534
+ migrateFailed: {
535
+ en: reason => `[dsh-tui] \`migrate\` could not run: ${reason}`,
536
+ zh: reason => `[dsh-tui] \`migrate\` 无法运行:${reason}`,
537
+ },
534
538
  helpText: {
535
539
  en:
536
540
  `Usage: dsh-tui|dst [command] [options] [path|url]\n\n` +
@@ -1547,17 +1551,31 @@ if (subcommand === 'update') {
1547
1551
  // profile 未初始化时先自举;产物缺失或旧版无 cliMigrate 导出给升级指引。
1548
1552
  if (subcommand === 'migrate') {
1549
1553
  if (!profileReady()) bootstrapProfile()
1550
- let cliMigrate
1551
- try {
1552
- ;({ cliMigrate } = await import(pathToFileURL(join(profilePkgDir, 'lib', 'types', 'dsh-adapter', 'migrate', 'cli.js')).href))
1553
- } catch {
1554
- cliMigrate = undefined
1555
- }
1556
- if (typeof cliMigrate !== 'function') {
1554
+ const migrateDir = join(profilePkgDir, 'lib', 'types', 'dsh-adapter', 'migrate')
1555
+ const cli = join(migrateDir, 'cli.js')
1556
+ if (!existsSync(cli)) {
1557
1557
  console.error(msg('migrateUnavailable'))
1558
1558
  process.exit(1)
1559
1559
  }
1560
- process.exit(await cliMigrate(process.argv.slice(3)))
1560
+ // entry.js installs the host resolver for cold profiles; profiles built before
1561
+ // it existed only have cli.js and always ran it directly. Upgrading the
1562
+ // launcher must not make those profiles demand an update first.
1563
+ const entry = join(migrateDir, 'entry.js')
1564
+ const target = existsSync(entry) ? entry : cli
1565
+ try {
1566
+ const { cliMigrate } = await import(pathToFileURL(target).href)
1567
+ if (typeof cliMigrate !== 'function') {
1568
+ console.error(msg('migrateUnavailable'))
1569
+ process.exit(1)
1570
+ }
1571
+ process.exit(await cliMigrate(process.argv.slice(3), profileDir))
1572
+ } catch (error) {
1573
+ // A present module's dependency/load failure is not a missing artifact.
1574
+ const reason = (error instanceof Error ? error.message : String(error))
1575
+ .replace(/[\x00-\x1f\x7f-\x9f]/g, ' ').replace(/\s+/g, ' ').trim()
1576
+ console.error(msg('migrateFailed')(reason))
1577
+ process.exit(1)
1578
+ }
1561
1579
  }
1562
1580
 
1563
1581
  // ─── 全局副本:瘦壳角色 ───────────────────────────────────────────────────────
package/cordis.patch.yml CHANGED
@@ -381,7 +381,8 @@
381
381
  const require = process.getBuiltinModule('node:module').createRequire(ctx.baseUrl)
382
382
  try { require.resolve('@deepseek-ai/dsh-host-webserver/package.json') } catch { return true }
383
383
  const entries = [...ctx.loader.entries()]
384
- return !entries.some(entry => entry.options.name === '@deepseek-ai/dsh-deepseek-account-platform' && !entry.disabled)
384
+ return !entries.some(entry => (entry.options.name === '@deepseek-ai/dsh-deepseek-account'
385
+ || entry.options.name === '@deepseek-ai/dsh-deepseek-account-platform') && !entry.disabled)
385
386
  || entries.some(entry => entry.options.id === 'webserver' && entry.options.name === '@deepseek-ai/dsh-host-webserver' && !entry.disabled)
386
387
  })()
387
388
  config:
@@ -437,11 +438,12 @@
437
438
  terminalImages: true
438
439
  # diffLayout: auto
439
440
  # mermaidDiagrams: true
440
- # 任务完成通知:off / unfocused(默认)/ always;方式:auto(默认)/ osc9 / bel / windows。
441
+ # 通知(任务完成、等待授权、等待回答与计划评审):off / unfocused(默认)/ always;方式:auto(默认)/ osc9 / bel / windows。
441
442
  # taskNotifications: unfocused
442
443
  # notificationMethod: auto
443
444
  # windows 档:Windows 主机原生 toast(首次注册当前用户的 HKCU 标识,约延迟 3 秒)。
444
- # auto 在 Windows 本地会话用此档,SSH 改走客户端终端;仅 DSH 会话且 cc-dsh-notifier 已启用、正在运行时让位。
445
+ # auto 在 Windows 本地会话用此档,SSH 改走客户端终端;DSH 会话遇到已启用、正在运行的 cc-dsh-notifier 时,完成、审批与提问让位,计划评审不让位。
446
+ # jumpBack: false(默认关);开启后窗格标题末尾追加 [dsh-tui:<16 hex>] 标记,完成、等待授权、等待回答与计划评审通知都可点击跳回,第一条能承诺跳回的 toast 注册 HKCU 协议键。
445
447
  # 回复中 LaTeX 公式的显示方式:auto(默认,目前为 Unicode)/ image(支持图形的终端里块级公式显示为图片)/ unicode / source(保留源码)。/settings 可实时改。
446
448
  # mathRendering: auto
447
449
  # 每个请求实际生效的推理强度,按当前路由的 adapter 档位校验
package/cordis.yml CHANGED
@@ -64,11 +64,12 @@
64
64
  # 以下为 /settings 可改的显示设置;每项说明与默认值见应用内 /settings 屏。
65
65
  terminalImages: true
66
66
  # mermaidDiagrams: true
67
- # 任务完成通知:off / unfocused(默认)/ always;方式:auto(默认)/ osc9 / bel / windows。
67
+ # 通知(任务完成、等待授权、等待回答与计划评审):off / unfocused(默认)/ always;方式:auto(默认)/ osc9 / bel / windows。
68
68
  # taskNotifications: unfocused
69
69
  # notificationMethod: auto
70
70
  # windows 档:Windows 主机原生 toast(首次注册当前用户的 HKCU 标识,约延迟 3 秒)。
71
- # auto 在 Windows 本地会话用此档,SSH 改走客户端终端;仅 DSH 会话且 cc-dsh-notifier 已启用、正在运行时让位。
71
+ # auto 在 Windows 本地会话用此档,SSH 改走客户端终端;DSH 会话遇到已启用、正在运行的 cc-dsh-notifier 时,完成、审批与提问让位,计划评审不让位。
72
+ # jumpBack: false(默认关);开启后窗格标题末尾追加 [dsh-tui:<16 hex>] 标记,完成、等待授权、等待回答与计划评审通知都可点击跳回,第一条能承诺跳回的 toast 注册 HKCU 协议键。
72
73
  # 回复中 LaTeX 公式的显示方式:auto(默认,目前为 Unicode)/ image(支持图形的终端里块级公式显示为图片)/ unicode / source(保留源码)。/settings 可实时改。
73
74
  # mathRendering: auto
74
75
  # Reasoning effort applied to every request, validated against the live
@@ -58,11 +58,12 @@ To pick the backend, use any of:
58
58
  `/kernel` inside a session, which open the kernel picker. Picking the other
59
59
  kernel remembers the choice (`~/.dsh-tui/kernel.json`) and restarts dsh-TUI
60
60
  into a new session on it; the old session stays in `/resume`. A running turn
61
- blocks the switch. Without the SDK the picker marks Claude as *Not installed*;
62
- an undetected credential does **not** block the pick — a key may perfectly well
63
- live where detection cannot see it (the Claude settings' `env`, an
64
- `apiKeyHelper`, a relay channel). The row stays selectable (the bottom-right
65
- plate never shows sign-in state; the picker's subtitle says *Not signed in*).
61
+ blocks the switch. Without the SDK the picker marks Claude as *SDK
62
+ unavailable* and keeps the detected CLI version; an undetected credential
63
+ does **not** block the pick — a key may perfectly well live where detection
64
+ cannot see it (the Claude settings' `env`, an `apiKeyHelper`, a relay
65
+ channel). The row stays selectable (the bottom-right plate never shows
66
+ sign-in state; the picker's subtitle says *Not signed in*).
66
67
  The CLI applies its own configuration after start; `/login` covers a
67
68
  subscription sign-in in-session, `/channel` the relay route.
68
69
  - `dsh-tui --backend claude` (this launch only).
@@ -12,7 +12,7 @@ dsh-TUI 可以把会话跑在 Claude Agent 后端上,而不是 DeepSeek Harnes
12
12
  需要:
13
13
 
14
14
  - Claude Agent SDK。它是可选依赖,默认不装。最省事的装法:打开内核选择器(启动页
15
- 「内核」或 `/kernel`),对未安装的 Claude 行按 Enter,按引导一键安装——dsh-TUI
15
+ 「内核」或 `/kernel`),对 SDK 未就绪的 Claude 行按 Enter,按引导一键安装——dsh-TUI
16
16
  自己定位 profile 目录,用 pnpm 装锁定版本的 SDK,装完该行即变亮可选(独立构建
17
17
  与无 profile 的启动给手动指引)。安装前会把 profile 的 pnpm store 钉到稳定路径
18
18
  (storeDir: ../../.pnpm-store,写入 pnpm-workspace.yaml),环境变量漂移
@@ -43,10 +43,10 @@ dsh-TUI 可以把会话跑在 Claude Agent 后端上,而不是 DeepSeek Harnes
43
43
  - 启动页的「内核」入口、右下角的内核区,或在会话里输入 `/kernel`,打开内核选择器。
44
44
  选中另一个内核后 dsh-TUI 记住选择(`~/.dsh-tui/kernel.json`)并重启,在新内核里开
45
45
  一个新会话;原来的会话仍可在 `/resume` 找到。回合进行中不能切换。SDK 没装时,选择器
46
- 会把 Claude 标为「未安装」;凭据检测不出**不会**拦住选择——key 完全可以放在检测看不到
47
- 的地方(Claude 设置的 `env`、`apiKeyHelper`、中转渠道),行仍可选(右下角铭牌不显示登录
48
- 状态,未登录在选择器里以副标题标注)。进去后 CLI 会应用自己的配置;订阅登录在会话里
49
- `/login`,中转渠道用 `/channel` 配。
46
+ 会把 Claude 标为「SDK 未就绪」,并保留已经检测到的 CLI 版本;凭据检测不出**不会**拦住
47
+ 选择——key 完全可以放在检测看不到的地方(Claude 设置的 `env`、`apiKeyHelper`、中转渠道),
48
+ 行仍可选(右下角铭牌不显示登录状态,未登录在选择器里以副标题标注)。进去后 CLI 会应用
49
+ 自己的配置;订阅登录在会话里 `/login`,中转渠道用 `/channel` 配。
50
50
  - `dsh-tui --backend claude`(只对这一次启动生效)。
51
51
  - 在 dsh-tui 的配置行写 `backend: claude`。
52
52
 
@@ -482,7 +482,7 @@ The `/provider` add branch signs in to ChatGPT/Codex (`openai-codex`), Claude
482
482
  (`anthropic`), or Grok (`xai`) subscriptions. When the installed host's pi-ai
483
483
  catalog ships the corresponding flows, it also offers OpenAI direct ChatGPT sign-in
484
484
  (`openai`, using the OpenAI API rather than the legacy Codex backend) and Meta
485
- Muse (`meta`). The primary validated DSH `0.2.2-rc.1` development fixture resolves pi-ai
485
+ Muse (`meta`). The primary validated DSH `0.2.2-rc.3` development fixture resolves pi-ai
486
486
  `1.2.0`, which includes Meta Muse and OpenAI direct sign-in.
487
487
  `/auth status`, `/auth login [provider]`, and `/auth logout <provider>` use
488
488
  that credential store for these pi-ai routes. Browser authorization tries to open the page
@@ -421,7 +421,7 @@ Profile 模式不再使用旧的 `DSH_TUI_COMPACT_RATIO`、`DSH_TUI_COMPACT_RETA
421
421
  `dsh-auth` 插件包**。`/provider` 的添加分支提供 ChatGPT/Codex(`openai-codex`)、
422
422
  Claude(`anthropic`)、Grok(`xai`)订阅账号登录。宿主 pi-ai catalog 提供相应流程
423
423
  时还可使用 OpenAI 直连 ChatGPT 登录(`openai`,使用 OpenAI API 而非旧版 Codex
424
- 后端)和 Meta Muse(`meta`)。当前主验证线 DSH `0.2.2-rc.1` 的开发依赖解析到 pi-ai
424
+ 后端)和 Meta Muse(`meta`)。当前主验证线 DSH `0.2.2-rc.3` 的开发依赖解析到 pi-ai
425
425
  `1.2.0`,包含 Meta Muse 与 OpenAI 直连登录。`/auth status`、`/auth login [provider]`、
426
426
  `/auth logout <provider>` 对这些 pi-ai 路由操作同一套凭据。浏览器授权会尝试自动打开页面,并在同一
427
427
  问卷中提供授权链接与手动粘贴回调 URL/代码的输入;设备码流程在轮询期间显示可复制的
@@ -301,10 +301,10 @@ downgrade; for an unpublished release it only asks you to wait):
301
301
  # TUI only
302
302
  dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui@latest
303
303
  # engine
304
- npm install -g @deepseek-ai/dsh@0.2.2-rc.1
304
+ npm install -g @deepseek-ai/dsh@0.2.2-rc.3
305
305
  # or, for a pnpm global layout (first confirm the global group holds dsh
306
306
  # alone; a one-package install replaces the whole group and its other commands):
307
- pnpm add -g @deepseek-ai/dsh@0.2.2-rc.1
307
+ pnpm add -g @deepseek-ai/dsh@0.2.2-rc.3
308
308
  # global launcher
309
309
  npm install -g --legacy-peer-deps @deepseek-harness-tui/dsh-tui@latest
310
310
  # or, only after confirming the pnpm global group contains this package alone:
@@ -262,10 +262,10 @@ pnpm 轮换全局安装组后,直接 DSH 启动路径会重新解析并探测
262
262
  # 只对齐 TUI
263
263
  dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui@latest
264
264
  # 对齐引擎
265
- npm install -g @deepseek-ai/dsh@0.2.2-rc.1
265
+ npm install -g @deepseek-ai/dsh@0.2.2-rc.3
266
266
  # 或(pnpm 全局布局;先确认 dsh 所在全局组只有它自己,
267
267
  # 否则单包安装会替换整组并移除同组其他命令)
268
- pnpm add -g @deepseek-ai/dsh@0.2.2-rc.1
268
+ pnpm add -g @deepseek-ai/dsh@0.2.2-rc.3
269
269
  # 对齐全局启动器
270
270
  npm install -g --legacy-peer-deps @deepseek-harness-tui/dsh-tui@latest
271
271
  # 或(确认 pnpm 全局组内只有本包时;刚发布的版本见下面「pnpm 延迟」一条)
@@ -126,6 +126,8 @@ with that source pre-checked; any other key dismisses it.
126
126
  `dsh-tui migrate` prints.
127
127
  - **`needs the profile's compiled copy`**: the profile's compiled output is
128
128
  missing or too old — run `dsh-tui update` first.
129
+ - **`could not run`**: the entry exists but a dependency or execution failed.
130
+ Use the named package and cause to check the `dsh` installation on PATH.
129
131
  - **Imports fewer than the scan count**: the scan count matches candidate
130
132
  files by name; import additionally filters unreadable and empty
131
133
  conversations, so landing slightly lower is expected.
@@ -138,6 +140,9 @@ with that source pre-checked; any other key dismisses it.
138
140
 
139
141
  ## Design notes (for maintainers and contributors)
140
142
 
143
+ - CLI and TUI children install host resolution before importing migration,
144
+ then dispose it. Scanning and dry-run in an initialized profile neither
145
+ rewrite its configuration nor compose its plugins.
141
146
  - Parsing is separate from IO: `adapters/<source>.parse.ts` are pure
142
147
  functions (raw text → turn model) over shared rules in `parse/` (jsonl
143
148
  bad-line counting, injection recognition and unwrapping, title
@@ -101,6 +101,8 @@ TUI 启动约 12 秒后做一次后台检测:任一源在最近 20 分钟内
101
101
  - **`unknown agent`**:源名以 `dsh-tui migrate` 无参输出的名单为准。
102
102
  - **`needs the profile's compiled copy`**:profile 内编译产物缺失或过旧,
103
103
  先运行 `dsh-tui update`。
104
+ - **`migrate` 无法运行 / `could not run`**:入口存在,但依赖加载或执行失败;
105
+ 根据后面的包名与原因检查 PATH 上的 `dsh` 安装,而不是重复升级 TUI。
104
106
  - **导入数低于扫描计数**:扫描计数是候选文件数(按文件名匹配),
105
107
  导入会过滤解析失败与空对话,略低属正常。
106
108
  - **全新 `DSH_HOME` 首跑报 installation rejected**:profile 自举撞上
@@ -110,6 +112,8 @@ TUI 启动约 12 秒后做一次后台检测:任一源在最近 20 分钟内
110
112
 
111
113
  ## 设计取舍(维护者与贡献者参考)
112
114
 
115
+ - CLI 与 TUI 子进程在首次导入迁移模块前安装宿主解析,结束时释放;
116
+ 已初始化 profile 的扫描与 dry-run 不写配置、不组合用户插件。
113
117
  - 解析与 IO 分离:`adapters/<源>.parse.ts` 是纯函数(原始文本 → 轮模型),
114
118
  共享规则在 `parse/`(jsonl 坏行计数、注入识别与包装剥离、标题归一、
115
119
  工具调用配对);adapter 只做文件发现。OMP 仍产出角色列表,经
@@ -37,7 +37,7 @@ reference**, not a promise:
37
37
  | Tier | Seams |
38
38
  | --- | --- |
39
39
  | Stable candidate (shape frozen; breaking changes go through a minor-version deprecation warning before removal) | VI settings sections · VIII full-screen scenes · X managed dialogs · XI status line (+ footer fields via `setField`) · XII keyboard shortcuts · XIII entry renderers |
40
- | Experimental (may still shift with dsh-std / the TUI Profile) | IX decision events · toast notifications (`ctx.tuiToast`, new) · **Side panels (`ctx.tuiPanels`, full panel + compact row, experimental)** |
40
+ | Experimental (may still shift with dsh-std / the TUI Profile) | IX decision events · toast notifications (`ctx.tuiToast`, new) · **Side panels (`ctx.tuiPanels`, full panel + compact row, experimental)** · XV `@`-mention providers (`ctx.tuiMentions`, new) |
41
41
  | Upstream-tracked (stability owned by the cordis / dsh mechanisms underneath) | I session events · II official prompt slots · III bundled skills · IV themes · V system-prompt sections · VII profile composition |
42
42
 
43
43
  **Footer fields (an addition to seam XI)**: `ctx.tuiStatus.setField(key, text,
@@ -85,6 +85,22 @@ Also an experimental public surface:
85
85
  ④ keep the body content **unchanged** to hit `React.memo` (strings compare
86
86
  by value, so a fresh string with the same content still hits; only changed
87
87
  content re-runs formatting and layout, while lexing is cached by content).
88
+ - **`@`-mention providers (experimental, seam XV)**: `ctx.tuiMentions.register({
89
+ id, title, complete(query, signal) })` adds plugin rows to the composer's `@`
90
+ completion popup (the same card as workspace files). A row is `{ label,
91
+ detail?, insertText }`: choosing it replaces the typed `@query` with
92
+ `insertText` (plain text, one line, ≤200 characters, no `@` mention token of
93
+ its own), which is never resolved as a path at submit time. Plugin rows merge
94
+ into the file list by the same fuzzy score (file order is kept, a tie goes to
95
+ the file), and the card title switches from "files" to "mentions" once one is
96
+ present; with no provider the popup is unchanged frame for frame. Every query
97
+ gets its own AbortSignal: typing on aborts the previous call, each call has a
98
+ 300 ms budget, and a timeout or throw costs only that provider's rows; ≤50 rows
99
+ per provider per query, ≤4 providers per plugin, ≤16 in total; `register`
100
+ throws on malformed input or an exhausted budget, and the disposer is bound to
101
+ the activation. Types live at `@deepseek-harness-tui/dsh-tui/extensions` and
102
+ `./api`; the rule table is seam XV of the
103
+ [admission & development guide](../tui-profile/docs/plugin-admission-and-development.md).
88
104
  - The `@deepseek-harness-tui/dsh-tui/test-utils` subpath and
89
105
  `ctx.tuiPluginHost.grants.corrupt` were removed in the adapter layering
90
106
  refactor (#705).
@@ -32,7 +32,7 @@
32
32
  | 分级 | 接缝 |
33
33
  | --- | --- |
34
34
  | 稳定候选(形态冻结;如有破坏性变更,先在次版本弃用告警再移除) | 六 设置区块 · 八 全屏场景 · 十 托管对话框 · 十一 状态行(+ 底栏字段 `setField`) · 十二 键盘快捷键 · 十三 条目渲染器 |
35
- | 实验性(仍可能随 dsh-std / TUI Profile 演进调整) | 九 决策事件 · toast 通知(`ctx.tuiToast`,新增) · **侧栏 Panel(`ctx.tuiPanels`,full 面板与 compact 行,实验性)** |
35
+ | 实验性(仍可能随 dsh-std / TUI Profile 演进调整) | 九 决策事件 · toast 通知(`ctx.tuiToast`,新增) · **侧栏 Panel(`ctx.tuiPanels`,full 面板与 compact 行,实验性)** · 十五 `@` 提及提供方(`ctx.tuiMentions`,新增) |
36
36
  | 跟随上游(稳定性由 cordis / dsh 官方机制决定) | 一 会话事件 · 二 官方 prompt 槽位 · 三 技能打包 · 四 主题 · 五 system prompt 段 · 七 profile 组合 |
37
37
 
38
38
  另:
@@ -68,6 +68,17 @@
68
68
  偏好**(终端支持图形时走图片),行内公式不走图片、仍排成 Unicode;④ 正文
69
69
  内容**保持不变**才能命中 `React.memo`(字符串按值比较,内容相同的新字符串
70
70
  一样命中;只有内容变化才重跑格式化与排版,分词按内容缓存)。
71
+ - **`@` 提及提供方(实验性,接缝十五)**:`ctx.tuiMentions.register({ id,
72
+ title, complete(query, signal) })` 往输入框的 `@` 补全浮窗加插件行(与工作区
73
+ 文件同一张卡)。行是 `{ label, detail?, insertText }`:选中后 `insertText`
74
+ (纯文本、单行、≤200 字符、不得含 `@` 提及记号)替换敲入的 `@query`,提交时
75
+ 不按路径解析。插件行按与文件同一个模糊分并入(文件顺序不动、平分归文件),
76
+ 出现插件行时卡片标题从「文件」变「提及」;没有提供方时浮窗逐帧不变。每次查询
77
+ 单独一个 AbortSignal:继续打字即 abort 上一次,单次预算 300ms,超时/抛错只丢
78
+ 它自己那份;每提供方每次 ≤50 行,每插件 ≤4 个、全局 ≤16 个;`register` 遇
79
+ 非法输入或超额直接抛错,dispose 随 activation 回收。类型见
80
+ `@deepseek-harness-tui/dsh-tui/extensions` 与 `./api`,规则表见
81
+ [准入与开发指南](../tui-profile/docs/plugin-admission-and-development.md)接缝十五。
71
82
  - `@deepseek-harness-tui/dsh-tui/test-utils` 子路径与
72
83
  `ctx.tuiPluginHost.grants.corrupt` 已随 adapter 分层重构(#705)移除。
73
84
  - **后端贡献族(`tui.dsh/v1alpha1` `Backend`,接缝十四)的公开面已随第一版 apiVersion 冻结**:类型面
@@ -30,7 +30,7 @@ dsh-tui
30
30
  - `dsh-tui safe`: safe mode — read-only environment view, lists profile plugins, suggests fixes, and can create a clean rescue profile (see §5.5).
31
31
  - `dsh --profile dsh-tui`: manual launch, equivalent to `dsh-tui` (`/update` only works this way).
32
32
  - The `deepseek-official` route needs `DEEPSEEK_API_KEY`; on DSH 0.2.0-rc.1+ the standard profile can use the separate `deepseek-account` browser-authorization route. Other supported subscriptions use built-in OAuth sign-in. Run `/doctor` to check the environment.
33
- - Primary verified dsh engine version: `0.2.2-rc.1`. See `ADAPTER.md` for compatibility lines; versions outside that list show a drift note and the command to align on the logo page.
33
+ - Primary verified dsh engine version: `0.2.2-rc.3`. See `ADAPTER.md` for compatibility lines; versions outside that list show a drift note and the command to align on the logo page.
34
34
  - If the logo page shows a ⚠ version-drift warning, align the dsh engine:
35
35
  `npm i -g @deepseek-ai/dsh@<版本>`
36
36
 
@@ -387,7 +387,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
387
387
  | `/migrate` | `[agent] [--dry-run]` | import conversation history from other coding agents (claude-code/codex/omp/zcode/grok-build); runs in a child process — see [Session migration](migrate.en.md) |
388
388
  | `/init` | none | create `AGENTS.md` in the working directory (created / exists / failed) |
389
389
  | `/agents` | none | subagent list for this session |
390
- | `/team` | `status` (default) | experimental Agent Teams status; appears in Help and `/` completion only while the team service runs, reporting the bundle, the service and this session's teammates. Switch with `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile` (a typed `/team` while the service is absent gives the enable route) |
390
+ | `/team` | `status` (default) \| `on` \| `off [force]` | Agent Teams: `/team` (or `/team status`) reports the session's saved selection, the service and this session's subagents; `/team on` / `/team off` save the Team selection for this root session and its whole subagent tree (it survives restarts). Switching off neither stops subagents nor deletes tasks; while subagents are still running, `off` asks first — confirm with `/team off force`. On an older host (`0.2.2-rc.1` and earlier) the switch stays `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile`, and `/team` only reports plus points there |
391
391
  | `/jobs` | none | background-task panel: status/runtime/exit-code tracking, `↑/↓` select, `k` stop; while open, `Esc` **closes only the panel** and won't interrupt the turn (close the panel first, then `Ctrl+C`) |
392
392
  | `/settings` | none | open the plugin settings editor (namespace read/edit) |
393
393
  | `/setup` | none | re-run the first-run guide (accounts & models / language+theme / model+workspace / shortcuts) — same screen as the very first launch |
@@ -524,6 +524,9 @@ Keys are in §2.7. Key points:
524
524
  - Plan review **approve must have no feedback text**.
525
525
  - When an approval and a questionnaire hang at once, **approval wins**.
526
526
  - A background-session approval is tagged `来自后台会话 <会话 id 前 8 位>`.
527
+ - A waiting tool approval follows the Notifications switch to a system notification (title “dsh-TUI · Approval needed”; see `taskNotifications` in §5.3). With `jumpBack` on, clicking that notification returns to the pane; a native toast still queued is cancelled if the switch turns off, the session changes, or the approval is answered first.
528
+ - A pending question follows the Notifications switch the same way (title “dsh-TUI · Waiting for your answer”; the body carries the first question's header and question while the options stay in the panel; see `taskNotifications` in §5.3). Local wizard and sign-in questionnaires announce the same way; a subagent's question stays in the panel in this release; the 0.2.2 approval-intent asks are announced the same way. With `jumpBack` on, clicking that notification returns to the pane; a native toast still queued is cancelled if the switch turns off, the session changes, or the question is answered first.
529
+ - A plan review follows the Notifications switch too (title “dsh-TUI · Plan review”; the body carries the question header and question, never the plan or its options; see `taskNotifications` in §5.3). It is the one notice that does not yield: the external notifier maps approvals and ordinary questions to its own notification but not a plan review, so yielding would leave only its generic idle notice, which never says a plan review is waiting. With `jumpBack` on, clicking that notification returns to the pane; a native toast still queued is cancelled if the switch turns off, the session changes, or the plan review is resolved first.
527
530
 
528
531
  ### 4.8 Skills / registry / Goals-Todos
529
532
 
@@ -661,6 +664,7 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
661
664
  | effortDefault | default reasoning effort: Auto plus the current backend/model’s declared tiers (including custom IDs). Saved unsupported values remain readable; only Auto is selectable while loading or unavailable |
662
665
  | smoothStreaming | smooth streaming output (default on): replies/thinking/tool-card text reveal at ~30fps; replay/history always direct |
663
666
  | toolBackground | tool-card background emphasis: none / subtle / strong; also applies when expanded |
667
+ | taskNotifications | Notifications (default “When unfocused”): one switch for the task-completion, tool-approval, waiting-question and plan-review system notifications. Completions are titled “dsh-TUI · Task complete” with the latest reply as a one-line plain-text preview; approvals are titled “dsh-TUI · Approval needed” and carry the session name, the tool name and the host-provided reason (normalized and length-capped; the model's own justification can appear verbatim, and the tool call's arguments are never read); questions are titled “dsh-TUI · Waiting for your answer” and carry only the first question's header and question, never the options or detail (every questionnaire — including local wizard and sign-in prompts — uses the same notice; the 0.2.2 approval-intent asks do too; a subagent's question stays in the panel in this release); plan reviews are titled “dsh-TUI · Plan review” and carry the question header and question, never the plan, and are the one notice that never yields. A native toast still queued is dropped when the switch turns off, the session changes, or the approval, question or plan review is resolved. Every approval notifies, and only the current session’s does (background sessions and subagents stay quiet). Delivery follows `notificationMethod`; a native toast that cannot be delivered falls back to the bell, and an enabled, active external DSH notification plugin makes dsh-TUI yield for completions, approvals and questions, while a plan review never yields. Applies immediately |
664
668
  | turnUsageRow | Turn-usage row (default off): show a per-turn summary of tokens, cache, duration and retries; `/tokens`, `/status` and the footer token hover are unaffected |
665
669
  | mermaidDiagrams | Mermaid diagrams (default on): ```` ```mermaid ```` blocks render as character diagrams, forming while streaming; too-wide or unsupported types keep source with the required columns. Applies immediately |
666
670
  | mathRendering | LaTeX math (default `auto`; lives on the **Formula** subpage of `/settings`): how `$…$` / `\(…\)` inline and `$$…$$` / `\[…\]` / bare display-environment (`\begin{align}` …) block formulas in replies show. `auto` uses the best available renderer (today Unicode text, with fractions and limits stacked in blocks), `image` typesets formulas with MathJax as terminal images when the terminal has graphics — the Kitty graphics protocol (Kitty, Ghostty, WezTerm, iTerm2…) or Sixel (Windows Terminal 1.22+, xterm, foot, WezTerm) — in the theme's text color (block formulas up to 16 rows; inline formulas as one-row images when a single row can hold them legibly; still-streaming formulas, dimmed thinking, terminals without graphics, formulas too small on one row, and any render failure fall back to Unicode), `unicode` pins Unicode text, `source` keeps the TeX. Unsupported, still-streaming, or too-wide formulas keep their source (a too-wide block first falls back to one line). Prices (`$5`), shell variables (`$HOME`), and `$` in code are left alone. The older `latexMath: false` still means `source`. **Click a formula image** to open the preview card: it re-typesets at twice the cell size, zooms 100–800%, pans, closes on `Esc` or a click outside, and titles itself with the formula's TeX. On Sixel the formulas carry **no backing** (only their strokes), so the terminal background or wallpaper shows through. Illustrations that ship with their own transparent margins — the `whaleGirl` raster — float the same way; photographs, screenshots, and images inside cards still composite onto a colour, because Sixel cannot express soft alpha. Applies immediately |
@@ -670,6 +674,7 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
670
674
  | foldTerminalCommand | fold terminal commands (default off): multi-line commands on terminal cards (Bash/PowerShell) fold to first line + count; `Ctrl+O` or click to expand |
671
675
  | expandEditor | full-screen draft editor (default on): `⛶` at the input line end or `Ctrl+Shift+E` expands to a full-screen editor; `Ctrl+Enter` send, `Esc` collapse (draft kept); off hides both entries |
672
676
  | statusBar.* | all status-bar toggles above (compact/model/thinking/cwd/contextUsage/cache/tokens/cost/tps/gitBranch/sessionTitle/sessionId/mode/contextBar/activity/trajectory/pluginFields/pluginFieldsOrder; statusBar.sessionId is the bottom-bar display toggle, unrelated to cordis startup sessionId; pluginFieldsOrder is the plugin field list: `''`=none, `*`=all, `a,b;c;d`=three groups and three slots) |
677
+ | jumpBack | jump back from notifications (Windows, default off; completion, waiting approval, waiting question and plan review): the pane title gains a `[dsh-tui:<16 hex>]` suffix; clicking this session's completion, waiting-approval, waiting-question or plan-review toast returns to exactly this pane, and layouts it cannot verify fall back to a plain toast. The first toast that can promise a jump registers a per-user HKCU protocol key. Applies immediately |
673
678
 
674
679
  **effortDefault**: when the model lacks that level, choose the nearest lower offered tier or the model default and show a notice. On DSH, priority is settings user layer > the last `/effort`
675
680
  (effort.json, the level the last session ran) > cordis `effort` (deployment default) > model default. Claude/Codex apply edits through their own controls and backend preferences; Auto at startup and resumed sessions preserve the selection, while explicitly choosing Auto resets the model default.
@@ -30,7 +30,7 @@ dsh-tui
30
30
  - `dsh-tui safe`:安全模式——只读查看环境、列出 profile 插件并给出修复建议,还能创建干净的救援 profile(见 §5.5)。
31
31
  - `dsh --profile dsh-tui`:与 `dsh-tui` 等价的手工启动方式(`/update` 仅此方式可用)。
32
32
  - `deepseek-official` 路由需要 `DEEPSEEK_API_KEY`;DSH 0.2.0-rc.1+ 可用标准 profile 的 `deepseek-account` 浏览器授权路由。其他支持的订阅模型可用内置 OAuth 登录。环境自检用 `/doctor`。
33
- - 主验证 dsh 引擎版本 `0.2.2-rc.1`;兼容列表以 `ADAPTER.md` 为准,列表之外的版本在 logo 页提示版本漂移与对齐命令。
33
+ - 主验证 dsh 引擎版本 `0.2.2-rc.3`;兼容列表以 `ADAPTER.md` 为准,列表之外的版本在 logo 页提示版本漂移与对齐命令。
34
34
  - 如果 logo 页出现 ⚠ 版本漂移警告,按提示执行 `npm i -g @deepseek-ai/dsh@<版本>` 对齐 dsh 引擎。
35
35
 
36
36
  ### 1.2 首次启动你会看到
@@ -347,7 +347,7 @@ dsh-tui
347
347
  | `/migrate` | `[agent] [--dry-run]` | 从其他编程代理(claude-code/codex/omp/zcode/grok-build)导入对话历史,子进程运行不卡界面,详见[会话迁移](migrate.md) |
348
348
  | `/init` | 无 | 在工作目录创建 `AGENTS.md`(created / exists / failed 三态提示) |
349
349
  | `/agents` | 无 | 本会话子代理列表 |
350
- | `/team` | `status`(默认) | 实验性 Agent Teams 的状态报告;只在团队服务运行后出现在帮助与 `/` 补全里,报告 bundle、服务与本会话 teammate。开关改用 `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile`(服务未运行时手敲 `/team` 会给出开启提示) |
350
+ | `/team` | `status`(默认)\| `on` \| `off [force]` | Agent Teams:`/team`(或 `/team status`)报告会话级选择、服务与本会话子代理;`/team on` / `/team off` 写入本会话(根会话及其整棵子代理树)的团队选择,跨重启保持。关闭不停止子代理也不删任务;仍有子代理在运行时 `off` 会先提示,确认用 `/team off force`。旧宿主(0.2.2-rc.1 及更早)上开关仍是 `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile`,`/team` 只报告并给出迁移提示 |
351
351
  | `/jobs` | 无 | 后台任务面板:状态/运行时长/退出码实时跟踪,`↑/↓` 选择、`k` 停止;面板打开时 `Esc` **只关面板**不打断回合(想中断先关面板再 `Ctrl+C`) |
352
352
  | `/settings` | 无 | 打开插件设置编辑器(命名空间读取/编辑) |
353
353
  | `/setup` | 无 | 重跑首次引导向导(账号与模型接入 / 语言主题 / 模型工作区 / 快捷键),与首次启动是同一个界面 |
@@ -480,6 +480,9 @@ dsh-TUI 不预装通用技能;`/skills` 浏览 DSH 发现的技能,可直调
480
480
  - 问卷**最后一行是自由输入行**(直接打字连同选项标签一起提交)。
481
481
  - 计划评审**批准必须无反馈文本**。
482
482
  - 审批与问卷同时挂起时**审批优先**;后台会话发起的审批会标注 `来自后台会话 <会话 id 前 8 位>`。
483
+ - 等待中的工具授权会随「通知」开关走系统通知(标题「dsh-TUI · 等待授权」,见 §5.3 的 `taskNotifications`);开启 `jumpBack` 后点击这条通知会回到对应窗格,原生 toast 排队期间若开关关闭、会话已切换或审批已答完则取消。
484
+ - 等待中的提问会随「通知」开关走系统通知(标题「dsh-TUI · 等待回答」,正文是首个问题的标题与问题本身,选项留在面板里;见 §5.3 的 `taskNotifications`);本地向导与登录流程里的问卷提问同样提醒,子代理的提问只进面板,上游 0.2.2 的 approval intent 提问按普通等待回答提醒。开启 `jumpBack` 后点击这条通知也会回到对应窗格,原生 toast 排队期间若开关关闭、会话已切换或提问已答完则取消。
485
+ - 计划评审也会随「通知」开关走系统通知(标题「dsh-TUI · 计划评审」,正文只含问题标题与问题本身,不含整份计划与选项;见 §5.3 的 `taskNotifications`);它是唯一不让位的一类:外部通知插件只把审批与普通提问映射成通知,计划评审不在其中,让位就只剩它那条不区分事件的「等待输入」,不会标明是计划评审在等你。开启 `jumpBack` 后点击这条通知也会回到对应窗格,原生 toast 排队期间若开关关闭、会话切换或计划评审已处理则取消。
483
486
 
484
487
  ### 4.8 技能 / 注册表 / Goals-Todos
485
488
 
@@ -599,6 +602,7 @@ dsh-tui 自身区块在 0.1.7 写入当前 profile 的 `cordis.patch.yml`,旧
599
602
  | effortDefault | 默认推理强度:自动及当前后端/模型声明的档位(包括自定义 ID)。未支持的已存值仍可读;加载中或不可用时仅可选自动 |
600
603
  | smoothStreaming | 流式平滑输出(默认开):回复/思考/工具卡正文按 ~30fps 匀速揭示;回放/历史完整直出 |
601
604
  | toolBackground | 工具卡背景强调:none / subtle / strong;展开后也生效 |
605
+ | taskNotifications | 通知(默认「仅失焦时」):一个开关同时管四类系统通知——任务完成、等待工具授权、等待回答与计划评审。完成通知标题「dsh-TUI · 任务已完成」,正文为本轮回复的单行纯文本摘要;审批通知标题「dsh-TUI · 等待授权」,正文只含会话名、工具名与宿主给出的理由(已归一化并限长,模型写的理由会原样出现,不读取工具调用的参数);提问通知标题「dsh-TUI · 等待回答」,正文只含首个问题的标题与问题,不含选项与详情(模型提问与本地向导/登录等经问卷面板的提问都算;上游 0.2.2 的 approval intent 提问按这条提醒;子代理的提问本版只进面板);计划评审标题「dsh-TUI · 计划评审」,正文只含问题标题与问题本身、不含整份计划与选项,且是唯一不让位的一类;原生 toast 排队投递期间,开关关闭、会话切换或审批/提问/计划评审已处理都会取消。每条审批各提醒一条,且只提醒当前会话(后台会话与子代理不提醒)。投递方式由 `notificationMethod` 决定,原生 toast 投不出去时回落到响铃;外部 DSH 通知插件已启用并处于 active 时,完成、审批与提问让位,计划评审不让位。立即生效 |
602
606
  | turnUsageRow | 回合用量行(默认关闭):在每回合末显示 token、缓存、耗时与重试摘要;`/tokens`、`/status` 和底栏 token 悬停不受此开关影响 |
603
607
  | mermaidDiagrams | Mermaid 图表(默认开):回复中的 ```` ```mermaid ```` 代码块画成字符图,流式期间逐步成形;比终端宽或类型不支持的图保留源码并注明所需列数。立即生效 |
604
608
  | mathRendering | LaTeX 公式(默认 `auto`,在 `/settings` 的**公式设置**子页里):回复中的 `$…$`、`\(…\)` 行内公式,`$$…$$`、`\[…\]` 与单独成行的 `\begin{align}` 等显示环境块级公式的显示方式。`auto` 用当前最好的渲染方式(目前是 Unicode 文本,块级公式里的分数与上下限竖排),`image` 在支持图形的终端里用 MathJax 把公式排版成图片——Kitty 图形协议(Kitty、Ghostty、WezTerm、iTerm2 等)或 Sixel(Windows Terminal 1.22+、xterm、foot、WezTerm)(颜色跟随主题文字色;块级公式最多 16 行,行内公式在能压成一行且不糊时也显示为一行高的图片;流式中的公式、暗色的思考区、不支持图形的终端、压成一行太小以及任何渲染失败都退回 Unicode),`unicode` 固定用 Unicode 文本,`source` 保留原始 TeX。不支持、仍在流式输出或比终端宽的公式保留源码(过宽的块级公式先退成单行)。价格(`$5`)、shell 变量(`$HOME`)与代码里的 `$` 不受影响。旧的 `latexMath: false` 仍等同 `source`。**点击公式图片**打开预览卡:按 2 倍单元格尺寸重排,可 100%–800% 缩放、拖拽平移,`Esc` 或点击卡片外关闭,标题即该公式的 TeX。Sixel 下公式**不带衬底**(只画笔画),终端底色或壁纸会透出来。标题立绘这类自带透明留白的插图同样不带衬底(`whaleGirl` 的真图就是这个行为);照片、截图与卡片内的图像仍合成到底色上,因为 Sixel 表达不了软 alpha。立即生效 |
@@ -608,6 +612,7 @@ dsh-tui 自身区块在 0.1.7 写入当前 profile 的 `cordis.patch.yml`,旧
608
612
  | foldTerminalCommand | 折叠终端命令(默认关):终端卡(Bash/PowerShell)多行命令折成首行 + 计数;`Ctrl+O` 或点击卡片展开 |
609
613
  | expandEditor | 全屏草稿编辑(默认开):输入行尾 `⛶` 或 `Ctrl+Shift+E` 展开成整屏编辑器;`Ctrl+Enter` 发送、`Esc` 收起(草稿还在);关掉后入口不显示 |
610
614
  | statusBar.* | 上表全部状态栏开关(compact/model/thinking/cwd/contextUsage/cache/tokens/cost/tps/gitBranch/sessionTitle/sessionId/mode/contextBar/activity/trajectory/pluginFields/pluginFieldsOrder;statusBar.sessionId 是底栏显示开关,与 cordis 的启动 sessionId 无关;pluginFieldsOrder 是插件字段名单:`''`=不显示、`*`=全部、`a,b;c;d`=三组即三槽) |
615
+ | jumpBack | 通知跳回(Windows,默认关,管完成、等待授权、等待回答与计划评审):开启后窗格标题末尾追加 `[dsh-tui:<16 位十六进制>]` 标记;点击本会话的完成、等待授权、等待回答或计划评审通知回到这个窗格,无法核验的布局降级为普通通知。第一条能承诺跳回的 toast 会注册当前用户的 HKCU 协议键。立即生效 |
611
616
 
612
617
  **effortDefault**:模型没有该档时向下选择最近的可用档位,否则回到模型默认,并弹提示。DSH 的优先级为 settings 用户层 > 上次 `/effort`
613
618
  (effort.json,即上次实际运行的档位)> cordis `effort`(部署默认值)> 模型默认。Claude/Codex 通过自身控制接口和后端偏好应用修改;启动采用自动模式或恢复会话时保留原有选择,在设置中主动选择自动会重置为模型默认。