@deepseek-harness-tui/dsh-tui 0.20.0 → 0.20.2

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 (180) hide show
  1. package/README.md +18 -3
  2. package/bin/dsh-tui.js +26 -8
  3. package/guide/dsh-tui-guide/claude-backend.en.md +6 -5
  4. package/guide/dsh-tui-guide/claude-backend.md +5 -5
  5. package/guide/dsh-tui-guide/configuration.en.md +26 -12
  6. package/guide/dsh-tui-guide/configuration.md +18 -9
  7. package/guide/dsh-tui-guide/getting-started.en.md +17 -9
  8. package/guide/dsh-tui-guide/getting-started.md +11 -7
  9. package/guide/dsh-tui-guide/interaction.en.md +1 -0
  10. package/guide/dsh-tui-guide/interaction.md +1 -0
  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/themes.en.md +1 -1
  16. package/guide/dsh-tui-guide/themes.md +1 -1
  17. package/guide/dsh-tui-guide/user-guide.en.md +8 -2
  18. package/guide/dsh-tui-guide/user-guide.md +8 -2
  19. package/lib/settings.json +19 -3
  20. package/lib/types/adapter/kernel/host-facade.d.ts +3 -1
  21. package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -1
  22. package/lib/types/adapter/kernel/host-facade.js +6 -0
  23. package/lib/types/adapter/kernel/runtime.d.ts.map +1 -1
  24. package/lib/types/adapter/kernel/runtime.js +5 -0
  25. package/lib/types/adapter/kernel/slices/extensions.d.ts +1 -0
  26. package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -1
  27. package/lib/types/adapter/kernel/slices/extensions.js +6 -1
  28. package/lib/types/adapter/kernel/slices/index.d.ts +1 -1
  29. package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -1
  30. package/lib/types/adapter/kernel/slices/index.js +3 -2
  31. package/lib/types/adapter/ports/channel-catalog.d.ts +19 -0
  32. package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
  33. package/lib/types/adapter/ports/channel-settings.d.ts +6 -0
  34. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
  35. package/lib/types/adapter/ports/channel-view.d.ts +28 -2
  36. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  37. package/lib/types/adapter/ports/extensions.d.ts +9 -0
  38. package/lib/types/adapter/ports/extensions.d.ts.map +1 -1
  39. package/lib/types/adapter/ports/index.d.ts +1 -1
  40. package/lib/types/adapter/ports/index.d.ts.map +1 -1
  41. package/lib/types/adapter/upstream/extensions-driver.d.ts +4 -1
  42. package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -1
  43. package/lib/types/adapter/upstream/extensions-driver.js +111 -1
  44. package/lib/types/adapter/upstream/index.d.ts +1 -1
  45. package/lib/types/adapter/upstream/index.d.ts.map +1 -1
  46. package/lib/types/adapter/upstream/index.js +1 -1
  47. package/lib/types/api.d.ts +1 -1
  48. package/lib/types/api.d.ts.map +1 -1
  49. package/lib/types/backends/claude/backend.d.ts.map +1 -1
  50. package/lib/types/backends/claude/backend.js +7 -2
  51. package/lib/types/backends/claude/session/lifecycle.d.ts.map +1 -1
  52. package/lib/types/backends/claude/session/lifecycle.js +11 -9
  53. package/lib/types/backends/claude/side-query.d.ts +2 -0
  54. package/lib/types/backends/claude/side-query.d.ts.map +1 -1
  55. package/lib/types/backends/claude/side-query.js +30 -13
  56. package/lib/types/components/FileSuggestions.d.ts +2 -2
  57. package/lib/types/components/FileSuggestions.d.ts.map +1 -1
  58. package/lib/types/components/FileSuggestions.js +25 -5
  59. package/lib/types/components/PromptInput.d.ts +7 -1
  60. package/lib/types/components/PromptInput.d.ts.map +1 -1
  61. package/lib/types/components/PromptInput.js +81 -23
  62. package/lib/types/components/messages/AssistantToolUseMessage.d.ts +1 -1
  63. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  64. package/lib/types/components/messages/AssistantToolUseMessage.js +228 -27
  65. package/lib/types/components/messages/presentCardBackground.d.ts +28 -0
  66. package/lib/types/components/messages/presentCardBackground.d.ts.map +1 -0
  67. package/lib/types/components/messages/presentCardBackground.js +23 -0
  68. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  69. package/lib/types/dsh-adapter/backend/translate.js +28 -1
  70. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  71. package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
  72. package/lib/types/dsh-adapter/channel/file-actions.d.ts +1 -1
  73. package/lib/types/dsh-adapter/channel/file-actions.d.ts.map +1 -1
  74. package/lib/types/dsh-adapter/channel/file-actions.js +11 -4
  75. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  76. package/lib/types/dsh-adapter/channel/settings-host.js +78 -12
  77. package/lib/types/dsh-adapter/channel/state.d.ts +4 -3
  78. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  79. package/lib/types/dsh-adapter/channel/state.js +4 -3
  80. package/lib/types/dsh-adapter/channel/types.d.ts +1 -1
  81. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  82. package/lib/types/dsh-adapter/channel.d.ts +1 -1
  83. package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
  84. package/lib/types/dsh-adapter/childStderr.d.ts +1 -1
  85. package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -1
  86. package/lib/types/dsh-adapter/childStderr.js +5 -0
  87. package/lib/types/dsh-adapter/contract.d.ts +23 -8
  88. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  89. package/lib/types/dsh-adapter/contract.js +27 -7
  90. package/lib/types/dsh-adapter/extensions.d.ts +3 -2
  91. package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
  92. package/lib/types/dsh-adapter/extensions.js +5 -2
  93. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  94. package/lib/types/dsh-adapter/host-contract.js +1 -1
  95. package/lib/types/dsh-adapter/host-dsh.d.ts +4 -0
  96. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  97. package/lib/types/dsh-adapter/host-dsh.js +26 -0
  98. package/lib/types/dsh-adapter/host-entry.js +4 -2
  99. package/lib/types/dsh-adapter/host-service-diagnostics.d.ts +61 -0
  100. package/lib/types/dsh-adapter/host-service-diagnostics.d.ts.map +1 -0
  101. package/lib/types/dsh-adapter/host-service-diagnostics.js +103 -0
  102. package/lib/types/dsh-adapter/index.d.ts +5 -0
  103. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  104. package/lib/types/dsh-adapter/index.js +1 -0
  105. package/lib/types/dsh-adapter/mention-providers.d.ts +91 -0
  106. package/lib/types/dsh-adapter/mention-providers.d.ts.map +1 -0
  107. package/lib/types/dsh-adapter/mention-providers.js +214 -0
  108. package/lib/types/dsh-adapter/migrate/entry.d.ts +2 -0
  109. package/lib/types/dsh-adapter/migrate/entry.d.ts.map +1 -0
  110. package/lib/types/dsh-adapter/migrate/entry.js +46 -0
  111. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  112. package/lib/types/dsh-adapter/plugin.js +42 -2
  113. package/lib/types/dsh-adapter/present-tool.d.ts +20 -0
  114. package/lib/types/dsh-adapter/present-tool.d.ts.map +1 -0
  115. package/lib/types/dsh-adapter/present-tool.js +96 -0
  116. package/lib/types/extensions.d.ts +2 -0
  117. package/lib/types/extensions.d.ts.map +1 -1
  118. package/lib/types/extensions.js +4 -1
  119. package/lib/types/i18n.d.ts +21 -2
  120. package/lib/types/i18n.d.ts.map +1 -1
  121. package/lib/types/i18n.js +9 -1
  122. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  123. package/lib/types/ink/components/ScrollBox.js +13 -0
  124. package/lib/types/ink/dom.d.ts +3 -0
  125. package/lib/types/ink/dom.d.ts.map +1 -1
  126. package/lib/types/ink/ink.d.ts.map +1 -1
  127. package/lib/types/ink/ink.js +30 -34
  128. package/lib/types/ink/render-node-to-output.d.ts +3 -0
  129. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  130. package/lib/types/ink/render-node-to-output.js +54 -40
  131. package/lib/types/ink/selection.d.ts +38 -28
  132. package/lib/types/ink/selection.d.ts.map +1 -1
  133. package/lib/types/ink/selection.js +201 -130
  134. package/lib/types/kernelPrefs.d.ts +5 -2
  135. package/lib/types/kernelPrefs.d.ts.map +1 -1
  136. package/lib/types/kernelPrefs.js +5 -2
  137. package/lib/types/screens/Chat.d.ts +4 -1
  138. package/lib/types/screens/Chat.d.ts.map +1 -1
  139. package/lib/types/screens/Chat.js +2 -2
  140. package/lib/types/settings/definitions.d.ts +12 -0
  141. package/lib/types/settings/definitions.d.ts.map +1 -1
  142. package/lib/types/settings/definitions.js +10 -2
  143. package/lib/types/theme.d.ts +4 -0
  144. package/lib/types/theme.d.ts.map +1 -1
  145. package/lib/types/theme.js +20 -2
  146. package/lib/types/tuiDisplayPrefs.d.ts +3 -0
  147. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  148. package/lib/types/tuiDisplayPrefs.js +10 -0
  149. package/lib/types/update.d.ts +74 -5
  150. package/lib/types/update.d.ts.map +1 -1
  151. package/lib/types/update.js +297 -46
  152. package/lib/types/updateHost.d.ts.map +1 -1
  153. package/lib/types/updateHost.js +16 -5
  154. package/lib/types/usageStats.d.ts +6 -0
  155. package/lib/types/usageStats.d.ts.map +1 -1
  156. package/lib/types/usageStats.js +8 -0
  157. package/lib/types/utils/colorMix.d.ts +19 -0
  158. package/lib/types/utils/colorMix.d.ts.map +1 -0
  159. package/lib/types/utils/colorMix.js +51 -0
  160. package/lib/types/utils/commandLine.d.ts +8 -0
  161. package/lib/types/utils/commandLine.d.ts.map +1 -0
  162. package/lib/types/utils/commandLine.js +37 -0
  163. package/lib/types/utils/desktopEntry.d.ts +32 -0
  164. package/lib/types/utils/desktopEntry.d.ts.map +1 -0
  165. package/lib/types/utils/desktopEntry.js +302 -0
  166. package/lib/types/utils/externalEditor.d.ts +2 -5
  167. package/lib/types/utils/externalEditor.d.ts.map +1 -1
  168. package/lib/types/utils/externalEditor.js +4 -36
  169. package/lib/types/utils/fileSuggestions.d.ts +14 -3
  170. package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
  171. package/lib/types/utils/fileSuggestions.js +33 -0
  172. package/lib/types/utils/openExternal.d.ts +9 -0
  173. package/lib/types/utils/openExternal.d.ts.map +1 -1
  174. package/lib/types/utils/openExternal.js +87 -3
  175. package/lib/types/utils/terminalLaunch.d.ts +16 -0
  176. package/lib/types/utils/terminalLaunch.d.ts.map +1 -0
  177. package/lib/types/utils/terminalLaunch.js +121 -0
  178. package/package.json +116 -110
  179. package/tui-profile/feed/README.md +1 -1
  180. package/tui-profile/feed/first-party.json +1 -1
