cortico-world-extra-actions 0.3.7 → 0.3.9

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/dist/webui.js CHANGED
@@ -221,6 +221,7 @@ const panel = {
221
221
  <input class="ea-inp" data-role="q" placeholder="搜名字 / id…">
222
222
  <button class="ea-btn" data-act="library" title="动作库可以放在任意盘,路径会被记住">选择动作库位置…</button>
223
223
  <button class="ea-btn" data-act="restore-pack" title="创建一个空的深深形象包(只有身体状态)">恢复空的形象包</button>
224
+ <button class="ea-btn" data-act="starter-library" title="在你选的文件夹下建一个自带示例动作库">用自带示例建库…</button>
224
225
  <span class="ea-lib" data-role="lib"></span>
225
226
  </div>
226
227
  <div class="ea-note" data-role="note" hidden></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-extra-actions",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "勾选动作库里的动作,写进形象包的「额外动作拓展」文件夹,让桌宠照着做。自带入门形象包与示例动作,装完即用;完整 105 段动作库可一键下载。",
package/src/writer.js CHANGED
@@ -553,6 +553,8 @@ export function inspect({ packDir, libraryDir, catalog }) {
553
553
  if (!libraryDir || !existsSync(libraryDir)) problems.push(`动作库目录不存在:${libraryDir}`);
554
554
  const missing = [];
555
555
  for (const a of catalog) {
556
+ // 身体状态段(idle/walk/drag/turn)本来就没有触发词,它们不是"可加的动作",跳过
557
+ if (!a.word) continue;
556
558
  if (actionProblem(a)) { missing.push(a.id); continue; }
557
559
  const dir = join(libraryDir || '', 'actions', a.category, a.id);
558
560
  if (!existsSync(dir)) missing.push(a.id);