@perrylink/dsh-plugin-doctor 0.1.0 → 0.1.2
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/doctor.mjs +0 -1
- package/lib/framework.mjs +2 -1
- package/package.json +1 -1
package/doctor.mjs
CHANGED
package/lib/framework.mjs
CHANGED
|
@@ -39,7 +39,8 @@ export function verdict(results) {
|
|
|
39
39
|
else if (r.status === 'skip' && worst === 'pass') worst = 'skip'
|
|
40
40
|
}
|
|
41
41
|
const criticalFail = results.some((r) => r.critical && (r.status === 'fail' || r.status === 'error'))
|
|
42
|
-
|
|
42
|
+
// 退出码契约:0 = 无 fail/error(可含 warn/skip);1 = 存在 fail/error
|
|
43
|
+
return { worst, criticalFail, ok: worst !== 'fail' && worst !== 'error' }
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
const ICONS = { pass: '[PASS]', warn: '[WARN]', fail: '[FAIL]', error: '[ERROR]', skip: '[SKIP]' }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perrylink/dsh-plugin-doctor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Zero-dependency static + sandbox smoke detector for DeepSeek Harness (dsh) plugins: package-structure gates (R), cordis contract scans (K), keyless-headless sandbox smoke (D), and ecosystem-listing checks (CC).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "doctor.mjs",
|