DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

TerricSH /

dsh-app-launcher

仅 Topic 仓库

这个仓库还没有填写简介。

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@0b4241e9

@terricsh/dsh-app-launcher

Workspace launcher for the DeepSeek Harness Web GUI.

Adds a split control to the session header's right-aligned utilities row (beside session export):

  • 主按钮「打开」:以文件夹形式打开当前工作区(资源管理器)。
  • 「命令行」:在当前工作区目录打开一个 cmd 窗口(cmd /k,窗口保持), 方便直接执行命令。
  • 右侧「▾」下拉:切换用其他工具打开工作区,如 VS Code(code)、 opencode、Cursor——仅显示本机实际安装的工具;也可在「管理工具…」中 自行添加/删除(名称 + 命令,支持可执行文件名或完整路径)。
  • 菜单与按钮显示 Windows 系统图标(文件夹图标取自 shell32.dll; 工具图标从其真实 exe 提取)。

Installation

Add the plugin row to the host patch layer (e.g. $DSH_HOME/profiles/<profile>/cordis.patch.yml):

- insert:
    - id: app-launcher
      name: '@terricsh/dsh-app-launcher'

Install the package where the profile can resolve it (the profile's node_modules, e.g. via a junction to a local checkout), then restart the dsh web server.

How it works

  • Host half (lib/index.js) registers three HTTP routes:
    • POST /dsh-launcher/launch — { kind: 'folder', path } opens the folder in Explorer; { kind: 'terminal', path } opens a persistent cmd /k window at the path; { kind: 'tool', command, path } resolves the real .exe (skipping .cmd/.bat shims so no extra console window appears) and starts it with Start-Process <exe> "<path>" (falling back to the raw command for terminal tools such as opencode).
    • POST /dsh-launcher/check — probes where.exe for a command.
    • POST /dsh-launcher/icon — extracts the folder icon from shell32.dll or a tool's associated icon and returns it as a PNG data URL (cached).
  • Client half (lib/client.js) renders the split launcher into conversation.session.header.utilities, derives the current workspace from the session/workspace snapshots, and calls the routes with fetch.

Launching is an explicit desktop action, so the host executes it with the danger-full-access sandbox policy (the deployment default workspace-write has no usable Windows ACL runner on this host).

Windows only. Requires the shell and sandboxPolicy services (shipped with the default web profile).

License

MIT

—/ 5

暂无评分

需要先验证清单

Commit 0b4241e99a6d

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于