DeepSeek Harness 插件

PerryLink/dsh-plugin-upgrade

Star 数 ★ 0 下载量(近 30 天) 894 分类 技能包 收录于 2026-09-20 npm dsh-plugin-upgrade

面向 DeepSeek Harness 插件作者的升级技能:一个包只放一份走廊索引,自动识别调用方的 peer 区间并路由到对应已封版的升级卡片(0.1.3-alpha.1 至 0.1.5-rc.1 为 A+B 两条腿,0.1.5-rc.2 至 0.1.6-alpha.2 为 C 腿),并附带以 bundle 技能与 npx CLI 两种形态提供的零依赖接缝扫描器。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-plugin-upgrade

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:PerryLink/dsh-plugin-upgrade

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWEDERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yamlallowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

⬆️ dsh-plugin-upgrade

  • 1024 商店通道:先 npm i -g dsh1024,再执行 dsh1024 plugin --profile web add dsh-plugin-upgrade(计入 deepseek1024.com 安装排行)。

DeepSeek Harness 插件升级技能——一个包、一份走廊索引、两条闭合的走廊:0.1.3-alpha.10.1.5-rc.1legAB)与 0.1.5-rc.20.1.6-alpha.2legC)。

扫描器自行路由:它读取目标仓库声明的 dsh 区间(或接受 --span),然后套用那条走廊自己的、证据绑定的目录——legAB 的 20 条接缝(leg A 0.1.3-alpha.10.1.5-alpha.1 加 leg B 0.1.5-alpha.10.1.5-rc.1)或 legC 的 5 条接缝(E1E5)。只有一个入口,因此「静默停止挂载的 client 半边」永远不会被误当成「typecheck 绿了」。

官方仓库。 这是 dsh-plugin-upgrade 唯一的官方仓库,由 PerryLink 维护。它取代两个已退役的版本锁定包 dsh-plugin-upgrade(leg A)与 dsh-plugin-upgrade-rc1(leg B),并且 0.1.5-rc.20.1.6-alpha.2 走廊(leg C)就是并入本包的——dsh-plugin-upgrade-016 这个名字从未上过 registry。其他账号下的同名仓库与本项目无关。

dsh-doctor

English · 简体中文 · Español · Português · हिन्दी


兼容性

状态
宿主 DeepSeek Harness 0.1.5-rc.1(tag dsh-v0.1.5-rc.1 = 183f08e9c6dd;leg A→B 交接点 dsh-v0.1.5-alpha.1 = 5dda764ed3aa;走廊起点 0.1.3-alpha.1),以及 legC 对应的 DeepSeek Harness 0.1.6-alpha.2(tag dsh-v0.1.6-alpha.2)。peer 区间 @deepseek-ai/dsh-skill >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0@deepseek-ai/cordis ^4.0.2@deepseek-ai/schemastery ^3.18.2
Node ^22.19.0 || >=24.0.0
平台 有 Node 即可;扫描器只读文件系统,与平台无关
模型 纯文本模型完全支持;技能就是一段 Markdown,不要求工具或视觉能力
走廊索引 一个包、一个入口。lib/route.mjs 持有全部闭合走廊,CLI 根据目标仓库声明的区间(engines.dsh@deepseek-ai/dsh* 各范围)路由到匹配的那一条;--span legAB|legC 可覆盖猜测,未声明区间时回退到较旧的走廊。两份目录从不合并:每条走廊保留自己的接缝数组、卡片、证据、夹具与一致性门禁。
范围 两条闭合的走廊legAB = 0.1.3-alpha.10.1.5-rc.1(leg A + leg B),legC = 0.1.5-rc.20.1.6-alpha.2。走廊永不加宽:新增接缝的一跳就是一条新走廊——一张新卡加一行新索引,而不是一个新包。
Legs 每条 leg 都在本包内:leg A 保留 S1S10 + M1 接缝,leg B 保留 C1C2C4C5H1H4P1,leg C 保留 E1E5——各自带有自己的证据、卡片章节、夹具与回滚路径。没有需要另装的姊妹包。
C3 已弃用:leg B 的卡把「类型线陈旧导致的假绿」写作 C3,而这与 leg A 的 M1 是同一个缺陷。合并一事记录在卡上;--seams C3 匹配不到任何东西。
前身包 请勿在同一个 profile 中同时挂载已退役的 dsh-plugin-upgrade:两者都会注册 agent skill plugin-upgrade,第二次挂载会因 skill 名冲突而失败。该包在 npm 上已标记 deprecated、其仓库已退役;本包已取代它的两条腿。

