@deepseek-harness-tui/dsh-tui 0.20.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 (85) hide show
  1. package/README.md +5 -1
  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 +1 -1
  6. package/guide/dsh-tui-guide/configuration.md +1 -1
  7. package/guide/dsh-tui-guide/getting-started.en.md +2 -2
  8. package/guide/dsh-tui-guide/getting-started.md +2 -2
  9. package/guide/dsh-tui-guide/migrate.en.md +5 -0
  10. package/guide/dsh-tui-guide/migrate.md +4 -0
  11. package/guide/dsh-tui-guide/plugins.en.md +17 -1
  12. package/guide/dsh-tui-guide/plugins.md +12 -1
  13. package/guide/dsh-tui-guide/user-guide.en.md +1 -1
  14. package/guide/dsh-tui-guide/user-guide.md +1 -1
  15. package/lib/settings.json +1 -1
  16. package/lib/types/adapter/kernel/host-facade.d.ts +3 -1
  17. package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -1
  18. package/lib/types/adapter/kernel/host-facade.js +6 -0
  19. package/lib/types/adapter/kernel/runtime.d.ts.map +1 -1
  20. package/lib/types/adapter/kernel/runtime.js +5 -0
  21. package/lib/types/adapter/kernel/slices/extensions.d.ts +1 -0
  22. package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -1
  23. package/lib/types/adapter/kernel/slices/extensions.js +6 -1
  24. package/lib/types/adapter/kernel/slices/index.d.ts +1 -1
  25. package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -1
  26. package/lib/types/adapter/kernel/slices/index.js +3 -2
  27. package/lib/types/adapter/ports/channel-catalog.d.ts +19 -0
  28. package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
  29. package/lib/types/adapter/ports/extensions.d.ts +9 -0
  30. package/lib/types/adapter/ports/extensions.d.ts.map +1 -1
  31. package/lib/types/adapter/ports/index.d.ts +1 -1
  32. package/lib/types/adapter/ports/index.d.ts.map +1 -1
  33. package/lib/types/adapter/upstream/extensions-driver.d.ts +4 -1
  34. package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -1
  35. package/lib/types/adapter/upstream/extensions-driver.js +111 -1
  36. package/lib/types/adapter/upstream/index.d.ts +1 -1
  37. package/lib/types/adapter/upstream/index.d.ts.map +1 -1
  38. package/lib/types/adapter/upstream/index.js +1 -1
  39. package/lib/types/api.d.ts +1 -1
  40. package/lib/types/api.d.ts.map +1 -1
  41. package/lib/types/backends/claude/backend.d.ts.map +1 -1
  42. package/lib/types/backends/claude/backend.js +7 -2
  43. package/lib/types/components/FileSuggestions.d.ts +2 -2
  44. package/lib/types/components/FileSuggestions.d.ts.map +1 -1
  45. package/lib/types/components/FileSuggestions.js +25 -5
  46. package/lib/types/components/PromptInput.d.ts +7 -1
  47. package/lib/types/components/PromptInput.d.ts.map +1 -1
  48. package/lib/types/components/PromptInput.js +81 -23
  49. package/lib/types/dsh-adapter/childStderr.d.ts +1 -1
  50. package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -1
  51. package/lib/types/dsh-adapter/childStderr.js +5 -0
  52. package/lib/types/dsh-adapter/contract.d.ts +9 -5
  53. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  54. package/lib/types/dsh-adapter/contract.js +11 -4
  55. package/lib/types/dsh-adapter/extensions.d.ts +3 -2
  56. package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
  57. package/lib/types/dsh-adapter/extensions.js +5 -2
  58. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  59. package/lib/types/dsh-adapter/host-contract.js +1 -1
  60. package/lib/types/dsh-adapter/host-dsh.d.ts +4 -0
  61. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  62. package/lib/types/dsh-adapter/host-dsh.js +26 -0
  63. package/lib/types/dsh-adapter/mention-providers.d.ts +91 -0
  64. package/lib/types/dsh-adapter/mention-providers.d.ts.map +1 -0
  65. package/lib/types/dsh-adapter/mention-providers.js +214 -0
  66. package/lib/types/dsh-adapter/migrate/entry.d.ts +2 -0
  67. package/lib/types/dsh-adapter/migrate/entry.d.ts.map +1 -0
  68. package/lib/types/dsh-adapter/migrate/entry.js +46 -0
  69. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  70. package/lib/types/dsh-adapter/plugin.js +3 -0
  71. package/lib/types/extensions.d.ts +2 -0
  72. package/lib/types/extensions.d.ts.map +1 -1
  73. package/lib/types/extensions.js +4 -1
  74. package/lib/types/i18n.d.ts +6 -2
  75. package/lib/types/i18n.d.ts.map +1 -1
  76. package/lib/types/i18n.js +3 -1
  77. package/lib/types/screens/Chat.d.ts +4 -1
  78. package/lib/types/screens/Chat.d.ts.map +1 -1
  79. package/lib/types/screens/Chat.js +2 -2
  80. package/lib/types/utils/fileSuggestions.d.ts +14 -3
  81. package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
  82. package/lib/types/utils/fileSuggestions.js +33 -0
  83. package/package.json +114 -109
  84. package/tui-profile/feed/README.md +1 -1
  85. package/tui-profile/feed/first-party.json +1 -1
