0x1a27/dsh-pwsh-direct
0x1a27★ 0JavaScript最后同步: 2026-08-19
DSH Desktop(Windows)内置 pwsh/shell 空结果 bug 修复 + pwsh_direct 直启兜底工具
README 摘要
dsh-pwsh-direct DSH Desktop(Windows)内置 pwsh / shell 工具"空结果"bug 的修复插件,提供两层能力: 1. 自愈(根治) :每次 DSH 启动时把已安装的 dsh-subprocess-local (安装目录副本 + 全部 profile 副本)打上补丁,在沙箱 runner 的 spawn 环境注入 ELECTRON RUN AS NODE=1 。重启 DSH Desktop 后内置 pwsh / shell 即恢复。 2. pwsh direct 兜底工具(绕路) :在重启生效前的窗口期、或 DSH 升级冲掉补丁后,可直接用 pwsh direct spawn PowerShell 可执行文件,完全绕过 DSH 子进程服务层。 版本 0.2.0 (2026-08-19,全链路验证通过)。可分发 zip 由 release/dsh-pwsh-direct 源码重建(zip 不入库,重建步骤见 release/README.md ),包已具备 npm 发布条件(见"npm 发布")。 症状(本插件修复的对象) DSH Desktop(服务器内嵌于 Electron 主进程)中调用内置 pwsh / shell 时返回 完全空结果 :命令没有执行、没有任何副作用(文件不创建、进程不启动),GUI 显示空白或 "(no output)"。 需求 / 兼容性 项 要求 平台 Windows(自愈的安装副本目标是 Program Files 路径; pwsh direct 的 PATH 解析与进程树杀法面向 Windows) DSH Desktop 服务器内嵌 Electron 主进程、bundle 解包到 resources\app.asar.unpacked 的当前标准安装形态 Node = 20(见 package.json 的 engines ) PowerShell pwsh 7+ 优先;缺失时回退 Windows PowerShell 5.1(含 System32 规范路径) 写权限 DSH Desktop 安装目录 + /.dsh/profiles/ (实测安装目录可写;若出现 write-failed 需以管理员身份操作一次) 必需 peer(声明为 optional) @deepseek-ai/dsh-tools —— 由 DSH 宿主环境(dsh CLI 树 / profile)提供,不随本插件捆绑;npm 已发布 0.0.1-rc.1 ,但声明为 optional peer 后 pnpm/npm 不自动安装(避免注入 shadow copy 遮蔽宿主捆绑版本);所有锚点均解析失败时插件自动禁用,不阻塞 DSH 启动 可选 peer(声明为 optional) @chaggle/dsh-powe…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 183,476
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,499
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 18,022