## 项目结构 ``` lib/index.js 宿主端插件(/plugin-console/* 路由 + 补丁读写 + 多源检索 + 安装) lib/client.js 浏览器端 bundle(ModuleLoader 格式,设置页 tab) scripts/build-index.cjs 索引构建(插件 --limit 500 / 技能 --skills --limit 300) scripts/apply-framework-patch.cjs 框架层补丁(issue #5,幂等,可重复应用) .github/workflows/registry.yml 自动收录 CI(每 6 小时 + 手动触发) marketplace/index.json 生成的静态索引(jsDelivr CDN 分发) deploy.ps1 / deploy.sh 一键部署脚本(Windows / Linux·macOS) test-harness.mjs 逻辑自检(state/toggle/校验/环回保护;搜索视网络环境 SKIP) test-compat-gate.mjs 适配门单元测试(内置 semver 判定器:声明/依赖兼容规则) ``` image