@lynn123411/dsh-preset-plugin-upgrade-cordis 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +145 -0
  2. package/UPSTREAM.md +85 -0
  3. package/check-upstream.mjs +273 -0
  4. package/package.json +44 -0
  5. package/plugin-upgrade-cordis.patch.yml +163 -0
  6. package/skills/LICENSE +21 -0
  7. package/skills/dsh-benchmark-case/SKILL.md +281 -0
  8. package/skills/dsh-benchmark-case/assets/Dockerfile.example +14 -0
  9. package/skills/dsh-benchmark-case/assets/instruction.md.example +35 -0
  10. package/skills/dsh-benchmark-case/assets/judge-utils.mjs +194 -0
  11. package/skills/dsh-benchmark-case/assets/judge.mjs.example +103 -0
  12. package/skills/dsh-benchmark-case/assets/solve.sh.example +11 -0
  13. package/skills/dsh-benchmark-case/assets/task.toml.example +25 -0
  14. package/skills/dsh-benchmark-case/assets/test.sh.example +20 -0
  15. package/skills/dsh-benchmark-case/references/case-selection.md +57 -0
  16. package/skills/dsh-benchmark-case/references/contract-clauses.md +79 -0
  17. package/skills/dsh-benchmark-case/references/grading-recipe.md +103 -0
  18. package/skills/dsh-benchmark-case/references/harbor-task-spec.md +95 -0
  19. package/skills/dsh-benchmark-case/references/host-archaeology.md +111 -0
  20. package/skills/dsh-benchmark-case/references/registry-sync.md +76 -0
  21. package/skills/dsh-upgrade-audit/SKILL.md +89 -0
  22. package/skills/dsh-upgrade-audit/SKILL.zh-CN.md +82 -0
  23. package/skills/dsh-upgrade-audit/evals/evals.json +29 -0
  24. package/skills/dsh-upgrade-audit/examples/0.1.2alpha1-to-0.1.2alpha2/CHANGELOG.md +191 -0
  25. package/skills/dsh-upgrade-audit/examples/0.1.2alpha1-to-0.1.2alpha2/README.md +14 -0
  26. package/skills/dsh-upgrade-audit/examples/0.1.2alpha1-to-0.1.2alpha2/UPGRADE-ADAPTATION.md +140 -0
  27. package/skills/dsh-upgrade-audit/references/audit-playbook.md +97 -0
  28. package/skills/dsh-upgrade-audit/scripts/gen-artifacts.check.mjs +59 -0
  29. package/skills/dsh-upgrade-audit/scripts/gen-artifacts.mjs +112 -0
  30. package/skills/dsh-upgrade-audit/scripts/materialize-npm.mjs +216 -0
  31. package/skills/generic-migration/SKILL.md +105 -0
  32. package/skills/plugin-fleet-sweep/README.md +19 -0
  33. package/skills/plugin-fleet-sweep/SKILL.md +74 -0
  34. package/skills/plugin-fleet-sweep/references/fleet-sweep-checklist.md +66 -0
  35. package/skills/plugin-heavy-dep/README.md +15 -0
  36. package/skills/plugin-heavy-dep/SKILL.md +102 -0
  37. package/skills/plugin-release/SKILL.md +70 -0
  38. package/skills/plugin-release/SKILL.zh-CN.md +65 -0
  39. package/skills/plugin-release/references/profile-dependency-management.md +215 -0
  40. package/skills/plugin-release/references/publish-playbook.md +164 -0
  41. package/skills/plugin-release/scripts/verify-release.mjs +146 -0
  42. package/skills/plugin-release/scripts/verify-release.test.mjs +62 -0
  43. package/skills/plugin-runtime-debug/README.md +21 -0
  44. package/skills/plugin-runtime-debug/SKILL.md +171 -0
  45. package/skills/plugin-runtime-debug/references/browser-forensics.md +180 -0
  46. package/skills/plugin-test/SKILL.md +72 -0
  47. package/skills/plugin-test/references/README.md +11 -0
  48. package/skills/plugin-test/references/docker-release-smoke.md +75 -0
  49. package/skills/plugin-test/references/version-migration-testing.md +52 -0
  50. package/skills/plugin-test/scripts/container-runner.mjs +370 -0
  51. package/skills/plugin-test/scripts/container-runner.test.mjs +207 -0
  52. package/skills/plugin-test/scripts/docker-release-smoke.mjs +539 -0
  53. package/skills/plugin-test/scripts/docker-release-smoke.test.mjs +93 -0
  54. package/skills/plugin-upgrade/SKILL.md +146 -0
  55. package/skills/plugin-upgrade/SKILL.zh-CN.md +166 -0
  56. package/skills/plugin-upgrade/evals/evals.json +29 -0
  57. package/skills/plugin-upgrade/examples/01-simple-client-plugin.en.md +145 -0
  58. package/skills/plugin-upgrade/examples/01-simple-client-plugin.md +145 -0
  59. package/skills/plugin-upgrade/examples/02-host-side-plugin.en.md +52 -0
  60. package/skills/plugin-upgrade/examples/02-host-side-plugin.md +52 -0
  61. package/skills/plugin-upgrade/examples/03-client-remote-plugin.en.md +48 -0
  62. package/skills/plugin-upgrade/examples/03-client-remote-plugin.md +48 -0
  63. package/skills/plugin-upgrade/examples/04-dual-cohort-plugin.en.md +181 -0
  64. package/skills/plugin-upgrade/examples/04-dual-cohort-plugin.md +161 -0
  65. package/skills/plugin-upgrade/examples/06-real-world-batch-migration.en.md +225 -0
  66. package/skills/plugin-upgrade/examples/06-real-world-batch-migration.md +225 -0
  67. package/skills/plugin-upgrade/examples/07-multi-repo-batch-migration.en.md +74 -0
  68. package/skills/plugin-upgrade/examples/07-multi-repo-batch-migration.md +94 -0
  69. package/skills/plugin-upgrade/examples/08-real-web-client-alpha2-migration.en.md +43 -0
  70. package/skills/plugin-upgrade/examples/08-real-web-client-alpha2-migration.md +51 -0
  71. package/skills/plugin-upgrade/examples/README.en.md +25 -0
  72. package/skills/plugin-upgrade/examples/README.md +25 -0
  73. package/skills/plugin-upgrade/examples/face-contracts/README.md +17 -0
  74. package/skills/plugin-upgrade/examples/face-contracts/check.mjs +70 -0
  75. package/skills/plugin-upgrade/examples/face-contracts/client-remote.mjs +12 -0
  76. package/skills/plugin-upgrade/examples/face-contracts/host-domain.mjs +10 -0
  77. package/skills/plugin-upgrade/examples/legacy-plugin/README.en.md +19 -0
  78. package/skills/plugin-upgrade/examples/legacy-plugin/README.md +24 -0
  79. package/skills/plugin-upgrade/examples/legacy-plugin/cordis.patch.yml +6 -0
  80. package/skills/plugin-upgrade/examples/legacy-plugin/package.json +9 -0
  81. package/skills/plugin-upgrade/examples/legacy-plugin/patch.yml +6 -0
  82. package/skills/plugin-upgrade/examples/legacy-plugin/scripts/apply-patch.mjs +19 -0
  83. package/skills/plugin-upgrade/examples/legacy-plugin/src/index.ts +68 -0
  84. package/skills/plugin-upgrade/references/README.md +103 -0
  85. package/skills/plugin-upgrade/references/api-migration-0.1.2-alpha.2.md +702 -0
  86. package/skills/plugin-upgrade/references/host-plane-probes.md +45 -0
  87. package/skills/plugin-upgrade/references/jump-0.1.5-rc.2-to-0.1.7-rc.1.md +740 -0
  88. package/skills/plugin-upgrade/references/migration-hygiene.md +37 -0
  89. package/skills/plugin-upgrade/references/pre-flight-patterns.json +71 -0
  90. package/skills/plugin-upgrade/references/pre-flight.md +208 -0
  91. package/skills/plugin-upgrade/references/precision-checklist.md +221 -0
  92. package/skills/plugin-upgrade/references/rc-0.1.3-runtime-verification.md +42 -0
  93. package/skills/plugin-upgrade/references/rollup-0.1.2.md +358 -0
  94. package/skills/plugin-upgrade/references/troubleshooting.md +24 -0
  95. package/skills/plugin-upgrade/references/v0.1.1-rc.1.md +163 -0
  96. package/skills/plugin-upgrade/references/v0.1.1-rc.2.md +48 -0
  97. package/skills/plugin-upgrade/references/v0.1.2-alpha.1.md +580 -0
  98. package/skills/plugin-upgrade/references/v0.1.2-alpha.2.md +165 -0
  99. package/skills/plugin-upgrade/references/v0.1.2-alpha.3.md +110 -0
  100. package/skills/plugin-upgrade/references/v0.1.2-alpha.4.md +152 -0
  101. package/skills/plugin-upgrade/references/v0.1.2-alpha.5.md +100 -0
  102. package/skills/plugin-upgrade/references/v0.1.2-rc.1.md +166 -0
  103. package/skills/plugin-upgrade/references/v0.1.3-alpha.1.md +349 -0
  104. package/skills/plugin-upgrade/references/v0.1.3-alpha.2.md +263 -0
  105. package/skills/plugin-upgrade/references/v0.1.5-alpha.1.md +770 -0
  106. package/skills/plugin-upgrade/references/v0.1.5-alpha.2.md +800 -0
  107. package/skills/plugin-upgrade/references/v0.1.5-rc.1.md +159 -0
  108. package/skills/plugin-upgrade/references/v0.1.5-rc.2.md +232 -0
  109. package/skills/plugin-upgrade/references/v0.1.6-alpha.1.md +833 -0
  110. package/skills/plugin-upgrade/references/v0.1.6-alpha.2.md +81 -0
  111. package/skills/plugin-upgrade/references/v0.1.7-alpha.1.md +161 -0
  112. package/skills/plugin-upgrade/references/v0.1.7-alpha.2.md +76 -0
  113. package/skills/plugin-upgrade/references/v0.1.7-rc.1.md +186 -0
  114. package/skills/plugin-upgrade/references/v0.2.0-rc.1.md +154 -0
  115. package/skills/plugin-upgrade/scripts/README.md +108 -0
  116. package/skills/plugin-upgrade/scripts/ghost-host-check.check.mjs +52 -0
  117. package/skills/plugin-upgrade/scripts/ghost-host-check.mjs +159 -0
  118. package/skills/plugin-upgrade/scripts/inject-lint.mjs +97 -0
  119. package/skills/plugin-upgrade/scripts/inject-lint.test.mjs +190 -0
  120. package/skills/plugin-upgrade/scripts/plan-migration.check.mjs +128 -0
  121. package/skills/plugin-upgrade/scripts/plan-migration.mjs +347 -0
  122. package/skills/plugin-upgrade/scripts/verify-runtime.check.mjs +237 -0
  123. package/skills/plugin-upgrade/scripts/verify-runtime.mjs +621 -0
  124. package/skills/plugin-workflow/SKILL.md +179 -0
  125. package/skills/plugin-workflow/agents/openai.yaml +4 -0
  126. package/skills/plugin-workflow/references/workflow-selection.schema.json +88 -0
  127. package/skills/plugin-workflow/scripts/plan-workflow.check.mjs +184 -0
  128. package/skills/plugin-workflow/scripts/plan-workflow.mjs +475 -0
  129. package/skills/plugin-write/SKILL.md +121 -0
  130. package/skills/plugin-write/references/README.md +18 -0
  131. package/skills/plugin-write/references/config-plugin.md +45 -0
  132. package/skills/plugin-write/references/hook-plugin.md +58 -0
  133. package/skills/plugin-write/references/llm-adapter-plugin.md +67 -0
  134. package/skills/plugin-write/references/naming-conventions.md +103 -0
  135. package/skills/plugin-write/references/naming-policy.v1.json +127 -0
  136. package/skills/plugin-write/references/plugin-naming.schema.json +207 -0
  137. package/skills/plugin-write/references/registry-check.md +115 -0
  138. package/skills/plugin-write/references/service-plugin.md +67 -0
  139. package/skills/plugin-write/references/tool-plugin.md +81 -0
  140. package/skills/plugin-write/references/version-adaptation.md +50 -0
  141. package/skills/plugin-write/scripts/query-registry.check.mjs +332 -0
  142. package/skills/plugin-write/scripts/query-registry.mjs +674 -0
  143. package/skills/plugin-write/scripts/validate-names.check.mjs +231 -0
  144. package/skills/plugin-write/scripts/validate-names.mjs +397 -0
  145. package/upstream/README.en.md +52 -0
  146. package/upstream/README.md +52 -0
  147. package/upstream-lock.json +25 -0
