chore: add check-plugin-api.mjs contract check + verify script

- Copy check-plugin-api.mjs into scripts/ (from WorkBuddy diagnosis)
- Add 'verify' script: node scripts/check-plugin-api.mjs
- 5-section contract check: dependency versions vs DSH runtime,
  import symbols vs runtime exports, slot registration, removed/deprecated
  APIs, inline package dependency closure
- All 5 sections pass (4 deprecation warnings, non-blocking)
This commit is contained in:
figmar
2026-10-11 19:33:44 +08:00
parent a6dd8aa42a
commit 2b8ba87d81
2 changed files with 242 additions and 0 deletions
+1
View File
@@ -86,6 +86,7 @@
"test:mount:aggregate": "bash scripts/e2e-aggregate-mount.sh",
"clean": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\"",
"check:consumer-types": "bash scripts/check-consumer-types.sh",
"verify": "node scripts/check-plugin-api.mjs",
"lint": "eslint .",
"switch": "bash scripts/switch.sh",
"switch:status": "bash scripts/switch.sh --status",