@xmoon76/dsh-pi-tui 0.4.9 → 0.5.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.
- package/README.en.md +75 -13
- package/README.md +65 -11
- package/cordis.patch.yml +13 -0
- package/dist/builtins.mjs +11 -15
- package/dist/extension/advanced.d.mts +1 -1
- package/dist/extension/unstable.d.mts +1 -1
- package/dist/extensions-1WYBUQ8I.mjs +18205 -0
- package/dist/extensions-v3Rf-qJA.d.mts +139 -0
- package/dist/extensions.d.mts +2 -137
- package/dist/extensions.mjs +1 -1
- package/dist/index.d.mts +581 -502
- package/dist/index.mjs +74028 -1
- package/dist/{public-types-YbB5Rhku.d.mts → public-types-BEjj7FEb.d.mts} +39 -5
- package/dist/runtime-CcQyhIvI.mjs +6147 -0
- package/dist/{startup-xTIOW90U.mjs → startup-CmTYVTGC.mjs} +28 -14
- package/dist/startup.d.mts +7 -5
- package/dist/startup.mjs +1 -1
- package/dist/terminal-progress-source-BfiTKDT-.mjs +2349 -0
- package/dist/version-a-eF-QER.mjs +80 -0
- package/package.json +141 -116
- package/dist/keybinding-registry-CjbtRmhd.d.mts +0 -1
- package/dist/src-BAwPimrH.mjs +0 -83282
package/README.en.md
CHANGED
|
@@ -19,7 +19,7 @@ Stable releases are recommended for ordinary users. Install DSH first, then add
|
|
|
19
19
|
the TUI to the `pi-tui` profile:
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty
|
|
22
|
+
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@latest
|
|
23
23
|
dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@latest
|
|
24
24
|
dsh --profile pi-tui
|
|
25
25
|
```
|
|
@@ -30,7 +30,7 @@ Preview installation uses the DSH `alpha` channel and the TUI `next` channel.
|
|
|
30
30
|
The DSH native install scripts must be explicitly allowed:
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty
|
|
33
|
+
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@alpha
|
|
34
34
|
dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@next
|
|
35
35
|
dsh --profile pi-tui
|
|
36
36
|
```
|
|
@@ -54,16 +54,22 @@ next compatibility range, and fallback paths.
|
|
|
54
54
|
|
|
55
55
|
| TUI package line | Official DSH tags for the pairing | Notes |
|
|
56
56
|
|---|---|---|
|
|
57
|
-
| `0.
|
|
57
|
+
| `0.5.1` (stable / `@latest`) | `dsh-v0.2.0-rc.2` | Current stable line; both the minimum and the exact validation target are the 0.2.0-rc.2 family |
|
|
58
|
+
| `0.5.0` (stable, previous) | `dsh-v0.1.7-rc.2`, `dsh-v0.2.0-rc.1` | Previous stable; 0.1.7-rc.2 minimum, exact validation target 0.2.0-rc.1 |
|
|
59
|
+
| `0.4.9` (stable, previous) | `dsh-v0.1.7-rc.2` | Previous stable; the compatible TUI for a 0.1.7-rc.2 runtime |
|
|
58
60
|
| `0.4.8` (stable, previous) | `dsh-v0.1.7-rc.1` | Previous stable; the compatible TUI for a 0.1.7-rc.1 runtime |
|
|
59
61
|
| `0.4.6` (stable, previous) | `dsh-v0.1.5-rc.1`, `dsh-v0.1.5-rc.2` | Previous stable; the compatible TUI for a 0.1.5 runtime |
|
|
60
62
|
| `0.4.7-alpha.2` (next, previous) | `dsh-v0.1.6-alpha.2` | Previous next line; the compatible TUI for a 0.1.6-alpha.2 runtime |
|
|
61
63
|
|
|
62
|
-
Do not mix the stable and `@next` prerelease lines.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
Do not mix the stable and `@next` prerelease lines. `0.5.1` lifts the whole DSH
|
|
65
|
+
peer floor to `>=0.2.0-rc.2`: the Question lifecycle
|
|
66
|
+
consumes contracts published only in rc.2 (the `userQuestions.attachWait`/
|
|
67
|
+
`answer` Remotes and the `userQuestions` Session projection), so mixing in the
|
|
68
|
+
rc.1 family would be a false compatibility statement. The previous stable `0.5.0`
|
|
69
|
+
line keeps its `>=0.1.7-rc.2` floor (exact validation target 0.2.0-rc.1);
|
|
70
|
+
older runtimes fail at the normal
|
|
71
|
+
incompatible-runtime boundary, so install the paired TUI line from the table
|
|
72
|
+
above. The startup notice
|
|
67
73
|
is best-effort rather than a Loader startup-order guarantee. See the [full
|
|
68
74
|
historical compatibility matrix](docs/dsh-compatibility.md) for official-tag
|
|
69
75
|
pairings and fallback commands, and see the [latest `next`
|
|
@@ -250,18 +256,50 @@ The editor supports two Shell modes:
|
|
|
250
256
|
! git status
|
|
251
257
|
```
|
|
252
258
|
|
|
253
|
-
Runs
|
|
259
|
+
Runs the command in the Host environment and submits its output into the current Session.
|
|
254
260
|
|
|
255
261
|
```text
|
|
256
262
|
!! git status
|
|
257
263
|
```
|
|
258
264
|
|
|
259
|
-
Runs the command
|
|
265
|
+
Runs the command in the Host environment as well; its output stays out of model context (card display only).
|
|
260
266
|
|
|
261
267
|
`!` / `!!` are editor modes rather than plain text prefixes. The prompt and completion behavior switch together with the active mode.
|
|
262
268
|
|
|
263
269
|
Shell cards show a bounded output preview by default. `Ctrl+O` expands the retained output — except in fullscreen Focus, where Ctrl+O owns the Thought roots and the shell cards keep their folded state.
|
|
264
270
|
|
|
271
|
+
### Git commit attribution (optional)
|
|
272
|
+
|
|
273
|
+
When enabled, dsh-pi-tui instructs the Agent to add the official attribution trailers when it creates Git commits:
|
|
274
|
+
|
|
275
|
+
```text
|
|
276
|
+
Co-Authored-By: @xmoon76/dsh-pi-tui <dsh-pi-tui@xmoon.org>
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
It is **off by default**. Three modes are supported:
|
|
280
|
+
|
|
281
|
+
```text
|
|
282
|
+
off no attribution guidance (default)
|
|
283
|
+
product the official Co-Authored-By trailer
|
|
284
|
+
product-model official trailer + Assisted-By: <provider>/<model>
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
This is **Agent guidance (a prompt policy), not repository-level enforcement**:
|
|
288
|
+
dsh-pi-tui installs no Git hooks, rewrites no `git commit` command, and probes
|
|
289
|
+
no repository. The `provider`/`model` in `product-model` come straight from
|
|
290
|
+
DSH's official model selection (a model switch takes effect on the next
|
|
291
|
+
request).
|
|
292
|
+
|
|
293
|
+
Boundaries:
|
|
294
|
+
|
|
295
|
+
- `!` / `!!` user shell commands and commits from your own terminal are completely untouched;
|
|
296
|
+
- no `prepare-commit-msg` hook is installed and existing hooks are never modified;
|
|
297
|
+
- **not effective under the `minimal` preset**: its persona is a complete system prompt
|
|
298
|
+
(`complete: true`) that replaces every other section — the same existing behavior for the
|
|
299
|
+
other TUI guidance (progress updates, response style, focus);
|
|
300
|
+
- no GitHub credentials or API are required; the Author/Committer identity is never modified;
|
|
301
|
+
- a model may in theory ignore or mis-transcribe the instruction — this is the accepted tradeoff: low-intrusion guidance instead of a full Git lifecycle subsystem.
|
|
302
|
+
|
|
265
303
|
### File references and images
|
|
266
304
|
|
|
267
305
|
Typing `@` opens workspace file search and completion:
|
|
@@ -302,6 +340,29 @@ The `Icon style` option in `/settings` switches the TUI's structural icons:
|
|
|
302
340
|
symbols), or `Minimal` (decorative icons hidden; only status/interaction
|
|
303
341
|
markers remain). Switching applies immediately and persists.
|
|
304
342
|
|
|
343
|
+
The `Terminal progress` row in `/settings` selects the native terminal status
|
|
344
|
+
reporting in four modes: `9;4+7501` (default — both the OSC 9;4 progress bar and
|
|
345
|
+
the OSC 7501 semantic state), `9;4` (progress-bar compatibility only), `7501`
|
|
346
|
+
(semantic state only: working, waiting for approval/answer, done, error) and
|
|
347
|
+
`Off` (clear and stop reporting). Switching applies immediately; done and error
|
|
348
|
+
are reported only once a real run's last turn result is proven, while a
|
|
349
|
+
cancelled or interrupted run returns to idle. A persisted `On` reads as the
|
|
350
|
+
dual-protocol default.
|
|
351
|
+
|
|
352
|
+
Terminal compatibility: a terminal that does not know OSC 7501 simply ignores
|
|
353
|
+
it — Ghostty's GUI currently shows the OSC 9;4 progress bar and not the 7501
|
|
354
|
+
semantic state, which is expected and not a reporting failure. Inside tmux and
|
|
355
|
+
other terminal multiplexers an unknown OSC may not be forwarded to the outer
|
|
356
|
+
terminal (this feature deliberately implements no tmux DCS passthrough and does
|
|
357
|
+
not change multiplexer settings); use an outer terminal that supports it when
|
|
358
|
+
the state must survive a multiplexer. The OSC 7501 semantic state describes the
|
|
359
|
+
current Main Agent only.
|
|
360
|
+
|
|
361
|
+
This project's own Remote composition (experimental, our Host) reports the same
|
|
362
|
+
state: the Host side is served by this extension's private Host status stream and
|
|
363
|
+
shares ONE interval classifier with Direct. **A third-party DSH Host without this
|
|
364
|
+
extension's Host plugin is not supported** (it has no equivalent event source).
|
|
365
|
+
|
|
305
366
|
Slash Commands registered by other plugins through `ctx.commands` are discovered automatically.
|
|
306
367
|
|
|
307
368
|
### Footer customization
|
|
@@ -349,7 +410,7 @@ For the full `/footer` workflow, Custom Text / Command items, YAML reference, se
|
|
|
349
410
|
| `Tab` | Autocomplete slash commands and file paths |
|
|
350
411
|
| `@` | File completion |
|
|
351
412
|
| `!` | Enter Shell mode |
|
|
352
|
-
| `!!` | Enter
|
|
413
|
+
| `!!` | Enter Session-excluded Shell mode |
|
|
353
414
|
|
|
354
415
|
Use `/help` inside the TUI for the current command and keybinding list. The table above shows the defaults; after customization, `/help` and `/keybindings` show the effective keys.
|
|
355
416
|
|
|
@@ -595,8 +656,9 @@ This section contains DSH compatibility and CI validation details only; ordinary
|
|
|
595
656
|
### npm mode (current `next`)
|
|
596
657
|
|
|
597
658
|
The current compatibility-train line is npm mode: it targets the published
|
|
598
|
-
`dsh-v0.
|
|
599
|
-
resolved by its lockfile
|
|
659
|
+
`dsh-v0.2.0-rc.2` family declared by this checkout's `package.json` and
|
|
660
|
+
resolved by its lockfile (the runtime peer floor is also `>=0.2.0-rc.2`). The
|
|
661
|
+
isolated npm driver installs that exact
|
|
600
662
|
family from the public registry and exercises the TUI build/test/package path:
|
|
601
663
|
|
|
602
664
|
```sh
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
稳定版是普通用户的推荐渠道。请先安装 DSH,再将 TUI 添加到 `pi-tui` profile:
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty
|
|
21
|
+
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@latest
|
|
22
22
|
dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@latest
|
|
23
23
|
dsh --profile pi-tui
|
|
24
24
|
```
|
|
@@ -29,7 +29,7 @@ dsh --profile pi-tui
|
|
|
29
29
|
时需要显式允许其原生安装脚本:
|
|
30
30
|
|
|
31
31
|
```sh
|
|
32
|
-
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty
|
|
32
|
+
npm install -g --allow-scripts=@deepseek-ai/dsh-subprocess-local,koffi,node-pty @deepseek-ai/dsh@alpha
|
|
33
33
|
dsh plugin --profile pi-tui -- add @xmoon76/dsh-pi-tui@next
|
|
34
34
|
dsh --profile pi-tui
|
|
35
35
|
```
|
|
@@ -52,14 +52,19 @@ pnpm compat:dsh:npm
|
|
|
52
52
|
|
|
53
53
|
| TUI 包版本 | 对应的官方 DSH tags | 说明 |
|
|
54
54
|
|---|---|---|
|
|
55
|
-
| `0.
|
|
55
|
+
| `0.5.1`(stable / `@latest`) | `dsh-v0.2.0-rc.2` | 当前稳定版;最低与精确验证目标均为 0.2.0-rc.2 family |
|
|
56
|
+
| `0.5.0`(stable,历史) | `dsh-v0.1.7-rc.2`、`dsh-v0.2.0-rc.1` | 上一稳定版;最低 0.1.7-rc.2,精确验证目标 0.2.0-rc.1 |
|
|
57
|
+
| `0.4.9`(stable,历史) | `dsh-v0.1.7-rc.2` | 上一稳定版;0.1.7-rc.2 runtime 的兼容 TUI |
|
|
56
58
|
| `0.4.8`(stable,历史) | `dsh-v0.1.7-rc.1` | 上一稳定版;0.1.7-rc.1 runtime 的兼容 TUI |
|
|
57
59
|
| `0.4.6`(stable,历史) | `dsh-v0.1.5-rc.1`、`dsh-v0.1.5-rc.2` | 上一稳定版;0.1.5 runtime 的兼容 TUI |
|
|
58
60
|
| `0.4.7-alpha.2`(next,历史) | `dsh-v0.1.6-alpha.2` | 上一条 next 线;0.1.6-alpha.2 runtime 的兼容 TUI |
|
|
59
61
|
|
|
60
|
-
不要把稳定线与 `@next` 预发布线混装。`0.
|
|
61
|
-
`>=0.
|
|
62
|
-
|
|
62
|
+
不要把稳定线与 `@next` 预发布线混装。`0.5.1` 把整个 DSH peer
|
|
63
|
+
floor 提升到 `>=0.2.0-rc.2`:Question 生命周期消费 rc.2 才发布的公开契约
|
|
64
|
+
(`userQuestions.attachWait`/`answer` Remote 与 `userQuestions` Session
|
|
65
|
+
projection),rc.1 family 不提供这些契约,混装属于虚假的兼容声明。上一稳定版
|
|
66
|
+
`0.5.0` 保持 `>=0.1.7-rc.2` floor 不变(精确验证目标 0.2.0-rc.1);旧
|
|
67
|
+
runtime 会在正常的不兼容边界以非零状态失败,
|
|
63
68
|
请按上表安装配对的 TUI 线。完整的历史兼容矩阵和 fallback 命令见
|
|
64
69
|
[兼容性文档](docs/dsh-compatibility.md);要查看 `@next` 的最新集成状态,请看
|
|
65
70
|
[next 分支 README](https://github.com/XMoon/dsh-pi-tui/blob/next/README.md)。
|
|
@@ -216,18 +221,49 @@ Footer `↓` 打开的 Quick Tasks 是轻量浏览视图,只提供方向键导
|
|
|
216
221
|
! git status
|
|
217
222
|
```
|
|
218
223
|
|
|
219
|
-
|
|
224
|
+
在宿主(Host)环境执行命令,并把输出提交到当前 Session。
|
|
220
225
|
|
|
221
226
|
```text
|
|
222
227
|
!! git status
|
|
223
228
|
```
|
|
224
229
|
|
|
225
|
-
|
|
230
|
+
同样在宿主环境执行,但输出不进入模型上下文(仅卡片展示)。
|
|
226
231
|
|
|
227
232
|
`!` / `!!` 是独立的编辑器模式,而不是普通文本前缀。进入 Shell 模式后 Prompt 和补全行为会同步切换。
|
|
228
233
|
|
|
229
234
|
Shell 卡片默认只显示有限的输出预览,`Ctrl+O` 可以展开完整保留内容——全屏 Focus 除外:那里 `Ctrl+O` 负责 Thought root 的整体开关,Shell 卡片保持折叠。
|
|
230
235
|
|
|
236
|
+
### Git 提交署名(可选)
|
|
237
|
+
|
|
238
|
+
开启后,dsh-pi-tui 会指示 Agent 在创建 Git 提交时加上官方项目署名:
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
Co-Authored-By: @xmoon76/dsh-pi-tui <dsh-pi-tui@xmoon.org>
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
默认 **关闭**。支持三种模式:
|
|
245
|
+
|
|
246
|
+
```text
|
|
247
|
+
off 不添加署名指引(默认)
|
|
248
|
+
product 官方 Co-Authored-By 署名
|
|
249
|
+
product-model 官方署名 + Assisted-By: <provider>/<model>
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
这是 **Agent 指引(prompt policy),不是仓库级强制**:dsh-pi-tui 不会安装 Git
|
|
253
|
+
钩子、不改写任何 `git commit` 命令、也不探测仓库。`product-model` 的
|
|
254
|
+
`provider`/`model` 由 DSH 官方模型选择直接注入(切换模型后下一次请求生效)。
|
|
255
|
+
|
|
256
|
+
边界说明:
|
|
257
|
+
|
|
258
|
+
- `!` / `!!` 用户 Shell 和你自己终端里的手动提交完全不受影响;
|
|
259
|
+
- 不安装任何 `prepare-commit-msg` 钩子,不修改已有钩子;
|
|
260
|
+
- **使用 `minimal` preset 时不生效**:该 preset 的 persona 是完整 system prompt
|
|
261
|
+
(`complete: true`),会替换掉其它全部 section;既有的 TUI 指引(Progress updates、
|
|
262
|
+
Response style、Focus)在该 preset 下同样是这种既有行为;
|
|
263
|
+
- 不需要 GitHub 凭证/API;不修改 Author/Committer 身份;
|
|
264
|
+
- 模型理论上可能忽略或写错指引——这是有意的取舍:用低侵入的指引替代一整套
|
|
265
|
+
Git 生命周期子系统。
|
|
266
|
+
|
|
231
267
|
### 文件引用与图片
|
|
232
268
|
|
|
233
269
|
输入 `@` 可以搜索和补全工作区文件:
|
|
@@ -267,6 +303,23 @@ TUI 使用 DSH 提供的模型和设置服务。
|
|
|
267
303
|
彩色)、`Symbols`(紧凑的单格终端符号)、`Minimal`(隐藏装饰性图标,只
|
|
268
304
|
保留状态/交互标记);切换立即生效并持久化。
|
|
269
305
|
|
|
306
|
+
`/settings` 中的 `Terminal progress` 控制原生终端状态上报,共四档:
|
|
307
|
+
`9;4+7501`(默认,同时上报 OSC 9;4 进度条与 OSC 7501 语义状态)、
|
|
308
|
+
`9;4`(只保留进度条兼容协议)、`7501`(只上报语义状态:运行中 / 等待审批 /
|
|
309
|
+
等待回答 / 完成 / 出错)、`Off`(清除并停止上报)。切换立即生效;完成与出错
|
|
310
|
+
只在一次真实运行的最后一个 turn 结果被证实后上报,中断或取消会回到空闲。
|
|
311
|
+
旧的 `On` 配置读作默认双协议。
|
|
312
|
+
|
|
313
|
+
终端兼容性说明:不认识 OSC 7501 的终端会直接忽略它——目前 Ghostty 的 GUI
|
|
314
|
+
只显示 OSC 9;4 进度条、不显示 7501 语义状态,这是预期行为,不代表上报失败。
|
|
315
|
+
在 tmux 等终端复用器里,未知 OSC 可能不会被转发到外层终端(本功能有意不实现
|
|
316
|
+
tmux 的 DCS passthrough,也不修改复用器设置);需要跨复用器保留状态时请直接
|
|
317
|
+
使用支持它的外层终端。此外,OSC 7501 的语义状态只作用于当前 Main Agent。
|
|
318
|
+
|
|
319
|
+
本项目的 Remote(实验性、自有 Host 组合)同样上报这套状态:Host 侧由本扩展自带的
|
|
320
|
+
私有状态流提供,并与 Direct 共用同一份区间判定。**未安装本项目 Host 扩展的第三方
|
|
321
|
+
DSH Host 不支持**这套上报(它没有对应的事件源)。
|
|
322
|
+
|
|
270
323
|
其他插件注册到 `ctx.commands` 的 Slash Command 也会被自动发现。
|
|
271
324
|
|
|
272
325
|
### Footer 自定义
|
|
@@ -313,8 +366,8 @@ TUI 使用 DSH 提供的模型和设置服务。
|
|
|
313
366
|
| `Ctrl+V` | 粘贴图片 |
|
|
314
367
|
| `Tab` | 补全斜杠命令与文件路径 |
|
|
315
368
|
| `@` | 文件补全 |
|
|
316
|
-
| `!` | 进入 Shell
|
|
317
|
-
| `!!` | 进入
|
|
369
|
+
| `!` | 进入 Shell 模式(结果进 Session) |
|
|
370
|
+
| `!!` | 进入 Session 排除的 Shell 模式 |
|
|
318
371
|
|
|
319
372
|
完整按键和命令以 TUI 中的 `/help` 为准。表中的快捷键是默认值;用户自定义后,以 `/help` 和 `/keybindings` 显示的生效键位为准。
|
|
320
373
|
|
|
@@ -549,7 +602,8 @@ dsh --profile pi-tui-dev
|
|
|
549
602
|
### npm 模式(当前 `next`)
|
|
550
603
|
|
|
551
604
|
当前兼容列车线是 npm 模式:以本 checkout 的 `package.json` 声明、
|
|
552
|
-
lockfile 解析的已发布 `dsh-v0.
|
|
605
|
+
lockfile 解析的已发布 `dsh-v0.2.0-rc.2` family 为精确验证目标(运行时
|
|
606
|
+
peer floor 同为 `>=0.2.0-rc.2`)。隔离的 npm
|
|
553
607
|
驱动从公共 registry 安装该精确 family,并跑完整 build/test/package 路径:
|
|
554
608
|
|
|
555
609
|
```sh
|
package/cordis.patch.yml
CHANGED
|
@@ -64,6 +64,19 @@
|
|
|
64
64
|
- id: workspace
|
|
65
65
|
name: '@deepseek-ai/dsh-workspace'
|
|
66
66
|
|
|
67
|
+
# The OFFICIAL Host `@`-file reference authority (M3-3A): this row is
|
|
68
|
+
# the same one the official web bundle mounts. It provides
|
|
69
|
+
# `ctx.fileReferences` (the discovery service the Session Controller's
|
|
70
|
+
# `fileReferences/list` Remote already forwards to) AND installs the
|
|
71
|
+
# official per-agent `context:file-reference` system prompt — the model
|
|
72
|
+
# guidance that relative `@` paths resolve from the workspace root.
|
|
73
|
+
# Mounting it aligns the TUI's `@`-mention semantics with the official
|
|
74
|
+
# client contract: the selected mention text goes to the prompt
|
|
75
|
+
# LITERALLY (`@src/foo.ts`), and the Host/model resolves it; the TUI's
|
|
76
|
+
# historical send-time absolute-path rewrite is retired with it.
|
|
77
|
+
- id: file-reference-local
|
|
78
|
+
name: '@deepseek-ai/dsh-file-reference-local'
|
|
79
|
+
|
|
67
80
|
# The authorization seam (`ctx.authorization`): plugin-owned credential-
|
|
68
81
|
# obtaining flows, one attempt per key, transport-neutral notices and
|
|
69
82
|
# prompts. The dsh host does NOT mount it anywhere (the base layer ships
|
package/dist/builtins.mjs
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as TUI_STARTUP_SERVICE } from "./startup-
|
|
3
|
-
import {
|
|
4
|
-
import { join } from "node:path";
|
|
1
|
+
import { a as PI_TUI_EXTENSIONS_SERVICE, gt as __exportAll } from "./extensions-1WYBUQ8I.mjs";
|
|
2
|
+
import { n as TUI_STARTUP_SERVICE } from "./startup-CmTYVTGC.mjs";
|
|
3
|
+
import { n as dshVersion, t as bundleVersion } from "./version-a-eF-QER.mjs";
|
|
5
4
|
//#region src/builtins.ts
|
|
5
|
+
var builtins_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
apply: () => apply,
|
|
7
|
+
inject: () => inject,
|
|
8
|
+
name: () => name
|
|
9
|
+
});
|
|
6
10
|
/** Stable Cordis plugin name for the builtins row. */
|
|
7
11
|
const name = "pi-tui-builtins";
|
|
8
12
|
/** The builtins mount only when the TUI startup flags were parsed. */
|
|
9
13
|
const inject = [TUI_STARTUP_SERVICE, PI_TUI_EXTENSIONS_SERVICE];
|
|
10
|
-
/** The `@xmoon76/dsh-pi-tui` package version (dist/extensions.mjs → ../package.json). */
|
|
11
|
-
function packageVersion() {
|
|
12
|
-
try {
|
|
13
|
-
return JSON.parse(readFileSync(join(import.meta.dirname, "..", "package.json"), "utf8")).version ?? "0.0.0";
|
|
14
|
-
} catch {
|
|
15
|
-
return "0.0.0";
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
14
|
/**
|
|
19
15
|
* Register the first-party chrome contributions. The turn/step footer
|
|
20
16
|
* segment subscribes to the surface state and re-bakes via handle.replace
|
|
@@ -33,7 +29,7 @@ function apply(ctx) {
|
|
|
33
29
|
order: 1e3,
|
|
34
30
|
description: "The dsh and bundle versions (first-party builtin)."
|
|
35
31
|
}, {
|
|
36
|
-
text: installedDsh === void 0 ? `tui-v${
|
|
32
|
+
text: installedDsh === void 0 ? `tui-v${bundleVersion()}` : `dsh-${installedDsh} · tui-v${bundleVersion()}`,
|
|
37
33
|
tone: "info"
|
|
38
34
|
});
|
|
39
35
|
const todoDock = service.register("input.dock.item", {
|
|
@@ -42,7 +38,7 @@ function apply(ctx) {
|
|
|
42
38
|
description: "The todo summary line (first-party builtin)."
|
|
43
39
|
}, { label: [] });
|
|
44
40
|
const renderTodoDock = (state) => {
|
|
45
|
-
const summary = state.activity.todoSummary;
|
|
41
|
+
const summary = state.session.displaySubject === void 0 ? state.activity.todoSummary : state.session.displaySubject.todoSummary;
|
|
46
42
|
if (summary === void 0 || summary === "") {
|
|
47
43
|
todoDock.replace({ label: [] });
|
|
48
44
|
return;
|
|
@@ -61,4 +57,4 @@ function apply(ctx) {
|
|
|
61
57
|
});
|
|
62
58
|
}
|
|
63
59
|
//#endregion
|
|
64
|
-
export { apply, inject, name };
|
|
60
|
+
export { apply, inject, name, builtins_exports as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as PiTuiApiInfo, E as NormalizedKey, _ as ExtensionTier, h as EditorSnapshot, ot as TuiOverlayOptions, v as ExtensionView } from "../public-types-
|
|
1
|
+
import { D as PiTuiApiInfo, E as NormalizedKey, _ as ExtensionTier, h as EditorSnapshot, ot as TuiOverlayOptions, v as ExtensionView } from "../public-types-BEjj7FEb.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/extension/advanced-types.d.ts
|
|
4
4
|
/** API level of the advanced tier. Bumped only on advanced breaking changes. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as PiTuiApiInfo, _ as ExtensionTier, ot as TuiOverlayOptions } from "../public-types-
|
|
1
|
+
import { D as PiTuiApiInfo, _ as ExtensionTier, ot as TuiOverlayOptions } from "../public-types-BEjj7FEb.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/extension/unstable-types.d.ts
|
|
4
4
|
/** API level of the unstable tier. Bumped only on unstable breaking changes. */
|