你得到什么

两半,每条走廊一套接缝目录:

  • 一个随包发布的 agent 技能(plugin-upgrade —— 合并后的走廊卡,以及「修-验」循环。正文先把调用者路由到与它 peer 区间相符的那条 leg;只有任务真正需要时模型才会加载它,本包不贡献任何系统提示词段落,也不注册工具。
  • 一个零依赖 CLI(dsh-plugin-upgrade-scan —— 解析出走廊,并按 file:line 报告那条走廊接缝的事实:legAB 的二十条(S3S8S9M1S4S5S6S7S2S1S10C1C2P1C4C5H1H2H4H3)于 2026-09-09(leg A)与 2026-09-10(leg B)从 harness 的 tag 区间重新读取,或 legC 的五条(E1E5)在 dsh-v0.1.6-alpha.2 上测得(2026-09-19)。命中 error 级即退出码 1,可直接接进 CI。

它要消灭的失效模式是:这一跨度的破坏大多是静默的,而且两端都静默。 类型线可能陈旧,于是仓库是对着旧目录编译的(接缝 M1);而裸 conversation client slot 被删除且没有别名,ctx.slots.inject() 又只在 declaration 存在时才执行回调——于是仍然指向它的 client 半边停止挂载,没有报错、没有日志、构建也不会失败(接缝 C1)。有三类破坏能穿过 typecheck + test

  1. 本地门禁编译了一条陈旧的类型线——旧的 paths 别名,或钉在 0.1.5-alpha.* 的 dev/test 类型(接缝 M1);
  2. 日志写入器漏掉了 V3 必需的 stream 字段,于是会话能导入、却拒绝恢复(接缝 S3);
  3. 测试是对着旧形状 mock 的,于是它们通过,而宿主丢掉了你的贡献(接缝 C1)。

诚实的量级说明:leg B 的工作区扫描发现,家族 client 半边一共只用了 8 个 slot key,且这 8 个在 rc.1 全部存活——对它们而言,rc.1 的破坏是潜在破坏(latent),不是实际破坏。真正会坏的是指向裸 conversation key 的第三方 client 插件,而且它们坏得悄无声息。leg A 的扫描发现的纹理正好相反:40 个仓,其中 11 个命中了 M1,而修好陈旧路径后,有 3 个此前「绿着」的仓暴露出真实的 TypeScript 错误。

快速开始

# 1. 把 bundle 装进你的 profile
dsh plugin --profile web add dsh-plugin-upgrade

# 2. 确认插件行已挂载
dsh --profile web --dump-config | grep -A3 'id: dsh-plugin-upgrade'

# 3. 扫描你要升级的插件
npx dsh-plugin-upgrade-scan --repo ../my-plugin

然后让 agent 使用 plugin-upgrade 技能,或自己用与你区间相符的卡驱动循环: skills/plugin-upgrade/references/v0.1.3-alpha.1-to-v0.1.5-rc.1.mdlegAB——leg A 是 §1,leg B 是 §2,合并后的接缝索引是 §3)或 skills/plugin-upgrade/references/v0.1.5-rc.2-to-v0.1.6-alpha.2.mdlegC)。扫描器会替你选走廊;当声明的区间有歧义时,加上 --span legC

安装与卸载

dsh plugin --profile web add dsh-plugin-upgrade            # 从 npm
dsh plugin --profile web add "github:PerryLink/dsh-plugin-upgrade#main"   # 从源码
dsh plugin --profile web remove dsh-plugin-upgrade         # 卸载(可逆)

