← 返回列表
D

openharness-rule-for-dsh-plugin

v0.1.2 · 3 天前发布

DSH plugin that injects a system-prompt rule block for assisting with DeepSeek Harness plugin development: what you CAN / SHOULD / MUST NOT / SHOULD NOT do.

deepseek-harnessdshdsh-pluginpluginrulesguidelines

README

openharness-rule-for-dsh-plugin

一个 DeepSeek Harness(dsh)插件:往系统提示词注入「DSH 插件开发规范」——四类规则:
能做什么(CAN)/ 应该做什么(SHOULD)/ 不能做什么(MUST NOT)/ 不应该做什么(SHOULD NOT)。
并在 dsh 设置页侧边栏显示「插件开发规范」一项。

  • 纯 dsh plugin(bundle),装在 web profile 即可生效;

  • host 半:ctx.systemPrompt.section({ name, order: 46, text }) 注入规范(真实逻辑);

  • client 半:注册 settings.section 槽,显示侧边栏项(写法与已发布的公开插件 openharness-reply-in-cn 完全同构,仅 id/label 不同)。
  • 对使用者:注入的规范正文是自包含、环境无关的——只引用官方公开入口(官方 skill cordis-plugin-development、官方文档、postmortem 等),不依赖作者的本地目录或私有资料。任何安装此插件的人都能读到同样明确、可执行的规则。正文结尾附了一小段「探索参考线索」,列出已发布到 npm 的开源 dsh 插件,仅供喜欢深挖的实现者可选参考,并非使用本插件的前提,也不增加任何使用流程。

    ---

    注入逻辑(host half,src/host/index.ts

    ```ts
    export const inject = ['systemPrompt'] // 申报依赖,否则 boot 崩
    export const name = 'openharness-rule-for

    版本兼容矩阵

    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
    openharness-rule-for-dsh-plugin
    Repo
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime"]}}