D
dsh-plugin-devkit
v0.3.0 · 1 天前发布
开发者工具包:一键生成合规 dsh 插件脚手架(默认 TypeScript,可选 JavaScript)、按三条硬规则校验 schema、生成社区注册表发布条目。
README
🇨🇳 简体中文 | 🇬🇧 English
dsh-plugin-devkit
用于开发 DeepSeek Harness(dsh)插件的开发者工具包。一键生成合规脚手架、按三条硬规则校验 schema、生成发布到社区注册表的条目。
安装
bash
方式一(推荐):从 npm 安装(包名即 dsh-plugin-devkit)
dsh plugin --profile web add dsh-plugin-devkit
方式二:从 GitHub 安装
dsh plugin --profile web add github:d-ouyang/dsh-plugin-devkit
本地开发:dsh plugin --profile web add ./dsh-plugin-devkit
装完重启 web 服务(:3080)。
工具
scaffold_plugin —— 生成合规脚手架
对话里说:「帮我生成一个 dsh 插件,名字 my-tool,品类 tools,作者 d-ouyang」
→ 在
~/dsh-plugin-my-tool/ 生成入口文件(默认 TypeScript:index.ts + <name>-core.ts + tsconfig.json)、package.json、cordis.patch.yml、README.md、test.ts、examples/。→ 想生成纯 JavaScript,传
language: "js",则为 index.js + <name>-core.js + test.mjs。→ TypeScript 插件运行时由 dsh 的 tsx 即时转译(零构建),且
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-plugin-devkit
- Repo
- git+https://github.com/d-ouyang/dsh-plugin-devkit.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-locale"]}}