bugmaker2/dsh-plugin-template
用于DeepSeek-Harness插件开发的模板。
Project Overview项目介绍
This repository is a complete starter template for building native DeepSeek Harness (DSH) plugins, designed exclusively for DSH plugin development. It includes preconfigured scaffolding for both the host plugin that exposes a remote service and the client plugin that mounts the remote to a React view. Out of the box, it comes with type checking, linting, unit tests, CI workflows, and all required publishing metadata already wired up. It already includes all required DSH-native manifest files in the repository root, so you don’t have to create these core configuration files from scratch.
The template includes a working sample greet remote service to demonstrate how the plugin system works. The host side combines a configurable prefix with an input name to generate the string "Hello, <name>", and the client side renders this result in a new "Greet" tab in the DSH session UI. This sample gives you a clear reference for how host and client plugins interact through DSH's remote system. After you fork the template, you can replace the sample code with your own plugin logic in just a few steps. Before you start writing your own code, you can install the sample plugin to test how it works in your local DSH instance.
To develop or use this template, you need to meet a few basic environment requirements. You must have Node.js version 22.19 or newer, pnpm version 9 or newer, and DeepSeek Harness version 0.1.0-rc.6 or newer installed on your system. If you are installing a forked copy of the template from Git with pnpm 10 or newer, you will need to add an entry to your pnpm workspace configuration to allow the build to run during installation. This repository is released under the permissive MIT open source license, so you can use it for any personal or commercial purpose free of charge.
这是一个用于创建原生 DeepSeek Harness 插件的完整模板,同时包含了暴露远程服务的宿主端插件,以及将远程服务挂载到 React 视图的客户端插件。开箱即用自带了类型检查、代码规范检测、单元测试、持续集成流程,以及完整的发布元数据配置,开发者可以直接基于它开发新的 DSH 插件,满足插件开发的全流程规范要求。
模板自带了一个示例 greet 远程服务,宿主端会根据可配置的前缀拼接生成问候语,客户端会在会话栏新增一个Greet标签页展示结果。如果你想要开发一个全新的DSH原生插件,只需要基于这个模板修改,替换示例代码,调整对应配置项即可快速起步,所有基础依赖都已经预先配置好,不需要开发者从零搭建项目结构。
使用本模板开发插件需要满足基础环境要求:Node.js 版本不低于 22.19,pnpm 版本不低于 9,DeepSeek Harness 版本不低于 0.1.0-rc.6。你可以从本地检出或者从Git仓库直接安装,也可以按照文档指引重命名包后发布自己的新DSH插件。本项目采用MIT许可证开源,免费供个人和商业使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-template(bugmaker2/dsh-plugin-template)
仓库:https://github.com/bugmaker2/dsh-plugin-template
本站详情页:https://www.yhbd.top/plugins/bugmaker2-dsh-plugin-template/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 110 · 最近提交 2026-08-27 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:you/dsh-plugin-template
把 bugmaker2/dsh-plugin-template 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-template
English | 中文
A complete dual-side DeepSeek Harness plugin template. It demonstrates the full plugin surface — a host plugin exposing a Typert Remote, and a client plugin mounting that Remote into a React view — with type-checking, linting, unit tests, CI, and publishing metadata wired up.
Out of the box it registers a greet Remote: the host composes "Hello, <name>" from a configurable prefix, and the client renders the result in a new "Greet" tab.
Structure
package.json # dsh.bundle + dsh.client manifests, scripts, peer deps
cordis.patch.yml # mounts the host plugin row into a profile
dsh.plugin.json # dsh.so registry manifest
src/index.ts # host entry: Config schema + Typert manifest registration
src/runtime.ts # host Remote service (TypertRemoteService)
src/typert.ts # Typert model manifest
src/contract.ts # strict wire contract shared by host and client
src/types.ts # shared host/client types
src/client/index.tsx # client entry: mounts Remote + registers the view slot
src/client/remote.ts # client Remote contribution + typed namespace
src/client/locales.ts # zh / en dictionaries
src/client/view.tsx # minimal React view
src/client/styles.ts # theme-token stylesheet
tests/ # vitest unit tests (contract + runtime)
build.mjs # esbuild dual build (host ESM + client CJS)
.github/workflows/ci.yml
package.json is the only manifest Harness needs. dsh.bundle.patch makes the package an installable profile bundle; dsh.client declares the Web client bundle and the client packages it injects. The host entry is the ordinary Cordis name/apply export; the client entry is bundled to lib/client.js and loaded by the Web harness module loader.
Requirements
- Node.js
>= 22.19(or>= 24) - pnpm
>= 9 - DeepSeek Harness
>=0.1.0-rc.6
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate