2 Commits
Author SHA1 Message Date
qiqi 577a891e73 ci: 限制触发分支 + 并发取消 + 超时兜底,减少 Actions 分钟消耗 2026-11-05 11:27:04 +08:00
qiqi a2ead34483 ci: 插件仓校验(P4-15 之三)——契约校验器 + GitHub Actions
- scripts/validate.mjs:逐个插件校验
  · package.json 的 ibwPlugin(id 须 ^[a-z][a-z0-9-]{2,31}$、apiVersion 正整数、entry 存在)
  · entry 语法(node --check)+ 必须调用 IWBPluginHost.register(
  · entry 内 manifest 与契约一致(id / apiVersion 对齐、name/version/capabilities 齐备)
  · 仓库内 id 不得重复
  只读源码、不构建 ⇒ CI 无需网络或依赖
- .github/workflows/ci.yml:push / PR 跑 node scripts/validate.mjs
- package.json(根,private):npm run validate
- README:补「校验(本地 + CI)」段

本地验证:node scripts/validate.mjs → 2/2 通过(template-demo / xianyi-cutout)
2026-10-18 01:44:49 +08:00