← 返回列表
C

@omdp/dsh-gitbash-win

v0.1.3 · 2 天前发布

Git Bash tool plugin for DeepSeek Harness on Windows: registers a global `gitbash` tool that runs commands via Git for Windows bash.exe. Lightweight, no node-pty, no WSL, sandbox-aware.

dshdsh-plugindeepseek-harnessbashgit-bashgitbashwindowscordis

README

@omdp/dsh-gitbash-win

DSH (DeepSeek Harness) 全局 Git Bash 工具插件(Windows)。

注册一个全局 gitbash 工具:通过 Git for Windows 的 bash.exebash -c)执行命令,
让模型在 Windows 上获得真正的 POSIX shell —— 无需 WSL、无需 node-pty、轻量无负担。

Windows 上推荐使用 Git Bash:提供标准的 grep/sed/awk/管道/通配符等 POSIX 环境,

模型在这种环境下训练效果更好(对齐 Unix 语义,可迁移到 Linux/macOS)。

特性

  • 全局可用:注册为 gitbash 工具,与 pwsh 平级,任何会话/预设都能用(不需要选预设)

  • 轻量:无 node-pty、无 WSL、无额外运行时依赖(只复用 DSH 官方 seam 包)

  • 沙箱感知:受限模式走 sandbox provider 的 confine;被拒时给出升级提示(danger-full-access)

  • 超时控制:SIGTERM → grace → SIGKILL 进程树终止

  • 输出截断:溢出时写 spill 文件,不丢输出

  • 后台任务run_in_background / job_output / job_kill

  • 卡片 UI:Web UI 里 gitbash 调用显示专属终端卡片
  • 安装

    bash
    dsh plugin --profile web add @omdp/dsh-gitbash-win

    然后重启 dsh web。插件通过 dsh.bundle(包内 `cordi

    查看完整 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
    @omdp/dsh-gitbash-win
    Repo
    git+https://github.com/XJungit/omdp.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"}}