dsh-gitbash-shell 0.33.0 → 0.33.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 +12 -0
- package/README.md +57 -40
- package/README_EN.md +59 -35
- package/dsh.plugin.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
> 倒序排列,新版本条目在最上面。条目格式:`## vX.Y.Z — YYYY-MM-DD` + 类型(feat / fix / docs / chore)+ 要点 + 相关链接。
|
|
4
4
|
> 纪律见 AGENTS.md「变更记录纪律」:发版前先更新本文件并随版本提交;事故复盘、复现与真机验证记录也记在这里。
|
|
5
5
|
|
|
6
|
+
## v0.33.1 — 2026-10-02
|
|
7
|
+
|
|
8
|
+
**类型**:docs(issue #14:README「保留官方沙箱语义」与 Windows 受限模式的实际行为不一致)
|
|
9
|
+
|
|
10
|
+
> 报告者 **SenkjM** 的五条观察(enforcement 元数据、完整性级别 Low→Medium、shell 越界写成功而文件工具被拒、一次性提示、README 关键词计数)**全部与设计一致**;他指出的是文档缺口——行为在代码层有如实标注(§1 红线「绝不静默假成功」守住的是结果元数据与运行期提示),但 README 层面除了「保留官方沙箱语义」这句误导性概括外零披露。本版补齐,并顺带修正 README 里残留的物化时代描述。
|
|
11
|
+
|
|
12
|
+
- **README.md / README_EN.md 新增「安全语义:Windows 上的受限模式」章节**(置于「它做了什么」之后):POSIX 完整保留 / Windows 受限模式 shell 走 unconfined 的根因(MSYS2 vs restricted-token,OS 层冲突无插件内解)与取舍理由、如何标注(结果元数据 `enforcement: "unconfined"` + 每进程一次性日志)、**文件工具不受影响**(fs 沙箱另一层,边界不一致如实写明)、可观察对照(完整性级别不再压低 Low→Medium、TEMP 不再隔离)、以及「需要 shell 也被硬拦 ⇒ 本插件在 Windows 上不适合你,卸载即回 pwsh-sandbox,没有中间态」的明确选择提示;「它解决什么」的「保留官方沙箱语义」改为指向该章节。
|
|
13
|
+
- **顺带清理 README 的物化时代残留描述**(行为未变,纯文档对齐 v0.32.0+ 现状):「它做了什么」第 3 条改为声明式注册(`ctx.agentPresets.register`,行集为已提交 JS 数据,不再物化目录,旧物化树按 marker 单向清理);删除「dsh 版本双适配」「dsh 0.1.6 适配」两个过时段落(era 机制已随 v0.32.0 删除),替换为「宿主要求与 preset 对齐」(下限 >=0.1.7-rc + smoke 锁对齐 + preset id 不变);「配置」/「ptc 联动」/「去重开关」段的「物化」措辞与旧宿主(≤0.1.6)双时代描述同步更新。
|
|
14
|
+
- docs-only:src/ 零改动,冒烟 99 项不变(README 内容无 smoke 断言)。发 patch 版本而非仅推文档,是因为 README 随 npm 包分发——安全披露应让 `npm view` / 插件管理页看到的 README 同步更新。
|
|
15
|
+
|
|
16
|
+
- 相关:issue #14(<https://github.com/KannaKuron/dsh-gitbash-shell/issues/14>)、CHANGELOG v0.13.2(取舍的完整分析)。
|
|
17
|
+
|
|
6
18
|
## v0.33.0 — 2026-10-01
|
|
7
19
|
|
|
8
20
|
**类型**:fix(issue #13:Scoop 安装 Git 时 `bashPath` 配置正确但每次启动仍报 could NOT be resolved 并弹引导框)+ feat(解析链新增 `git --exec-path` 与 GitForWindows 注册表两级发现)
|
package/README.md
CHANGED
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
> 让 DeepSeek Harness (dsh) 在 Windows 上**全部使用 Git Bash** 的官方风格插件
|
|
8
8
|
> —— 以 Git for Windows 的 `bash.exe` 替换 PowerShell 执行器,并为所有模式
|
|
9
|
-
>
|
|
9
|
+
> 注册对应的 Git Bash 版 agent preset。
|
|
10
10
|
|
|
11
11
|
## 它解决什么
|
|
12
12
|
|
|
13
13
|
官方 Windows 组合默认把 `dsh-pwsh-sandbox` 作为 `ctx.shell`(PowerShell 执行器),
|
|
14
14
|
且各 preset 的 `tool-bash` 行在 win32 上被禁用——因为在 Windows 上裸 `bash`
|
|
15
15
|
会解析到 `C:\Windows\System32\bash.exe`(WSL 占位),本插件直接指定
|
|
16
|
-
`C:/Program Files/Git/bin/bash.exe
|
|
16
|
+
`C:/Program Files/Git/bin/bash.exe`。沙箱语义在 POSIX 宿主上完整保留;
|
|
17
|
+
**Windows 宿主上受限模式有一处重要例外——见下方
|
|
18
|
+
[「安全语义:Windows 上的受限模式」](#安全语义windows-上的受限模式)**。
|
|
17
19
|
|
|
18
20
|
安装本插件后:
|
|
19
21
|
|
|
@@ -28,29 +30,15 @@
|
|
|
28
30
|
Git Bash host 下会拿到"暗示 PowerShell 语法的工具",请改用上面的变体;
|
|
29
31
|
已装 dsh-ptc-cordis-preset 的话,`PTC 创造模式` 用户 preset 不受影响。
|
|
30
32
|
|
|
31
|
-
###
|
|
33
|
+
### 宿主要求与 preset 对齐
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
过的目录照旧不碰。
|
|
41
|
-
|
|
42
|
-
### dsh 0.1.6 适配(工作流引擎行改名)
|
|
43
|
-
|
|
44
|
-
dsh 0.1.6-alpha.1 把内置预设的工作流引擎行 `workflow-worker-thread` 改名为
|
|
45
|
-
`workflow-ptc`,并**删除**了旧包。组合里一行 import 失败会拒绝**整棵 preset 挂载**,
|
|
46
|
-
所以把旧名钉死在资产里的 preset 在新版上会直接不可用。本插件两个拼法都不钉:物化时
|
|
47
|
-
**从宿主自己的内置 preset 现场抄**那一行的 id、包名与 `disabled` 状态
|
|
48
|
-
(`rowFormsOf` / `alignEngineRow`),并让 `tool-ralph` 跟随新版默认的 `disabled: true`。
|
|
49
|
-
改写是纯字符串手术(不解析 YAML,`!!js` 安全)且幂等;探测失败(旧宿主、无 roster)时
|
|
50
|
-
资产保持逐字节原样——**一份资产通吃两个 era,升级顺序无关**。
|
|
51
|
-
|
|
52
|
-
同一版还把 `LocalBashExecutor` 的受保护钩子改成了异步:插件的 `runArgv` 结果解包、
|
|
53
|
-
`start` 的返回形态与 `confine` 的取消信号都按**加载期探测**自适应,新旧宿主行为一致。
|
|
35
|
+
自 v0.32.0 起宿主下限为 **dsh >= 0.1.7-rc**(经 peer `@deepseek-ai/dsh` 声明,
|
|
36
|
+
prerelease 含入求值;旧宿主不再支持)。四个变体的行集是 `src/compositions.js`
|
|
37
|
+
里已提交的 JS 数据,镜像官方 0.1.7 的 standard/minimal/ptc/cordis 行切分并叠加
|
|
38
|
+
Git Bash 增量;跟随 dsh 升级的对齐由冒烟测试
|
|
39
|
+
`compositions: full variants mirror the official row split` 锁住。
|
|
40
|
+
**preset id 保持 `code-gitbash` 不变**——会话钉在 id 上,dsh 0.1.2 把内置 `code`
|
|
41
|
+
改名 `ptc` 时本插件的变体 id 就没有跟随(改名会让已固定的会话报 preset not found)。
|
|
54
42
|
|
|
55
43
|
## 安装(公开 npm 插件,推荐)
|
|
56
44
|
|
|
@@ -74,24 +62,59 @@ bundle patch(`cordis.patch.yml`)应用三个改动:
|
|
|
74
62
|
2. 插入 `gitbash-executor`(`dsh-gitbash-shell/shell`):继承官方
|
|
75
63
|
`@deepseek-ai/dsh-bash-sandbox`,仅把内层 argv 换成
|
|
76
64
|
`<git-bash.exe> -c <command>`。沙箱策略/拒绝分类/后台任务/超时/设置节
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
65
|
+
沿用官方实现;full-access 分支单独接 Git Bash(父类那里硬编码裸 `bash`);
|
|
66
|
+
**Windows 上受限分支有一处例外,见下一节**;
|
|
67
|
+
3. 插入 `gitbash-shell`(`dsh-gitbash-shell`):以**声明式注册**
|
|
68
|
+
(`ctx.agentPresets.register`,v0.32.0 起)提供上表 4 个 preset 变体——
|
|
69
|
+
行集是仓库里已提交、可 diff 的 JS 数据(`src/compositions.js`),**不再物化
|
|
70
|
+
任何目录**;旧版本遗留在磁盘上的物化树,启动时仅当 marker 判定为
|
|
71
|
+
「未被用户改过」才单向清理,用户改过的绝不碰。
|
|
82
72
|
|
|
83
73
|
**环境变量**:`bash.exe` 是 host 进程的直接子进程(不经 git-bash 登录壳),完整继承
|
|
84
74
|
系统环境变量与 `DSH_*` 快照,和原来 pwsh 拿到的完全一致。
|
|
85
75
|
|
|
76
|
+
## 安全语义:Windows 上的受限模式
|
|
77
|
+
|
|
78
|
+
**POSIX 宿主**:官方沙箱语义**完整保留**——受限令牌、工作区围栏、拒绝分类,
|
|
79
|
+
与 `@deepseek-ai/dsh-bash-sandbox` 完全一致。本节只讲 Windows。
|
|
80
|
+
|
|
81
|
+
**Windows 宿主上的事实**:`read-only` / `workspace-write` 权限预设下的 **shell 命令**,
|
|
82
|
+
实际以**不受限(unconfined)方式执行**:
|
|
83
|
+
|
|
84
|
+
- **为什么**:MSYS2 运行时无法在 restricted-token 沙箱下启动——`msys-2.0.dll`
|
|
85
|
+
初始化时创建的 cygheap 映射与信号管道,DACL 只含用户 SID;而 WRITE_RESTRICTED
|
|
86
|
+
令牌的二次写检查要求 restricting-SID ACE → 初始化即死于 Win32 error 5 /
|
|
87
|
+
0xC0000142,**任何版本、任何参数都无解**(cmd/pwsh 走匿名管道不受影响)。
|
|
88
|
+
这是 OS 层冲突,插件内没有真正的修法,只有两个选择:**如实标注的绕过**(本插件,
|
|
89
|
+
v0.13.0 起)或**直接拒绝执行**。选了前者,是因为装这个插件的目的就是用 Git Bash——
|
|
90
|
+
静默换 pwsh 顶上、或让每条命令都失败,都不如把真相摆在结果里。
|
|
91
|
+
- **如何标注(绝不静默)**:每条此类结果的元数据携带
|
|
92
|
+
`sandbox: { mode: "<请求的模式>", denied: false, enforcement: "unconfined" }`,
|
|
93
|
+
并在每个进程首次受限调用时打印一行说明日志(`File sandbox enforcement is
|
|
94
|
+
partial on this host.`)。
|
|
95
|
+
- **文件工具不受影响**:read / write / edit / glob / grep 的沙箱是**另一层**
|
|
96
|
+
(fs-tool policy),照常拦截工作区外访问——也就是说 `workspace-write` 下
|
|
97
|
+
shell 能写出工作区、文件工具不能,**两者的边界并不一致**。
|
|
98
|
+
- **可观察的对照**(相对 pwsh-sandbox 时代):会话进程的完整性级别不再被压低
|
|
99
|
+
(Low → Medium);`$env:TEMP` 不再被重定向到 per-session 隔离目录。
|
|
100
|
+
|
|
101
|
+
**如果你需要 shell 也被硬性拦住**(例如不希望模型经 shell 写工作区外的任何路径),
|
|
102
|
+
这个插件在 Windows 上不适合你——卸载即回到 `pwsh-sandbox` 的受限语义,没有中间态。
|
|
103
|
+
`danger-full-access` 预设本来就不受限,装不装本插件行为一致。
|
|
104
|
+
|
|
105
|
+
> 这一取舍的完整分析(含 0.6.0~0.13.1 的故障史与社区两派对比)见 CHANGELOG
|
|
106
|
+
> v0.13.2 与 `src/shell.js` 头注释。
|
|
107
|
+
|
|
86
108
|
## 配置
|
|
87
109
|
|
|
88
110
|
`gitbash-shell` 行(行 id 自 v0.24.0 起与设置命名空间同串;≤ v0.23.0 为 `gitbash-presets`)
|
|
89
|
-
支持 `presets`
|
|
111
|
+
支持 `presets` 数组,只注册你常用的模式(未列出的变体不再进入名录;改动经
|
|
112
|
+
volatile-update 触发重注册):
|
|
90
113
|
|
|
91
114
|
```yaml
|
|
92
115
|
- id: gitbash-shell
|
|
93
116
|
config:
|
|
94
|
-
presets: [standard-gitbash, minimal-gitbash] #
|
|
117
|
+
presets: [standard-gitbash, minimal-gitbash] # 默认注册全部 4 个
|
|
95
118
|
suppressPeerCordis: false # 与 dsh-ptc-cordis-preset 去重,默认关
|
|
96
119
|
```
|
|
97
120
|
|
|
@@ -219,14 +242,11 @@ preset 会被插件自动清理;宿主 shell 回退为 PowerShell。
|
|
|
219
242
|
## 与 dsh-ptc-cordis-preset 联动
|
|
220
243
|
|
|
221
244
|
本插件在 host 上发布 `gitBash` 能力服务(`{ active, bashPath }`,仅 Windows 为 active)。
|
|
222
|
-
[dsh-ptc-cordis-preset](https://github.com/KannaKuron/dsh-ptc-cordis-preset) v0.5.0+
|
|
223
|
-
`PTC 创造模式` 时会检测该信号:两个插件都安装时,**PTC
|
|
245
|
+
[dsh-ptc-cordis-preset](https://github.com/KannaKuron/dsh-ptc-cordis-preset) v0.5.0+ 在注册
|
|
246
|
+
`PTC 创造模式` 时会检测该信号:两个插件都安装时,**PTC 创造模式自动注册为 Git Bash 版**
|
|
224
247
|
(`tool-bash` 启用、`tool-pwsh` 禁用),无需新增模式、无需手工修改 preset;
|
|
225
248
|
只装本插件时 PTC 创造模式保持原样(由它自己的插件管理)。
|
|
226
249
|
|
|
227
|
-
> 切换生效后若 `ptc-cordis` 目录已存在且被旧版本物化,删除
|
|
228
|
-
> `~/.dsh/.agent-presets/ptc-cordis` 并重启,即由新逻辑重新物化。
|
|
229
|
-
|
|
230
250
|
### 去重开关:`suppressPeerCordis`(默认关,v0.25.0)
|
|
231
251
|
|
|
232
252
|
联动生效后,`创造模式 · Git Bash`(本插件的 `cordis-gitbash`)与对方已经 Git Bash 化的
|
|
@@ -245,14 +265,11 @@ preset 会被插件自动清理;宿主 shell 回退为 PowerShell。
|
|
|
245
265
|
|
|
246
266
|
**生效时机**:
|
|
247
267
|
|
|
248
|
-
-
|
|
268
|
+
- **开关是实时的**:走行 Config 的 volatile 通道,对方的能力则经
|
|
249
269
|
`ctx.inject(['ptcCordisPreset'])` 观察(**与插件行激活顺序无关**),两边任一变化都当场
|
|
250
270
|
reconcile——摘掉打日志 `preset 'cordis-gitbash' retired (dsh-ptc-cordis-preset covers Creation
|
|
251
271
|
mode on Git Bash)`,恢复打 `preset 'cordis-gitbash' registered declaratively`。已经挂载的会话
|
|
252
272
|
钉在自己的组合快照上,不受影响;名录变化从新会话开始可见。
|
|
253
|
-
- **旧宿主(dsh ≤ 0.1.6)是启动时判定一次**:旧宿主没有可观察的注册表,能力探测是有界的
|
|
254
|
-
(默认 1s,读不到即视为"对方不覆盖"),所以打开开关后,上一轮物化出来的 `cordis-gitbash`
|
|
255
|
-
目录会被清理;把开关关掉后,该变体要到**下一次启动**才重新物化。
|
|
256
273
|
|
|
257
274
|
**两侧设置卡上是同一份状态**:权威值只有本插件这一行 Config 一份;对方的设置卡通过
|
|
258
275
|
`ctx.configForms.get('gitbash-shell')` **绑定同一行**、写同一个字段(DSH 官方支持编辑另一个
|
package/README_EN.md
CHANGED
|
@@ -5,25 +5,20 @@
|
|
|
5
5
|
[简体中文](README.md) | English
|
|
6
6
|
|
|
7
7
|
> Run **every agent shell command through Git Bash** on Windows with DeepSeek
|
|
8
|
-
> Harness (dsh) — replaces the PowerShell executor and
|
|
8
|
+
> Harness (dsh) — replaces the PowerShell executor and registers Git Bash
|
|
9
9
|
> variants of all four agent presets.
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Host requirement & preset alignment
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
both eras, in either upgrade order**.
|
|
23
|
-
|
|
24
|
-
The same release made `LocalBashExecutor`'s protected hooks asynchronous: the
|
|
25
|
-
`runArgv` result unwrapping, the `start` return shape and the `confine` cancellation
|
|
26
|
-
signal are all probed at load time, so both host generations behave identically.
|
|
13
|
+
Since v0.32.0 the host floor is **dsh >= 0.1.7-rc** (declared through the
|
|
14
|
+
`@deepseek-ai/dsh` peer, prereleases included; older hosts are no longer
|
|
15
|
+
supported). The four variants are committed JS row sets in
|
|
16
|
+
`src/compositions.js`, mirroring the official 0.1.7 standard/minimal/ptc/cordis
|
|
17
|
+
split plus the Git Bash delta; upgrade alignment is locked by the smoke test
|
|
18
|
+
`compositions: full variants mirror the official row split`. **Preset ids
|
|
19
|
+
never change** (`code-gitbash` kept its historical id when dsh 0.1.2 renamed
|
|
20
|
+
the built-in `code` to `ptc` — sessions are pinned to ids, and a rename would
|
|
21
|
+
orphan them).
|
|
27
22
|
|
|
28
23
|
## Install (public npm package)
|
|
29
24
|
|
|
@@ -35,19 +30,6 @@ dsh plugin --profile web add dsh-gitbash-shell
|
|
|
35
30
|
`dsh.bundle` declaration, appends the package to `dsh.profile.bundles`.
|
|
36
31
|
**Restart the profile's host to activate.**
|
|
37
32
|
|
|
38
|
-
## Works with both dsh 0.1.1 and 0.1.2+
|
|
39
|
-
|
|
40
|
-
dsh 0.1.2 renamed the built-in `code` preset to `ptc` (`mode: code` → `mode: ptc`,
|
|
41
|
-
no compatibility aliases) and added new built-in rows (`command-goal`, …). For
|
|
42
|
-
the affected variants (standard/code/cordis) this plugin **ships both committed
|
|
43
|
-
era texts**, probes the built-in roster at every boot, records the choice in
|
|
44
|
-
`.plugin-managed.json` (`base`), and re-materializes automatically when the
|
|
45
|
-
detection flips. `minimal-gitbash`'s built-in base did not change across the
|
|
46
|
-
rename, so one text serves both eras. **Preset ids never change**
|
|
47
|
-
(`code-gitbash` keeps its historical id — sessions are pinned to ids, and a
|
|
48
|
-
rename would orphan them). Either upgrade order converges automatically; directories
|
|
49
|
-
you modified are still never touched.
|
|
50
|
-
|
|
51
33
|
## What it does
|
|
52
34
|
|
|
53
35
|
The bundle patch (`cordis.patch.yml`):
|
|
@@ -56,17 +38,59 @@ The bundle patch (`cordis.patch.yml`):
|
|
|
56
38
|
2. mounts `dsh-gitbash-shell/shell` — a subclass of the shipped
|
|
57
39
|
`@deepseek-ai/dsh-bash-sandbox` whose inner argv is
|
|
58
40
|
`<git-bash.exe> -c <command>` (sandbox policy, denial classification,
|
|
59
|
-
background jobs, and settings behavior all inherited
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
`
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
background jobs, and settings behavior all inherited; **one Windows
|
|
42
|
+
exception for confined modes — see the next section**);
|
|
43
|
+
3. mounts `dsh-gitbash-shell`, which registers the four preset variants
|
|
44
|
+
**declaratively** (`ctx.agentPresets.register`, v0.32.0+) — the row sets
|
|
45
|
+
are committed, diffable JS data (`src/compositions.js`) and **no directory
|
|
46
|
+
is ever materialized**; materialized trees left by older versions are
|
|
47
|
+
cleaned one-way at boot only when the marker proves the user never edited
|
|
48
|
+
them.
|
|
65
49
|
|
|
66
50
|
Environment: `bash.exe` is spawned as a direct child of the host, so it
|
|
67
51
|
inherits the full system environment plus the `DSH_*` snapshot, exactly like
|
|
68
52
|
the pwsh executor did.
|
|
69
53
|
|
|
54
|
+
## Security semantics: confined modes on Windows
|
|
55
|
+
|
|
56
|
+
**POSIX hosts**: the official sandbox semantics are **fully preserved** —
|
|
57
|
+
restricted tokens, workspace fencing, denial classification, identical to
|
|
58
|
+
`@deepseek-ai/dsh-bash-sandbox`. This section is about Windows only.
|
|
59
|
+
|
|
60
|
+
**On Windows**, shell commands under the `read-only` / `workspace-write`
|
|
61
|
+
permission presets actually run **UNCONFINED**:
|
|
62
|
+
|
|
63
|
+
- **Why**: the MSYS2 runtime cannot start under the restricted-token sandbox —
|
|
64
|
+
`msys-2.0.dll` creates its cygheap mapping and signal pipe with DACLs naming
|
|
65
|
+
only the user SID, while a WRITE_RESTRICTED token's pass-2 write check
|
|
66
|
+
demands a restricting-SID ACE, so init dies with Win32 error 5 / 0xC0000142
|
|
67
|
+
before argv ever runs — **every version, no workaround** (cmd/pwsh use
|
|
68
|
+
anonymous pipes and are unaffected). This is an OS-level conflict with no
|
|
69
|
+
in-plugin cure; the two options are **a labelled bypass** (this plugin,
|
|
70
|
+
since v0.13.0) or **refusing to run at all**. The former was chosen because
|
|
71
|
+
installing this plugin means wanting Git Bash — silently falling back to
|
|
72
|
+
pwsh, or failing every command, is worse than putting the truth in the result.
|
|
73
|
+
- **How it is labelled (never silent)**: every such result carries
|
|
74
|
+
`sandbox: { mode: "<requested mode>", denied: false, enforcement: "unconfined" }`,
|
|
75
|
+
plus a one-time notice per process (`File sandbox enforcement is partial on
|
|
76
|
+
this host.`).
|
|
77
|
+
- **File tools are NOT affected**: the read / write / edit / glob / grep
|
|
78
|
+
sandbox is a **separate layer** (the fs-tool policy) and still fences
|
|
79
|
+
out-of-workspace access. Under `workspace-write` the shell can write outside
|
|
80
|
+
the workspace while file tools cannot — **the two boundaries differ**.
|
|
81
|
+
- **Observable differences** vs the pwsh-sandbox era: the session process's
|
|
82
|
+
integrity level is no longer lowered (Low → Medium), and `$env:TEMP` is no
|
|
83
|
+
longer redirected to a per-session directory.
|
|
84
|
+
|
|
85
|
+
**If you need the shell itself hard-fenced too** (e.g. the model must not
|
|
86
|
+
write anywhere outside the workspace through the shell), this plugin is not
|
|
87
|
+
for you on Windows — uninstalling restores `pwsh-sandbox`'s confined
|
|
88
|
+
semantics; there is no middle ground. The `danger-full-access` preset is
|
|
89
|
+
unconfined by design either way.
|
|
90
|
+
|
|
91
|
+
> The full analysis (the 0.6.0–0.13.1 failure history and the community's two
|
|
92
|
+
> camps) is in the CHANGELOG under v0.13.2 and in the `src/shell.js` header.
|
|
93
|
+
|
|
70
94
|
## Config
|
|
71
95
|
|
|
72
96
|
The `gitbash-shell` row (its id has matched the settings namespace since v0.24.0; it was
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-gitbash-shell",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"description": "Windows 全模式 Git Bash:用 Git for Windows bash 替换 PowerShell 执行器,声明式注册 standard/minimal/code/cordis 的 Git Bash 变体 preset(preset id 永不变)。联动:dsh-ptc-cordis-preset(两者同装时 PTC 创造模式带 Git Bash 行且可去重)+ dsh-better-sidebar(终端 UI 标签与模型 terminal_* 工具自动切到 Git Bash)。",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-gitbash-shell",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Windows 上让 agent 的每条 shell 命令改经 Git for Windows bash 执行;物化四个内置预设的 Git Bash 变体,统一 MSYS 盘根路径方言,侧栏终端接管可开关。· Run every agent shell command through Git for Windows bash on Windows; materialize Git Bash variants of the built-in presets, unify the MSYS drive-root path dialect, and adopt the sidebar terminal behind a switch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|