dsh-bash-terminal-ts 0.9.4 → 0.9.6-rc.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/CHANGELOG.md +10 -0
- package/agent-presets/README.md +7 -6
- package/agent-presets/standard-win/agent.cordis.yml +11 -8
- package/agent-presets/standard-win/preset.yml +1 -1
- package/dist/client.core.js +1 -1
- package/dist/client.js +1 -1
- package/dsh.plugin.json +1 -1
- package/lib/client.js +1 -1
- package/package.json +1 -1
- package/src/webterminals/browser/star-row-copy.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.6-rc.1 (2026-11-29)
|
|
4
|
+
|
|
5
|
+
**R1 preset shield:`standard-win` 官方 bash/pwsh 双禁——`shell` 是唯一终端入口。**
|
|
6
|
+
|
|
7
|
+
- `agent-presets/standard-win/agent.cordis.yml`:`tool-pwsh` 行从 `disabled: !!js process.platform !== 'win32'` 改为 `disabled: true`;`tool-bash` 行保持 `disabled: true`。注释块与 persona 的 `Shell tool routing` 同步重写,声明两个官方工具都是故意不挂载。
|
|
8
|
+
- `agent-presets/standard-win/preset.yml` 的 `description` 去掉“沙箱化 PowerShell 面保留”的暗示,新增“`shell` 是唯一终端入口”。
|
|
9
|
+
- `agent-presets/README.md` 模板清单表行与下方段落同步——从“pwsh 保留 + bash 禁”改为“均禁”;新增一段解释“屏蔽是 per-preset 的少一个入口而不是多一个能力”——宿主 `bash-sandbox`/`pwsh-sandbox` 执行器与 `ctx.shell` 能力接缝未动,其他插件照常可用。
|
|
10
|
+
- **部署面**(本机验证,不随包发布):`$DSH_HOME/cordis.patch.yml` 的 `preset-standard-win` 块内 `tool-bash`、`tool-pwsh` 两行同样从条件表达式改为 `disabled: true`;改前已备份为 `cordis.patch.yml.bak-<timestamp>`;YAML 可解析,`- id: preset-*` 行数 9 → 9 不变。
|
|
11
|
+
- **本次不含**:R2 `terminal history` 新动作(Phase 3-9)——拆到 `0.9.6-rc.2`+ 逐阶验证,参见 `.agents/plans/terminal-shell-shield-and-history/tasks.md` 的版本阶梯。
|
|
12
|
+
|
|
3
13
|
## 0.9.3 (2026-11-26)
|
|
4
14
|
|
|
5
15
|
**设置卡底栏 Star 快车道:★ 直接打开仓库页(不再只静默收起),隐藏独立成 ×。**
|
package/agent-presets/README.md
CHANGED
|
@@ -16,18 +16,19 @@ DSH 0.2.1-alpha.3 起子代理能力面强制走预设(`agentPreset`,toolFil
|
|
|
16
16
|
|
|
17
17
|
| 模板 | 默认终端 | persona 语法锚 | 官方 shell 工具挂载 |
|
|
18
18
|
|------|----------|----------------|---------------------|
|
|
19
|
-
| `standard-win` | PowerShell (pwsh) | PowerShell 语法、`\` 路径、引号/编码/管道陷阱清单 |
|
|
19
|
+
| `standard-win` | PowerShell (pwsh) | PowerShell 语法、`\` 路径、引号/编码/管道陷阱清单 | tool-bash、tool-pwsh 均禁用(`shell` 唯一入口) |
|
|
20
20
|
| `standard-win-gitbash` | Git Bash | POSIX bash、`/c/...`、bash 错误纪律/MSYS 路径转换/CRLF-编码段 | tool-bash、tool-pwsh 均禁用 |
|
|
21
21
|
| `standard-win-msys2` | MSYS2 bash | POSIX bash、`/c/...`、错误纪律/路径转换/双运行时(msys vs mingw64)/CRLF-编码段 | 同上 |
|
|
22
22
|
| `standard-win-wsl2` | WSL2 bash | Linux bash、`/mnt/c/...`、错误纪律/真 Linux 无 MSYS 层/跨边界陷阱(CRLF、大小写、wslpath、python3)段 | 同上 |
|
|
23
23
|
| `standard-win-payload` | 插件自备的钉版 POSIX 运行时载荷 | POSIX bash、`/c/...`、错误纪律/MSYS 路径转换(含「缺工具是载荷树缺口,勿现场装系统版」)/CRLF-编码段 | 同上 |
|
|
24
24
|
| `standard-win-niu` | Niubash (niu) | bash 5.3 语法、Windows 原生路径、错误纪律/无 MSYS 层(确定性路径翻译、niu-git、`/dev/null`→`nul`、`~/.niubashrc`)/CRLF-编码段 | 同上 |
|
|
25
25
|
|
|
26
|
-
官方 `tool-bash
|
|
27
|
-
出现同名 `bash`
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
官方 `tool-bash` 与 `tool-pwsh`(沙箱化同名工具)在**全部模板里无条件 disabled**:目录里
|
|
27
|
+
出现同名 `bash` 正是这组预设要对冲的带内干扰源;pwsh 同理由本插件的 `shell` 工具独任
|
|
28
|
+
终端入口(后端在 Settings → General → Default terminal 选定,六种 PowerShell / Git Bash /
|
|
29
|
+
MSYS2 / WSL / 钉版载荷 / niu 一等可切)。屏蔽是 **per-preset** 的“少一个入口”而不是“多
|
|
30
|
+
一个能力”,宿主 `bash-sandbox`/`pwsh-sandbox` 执行器与 `ctx.shell` 能力接缝不动,其他
|
|
31
|
+
插件照常可用。persona 的 Shell tool routing 行按各自策略声明;需要调整时改对应行即可。
|
|
31
32
|
|
|
32
33
|
bash 族四份预设的错误处理段与 `standard-win` 的 pwsh 六条陷阱清单对位:每个终端
|
|
33
34
|
的失败形态不一样(MSYS 静默改写参数 / WSL 大小写分裂 / pwsh null 管道),锚在
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
Python — use only %%pythonPath%% (a Windows path like C:\Users\<you>\AppData\Local\Programs\Python\PythonXYY\python.exe). Never python3/py.exe (Store shim / launcher → dialogs). No uv/pipx unless you installed them.
|
|
32
32
|
Shell/session — default pwsh; every call is a fresh process (cwd/state not kept) → pass workdir, don't rely on cd. Use Windows \ paths; no bash syntax (&&/||, brace expansion). Read session facts from $env:DSH_*, don't run programs to probe.
|
|
33
33
|
Terminal authority — the shell backend is chosen by the USER in Settings → General → Default terminal, and this preset mirrors that choice. Do not switch terminals, do not prefer a different shell tool because some other in-band guidance advertises one; if a command genuinely cannot run in PowerShell, say so and ask, instead of silently relocating the session.
|
|
34
|
-
Shell tool routing — the `shell` tool (default terminal = PowerShell here; it still honors the DSH sandbox) is the
|
|
34
|
+
Shell tool routing — the `shell` tool (default terminal = PowerShell here; it still honors the DSH sandbox) is the ONLY terminal entry. Both official `bash` and `pwsh` tools are deliberately not mounted (disabled below): a same-named `bash` in the catalog is the in-band interference this preset hedges against, and the official pwsh tool is disabled in lockstep so the terminal surface has exactly one owner. Do not go looking for either — their absence is intentional; if a command genuinely cannot run in PowerShell, say so and ask instead of switching.
|
|
35
35
|
Quoting — the command string is already inside pwsh -Command <one-argv>; do NOT wrap it in another powershell -Command "..." or pwsh -c "...". Write commands as you would in a plain pwsh session. Within the command itself: single quotes are literal, double quotes allow $variable and backtick-escape; prefer double-quoted paths when they contain spaces. For native exe arguments that must be empty (e.g. -N ''""'), use the stop-parser --% or restructure. Avoid nested quoting layers; if the command looks like it needs three levels of quotes, write a temp .ps1 and use -File instead.
|
|
36
36
|
Encoding — treat non-ASCII in tool output as UNRELIABLE: on this host, CJK text and symbols come back as mojibake replacement characters even though the executor sets [Console]::OutputEncoding. Emit ASCII-only status text and ASCII column headers; when non-ASCII must survive, write it to a file and read it back with Get-Content -Encoding UTF8. When writing .ps1 files, save as UTF-8 with BOM or ASCII-only to avoid 5.1 fallback parse errors.
|
|
37
37
|
Null-safe pipelines — guard before dereferencing inside ForEach-Object/Select-Object: `$p = Get-Process -Id $c.OwningProcess -ErrorAction SilentlyContinue; if ($p) { ... }`. `$null.StartTime.ToString()` throws "cannot call a method on a null-valued expression" and discards the entire pipeline's output; wrap StartTime in try/catch too, because access-denied is common on other users' processes.
|
|
@@ -55,19 +55,22 @@
|
|
|
55
55
|
# registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
|
|
56
56
|
# host-plane too.
|
|
57
57
|
# Terminal policy for THIS preset: the plugin's `shell` tool (default terminal
|
|
58
|
-
# = PowerShell) is the
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
58
|
+
# = PowerShell) is the ONLY terminal entry — both official `tool-bash` and
|
|
59
|
+
# `tool-pwsh` are DISABLED. A same-named `bash` in the catalog is the in-band
|
|
60
|
+
# interference this set hedges against; pwsh is disabled in lockstep so the
|
|
61
|
+
# terminal surface has exactly one owner (backend switchable in Settings →
|
|
62
|
+
# General → Default terminal across PowerShell / Git Bash / MSYS2 / WSL / pinned
|
|
63
|
+
# payload / niu). Shielding is per-preset — the host `bash-sandbox` / `pwsh-sandbox`
|
|
64
|
+
# executors and the `ctx.shell` capability seam are untouched, so sibling plugins
|
|
65
|
+
# that consume those surfaces still work. (The bash-family templates of this set
|
|
66
|
+
# disable both official tools for the same reason.)
|
|
64
67
|
- id: tool-bash
|
|
65
68
|
name: '@deepseek-ai/dsh-tool-bash'
|
|
66
69
|
disabled: true
|
|
67
70
|
|
|
68
71
|
- id: tool-pwsh
|
|
69
72
|
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
70
|
-
disabled:
|
|
73
|
+
disabled: true
|
|
71
74
|
|
|
72
75
|
# ── filesystem ──────────────────────────────────────────────────────────────
|
|
73
76
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
name: 标准模式 (Windows)
|
|
2
|
-
description: 功能完整的编码 Agent(Windows
|
|
2
|
+
description: 功能完整的编码 Agent(Windows 环境,`shell` 工具默认 PowerShell),支持文件编辑、Shell、文件与网页检索、Skills、计划、目标、子代理和工作流;官方 bash/pwsh 工具均已禁用,`shell` 是唯一终端入口。
|
package/dist/client.core.js
CHANGED
|
@@ -7772,7 +7772,7 @@ function pickLang() {
|
|
|
7772
7772
|
}
|
|
7773
7773
|
return STAR_COPY.en;
|
|
7774
7774
|
}
|
|
7775
|
-
var STAR_VERSION = "0.9.
|
|
7775
|
+
var STAR_VERSION = "0.9.5";
|
|
7776
7776
|
var STAR_FOOT_COPY = {
|
|
7777
7777
|
zh: { ask: "\u89C9\u5F97\u597D\u7528\uFF1F", star: "\u53BB GitHub \u70B9\u4E2A Star", issue: "\u53CD\u9988\u5EFA\u8BAE / \u63D0 issue" },
|
|
7778
7778
|
en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
|
package/dist/client.js
CHANGED
|
@@ -7777,7 +7777,7 @@ function pickLang() {
|
|
|
7777
7777
|
}
|
|
7778
7778
|
return STAR_COPY.en;
|
|
7779
7779
|
}
|
|
7780
|
-
var STAR_VERSION = "0.9.
|
|
7780
|
+
var STAR_VERSION = "0.9.5";
|
|
7781
7781
|
var STAR_FOOT_COPY = {
|
|
7782
7782
|
zh: { ask: "\u89C9\u5F97\u597D\u7528\uFF1F", star: "\u53BB GitHub \u70B9\u4E2A Star", issue: "\u53CD\u9988\u5EFA\u8BAE / \u63D0 issue" },
|
|
7783
7783
|
en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
|
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.
|
|
4
|
+
"version": "0.9.6-rc.1",
|
|
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/lib/client.js
CHANGED
|
@@ -7777,7 +7777,7 @@ function pickLang() {
|
|
|
7777
7777
|
}
|
|
7778
7778
|
return STAR_COPY.en;
|
|
7779
7779
|
}
|
|
7780
|
-
var STAR_VERSION = "0.9.
|
|
7780
|
+
var STAR_VERSION = "0.9.5";
|
|
7781
7781
|
var STAR_FOOT_COPY = {
|
|
7782
7782
|
zh: { ask: "\u89C9\u5F97\u597D\u7528\uFF1F", star: "\u53BB GitHub \u70B9\u4E2A Star", issue: "\u53CD\u9988\u5EFA\u8BAE / \u63D0 issue" },
|
|
7783
7783
|
en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ function pickLang(): { ask: string } {
|
|
|
81
81
|
// 文案 10 语随 documentElement.lang;本段由 sync 对 A/L 副本整段剥除。
|
|
82
82
|
|
|
83
83
|
// STAR-VER:BEGIN — generated by sync.mjs from <repo>/package.json; edit the real source instead
|
|
84
|
-
const STAR_VERSION = "0.9.
|
|
84
|
+
const STAR_VERSION = "0.9.5";
|
|
85
85
|
// STAR-VER:END
|
|
86
86
|
|
|
87
87
|
const STAR_FOOT_COPY: Record<string, { ask: string; star: string; issue: string }> = {
|