v1.0.6 — hotfix: extract-from-source.js 永久修 plugin.json 回归
v1.0.5 用户跑 init 后 .claude-plugin/plugin.json 缺失 (e2e 测试自动捕获到):
根因: extract-from-source.js 末尾 fs.emptyDir(templatesDir) 清空 templates → 每次跑 extract 都会丢之前手动 cp 进去的 plugin.json。
修法: extract 脚本末尾自动同步 npm 包根 .claude-plugin/plugin.json → templates/_root/.claude-plugin/plugin.json (脚本固化 / 不再手动 cp)。
副作用: 0 (只是手动操作脚本化)
升级
cd D:\Unity\YourProject
npx fengshen-skillai@latest init . --force