说明
以下为插件作者提供的原文。
⬆️ dsh-plugin-upgrade-015
- 1024 商店通道:先
npm i -g dsh1024,再执行dsh1024 plugin --profile web add dsh-plugin-upgrade-015(计入 deepseek1024.com 安装排行)。
🪦 已退役 —— 自 2026-10-05 起不再维护。 本包已由维护者退役。插件升级一律改由
dsh-plugin-upgrade继续(npmdsh-plugin-upgrade):它携带全部 corridor,并按仓库自己锁定的版本(engines.dsh/ peer 区间 / devDeps)决定走哪条走廊 —— 因此不再需要「每个宿主跳跃单开一个版本锁定包」。新工作请勿采用dsh-plugin-upgrade-015:它不再接受修复、发版或安全更新。保留公开仅供查阅;本包曾携带的走廊知识已保存在dsh-plugin-upgrade的参考卡中。
DeepSeek Harness 插件升级技能(已合并、版本锁定)——0.1.3-alpha.1 → 0.1.5-rc.1,由两条闭合的 leg 承载。
leg A 0.1.3-alpha.1 → 0.1.5-alpha.1,leg B 0.1.5-alpha.1 → 0.1.5-rc.1:一张走廊卡加一个零依赖接缝扫描器,覆盖合并后的 20 条接缝目录,让「静默不挂载的 client 半边」不再被误当成「typecheck 绿了」。
官方仓库。 这是 dsh-plugin-upgrade-015 唯一的官方仓库,由 PerryLink 维护。它取代两个版本锁定的包
dsh-plugin-upgrade(leg A)与dsh-plugin-upgrade-rc1(leg B)。其他账号下的同名仓库与本项目无关。
English · 简体中文 · Español · Português · हिन्दी
兼容性
| 面 | 状态 |
|---|---|
| 宿主 | DeepSeek Harness 0.1.5-rc.1(tag dsh-v0.1.7-rc.1 = 183f08e9c6dd;leg A→B 交接点 dsh-v0.1.7-rc.1 = 5dda764ed3aa;走廊起点 0.1.3-alpha.1)。peer 区间 @deepseek-ai/dsh-skill >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0、@deepseek-ai/cordis ^4.0.2、@deepseek-ai/schemastery ^3.18.2。 |
| Node | ^22.19.0 || >=24.0.0 |
| 平台 | 有 Node 即可;扫描器只读文件系统,与平台无关 |
| 模型 | 纯文本模型完全支持;技能就是一段 Markdown,不要求工具或视觉能力 |
| 范围 | 两条闭合的 leg,一个跨度:leg A 0.1.3-alpha.1 → 0.1.5-alpha.1,加上 leg B 0.1.5-alpha.1 → 0.1.5-rc.1。走廊永不加宽:0.1.5-rc.1 之后的一跳就是一个新包。 |
| Legs | 两条 leg 都在本包内:leg A 保留 S1–S10 + M1 接缝,leg B 保留 C1、C2、C4、C5、H1–H4、P1——各自带有自己的证据、卡片章节、夹具与回滚路径。没有需要另装的姊妹包。 |
C3 | 已弃用:leg B 的卡把「类型线陈旧导致的假绿」写作 C3,而这与 leg A 的 M1 是同一个缺陷。合并一事记录在卡上;--seams C3 匹配不到任何东西。 |
| 前身包 | 请勿在同一个 profile 中同时挂载已退役的 dsh-plugin-upgrade:两者都会注册 agent skill plugin-upgrade-015,第二次挂载会因 skill 名冲突而失败。该包在 npm 上已标记 deprecated、其仓库已退役;本包已取代它的两条腿。 |
你得到什么
两半,一套接缝目录:
- 一个随包发布的 agent 技能(
plugin-upgrade-015) —— 合并后的走廊卡,以及「修-验」循环。正文先把调用者路由到与它 peer 区间相符的那条 leg;只有任务真正需要时模型才会加载它,本包不贡献任何系统提示词段落,也不注册工具。 - 一个零依赖 CLI(
dsh-plugin-upgrade-015-scan) —— 按file:line报告合并后二十条接缝(S3、S8、S9、M1、S4、S5、S6、S7、S2、S1、S10、C1、C2、P1、C4、C5、H1、H2、H4、H3)的事实,全部于 2026-09-09(leg A)与 2026-09-10(leg B)从 harness 的 tag 区间重新读取。命中 error 级即退出码1,可直接接进 CI。
它要消灭的失效模式是:这一跨度的破坏大多是静默的,而且两端都静默。 类型线可能陈旧,于是仓库是对着旧目录编译的(接缝 M1);而裸 conversation client slot 被删除且没有别名,ctx.slots.inject() 又只在 declaration 存在时才执行回调——于是仍然指向它的 client 半边停止挂载,没有报错、没有日志、构建也不会失败(接缝 C1)。有三类破坏能穿过 typecheck + test:
- 本地门禁编译了一条陈旧的类型线——旧的
paths别名,或钉在0.1.5-alpha.*的 dev/test 类型(接缝M1); - 日志写入器漏掉了 V3 必需的
stream字段,于是会话能导入、却拒绝恢复(接缝S3); - 测试是对着旧形状 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
sole plugin --profile web add dsh-plugin-upgrade-015
# 2. 确认插件行已挂载
dsh --profile web --dump-config | grep -A3 'id: dsh-plugin-upgrade-015'
# 3. 扫描你要升级的插件
npx dsh-plugin-upgrade-015-scan --repo ../my-plugin
然后让 agent 使用 plugin-upgrade-015 技能,或自己按卡驱动循环:
skills/plugin-upgrade-015/references/v0.1.3-alpha.1-to-v0.1.5-rc.1.md(leg A 是 §1,leg B 是 §2,合并后的接缝索引是 §3)。
安装与卸载
sole plugin --profile web add dsh-plugin-upgrade-015 # 从 npm
sole plugin --profile web add "github:PerryLink/dsh-plugin-upgrade-015#main" # 从源码
sole plugin --profile web remove dsh-plugin-upgrade-015 # 卸载(可逆)
安装 bundle 只注册一个技能;移除插件行即移除技能。CLI 是普通 npx 目标,完全不需要 profile。
配置
每个键都可选,写在 profile patch 里:
| 键 | 默认 | 含义 |
|---|---|---|
enabled | true | 是否注册随包技能。设为 false 可保留依赖但保持沉默。 |
skillName | plugin-upgrade-015 | 要注册的 skillsRoot 子目录名,也是目录里显示的名字。 |
skillsRoot | 本包自己的 ./skills | <skillName>/SKILL.md 所在处。指向你自己的卡即可复用这套管线。 |
userInvocable | true | 除了模型,人是否也能按名字调用该技能。 |
- insert:
- id: dsh-plugin-upgrade-015
name: dsh-plugin-upgrade-015
config:
skillName: plugin-upgrade-015
插件挂载必须大声:SKILL.md 缺失、正文为空、frontmatter 没有 name,都会直接让挂载失败,而不是注册一个空技能。
暴露面
技能 —— plugin-upgrade-015(默认模型与人都可调用)。正文:leg 路由表、8 条硬规则与 6 步循环。引用:合并后的走廊卡。脚本:检测器,放在技能目录内,保证相对路径可解析。
CLI —— dsh-plugin-upgrade-015-scan:
dsh-plugin-upgrade-015-scan [--repo <path>] [--json <out.json>] [--seams S3,C1,P1] [--quiet]
| 参数 | 含义 |
|---|---|
--repo <path> | 要扫描的仓库(默认当前目录)。 |
--json <out.json> | 同时写出机器可读报告(repo、scannedAt、files、hits[]、bySeam)。 |
--seams S3,C1,P1 | 只跑合并目录中的指定接缝。 |
--quiet | 不打印人类可读渲染(与 --json 搭配)。 |
退出码:0 无 error 级命中 · 1 至少一个 error 级命中 · 2 用法或扫描失败。扫描干净是必要非充分条件——出口标准是真实宿主冒烟,加上日志写入器(leg A)的恢复往返,以及 client 半边(leg B)的真实浏览器断言。
二十条接缝
顺序遵循 lib/scan.mjs 中的目录(先 leg A,后 leg B),这也是 test/card.test.mjs 把卡钉住的顺序。
| Id | 级别 | 通往 0.1.5-rc.1 的路上变了什么 |
|---|---|---|
S3 | error | assistant/message 新增了必需的 stream 字段(会话格式 V3):漏写它的日志能成功导入,却拒绝恢复(Session.fromRestore 抛 invalid 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.*,或 tsconfig 的 paths 别名指向不存在的 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 新增了全局主面板模型(main、sidebar.panellist、ctx.layout.selectPanel(MainPanelId | null)),并给几乎每个 slot 追加了 usePanelInfo 标准 prop。 |
C5 | warn | 文档预览迁到 keyed slot sidebar.right.tab.document(DocumentContent);sidebar.right.pane.tab 仍在,但父入口变成 rightbar.session。 |
H1 | warn | KNOWN_SESSION_EVENT_TYPES 新增 deliverables/presented 与 subagent/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.sessionFeedback、ctx.layout.beginNavigation()、ctx.workspaces.openSession() / openWorkspace() / forkSession()。只在卡上列出,刻意不做自动检测。 |
S7、S2、S1、S10、C4、C5、H1、H2 与 H4 刻意保持提示级:它们都有合法命中(已经用了新 API 的仓、一份文档快照、插件自己的模型 id 表、Node 的 ChildProcess.pid),所以扫描器把它们作为人工复核线索,而不是失败。M1 与 P1 是结构化检查——它们解析 package.json 与 tsconfig*.json,而不是匹配文本——而 H3 是仅卡片(card-only):有文档、参与 id 一致性校验,且刻意没有检测器(CARD_ONLY = ['H3'])。
本包不覆盖什么
0.1.5-rc.1之后的一跳。 合并跨度按构造终止于 rc.1:harness 从0.1.5-rc.1到0.1.5-rc.2的一跳没有新增任何面向插件的接缝(本包自己的 dev/test 钉版现已跑到0.1.7-rc.1线,因此目录是对着最新已发布类型校验的;compat workflow 的探针仍锚定0.1.6-alpha.2)。之后任何新增接缝的东西都是一个新包——一张会漂移的卡比没有卡更糟。0.1.1→0.1.2这一跳。 请使用社区收敛技能。- 跨 leg 重述。 leg A 拥有会话格式接缝(
assistant/message.stream、SessionHandleReadResult、EpochHeader.system、ctx.agent、Inbox、SystemPrompt.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 标准库,从不启动子进程。
- 无凭据。 本包不读取任何凭据、环境令牌或会话数据。
- 沙箱化冒烟配方。 卡里的真实宿主检查使用
mkdtemp的DSH_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
扫描器每条 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 断言合并后的卡片索引与 lib/scan.mjs 命名的正好是同样二十个接缝 id、同样的级别,并且 CARD_ONLY 正好是 ['H3']——把「证据绑定」规则变成机器门禁。
主题标签
dsh、dsh-plugin、deepseek-harness、deepseek、cordis、plugin-upgrade、migration、skill、version-card、scanner、client-slots(与 package.json keywords 一致;dsh-plugin 是生态的可见性通道)。
PerryLink DSH Plugin Family
本项目是 PerryLink 维护的 DeepSeek Harness 插件家族成员:34 个活跃维护,名册共 42 个,其中 5 个已冻结、3 个已退役——每一个都在下表保留自己的行,原因见「状态」列。如果它能帮到你,其他的也会:
| Plugin | 一句话 | 状态 |
|---|---|---|
| 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. | 🧊 已冻结 — 见仓库 README |
| 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 | Claude Code /rewind-equivalent: snapshots, session forks, one-shot restore | |
| dsh-claude-move | Migrate Claude Code sessions, memory, skills and CLAUDE.md into DSH | 🧊 已冻结 — 见仓库 README |
| 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 | Dataset quality checks and citation cross-checks (the optional numeric bridge consumed here) | |
| dsh-defend | Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness. | 🧊 已冻结 — 见仓库 README |
| dsh-doublecheck | Engineering-discipline guard: requirements grill, test gates, adversary review | |
| dsh-draw | Unified static-image generation routing for DeepSeek Harness. | 🧊 已冻结 — 见仓库 README |
| dsh-fast | Read-only performance diagnostics for DeepSeek Harness. | |
| dsh-fund-research | Deterministic research reports for Chinese public mutual funds | |
| dsh-github | GitHub PR/issues integration for DSH, every write gated by approval | |
| dsh-industry-research | Industry research orchestration that seals its deliverables through this plugin's ctx.researchReport.assemble | |
| dsh-laya | Laya typed decisions (noul/choice/score) as a first-class Cordis service and model-visible tools | |
| dsh-library | Local document knowledge base for DeepSeek Harness. | |
| dsh-local-ai | Local-model (Ollama) integration for DeepSeek Harness. | |
| dsh-lsp-actions | LSP diagnostics, formatting, completion, code actions and rename over language servers | |
| dsh-mask | PII masking middleware: anonymize at the model boundary, restore at the display layer | |
| dsh-mcp-panel | Read-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors | |
| dsh-memento | Approval-gated cross-session memory: ctx.memory seam + SQLite + memory tool | |
| dsh-observe | OpenTelemetry and Langfuse observability exporter for DeepSeek Harness. | |
| dsh-output-styles | Claude Code outputStyles-equivalent runtime style switching | |
| dsh-permission-rules | Claude Code-style declarative allow/deny/ask permission rules with audit | |
| 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-development knowledge base as an on-demand agent skill | |
| dsh-plugin-kit | Shared zero-runtime-dependency toolkit for the PerryLink DSH plugins | |
| dsh-plugin-upgrade | One-package, one-corridor-index plugin upgrade skill: routes a repository to the matching closed corridor card | |
| dsh-plugin-upgrade-015 | Merged 0.1.3-alpha.1 → 0.1.5-rc.1 upgrade corridor card plus a zero-dependency seam scanner | 🚫 已退役 —— 走廊由 dsh-plugin-upgrade 承担 |
| dsh-reach | Multi-channel approval/question bridge: WeChat/Telegram/Feishu, session console | 🧊 已冻结 — 见仓库 README |
| dsh-research-report | Verifiable research-report engine: content-addressed evidence ledger and sealed versions | |
| dsh-score | Multi-dimensional quality scoring for DeepSeek Harness plugins. | |
| dsh-session-pin | Pin sessions in the Web sidebar with durable ordering | 🚫 已退役 — 见上方说明 |
| dsh-session-sync | Cross-device session sync for DeepSeek Harness — a dedicated git mirror of your session store. | |
| dsh-skill-pack-security | Security-audit skill pack: secret scan, dependency and supply-chain review | |
| dsh-talk | Voice-first session loop for DeepSeek Harness: talk to it, hear it answer. | |
| dsh-team-rooms | Cross-session team rooms: shared message bus, task board and timeline | 🚫 已退役 — 见上方说明 |
| dsh-test-drive | Isolated install-and-smoke test drives for DeepSeek Harness plugins. | |
| dsh-ticktick | TickTick/Dida365 task bridge: session-header panel + 11 tools | |
| dsh-translate | Vendor parameter translation and deterministic JSON repair for DeepSeek Harness. |
许可证
Apache-2.0 —— 见 LICENSE。安装期依赖及其许可证列在 THIRD_PARTY_NOTICES.md;本包不打包任何第三方代码。
版本历史
- 0.1.32026年11月29日 · 121 KB