安装 bundle 只注册一个技能;移除插件行即移除技能。CLI 是普通 npx 目标,完全不需要 profile。

配置

每个键都可选,写在 profile patch 里:

默认 含义
enabled true 是否注册随包技能。设为 false 可保留依赖但保持沉默。
skillName plugin-upgrade 要注册的 skillsRoot 子目录名,也是目录里显示的名字。
skillsRoot 本包自己的 ./skills <skillName>/SKILL.md 所在处。指向你自己的卡即可复用这套管线。
userInvocable true 除了模型,人是否也能按名字调用该技能。
- insert:
    - id: dsh-plugin-upgrade
      name: dsh-plugin-upgrade
      config:
        skillName: plugin-upgrade

插件挂载必须大声SKILL.md 缺失、正文为空、frontmatter 没有 name,都会直接让挂载失败,而不是注册一个空技能。

暴露面

技能 —— plugin-upgrade(默认模型与人都可调用)。正文:leg 路由表、8 条硬规则与 6 步循环。引用:合并后的走廊卡。脚本:检测器,放在技能目录内,保证相对路径可解析。

CLI —— dsh-plugin-upgrade-scan

dsh-plugin-upgrade-scan [--repo <path>] [--span legAB|legC|<span>] [--json <out.json>] [--seams S3,C1,P1] [--quiet]
参数 含义
--repo <path> 要扫描的仓库(默认当前目录)。它声明的 dsh 区间决定走哪条走廊。
--span legAB|legC|<span> 不再根据声明的区间猜测,而是强制指定走廊。未知区间回退到 legAB
--json <out.json> 同时写出机器可读报告(reposcannedAtfileshits[]bySeam)。
--seams S3,C1,P1 只跑解析出的那条走廊目录中的指定接缝(接缝 id 从不在走廊之间共享)。
--quiet 不打印人类可读渲染(与 --json 搭配)。

退出码:0 无 error 级命中 · 1 至少一个 error 级命中 · 2 用法或扫描失败。扫描干净是必要非充分条件——出口标准是真实宿主冒烟,加上日志写入器(leg A)的恢复往返,以及 client 半边(leg B)的真实浏览器断言。

二十条 legAB 接缝

顺序遵循 lib/scan.mjs 中的目录(先 leg A,后 leg B),这也是 test/card.test.mjs 把卡钉住的顺序。

