dsh-bash-terminal-ts 0.9.7-rc.1 → 0.9.7

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 CHANGED
@@ -1,14 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## 0.9.7-rc.1 (2026-11-29)
3
+ ## 0.9.7 (2026-11-29)
4
4
 
5
5
  **R2 实战补丁:redactCommand 补洞 + msys2 /etc/passwd 回退 + WSL 超时抬升。**
6
6
 
7
- - `redactCommand` 新增 6 类常见凭据形态:Azure `AccountKey=...` / `--account-key xxx`、npm `_authToken`(`npm_` + 20+)、Stripe `sk_live_/sk_test_/sk_readonly_`、SendGrid `SG.xxx.yyy`、Google API `AIza...`、Discord bot 三段 `MT....`。同时 `--password/--token/...` 拆为两条规则(= 与 空格分隔),保留用户实际写下的分隔形式,避免“= ***”与“ ***”同形。
8
- - msys2 候选新增 `<root>\etc\passwd` 回退项:当猜测的 `<root>\home\<USERNAME>\.bash_history` 因 MSYS2 安装时自定义家目录而缺位时,解析 passwd 行拿真实 home。失败时回 `reason: "no matching username in msys2 /etc/passwd"` 而不抛。归属 v0.9.6 计划 findings 待验证 #1 定论。
9
- - WSL `wsl -d <distro> -e sh -c 'cat ~/.bash_history'` 超时从 2000 ms 抬到 5000 ms(取 `Math.max(options.timeoutMs, 5000)`):冷启动的 WSL VM(尤其 Windows Server SKU)首次接受 `wsl -e sh` 可达 3-4s;2000ms 会误判为“不可读”。归属待验证 #2 定论。
10
- - `test/history.ts` 追加第 9 组断言,验证 Azure CLI/npm/Stripe/SendGrid/Google API/Azure Connection String 六种形态命中(测试字面量以字符串拼接拆开,避免 GitHub push-protection 将合成测试固定物误判为真凭据)。十六进制串仍不脱敏(git SHA 保留)。
11
- - **本次不含**:groupByCwd 启发式微调、`persist()` 竞态收敛、剩余 7 语 README。属 v0.9.8。
7
+ - `redactCommand` 新增 6 类常见凭据形态:Azure `AccountKey=...` / `--account-key xxx`、npm `_authToken`(`npm_` + 20+)、Stripe `sk_live_/sk_test_/sk_readonly_`、SendGrid `SG.xxx.yyy`、Google API `AIza...`、Discord bot 三段 `MT....`。`--password/--token/...` 拆为两条规则(= 与 空格分隔),保留用户实际写下的分隔形式。
8
+ - msys2 候选新增 `<root>\etc\passwd` 回退项:当猜测的 `<root>\home\<USERNAME>\.bash_history` 因 MSYS2 安装时自定义家目录而缺位时,解析 passwd 行拿真实 home。失败时回 `reason` 而不抛。归属 v0.9.6 计划 findings 待验证 #1 定论。
9
+ - WSL `wsl -d <distro> -e sh -c 'cat ~/.bash_history'` 超时从 2000 ms 抬到 5000 ms:冷启动的 WSL VM(尤其 Windows Server SKU)首次接受 `wsl -e sh` 可达 3-4s。归属待验证 #2 定论。
10
+ - `test/history.ts` 第 9 组断言验证六种新形态(测试字面量以拼接拆开避开 GitHub push-protection 误伤)。十六进制串仍不脱敏(git SHA 保留)。
11
+ - **本次不含**:groupByCwd 启发式微调、`persist()` 竞态收敛。属 v0.9.8。
12
12
 
13
13
  ## 0.9.6 (2026-11-29)
14
14
 
package/dsh.plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "dsh-bash-terminal-ts",
3
3
  "name": "dsh-bash-terminal-ts",
4
- "version": "0.9.7-rc.1",
4
+ "version": "0.9.7",
5
5
  "description": {
6
6
  "en": "One shell tool that runs commands through PowerShell, Git Bash, MSYS2, WSL or Niubash on Windows, plus an embedded terminal for the bottom dock with per-shell activation switches and a default-shell fallback chain.",
7
7
  "zh": "一个 shell 工具,可在 Windows 上通过 PowerShell / Git Bash / MSYS2 / WSL / Niubash 执行命令;另提供底部工作台的内嵌终端,支持按 shell 激活开关与默认 shell 回落链。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-bash-terminal-ts",
3
- "version": "0.9.7-rc.1",
3
+ "version": "0.9.7",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "tag": "latest"