← 返回列表
D

dsh-win-multi-bash

v0.1.0 · 0 天前发布

Windows multi-bash plugin for dsh: git_bash / wsl_bash model tools plus a shell-select executor routing the single ctx.shell seat across Git Bash, WSL and pwsh (pwsh stays the default).

dsh-pluginwindowsbashgit-bashwslshell-select

README

English | 中文

dsh-win-multi-bash

适用于 DeepSeek Harness 的 Windows multi-bash 插件:git_bash / wsl_bash 模型工具 + shell-select 执行器,在唯一的 ctx.shell 席位上路由 Git Bash、WSL 与 pwsh。pwsh 保持默认,未调用 bash 系工具前现有行为完全不变。

功能一览

| 工具名 | 后端 | 方言 | 说明 |
| --- | --- | --- | --- |
| git_bash | git-bash | MSYS | request.shell: 'git-bash',Git for Windows 工具链 |
| wsl_bash | wsl-bash | Linux | request.shell: 'wsl-bash',WSL 发行版内 Linux userland |
| pwsh(原有) | pwsh | — | 选择器默认路由,行为与未装插件时完全一致 |

  • shell-select 占据唯一的 ctx.shell 席位,按 request.shell ?? default 路由;default 保持 pwsh。

  • 可执行文件解析与沙箱探测全部惰性化:未安装 Git Bash / WSL 不影响 pwsh,首次使用时才响亮报错。

  • Git Bash 自动查找,顺序为:显式 gitBash.bashPath → 常见 Program Files 位置 → PATH 上的 bash.exe(绝不选 Windows 的 WSL 启动器 System32\bash.exe——本工具是 MSYS 而非 WSL)
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-win-multi-bash
    Repo
    git+https://github.com/Dinosaur-MC/dsh-win-multi-bash.git
    Engines
    {"node":"^22.19.0 || >=24.0.0"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}