Tools & Capabilities

dsh-metaplugin

feng-orz/dsh-metaplugin · ★ 0

feng-orz

A native DeepSeek Harness metaplugin for generating, adding, and managing plugin

README body is shown in Chinese.

License
MIT
Added
2026-08-23
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:feng-orz/dsh-metaplugin

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: zh · Read Chinese README

Table of contents
  1. 功能
  2. 安装
  3. 验证
  4. 当前边界
  5. License

在 DeepSeek Harness 里生成、添加和管理原生插件的元插件。

普通插件扩展 Harness 的能力;Metaplugin 扩展 Harness 创造插件的能力。

“元Plugin”的灵感来自 KernelSU 元模块: 普通模块提供具体功能,元模块则扩展模块系统本身。DSH Metaplugin 沿用这一思路, 让 Harness 不只会使用插件,也能从需求和对话中创造原生插件。

功能

  • 会话标题栏的“提炼”按钮:先检测当前对话并展示提炼建议,用户确认后才生成插件。
  • 官方插件列表顶部的“+ 添加插件”:从新需求生成,或添加本地原生 bundle。
  • 生成前完成结构检查、敏感信息扫描,以及隔离 Harness 的真实加载、工具注册和卸载检查。
  • 新插件默认标记“未测试”;用户可确认可用、停用、启用或删除。
  • 生成物是标准 DSH bundle 包,包含 package.json#dsh.bundle.patch 和 cordis.patch.yml,通过官方 dsh plugin --profile ... add/remove 安装卸载。
  • 插件只出现在 Harness 官方插件列表中;没有第二套插件仓库、清单或 Loader。

安装

要求 DeepSeek Harness 0.1.0-rc.6、Node.js 和 pnpm。

npm install
npm run build
dsh plugin --profile web add "D:\path\to\DSH Metaplugin"
node patches/local-compat/apply.mjs "D:\path\to\DeepSeek Harness"

随后重启 dsh web。兼容补丁仅为 rc.6 的官方列表增加两个 UI 扩展槽;详情与恢复 方式见 patches/local-compat/README.md。

验证

npm test
node scripts/isolated-load.mjs "D:\path\to\DeepSeek Harness\node_modules\@deepseek-ai\dsh\lib\bin.js"
node scripts/native-lifecycle.mjs "D:\path\to\DeepSeek Harness\node_modules\@deepseek-ai\dsh\lib\bin.js"

当前边界

  • 本地添加只接受“包名即 Loader 条目名”的标准单入口 DSH bundle;松散的 plugin.js 不会被伪装成原生插件。
  • 命令执行、长期后台监听、浏览器自动化不属于当前生成器的能力范围。
  • 自动检查只验证插件结构与原生生命周期,不会拿空参数假装验证真实业务效果; 因此生成物仍保留“未测试”标识,直到用户实际使用并确认可用。
  • rc.6 官方列表尚无扩展槽,因此需要小型兼容补丁;未来上游支持后可移除。

License

MIT