dsh-wsl-bridge
Native WSL execution for DeepSeek Harness on Windows: persistent Linux bash, Linux-path file and search tools, and a WSL session mode that asks which distribution folder to use as the workspace. No extra web server and nothing to install inside the distribution. 适合在Windows上使用DSH、需要直接操作WSL Linux环境的用户。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TGWgulugu/dsh-wsl-bridge配置
改插件行的 config(cordis.patch.yml,或 profile 里覆盖它的补丁)。字段都可以省略。
| 字段 | 默认 | 说明 |
|---|---|---|
distro | '' | 发行版名。空字符串表示系统默认发行版 |
timeoutMs | 120000 | bash / wsl_bash 的默认时限(毫秒) |
fileTimeoutMs | 30000 | 读、写、搜索的单次时限(毫秒) |
maxFileBytes | 2097152 | read / edit 最多读取的字节数 |
defaultWorkdir | session | 宿主 wsl_* 工具的 session 是当前 Windows 会话目录。WSL 模式的 session 是你选的工作区。home 使用当前发行版的 $HOME。也可以填绝对 Linux 路径 |
dangerGuard | true | 拒绝明显的破坏性命令,除非该次调用带 allowDangerous: true |
backgroundJobs | true | 是否允许 runInBackground。宿主没有任务注册表时会明确拒绝 |
promptSection | true | 是否加入宿主会话的路由提示 |
promptOrder | 3260 | 这段提示的排序 |
promptText | '' | 用来替换内置路由提示。空字符串表示用内置文本 |
selfCheck | false | 挂载时探测一次 WSL。也可以设环境变量 DSH_WSL_BRIDGE_SELFCHECK=1 |
selfCheckMarker | '' | 把探测结果追加到这个文件。也可以设 DSH_WSL_BRIDGE_MARKER |
破坏性命令清单包括递归删除、写块设备、关机、find -delete、git clean -fdx。这是固定名单,不是内核隔离;换一种写法仍可能绕过。