Id 级别 通往 0.1.5-rc.1 的路上变了什么
S3 error assistant/message 新增了必需的 stream 字段(会话格式 V3):漏写它的日志能成功导入,却拒绝恢复(Session.fromRestoreinvalid settlement fields)。
S8 error SessionHandle.read() 返回 SessionHandleReadResult{ eventState, events })而不是事件数组;数组操作必须先解包 .events
S9 error SystemPrompt 的配置项由 persona 改名为 personaPrefix / personaSuffix。用 includeHarnessIdentity: false 顶替并不等价——那会删掉 harness 身份块。
M1 error 本地门禁编译了一条陈旧的类型线:dev/test 类型钉在 0.1.5-alpha.*,或 tsconfigpaths 别名指向不存在的 checkout 目录,都会让 TypeScript 静默回退到已发布的类型。门禁是绿的,尺子是错的。
S4 error tool/code-dispatch 改名为 tool/ptc-dispatch;旧标签在 V3 会话里不再被识别。
S5 error ctx.agent 被移除:调用方必须显式传入 Agent(例如 setup(agentCtx, agent) 的第二个参数)。
S6 error Inbox 是类型接口,不是可构造的类;夹具使用官方的不支持形状,运行时代码读 agent.inbox
S7 warn SubprocessHandle.pid 被移除(只剩 SubprocessTerminalHandle.pid);把该字段从测试夹具里删掉。
S2 warn EpochHeader.system 被移除:系统提示词现在是界面节点 0 的 system/message
S1 warn 会话格式 V3 与带 generation 后缀的日志名——当前 generation 是 session.v3.jsonl.zstd,所以硬编码 session.jsonl.zstd 的脚本会静默失败。
S10 warn 插件自己写入的会话事件必须经过宿主的 fail-closed 适配闸门:Session.append 没有 ignorable 写入通道,所以一次无条件 append 就可能让会话变得不可读。
C1 error 裸 client slot conversation 被删除,替换为 main + main.conversation无别名ctx.slots.inject() 只在 declaration 存在时才触发,所以指向它的插件会静默停止挂载。
C2 error @deepseek-ai/dsh-client-ui-sidebar-textpreview 改名为 …-sidebar-documentpreview;旧名消失且没有 shim 包。
P1 error peer 区间必须保留第二段:>=0.1.2-rc.1 <0.2.0 单段在 npm semver 的 prerelease-tuple 规则下拒绝 0.1.5-rc.1(semver 7.8.5 实测 false)。
C4 warn rc.1 新增了全局主面板模型(mainsidebar.panellistctx.layout.selectPanel(MainPanelId | null)),并给几乎每个 slot 追加了 usePanelInfo 标准 prop。
C5 warn 文档预览迁到 keyed slot sidebar.right.tab.documentDocumentContent);sidebar.right.pane.tab 仍在,但父入口变成 rightbar.session
H1 warn KNOWN_SESSION_EVENT_TYPES 新增 deliverables/presentedsubagent/catalog——fail-closed 词表变长。
H2 warn 新工具 present 的行占用了 tool.call.toolview 的 key 'present',而该 key 在 alpha.1 是空闲的。
H4 info DeepSeek 适配器的默认咨询模型目录改以 deepseek-flash(DeepSeek-V41-Flash)打头。
H3 info 新增可选能力:ctx.sessionFeedbackctx.layout.beginNavigation()ctx.workspaces.openSession() / openWorkspace() / forkSession()。只在卡上列出,刻意不做自动检测

S7S2S1S10C4C5H1H2H4 刻意保持提示级:它们都有合法命中(已经用了新 API 的仓、一份文档快照、插件自己的模型 id 表、Node 的 ChildProcess.pid),所以扫描器把它们作为人工复核线索,而不是失败。M1P1结构化检查——它们解析 package.jsontsconfig*.json,而不是匹配文本——而 H3仅卡片(card-only):有文档、参与 id 一致性校验,且刻意没有检测器(CARD_ONLY = ['H3'])。

