dsh-plugin-compat-check 0.1.4 → 0.1.5
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.
- package/README.md +37 -17
- package/THIRD_PARTY_NOTICES.md +139 -0
- package/index.js +282 -53
- package/kernel/lib/author-ci-output.mjs +188 -0
- package/kernel/lib/author-ci-policy.mjs +285 -0
- package/kernel/lib/catalog.mjs +38 -0
- package/kernel/lib/contracts.mjs +88 -0
- package/kernel/lib/dependency-graph.mjs +650 -0
- package/kernel/lib/extract.mjs +14 -0
- package/kernel/lib/finding-guidance.mjs +72 -0
- package/kernel/lib/finding-review-store.mjs +245 -0
- package/kernel/lib/finding-review.mjs +338 -0
- package/kernel/lib/functional-health-contract.mjs +337 -0
- package/kernel/lib/issue-report.mjs +217 -0
- package/kernel/lib/observation.mjs +19 -9
- package/kernel/lib/report-identity-worker.mjs +153 -0
- package/kernel/lib/report-identity.mjs +15 -0
- package/kernel/lib/report-service.mjs +196 -11
- package/kernel/lib/report.mjs +76 -11
- package/kernel/lib/source-analysis.mjs +24 -6
- package/kernel/lib/upgrade-capture-worker.mjs +20 -0
- package/kernel/lib/upgrade-cleanup-worker.mjs +28 -0
- package/kernel/lib/upgrade-contract.mjs +471 -0
- package/kernel/lib/upgrade-input.mjs +309 -0
- package/kernel/lib/upgrade-preview.mjs +256 -0
- package/kernel/lib/upgrade-worker.mjs +50 -0
- package/kernel/lib/version.mjs +1 -1
- package/kernel/lib/worker-analysis.mjs +16 -1
- package/kernel/lib/workflow-panels.mjs +706 -0
- package/kernel/rules/README.md +5 -5
- package/lib/client.js +2974 -69
- package/lib/dependency-graph.js +651 -0
- package/lib/finding-guidance.js +73 -0
- package/lib/finding-review.js +339 -0
- package/lib/functional-health-contract.js +338 -0
- package/lib/report-contract.js +88 -0
- package/lib/upgrade-contract.js +472 -0
- package/lib/workflow-panels.js +707 -0
- package/package.json +3 -2
- package/scripts/prepublish-check.mjs +28 -13
- package/scripts/stage-contract.mjs +91 -29
- package/scripts/stage-kernel.mjs +3 -2
- package/skill/SKILL.md +90 -39
package/README.md
CHANGED
|
@@ -1,43 +1,63 @@
|
|
|
1
1
|
# dsh-plugin-compat-check
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
如果你觉得这个项目有用或有趣,欢迎点个 [Star ⭐](https://github.com/lcy0121/dsh-plugin-compat-check) 支持一下!
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
检查**已安装的 DSH 插件**与目标 DSH 版本的兼容性,提供源码位置、依据及覆盖限制。声明放行、激活成功不等于业务功能正常。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
[简体中文](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/README.md) | [English](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/README.en.md) | [한국어](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/README.ko.md)
|
|
8
|
+
|
|
9
|
+
**0.1.5** · Node `^22.19.0 || >=24`。提供兼容性标签、插件详情发现/角标、`compat_check` 对话工具和 skill provider。发布与验收记录见 [Plan](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/Plan.md)。
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
## 安装与使用
|
|
8
14
|
|
|
9
15
|
```bash
|
|
10
16
|
dsh plugin --profile <profile> add dsh-plugin-compat-check
|
|
11
17
|
```
|
|
12
18
|
|
|
13
|
-
DSH 0.2.1-rc.2
|
|
19
|
+
DSH 0.2.1-rc.2:**更多 → 设置 → 内置插件 → 兼容性**。请选择实际 profile,不默认使用 desktop;agent 可调用 `compat_check`。
|
|
20
|
+
|
|
21
|
+
0.1.5 提供搜索/组合筛选、折叠发现、完整报告预览/显式复制、基线新增风险及“下一步核实”。安装/loader 事件和5秒巡检触发后台刷新,保留筛选与旧报告,失败显示原因。报告显示目标、参考目录版本/摘要和验收范围;重复插件身份无法判定且不推进基线。绑定探针超过5分钟的未来时钟偏差会被拒绝,保留静态发现及原因。分享前须预览敏感信息,筛选不会删减完整报告。
|
|
22
|
+
|
|
23
|
+
依赖关系区分host/client、必需/可选/子作用域;提供声明仅为候选,路径/环不证明实际故障。人工复核记录单独保存,身份变化后待重审,不隐藏发现或覆盖判定、基线及豁免。健康面板**只导入历史 JSON**,不运行检查,历史通过不证明当前制品正常。步骤见 [使用指南](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/guide.md)。
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
## 升级前兼容性预检
|
|
26
|
+
|
|
27
|
+
在面板输入目标 DSH 版本后运行,或调用 `compat_check({"upgradeTo":"0.2.1-rc.2"})`,需要时指定实际 `profile`;当前版本取自运行中的宿主。结果放在独立 `upgradePreview`,不覆盖普通 `report`。
|
|
28
|
+
|
|
29
|
+
当前/目标两端仅支持精确 **0.2.0-rc.2、0.2.1-rc.2**。未知版本或范围返回 `status=unsupported-version`、退出3,不回退到邻近目录。对同一组插件私有字节副本静态提取,再按两端目录/声明独立判定,保留制品哈希、目录来源/摘要、当前/目标报告、差异和覆盖限制。worker有预算、卸载取消与清理,失败明确报错;不是 OS 原子快照。
|
|
30
|
+
|
|
31
|
+
预检不执行插件或安装/升级宿主,不读运行时、探针、profile豁免、普通缓存/基线,不写产品状态。结果码 **0/1/2** 仅表示无新增/变重风险、非致命新增/变重、含致命新增/变重;**3** 为不可用。目标已有问题仍见 `targetReport`;**0不代表目标可用或升级后业务通过**,客户端功能需另验收。[契约及复现](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/Plan.md#27-升级前静态预检契约)。
|
|
16
32
|
|
|
17
33
|
## 从源码构建安装
|
|
18
34
|
|
|
19
|
-
仓库根是 private
|
|
35
|
+
仓库根是 private 开发工作区,不是可激活的插件包。在根安装依赖,再打完整 tgz:
|
|
20
36
|
|
|
21
37
|
```bash
|
|
38
|
+
npm ci --ignore-scripts
|
|
22
39
|
cd plugin
|
|
23
40
|
npm pack --pack-destination <已存在的绝对输出目录>
|
|
24
41
|
dsh plugin --profile <临时profile> add file:<生成的tgz绝对路径>
|
|
25
42
|
```
|
|
26
43
|
|
|
27
|
-
prepack 同步权威 skill/报告契约,暂存共享 kernel
|
|
44
|
+
prepack 同步权威 skill/报告契约,暂存共享 kernel、LICENSE 和第三方说明,postpack 清理 kernel。根 GitHub spec、裸 `plugin/` 复制和源码 file 安装不能代替完整 tgz。
|
|
28
45
|
|
|
29
|
-
npm
|
|
46
|
+
npm 包**没有 CLI bin、安装检查 shell 或 probe 入口**,不支持 `npx dsh-plugin-compat-check`。CLI、安装检查、静态批量、作者CI、健康执行器及真实插件/浏览器/模型回归仅在[仓库](https://github.com/lcy0121/dsh-plugin-compat-check#readme)使用,不随 npm 分发。
|
|
47
|
+
|
|
48
|
+
安装检查会联网、启动宿主并执行目标;临时 profile 不是 OS 沙箱。健康执行器默认审阅,须显式 `--run` 及当次授权才执行目标命令,也不是 OS 沙箱。风险/覆盖门禁、JSON/SARIF/JUnit和版本矩阵见[作者CI](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/author-ci.md)。
|
|
30
49
|
|
|
31
50
|
## 判定与边界
|
|
32
51
|
|
|
33
|
-
- 当前 profile
|
|
34
|
-
- Babel AST
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
|
|
52
|
+
- 当前 profile 只采样服务描述符,不执行 getter,结合可靠映射且启用的 loader FAILED/PENDING。其它 profile 仅用静态证据,不借用当前宿主服务;未知、未采样或省略键不等于缺失。
|
|
53
|
+
- Babel AST/包内值流在有时间/内存限额的 worker 中分析,不执行目标源码,动态覆盖仍有限。必需 inject 激活障碍与方法失效分别判断。
|
|
54
|
+
- 保留 `certainty`、`impactBasis`、`coverage`、`vacuous`。API 发现通常有 `file:line`,声明/loader事实可能无位置;无发现不证明业务正常。
|
|
55
|
+
- 声明规则与精确版本豁免依据目标 DSH 判定;非法字段不可豁免。普通检查的未知/未来版本回退及自定义目录保持未认证提示,内置目录摘要不符则无法判定。升级预检严格限定上述两个版本。[目录治理](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/maintaining.md#api目录候选审查)须经来源核验、差分、规则复核及真实验收。
|
|
56
|
+
- 宿主体检不装包、不调用外部命令或联网,默认写自身隔离基线;不完整扫描不推进。普通检查需禁基线读写时使用仓库 CLI 的 `--no-baseline`;升级预检始终隔离基线。
|
|
57
|
+
- 报告保留完整发现、覆盖、观测与基线;面板拒绝损坏/不支持版本的负载。旧 probe 提示未绑定,旧基线中性重建。
|
|
58
|
+
|
|
59
|
+
已有 macOS/Linux 限定验证,Windows 待真实验收;固定样本不是生态准确率或完整业务/模型质量认证。[计数与证据](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/current-state.json) · [完整契约](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/docs/Plan.md#2-现行判定与集成契约) · [源码及问题反馈](https://github.com/lcy0121/dsh-plugin-compat-check)。
|
|
40
60
|
|
|
41
|
-
|
|
61
|
+
## License
|
|
42
62
|
|
|
43
|
-
[
|
|
63
|
+
[MIT](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/LICENSE) · 第三方依赖及许可证见 [THIRD_PARTY_NOTICES.md](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/THIRD_PARTY_NOTICES.md),两份文件也随 npm 包提供。
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<!-- Generated by tools/third-party-notices.mjs; run npm run notices:generate after npm ci --ignore-scripts. -->
|
|
2
|
+
|
|
3
|
+
# Third-Party Notices
|
|
4
|
+
|
|
5
|
+
This project is licensed under [MIT](LICENSE). The third-party software below retains its own licenses and copyright notices.
|
|
6
|
+
|
|
7
|
+
This inventory covers the production and development npm closure in the repository [package-lock.json](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/package-lock.json), checked against installed package metadata and license files. Plugin direct pins are checked against [plugin/package.json](https://github.com/lcy0121/dsh-plugin-compat-check/blob/main/plugin/package.json). Versions describe this checkout: fresh plugin installations also resolve the upstream packages' transitive ranges, so their installed license files remain authoritative.
|
|
8
|
+
|
|
9
|
+
## Plugin runtime dependencies
|
|
10
|
+
|
|
11
|
+
| Package | Locked version | License |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| [`@babel/parser`](https://www.npmjs.com/package/@babel/parser/v/7.29.9) | 7.29.9 | MIT |
|
|
14
|
+
| [`semver`](https://www.npmjs.com/package/semver/v/7.7.3) | 7.7.3 | ISC |
|
|
15
|
+
|
|
16
|
+
### Transitive runtime dependencies
|
|
17
|
+
|
|
18
|
+
| Package | Locked version | License |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| [`@babel/helper-string-parser`](https://www.npmjs.com/package/@babel/helper-string-parser/v/7.29.7) | 7.29.7 | MIT |
|
|
21
|
+
| [`@babel/helper-validator-identifier`](https://www.npmjs.com/package/@babel/helper-validator-identifier/v/7.29.7) | 7.29.7 | MIT |
|
|
22
|
+
| [`@babel/types`](https://www.npmjs.com/package/@babel/types/v/7.29.8) | 7.29.8 | MIT |
|
|
23
|
+
|
|
24
|
+
## Repository runtime dependencies
|
|
25
|
+
|
|
26
|
+
These packages support repository-only tools and are not declared as npm plugin runtime dependencies.
|
|
27
|
+
|
|
28
|
+
| Package | Locked version | License |
|
|
29
|
+
| --- | --- | --- |
|
|
30
|
+
| [`yaml`](https://www.npmjs.com/package/yaml/v/2.9.1) | 2.9.1 | ISC |
|
|
31
|
+
|
|
32
|
+
## Development-only dependencies
|
|
33
|
+
|
|
34
|
+
| Package | Locked version | License |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| [`prettier`](https://www.npmjs.com/package/prettier/v/3.6.2) | 3.6.2 | MIT |
|
|
37
|
+
|
|
38
|
+
Prettier also distributes its own bundled dependencies under MIT, ISC, BSD-3-Clause, BSD-2-Clause and Apache-2.0. Their individual notices are preserved in the installed `prettier/THIRD-PARTY-NOTICES.md`; the Prettier MIT license below does not replace those terms. Prettier is not shipped in this plugin.
|
|
39
|
+
|
|
40
|
+
## Host-provided software and test inputs
|
|
41
|
+
|
|
42
|
+
DeepSeek Harness and React are supplied by the host, not bundled here. The API catalog snapshots record their DSH source/version in `_source`; the upstream project is [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), licensed under [MIT](https://github.com/deepseek-ai/deepseek-harness/blob/master/LICENSE). External Node.js, Python, pnpm and Chrome installations retain their respective notices. Real-plugin acceptance downloads separately identified npm artifacts into private test directories; those artifacts are not redistributed as repository fixtures or inside this npm package.
|
|
43
|
+
|
|
44
|
+
## License texts
|
|
45
|
+
|
|
46
|
+
### @babel/helper-string-parser@7.29.7, @babel/helper-validator-identifier@7.29.7, @babel/types@7.29.8 (MIT)
|
|
47
|
+
|
|
48
|
+
> MIT License
|
|
49
|
+
>
|
|
50
|
+
> Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
51
|
+
>
|
|
52
|
+
> Permission is hereby granted, free of charge, to any person obtaining
|
|
53
|
+
> a copy of this software and associated documentation files (the
|
|
54
|
+
> "Software"), to deal in the Software without restriction, including
|
|
55
|
+
> without limitation the rights to use, copy, modify, merge, publish,
|
|
56
|
+
> distribute, sublicense, and/or sell copies of the Software, and to
|
|
57
|
+
> permit persons to whom the Software is furnished to do so, subject to
|
|
58
|
+
> the following conditions:
|
|
59
|
+
>
|
|
60
|
+
> The above copyright notice and this permission notice shall be
|
|
61
|
+
> included in all copies or substantial portions of the Software.
|
|
62
|
+
>
|
|
63
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
64
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
65
|
+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
66
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
67
|
+
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
68
|
+
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
69
|
+
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
70
|
+
|
|
71
|
+
### @babel/parser@7.29.9 (MIT)
|
|
72
|
+
|
|
73
|
+
> Copyright (C) 2012-2014 by various contributors (see AUTHORS)
|
|
74
|
+
>
|
|
75
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
76
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
77
|
+
> in the Software without restriction, including without limitation the rights
|
|
78
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
79
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
80
|
+
> furnished to do so, subject to the following conditions:
|
|
81
|
+
>
|
|
82
|
+
> The above copyright notice and this permission notice shall be included in
|
|
83
|
+
> all copies or substantial portions of the Software.
|
|
84
|
+
>
|
|
85
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
86
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
87
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
88
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
89
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
90
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
91
|
+
> THE SOFTWARE.
|
|
92
|
+
|
|
93
|
+
### prettier@3.6.2 (MIT)
|
|
94
|
+
|
|
95
|
+
> Copyright © James Long and contributors
|
|
96
|
+
>
|
|
97
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
98
|
+
>
|
|
99
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
100
|
+
>
|
|
101
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
102
|
+
|
|
103
|
+
### semver@7.7.3 (ISC)
|
|
104
|
+
|
|
105
|
+
> The ISC License
|
|
106
|
+
>
|
|
107
|
+
> Copyright (c) Isaac Z. Schlueter and Contributors
|
|
108
|
+
>
|
|
109
|
+
> Permission to use, copy, modify, and/or distribute this software for any
|
|
110
|
+
> purpose with or without fee is hereby granted, provided that the above
|
|
111
|
+
> copyright notice and this permission notice appear in all copies.
|
|
112
|
+
>
|
|
113
|
+
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
114
|
+
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
115
|
+
> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
116
|
+
> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
117
|
+
> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
118
|
+
> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
119
|
+
> IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
120
|
+
|
|
121
|
+
### yaml@2.9.1 (ISC)
|
|
122
|
+
|
|
123
|
+
> Copyright Eemeli Aro <eemeli@gmail.com>
|
|
124
|
+
>
|
|
125
|
+
> Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
126
|
+
> with or without fee is hereby granted, provided that the above copyright notice
|
|
127
|
+
> and this permission notice appear in all copies.
|
|
128
|
+
>
|
|
129
|
+
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
130
|
+
> REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
131
|
+
> FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
132
|
+
> INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
133
|
+
> OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
134
|
+
> TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
135
|
+
> THIS SOFTWARE.
|
|
136
|
+
|
|
137
|
+
## Maintenance
|
|
138
|
+
|
|
139
|
+
Run `npm ci --ignore-scripts`, then `npm run notices:generate` after dependency or license changes. `npm run notices:check` verifies the committed text without changing it. Prepack copies the source notice into the plugin tarball; each separately installed dependency retains its own license files. This document follows the section structure of the [DSH third-party inventory](https://github.com/deepseek-ai/deepseek-harness/blob/master/THIRD_PARTY_NOTICES.md), with this repository's dependency set.
|