@@ -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.2`. 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.5`. 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
 
@@ -663,10 +663,11 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
663
663
  | jobGroupFold | consecutive background-job cards: auto (default — runs of 2+ group, a settled run of 3+ folds into its summary line) / always (any run of 2+ folds right away, live jobs included) / never (never folds on its own, every card stays). The group header summarizes status and total time; click it or press Ctrl+O to expand |
664
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 |
665
665
  | smoothStreaming | smooth streaming output (default on): replies/thinking/tool-card text reveal at ~30fps; replay/history always direct |
666
- | toolBackground | tool-card background emphasis: none / subtle / strong; also applies when expanded |
666
+ | toolBackground | tool-card background emphasis: none / subtle / strong; also applies when expanded. A `present` delivery card always keeps its own face — warm when None, violet when Subtle/Strong — except in the Minimal UI |
667
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 |
668
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 |
669
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 |
670
+ | nerdFontIcons | Nerd Font file icons (default off): the `present` delivery card uses file-type icons instead of four-cell badges; requires a Nerd Font Mono, otherwise the glyphs render as boxes. Applies immediately |
670
671
  | 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 |
671
672
  | mathImageScale | formula image size (default `auto`; same **Formula** subpage), used with LaTeX math → Image: `auto` matches the body text, `large` / `xlarge` set **display** formulas bigger. Terminal images are drawn one device pixel per pixel, so "bigger" literally means more pixels per stroke — the only sharpness lever there is. Inline formulas are unaffected (they must fit one row). Applies immediately |
