DeepSeek Harness Plugin

SherlockGougou/dsh-harmony#dsh-plugin

Stars ★ 0 Category Development & Runtime Added 2026-12-01

HarmonyOS development for DSH with HDC device discovery, screenshots, UI automation and logs, hvigor/ohpm builds, ArkTS checks, offline documentation search, and a right-sidebar device panel. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

# from a prebuilt release tarball

dsh plugin --profile web add -w "https://github.com/SherlockGougou/dsh-harmony/releases/download/v0.1.0/dsh-harmony.tgz"

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:SherlockGougou/dsh-harmony#path:/packages/dsh-plugin

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

DSH 的 HarmonyOS 工具与 Skill 插件。安装后注册:

  • harmony_doctor
  • harmony_project
  • harmony_create
  • harmony_config
  • harmony_auth_status
  • harmony_signature_generate
  • harmony_build
  • harmony_run
  • harmony_device_list
  • harmony_device_info
  • harmony_emulator
  • harmony_app_list
  • harmony_app_info
  • harmony_app_control
  • harmony_screenshot
  • harmony_log
  • harmony_docs_search
  • harmony_docs_read
  • harmony_docs_catalog
  • harmony_check_arkts
  • harmony_check_lint
  • harmony_check_compat
  • harmony_ui_layout
  • harmony_ui_find
  • harmony_ui_wait
  • harmony_ui_gesture
  • harmony_ui_key
  • harmony_ui_click
  • harmony_ui_text
  • harmony-device Skill
  • harmony-arkts Skill
  • 会话头“设备”入口和 DSH 右侧栏“HarmonyOS 设备”面板(选择设备、刷新取帧、保存/复制/附加、充电时保持亮屏)

安装

pnpm build
dsh plugin --profile desktop add ./packages/dsh-plugin

从 GitHub Release 安装预构建包(自带轻量 @dsh-harmony/harmony-docs,不要求 npm 发布):

dsh plugin --profile desktop add \
  https://github.com/SherlockGougou/dsh-harmony/releases/latest/download/dsh-harmony.tgz

环境

离线文档随 @dsh-harmony/harmony-docs 安装;文档工具优先读取随包资产,缺失时回退 devecocli。上游 npm 包声明 MIT,本项目保留上游许可和来源版本。 插件按以下顺序查找文档资产:

  1. DSH_HARMONY_DOCS_ROOT
  2. @dsh-harmony/harmony-docs
  3. $DSH_HOME/plugin-data/dsh-harmony/docs/ 缓存

DSH_HARMONY_DOCS_ROOT 可指向自定义文档目录;没有可用资产时,文档工具回退 devecocli。

HDC 按以下顺序解析:

  1. HDC_PATH
  2. $DSH_HOME/plugin-data/dsh-harmony/config.json 的 hdcPath
  3. PATH 中的 hdc
  4. DEVECO_SDK_HOME / OHOS_SDK_HOME / HOS_SDK_HOME
  5. 已安装的 HarmonyOS SDK 和 DevEco Studio/CLT

devecocli 是可选后端,按以下顺序解析:

  1. DEVECO_CLI_PATH
  2. $DSH_HOME/plugin-data/dsh-harmony/config.json 的 devecoCliPath
  3. PATH 中的 devecocli
  4. @deveco/deveco-code 内置的 devecocli
  5. DevEco Code Offline 资源目录

构建优先直接使用 DevEco Studio/CLT 的 hvigor/ohpm;设备、截图、日志、应用生命周期和 UI 优先直接使用 HDC;CodeLinter/API compat 优先使用本地 Studio/CLT 组件。auth、signature、emulator、apply/hotreload 仍使用 devecocli。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.