From 8335230d345f375f6f69e815764d69ac84a94d8d Mon Sep 17 00:00:00 2001 From: betterer <54624517+better-er@users.noreply.github.com> Date: Wed, 30 Sep 2026 19:24:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=AF=B9=E9=BD=90=20dsh=200.2.0-rc.2?= =?UTF-8?q?=20=E4=BE=9D=E8=B5=96=E5=B9=B6=E8=A1=A5=E9=BD=90=E4=BA=A7?= =?UTF-8?q?=E7=89=A9=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 5 ++-- .github/workflows/release.yml | 11 +++++++++ package.json | 8 +++---- pnpm-lock.yaml | 44 +++++++++++++++++------------------ 4 files changed, 40 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b457c7..5354bad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,11 +46,12 @@ jobs: - name: Build run: pnpm build - # 本插件是双半身且产出 dts,产物缺失会在此失败。 + # 本插件是双半身、产出 dts 且带 sourcemap,产物缺失会在此失败。 - name: Verify build outputs run: | test -f lib/index.js test -f lib/index.d.ts test -f lib/client.js + test -f lib/client.js.map test -f cordis.patch.yml - echo "构建产物齐全:lib/index.js · lib/index.d.ts · lib/client.js · cordis.patch.yml" + echo "构建产物齐全:lib/index.js · lib/index.d.ts · lib/client.js · lib/client.js.map · cordis.patch.yml" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f094ade..1203245 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,6 +108,17 @@ jobs: if: steps.published.outputs.published != 'true' run: pnpm build + # 与 CI 共用同一份产物清单,按插件形态增删条目,产物缺失会在此失败。 + - name: Verify build outputs + if: steps.published.outputs.published != 'true' + run: | + test -f lib/index.js + test -f lib/index.d.ts + test -f lib/client.js + test -f lib/client.js.map + test -f cordis.patch.yml + echo "构建产物齐全:lib/index.js · lib/index.d.ts · lib/client.js · lib/client.js.map · cordis.patch.yml" + # Trusted Publishing:npm 凭 workflow 的 OIDC 身份直接授权,无需 NPM_TOKEN;--provenance 会在 npm 上附构建来源证明。 - name: Publish to npm if: steps.published.outputs.published != 'true' diff --git a/package.json b/package.json index ad4146a..ae3df56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-edit-diff", - "version": "0.4.1", + "version": "0.4.2", "description": "「DSH·质量 diff」:接管 edit/write 及 extraTools 配置的其他工具卡片:行级去重与行内高亮,消除相同内容在删除与新增两区的重复;兼容 PTC 模式,标准可安装的 dsh 客户端插件", "keywords": [ "deepseek-harness", @@ -55,14 +55,14 @@ }, "peerDependencies": { "@deepseek-ai/cordis": "^4.0.4", - "@deepseek-ai/dsh": "^0.1.7-rc.2", - "@deepseek-ai/dsh-settings": "^0.1.7-rc.2", + "@deepseek-ai/dsh": "^0.2.0-rc.2", + "@deepseek-ai/dsh-settings": "^0.2.0-rc.2", "@deepseek-ai/schemastery": "^3.18.4" }, "devDependencies": { "@deepseek-ai/cordis": "^4.0.4", "@deepseek-ai/cosmokit": "^1.8.5", - "@deepseek-ai/dsh-settings": "0.1.7-rc.2", + "@deepseek-ai/dsh-settings": "0.2.0-rc.2", "@deepseek-ai/schemastery": "^3.18.4", "@types/react": "~18.3.1", "tsdown": "^0.23.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ccc6319..a71f4ea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^1.8.5 version: 1.8.5 '@deepseek-ai/dsh-settings': - specifier: 0.1.7-rc.2 - version: 0.1.7-rc.2(@deepseek-ai/cordis@4.0.4)(@deepseek-ai/schemastery@3.18.4) + specifier: 0.2.0-rc.2 + version: 0.2.0-rc.2(@deepseek-ai/cordis@4.0.4)(@deepseek-ai/schemastery@3.18.4) '@deepseek-ai/schemastery': specifier: ^3.18.4 version: 3.18.4 @@ -56,34 +56,34 @@ packages: '@deepseek-ai/cosmokit@1.8.5': resolution: {integrity: sha512-LXsrlem9z8dq4sLflj2yuCuYX7KqhdzF5hZly3eZyuTo8d6oDSOXuEgC5DbQWKW+lksm6zmOutQLsP/ma6wR6A==} - '@deepseek-ai/dsh-atomic-write@0.1.7-rc.2': - resolution: {integrity: sha512-gdUVkVv5DXBgnEDB1Dh/lL+HV/8mKR3AGUqNjLhQJSEqE9MIYyiHC+3zwzaWjeWhiTdLXd5rkA4HVCiS3KIcUg==} + '@deepseek-ai/dsh-atomic-write@0.2.0-rc.2': + resolution: {integrity: sha512-CezxdPmADDnOyG/ed9R18In/NifnLgu8hfJEjTBKxd7kbu0XXenyqnk25jeWD6bJYwu8AWAwcpVFuf438EJPJA==} peerDependencies: '@deepseek-ai/cordis': ~4.0.4 - '@deepseek-ai/dsh-config-editor@0.1.7-rc.2': - resolution: {integrity: sha512-UgNqOUqI9ZNABnb7TvoJ9d6EbaScVymL54YV/s8rU06cl4bTKuz/ahA8uLclyutCoRANkwh/eMiA+othLyhooA==} + '@deepseek-ai/dsh-config-editor@0.2.0-rc.2': + resolution: {integrity: sha512-LG/4EyMMBEwcUAsewqn9+6m9+mFeXVGaze0gaz3YOO/bCnJRI/2f4iuejsk/n+yMI9CNczOaIfWT5b3s7zyhfA==} peerDependencies: '@deepseek-ai/cordis': ~4.0.4 '@deepseek-ai/cordis-plugin-include': ~1.0.9 '@deepseek-ai/cordis-plugin-loader': ~1.0.5 - '@deepseek-ai/dsh-app-boot': 0.1.7-rc.2 - '@deepseek-ai/dsh-hmr': 0.1.7-rc.2 + '@deepseek-ai/dsh-app-boot': 0.2.0-rc.2 + '@deepseek-ai/dsh-hmr': 0.2.0-rc.2 peerDependenciesMeta: '@deepseek-ai/dsh-hmr': optional: true - '@deepseek-ai/dsh-settings@0.1.7-rc.2': - resolution: {integrity: sha512-xS48//SMs3xp5qI+brj0T4BsJ1vgcv2LteZO6lW4X0YZVUOIe6H9aS2sRPh2OAWTFHrzPep4NwVkAOCD8NvBzQ==} + '@deepseek-ai/dsh-settings@0.2.0-rc.2': + resolution: {integrity: sha512-Py4ZbCyady6st+h8wlsPJxrAOg9VrT1+tltymnJUiAmdnZjMADZKWec9JrB2KwUuo27R+IbibxzaYQOvnZdUkg==} peerDependencies: '@deepseek-ai/cordis': ~4.0.4 - '@deepseek-ai/dsh-brand': 0.1.7-rc.2 - '@deepseek-ai/dsh-invariants': 0.1.7-rc.2 - '@deepseek-ai/dsh-session': 0.1.7-rc.2 + '@deepseek-ai/dsh-brand': 0.2.0-rc.2 + '@deepseek-ai/dsh-invariants': 0.2.0-rc.2 + '@deepseek-ai/dsh-session': 0.2.0-rc.2 '@deepseek-ai/schemastery': ~3.18.4 - '@deepseek-ai/dsh-util-values@0.1.7-rc.2': - resolution: {integrity: sha512-UX8nh5SbtZcPVVEvjd+9PCPcbybA6OpVzJGgFxYn59ao/7QQGyYbByS8KXr+THU5JtqmDDVb9xGUSJaF2IYmeQ==} + '@deepseek-ai/dsh-util-values@0.2.0-rc.2': + resolution: {integrity: sha512-qgpsbgiZABuE9UvgNaVo9b2HiWwLeU93CTl9PFXqE0jN8ap1ALxzQsLGvr/q2MJuWDYqnFBg60XnqnY8ZxPWEg==} peerDependencies: '@deepseek-ai/cordis': ~4.0.4 @@ -498,25 +498,25 @@ snapshots: '@deepseek-ai/cosmokit@1.8.5': {} - '@deepseek-ai/dsh-atomic-write@0.1.7-rc.2(@deepseek-ai/cordis@4.0.4)': + '@deepseek-ai/dsh-atomic-write@0.2.0-rc.2(@deepseek-ai/cordis@4.0.4)': dependencies: '@deepseek-ai/cordis': 4.0.4(@deepseek-ai/cordis-plugin-loader@1.0.5) - '@deepseek-ai/dsh-config-editor@0.1.7-rc.2(@deepseek-ai/cordis-plugin-loader@1.0.5)(@deepseek-ai/cordis@4.0.4)': + '@deepseek-ai/dsh-config-editor@0.2.0-rc.2(@deepseek-ai/cordis-plugin-loader@1.0.5)(@deepseek-ai/cordis@4.0.4)': dependencies: '@deepseek-ai/cordis': 4.0.4(@deepseek-ai/cordis-plugin-loader@1.0.5) '@deepseek-ai/cordis-plugin-loader': 1.0.5(@deepseek-ai/cordis@4.0.4) - '@deepseek-ai/dsh-atomic-write': 0.1.7-rc.2(@deepseek-ai/cordis@4.0.4) + '@deepseek-ai/dsh-atomic-write': 0.2.0-rc.2(@deepseek-ai/cordis@4.0.4) js-yaml: 4.3.2 yaml: 2.9.1 - '@deepseek-ai/dsh-settings@0.1.7-rc.2(@deepseek-ai/cordis@4.0.4)(@deepseek-ai/schemastery@3.18.4)': + '@deepseek-ai/dsh-settings@0.2.0-rc.2(@deepseek-ai/cordis@4.0.4)(@deepseek-ai/schemastery@3.18.4)': dependencies: '@deepseek-ai/cordis': 4.0.4(@deepseek-ai/cordis-plugin-loader@1.0.5) '@deepseek-ai/cordis-plugin-loader': 1.0.5(@deepseek-ai/cordis@4.0.4) '@deepseek-ai/cosmokit': 1.8.5 - '@deepseek-ai/dsh-config-editor': 0.1.7-rc.2(@deepseek-ai/cordis-plugin-loader@1.0.5)(@deepseek-ai/cordis@4.0.4) - '@deepseek-ai/dsh-util-values': 0.1.7-rc.2(@deepseek-ai/cordis@4.0.4) + '@deepseek-ai/dsh-config-editor': 0.2.0-rc.2(@deepseek-ai/cordis-plugin-loader@1.0.5)(@deepseek-ai/cordis@4.0.4) + '@deepseek-ai/dsh-util-values': 0.2.0-rc.2(@deepseek-ai/cordis@4.0.4) '@deepseek-ai/schemastery': 3.18.4 yaml: 2.9.1 transitivePeerDependencies: @@ -525,7 +525,7 @@ snapshots: - '@deepseek-ai/dsh-hmr' - node-addon-require-builtin - '@deepseek-ai/dsh-util-values@0.1.7-rc.2(@deepseek-ai/cordis@4.0.4)': + '@deepseek-ai/dsh-util-values@0.2.0-rc.2(@deepseek-ai/cordis@4.0.4)': dependencies: '@deepseek-ai/cordis': 4.0.4(@deepseek-ai/cordis-plugin-loader@1.0.5)