dsh-bash-terminal-ts 0.9.0 → 0.9.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.
- package/CHANGELOG.md +205 -201
- package/CHANGELOG.pt.md +151 -0
- package/README.de.md +206 -206
- package/README.en.md +212 -212
- package/README.es.md +206 -206
- package/README.fr.md +206 -206
- package/README.it.md +206 -206
- package/README.md +423 -423
- package/README.pt.md +212 -0
- package/README.ru.md +206 -206
- package/agent-presets/README.md +171 -171
- package/agent-presets/install-presets.mjs +180 -180
- package/agent-presets/standard-win/agent.cordis.yml +271 -271
- package/agent-presets/standard-win/preset.yml +2 -2
- package/agent-presets/standard-win-gitbash/agent.cordis.yml +271 -271
- package/agent-presets/standard-win-gitbash/preset.yml +2 -2
- package/agent-presets/standard-win-msys2/agent.cordis.yml +272 -272
- package/agent-presets/standard-win-msys2/preset.yml +2 -2
- package/agent-presets/standard-win-niu/agent.cordis.yml +270 -270
- package/agent-presets/standard-win-niu/preset.yml +2 -2
- package/agent-presets/standard-win-payload/agent.cordis.yml +271 -271
- package/agent-presets/standard-win-payload/preset.yml +2 -2
- package/agent-presets/standard-win-wsl2/agent.cordis.yml +271 -271
- package/agent-presets/standard-win-wsl2/preset.yml +2 -2
- package/cordis.patch.yml +72 -84
- package/dist/client.core.js +54 -16
- package/dist/client.js +54 -16
- package/docs/niu-backend.md +197 -197
- package/dsh.plugin.json +23 -22
- package/lib/client.js +54 -16
- package/lib/dsh-types.d.ts +0 -2
- package/lib/index.d.ts +2 -23
- package/lib/index.js +4 -34
- package/lib/locales.js +49 -11
- package/lib/payload.d.ts +72 -72
- package/lib/payload.js +279 -279
- package/lib/shell-id.d.ts +2 -2
- package/lib/shells.d.ts +2 -11
- package/lib/shells.js +4 -14
- package/lib/terminal.js +0 -1
- package/lib/webterminals/catalog.d.ts +0 -2
- package/lib/webterminals/catalog.js +0 -1
- package/lib/webterminals/mount.d.ts +0 -5
- package/lib/webterminals/mount.js +0 -4
- package/locale/de.json +5 -5
- package/locale/en.json +5 -5
- package/locale/es.json +5 -5
- package/locale/fr.json +5 -5
- package/locale/it.json +5 -5
- package/locale/ja.json +5 -5
- package/locale/ko.json +5 -5
- package/locale/pt.json +6 -0
- package/locale/ru.json +5 -5
- package/locale/zh.json +5 -5
- package/package.json +3 -5
- package/scripts/check-artifacts.mjs +96 -96
- package/scripts/link-shells.mjs +0 -21
- package/src/client.tsx +685 -685
- package/src/dsh-types.ts +330 -332
- package/src/index.ts +1267 -1316
- package/src/locales.ts +499 -461
- package/src/shell-id.ts +11 -11
- package/src/shells.ts +263 -279
- package/src/terminal.ts +615 -616
- package/src/webterminals/catalog.ts +0 -3
- package/src/webterminals/host.ts +361 -361
- package/src/webterminals/mount.ts +228 -237
- package/scripts/payload-alias.mjs +0 -97
- package/scripts/provision-payload.mjs +0 -233
- package/src/payload.ts +0 -322
package/CHANGELOG.md
CHANGED
|
@@ -1,201 +1,205 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 0.9.
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
## 0.8.
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- **
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- **MSYS2
|
|
86
|
-
- **MSYS2
|
|
87
|
-
-
|
|
88
|
-
- **
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
## 0.3.
|
|
119
|
-
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
## 0.3.
|
|
123
|
-
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
## 0.3.
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
## 0.3.
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
## 0.3.
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
## 0.3.
|
|
144
|
-
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
## 0.3.
|
|
148
|
-
|
|
149
|
-
- `terminal`
|
|
150
|
-
|
|
151
|
-
## 0.3.
|
|
152
|
-
|
|
153
|
-
- `terminal` tool:
|
|
154
|
-
|
|
155
|
-
## 0.3.
|
|
156
|
-
|
|
157
|
-
- `terminal` tool:
|
|
158
|
-
|
|
159
|
-
## 0.3.
|
|
160
|
-
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
## 0.
|
|
175
|
-
|
|
176
|
-
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
## 0.2.
|
|
185
|
-
|
|
186
|
-
- **Official
|
|
187
|
-
|
|
188
|
-
## 0.2.
|
|
189
|
-
|
|
190
|
-
- **
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.9.1 (2026-11-19)
|
|
4
|
+
|
|
5
|
+
- i18n: add Portuguese (pt-BR) locale — runtime dictionary, package metadata and README/CHANGELOG mirrors.
|
|
6
|
+
|
|
7
|
+
## 0.9.0 (2026-11-16)
|
|
8
|
+
|
|
9
|
+
- **新增第六后端 `niu`(Niubash)**:[unixwin/niubash](https://github.com/unixwin/niubash)(Rust 原生 bash 5.3 语义,无 MSYS/Cygwin 模拟层,`niu.exe` ≈16MB 零 DLL)。与 `payload` 同构的一等后端:`ShellId`/`SHELLS`/`SHELL_PRIORITY`(niu 在 payload 之前,payload 仍末位兜底)、`candidateNiuPaths()`(LOCALAPPDATA\Programs\Niubash → WinGet Links → ProgramFiles → PATH)、`buildArgv` 模型侧 `niu -lc <cmd>`、`terminalArgv`/`uiArgv` 交互侧 `niu -i`(读 `~/.niubashrc`)、`shellNiu` 开关(默认 true,检测到即可用)+ `niuPath` 覆写配置、`SWITCH_FIELD`/`mount.ts`/op 路由/默认终端下拉/9 语词表(`shell.niu` 按专有名词规则不译)。官方右栏菜单候选表末位追加 `niu.exe`(文件名唯一,不抢 WSL 转发器的 `bash` 键;`winuxcmd\bin\bash.exe` 是 niu 硬链接,**绝不入表**)。
|
|
10
|
+
- **probe() 路径映射修正**:niu 原会落入 wsl 兜底分支读错路径槽(测试先红后修的实证)。`check-artifacts.mjs` 死键白名单与 `test/client.ts` hostShells 漂移闸同步补 niu。
|
|
11
|
+
- **`ShellId` 单一真源修复(0.9.0 阻断级)**:`src/dsh-types.ts` 与 `src/shell-id.ts` 曾各持一份联合类型,前者漏了 `niu`,而 `index.ts` 恰好从前者 import——`Record<ShellId, string>` 只在 `shell-id.ts` 的宽联合下检查,于是 `SHELL_DESCRIPTIONS` 缺 `niu` 键这件事**编译期不报错**,运行期把 `undefined` 拼进模型提示词(表现为「is niu; commands run there. Each call…」双空格空洞)。修复:`dsh-types.ts` 改为 `export type { ShellId } from "./shell-id.js"`,并补 `niu` 的专属 lead 句;`test/unit.ts` 的键集断言由手写五元组改为**从运行时 `SHELLS` 派生**,同类漂移今后必然先红。
|
|
12
|
+
- **沙箱问题(findings F2)**:Git Bash/MSYS2 因 MSYS 运行时无法被 DSH ACL 受限令牌包裹(CreateFileMapping error 5);niu 为原生二进制,本机 confined 对照冒烟通过(niu exit 0)。系统级结论待农场格复核后回写。
|
|
13
|
+
- **验证**:npm run build / npm test / npm run lint 全绿;niu 1.5.0(rubash 29bbf52481c3 / winuxcmd 1.2.1)真机冒烟 `-lc`/`-c`/`-i` PTY 三形态全过。
|
|
14
|
+
- **顺带修 main 的红灯**:合入 `origin/main` 后 `test/terminal.ts` 的 ANSI 剥离正则触发 `no-control-regex`(main 自 `8e2f773` 起 lint 本就失败),改为 `String.fromCharCode(27)` 拼 RegExp,语义不变。
|
|
15
|
+
|
|
16
|
+
## Unreleased (feat/niu-shell-backend)
|
|
17
|
+
|
|
18
|
+
## 0.8.3 (2026-10-24)
|
|
19
|
+
|
|
20
|
+
- **宿主枚举补 0.2.1-rc.3(17→18 档,engines/全部 peers/dsh.plugin.json/README×7 同串)**:rc.3 契约面零断裂(闸门/settings/vendor/缝/会话 V4 零 diff,仅新增三域 More 菜单行槽),本插件不在其影响面;semver 双向门控命中 rc.3、拒绝未测未来版。**另修正双清单漂移**:`dsh.plugin.json` 版本号自 0.8.2 发布时漏同步(本应随发版同号),现统一为 0.8.3。
|
|
21
|
+
- **预设组去官方工具干扰(同日,分发前裁定;后经用户修订)**:五份模板的宿主官方 `tool-bash` 行**无条件 `disabled: true`**(同名 `bash` 正是本组预设对冲的带内干扰源)。**修订裁定**:`standard-win` 的官方 `tool-pwsh` **恢复挂载**(`disabled: !!js process.platform !== 'win32'`)——win 默认体验就该带沙箱化 PowerShell 面,主入口仍是 `shell` 工具;bash 族四份维持双禁(那里 shell 已接 bash 后端)。persona 的 Shell tool routing 行按两套策略分别措辞(standard-win:pwsh 保留+bash 刻意不挂;bash 族:唯一入口+找不到官方工具是有意为之),模板内注释同步说明策略差异。验证:js-yaml 解析五文件断言全过——过程中踩实 js-yaml v4 两个坑:`new Schema({include:[CORE_SCHEMA实例]})` 会静默丢隐式类型解析把 `true` 解成字符串,正解是实例方法 `yaml.CORE_SCHEMA.extend({explicit:[...]})`;v3 的 `DEFAULT_SAFE_SCHEMA` 在 v4 里是 undefined。
|
|
22
|
+
- **载荷升格独立模块 + 校验形态根因修复**(同日):桌面插件管理器对 profile 直接依赖的「校验」实为 package.json 的 `engines.dsh`/peers 兼容性判定(rc.2 格源码实锤),非 `dsh.plugin.json` 有无——载荷包无声明故必然红。新独立仓 `posix-runtime-payload`(工作区根)的 pack.mjs 给 0.1.2 包树补齐:与本品同串的 `engines.dsh` 17 档 + 无 entry 的 `dsh.plugin.json`(身份声明不注册任何东西);同时修掉独立仓首版 trust 文件写成 `digests` 而闸门只读 `files` 的字段契约 bug(digest-mismatch 实踩)。格内验证:0.1.2 装 rc.2 格 → boot 零报错、`verifyPayloadRoot ok:true source:trust`、bash-terminal config 端点正常、smoke 绿。`optionalDependencies` 改钉 0.1.2(发布落库中);桌面端旧 tgz 路径已被 0.1.2 内容原位覆盖,卡片待用户在管理器里重试/重启应用后转绿。
|
|
23
|
+
- **0.2.1-rc.2 农场格实证(同日补)**:host-farm 新增 0.2.1-rc.2 格(端口 3092,hosts.mjs 保留集增补,rc.1 格暂不收)。踩坑:`farm add` 后依赖行写入但 `dsh.profile.bundles` 未登记(装而不亮),手工 push 后生效;node-pty 被 IGNORED_BUILDS 拦,按 rc.1 配方落 profile `pnpm-workspace.yaml` 的 `allowBuilds` 后重装绿。实证结果:无头目录断言 5 行全对(payload engaged=true,WSL 在场仅 advisory 不否决);真宿主菜单探针六项全对(bash-terminal.exe/git-bash.exe/msys-bash.exe 在列且 WSL bash 保留,`!!js` 单引号配方在 rc.2 同样成立);插件 config 端点回新 schema(shells 含 payload,seam 在位);smoke 绿。**仍未验证**:无 Git Bash 裸机上载荷顶替末位兑底的实机形态。
|
|
24
|
+
|
|
25
|
+
- **钉版 POSIX 运行时载荷(opt-in,默认关)**(新 `src/payload.ts` + `scripts/provision-payload.mjs`):命名政策——我们自己的制品不带 bash/gitbash/msys token(裸名 `bash` 在 Windows 是 WSL 转发器的地盘,dsh-ops 又占着 `@dsh-ops/bash-*`/msys 命名系),载荷包定名 `@drscrewdriver/posix-runtime-win32-x64`,内部是原样 Git-for-Windows 运行时树。吸收 dsh-ops「只跑固定摘要的随包 MSYS」的语义——载荷的 `bin/bash.exe` + `usr/bin/msys-2.0.dll` SHA-256 必须命中内置台账或 operator 信任文件(`payload.trust.json`),否则 fail-closed 绝不裸跑、绝不静默换执行器;哈希按 (size, mtime) 缓存;store 目录 `payloads\posix-<ver>`。载荷**不随包、不下载、不取用任何第三方载荷包**:provision 脚本反解包本地 PortableGit SFX 自管上游运行时(含 `--pack` 自出包树与 `--emit-ledger` 台账片段)。优先级:**已装 WSL 发行版时载荷不启用**(WSL bash 更好用),系统 Git Bash 永远优先;载荷仅在都缺时顶替 gitbash 槽位。配置键 `enablePosixPayload` / `payloadPosixPath`(重启生效)。实测修复:wsl.exe 输出为 UTF-16LE,utf8 直解会把空发行版列表误判成有发行版(按 NUL 形状选解码器)。
|
|
26
|
+
- **载荷升为一等后端(同日补线)**:`payload` 成为第五个 ShellId——目录行(label "POSIX payload"、路径/徒章/可开关,`shellPayload` 默认关,opt-in 两次)、底部终端 uiArgv `-i`、模型 `shell` 工具 `bash -lc` 专属描述与 `payload-unconfined` 执法面、`terminal` 交互会话、op 路由开关写回(SWITCH_FIELD→shellPayload)、默认终端下拉、9 语词表(`shell.payload` 按专有名词规则不译;新状态 `dock.state.wsl-preferred`)。**不再偷偷顶替 gitbash 槽位**:`resolveAllPaths` 里 payload 只填自己的槽,「Git Bash」行永远只报机器真有的 shell;WSL 发行版否决时目录行显示「已检测到 WSL 发行版(优先用 WSL bash)」而非「未探测到」。农场格无头目录断言 5 行全对 + 冒烟绿;`@drscrewdriver/posix-runtime-win32-x64@0.1.0` 已落库。**官方右栏菜单接线**:新增第三候选 `bash-terminal.exe`(`!!js` 从 LOCALAPPDATA 拼路径指向稳定 junction;名字不含裸 `bash`,不抢 WSL 转发器的 `bash` 键),硬链接+junction 由 provision/link-shells 在摘要校验通过后自动建在用户目录(无需提权);真宿主 0.2.1-rc.1 探针实测菜单六项全对(bash-terminal.exe 在列且 WSL bash 保留)。同日修正:底部选择器弹层看不到载荷行——因 WSL 硬否决把行打成 unavailable;既然载荷已是一等后端且官方菜单 WSL/载荷并列,把「WSL 更好用」降为建议日志不屏蔽行(硬门只剩摘要闸),格内断言 payload 行 available=true/activated=true 后进弹层。踩坑:`!!js` 标量用 YAML 双引号会让 `\\` 经 YAML+JS 两层剥斜把路径跘坏,必须 YAML 单引号包 JS 双引号串(`_probe_host_shells.mjs` 实测回验)。
|
|
27
|
+
- **旧名处置**:首发曾用 `@drscrewdriver/bash-payload-win32-x64@0.1.0`(已落库),改名后已 `npm deprecate` 指向新名;因 token 安全策略(403)无法 CLI 整包 unpublish,需在 npm 网页端手动下架。
|
|
28
|
+
- **预设分发面用法与配套推荐**(同日):`install-presets.mjs --help` 扩成完整走查(五模板语义对照表、占位符整行删除语义、装机面/源码仓两种调用路径、安装后三层对齐步骤含 payload 双层 opt-in、备份安全语义);安装完成提示按选择模板条件化(选中 payload 模板加两步开关提醒;未传 --set 加中立安装提醒)。`agent-presets/README.md` 中英双语同步:新增「配套推荐 dsh-preset-doctor」节(跨版本失效自动修/行级开关/代际显示,一句话分工:本包把终端语义写进预设,预设医生让预设在各代宿主下持续可挂载可治理)。实测 help/收尾输出正确,脚本 lint 干净。
|
|
29
|
+
- **bash 族预设错误处理加固**(同日):分层定为 1 pwsh + 4 bash 族——`standard-win`(pwsh)保持六条陷阱清单,gitbash/msys2/wsl2/payload 四份各补专属错误段:共同「Bash failure discipline」(末位退出码才是判决/`&&` 链失败即停/`2>&1` 合流/引号展开/空结果≠不存在);MSYS 系三份加「路径静默改写 + MSYS_NO_PATHCONV + CRLF/GBK 坑」;msys2 另加双运行时(/usr/bin 是 msys Build 不产原生 exe,需 /mingw64);wsl2 换成真 Linux 而(无 MSYS 层、大小写敏感 vs /mnt/c、0777 权限、wslpath、python3-only);payload 版另锚「缺工具是载荷树缺口,勿现场装系统版补会话」。js-yaml 容 `!!js` 架构解析五文件全过,persona 无 CR 残留。
|
|
30
|
+
- **终端语义预设模板包 `agent-presets/`**(对标型对冲,新 5 模板 + `install-presets.mjs`):把「默认终端 + 命令语法 + Terminal authority 锚」显式声明在 Agent Preset 层,对冲「安装即改写默认终端语义」类插件;模板去机器化(`%%pythonPath%%` / `%%winPythonWslPath%%` 占位,未填整行删除),同名旧预设**先备份到 `.agent-presets` 挂载根之外**再覆盖;新增 `standard-win-payload` 变体与载荷能力衔接。随包分发(files 加 `agent-presets`),`npm run presets:install`。
|
|
31
|
+
- **验证**:全套七件测试绿(unit 新增载荷判定表 14 断言:未知摘要/漂移/部分信任/WSL 优先/store 发现/槽位末位兜底);新文件 eslint 干净;`index.ts` 仅剩 5 个存量 `no-explicit-any`/useless-assign 告警均在未改动的 compat 桥行内(diff hunk 可证)。**未验证面**:农场格实机装载与真 PortableGit SFX 反解包(需一台无 Git Bash 的 Windows 格);发版前需补双 profile 装机冒烟。
|
|
32
|
+
|
|
33
|
+
## 0.8.2 (2026-10-18)
|
|
34
|
+
|
|
35
|
+
- hosts: 追加 0.2.1-rc.2 声明面枚举(宿主 peer 逐包 npm 实测 rc.2 在版;不触 ctx.web provider 与 model.label 槽,代码零改动,纯元数据发版;农场 rc.2 格挂账待命)
|
|
36
|
+
|
|
37
|
+
## 0.8.0 (2026-10-13)
|
|
38
|
+
|
|
39
|
+
- **浏览器内嵌多 shell 终端**(新能力,`src/webterminals/*`):底部工作台新增「终端(多 shell)」tab,真 PTY 走 `node-pty` + WS,四种 shell(PowerShell / Git Bash / MSYS2 / WSL bash)可并存。xterm **打进 bundle**而非外部 `require` —— 宿主 client 模块表里没有 `@xterm/xterm`,外部引用会直接 `missed the module table`;`scripts/check-artifacts.mjs` 拿 xterm 自己的 DOM 标记作证人断言已内联,并卡住 bundle 体积上限防第二个重型依赖偷进。
|
|
40
|
+
- **两级开关与回落链**:总开关 `bottomTerminal` 之下每个 shell 各有激活开关(`shellPowerShell` / `shellGitBash` / `shellMsys2` / `shellWsl`),未激活的 shell 按名拒绝并回 `shellNotActivated`;全关时不堵死,回落到兜底 shell 并上报 `fellBack` / `floor`。开关写入进程内即时生效(无热重载的宿主线走进程内 overrides 图)。
|
|
41
|
+
- **设置面两个落点 + 三代宿主自适应**(`src/settings-surface.ts`):同时挂 `plugins.bundle.config`(0.1.7+/0.2.0)与 `settings.plugin.item`(0.1.2–0.1.6),并向家族节 `dsh-family` 贡献子席位;家族节不存在时自注册一个顶级节(**自己的 id**,不遮蔽 `dsh-family`)。能力面靠 **settings 服务实例的方法形状**分类,不靠 `import` 宿主包(宿主包在 app 树里,插件目录解析不到)也不靠版本号猜。齿轮浮窗退化为设置入口:仅在无设置页的 0.1.0/0.1.1 线上渲染。
|
|
42
|
+
- **不再抢注 `webTerminals`**:上一版在 client 里 provide 该服务,与宿主 `dsh-api-terminal-controller` 同名相撞,cordis 拒载第二次 provide → 整页 `Failed to load plugins`。现在只有一个 provide 点,且先活读服务是否空闲;`shimOfficialTerminal` 默认 **off**(opt-in)。同时删掉 `ctx.betterSidebar` 属性读——client ctx 是 Proxy,未声明就读直接抛错。
|
|
43
|
+
- **官方右栏终端的 shell 菜单(覆写宿主行)**:`cordis.patch.yml` 新增对 `terminal-controller` 行的覆盖,在原生候选前追加 `msys-bash.exe` / `git-bash.exe` 两个**自带文件名**的硬链接候选。宿主 `discoverShells` 按可执行文件名去重且保留最早一条,Git Bash 与 MSYS2 都叫 `bash.exe`,不改名就永远只能出一个。**原生六个候选一个不动**:把 `Git\bin\bash.exe` 排在裸名 `bash` 之前会静默删掉 WSL(实发过,已回退并写进门禁)。被覆写的行没有默认值可退,11 个限额必须全量重述。
|
|
44
|
+
- **shell 下拉改为自绘**:原生 `<select>` 的选项弹层由操作系统绘制、不吃页面配色,暗色主题下是白底白字。新增 `ShellPicker`,浮层用宿主 `--dsw-alias-bg-overlay`(亮/暗各自定义),随主题免费切换。门禁反向:三处源文件不得再出现 `<select>` / `<option>`。
|
|
45
|
+
- **别名工具与文档**:`scripts/link-shells.mjs`(幂等建硬链接,权限不够时打印确切命令)、`npm run link:shells`、`install.ps1` 末尾的可选提示、README 中/英「shell 别名」章节(含手工 `mklink` 命令、一步提权写法、可粘贴给全权限 agent 的提示词、以及 MSYS2 需要的 `~/.bashrc` PATH 守卫)。门禁加文档漂移断言:补丁里每个绝对路径候选必须同时出现在 README 和建链脚本里。
|
|
46
|
+
- **本地化**:运行时词表 `src/locales.ts` 九语(zh 键集为真理源,其余八语 `Record<keyof typeof zh, string>` 编译期对齐)+ 元数据 `locale/<lang>.json` 九份(`en.json` 为宿主扫描必需锚);`check-artifacts.mjs` 扫死文案(key 定义无人引用 = 漏渲染)并改为**遍历 browser 目录**而非硬编码文件清单。
|
|
47
|
+
- **验证**:七套离线测试全绿(unit / apply / client / terminal / shells / webterminals / browser)+ 四层产物闸(typecheck→test→build→dist 冒烟)+ 真宿主实证:0.2.0-rc.2 沙箱格上自有通道 24 项全 PASS、官方 shell 列表探针确认 WSL 保留且两个别名已入列、`git-bash.exe -i` 与原件逐字段一致(`MSYSTEM=MINGW64`、POSIX 根 `C:\Program Files\Git\`)、浏览器实测暗色弹层配色 = 令牌解析值且全页 `select` 数为 0。**未验证面**:0.1.0/0.1.1/0.1.2/0.1.5/0.1.6/0.1.7 六线的设置面四臂本轮只走离线测试,故 dist-tag 只移 `dsh-0.2.0` 与 `compat`,`latest` 仍留 `0.7.2-compat.2`。
|
|
48
|
+
|
|
49
|
+
## 0.7.1 (2026-10-01)
|
|
50
|
+
|
|
51
|
+
- **`node-pty` 钉版对齐宿主**:`^1.1.0` → `1.2.0-beta.15`(精确钉)。DSH 宿主 `@deepseek-ai/dsh-subprocess-local` 的 0.1.7 与 0.2.0 两线均钉此版;1.1.0 稳定线无预编译产物、安装必跑 node-gyp 本地编译,beta 线 tarball 自带全平台预编译产物(win32 的 `conpty.node` / `conpty.dll` / `OpenConsole.exe` 均随包分发),安装脚本被拦截时运行时加载器兜底查 `prebuilds/<platform>-<arch>/`,不编译也能加载。
|
|
52
|
+
- **win32 直连路径适配 beta 线的异步 pid**:1.2.0-beta 的 ConPTY dll 路径要等 agent 连上数据管道才赋 `innerPid`,spawn 返回时 `pid` 读作 0;`spawnPtyHandle` 新增 `waitForPid`(25ms 轮询 / 5s 超时,超时杀会话并报错),open 返回值、会话列表与终止路径拿到的都是真实 pid。1.1.x(0.1.7 线)pid 同步可得,此等待零开销直通。
|
|
53
|
+
- **README(中英)新增 pnpm 放行说明**:pnpm 10+ 按「依赖是否声明 lifecycle 脚本」拦截(与脚本实际行为无关),`pnpm add` 末尾报 `ERR_PNPM_IGNORED_BUILDS`(软提示,安装本身不失败);消除提示用 `pnpm approve-builds` 勾选 node-pty,或在 profile 的 `package.json` / workspace 配置声明 `onlyBuiltDependencies` / `allowBuilds`。自有 dsh 插件中仅本插件带原生依赖。
|
|
54
|
+
- **验证**:`npm install` / `build` / `test` 全绿(unit / apply / client / terminal 4 段),`npm ls` 无 peer 冲突。
|
|
55
|
+
|
|
56
|
+
## 0.7.0 (2026-09-29)
|
|
57
|
+
|
|
58
|
+
- **DSH 0.2.0 兼容线**(分支 `compat/0.2.0`,npm dist-tag `dsh-0.2.0`):11 项 `@deepseek-ai/dsh-*` peer 范围整体换代为 `>=0.2.0-rc.1 <0.2.1-0`(0.1.7 线冻结在 `compat/0.1.7` 续服旧宿主,不受影响)。0.2.0-rc.1 对插件 API 完全兼容 0.1.7,本线为零代码改动、纯元数据适配。
|
|
59
|
+
- **devDependencies 同步换代**:15 个精确钉死 `0.1.7-rc.2` 的 `dsh-*` 包(11 个与 peer 同名 + scope / subprocess / sandbox-policy / http-proxy)→ `0.2.0-rc.1`,保证干净 checkout 的 build/test 对 0.2.0 宿主验证不失真。
|
|
60
|
+
- **lockfile 入库**:本分支删除 `.gitignore` 中的 `package-lock.json` 忽略行,依赖树刷新后的 lockfile 随分支提交(0.1.7 线维持忽略现状)。
|
|
61
|
+
- **发布元数据**:版本 0.6.4 → 0.7.0;`publishConfig.tag` `dsh-0.1.7` → `dsh-0.2.0`;`dsh.plugin.json` 的 `version` 与 `engines.dsh` 同步换代。
|
|
62
|
+
- **README 兼容矩阵重排**(中英双语):补 0.1.7 与 0.2.0 行、修正「不同包名」过时叙述(各线现共用包名 `dsh-bash-terminal-ts`,以 dist-tag 区分)、安装节兼容口径更新为 0.1.7-rc.1 / 0.2.0-rc.1 双线。
|
|
63
|
+
- **验证**:`npm install` / `build` / `test` 全绿(unit / apply / client / terminal 4 段),`npm ls` 无 peer 冲突。
|
|
64
|
+
|
|
65
|
+
## 0.6.4 (2026-09-26)
|
|
66
|
+
|
|
67
|
+
- **修复加载失败的根因(包名分叉遗留)**:包已更名为 `dsh-bash-terminal-ts`,但 `cordis.patch.yml` 的 bundle entry `name` 仍写着分叉前的 `dsh-bash-terminal`。0.1.7 加载器按 name 解析模块必然失败(`failed to import loader entry (dsh-bash-terminal)`),连 fiber 都建不出来,热挂载与重启均无法恢复。现在 entry `name` 与包名一致,DSH 0.1.7 下正常激活。
|
|
68
|
+
- **项目名称完全分叉**:`dsh.plugin.json` 的 `id` / `name`、client 注册 id、`install.ps1`(junction 路径、bundle 名、提示文案)、README / CONTRIBUTING / 兼容性文档中的项目路径与描述全部改为 `dsh-bash-terminal-ts`;仅保留 `MAXeaglet/dsh-bash-terminal`(上游仓库引用)与工具 entry id `tool-bash-terminal` 不变。`install.ps1` 的 uninstall 清理正则改为 `dsh-bash-terminal(-ts)?`,旧格式遗留块仍可清理。
|
|
69
|
+
- **客户端健壮性**:设置面在宿主未提供本插件 `configForms` 条目时显示「不可用」提示行(并给出排查方向),不再静默空白。
|
|
70
|
+
|
|
71
|
+
## 0.3.18 (未发布)
|
|
72
|
+
|
|
73
|
+
- **DSH 0.1.5 兼容线同步**(本线维护 `ts/0.1.5`):把 0.1.2 线在分叉后的独立改动逐条核验后落到本线。
|
|
74
|
+
- **标准清单补齐**:新增 `dsh.plugin.json`(`id` / `components` / `engines`)与 `screenshots.json`,两者一并加入 `files` 白名单。
|
|
75
|
+
- **`engines` 收口**:`node` 由 `>=20` 升到 `>=22`,并新增 `engines.dsh` = `>=0.1.5-alpha.1 <0.2.0-0`(此前只有本线无该声明)。
|
|
76
|
+
- **包身份归属修正**:`author` / `repository` / `bugs` / `homepage` 由上游 fork(MAXeaglet/dsh-bash-terminal)改为本仓库(drscrewdriver/dsh-bash-terminal-ts)。
|
|
77
|
+
- **干净 checkout 可 typecheck**:`devDependencies` 补全 DSH peer 包(精确钉 `0.1.5-rc.2`)。修复前 `tsc` 报 `TS7006`(`src/client.tsx` 的 `revision` / `writable` 隐式 any)——因为 peer 只在 `peerDependencies` 声明且为 optional,`npm install` 什么都不装。因 `dsh-shell@0.1.5-rc.1` 仍声明 `0.1.2-rc.1` 的 peer,装树需 `--legacy-peer-deps`。
|
|
78
|
+
- **`react-dom` 补为 devDependency**:此前 `react` 从本仓库解析、`react-dom/server` 回退到 DSH 安装树里的嵌套副本,`renderToString` 拿到两个不同的 React 实例,客户端测试报 “Objects are not valid as a React child”。补齐后 `react` 与 `react-dom` 同为 18.3.1,测试通过。
|
|
79
|
+
- **明确不改名**:本线保持包名 `dsh-bash-terminal-ts`(不跟随 0.1.2 线的 `dsh-bash-terminal-ts`),使两条线可并存安装、不在同一个包身份上冲突。
|
|
80
|
+
- **核验(本机实测)**:`npm run build` exit 0;`test-dist/{unit,apply,client}.js` 各自 exit 0;`test-dist/terminal.js` 单独运行 exit 0(3/3 通过)。其中 `unit` 的 MSYS2 冒烟**真实执行**并输出 `MSYSTEM=MINGW64`、`/mingw64/bin/gcc`、`/usr/bin/bash`,即本线赖以存在的 MSYS2 环境语义得到端到端确认。
|
|
81
|
+
- **已知环境性失败(非本线引入)**:链式 `npm test` 的第 4 段(`terminal.js`)在非交互控制台(无 Console 可 Attach)下报 `AttachConsole failed`;在未改动的基线上同样复现。
|
|
82
|
+
|
|
83
|
+
## 0.3.17 (2026-09-13)
|
|
84
|
+
|
|
85
|
+
- **MSYS2 成为第 4 个终端后端**(`SHELLS` 顺序 powershell / gitbash / msys2 / wsl)。`Config` 新增 `msys2Path`,经 `resolveAllPaths` 接线;`SHELL_DESCRIPTIONS.msys2` 与 `toolDescription` 同步补上后端说明。
|
|
86
|
+
- **MSYS2 设置项补齐(客户端)**: Web UI「默认终端」行此前只有 powershell / gitbash / wsl —— 后端有 MSYS2 而前端选不了。`src/client.tsx` 补上 `msys2` 选项与 `shell.msys2` 双语文案(MSYS2 为专有名词,中英文一致)。
|
|
87
|
+
- **MSYS2 管道 stdio 修复**: `C:\msys64\msys2.exe` 是分配控制台的 Cygwin 启动器,在管道 stdio 下以 exit 0 返回零字节(stdout/stderr 均为 0 字节,实测 MSYS2 bash 5.3.15),任何 MSYS2 命令都会静默无输出。候选顺序改为优先 `C:\msys64\usr\bin\bash.exe` → `bin\bash.exe` → PATH 中的 mingw64/msys64 条目,`msys2.exe` 降级为候选列表末尾的兜底项。
|
|
88
|
+
- **MSYS2 登录 shell**: `buildArgv` 用 `-lc` 而非 `-c`;只有登录 shell 会 source `/etc/profile`,把 `/usr/bin` 与 `/mingw64/bin` 加进 PATH(裸 `-c` 下 `bash` 会解析到 `C:\Windows\System32\bash.exe`,`gcc`/`make` 全部 command not found)。
|
|
89
|
+
- **MSYS2 环境**: `buildEnv` 注入 `MSYSTEM=MINGW64`(用户显式传入的值优先),让 `/mingw64/bin` 的 gcc、make 进入 PATH;`terminal` 工具的交互式会话 env 与之一致。
|
|
90
|
+
- **MSYS2 沙箱**: 与 Git Bash 同理不包装(Windows ACL 受限令牌 runner 与 Cygwin/MSYS2 不兼容),结果报告 `enforcement: msys2-unconfined`。
|
|
91
|
+
- **交互式终端 env 走 `buildEnv`**: `src/terminal.ts` 原先自己拼一份 env,绕过了 `buildEnv` 里的 MSYSTEM 注入 —— 结果 `shell` 工具正常、msys2 **交互式终端**却拿不到 `/mingw64/bin`(`/etc/profile` 按默认 MSYS 环境配置 PATH)。现改为 `buildEnv(shell, ctx.shellEnv.collect(exec), process.env.WSLENV)`:既拿到 MSYSTEM 注入,也不再重复维护 WSLENV 逻辑。第三个参数必须显式传:`spawnTerminal` 用 `childEnv(spec.env)` 整体替换子进程环境,环境里的 WSLENV 否则不可见。
|
|
92
|
+
- **WSL `WSLENV` 改为叠加而非重建**: WSLENV 是 WSL 的跨界白名单,旧代码只用 `dshEnv` 重建它,会丢掉环境里已有的条目(本机 `WSLENV=WT_SESSION:WT_PROFILE_ID:`,Windows Terminal 导出),这些变量将不再进入 WSL。现改为在继承值上叠加:按 `:` 切分后过滤空项(继承值以 `:` 结尾,字符串拼接会产出空条目)、排除 `WSLENV` 键自身(它也是 `dshEnv` 的键,追加会得到 `...:WSLENV`);调用方显式提供的 WSLENV 优先于继承值。
|
|
93
|
+
- **交互式终端**: `terminalArgv("msys2")` 用 `-l`。不能沿用 `-lc`:该 argv 不带命令(PTY 本身即会话),`bash -lc` 无操作数会立即以 `-c: option requires an argument`(exit 2)退出。
|
|
94
|
+
- **客户端 bundle 可复现**: `scripts/build-client.mjs` 原先让 esbuild 从 `src/client.tsx` 向上搜索 tsconfig,仓库内构建会命中根 `tsconfig.json` 并多输出一行 `"use strict";`,而仓库外 worktree 构建不会 —— 同一份源码产出两个不同的提交产物。现显式固定 `tsconfigRaw: { compilerOptions: { target: "ES2022", useDefineForClassFields: true } }`(即根 tsconfig 实际生效的值),唯一可观察差异是那行 `"use strict";` 消失。
|
|
95
|
+
- **回归防护**: `test/unit.ts` 断言 msys2 的 `-lc` argv、`MSYSTEM` 注入与用户值优先、`bash.exe` 必须排在 `msys2.exe` 之前、`WSLENV` 叠加语义(继承条目保留 / 无空条目 / 不追加 `WSLENV` 自身 / 显式值优先),并加了一条真实 spawn 冒烟断言(stdout 非空且含 `/mingw64/bin/gcc`;0 字节即失败);`test/apply.ts` 断言 msys2 的 argv/env、`msys2-unconfined` 与 WSLENV 结构;`test/terminal.ts` 断言交互式 argv、PTY env 走 `buildEnv` 的接线,并跑一条**真实 node-pty 的 msys2 会话**(断言 `MSYSTEM=MINGW64`、`/mingw64/bin/gcc`、`BASH=/usr/bin/bash`);`test/client.ts` 新增漂移守卫——按宿主 `SHELLS` 逐项断言客户端 bundle 的列表与渲染出的菜单项一致(含顺序)且中英文字典都有 `shell.<id>`。上述每条守卫都做过反向对照(改坏构建产物 → 断言失败 → 还原后通过)。
|
|
96
|
+
|
|
97
|
+
## 0.3.16 (2026-09-12)
|
|
98
|
+
|
|
99
|
+
- **全量 TypeScript 重写**. 服务端 `lib/index.js` / `lib/terminal.js` → `src/index.ts` / `src/terminal.ts`;客户端 `src/client.jsx` → `src/client.tsx`;测试 `test/*.mjs` → `test/*.ts`(编译到 `test-dist/` 运行)。`tsc --strict` + `noUncheckedIndexedAccess` 全绿。
|
|
100
|
+
- 插件自身对 DSH 接缝的契约收敛为手写结构类型(`src/dsh-types.ts`);peer 包的值导入统一经 `src/dsh.ts` 桥接窄化,peer 版本漂移不再渗入重写代码。
|
|
101
|
+
- 构建链:`npm run build` = `tsc`(服务端 → `lib/`)+ `tsc -p tsconfig.client.json`(client 类型检查)+ esbuild(`src/client.tsx` → `lib/client.js` + `dist/client.js`)+ `tsc -p tsconfig.test.json`。`lib/`、`dist/` 产物继续随仓库提交,DSH 按 `lib/index.js` 加载的路径不变。
|
|
102
|
+
- 导出面逐字保持(`name` / `inject` / `Config` / `apply` / `SHELLS` / `DEFAULT_SHELL` / `SETTINGS_NAMESPACE` / `internals`),运行时行为与 0.3.15 一致;仅去掉了 terminal.js 末尾一个不可达的 `pathResolve` 死函数与未使用的 `MAX_TIMER_DELAY_MS` 导入。
|
|
103
|
+
|
|
104
|
+
## 0.3.15 (2026-09-11)
|
|
105
|
+
|
|
106
|
+
- **适配 DSH 0.1.5-rc.1**. 客户端模块表(`PLATFORM_MODULES`)把 `@deepseek-ai/dsh-client-runtime` 改名为 `@deepseek-ai/dsh-client-store`,并且只按**精确裸名**命中(没有 `/client` 子路径,也没有包工厂兜底)。客户端 bundle 原先 `require("@deepseek-ai/dsh-client-runtime/client")`,在 0.1.5 下必然 miss → Web GUI 启动报 `Failed to load plugins / require(...) missed the module table`。现改为 `@deepseek-ai/dsh-client-store`,bundle 的 4 个 require(`react`、`react/jsx-runtime`、`dsh-client-store`、`dsh-client-ui-primitives`)全部落在平台种子表内,不需要 `dsh.client.external`。
|
|
107
|
+
- `dsh.client.inject` 更新为 0.1.5 真实存在的客户端包名(`dsh-client-locale`、`dsh-client-ui-settings`、`dsh-api-remotes`)。
|
|
108
|
+
- 服务端 settings 接缝不再导出 `settingsNamespace()`(0.1.5 起 `register(ns: string, schema, { base })` 直接收命名空间字符串);已同步去掉该包装,代码对 0.1.0/0.1.5 两代 API 都成立。
|
|
109
|
+
- `peerDependencies` 对齐 `^0.1.5-rc.1`(新增实际依赖的 `dsh-sandbox`,`cordis` 提到 `^4.0.2`);client 测试新增回归断言:bundle 不得再出现 `dsh-client-runtime`。
|
|
110
|
+
- `install.ps1` 的 settings 白名单 patch 加了存在性探测:0.1.5 已无硬编码白名单,脚本不再为了无匹配的替换去重写宿主文件(那只会给它加个 BOM)。
|
|
111
|
+
- Git Bash 不再经 `ctx.sandbox.confine` 包装:DSH 的 Windows ACL 受限令牌 runner 与 Cygwin/MSYS2 不兼容(bash 启动时 `CreateFileMapping` Win32 error 5 直接终止),现在 Git Bash 在受限模式下也按不包装运行,结果报告 `enforcement: gitbash-unconfined`。修复 #6。
|
|
112
|
+
|
|
113
|
+
## 0.3.14 (2026-08-14)
|
|
114
|
+
|
|
115
|
+
- Settings row now mirrors the shipped EnterBehaviorRow exactly: row layout (title + tertiary description left, capsule selector right), 36px capsule trigger (`--dsw-alias-bg-module-platform`, 18px radius, hover state) with a chevron, `align="end"` portal Menu. CSS injected the same way as first-party rows.
|
|
116
|
+
- Removed the "(由你决定,AI 无法更改)" description phrase.
|
|
117
|
+
|
|
118
|
+
## 0.3.13 (2026-08-14)
|
|
119
|
+
|
|
120
|
+
- Settings row follows the shipped General-section row grammar (column stack, 1px bottom hairline via `--dsw-alias-border-l2`, 16px vertical padding, 14px/400 title) — matches the Appearance row's layout.
|
|
121
|
+
|
|
122
|
+
## 0.3.12 (2026-08-14)
|
|
123
|
+
|
|
124
|
+
- **User-facing native UI**: the Settings -> General "Default terminal" row now renders with DSH-native primitives (`Menu` + `Button` + `IconCodeOutline16`) instead of a plain HTML `<select>` — it looks and behaves exactly like a first-party setting. Client test renders the row through real React (renderToString) with mocked primitives.
|
|
125
|
+
|
|
126
|
+
## 0.3.11 (2026-08-14)
|
|
127
|
+
|
|
128
|
+
- `terminal` tool: WSL interactive on the default distro now uses `wsl -- bash -i` (plain `-e` fails under ConPTY with WSL service RPC 0x8007072c); explicit `-d <distro>` keeps `-e`. Verified: pwd -> /mnt/d/WorkSpace.
|
|
129
|
+
- CI fixes: wsl argv assertion uses SystemRoot (case-insensitive); client/terminal tests resolve react + node-pty cross-environment (CI installs them no-save); wsl interactive test tolerates environments without a distro.
|
|
130
|
+
|
|
131
|
+
## 0.3.10 (2026-08-14)
|
|
132
|
+
|
|
133
|
+
- install.ps1 migrates the profile to the official bundle install (adds `dsh-bash-terminal-ts` to `dsh.profile.bundles` and removes the legacy manual insert), writing package.json without a UTF-8 BOM (PS 5.1 `Set-Content` BOM broke DSH's JSON.parse). Current web profile verified: bundle provides the `tool-bash-terminal` entry via `--dump-config`.
|
|
134
|
+
|
|
135
|
+
## 0.3.9 (2026-08-14)
|
|
136
|
+
|
|
137
|
+
- **Official bundle manifest**: the package now declares `dsh.bundle.patch` (ships its own `cordis.patch.yml`); a profile listing `dsh-bash-terminal-ts` in `dsh.profile.bundles` auto-applies the mount — verified via a temp profile + `--dump-config` (entry appears without any manual profile patch).
|
|
138
|
+
|
|
139
|
+
## 0.3.8 (2026-08-14)
|
|
140
|
+
|
|
141
|
+
- Test coverage: `shell` background execution registers a job with working `cancel` / `done` / `readOutput` hooks (13 apply/execute cases total).
|
|
142
|
+
|
|
143
|
+
## 0.3.7 (2026-08-14)
|
|
144
|
+
|
|
145
|
+
- `terminal` tool: reads now wait for output to settle (quiet for 300ms, cap 5s) instead of a fixed delay, so `send` returns the COMPLETE reply (verified: full multi-line output, e.g. `seq 1 8`).
|
|
146
|
+
|
|
147
|
+
## 0.3.6 (2026-08-14)
|
|
148
|
+
|
|
149
|
+
- Test coverage: `terminal` open-with-initial-command (immediate execution in a fresh shell) and the job hooks shape (cancel / done / readOutput) verified against a real node-pty session.
|
|
150
|
+
|
|
151
|
+
## 0.3.5 (2026-08-14)
|
|
152
|
+
|
|
153
|
+
- `terminal` tool: buffer overflow is reported (`truncated` flag + "[terminal buffer overflowed; oldest output dropped]" notice) so a busy session never silently loses history.
|
|
154
|
+
|
|
155
|
+
## 0.3.4 (2026-08-14)
|
|
156
|
+
|
|
157
|
+
- `terminal` tool: WSL sessions now carry DSH_* environment variables via WSLENV, matching the `shell` tool.
|
|
158
|
+
|
|
159
|
+
## 0.3.3 (2026-08-14)
|
|
160
|
+
|
|
161
|
+
- `terminal` tool: new `list` action enumerates live sessions (sessionId / shell / pid) for multi-session management.
|
|
162
|
+
|
|
163
|
+
## 0.3.2 (2026-08-14)
|
|
164
|
+
|
|
165
|
+
- Session cap: at most 8 concurrent terminal sessions (fail-fast beyond).
|
|
166
|
+
- Multi-backend interactive verification: Git Bash (full), PowerShell 5.1 and wsl.exe documented ConPTY limits (0x8009001d / 0x8007072c; pwsh 7 and one-shot -lc work).
|
|
167
|
+
- README (zh/en): interactive-terminal known limits.
|
|
168
|
+
|
|
169
|
+
## 0.3.1 (2026-08-14)
|
|
170
|
+
|
|
171
|
+
- Terminal sessions register with the generic jobs registry (jobId on open; `job_kill` / `job_output` work on them).
|
|
172
|
+
- Idle timeout: sessions auto-close after 10 minutes without send/read/signal (configurable via `idleMs` on open) so abandoned PTYs never leak process trees.
|
|
173
|
+
|
|
174
|
+
## 0.3.0 (2026-08-14)
|
|
175
|
+
|
|
176
|
+
- **Interactive terminal tool (`terminal`)**: persistent PTY sessions over the official `ctx.subprocess.spawnTerminal` seam (node-pty). Actions: `open` / `send` / `read` / `signal` (Ctrl+C etc.) / `close`. Shell state (cwd, variables, aliases) persists across calls; the backend follows the user's default terminal setting. Verified with a real node-pty interactive Git Bash session (cd + pwd + echo + SIGINT + close).
|
|
177
|
+
|
|
178
|
+
## 0.2.3 (2026-08-14)
|
|
179
|
+
|
|
180
|
+
- Fail-closed test coverage (unavailable sandbox backend rejects the call).
|
|
181
|
+
- README sandbox documentation.
|
|
182
|
+
- GitHub Actions CI (unit / apply / client suites on windows-latest).
|
|
183
|
+
|
|
184
|
+
## 0.2.2 (2026-08-14)
|
|
185
|
+
|
|
186
|
+
- **Official denial rendering**: a confined call whose stderr matches the runner's denial signatures reports `sandbox.denied: true` and the model-facing output carries the exact official markers — `[sandbox: file access denied under <mode> mode]` plus the same-turn escalation hint.
|
|
187
|
+
|
|
188
|
+
## 0.2.1 (2026-08-14)
|
|
189
|
+
|
|
190
|
+
- **Official sandbox-escalation surface**: the `shell` tool now advertises `sandbox_permissions` / `justification` (the exact tool-bash / tool-pwsh contract): a denied call can be retried once with the narrowest wider mode, routed through `ctx.approval` (`approveEscalation`), with strict-widening validation.
|
|
191
|
+
|
|
192
|
+
## 0.2.0 (2026-08-14)
|
|
193
|
+
|
|
194
|
+
- **Sandbox integration (official seam)**: the `shell` tool resolves the DSH sandbox policy per call (`ctx.sandboxPolicy`) and confines PowerShell / Git Bash argv through `ctx.sandbox` — the same fail-closed `SandboxUnavailableError` semantics as the shipped executors. WSL runs unconfined (its Linux-VM isolation IS the sandbox). Sandbox facts (`sandbox.mode` / `sandbox.enforcement`) ride on foreground results.
|
|
195
|
+
- **Model preference**: the plugin's system-prompt section instructs agents to prefer the `shell` tool over `pwsh` for terminal commands; the tool description leads with the user-chosen default terminal.
|
|
196
|
+
|
|
197
|
+
## 0.1.0 (2026-08-14)
|
|
198
|
+
|
|
199
|
+
Initial release.
|
|
200
|
+
|
|
201
|
+
- `shell` tool: run commands through PowerShell / Git Bash / WSL on Windows.
|
|
202
|
+
- Default terminal is chosen by the user in the Web UI settings (Settings -> General -> Default terminal); the model cannot override it.
|
|
203
|
+
- Background execution via the generic jobs registry (`run_in_background` / `job_output` / `job_kill`).
|
|
204
|
+
- Client plugin registers the settings row; host plugin reads the user setting on every call.
|
|
205
|
+
- install.ps1: junction install, cordis.patch.yml mount, and automatic patch of the dsh-host-apiproxy settings allowlist (DSH limitation; see README).
|