SpookyWaste/dsh-bash-native ↗★ 3
dsh-bash-native
dsh-bash-native: a Windows-native POSIX bash executor for the DSH shell seam, with engine resolution and DSH's three-tier file sandbox honored. 适合在 Windows 环境下需要安全执行 POSIX 脚本的 DSH 用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SpookyWaste/dsh-bash-native配置
除下表外,执行预算继承自 @deepseek-ai/dsh-bash-local:cwd、timeoutMs、maxTimeoutMs、maxOutputBytes、maxSpillBytes、graceMs,默认值与上限由那一侧的 schema 单一出处提供。
| 键 | 默认 | 含义 |
|---|---|---|
confine | true | 是否服从 ctx.sandbox;关闭即放弃文件策略与拒绝标记 |
requireEngineOnLoad | false | 无引擎时是加载失败,还是每次调用失败(两个预设都设 true) |
promptSection | true | 是否贡献模型可见的环境契约小节 |
promptDetail | full | 保留的兼容键:契约只剩两句后,两个取值产出同一段文字,设或不设都一样 |
toolsDir | '' | POSIX 工具链目录;空 = 先看每用户目录里自建的那份(%LOCALAPPDATA%\dsh-bash-native\tools\bin),没有程序就用随包工具链。填了则照用,空目录也算数(不会悄悄换成随包那份) |
bashPath | '' | 引擎绝对路径;空 = 按解析顺序找 |
bundledEngineDir | '' | 自带引擎目录,先探 brush.exe 再探 bin/brush.exe |
rcFile | '' | 持久 PTY 会话读的启动文件;空 = %LOCALAPPDATA%\dsh-bash-native\bash-native-rc.sh |
denialSignatureAdditions | ['os error 5'] | 追加的拒绝签名,默认值让非英文 Windows 也标得出拒绝 |
shellEnvOverrides | {} | 追加环境变量,层叠在模型友好默认值之上 |
verifyArtifacts | 'stamped' | 校验力度:stamped 只在产物或运行副本的 size/mtime 变化时重新哈希;always 每次解析都哈希(引擎 31 MB、工具链 76 MB) |