package/README.md ADDED
@@ -0,0 +1,145 @@
1
+ # plugin-upgrade-cordis — 插件升级创造模式
2
+
3
+ > 官方**创造模式**(preset id `cordis`)**逐字保留**:同样的 persona、同样的工具矩阵、同样的计划 / 压缩 / 子代理编排与动态插件工具 `tool-cordis`。在此之上并入 [oh-my-dsh/dsh-plugin-upgrade-skill](https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill) 的 **11 个插件工程技能**(随包 `skills/`)。会话选择器里的显示名是**插件升级创造模式**。
4
+
5
+ ## 与官方创造模式的异同
6
+
7
+ | | 官方 `cordis`(创造模式) | 本 preset(插件升级创造模式) |
8
+ | --- | --- | --- |
9
+ | persona / 工具矩阵 / 计划 / 压缩 / 子代理 | — | **逐字相同**(`plugin-upgrade-cordis.patch.yml` 是官方 `presets/cordis.patch.yml` 抄一份,只改行 id、`config.id`、显示名与说明、`config.order`,再在 `skill-filesystem` 行加一个 custom root) |
10
+ | 技能目录 | 官方随附 4 个(`agent-experience` / `cordis-composition-reference` / `cordis-plugin-development` / `editing-cordis-compositions`) | **同一行再加一个 custom root**,多出本包的 11 个插件工程技能(官方那 4 个照旧在列) |
11
+ | 显示名 / order | 创造模式 / 4 | 插件升级创造模式 / 6 |
12
+
13
+ `skill-filesystem` 那一行只改了 `customSkillDirs`:在官方那条之前插入本包的根,其余字段一字未动。
14
+
15
+ ## 组成
16
+
17
+ ```
18
+ plugin-upgrade-cordis/
19
+ ├── package.json # bundle 声明:dsh.bundle.patch + exports["./package.json"]
20
+ ├── plugin-upgrade-cordis.patch.yml # preset 声明与全部组合行(= 官方 cordis 行 + 本包技能根)
21
+ ├── README.md # 本文件
22
+ ├── UPSTREAM.md # 上游来源、钉住的 commit、再同步步骤与哈希配方
23
+ ├── check-upstream.mjs # 上游同步检查:在线看漂移,--verify 查完整性,--write 重建锁
24
+ ├── upstream-lock.json # 钉住的 commit + 11 个技能的树哈希(v1)
25
+ ├── skills/ # 11 个技能目录(上游逐字,各带自己的 references/ scripts/ examples/)
26
+ │ ├── plugin-upgrade/ plugin-workflow/ plugin-write/ plugin-test/
27
+ │ ├── plugin-release/ plugin-runtime-debug/ plugin-fleet-sweep/
28
+ │ ├── plugin-heavy-dep/ dsh-upgrade-audit/ dsh-benchmark-case/
29
+ │ ├── generic-migration/
30
+ │ └── LICENSE # 上游 MIT 许可原文
31
+ └── upstream/ # 上游 skills/README.md、README.en.md(原文,不参与技能发现)
32
+ ```
33
+
34
+ `skills/` 根下**只有 11 个技能目录与一个非 `.md` 文件**(`LICENSE`)。技能发现对根下的每个目录找 `<dir>/SKILL.md`、对根下的每个 `.md` 文件当扁平技能解析——上游那两份 `skills/README*.md` 因此挪到 `upstream/`,否则每次装载都会各报一条 `missing YAML frontmatter` 警告。
35
+
36
+ ## 随包技能
37
+
38
+ | 技能 | 做什么 |
39
+ | --- | --- |
40
+ | `plugin-upgrade` | 只读检查、已装插件升级、宿主版本兼容迁移;七类触点 + 版本卡 + 安全回滚 |
41
+ | `plugin-workflow` | 跨阶段编排插件生命周期:能力菜单、阶段账本、一次授权贯穿 |
42
+ | `plugin-write` | 写 DSH 插件:仓库模式与扩展形态选择、命名校验、版本适配 |
43
+ | `plugin-test` | 为插件变更选最小充分测试层级;含版本迁移的七触点测试流程 |
44
+ | `plugin-release` | 打包、发布与分发:发布轨选择、未发布 cohort 安装、CI 门禁与回滚 |
45
+ | `plugin-runtime-debug` | 依宿主源码契约排查 Web 插件运行时故障(粘贴 / 附件 / 输入机、版本 chip) |
46
+ | `plugin-fleet-sweep` | 宿主升级后整队巡检已装插件:逐插件判定与修复发布循环 |
47
+ | `plugin-heavy-dep` | 给轻量 Web 插件接重依赖:懒加载 chunk、宿主路由包含防护、SVG 白名单 |
48
+ | `dsh-upgrade-audit` | 审计两个 DSH 版本间的外部兼容与回滚,产出 UPGRADE-ADAPTATION 报告 |
49
+ | `dsh-benchmark-case` | 把真实升级经验提取成可自动判分的 Harbor 考题 |
50
+ | `generic-migration` | 框架无关的迁移方法论(benchmark 侧的 generic 对照组) |
51
+
52
+ ### 版本卡覆盖
53
+
54
+ `plugin-upgrade` 的正文只留决策流程,版本事实全在 `skills/plugin-upgrade/references/v*.md`——**卡覆盖到哪,技能就能可靠用到哪**。随包(上游 `ef07576`,查于 2026-10-06)的现状:
55
+
56
+ | 走廊(`from → to`) | 覆盖 |
57
+ | --- | --- |
58
+ | `dsh-v0.1.7-rc.2 → dsh-v0.2.0-rc.1` | ✅ 6 张卡([v0.2.0-rc.1.md](skills/plugin-upgrade/references/v0.2.0-rc.1.md)) |
59
+ | `dsh-v0.1.7-rc.1 → dsh-v0.1.7-rc.2` | ❌ 未成卡(卡文件内自带声明) |
60
+ | `dsh-v0.2.0-rc.1 → dsh-v0.2.0-rc.2` | ⚠️ 只有同文件末尾两条 field notes,未成卡 |
61
+ | `dsh-v0.2.0-rc.2 → dsh-v0.2.1-alpha.1` | ❌ 上游尚无(DSH 已发布 0.2.1-alpha.1) |
62
+
63
+ 完整索引在 [references/README.md](skills/plugin-upgrade/references/README.md),**按 `from → to` 走廊读,不按文件名顺序**。目标版本没有卡时,**同步上游解决不了**——那正是随包 `dsh-upgrade-audit`(对比两个版本、产证据)与 `plugin-workflow`(编排)的用武之地;产出的证据可以回馈成上游的一张新卡。
64
+
65
+ ## 声明形态
66
+
67
+ 一个 preset 由**插件组合包(bundle)**声明:`package.json` 的 `dsh.bundle.patch` 指向本目录的 `plugin-upgrade-cordis.patch.yml`,该 patch 往 profile 树里插一条 `@deepseek-ai/dsh-agent-preset` 行;preset 的组合行整体进这一行的 `config.plugins`,显示名与描述是 `config.name` / `config.description`,preset id 是 `config.id`。
68
+
69
+ `order: 6`:官方四条占 1–4(`standard` 1、`ptc` 2、`minimal` 3、`cordis` 4),`minimal-fs` 占 5,本 preset 取已占用最大值 +1。台账在 [docs/rules/presets.md](../../docs/rules/presets.md)「order 台账」。
70
+
71
+ ### 技能根为什么写成包名而不是相对路径
72
+
73
+ preset 行按**声明它那棵树**的 `baseUrl` 导入;bundle patch 的行整体合入 profile 的根 include,所以这个 `baseUrl` 是 **profile 目录**(`file:///<DSH_HOME>/profiles/web/`),不是本 preset 目录。`./skills` 这种相对写法会落到 profile 下、永远够不到本目录,结果是 `skill-filesystem` 拿不到任何自定义技能。
74
+
75
+ 所以两个根都用 `!!js` 算绝对路径:
76
+
77
+ ```yaml
78
+ - !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@lynn123411/dsh-preset-plugin-upgrade-cordis/package.json')), 'skills')
79
+ ```
80
+
81
+ `createRequire(baseUrl).resolve(本包名)` 成立的**前提是本包已装进该 profile**——这正是 bundle 安装做的事。数组第一条(上面这条)是本包新增的,第二条是官方 `cordis` 行原有的写法(`@deepseek-ai/dsh-agent-preset/package.json`),一字未改;**顺序即优先级**。
82
+
83
+ ## 安装与启用
84
+
85
+ ```bash
86
+ # 装进 profile(npm 包名)
87
+ dsh plugin --profile web add @lynn123411/dsh-preset-plugin-upgrade-cordis
88
+
89
+ # 本仓库开发副本:在仓库根执行,命令把目录 link 进 profile 并登记包名
90
+ dsh plugin --profile web add ./presets/plugin-upgrade-cordis
91
+ ```
92
+
93
+ 装完**重启 DSH**,在新建会话界面选择「插件升级创造模式」。preset 的挂载在进程内只装载一次:改 `plugin-upgrade-cordis.patch.yml` 或 `skills/` 后要重启,不会热更已挂载的那一份。
94
+
95
+ ## 验证
96
+
97
+ **组合解析(必跑)**——把本目录的 patch 叠到 web profile 上:
98
+
99
+ ```bash
100
+ node "<DSH 安装>/node_modules/@deepseek-ai/dsh/lib/bin.js" \
101
+ --profile web --patch presets/plugin-upgrade-cordis/plugin-upgrade-cordis.patch.yml --dump-config
102
+ # exit=0;输出里出现 preset-plugin-upgrade-cordis 行与其 config.plugins
103
+ ```
104
+
105
+ `--dump-config` 只组合、不装载、**不求值 `!!js`**,所以它证明 patch 能解析,不证明技能根算得对。
106
+
107
+ **随包完整性与形态(离线,必跑)**——`check-upstream.mjs --verify` 一次查三件事:`skills/` 根下只有 11 个技能目录与 `LICENSE`(没有会被当成扁平技能的散 `.md`)、每个目录的 `SKILL.md` frontmatter `name` 等于目录名且带 `description`、11 个技能的树哈希与 `upstream-lock.json` 逐一对上:
108
+
109
+ ```bash
110
+ node presets/plugin-upgrade-cordis/check-upstream.mjs --verify
111
+ # 期望:PASS 11 skills match the lock (oh-my-dsh/dsh-plugin-upgrade-skill@ef075767)
112
+ # exit 0=一致;1=本地内容/形态漂了;2=锁缺失或读不到
113
+ ```
114
+
115
+ **该不该同步上游(在线)**——比对钉住的 commit 与上游当前 `skills/`,只认收录范围内的变更:
116
+
117
+ ```bash
118
+ node presets/plugin-upgrade-cordis/check-upstream.mjs
119
+ # identical 或只列出 skills/ 下的变更;exit 1=该同步,exit 2=问不到(网络 / 限流,可设 GITHUB_TOKEN)
120
+ ```
121
+
122
+ `--verify` 只查形态与完整性,**不查技能发现**。要查发现,用真实的 `@deepseek-ai/dsh-skill-filesystem`:`FileSystemSkillProvider` 以 `customSkillDirs=[<本目录>/skills]`、`includeDefaultRoots: false`、`watch: false` 构造,`list({ cwd })` 应给 11 个 `source=custom` 候选、0 条 `logger.warn`,逐个 `get()` 都能取到正文——这正是 preset 那一行在宿主里跑的同一条代码路径。
123
+
124
+ **真装载**——隔离 `DSH_HOME` 的 profile 里 `dsh plugin add` 本目录后 boot(`--port 0 --no-open`),在新会话里选中本 preset,打开 `/` 菜单的「技能」段:应与官方 4 个技能同时在列。实测记录见下。
125
+
126
+ ### 适配实测记录(0.2.0-rc.2,2026-10-06)
127
+
128
+ 隔离 `DSH_HOME`(复制 web profile 后 `pnpm install` 重建 `link:`)装本目录并 boot,无任何启动诊断;选择器按 order 列出:
129
+
130
+ ```
131
+ 标准模式 PTC 模式 极简模式 创造模式 极简-文件 插件升级创造模式(第 6 位)
132
+ ```
133
+
134
+ 选中「插件升级创造模式」后,`/` 菜单「技能」段列出官方 4 个 + 本包 11 个(`dsh-benchmark-case`、`dsh-upgrade-audit`、`generic-migration`、`plugin-fleet-sweep`、`plugin-heavy-dep`、`plugin-release`、`plugin-runtime-debug`、`plugin-test`、`plugin-upgrade`、`plugin-workflow`、`plugin-write` 全部在列)。同一次跑的裸探针(真实 `FileSystemSkillProvider` + `customSkillDirs=[skills/]`)给:11 个候选、`source=custom`、0 条警告、每个 `SKILL.md` 正文可加载,`resourceBase` 指向各自的技能目录。
135
+
136
+ ## 已知边界
137
+
138
+ - **上游技能正文按上游仓库根写**:`dsh-benchmark-case` 提到 `benchmark/tasks/`、`scripts/validate.mjs`,`plugin-release` / `plugin-test` 提到上游的 cohort 与快照目录。这些**不是本包内容**,本包只随 `skills/`——用到那些技能时按上游仓库(或用户自己的插件仓库)的实际布局走。上游的 `scripts/`、`benchmark/`、`paper/` 一律未收录。
139
+ - **技能正文逐字复制、不做本地改写**:要改内容就改上游,再按 [UPSTREAM.md](./UPSTREAM.md) 重新同步,否则下次同步会把本地改动冲掉。`check-upstream.mjs --verify` 就是用来抓这种「本地被改过」的。
140
+ - **上游更新了要不要跟**:只看 `skills/` 下的变更——`node check-upstream.mjs` 说了算;上游的 `benchmark/` / `paper/` / CI 再热闹也与此无关。**卡缺口(见上「版本卡覆盖」)不是同步能解决的**,那种目标版本要用 `dsh-upgrade-audit` 自己产证据。
141
+ - 上游 `skills/README.md` 的收录清单与作者表保留在 `upstream/`,便于对照。
142
+
143
+ ## 许可证
144
+
145
+ 包自身 `license: MIT`(见 `package.json`)。`skills/` 下的技能内容来自 [oh-my-dsh/dsh-plugin-upgrade-skill](https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill)(MIT),许可证原文随包放在 `skills/LICENSE`。
package/UPSTREAM.md ADDED
@@ -0,0 +1,85 @@
1
+ # 上游来源与再同步
2
+
3
+ 本 preset 的 `skills/` 是**上游仓库的逐字复制**,不是依赖。这份文件记来源、钉住的提交、哈希配方、同步步骤与判据;机器可读的那一份是 [upstream-lock.json](./upstream-lock.json),检查工具是 [check-upstream.mjs](./check-upstream.mjs)。
4
+
5
+ ## 来源
6
+
7
+ | | |
8
+ | --- | --- |
9
+ | 仓库 | [oh-my-dsh/dsh-plugin-upgrade-skill](https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill) |
10
+ | 钉住的提交 | `ef075767b476e8000c716a18f848028eebcd5aef`(2026-10-05,`main`)——以 `upstream-lock.json` 的 `commit` 为准,本表只是人读的副本 |
11
+ | 许可证 | MIT(`Copyright (c) 2026 dsh-plugin-upgrade-skill contributors`),原文随包在 `skills/LICENSE` |
12
+
13
+ **为什么是复制而不是 `dependencies`**:上游 `package.json` 是 `"private": true`,未发布到 registry,preset 行按包名 `createRequire(baseUrl).resolve(...)` 解析时够不到它;复制成随包目录后 preset 自带全部技能,`files` 里带上 `skills` 即可发布。
14
+
15
+ ## 什么时候需要同步
16
+
17
+ 只看**收录范围内**的变更:`skills/**`(含版本卡 `skills/plugin-upgrade/references/v*.md`)与 `skills/README*.md`。上游的 `benchmark/`、`paper/`、`output/`、`scripts/`、CI 与本包无关。
18
+
19
+ ```bash
20
+ node presets/plugin-upgrade-cordis/check-upstream.mjs # 在线:钉住提交 → 上游 main,只列 skills/ 下的变更
21
+ node presets/plugin-upgrade-cordis/check-upstream.mjs --verify # 离线:本地树是否仍与锁一致(抓本地被改过)
22
+ ```
23
+
24
+ exit 0 = 无需动作,1 = 该同步 / 本地漂了,2 = 问不到(网络、限流可设 `GITHUB_TOKEN`、提交被改写)。
25
+
26
+ **版本卡缺口不属于同步问题**:目标 DSH 版本在上游没有对应卡时,同步也变不出卡来——那要用随包的 `dsh-upgrade-audit` 自己产证据(见 README.md「版本卡覆盖」)。
27
+
28
+ ## 收录范围
29
+
30
+ | 上游路径 | 本包去处 |
31
+ | --- | --- |
32
+ | `skills/<11 个技能目录>/**` | `skills/<同名目录>/**`(逐字) |
33
+ | `skills/LICENSE`(仓库根 `LICENSE` 同文) | `skills/LICENSE` |
34
+ | `skills/README.md`、`skills/README.en.md` | `upstream/README.md`、`upstream/README.en.md`(原文;不能留在 `skills/` 根,否则被当成扁平技能解析并报 `missing YAML frontmatter`) |
35
+ | `scripts/`、`benchmark/`、`paper/`、`output/`、`.agents/`、`.claude-plugin/`、`.codex-plugin/`、`CONTRIBUTING*.md` | **不收录** |
36
+
37
+ 11 个技能目录:`dsh-benchmark-case`、`dsh-upgrade-audit`、`generic-migration`、`plugin-fleet-sweep`、`plugin-heavy-dep`、`plugin-release`、`plugin-runtime-debug`、`plugin-test`、`plugin-upgrade`、`plugin-workflow`、`plugin-write`。
38
+
39
+ ## 再同步步骤
40
+
41
+ ```bash
42
+ # 1) 取上游(只取 skills/,浅克隆 + sparse,避免拉 benchmark/ 与 paper/)
43
+ cd tmp && rm -rf dsh-plugin-upgrade-skill
44
+ git clone --depth 1 --filter=blob:none --sparse https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git
45
+ cd dsh-plugin-upgrade-skill && git sparse-checkout set skills
46
+ NEW=$(git rev-parse HEAD) # 新提交号
47
+
48
+ # 2) 复制。注意 macOS 的 `cp -R src/ dest/` 会把 src 的「内容」摊进 dest,
49
+ # 必须显式给出目标目录名,否则 11 个技能会被合并成一层共享的根
50
+ ID=plugin-upgrade-cordis
51
+ SRC=$PWD/skills
52
+ cd /Users/tny/Desktop/work/my-dsh
53
+ rm -rf presets/$ID/skills && mkdir -p presets/$ID/skills
54
+ for d in "$SRC"/*/; do cp -R "$d" "presets/$ID/skills/$(basename "$d")"; done
55
+ cp "$SRC/README.md" "$SRC/README.en.md" presets/$ID/upstream/
56
+ curl -sS "https://raw.githubusercontent.com/oh-my-dsh/dsh-plugin-upgrade-skill/$NEW/LICENSE" -o presets/$ID/skills/LICENSE
57
+
58
+ # 3) 重新钉锁(会先查形态,树不正则拒绝写入),然后验
59
+ node presets/$ID/check-upstream.mjs --write --commit "$NEW"
60
+ node presets/$ID/check-upstream.mjs --verify
61
+ ```
62
+
63
+ 因为 web profile 里是 `link:` 开发副本,**不需要重新安装**;改完重启 DSH 即可。
64
+
65
+ ## 同步判据
66
+
67
+ 1. `check-upstream.mjs --verify` PASS(= 11 个技能的树哈希与锁逐一对上,`skills/` 根无散 `.md`,每个 `SKILL.md` 的 `name` 等于目录名);
68
+ 2. `diff -rq <上游>/skills/<n> presets/<id>/skills/<n>`(外加 `LICENSE`)逐目录全绿——第 1 条只证明「和锁一致」,这一条才证明「和上游一致」;
69
+ 3. `check-upstream.mjs` 在线模式报 `identical`(钉的提交就是当前上游该路径的状态);
70
+ 4. **真实发现**:按 README.md「验证」第二条(真实 `FileSystemSkillProvider` + `customSkillDirs=[skills/]`)跑一遍,报 11 个候选、0 条警告;
71
+ 5. **组合仍能解析**:`--dump-config` exit 0 且出现 `preset-plugin-upgrade-cordis` 行;
72
+ 6. **真装载**:隔离 `DSH_HOME` boot 后在 `/` 菜单「技能」段看到 11 个技能(步骤见 README.md「验证」)。
73
+
74
+ 上游 `skills/README.md` 的表若增删了技能,本 preset 的 `README.md`「随包技能」表、`package.json` 的 `description`、`upstream-lock.json`(`--write` 自动)一起改;内容变了就把 `package.json` 的 `version` 加一位。
75
+
76
+ ## 哈希配方
77
+
78
+ `upstream-lock.json` 里 `skills[name]` 是该技能目录的树哈希,`hash` 是整份收录集的集合哈希。规则固定、可复算:
79
+
80
+ 1. 目录内文件按目录相对 POSIX 路径排序,跳过 `.git` 与 `.DS_Store`;
81
+ 2. 逐个文件喂 `sha256`:`<相对路径>\0<文件字节>\0`;符号链接喂 `link:<目标文本>`;
82
+ 3. 技能树哈希 = 上述 `sha256` 的十六进制,前缀 `sha256-`;
83
+ 4. 集合哈希 = 对每个技能按名字排序后喂 `<技能名>\0<该技能树哈希>\n` 的 `sha256`。
84
+
85
+ 要改配方就得同时改 `check-upstream.mjs` 与本节,并重跑 `--write`。
@@ -0,0 +1,273 @@
1
+ #!/usr/bin/env node
2
+ // Vendor check for presets/plugin-upgrade-cordis.
3
+ //
4
+ // node check-upstream.mjs online: did upstream change anything under the vendored paths
5
+ // since the commit pinned in upstream-lock.json?
6
+ // node check-upstream.mjs --verify offline: does this tree still match the lock, and is it shaped
7
+ // like a skill root (every dir has SKILL.md, name == dir, no stray .md)?
8
+ // node check-upstream.mjs --write offline: rewrite upstream-lock.json from the current tree.
9
+ // Pair with --commit <sha> after copying a new upstream revision.
10
+ //
11
+ // Exit codes: 0 = up to date / verified, 1 = drift or shape problem, 2 = could not determine
12
+ // (network, rate limit, unknown commit, unreadable lock). This is repo-side tooling; it also ships
13
+ // in the package so an installed copy can be verified the same way.
14
+ import { createHash } from 'node:crypto'
15
+ import { lstatSync, readFileSync, readlinkSync, readdirSync, writeFileSync } from 'node:fs'
16
+ import { dirname, join, relative, sep } from 'node:path'
17
+ import { fileURLToPath } from 'node:url'
18
+
19
+ const HERE = dirname(fileURLToPath(import.meta.url))
20
+ const LOCK_PATH = join(HERE, 'upstream-lock.json')
21
+ const DEFAULT_REPO = 'oh-my-dsh/dsh-plugin-upgrade-skill'
22
+ const DEFAULT_REF = 'main'
23
+ const DEFAULT_VENDORED = 'skills'
24
+ const SKIP = new Set(['.git', '.DS_Store'])
25
+
26
+ function parseArgs(argv) {
27
+ const opts = { mode: 'check', json: false }
28
+ for (let i = 0; i < argv.length; i += 1) {
29
+ const arg = argv[i]
30
+ if (arg === '--verify') opts.mode = 'verify'
31
+ else if (arg === '--write') opts.mode = 'write'
32
+ else if (arg === '--json') opts.json = true
33
+ else if (arg === '--commit') opts.commit = argv[++i]
34
+ else if (arg === '--repo') opts.repo = argv[++i]
35
+ else if (arg === '--ref') opts.ref = argv[++i]
36
+ else if (arg === '--help' || arg === '-h') opts.help = true
37
+ else throw new Error(`unknown argument: ${arg}`)
38
+ }
39
+ return opts
40
+ }
41
+
42
+ function readLock() {
43
+ try {
44
+ return JSON.parse(readFileSync(LOCK_PATH, 'utf8'))
45
+ } catch (error) {
46
+ if (error.code === 'ENOENT') return undefined
47
+ console.error(`cannot read ${LOCK_PATH}: ${error.message}`)
48
+ process.exit(2)
49
+ }
50
+ }
51
+
52
+ function relPosix(base, path) {
53
+ return relative(base, path).split(sep).join('/')
54
+ }
55
+
56
+ /** Every regular file under `dir`, as directory-relative POSIX paths, sorted. */
57
+ function listFiles(dir, base = dir) {
58
+ const out = []
59
+ for (const entry of readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
60
+ if (SKIP.has(entry.name)) continue
61
+ const path = join(dir, entry.name)
62
+ if (entry.isDirectory()) out.push(...listFiles(path, base))
63
+ else if (entry.isSymbolicLink()) out.push({ rel: relPosix(base, path), link: readlinkSync(path) })
64
+ else if (entry.isFile()) out.push({ rel: relPosix(base, path), path })
65
+ }
66
+ return out.sort((a, b) => (a.rel < b.rel ? -1 : a.rel > b.rel ? 1 : 0))
67
+ }
68
+
69
+ /** sha256 over sorted `rel\0<bits>\0` records; a symlink hashes its target text. */
70
+ function hashDir(dir) {
71
+ const hash = createHash('sha256')
72
+ for (const file of listFiles(dir)) {
73
+ hash.update(file.rel)
74
+ hash.update('\0')
75
+ hash.update(file.link === undefined ? readFileSync(file.path) : Buffer.from(`link:${file.link}`))
76
+ hash.update('\0')
77
+ }
78
+ return `sha256-${hash.digest('hex')}`
79
+ }
80
+
81
+ /** sha256 over sorted `skill\0<treeHash>\n` records — the whole vendored set. */
82
+ function hashSkills(skillsDir, names) {
83
+ const hash = createHash('sha256')
84
+ for (const name of [...names].sort()) {
85
+ hash.update(name)
86
+ hash.update('\0')
87
+ hash.update(hashDir(join(skillsDir, name)))
88
+ hash.update('\n')
89
+ }
90
+ return `sha256-${hash.digest('hex')}`
91
+ }
92
+
93
+ /** Directory-bundle roots under `skillsDir`; shape violations are pushed onto `problems`. */
94
+ function skillNames(skillsDir, problems) {
95
+ const names = []
96
+ for (const entry of readdirSync(skillsDir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
97
+ if (entry.isDirectory()) {
98
+ names.push(entry.name)
99
+ continue
100
+ }
101
+ if (entry.name.endsWith('.md')) {
102
+ // A flat .md at this root is parsed as a skill by @deepseek-ai/dsh-skill-filesystem and warns
103
+ // "missing YAML frontmatter" on every mount; upstream prose belongs in upstream/ instead.
104
+ problems.push(`skills/${entry.name}: flat .md at the skills root is parsed as a skill — move it out of skills/`)
105
+ }
106
+ }
107
+ for (const name of names) {
108
+ let text
109
+ try {
110
+ text = readFileSync(join(skillsDir, name, 'SKILL.md'), 'utf8')
111
+ } catch {
112
+ problems.push(`skills/${name}: missing SKILL.md`)
113
+ continue
114
+ }
115
+ const frontmatter = /^---\r?\n([\s\S]*?)\r?\n---\r?\n/.exec(text)?.[1] ?? ''
116
+ const declared = /^name:\s*(.+?)\s*$/m.exec(frontmatter)?.[1]?.replace(/^['"]|['"]$/g, '')
117
+ if (declared !== name) problems.push(`skills/${name}: frontmatter name is ${JSON.stringify(declared)}, expected ${JSON.stringify(name)}`)
118
+ if (!/^description:\s*\S/m.test(frontmatter)) problems.push(`skills/${name}: frontmatter has no description`)
119
+ }
120
+ if (names.length === 0) problems.push('skills/: no skill directories found')
121
+ return names
122
+ }
123
+
124
+ /** Local tree state: skill list, shape problems, per-skill tree hashes. */
125
+ function state(vendored) {
126
+ const skillsDir = join(HERE, vendored)
127
+ let stat
128
+ try {
129
+ stat = lstatSync(skillsDir)
130
+ } catch {
131
+ console.error(`cannot read ${skillsDir}`)
132
+ process.exit(2)
133
+ }
134
+ if (!stat.isDirectory()) {
135
+ console.error(`${skillsDir} is not a directory`)
136
+ process.exit(2)
137
+ }
138
+ const problems = []
139
+ const names = skillNames(skillsDir, problems)
140
+ return { skillsDir, names, problems, trees: Object.fromEntries(names.map((n) => [n, hashDir(join(skillsDir, n))])) }
141
+ }
142
+
143
+ function verify() {
144
+ const lock = readLock()
145
+ if (lock === undefined) {
146
+ console.error(`${LOCK_PATH} is missing — run: node check-upstream.mjs --write --commit <sha>`)
147
+ return 2
148
+ }
149
+ const { names, problems, trees } = state(lock.vendored ?? DEFAULT_VENDORED)
150
+ const expected = lock.skills ?? {}
151
+ for (const name of Object.keys(expected)) if (!names.includes(name)) problems.push(`skills/${name}: in the lock but missing on disk`)
152
+ for (const name of names) {
153
+ if (!(name in expected)) problems.push(`skills/${name}: on disk but not in the lock (new skill — run --write)`)
154
+ else if (trees[name] !== expected[name]) problems.push(`skills/${name}: content differs from the lock (${expected[name]} -> ${trees[name]})`)
155
+ }
156
+ const hash = hashSkills(join(HERE, lock.vendored ?? DEFAULT_VENDORED), names)
157
+ if (hash !== lock.hash) problems.push(`skills/: set hash differs from the lock (${lock.hash} -> ${hash})`)
158
+ if (problems.length > 0) {
159
+ console.error(`FAIL ${lock.source?.repo ?? DEFAULT_REPO}@${String(lock.commit).slice(0, 8)} — ${problems.length} problem(s):`)
160
+ for (const problem of problems) console.error(` ${problem}`)
161
+ console.error('If this is an intended sync, re-run with --write (and --commit <sha>).')
162
+ return 1
163
+ }
164
+ console.log(`PASS ${names.length} skills match the lock (${lock.source?.repo ?? DEFAULT_REPO}@${String(lock.commit).slice(0, 8)})`)
165
+ console.log(` ${hash}`)
166
+ return 0
167
+ }
168
+
169
+ function write(opts) {
170
+ const lock = readLock() ?? {}
171
+ const vendored = lock.vendored ?? DEFAULT_VENDORED
172
+ const { names, problems, trees } = state(vendored)
173
+ if (problems.length > 0) {
174
+ console.error(`refusing to lock a malformed tree — ${problems.length} problem(s):`)
175
+ for (const problem of problems) console.error(` ${problem}`)
176
+ return 1
177
+ }
178
+ const commit = opts.commit ?? lock.commit
179
+ if (commit === undefined) {
180
+ console.error('--write needs --commit <sha> when upstream-lock.json does not exist yet')
181
+ return 2
182
+ }
183
+ const next = {
184
+ version: 1,
185
+ source: { repo: opts.repo ?? lock.source?.repo ?? DEFAULT_REPO, type: 'github' },
186
+ ref: opts.ref ?? lock.ref ?? DEFAULT_REF,
187
+ commit,
188
+ vendored,
189
+ license: lock.license ?? 'MIT',
190
+ hash: hashSkills(join(HERE, vendored), names),
191
+ skills: Object.fromEntries([...names].sort().map((n) => [n, trees[n]])),
192
+ }
193
+ writeFileSync(LOCK_PATH, `${JSON.stringify(next, null, 2)}\n`)
194
+ console.log(`wrote upstream-lock.json — ${names.length} skills @ ${commit}`)
195
+ console.log(` ${next.hash}`)
196
+ return 0
197
+ }
198
+
199
+ async function check(opts) {
200
+ const lock = readLock()
201
+ if (lock === undefined) {
202
+ console.error(`${LOCK_PATH} is missing — run: node check-upstream.mjs --write --commit <sha>`)
203
+ return 2
204
+ }
205
+ const repo = opts.repo ?? lock.source?.repo ?? DEFAULT_REPO
206
+ const vendored = lock.vendored ?? DEFAULT_VENDORED
207
+ const ref = opts.ref ?? lock.ref ?? DEFAULT_REF
208
+ const url = `https://api.github.com/repos/${repo}/compare/${lock.commit}...${ref}`
209
+ let response
210
+ try {
211
+ response = await fetch(url, {
212
+ headers: {
213
+ accept: 'application/vnd.github+json',
214
+ 'user-agent': 'dsh-preset-plugin-upgrade-cordis-check-upstream',
215
+ ...(process.env.GITHUB_TOKEN ? { authorization: `Bearer ${process.env.GITHUB_TOKEN}` } : {}),
216
+ },
217
+ })
218
+ } catch (error) {
219
+ console.error(`cannot reach the GitHub API: ${error.message}`)
220
+ return 2
221
+ }
222
+ if (response.status === 403 || response.status === 429) {
223
+ console.error(`GitHub API refused the request (${response.status}) — likely the unauthenticated rate limit; set GITHUB_TOKEN`)
224
+ return 2
225
+ }
226
+ if (response.status === 404) {
227
+ console.error(`unknown comparison ${repo}@${String(lock.commit).slice(0, 8)}...${ref} — was the pinned commit rewritten?`)
228
+ return 2
229
+ }
230
+ if (!response.ok) {
231
+ console.error(`GitHub API returned ${response.status}`)
232
+ return 2
233
+ }
234
+ const data = await response.json()
235
+ const prefix = `${vendored}/`
236
+ const files = data.files ?? []
237
+ const changed = files.filter((f) => f.filename === vendored || f.filename.startsWith(prefix))
238
+ const truncated = files.length >= 300
239
+ if (opts.json) {
240
+ console.log(JSON.stringify({ repo, ref, status: data.status, aheadBy: data.ahead_by, totalCommits: data.total_commits, truncated, changed: changed.map((f) => `${f.status} ${f.filename}`) }, null, 2))
241
+ } else {
242
+ console.log(`${repo}: ${String(lock.commit).slice(0, 8)}...${ref} -> ${data.status} (ahead_by=${data.ahead_by}, ${vendored}/ changed=${changed.length})`)
243
+ for (const file of changed) console.log(` ${file.status} ${file.filename}`)
244
+ if (truncated) console.log(' note: the compare response is capped at 300 files; re-run after syncing to see the rest')
245
+ }
246
+ if (changed.length > 0) {
247
+ if (!opts.json) console.error(`\nupstream moved inside ${vendored}/ — sync per UPSTREAM.md, then: node check-upstream.mjs --write --commit <new sha>`)
248
+ return 1
249
+ }
250
+ if (!opts.json) console.log(`no changes under ${vendored}/ — nothing to sync${data.ahead_by > 0 ? ` (${data.ahead_by} commit(s) ahead, all outside the vendored paths)` : ''}`)
251
+ return 0
252
+ }
253
+
254
+ function usage() {
255
+ console.log(`usage: node check-upstream.mjs [--verify | --write] [options]
256
+
257
+ (default) compare the pinned commit against upstream and list changes under the vendored paths
258
+ --verify offline: local tree matches upstream-lock.json and is shaped like a skill root
259
+ --write offline: rewrite upstream-lock.json from the local tree
260
+ --commit <sha> with --write: pin the new upstream commit
261
+ --repo <o/n> override the source repository
262
+ --ref <branch> upstream branch to compare against (default: main)
263
+ --json machine-readable output (check mode)
264
+
265
+ exit: 0 up to date, 1 drift or shape problem, 2 could not determine`)
266
+ }
267
+
268
+ const opts = parseArgs(process.argv.slice(2))
269
+ if (opts.help) {
270
+ usage()
271
+ process.exit(0)
272
+ }
273
+ process.exit(opts.mode === 'verify' ? verify() : opts.mode === 'write' ? write(opts) : await check(opts))
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@lynn123411/dsh-preset-plugin-upgrade-cordis",
3
+ "version": "0.1.0",
4
+ "description": "插件升级创造模式:官方 cordis 组合(persona、工具矩阵、计划 / 压缩 / 子代理编排、动态插件工具)逐字保留,另并入 dsh-plugin-upgrade-skill 的 11 个插件工程技能(升级迁移、编写、测试、发布、运行时排障、整队巡检、重依赖接入、DSH 版本兼容审计、benchmark 考题提取、通用迁移方法、生命周期编排)。",
5
+ "type": "module",
6
+ "exports": {
7
+ "./package.json": "./package.json"
8
+ },
9
+ "files": [
10
+ "skills",
11
+ "upstream",
12
+ "check-upstream.mjs",
13
+ "upstream-lock.json",
14
+ "plugin-upgrade-cordis.patch.yml",
15
+ "README.md",
16
+ "UPSTREAM.md"
17
+ ],
18
+ "license": "MIT",
19
+ "keywords": [
20
+ "deepseek-harness",
21
+ "dsh",
22
+ "dsh-preset",
23
+ "agent-preset",
24
+ "cordis",
25
+ "plugin-upgrade"
26
+ ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/tttnny/my-dsh.git",
30
+ "directory": "presets/plugin-upgrade-cordis"
31
+ },
32
+ "engines": {
33
+ "dsh": ">=0.2.0-rc.2",
34
+ "node": "^22.19 || >=24"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "dsh": {
40
+ "bundle": {
41
+ "patch": "./plugin-upgrade-cordis.patch.yml"
42
+ }
43
+ }
44
+ }