dsh-plugin
DayuanJiang/next-ai-draw-iodsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
DSH 桌面端的「应用启动器」插件:自动扫描本机已安装的电脑应用,在侧边栏「设置」图标上方提供一键启动,像 Windows 开始菜单一样方便。
将本仓库克隆或解压到本地后:
dsh plugin --profile <profile> add link:<本目录绝对路径>
dsh-applauncher 复制到 DSH 的 profile 依赖目录:
C:\Users\<用户名>\.dsh\profiles\<profile>\node_modules\dsh-applauncher~/.dsh/profiles/<profile>/node_modules/dsh-applauncherprofiles/<profile>/package.json:
dependencies 中加入 "dsh-applauncher": "0.1.0"dsh.profile.bundles 数组中追加 "dsh-applauncher"提示:
<profile>为你的 DSH 配置文件名称,可在~/.dsh/profiles/目录下查看;DSH Home 目录默认是~/.dsh。
插件沿用 DSH 的「宿主 + 客户端」双半边结构,全程零 Node 依赖、零构建:
lib/index.js):运行在 DSH 宿主进程
WScript.Shell 解析 .lnk + 注册表)扫描本机应用System.Drawing 提取应用图标(PNG)/dsh-applauncher/* 路由widget.js):注入到 DSH Web 界面
tapIndex 注入脚本 + DOM 注入侧边栏按钮(MutationObserver 自愈)~/.dsh/dsh-applauncher/config.json。explorer)启动,以普通用户权限运行,不会继承 DSH 的管理员权限。