在设置页一键创建 Windows 桌面快捷方式:为 DeepSeek Harness 或任意本地服务生成 .cmd 启动器与桌面图标,自动打开浏览器、可固定任务栏。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Yvesgao/dsh-desktop-launcher
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
功能
把「打开 PowerShell → 敲命令 → 再开浏览器」变成双击一下。在 设置 → Desktop Shortcut 里填一个小表单,插件自动完成:
- 生成
.cmd启动器 —— 在控制台窗口里启动命令、等 URL 就绪后自动打开默认浏览器、保持窗口存活(关窗即停服);服务已在运行则直接打开浏览器。 - 创建桌面
.lnk快捷方式 —— 指向启动器(DeepSeek Harness 用 Node.js 图标)。 - 尝试固定到任务栏 —— 目标类型无法程序化固定时,打印「固定运行中窗口」的兜底指引(永远有效)。
核心逻辑由打包内置的、自包含的 assets/New-DesktopShortcut.ps1 完成(零外部依赖,也可独立运行)。
能力清单
| 能力 | 说明 |
|---|---|
| 设置页 UI | settings.section「Desktop Shortcut」:名称 / 命令 / URL / 工作目录表单 |
| Host JSON API | POST /plugins/desktop-shortcut/api/install 执行 PowerShell 引擎;.../status 上报平台 |
| 启动器生成 | 带端口检查的 .cmd,自动开浏览器,兼容「已在运行」场景 |
| 任务栏固定 | 尽力程序化固定 + 「固定运行中窗口」兜底指引 |
安装(bundle 形态,需重启 web)
# git 源(lib/ 已入库)
dsh plugin --profile web add github:Yvesgao/dsh-desktop-launcher#main
# 或 npm
dsh plugin --profile web add dsh-desktop-launcher
重启 web(dsh web)后,打开 设置 → Desktop Shortcut,填好表单点 Create desktop shortcut 即可。
仅支持 Windows —— PowerShell 引擎是 Windows 组件。设置页在所有平台都会出现,但在非 Windows 平台会报错提示。
开发
pnpm install
pnpm build # tsc(host lib)+ tsdown(client bundle lib/client.js)
pnpm typecheck
官方插件开发契约与可参考的社区插件源码已收集在 docs/references/。
插件管理
已装插件推荐用 plugin-registry 的薄控制台管理(浏览器面板):bundle 层栈 + insert 行 + 启停,无需手改配置。
dsh plugin --profile web add <plugin-registry>/packages/plugin/console
截图
发布前在此补充设置页截图(docs/preview/settings.png)。
License
MIT
English
What it does
Turns "open PowerShell, type a command, then open the browser" into a double-click. From Settings → Desktop Shortcut you fill in a small form and the plugin:
- Generates a
.cmdlauncher — starts the command in a console window, waits for the URL to respond, opens your default browser, and keeps the window open (closing it stops the server). If the server is already running it just opens the browser. - Creates a desktop
.lnkshortcut pointing at the launcher (Node.js icon for DeepSeek Harness). - Attempts to pin the shortcut to the taskbar and prints manual fallback steps when the target type cannot be pinned programmatically.
The heavy lifting is done by the bundled, self-contained assets/New-DesktopShortcut.ps1 (no external dependencies, works standalone too).
Capabilities
| Capability | Description |
|---|---|
| Settings UI | settings.section "Desktop Shortcut" with a name / command / URL / workdir form |
| Host JSON API | POST /plugins/desktop-shortcut/api/install runs the PowerShell engine, .../status reports platform |
| Launcher generation | Port-checked .cmd that auto-opens the browser and handles the already-running case |
| Taskbar pin | Best-effort programmatic pin with the always-works "pin the running window" fallback instructions |
Install (bundle, requires web restart)
# from a git repo (lib/ committed)
dsh plugin --profile web add github:Yvesgao/dsh-desktop-launcher#main
# or from npm
dsh plugin --profile web add dsh-desktop-launcher
Restart the web UI (dsh web). Then open Settings → Desktop Shortcut, fill the form and click Create desktop shortcut.
Windows only — the PowerShell engine is a Windows component. The Settings section appears on all platforms but reports an error when run elsewhere.
Development
pnpm install
pnpm build # tsc (host lib) + tsdown (client bundle lib/client.js)
pnpm typecheck
Reference contracts (official plugin development guide + a working community plugin) are collected under docs/references/.
Plugin management
Manage installed plugins with the plugin-registry thin console (browser panel): bundle layer stack + insert rows + enable/disable, no manual config edits.
dsh plugin --profile web add <plugin-registry>/packages/plugin/console
Screenshot
Add a screenshot of the Settings section here (docs/preview/settings.png) before publishing.
License
MIT
链接
同类插件
superdesigndev/treg★ 423
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
Lum1104/dsh-browser★ 184
Chrome 侧边栏扩展,让 DSH 直接操控你的浏览器,无需视觉能力。
zhaoolee/notes★ 141
将 DSH 对话导出为锤子便签风格 PNG,或在配置的账号工作区中新建和更新 Markdown 便签。
liustack/modsearch★ 107
纯文本 agent 的联网搜索桥:搜索网页与 X,返回结构化 JSON 证据(search/fetch/引用)。
taxueseek/argo★ 89
专为 agent 打造的搜索工具:多语言,覆盖中文/英文/学术/代码/购物/金融/新闻/百科。
Vladimir-Human/ru-marketplace-mcp#dsh★ 63
面向俄罗斯十家电商平台的技能与可选 MCP 行:跨 Wildberries、Detsky Mir、Yandex Market 比价,以及各平台的搜索、商品卡与评论。安装后 13 个技能立即可用;两行 MCP 默认关闭,需将 RU_MARKETPLACE_MCP_DIR 指向本地克隆,该克隆需要 Python 3.12+ 与 uv。