@morlay/dsh-desktop-shell

版本 0.2.13发布 2026-11-12仓库 morlay/dsh-plugin
3/4装得上 · 启动通过

dsh 桌面应用的 Electron 壳:服务应用自己的 :// 协议,经字节管道(FD 3/4)把 desktop profile 交给 host 子进程 @morlay/dsh-desktop-host 启动,并在首

开发与运行时周下载 68依赖 3peer 3MIT
pnpm add @morlay/dsh-desktop-shell

安装前须知

Node 要求
>=24.11.0
package.json engines
peer 依赖
3 个
由宿主提供,不随包安装
宿主服务
无需额外服务
装完由真宿主启动一次
入口 / 补丁
./main.mjs
bundle 未声明 · 无 patch

四段检测

逐层记录
收录门槛通过
manifest 是否声明 DSH 依赖或 dsh.bundle
离线审查未通过
静态结构包内清单、补丁文件与入口声明是否完整
无 high / critical 命中
未通过
配置组合装入一次性 DSH_HOME 后配置树能否合并通过
源码审查静态阅读源码,检查危险调用与数据外发
计数单位 finding,非包数。
通过
真机安装通过
真机执行 pnpm 安装,退出码为 0 且 node_modules 生成
实测宿主版本 0.2.2-rc.5
加载实测通过
安装完成后由真实宿主启动一次,检查入口是否激活

检测结论明细

共 12 次命中
收录判定1 条规则 · 1 次命中
发布者与仓库所有者不同l0-author-repo-differs
静态结构4 条规则 · 6 次命中
改写 shell 启动脚本×3shell-profile-tamper
src/shell-env.ts:7return "~/.bashrc";
启动子进程child-process-spawn
dist/seed-Z7k1Wt9H.mjs:39const child = spawn("tar", [
代码中存在外部 URLremote-url-reference
src/index.ts:502http://127.0.0.1${DESKTOP_STREAM_PATH}
改写 shell 启动脚本shell-profile-tamper
src/__tests__/shell-env.spec.ts:67expect(rcFileFor("bash")).toBe("~/.bashrc");
源码审查2 条规则 · 4 次命中
Package exited non-zero×2l3.nonzero-exit
state/runs/morlay-dsh-desktop-shell/0.2.13/L3/result.json
Threw an uncaught exception×2l3.runtime-error
state/runs/morlay-dsh-desktop-shell/0.2.13/L3/events.jsonlCannot find module 'E:\DSHPWeb\state\runs\morlay-dsh-desktop-shell\0.2.13\L3\work\index.js'
安装实测1 条规则 · 1 次命中
未声明 dsh.bundle,装上也只会作为普通依赖,不会进 profilel4.compose-not-a-bundle

依赖结构

6 项
@deepseek-ai/dsh-util-crypto直接依赖随包安装
@deepseek-ai/dsh-util-values直接依赖随包安装
@morlay/dsh-desktop-host直接依赖随包安装
@deepseek-ai/dsh-app-bootpeer由宿主提供
@deepseek-ai/dsh-atomic-writepeer由宿主提供
@deepseek-ai/dsh-client-shortcutspeer由宿主提供