dsh-agent-desktop

把需另行安装的 agent-desktop CLI(`npm i -g agent-desktop`)封装成 9 个 DSH 工具(ad_status、ad_list_windows、ad_snapshot、ad_find、ad_click、ad_type、ad_press、ad_launch、ad_close_app),让 Agent 直接列窗口、读无障碍树、按快照 ref 点击、输入文本、发送按键、启动与优雅关闭应用。插件本身不含自动化逻辑,只做参数校验、调用 CLI、解析 JSON 信封;ref 过期时要求调用方重新快照,不自动重试,避免误点。

插件介绍

把需另行安装的 agent-desktop CLI(`npm i -g agent-desktop`)封装成 9 个 DSH 工具(ad_status、ad_list_windows、ad_snapshot、ad_find、ad_click、ad_type、ad_press、ad_launch、ad_close_app),让 Agent 直接列窗口、读无障碍树、按快照 ref 点击、输入文本、发送按键、启动与优雅关闭应用。插件本身不含自动化逻辑,只做参数校验、调用 CLI、解析 JSON 信封;ref 过期时要求调用方重新快照,不自动重试,避免误点。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:mjnn/dsh-agent-desktop

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。