五条 legC 接缝(0.1.5-rc.20.1.6-alpha.2

顺序遵循 lib/scan-0.1.6.mjs 中的目录,这也是 test/card.test.mjslegC 卡钉住的顺序。这里每条接缝都是 error,且每条都会被检测到(CARD_ONLY = [])。

Id 级别 通往 0.1.6-alpha.2 的路上变了什么
E1 error agent/created 监听器是串行派发的:抛异常的监听器——或做了慢工作的监听器——会直接阻塞 agent 创建。把同步工作包进 try/catch,其余用 queueMicrotask/setImmediate 或你自己的队列延后。
E2 error 异步 apply() 的第一个 await 出现在注册之前:此后注册的任何东西都落进卸载窗口并抛 INACTIVE_EFFECT,而旧的闭包仍在运行。把一切注册都放在第一个 await 之前、放进同一个 ctx.effect() 里。
E3 error 被删除的 slot/state 键:settings.plugin.item 变成 keyed→list 的 plugins.itemSessionListState.current 消失——设置卡会静默消失(spec === undefined 提前返回),而 current 的类型断言照旧编译,功能却已死。
E4 error 被删除的 client API:sessions.open / openSubagent / clear 变成 retain / using / retainInfo
E5 error 被删除的模型字面量:deepseek-v4-flash*deepseek-v4-vision-exp。默认模型目录从 4 缩到 2,未编入目录的 id 以纯文本方式透传。

legAB 相同的纪律同样适用:扫描干净是必要而非充分条件。legC 的破坏是静默的或仅运行时的(已发布的类型线掩盖了那些删除),所以出口标准仍是在临时 DSH_HOME 上的真实宿主冒烟,外加适用情况下的日志写入器往返与真实浏览器断言。

本包不覆盖什么

  • 越过本包任何一条走廊的一跳。 legAB 按构造终止于 0.1.5-rc.1:harness 从 0.1.5-rc.10.1.5-rc.2 的一跳没有新增任何面向插件的接缝(本包自己的 dev/test 钉版与 CI 探针跑在 0.1.5-rc.2 线上,因此 legAB 目录是对着那些已发布类型校验的),而 legC 覆盖 0.1.5-rc.20.1.6-alpha.2。之后任何新增接缝的一跳都被覆盖:走廊是闭合的,加宽一张卡比新增一张卡更糟。它会得到一张新卡和一行新索引——而不是一个新包。
  • 0.1.10.1.2 这一跳。 请使用社区收敛技能。
  • 跨 leg 重述。 leg A 拥有会话格式接缝(assistant/message.streamSessionHandleReadResultEpochHeader.systemctx.agentInboxSystemPrompt.persona、V3 日志 generation),leg B 不重述它们——leg B 区间内 packages/core/session/src 的全部 diff 只有两个新增的事件类型字面量与一行注释。每条 leg 的卡片章节保留自己的范围声明。
  • DSH 面向用户的升级路径。 本包升级的是插件源码,不是用户的 harness 安装。
  • 主题 token。 docs/web-styling.md 在 leg B 区间零变更。
  • 证明。 扫描干净只是假设。出口标准是真实宿主冒烟(临时 DSH_HOME、目标 CLI、plugin add <tarball>--dump-config),加上会话日志写入器(leg A)的恢复往返,以及每个 client 侧命中项(leg B)的真实浏览器断言。

安全边界

  • 只读扫描。 CLI 绝不在被扫仓库内写入;--json 只写你指定的路径。
  • 无网络、无 shell。 扫描器只 import Node 标准库,从不启动子进程。
  • 无凭据。 本包不读取任何凭据、环境令牌或会话数据。
  • 沙箱化冒烟配方。 卡里的真实宿主检查使用 mkdtempDSH_HOME,绝不碰你真实的 ~/.dsh

开发

npm install                        # 或者:pnpm install(仓库带 pnpm-lock.yaml)
npm test                           # node --test:扫描器、卡↔目录一致性、真实 Cordis + SkillRegistry
npm run verify:self-contained      # 每个 import 都在包内解析
npm run verify:artifacts           # 打出来的 tarball 带技能/CLI/patch,且不含测试
npm run check:readmes              # 五语 README 一致性
npm pack

扫描器每条 legAB leg 各有一对合成夹具:fixtures/leg-a-bad-repo(leg A 的会话/配置接缝,故意包含全部 error 级接缝)配 fixtures/leg-a-good-repo(已适配),以及 fixtures/bad-repo(leg B 的 client slot 接缝)配 fixtures/good-repo(已适配)——再外加拿一个已钉 0.1.5-rc.1 的家族仓做 live negative,所以目录里的回归会在这个测试套件里失败,而不是在下游用户那里。test/card.test.mjs 断言每张卡的索引与它自己的目录(legABlib/scan.mjslegClib/scan-0.1.6.mjs)命名的正好是同样的接缝 id、同样的级别,legABCARD_ONLY 正好是 ['H3']legC 的是空,并且两份目录不共享任何接缝 id——把「证据绑定」规则变成机器门禁,每条走廊各一道。

主题标签

dshdsh-plugindeepseek-harnessdeepseekcordisplugin-upgrademigrationskillversion-cardscannerclient-slots(与 package.json keywords 一致;dsh-plugin 是生态的可见性通道)。

PerryLink DSH 插件家族

这是 PerryLink 维护的 41 个 DeepSeek Harness 插件 之一。如果它能帮到你,其他的也会:

Plugin One-liner
dsh-auto-review Second-model auto-review on the approval chain, fail-closed by default
dsh-autotier Automatic strong/cheap model-tier routing with deterministic risk guards and a /tier command
dsh-background-agents Durable background child agents with a Web UI sidebar, messaging and interrupt
dsh-budget Cost governance for DeepSeek Harness: budgets, carbon, and latency in one panel.
dsh-catalog DSH Desktop Market standard catalog source for the PerryLink family
dsh-cert-mcp Read-only MCP server exposing the certification registry: grades, snapshots and five-dimension evidence
dsh-checkpoint-rewind Unified session + workspace + config checkpoints with one-shot /rewind
dsh-claude-move Migrate Claude Code, Codex, OpenCode and Hermes sessions, memories and skills into DSH
dsh-click Cross-platform native desktop control for DeepSeek Harness — Windows first.
dsh-composer-history Terminal-style input history for the web composer: arrows, Ctrl+R search
dsh-data-quality Deterministic dataset profiling, cleaning and citation verification
dsh-defend Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.
dsh-doublecheck Engineering-discipline guard: requirements grill, test gates, adversary review
dsh-draw Unified static-image generation routing for DeepSeek Harness.
dsh-fast Read-only performance diagnostics: load, spill, compaction and cache hit rate
dsh-fund-research Chinese mutual-fund research with sealed, traceable source snapshots
dsh-github GitHub PR/issue/CI integration with every write approval-gated
dsh-industry-research Industry and company research pack: chain map, policy timeline, company cards
dsh-kit One-command starter pack that installs the core family
dsh-library Local document knowledge base with hybrid search and citation-aware injection
dsh-local-ai Local Ollama model discovery and task-based routing with cloud fallback
dsh-lsp-actions LSP diagnostics, formatting, completion, code actions, symbols and rename
dsh-mask PII masking at the model boundary with a host-side restore table
dsh-mcp-panel MCP management console: /mcp command, Settings tab and trial calls
dsh-memento Approval-gated cross-session memory protocol (ctx.memory + SQLite)
dsh-observe OpenTelemetry and Langfuse telemetry export from the session event stream
dsh-output-styles Runtime-switchable model output styles
dsh-permission-rules Declarative allow/deny/ask rules plus a process-level network policy
dsh-plugin-certification Community certification registry with repro-checkable grades and badges
dsh-plugin-doctor Zero-dependency static + sandbox smoke detector for DSH plugins
dsh-plugin-guide Plugin-dev knowledge base, agent skill and the dsh-plugin-dev CLI toolchain
dsh-plugin-kit Shared zero-runtime-dependency toolkit for the PerryLink DSH plugins
dsh-plugin-portal Zero-dependency static portal rendering the whole plugin family as one page
dsh-reach Multi-channel approval/question bridge: WeChat, Telegram, Feishu + a session console
dsh-research-report Verifiable research reports: evidence ledger, manifest seal, per-claim verdicts
dsh-score Multi-dimensional plugin quality scoring with an evidence-backed leaderboard
dsh-session-pin Pin sessions and workspaces in the Web sidebar with per-pin colors
dsh-session-sync Git-backed cross-device session synchronization with keep-both merges
dsh-skill-pack-security Security-audit skill pack plus the plugin_vet supply-chain gate
dsh-talk Voice-first session loop: speech-to-text input and text-to-speech replies
dsh-team-rooms Cross-session team rooms: shared message bus, task board and timeline
dsh-test-drive Isolated install-and-smoke test drives with a pass/fail matrix
dsh-ticktick TickTick/Dida365 task bridge: session-header panel plus eleven agent tools
dsh-translate Vendor parameter translation and deterministic JSON repair
dsh-wechat WeChat ↔ DSH bridge (Tencent iLink bot) developed with pan17, who hosts the repo
dsh-personal-directive Personal directive injector with a top-bar toggle (fork of liucai2026/dsh-personal-directive)

属于 PerryLink DSH 插件家族——40+ 个仓库,覆盖会话、记忆、权限、交付、可观测性与开发者工具。目录见 perrylink-dsh-catalog.perrylink.workers.devdsh-plugin 主题

许可证

Apache-2.0 —— 见 LICENSE。安装期依赖及其许可证列在 THIRD_PARTY_NOTICES.md;本包不打包任何第三方代码。

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。