package/README.md CHANGED
@@ -130,7 +130,7 @@ The `deepseek-official` API-key route needs `DEEPSEEK_API_KEY`. On DSH
130
130
  and select the separate account route through `/model`. Other supported
131
131
  accounts can sign in through `/provider` or `/auth` after startup.
132
132
 
133
- The primary compatibility target is DSH `0.2.2-rc.2`. This adapter supports its
133
+ The primary compatibility target is DSH `0.2.2-rc.3`. This adapter supports its
134
134
  Shell API, V4 session messages, declarative presets, and profile-backed settings;
135
135
  older supported hosts retain their compatibility paths. See [configuration](docs/configuration.en.md).
136
136
 
@@ -240,6 +240,7 @@ dsh-tui migrate codex --dry-run # preview what would land, write nothing
240
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.
241
241
  In-TUI: `/migrate` (optionally `/migrate <agent> [--dry-run]`) runs the same import in a child process and reports through the notification flow.
242
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.
243
244
  Full guide: [Session migration](docs/migrate.en.md).
244
245
 
245
246
  - More agents (pi, opencode, …) extend the adapter registry as adapters land; grok-build reads `GROK_HOME` when set.
@@ -274,6 +275,9 @@ The easiest install: open the kernel picker (the launchpad "Kernel" entry or
274
275
  `/kernel`) and press Enter on the dim Claude row — the wizard locates the
275
276
  profile directory and installs the pinned SDK for you; the command above is
276
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.
277
281
  The confirmation shows the exact package and version. Closing the wizard,
278
282
  including clicking outside it on the launchpad, cancels a pending installation.
279
283
 
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
  // ─── 全局副本:瘦壳角色 ───────────────────────────────────────────────────────
@@ -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.2` 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.2` 的开发依赖解析到 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.2
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.2
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.2
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.2
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.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.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
 
