dsh-win32 — 极简模式终于能在 Windows 上跑了(持久 Git Bash)| Real Minimal mode on Windows #1832
Replies: 4 comments
|
v0.2.0 出了。修复了一个 v0.1 的实际缺陷。取消运行中的命令时,harness 会向前台进程组发 SIGINT,而 Windows 没有进程组,这条路会把会话打成 transport failure。v0.2 改为把键盘等价信号直接注入 PTY(Ctrl-C / Ctrl-Z,ConPTY 惯例),Git Bash 会把 ^C 转成 SIGINT 发给前台任务。windows-latest CI 上实测中断 |
|
极简模式在 Windows 跑起来(持久 Git Bash/PTY)——补上了官方 subprocess 在 win32 的缺口。极简预设是模型对齐最好的,Windows 用户之前确实只能干看。 已收录进手册生态章节 + 第 2 章(预设说明):https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/07-ecosystem.md |
|
感谢收录到手册!确实,极简模式对齐最好但 Windows 用户进不了门,就是做这个的原因。后续版本更新(刚出的 v0.3 一行安装、ACL 沙箱实测等)我会持续在这个帖子里同步,手册如需任何配合随时说。 |
|
v0.4.0 出了,两个「此前没人做到」的东西。 沙箱内的持久 shell。 MSYS bash 在 workspace-write 受限令牌下启动即死(实测签名 旧编码读取。 官方 fs 对 GBK/UTF-16 文件直接 升级命令 |
Uh oh!
There was an error while loading. Please reload this page.
大家好。给 Windows 用户带来一个东西。
大家都知道极简模式(Minimal)是模型对齐得最好的预设,但它在 Windows 上根本起不来。持久 bash 需要 PTY,而官方 subprocess 运行时在 win32 上解析进程探测器时直接抛
terminal inspection is unsupported on platform win32,连 node-pty 都没碰到。dsh-win32 补上了这个缺口。
minimal-windows预设。忠实复刻官方极简模式,唯一改动是 PTY shell 换成你机器上的 Git Bash。安装两条命令。
实证。CI 跑在真实 windows-latest 上,经这个运行时拉起持久 Git Bash PTY,第一次调用
STATE=x,第二次echo $STATE,状态保留。真实模型会话里也验证过两次工具调用之间变量和 cwd 都活着。已知限制也写在 README 里了。前台中断降级(v0.2 计划 Ctrl-C 注入)、ACL 沙箱下未验证。基于 rc.6 开发,rc 更新会快速跟进。
仓库 https://github.com/sjh9714/dsh-win32
English summary. The Minimal preset never ran on Windows because the stock subprocess runtime throws before reaching node-pty. dsh-win32 supplies the missing win32 process inspector, a faithful minimal-windows preset on Git Bash, and a doctor for the known install traps. Proven on windows-latest CI, state survives across persistent-shell calls. Two commands to install, repo above.
All reactions