672
673
  | scrollGutter | transcript gutter: timeline (turn timeline, default) / scrollbar (proportional) / hidden. Applies immediately |
@@ -683,6 +684,10 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
683
684
 
684
685
  **pageMargin**: custom `NxM` = `N` columns left/right, `M` rows top/bottom (cap 8x4); only `N` means 1 row top/bottom.
685
686
 
687
+ **Notification delivery**: on terminals that support OSC 777/9, the title and body together stay within a 2048-byte sequence budget that includes protocol overhead, truncating on whole graphemes; with no reply only the title is shown, and BEL only rings. On local Windows, `auto` resolves to a native toast (`windows`): the first toast registers that user's AppUserModelID (AUMID) under HKCU, and the toast appears about 3 seconds after the task ends (the PowerShell cold start that buys the no-extra-install route); if that AppUserModelID cannot be written, delivery falls back to the bell instead of going silent. On local Windows, an enabled, active external DSH notification plugin takes over completions, approvals and questions; a plan review never yields. An explicit `osc9` puts the title before the body, as iTerm2/Warp do; SSH sessions keep the attached terminal's notification protocol in `auto`, and an explicit `windows` still selects the host's native transport. Replay, cancellation and failures do not notify; inline and fullscreen both work.
688
+
689
+ **Jump back (`jumpBack`)**: off by default on Windows; it needs the native toast path (`notificationMethod` = `windows`, which `auto` picks on local Windows). With it 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 `~/.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. 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.
690
+
686
691
  Namespaces not declared as TUI blocks are listed read-only; edit the profile config by hand (`~/.dsh/settings.yaml` on older hosts).
687
692
  These settings are **not in /settings**, edit `$DSH_HOME/profiles/dsh-tui/cordis.patch.yml`:
688
693
  provider / model / cwd / preset / workspace / sessionId / modes,
@@ -704,6 +709,7 @@ plus the startup-level `effort` key.
704
709
  - WSL: WSLg exposes a Windows bitmap as `image/bmp`; dsh-tui converts it to PNG before attaching.
705
710
  - When those tools find nothing, it falls back to `powershell.exe` (needs Windows interop) to read the
706
711
  Windows clipboard: screenshots, files copied in Explorer, and text.
712
+ - **Notifications**: tmux needs `set -g allow-passthrough on` for OSC notifications and `set -g focus-events on` for focus reporting; terminals without focus reporting should set `taskNotifications` to `always`.
707
713
  - Environment check: `/doctor`.
708
714
 
709
715
  ### 5.5 Safe mode and rescue profile (`dsh-tui safe`)
@@ -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.2`;兼容列表以 `ADAPTER.md` 为准,列表之外的版本在 logo 页提示版本漂移与对齐命令。
33
+ - 主验证 dsh 引擎版本 `0.2.2-rc.5`;兼容列表以 `ADAPTER.md` 为准,列表之外的版本在 logo 页提示版本漂移与对齐命令。
34
34
  - 如果 logo 页出现 ⚠ 版本漂移警告,按提示执行 `npm i -g @deepseek-ai/dsh@<版本>` 对齐 dsh 引擎。
35
35
 
36
36
  ### 1.2 首次启动你会看到