@@ -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.3`;兼容列表以 `ADAPTER.md` 为准,列表之外的版本在 logo 页提示版本漂移与对齐命令。
34
34
  - 如果 logo 页出现 ⚠ 版本漂移警告,按提示执行 `npm i -g @deepseek-ai/dsh@<版本>` 对齐 dsh 引擎。
35
35
 
36
36
  ### 1.2 首次启动你会看到
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.1",
5
5
  "namespace": "dsh-tui",
6
6
  "groups": [
7
7
  {
@@ -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,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,YAAY,CAAC,EAAE,oBAAoB,CAAA;IAC5C,QAAQ,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,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.channel, mode) }),
221
227
  };
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,gBAAgB,GAAG,eAAe,GAAG,KAAK,CAAA;AAC/E,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAA;CAC7C;AAED,eAAO,MAAM,oBAAoB,EAAE,WAAsB,CAAA;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAwFtF,CAAA;AAGF,2DAA2D;AAC3D,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsFrE,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,CAejE,CAAA;AASF;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,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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;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AAED,8EAA8E;AAC9E,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,wBAAwB,CAAA;AAEvE,6DAA6D;AAC7D,MAAM,WAAW,YAAY;IAC3B,0DAA0D;IAC1D,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -82,5 +82,14 @@ export interface HostCommandTreesPort {
82
82
  children(canonicalPath: readonly string[]): readonly unknown[];
83
83
  descriptions(root: string): Readonly<Record<string, unknown>> | undefined;
84
84
  }
85
+ export interface HostMentionProvider {
86
+ readonly id: string;
87
+ readonly title: string;
88
+ complete(query: string, signal: AbortSignal): readonly unknown[] | Promise<readonly unknown[]>;
89
+ }
90
+ export interface HostMentionsPort {
91
+ register(provider: HostMentionProvider): HostDisposer;
92
+ complete(query: string, signal: AbortSignal): Promise<readonly unknown[]>;
93
+ }
85
94
  export type HostExtensionsDisposer = HostDisposer;
86
95
  //# sourceMappingURL=extensions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI9C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAA;IAC3E,QAAQ,IAAI,SAAS,eAAe,EAAE,CAAA;IACtC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,YAAY,CAAA;CAC9C;AAID,MAAM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AAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,GAAG,YAAY,CAAA;IACzD,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,OAAO,EAAE,CAAA;IAC9D,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAA;CAC1E;AAID,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC,SAAS,OAAO,EAAE,CAAC,CAAA;CAC/F;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAG,YAAY,CAAA;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,OAAO,EAAE,CAAC,CAAA;CAC1E;AAED,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAA"}
@@ -17,7 +17,7 @@ export type { HostPresentationPort, HostPresentationDisposer, HostQuestionReques
17
17
  export type { HostWorkspacePort, HostWorkspaceDisposer, HostWorkspaceTarget, HostWorkspaceCommandResult, HostWorkspaceCommand, HostCommandShell, } from './workspace.js';
18
18
  export type { HostScenesPort, HostScenesDisposer, HostSceneDescriptor, } from './scenes.js';
19
19
  export type { HostSettingsPort, HostSettingsDisposer, HostSettingsSection, HostSettingsField, HostSettingsFieldKind, HostSettingsFieldOption, HostSettingsGroup, } from './settings.js';
20
- export type { HostStatusPort, HostShortcutsPort, HostRenderersPort, HostThemesPort, HostToastPort, HostCommandTreesPort, HostStatusEntry, HostShortcutKey, HostShortcutOptions, HostShortcutEntry, HostRenderResult, HostEntryRenderer, HostThemeDescriptor, HostThemeRegistration, HostToastDelivery, HostCommandTreeProvider, HostExtensionsDisposer, } from './extensions.js';
20
+ export type { HostStatusPort, HostShortcutsPort, HostRenderersPort, HostThemesPort, HostToastPort, HostCommandTreesPort, HostMentionsPort, HostStatusEntry, HostShortcutKey, HostShortcutOptions, HostShortcutEntry, HostRenderResult, HostEntryRenderer, HostThemeDescriptor, HostThemeRegistration, HostToastDelivery, HostCommandTreeProvider, HostMentionProvider, HostExtensionsDisposer, } from './extensions.js';
21
21
  export type { HostDecisionsPort, HostDecisionsDisposer, } from './decisions.js';
22
22
  export type { HostChannelPort, HostChannelProjectionPort, HostChannelActionsPort, HostChannelStatePort, HostChannelPluginsPort, HostChannelTranscriptPort, HostChannelProjectionSnapshot, HostChannelStateSnapshot, HostChannelRowProjection, HostChannelToolProjection, HostChannelSettingsSectionProjection, HostChannelDisposer, } from './channel.js';
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjF,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,aAAa,CAAA;AACpB,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,eAAe,CAAA;AACtB,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,eAAe,EACf,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,oCAAoC,EACpC,mBAAmB,GACpB,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjF,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,aAAa,CAAA;AACpB,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,eAAe,CAAA;AACtB,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,eAAe,EACf,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,oCAAoC,EACpC,mBAAmB,GACpB,MAAM,cAAc,CAAA"}
@@ -2,7 +2,8 @@
2
2
  * Upstream drivers for the TUI extension seams.
3
3
  *
4
4
  * Each driver is a per-capability adapter over a legacy host-only facade:
5
- * status, shortcuts, renderers, themes, toast, and command trees. All
5
+ * status, shortcuts, renderers, themes, toast, command trees, and mention
6
+ * providers. All
6
7
  * register/subscribe probes use a unique temporary id, verify visibility,
7
8
  * dispose, then prove the same id is again available (no residue). Read-only
8
9
  * drivers only issue host-internal reads.
@@ -15,10 +16,12 @@ export declare function detectRenderersCapability(ctx: unknown): Detection;
15
16
  export declare function detectThemesCapability(ctx: unknown): Detection;
16
17
  export declare function detectToastCapability(ctx: unknown): Detection;
17
18
  export declare function detectCommandTreesCapability(ctx: unknown): Detection;
19
+ export declare function detectMentionsCapability(ctx: unknown): Detection;
18
20
  export declare const statusDriver: UpstreamDriver;
19
21
  export declare const shortcutsDriver: UpstreamDriver;
20
22
  export declare const renderersDriver: UpstreamDriver;
21
23
  export declare const themesDriver: UpstreamDriver;
22
24
  export declare const toastDriver: UpstreamDriver;
23
25
  export declare const commandTreesDriver: UpstreamDriver;
26
+ export declare const mentionsDriver: UpstreamDriver;
24
27
  //# sourceMappingURL=extensions-driver.d.ts.map