DSH Plugins
返回列表
🖥️

dsh-plugin-kit

客户端 更新于 2026.09.01

在终端中运行以下命令:

dsh plugin install jwilson411/dsh-plugin-kit

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在终端执行 dsh plugin install jwilson411/dsh-plugin-kit 即可将该插件安装到 DeepSeek Harness,开源地址为 https://github.com/jwilson411/dsh-plugin-kit。

插件介绍

Writing a function plugin for DeepSeek Harness is rarely hard in the business logic; the friction lives in the minimal correct loop — which manifest field to declare, how the patch YAML attaches, where registration and teardown happen inside apply, and how defineTool validation meets output.render projection. dsh-plugin-kit compresses all of that into a single installable package, running the full chain through one tool called kit_ping so you never have to assemble the scaffold from scratch.

It plays double duty as a profile bundle and the plugin that bundle mounts. The manifest declares dsh.bundle.patch, which the installer appends to the ordered dsh.profile.bundles list; the patch file is a top-level YAML array that replaces an entire row by id rather than merging keys. On the plugin side, registration happens inside apply, a hard dependency on tools is declared via inject, and the disposer returned by register hands lifecycle ownership back to the Cordis fiber — stopping, updating, or reloading the plugin automatically unregisters the tool. The parameter schema is an implicit open object root: missing fields or wrong types raise ToolArgsError before the body runs, and both output.schema and output.render stay lossless JSON.

It suits developers who are new to the Harness plugin surface and want to confirm patch-layer composition order and Cordis lifecycle semantics, as well as teams looking for the smallest forkable scaffold to swap kit_ping for a real tool. The test suite is offline by construction — a stub context records registrations, no socket opens, no key is read — and CI needs only two commands on Node 22 and 24 with zero external credentials. The package pins to the 0.1.1-rc.2 line and locks the exact version in devDependencies to avoid latest-tag drift.

使用场景

  • 快速搭建 Harness 函数插件脚手架
  • 验证 patch 层组合顺序与 Cordis 生命周期语义
  • 将 kit_ping 替换为真实工具后直接发布
  • 在离线环境中跑通注册、校验、渲染全链路

适合人员

  • 初次接触 Harness 插件体系的开发者
  • 需要最小可 fork 脚手架并快速迭代的团队
  • 想确认 manifest 与 patch 接线正确性的插件维护者