@@ -601,10 +601,11 @@ dsh-tui 自身区块在 0.1.7 写入当前 profile 的 `cordis.patch.yml`,旧
601
601
  | jobGroupFold | 连续的后台任务卡:auto(默认,≥2 张成组;整组落定且 ≥3 张时折叠成汇总行)/ always(≥2 张立即折叠,含在跑的任务)/ never(从不自动折叠,每张卡都留着)。组头一行汇总状态与合计时长,点组头或 Ctrl+O 展开 |
602
602
  | effortDefault | 默认推理强度:自动及当前后端/模型声明的档位(包括自定义 ID)。未支持的已存值仍可读;加载中或不可用时仅可选自动 |
603
603
  | smoothStreaming | 流式平滑输出(默认开):回复/思考/工具卡正文按 ~30fps 匀速揭示;回放/历史完整直出 |
604
- | toolBackground | 工具卡背景强调:none / subtle / strong;展开后也生效 |
604
+ | toolBackground | 工具卡背景强调:none / subtle / strong;展开后也生效。`present` 交付卡始终保留自己的底色:无背景时暖橙,轻微/明显时紫罗兰;极简界面除外 |
605
605
  | taskNotifications | 通知(默认「仅失焦时」):一个开关同时管四类系统通知——任务完成、等待工具授权、等待回答与计划评审。完成通知标题「dsh-TUI · 任务已完成」,正文为本轮回复的单行纯文本摘要;审批通知标题「dsh-TUI · 等待授权」,正文只含会话名、工具名与宿主给出的理由(已归一化并限长,模型写的理由会原样出现,不读取工具调用的参数);提问通知标题「dsh-TUI · 等待回答」,正文只含首个问题的标题与问题,不含选项与详情(模型提问与本地向导/登录等经问卷面板的提问都算;上游 0.2.2 的 approval intent 提问按这条提醒;子代理的提问本版只进面板);计划评审标题「dsh-TUI · 计划评审」,正文只含问题标题与问题本身、不含整份计划与选项,且是唯一不让位的一类;原生 toast 排队投递期间,开关关闭、会话切换或审批/提问/计划评审已处理都会取消。每条审批各提醒一条,且只提醒当前会话(后台会话与子代理不提醒)。投递方式由 `notificationMethod` 决定,原生 toast 投不出去时回落到响铃;外部 DSH 通知插件已启用并处于 active 时,完成、审批与提问让位,计划评审不让位。立即生效 |
606
606
  | turnUsageRow | 回合用量行(默认关闭):在每回合末显示 token、缓存、耗时与重试摘要;`/tokens`、`/status` 和底栏 token 悬停不受此开关影响 |
607
607
  | mermaidDiagrams | Mermaid 图表(默认开):回复中的 ```` ```mermaid ```` 代码块画成字符图,流式期间逐步成形;比终端宽或类型不支持的图保留源码并注明所需列数。立即生效 |
608
+ | nerdFontIcons | Nerd Font 文件图标(默认关):`present` 交付卡用文件类型图标代替四格徽章;需要终端使用 Nerd Font Mono,否则图标显示为方框。立即生效 |
608
609
  | 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。立即生效 |
609
610
  | mathImageScale | 公式图片大小(默认 `auto`,与上一条同在**公式设置**子页):配合 LaTeX 公式的「图片」使用——`auto` 与正文同尺寸,`large` / `xlarge` 把**块级**公式排得更大;终端图片是按设备像素 1:1 画的,所以"更大"就等于"每个笔画更多像素",是唯一的清晰度杠杆。行内公式不受影响(只能占一行)。立即生效 |
610
611
  | scrollGutter | 转录边栏:timeline(轮次时间线,默认)/ scrollbar(比例滚动条)/ hidden。立即生效 |
@@ -621,6 +622,10 @@ dsh-tui 自身区块在 0.1.7 写入当前 profile 的 `cordis.patch.yml`,旧
621
622
 
622
623
  **pageMargin**:自定义 `NxM` = 左右 `N` 列、上下 `M` 行(上限 8x4);只填 `N` 则上下 1 行。
623
624
 
625
+ **通知投递**:支持 OSC 777/9 的终端上,标题与正文合计受 2048 字节序列预算约束(含协议开销),按完整字素截短;没有回复时只显示标题,BEL 只响铃。本地 Windows 上 `auto` 解析为原生 toast(`windows`):首次弹出注册当前用户的 AppUserModelID(AUMID,写 HKCU),弹出比任务结束晚约 3 秒(零安装路线要付的 PowerShell 冷启动代价);注册写不进去时回落到响铃,而不是静默。本地 Windows 上,外部 DSH 通知插件已启用且处于 active 时,完成、审批与提问让位给它,计划评审不让位。显式 `osc9` 与 iTerm2/Warp 一样把标题放在正文前;SSH 会话的 `auto` 保留所连接终端的通知协议,显式 `windows` 仍选择运行主机的原生通知。回放、取消与失败不通知;inline 与 fullscreen 都支持。
626
+
627
+ **通知跳回(`jumpBack`)**:Windows 上默认关闭,需要原生 toast 通道(`notificationMethod` = `windows`,本地 Windows 的 `auto` 会选它)。开启后窗格标题末尾追加 `[dsh-tui:<16 位十六进制>]` 标记,同一进程内不变;关闭即去掉后缀。开启期间,本进程在启用时与每次发出通知前刷新 `~/.dsh-tui/notify/jumpback/<session>.json`(`schemaVersion: 1`、`marker`、`pid`、`startedAt`),并由第一条能承诺跳回的 toast 注册当前用户的协议处理器(`URL Protocol` 与 `shell\open\command`)到 `HKCU\Software\Classes\dsh-tui`;正常退出删除该文件,并在没有其它存活实例需要时删除该键。只有发送前的探测恰好命中一个目标窗格(或一个标签标题)时,toast 才带 activation URI;点击时再跑五项核验——同一个窗格、获得键盘焦点、标题仍含标记、窗口在前台、未最小化——任一项不成立就拒绝跳转。目标已消失的点击不改变任何东西;无法核验的布局(目标在未选中标签且非该标签获焦窗格、使用 `suppressApplicationTitle`、非 Windows Terminal;在 Windows Terminal 1.24 实测)发普通 toast。探测会让每条 toast 晚约半秒,开启后第一条还可能等 helper 编译一次(几秒),本机编译器持续失败时最多每五分钟重试。外部发送方可读取同一个标记文件,把自己的 toast 指向 `dsh-tui:activate?m=<marker>`;URI 与文件格式是只读契约,本版不提供插件侧实现。
628
+
624
629
  未声明 TUI 区块的命名空间以只读形式列出,需手工编辑 profile 配置(旧版为 `~/.dsh/settings.yaml`)。
625
630
  以下设置**不在 /settings 内**,改 `$DSH_HOME/profiles/dsh-tui/cordis.patch.yml`:
626
631
  provider / model / cwd / preset / workspace / sessionId / modes,
@@ -642,6 +647,7 @@ provider / model / cwd / preset / workspace / sessionId / modes,
642
647
  - WSL:WSLg 把 Windows 位图暴露为 `image/bmp`,dsh-tui 会转成 PNG 再附加。
643
648
  - 上面的工具读不到时,回退到 `powershell.exe`(需要 Windows interop)读取 Windows 剪贴板,
644
649
  支持截图、资源管理器复制的文件与文本。
650
+ - **通知**:tmux 的 OSC 通知需要 `set -g allow-passthrough on`,焦点报告需要 `set -g focus-events on`;不支持焦点报告的终端把 `taskNotifications` 设为 `always`。
645
651
  - 环境自检:`/doctor`。
646
652
 
647
653
  ### 5.5 安全模式与救援 profile(`dsh-tui safe`)
package/lib/settings.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "package": "@deepseek-harness-tui/dsh-tui",
4
- "packageVersion": "0.20.0",
4
+ "packageVersion": "0.20.2",
5
5
  "namespace": "dsh-tui",
6
6
  "groups": [
7
7
  {
@@ -623,6 +623,22 @@
623
623
  "restartRequired": false,
624
624
  "deprecated": false
625
625
  },
626
+ {
627
+ "key": "nerdFontIcons",
628
+ "kind": "boolean",
629
+ "group": "appearance",
630
+ "label": {
631
+ "en": "Nerd Font file icons",
632
+ "zh": "Nerd Font 文件图标"
633
+ },
634
+ "description": {
635
+ "en": "Show file-type icons in the `present` delivery card instead of four-cell type badges (PDF, XLS, PPT…). Requires a Nerd Font Mono in the terminal: without one the glyphs render as boxes. Off by default; the card keeps the font-safe badges. Applies immediately.",
636
+ "zh": "在 `present` 交付卡里用文件类型图标代替四格徽章(PDF、XLS、PPT…)。需要终端使用 Nerd Font Mono;没装时图标会变成方框。默认关闭,卡片继续用与字体无关的徽章。立即生效。"
637
+ },
638
+ "default": false,
639
+ "restartRequired": false,
640
+ "deprecated": false
641
+ },
626
642
  {
627
643
  "key": "notificationMethod",
628
644
  "kind": "select",
@@ -1674,8 +1690,8 @@
1674
1690
  "zh": "工具卡背景"
1675
1691
  },
1676
1692
  "description": {
1677
- "en": "Choose whether tool-call cards add no, subtle, or strong background emphasis; also applies when expanded.",
1678
- "zh": "选择工具调用卡片不添加、轻微或明显的背景强调;展开后也生效。"
1693
+ "en": "Choose whether tool-call cards add no, subtle, or strong background emphasis; also applies when expanded. A `present` delivery card always keeps its own face — warm when None, violet when Subtle/Strong — except in the Minimal UI.",
1694
+ "zh": "选择工具调用卡片不添加、轻微或明显的背景强调;展开后也生效。`present` 交付卡始终保留自己的底色——无背景时暖橙,轻微/明显时紫罗兰——极简界面除外。"
1679
1695
  },
1680
1696
  "default": "none",
1681
1697
  "options": [
@@ -20,7 +20,7 @@ import type { HostWorkspacePort } from '../ports/workspace.js';
20
20
  import type { HostScenesPort } from '../ports/scenes.js';
21
21
  import type { HostPanelsPort } from '../ports/panels.js';
22
22
  import type { HostSettingsPort } from '../ports/settings.js';
23
- import type { HostStatusPort, HostShortcutsPort, HostRenderersPort, HostThemesPort, HostToastPort, HostCommandTreesPort } from '../ports/extensions.js';
23
+ import type { HostStatusPort, HostShortcutsPort, HostRenderersPort, HostThemesPort, HostToastPort, HostCommandTreesPort, HostMentionsPort } from '../ports/extensions.js';
24
24
  import type { HostDecisionsPort } from '../ports/decisions.js';
25
25
  import type { HostChannelPort } from '../ports/channel.js';
26
26
  import { type AdapterMode } from './runtime.js';
@@ -37,6 +37,7 @@ export interface HostFacade {
37
37
  readonly themes?: HostThemesPort;
38
38
  readonly toast?: HostToastPort;
39
39
  readonly commandTrees?: HostCommandTreesPort;
40
+ readonly mentions?: HostMentionsPort;
40
41
  readonly decisions?: HostDecisionsPort;
41
42
  readonly channel?: HostChannelPort;
42
43
  }
@@ -53,6 +54,7 @@ export interface HostFacadePorts {
53
54
  readonly themes?: HostThemesPort;
54
55
  readonly toast?: HostToastPort;
55
56
  readonly commandTrees?: HostCommandTreesPort;
57
+ readonly mentions?: HostMentionsPort;
56
58
  readonly decisions?: HostDecisionsPort;
57
59
  readonly channel?: HostChannelPort;
58
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"host-facade.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/host-facade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,cAAc,CAAA;AAGrB,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAA;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAA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AiB,CAAA;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;CACnC;AA+JD,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAiBnE;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CA4BnG"}
@@ -90,6 +90,10 @@ const PORT_METHOD_CAPABILITIES = Object.freeze({
90
90
  children: 'host.command-trees.children',
91
91
  descriptions: 'host.command-trees.descriptions',
92
92
  }),
93
+ mentions: Object.freeze({
94
+ register: 'host.mentions.register',
95
+ complete: 'host.mentions.complete',
96
+ }),
93
97
  decisions: Object.freeze({
94
98
  probe: 'host.decision.probe',
95
99
  subscribe: 'host.decision.subscribe',
@@ -183,6 +187,7 @@ export function createHostFacade(ports) {
183
187
  ...(ports.themes === undefined ? {} : { themes: ports.themes }),
184
188
  ...(ports.toast === undefined ? {} : { toast: ports.toast }),
185
189
  ...(ports.commandTrees === undefined ? {} : { commandTrees: ports.commandTrees }),
190
+ ...(ports.mentions === undefined ? {} : { mentions: ports.mentions }),
186
191
  ...(ports.decisions === undefined ? {} : { decisions: ports.decisions }),
187
192
  ...(ports.channel === undefined ? {} : { channel: ports.channel }),
188
193
  });
@@ -216,6 +221,7 @@ export function createShadowGuardedHostFacade(ports, mode) {
216
221
  ...(ports.themes === undefined ? {} : { themes: wrapPort(ports.themes, 'themes', mode) }),
217
222
  ...(ports.toast === undefined ? {} : { toast: wrapPort(ports.toast, 'toast', mode) }),
218
223
  ...(ports.commandTrees === undefined ? {} : { commandTrees: wrapPort(ports.commandTrees, 'commandTrees', mode) }),
224
+ ...(ports.mentions === undefined ? {} : { mentions: wrapPort(ports.mentions, 'mentions', mode) }),
219
225
  ...(ports.decisions === undefined ? {} : { decisions: wrapPort(ports.decisions, 'decisions', mode) }),
220
226
  ...(ports.channel === undefined ? {} : { channel: wrapChannelPort(ports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CAAA;AAEF,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEzE;AAaD,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAE9E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAevE;AAED,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBjE,CAAA;AASF;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAatF;AAED,wBAAgB,mBAAmB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,qBAAqB,CAK/F;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,qBAAqB,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,eAAe,GAAG,OAAO,CAE5E;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAW5F;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,CAMxF;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,WAAW,EACjB,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,GACzB,IAAI,CAUN;AAOD,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAGhE"}
@@ -75,6 +75,8 @@ export const ADAPTER_CAPABILITY_EFFECT_CLASSES = Object.freeze({
75
75
  'host.command-trees.register': 'register',
76
76
  'host.command-trees.children': 'read-only',
77
77
  'host.command-trees.descriptions': 'read-only',
78
+ 'host.mentions.register': 'register',
79
+ 'host.mentions.complete': 'read-only',
78
80
  'host.workspaces.register': 'register',
79
81
  'host.workspaces.list': 'read-only',
80
82
  'host.workspaces.resolve': 'read-only',
@@ -164,6 +166,8 @@ export const ADAPTER_CAPABILITY_SLICES = Object.freeze({
164
166
  'host.command-trees.register': 'command-trees',
165
167
  'host.command-trees.children': 'command-trees',
166
168
  'host.command-trees.descriptions': 'command-trees',
169
+ 'host.mentions.register': 'mentions',
170
+ 'host.mentions.complete': 'mentions',
167
171
  'host.workspaces.register': 'workspaces',
168
172
  'host.workspaces.list': 'workspaces',
169
173
  'host.workspaces.resolve': 'workspaces',
@@ -231,6 +235,7 @@ export const ADAPTER_SLICE_ALIASES = Object.freeze({
231
235
  'decisionevents': 'decisions',
232
236
  'command-tree': 'command-trees',
233
237
  'commandtrees': 'command-trees',
238
+ 'mention': 'mentions',
234
239
  'workspace': 'workspaces',
235
240
  'setting': 'settings',
236
241
  'scene': 'scenes',
@@ -5,4 +5,5 @@ export declare const renderersSlice: KernelSlice;
5
5
  export declare const themesSlice: KernelSlice;
6
6
  export declare const toastSlice: KernelSlice;
7
7
  export declare const commandTreesSlice: KernelSlice;
8
+ export declare const mentionsSlice: KernelSlice;
8
9
  //# sourceMappingURL=extensions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/extensions.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAwC7C,eAAO,MAAM,WAAW,aAA4E,CAAA;AACpG,eAAO,MAAM,cAAc,aAAwF,CAAA;AACnH,eAAO,MAAM,cAAc,aAAwF,CAAA;AACnH,eAAO,MAAM,WAAW,aAA4E,CAAA;AACpG,eAAO,MAAM,UAAU,aAAwE,CAAA;AAC/F,eAAO,MAAM,iBAAiB,aAAsG,CAAA"}
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/extensions.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA4C7C,eAAO,MAAM,WAAW,aAA4E,CAAA;AACpG,eAAO,MAAM,cAAc,aAAwF,CAAA;AACnH,eAAO,MAAM,cAAc,aAAwF,CAAA;AACnH,eAAO,MAAM,WAAW,aAA4E,CAAA;AACpG,eAAO,MAAM,UAAU,aAAwE,CAAA;AAC/F,eAAO,MAAM,iBAAiB,aAAsG,CAAA;AACpI,eAAO,MAAM,aAAa,aAAoF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { statusDriver, shortcutsDriver, renderersDriver, themesDriver, toastDriver, commandTreesDriver, } from '../../upstream/extensions-driver.js';
1
+ import { statusDriver, shortcutsDriver, renderersDriver, themesDriver, toastDriver, commandTreesDriver, mentionsDriver, } from '../../upstream/extensions-driver.js';
2
2
  const statusDeclarations = Object.freeze([
3
3
  'host.status.set',
4
4
  'host.status.snapshot',
@@ -27,6 +27,10 @@ const commandTreesDeclarations = Object.freeze([
27
27
  'host.command-trees.children',
28
28
  'host.command-trees.descriptions',
29
29
  ]);
30
+ const mentionsDeclarations = Object.freeze([
31
+ 'host.mentions.register',
32
+ 'host.mentions.complete',
33
+ ]);
30
34
  function extensionSlice(id, capability, driver, standardDeclarations) {
31
35
  return Object.freeze({
32
36
  id,
@@ -41,3 +45,4 @@ export const renderersSlice = extensionSlice('renderers', 'host.renderers', rend
41
45
  export const themesSlice = extensionSlice('themes', 'host.themes', themesDriver, themesDeclarations);
42
46
  export const toastSlice = extensionSlice('toast', 'host.toast', toastDriver, toastDeclarations);
43
47
  export const commandTreesSlice = extensionSlice('command-trees', 'host.command-trees', commandTreesDriver, commandTreesDeclarations);
48
+ export const mentionsSlice = extensionSlice('mentions', 'host.mentions', mentionsDriver, mentionsDeclarations);
@@ -13,7 +13,7 @@ export { scenesSlice } from './scenes.js';
13
13
  export { panelsSlice } from './panels.js';
14
14
  export { settingsSlice } from './settings.js';
15
15
  export { channelSlice } from './channel.js';
16
- export { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, } from './extensions.js';
16
+ export { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, mentionsSlice, } from './extensions.js';
17
17
  export { decisionsSlice } from './decisions.js';
18
18
  import type { KernelSlice } from './types.js';
19
19
  export declare const ADAPTER_KERNEL_SLICES: readonly KernelSlice[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAiB7C,eAAO,MAAM,qBAAqB,EAAE,SAAS,WAAW,EActD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,aAAa,GACd,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkB7C,eAAO,MAAM,qBAAqB,EAAE,SAAS,WAAW,EAetD,CAAA"}
@@ -12,7 +12,7 @@ export { scenesSlice } from './scenes.js';
12
12
  export { panelsSlice } from './panels.js';
13
13
  export { settingsSlice } from './settings.js';
14
14
  export { channelSlice } from './channel.js';
15
- export { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, } from './extensions.js';
15
+ export { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, mentionsSlice, } from './extensions.js';
16
16
  export { decisionsSlice } from './decisions.js';
17
17
  import { presentationSlice } from './presentation.js';
18
18
  import { workspaceSlice } from './workspace.js';
@@ -20,7 +20,7 @@ import { scenesSlice } from './scenes.js';
20
20
  import { panelsSlice } from './panels.js';
21
21
  import { settingsSlice } from './settings.js';
22
22
  import { channelSlice } from './channel.js';
23
- import { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, } from './extensions.js';
23
+ import { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, mentionsSlice, } from './extensions.js';
24
24
  import { decisionsSlice } from './decisions.js';
25
25
  export const ADAPTER_KERNEL_SLICES = Object.freeze([
26
26
  presentationSlice,
@@ -35,5 +35,6 @@ export const ADAPTER_KERNEL_SLICES = Object.freeze([
35
35
  themesSlice,
36
36
  toastSlice,
37
37
  commandTreesSlice,
38
+ mentionsSlice,
38
39
  decisionsSlice,
39
40
  ]);
@@ -96,6 +96,25 @@ export interface FileCandidate {
96
96
  score: number;
97
97
  }
98
98
  export type FileCandidateKind = 'file' | 'directory';
99
+ /**
100
+ * One `@` completion row a plugin mention provider (`ctx.tuiMentions`)
101
+ * contributed. Host-sanitized: `label`/`detail`/`section` are single-line
102
+ * render text, `insertText` is plain single-line text that replaces the typed
103
+ * `@query` and carries no `@` mention token of its own.
104
+ */
105
+ export interface ProvidedMentionCandidate {
106
+ /** Stable within one provider (`providerId` + label + insertText). */
107
+ id: string;
108
+ kind: 'provided';
109
+ providerId: string;
110
+ /** The provider's `title`, shown beside every row it contributed. */
111
+ section: string;
112
+ label: string;
113
+ detail?: string;
114
+ insertText: string;
115
+ }
116
+ /** A row of the `@` completion popup: a workspace path or a provider item. */
117
+ export type MentionCandidate = FileCandidate | ProvidedMentionCandidate;
99
118
  /** Outcome of one recap call, as surfaced on the Channel. */
100
119
  export interface RecapOutcome {
101
120
  /** The one-line summary, or null when the call failed. */
@@ -1 +1 @@
1
- {"version":3,"file":"channel-catalog.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/channel-catalog.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAG9E,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB,yEAAyE;IACzE,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,+DAA+D;IAC/D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;4EACwE;IACxE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;;OAMG;IACH,KAAK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;IAC1D,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -199,6 +199,12 @@ export interface SettingsNamespaceView {
199
199
  readonly value: unknown;
200
200
  /** Raw user layer; a path present here is a user override. */
201
201
  readonly user: unknown;
202
+ /**
203
+ * Composition layer below the user document, when the settings service
204
+ * reports it. A field whose base value is already set cannot fall back to
205
+ * "unset" by clearing the user override: the base keeps applying.
206
+ */
207
+ readonly base?: unknown;
202
208
  /** A fault in the namespace's own document, when there is one. */
203
209
  readonly warning?: SettingsNamespaceWarning;
204
210
  }
@@ -1 +1 @@
1
- {"version":3,"file":"channel-settings.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/channel-settings.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAEjE;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,oBAAoB,IAAI,SAAS,wBAAwB,EAAE,CAAA;IAC3D;;;;;OAKG;IACH,uBAAuB,IAAI,SAAS,kBAAkB,EAAE,CAAA;IACxD;;;;;;;OAOG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAA;IAClE,kEAAkE;IAClE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;IACnC,sEAAsE;IACtE,cAAc,CAAC,OAAO,EAAE;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,G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,QAAQ,CAAA;AAE3E,MAAM,WAAW,sBAAsB;IACrC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,YAAY,CAAC,EAAE,qBAAqB,CAAA;CACrC;AAED,oEAAoE;AACpE,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA"}
@@ -197,7 +197,26 @@ export interface ToolRow {
197
197
  /** Whole lines dropped from the head of `liveOutput` to keep it bounded. */
198
198
  liveOutputDropped?: number;
199
199
  }
200
- /** Pending-call render intent (structural subset of dsh-tools ToolCallView). */
200
+ /**
201
+ * One file an agent declared as a final deliverable (`present`). `path` is
202
+ * the path as the model wrote it and is what the card displays; `target`, when
203
+ * present, is the absolute path the result resolved it to (the click target
204
+ * and metadata source, so a later working-directory change cannot redirect
205
+ * it). `description` is the optional note the model attached for the user.
206
+ */
207
+ export interface ToolPresentedFile {
208
+ readonly path: string;
209
+ /** Absolute path resolved by the producing tool, when it reported one. */
210
+ readonly target?: string;
211
+ readonly description?: string;
212
+ /** Size in bytes when the presenter could stat the file. */
213
+ readonly size?: number;
214
+ /** Last-modified time (Unix epoch ms) when the presenter could stat it. */
215
+ readonly mtimeMs?: number;
216
+ }
217
+ /** Pending-call render intent (structural subset of dsh-tools ToolCallView;
218
+ * `files` is this app's own card for explicit deliveries, see
219
+ * {@link ToolPresentedFile}). */
201
220
  export type ToolCallView = ToolViewMeta & ({
202
221
  readonly card: 'generic';
203
222
  readonly title: string;
@@ -211,6 +230,9 @@ export type ToolCallView = ToolViewMeta & ({
211
230
  readonly card: 'diff';
212
231
  readonly title: string;
213
232
  readonly diffs: readonly ToolFileDiff[];
233
+ } | {
234
+ readonly card: 'files';
235
+ readonly files: readonly ToolPresentedFile[];
214
236
  });
215
237
  /**
216
238
  * Optional backend decoration of a tool view: the i18n key of the tool's
@@ -250,7 +272,8 @@ export type ToolFileDiff = {
250
272
  readonly movePath?: string;
251
273
  };
252
274
  /** Completed-call render intent (structural subset of dsh-tools
253
- * ToolResultView). `web` results and unknown shapes fall back to raw text. */
275
+ * ToolResultView, plus this app's `files` delivery card). `web` results and
276
+ * unknown shapes fall back to raw text. */
254
277
  export type ToolResultView = ToolViewMeta & ({
255
278
  readonly card: 'generic';
256
279
  readonly title?: string;
@@ -276,6 +299,9 @@ export type ToolResultView = ToolViewMeta & ({
276
299
  readonly type: string;
277
300
  readonly text?: string;
278
301
  }>;
302
+ } | {
303
+ readonly card: 'files';
304
+ readonly files: readonly ToolPresentedFile[];
279
305
  } | {
280
306
  readonly card: 'search';
281
307
  readonly shape: 'matches';