@craft_eco/craft-mcp 0.1.28 → 0.1.30

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.
Files changed (999) hide show
  1. package/README.md +21 -60
  2. package/bin/craft-mcp.mjs +7 -1
  3. package/dist-server/game-workflow/asset-import.mjs +5 -1
  4. package/dist-server/game-workflow/assets.mjs +6 -2
  5. package/dist-server/game-workflow/bundle-files.mjs +9 -6
  6. package/dist-server/game-workflow/check.mjs +8 -2
  7. package/dist-server/game-workflow/context-state.mjs +67 -0
  8. package/dist-server/game-workflow/draft-archive.mjs +147 -2
  9. package/dist-server/game-workflow/draft-upload-identity.mjs +11 -0
  10. package/dist-server/game-workflow/draft-uploads.mjs +108 -60
  11. package/dist-server/game-workflow/engines.mjs +3 -3
  12. package/dist-server/game-workflow/library-assets.mjs +2 -1
  13. package/dist-server/game-workflow/local-context.mjs +62 -0
  14. package/dist-server/game-workflow/native-context.mjs +289 -0
  15. package/dist-server/game-workflow/project-bundles.mjs +121 -4
  16. package/dist-server/game-workflow/project-context.mjs +183 -45
  17. package/dist-server/game-workflow/project-leases.mjs +101 -30
  18. package/dist-server/game-workflow/projects.mjs +92 -14
  19. package/dist-server/game-workflow/tasks.mjs +7 -2
  20. package/dist-server/game-workflow/work-scope.mjs +7 -0
  21. package/dist-server/integrations/config.mjs +90 -16
  22. package/dist-server/integrations/connect.mjs +36 -0
  23. package/dist-server/integrations/connection-handoff.mjs +36 -0
  24. package/dist-server/integrations/dsh-config.mjs +182 -0
  25. package/dist-server/integrations/fixed-launcher.mjs +31 -0
  26. package/dist-server/integrations/host-reload.mjs +19 -0
  27. package/dist-server/integrations/hosts.mjs +27 -7
  28. package/dist-server/integrations/install.mjs +168 -31
  29. package/dist-server/integrations/installation-state.mjs +84 -0
  30. package/dist-server/integrations/launcher-start.mjs +52 -0
  31. package/dist-server/integrations/npm-diagnostics.mjs +32 -0
  32. package/dist-server/integrations/runtime-gc.mjs +191 -0
  33. package/dist-server/integrations/runtime-identity.mjs +22 -0
  34. package/dist-server/integrations/runtime.mjs +64 -25
  35. package/dist-server/integrations/updates.mjs +258 -0
  36. package/dist-server/integrations/version-policy.mjs +32 -0
  37. package/dist-server/launcher.mjs +1845 -0
  38. package/dist-server/mcp/control-panel.mjs +12 -24
  39. package/dist-server/mcp/server.mjs +150 -91
  40. package/dist-server/mcp/start.mjs +8 -2
  41. package/dist-server/mcp/update-session.mjs +107 -0
  42. package/dist-server/upstream/craft-aigc.mjs +43 -16
  43. package/dist-server/upstream/draft-source.mjs +29 -0
  44. package/package.json +4 -3
  45. package/resources/context-filter-report.json +177 -0
  46. package/resources/craft-create/SKILL.md +10 -2
  47. package/resources/craft-update/SKILL.md +23 -0
  48. package/resources/targets/claude/js/bootstrap/SKILL.md +20 -0
  49. package/resources/targets/claude/js/context-filter-report.json +27 -0
  50. package/resources/targets/claude/js/craft-game-maker/SKILL.md +72 -0
  51. package/resources/targets/claude/js/craft-game-maker/js.md +10 -0
  52. package/resources/targets/claude/js/js/bundle.json +97 -0
  53. package/resources/targets/claude/js/js/context/AGENTS.md +29 -0
  54. package/resources/targets/claude/js/js/context/hooks/hooks.json +14 -0
  55. package/resources/targets/claude/js/js/context/knowledge/AssetUrl.md +9 -0
  56. package/resources/targets/claude/js/js/context/knowledge/AssetWiring.md +7 -0
  57. package/resources/targets/claude/js/js/context/knowledge/Layout.md +7 -0
  58. package/resources/targets/claude/js/js/context/knowledge/Lifecycle.md +11 -0
  59. package/resources/targets/claude/js/js/context/knowledge/ResourceLoading.md +9 -0
  60. package/resources/targets/claude/js/js/context/skills/export-config/SKILL.md +16 -0
  61. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  62. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  63. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  64. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  65. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  66. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  67. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  68. package/resources/targets/claude/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  69. package/resources/targets/claude/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  70. package/resources/targets/claude/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  71. package/resources/targets/claude/js/js/context/skills/index.json +19 -0
  72. package/resources/targets/claude/js/js/context/skills/visual-qa/SKILL.md +14 -0
  73. package/resources/targets/claude/js/js/project/README.md +7 -0
  74. package/resources/targets/claude/js/js/project/configs/assets.json +1 -0
  75. package/resources/targets/claude/js/js/project/configs/game.controls.json +3 -0
  76. package/resources/targets/claude/js/js/project/configs/game.json +3 -0
  77. package/resources/targets/claude/js/js/project/game-runtime.json +7 -0
  78. package/resources/targets/claude/js/js/project/game.config.json +7 -0
  79. package/resources/targets/claude/js/js/project/index.html +20 -0
  80. package/resources/targets/claude/js/js/project/package.json +22 -0
  81. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  82. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  83. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  84. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  85. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  86. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  87. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  88. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  89. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  90. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  91. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  92. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  93. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  94. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  95. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  96. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  97. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  98. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  99. package/resources/targets/claude/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  100. package/resources/targets/claude/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  101. package/resources/targets/claude/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  102. package/resources/targets/claude/js/js/project/scripts/config-export.mjs +13 -0
  103. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  104. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  105. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  106. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  107. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  108. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  109. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  110. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  111. package/resources/targets/claude/js/js/project/scripts/write-preview-ready.mjs +22 -0
  112. package/resources/targets/claude/js/js/project/src/display/ui-stage.ts +156 -0
  113. package/resources/targets/claude/js/js/project/src/display/viewport.ts +249 -0
  114. package/resources/targets/claude/js/js/project/src/main.ts +87 -0
  115. package/resources/targets/claude/js/js/project/src/platform.ts +2 -0
  116. package/resources/targets/claude/js/js/project/src/scenes/LoadScene.ts +89 -0
  117. package/resources/targets/claude/js/js/project/src/scenes/PlayScene.ts +17 -0
  118. package/resources/targets/claude/js/js/project/src/screenUi.ts +185 -0
  119. package/resources/targets/claude/js/js/project/src/style.css +294 -0
  120. package/resources/targets/claude/js/js/project/tsconfig.json +20 -0
  121. package/resources/targets/claude/js/js/project/unified_data_control_config.json +20 -0
  122. package/resources/targets/claude/js/js/project/vite.config.ts +5 -0
  123. package/resources/targets/claude/js/recovery.md +17 -0
  124. package/resources/targets/claude/js/target.json +61 -0
  125. package/resources/targets/claude/js3d/bootstrap/SKILL.md +20 -0
  126. package/resources/targets/claude/js3d/context-filter-report.json +27 -0
  127. package/resources/targets/claude/js3d/craft-game-maker/SKILL.md +72 -0
  128. package/resources/targets/claude/js3d/craft-game-maker/js3d.md +12 -0
  129. package/resources/targets/claude/js3d/js3d/bundle.json +108 -0
  130. package/resources/targets/claude/js3d/js3d/context/AGENTS.md +30 -0
  131. package/resources/targets/claude/js3d/js3d/context/hooks/hooks.json +14 -0
  132. package/resources/targets/claude/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  133. package/resources/targets/claude/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  134. package/resources/targets/claude/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  135. package/resources/targets/claude/js3d/js3d/context/knowledge/Layout.md +7 -0
  136. package/resources/targets/{workbuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md → claude/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
  137. package/resources/targets/claude/js3d/js3d/context/knowledge/Runtime.md +9 -0
  138. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  139. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  140. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  141. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  142. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  143. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  144. package/resources/targets/claude/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  145. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  146. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  147. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  148. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  149. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  150. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  151. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  152. package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  153. package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  154. package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  155. package/resources/targets/claude/js3d/js3d/context/skills/index.json +31 -0
  156. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  157. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  158. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  159. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  160. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  161. package/resources/targets/claude/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  162. package/resources/targets/claude/js3d/js3d/project/README.md +7 -0
  163. package/resources/targets/claude/js3d/js3d/project/configs/game.controls.json +3 -0
  164. package/resources/targets/claude/js3d/js3d/project/configs/game.json +3 -0
  165. package/resources/targets/claude/js3d/js3d/project/game-runtime.json +7 -0
  166. package/resources/targets/claude/js3d/js3d/project/game.config.json +7 -0
  167. package/resources/targets/claude/js3d/js3d/project/index.html +12 -0
  168. package/resources/targets/claude/js3d/js3d/project/package.json +23 -0
  169. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  170. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  171. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  172. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  173. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  174. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  175. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  176. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  177. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  178. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  179. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  180. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  181. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  182. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  183. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  184. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  185. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  186. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  187. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  188. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  189. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  190. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  191. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  192. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  193. package/resources/targets/claude/js3d/js3d/project/scripts/config-export.mjs +15 -0
  194. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  195. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  196. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  197. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  198. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  199. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  200. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  201. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  202. package/resources/targets/claude/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  203. package/resources/targets/claude/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  204. package/resources/targets/claude/js3d/js3d/project/src/display/viewport.ts +239 -0
  205. package/resources/targets/claude/js3d/js3d/project/src/main.ts +85 -0
  206. package/resources/targets/claude/js3d/js3d/project/src/platform.ts +2 -0
  207. package/resources/targets/claude/js3d/js3d/project/src/style.css +83 -0
  208. package/resources/targets/claude/js3d/js3d/project/tsconfig.json +20 -0
  209. package/resources/targets/claude/js3d/js3d/project/unified_data_control_config.json +20 -0
  210. package/resources/targets/claude/js3d/js3d/project/vite.config.ts +5 -0
  211. package/resources/targets/claude/js3d/recovery.md +17 -0
  212. package/resources/targets/claude/js3d/target.json +60 -0
  213. package/resources/targets/codebuddy/js/bootstrap/SKILL.md +7 -1
  214. package/resources/targets/codebuddy/js/context-filter-report.json +27 -0
  215. package/resources/targets/codebuddy/js/craft-game-maker/SKILL.md +24 -29
  216. package/resources/targets/codebuddy/js/craft-game-maker/js.md +2 -2
  217. package/resources/targets/codebuddy/js/js/bundle.json +16 -18
  218. package/resources/targets/codebuddy/js/js/context/AGENTS.md +10 -6
  219. package/resources/targets/codebuddy/js/js/context/knowledge/AssetUrl.md +4 -4
  220. package/resources/targets/codebuddy/js/js/context/knowledge/AssetWiring.md +7 -0
  221. package/resources/targets/codebuddy/js/js/context/knowledge/ResourceLoading.md +9 -0
  222. package/resources/targets/codebuddy/js/js/context/skills/export-config/SKILL.md +2 -2
  223. package/resources/targets/codebuddy/js/js/context/skills/index.json +2 -14
  224. package/resources/targets/codebuddy/js/js/context/skills/visual-qa/SKILL.md +1 -1
  225. package/resources/targets/codebuddy/js/recovery.md +14 -4
  226. package/resources/targets/codebuddy/js/target.json +1 -1
  227. package/resources/targets/codebuddy/js3d/bootstrap/SKILL.md +7 -1
  228. package/resources/targets/codebuddy/js3d/context-filter-report.json +27 -0
  229. package/resources/targets/codebuddy/js3d/craft-game-maker/SKILL.md +24 -29
  230. package/resources/targets/codebuddy/js3d/craft-game-maker/js3d.md +3 -4
  231. package/resources/targets/codebuddy/js3d/js3d/bundle.json +19 -21
  232. package/resources/targets/codebuddy/js3d/js3d/context/AGENTS.md +10 -6
  233. package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
  234. package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  235. package/resources/targets/{codex/js3d/js3d/context/skills/asset-search/references/resource-config.md → codebuddy/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
  236. package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
  237. package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
  238. package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
  239. package/resources/targets/codebuddy/js3d/js3d/context/skills/index.json +4 -16
  240. package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
  241. package/resources/targets/codebuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
  242. package/resources/targets/codebuddy/js3d/recovery.md +14 -4
  243. package/resources/targets/codebuddy/js3d/target.json +1 -1
  244. package/resources/targets/codex/js/bootstrap/SKILL.md +7 -1
  245. package/resources/targets/codex/js/context-filter-report.json +27 -0
  246. package/resources/targets/codex/js/craft-game-maker/SKILL.md +24 -29
  247. package/resources/targets/codex/js/craft-game-maker/js.md +2 -2
  248. package/resources/targets/codex/js/js/bundle.json +16 -18
  249. package/resources/targets/codex/js/js/context/AGENTS.md +10 -6
  250. package/resources/targets/codex/js/js/context/knowledge/AssetUrl.md +4 -4
  251. package/resources/targets/codex/js/js/context/knowledge/AssetWiring.md +7 -0
  252. package/resources/targets/codex/js/js/context/knowledge/ResourceLoading.md +9 -0
  253. package/resources/targets/codex/js/js/context/skills/export-config/SKILL.md +2 -2
  254. package/resources/targets/codex/js/js/context/skills/index.json +2 -14
  255. package/resources/targets/codex/js/js/context/skills/visual-qa/SKILL.md +1 -1
  256. package/resources/targets/codex/js/recovery.md +14 -4
  257. package/resources/targets/codex/js/target.json +1 -1
  258. package/resources/targets/codex/js3d/bootstrap/SKILL.md +7 -1
  259. package/resources/targets/codex/js3d/context-filter-report.json +27 -0
  260. package/resources/targets/codex/js3d/craft-game-maker/SKILL.md +24 -29
  261. package/resources/targets/codex/js3d/craft-game-maker/js3d.md +3 -4
  262. package/resources/targets/codex/js3d/js3d/bundle.json +19 -21
  263. package/resources/targets/codex/js3d/js3d/context/AGENTS.md +10 -6
  264. package/resources/targets/codex/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
  265. package/resources/targets/codex/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  266. package/resources/targets/{codebuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md → codex/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
  267. package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
  268. package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
  269. package/resources/targets/codex/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
  270. package/resources/targets/codex/js3d/js3d/context/skills/index.json +4 -16
  271. package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
  272. package/resources/targets/codex/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
  273. package/resources/targets/codex/js3d/recovery.md +14 -4
  274. package/resources/targets/codex/js3d/target.json +1 -1
  275. package/resources/targets/cursor/js/bootstrap/SKILL.md +20 -0
  276. package/resources/targets/cursor/js/context-filter-report.json +27 -0
  277. package/resources/targets/cursor/js/craft-game-maker/SKILL.md +72 -0
  278. package/resources/targets/cursor/js/craft-game-maker/js.md +10 -0
  279. package/resources/targets/cursor/js/js/bundle.json +97 -0
  280. package/resources/targets/cursor/js/js/context/AGENTS.md +29 -0
  281. package/resources/targets/cursor/js/js/context/hooks/hooks.json +14 -0
  282. package/resources/targets/cursor/js/js/context/knowledge/AssetUrl.md +9 -0
  283. package/resources/targets/cursor/js/js/context/knowledge/AssetWiring.md +7 -0
  284. package/resources/targets/cursor/js/js/context/knowledge/Layout.md +7 -0
  285. package/resources/targets/cursor/js/js/context/knowledge/Lifecycle.md +11 -0
  286. package/resources/targets/cursor/js/js/context/knowledge/ResourceLoading.md +9 -0
  287. package/resources/targets/cursor/js/js/context/skills/export-config/SKILL.md +16 -0
  288. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  289. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  290. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  291. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  292. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  293. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  294. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  295. package/resources/targets/cursor/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  296. package/resources/targets/cursor/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  297. package/resources/targets/cursor/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  298. package/resources/targets/cursor/js/js/context/skills/index.json +19 -0
  299. package/resources/targets/cursor/js/js/context/skills/visual-qa/SKILL.md +14 -0
  300. package/resources/targets/cursor/js/js/project/README.md +7 -0
  301. package/resources/targets/cursor/js/js/project/configs/assets.json +1 -0
  302. package/resources/targets/cursor/js/js/project/configs/game.controls.json +3 -0
  303. package/resources/targets/cursor/js/js/project/configs/game.json +3 -0
  304. package/resources/targets/cursor/js/js/project/game-runtime.json +7 -0
  305. package/resources/targets/cursor/js/js/project/game.config.json +7 -0
  306. package/resources/targets/cursor/js/js/project/index.html +20 -0
  307. package/resources/targets/cursor/js/js/project/package.json +22 -0
  308. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  309. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  310. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  311. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  312. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  313. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  314. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  315. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  316. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  317. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  318. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  319. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  320. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  321. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  322. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  323. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  324. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  325. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  326. package/resources/targets/cursor/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  327. package/resources/targets/cursor/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  328. package/resources/targets/cursor/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  329. package/resources/targets/cursor/js/js/project/scripts/config-export.mjs +13 -0
  330. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  331. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  332. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  333. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  334. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  335. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  336. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  337. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  338. package/resources/targets/cursor/js/js/project/scripts/write-preview-ready.mjs +22 -0
  339. package/resources/targets/cursor/js/js/project/src/display/ui-stage.ts +156 -0
  340. package/resources/targets/cursor/js/js/project/src/display/viewport.ts +249 -0
  341. package/resources/targets/cursor/js/js/project/src/main.ts +87 -0
  342. package/resources/targets/cursor/js/js/project/src/platform.ts +2 -0
  343. package/resources/targets/cursor/js/js/project/src/scenes/LoadScene.ts +89 -0
  344. package/resources/targets/cursor/js/js/project/src/scenes/PlayScene.ts +17 -0
  345. package/resources/targets/cursor/js/js/project/src/screenUi.ts +185 -0
  346. package/resources/targets/cursor/js/js/project/src/style.css +294 -0
  347. package/resources/targets/cursor/js/js/project/tsconfig.json +20 -0
  348. package/resources/targets/cursor/js/js/project/unified_data_control_config.json +20 -0
  349. package/resources/targets/cursor/js/js/project/vite.config.ts +5 -0
  350. package/resources/targets/cursor/js/recovery.md +17 -0
  351. package/resources/targets/cursor/js/target.json +61 -0
  352. package/resources/targets/cursor/js3d/bootstrap/SKILL.md +20 -0
  353. package/resources/targets/cursor/js3d/context-filter-report.json +27 -0
  354. package/resources/targets/cursor/js3d/craft-game-maker/SKILL.md +72 -0
  355. package/resources/targets/cursor/js3d/craft-game-maker/js3d.md +12 -0
  356. package/resources/targets/cursor/js3d/js3d/bundle.json +108 -0
  357. package/resources/targets/cursor/js3d/js3d/context/AGENTS.md +30 -0
  358. package/resources/targets/cursor/js3d/js3d/context/hooks/hooks.json +14 -0
  359. package/resources/targets/cursor/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  360. package/resources/targets/cursor/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  361. package/resources/targets/cursor/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  362. package/resources/targets/cursor/js3d/js3d/context/knowledge/Layout.md +7 -0
  363. package/resources/targets/cursor/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  364. package/resources/targets/cursor/js3d/js3d/context/knowledge/Runtime.md +9 -0
  365. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  366. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  367. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  368. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  369. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  370. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  371. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  372. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  373. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  374. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  375. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  376. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  377. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  378. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  379. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  380. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  381. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  382. package/resources/targets/cursor/js3d/js3d/context/skills/index.json +31 -0
  383. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  384. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  385. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  386. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  387. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  388. package/resources/targets/cursor/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  389. package/resources/targets/cursor/js3d/js3d/project/README.md +7 -0
  390. package/resources/targets/cursor/js3d/js3d/project/configs/game.controls.json +3 -0
  391. package/resources/targets/cursor/js3d/js3d/project/configs/game.json +3 -0
  392. package/resources/targets/cursor/js3d/js3d/project/game-runtime.json +7 -0
  393. package/resources/targets/cursor/js3d/js3d/project/game.config.json +7 -0
  394. package/resources/targets/cursor/js3d/js3d/project/index.html +12 -0
  395. package/resources/targets/cursor/js3d/js3d/project/package.json +23 -0
  396. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  397. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  398. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  399. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  400. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  401. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  402. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  403. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  404. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  405. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  406. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  407. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  408. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  409. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  410. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  411. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  412. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  413. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  414. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  415. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  416. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  417. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  418. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  419. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  420. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export.mjs +15 -0
  421. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  422. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  423. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  424. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  425. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  426. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  427. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  428. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  429. package/resources/targets/cursor/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  430. package/resources/targets/cursor/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  431. package/resources/targets/cursor/js3d/js3d/project/src/display/viewport.ts +239 -0
  432. package/resources/targets/cursor/js3d/js3d/project/src/main.ts +85 -0
  433. package/resources/targets/cursor/js3d/js3d/project/src/platform.ts +2 -0
  434. package/resources/targets/cursor/js3d/js3d/project/src/style.css +83 -0
  435. package/resources/targets/cursor/js3d/js3d/project/tsconfig.json +20 -0
  436. package/resources/targets/cursor/js3d/js3d/project/unified_data_control_config.json +20 -0
  437. package/resources/targets/cursor/js3d/js3d/project/vite.config.ts +5 -0
  438. package/resources/targets/cursor/js3d/recovery.md +17 -0
  439. package/resources/targets/cursor/js3d/target.json +60 -0
  440. package/resources/targets/dsh/js/bootstrap/SKILL.md +20 -0
  441. package/resources/targets/dsh/js/context-filter-report.json +27 -0
  442. package/resources/targets/dsh/js/craft-game-maker/SKILL.md +72 -0
  443. package/resources/targets/dsh/js/craft-game-maker/js.md +10 -0
  444. package/resources/targets/dsh/js/js/bundle.json +97 -0
  445. package/resources/targets/dsh/js/js/context/AGENTS.md +29 -0
  446. package/resources/targets/dsh/js/js/context/hooks/hooks.json +14 -0
  447. package/resources/targets/dsh/js/js/context/knowledge/AssetUrl.md +9 -0
  448. package/resources/targets/dsh/js/js/context/knowledge/AssetWiring.md +7 -0
  449. package/resources/targets/dsh/js/js/context/knowledge/Layout.md +7 -0
  450. package/resources/targets/dsh/js/js/context/knowledge/Lifecycle.md +11 -0
  451. package/resources/targets/dsh/js/js/context/knowledge/ResourceLoading.md +9 -0
  452. package/resources/targets/dsh/js/js/context/skills/export-config/SKILL.md +16 -0
  453. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  454. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  455. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  456. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  457. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  458. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  459. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  460. package/resources/targets/dsh/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  461. package/resources/targets/dsh/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  462. package/resources/targets/dsh/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  463. package/resources/targets/dsh/js/js/context/skills/index.json +19 -0
  464. package/resources/targets/dsh/js/js/context/skills/visual-qa/SKILL.md +14 -0
  465. package/resources/targets/dsh/js/js/project/README.md +7 -0
  466. package/resources/targets/dsh/js/js/project/configs/assets.json +1 -0
  467. package/resources/targets/dsh/js/js/project/configs/game.controls.json +3 -0
  468. package/resources/targets/dsh/js/js/project/configs/game.json +3 -0
  469. package/resources/targets/dsh/js/js/project/game-runtime.json +7 -0
  470. package/resources/targets/dsh/js/js/project/game.config.json +7 -0
  471. package/resources/targets/dsh/js/js/project/index.html +20 -0
  472. package/resources/targets/dsh/js/js/project/package.json +22 -0
  473. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  474. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  475. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  476. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  477. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  478. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  479. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  480. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  481. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  482. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  483. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  484. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  485. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  486. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  487. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  488. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  489. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  490. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  491. package/resources/targets/dsh/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  492. package/resources/targets/dsh/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  493. package/resources/targets/dsh/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  494. package/resources/targets/dsh/js/js/project/scripts/config-export.mjs +13 -0
  495. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  496. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  497. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  498. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  499. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  500. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  501. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  502. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  503. package/resources/targets/dsh/js/js/project/scripts/write-preview-ready.mjs +22 -0
  504. package/resources/targets/dsh/js/js/project/src/display/ui-stage.ts +156 -0
  505. package/resources/targets/dsh/js/js/project/src/display/viewport.ts +249 -0
  506. package/resources/targets/dsh/js/js/project/src/main.ts +87 -0
  507. package/resources/targets/dsh/js/js/project/src/platform.ts +2 -0
  508. package/resources/targets/dsh/js/js/project/src/scenes/LoadScene.ts +89 -0
  509. package/resources/targets/dsh/js/js/project/src/scenes/PlayScene.ts +17 -0
  510. package/resources/targets/dsh/js/js/project/src/screenUi.ts +185 -0
  511. package/resources/targets/dsh/js/js/project/src/style.css +294 -0
  512. package/resources/targets/dsh/js/js/project/tsconfig.json +20 -0
  513. package/resources/targets/dsh/js/js/project/unified_data_control_config.json +20 -0
  514. package/resources/targets/dsh/js/js/project/vite.config.ts +5 -0
  515. package/resources/targets/dsh/js/recovery.md +17 -0
  516. package/resources/targets/dsh/js/target.json +61 -0
  517. package/resources/targets/dsh/js3d/bootstrap/SKILL.md +20 -0
  518. package/resources/targets/dsh/js3d/context-filter-report.json +27 -0
  519. package/resources/targets/dsh/js3d/craft-game-maker/SKILL.md +72 -0
  520. package/resources/targets/dsh/js3d/craft-game-maker/js3d.md +12 -0
  521. package/resources/targets/dsh/js3d/js3d/bundle.json +108 -0
  522. package/resources/targets/dsh/js3d/js3d/context/AGENTS.md +30 -0
  523. package/resources/targets/dsh/js3d/js3d/context/hooks/hooks.json +14 -0
  524. package/resources/targets/dsh/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  525. package/resources/targets/dsh/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  526. package/resources/targets/dsh/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  527. package/resources/targets/dsh/js3d/js3d/context/knowledge/Layout.md +7 -0
  528. package/resources/targets/dsh/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  529. package/resources/targets/dsh/js3d/js3d/context/knowledge/Runtime.md +9 -0
  530. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  531. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  532. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  533. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  534. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  535. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  536. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  537. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  538. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  539. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  540. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  541. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  542. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  543. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  544. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  545. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  546. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  547. package/resources/targets/dsh/js3d/js3d/context/skills/index.json +31 -0
  548. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  549. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  550. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  551. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  552. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  553. package/resources/targets/dsh/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  554. package/resources/targets/dsh/js3d/js3d/project/README.md +7 -0
  555. package/resources/targets/dsh/js3d/js3d/project/configs/game.controls.json +3 -0
  556. package/resources/targets/dsh/js3d/js3d/project/configs/game.json +3 -0
  557. package/resources/targets/dsh/js3d/js3d/project/game-runtime.json +7 -0
  558. package/resources/targets/dsh/js3d/js3d/project/game.config.json +7 -0
  559. package/resources/targets/dsh/js3d/js3d/project/index.html +12 -0
  560. package/resources/targets/dsh/js3d/js3d/project/package.json +23 -0
  561. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  562. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  563. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  564. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  565. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  566. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  567. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  568. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  569. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  570. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  571. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  572. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  573. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  574. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  575. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  576. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  577. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  578. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  579. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  580. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  581. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  582. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  583. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  584. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  585. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export.mjs +15 -0
  586. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  587. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  588. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  589. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  590. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  591. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  592. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  593. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  594. package/resources/targets/dsh/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  595. package/resources/targets/dsh/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  596. package/resources/targets/dsh/js3d/js3d/project/src/display/viewport.ts +239 -0
  597. package/resources/targets/dsh/js3d/js3d/project/src/main.ts +85 -0
  598. package/resources/targets/dsh/js3d/js3d/project/src/platform.ts +2 -0
  599. package/resources/targets/dsh/js3d/js3d/project/src/style.css +83 -0
  600. package/resources/targets/dsh/js3d/js3d/project/tsconfig.json +20 -0
  601. package/resources/targets/dsh/js3d/js3d/project/unified_data_control_config.json +20 -0
  602. package/resources/targets/dsh/js3d/js3d/project/vite.config.ts +5 -0
  603. package/resources/targets/dsh/js3d/recovery.md +17 -0
  604. package/resources/targets/dsh/js3d/target.json +60 -0
  605. package/resources/targets/index.json +72 -12
  606. package/resources/targets/kimi/js/bootstrap/SKILL.md +20 -0
  607. package/resources/targets/kimi/js/context-filter-report.json +27 -0
  608. package/resources/targets/kimi/js/craft-game-maker/SKILL.md +72 -0
  609. package/resources/targets/kimi/js/craft-game-maker/js.md +10 -0
  610. package/resources/targets/kimi/js/js/bundle.json +97 -0
  611. package/resources/targets/kimi/js/js/context/AGENTS.md +29 -0
  612. package/resources/targets/kimi/js/js/context/hooks/hooks.json +14 -0
  613. package/resources/targets/kimi/js/js/context/knowledge/AssetUrl.md +9 -0
  614. package/resources/targets/kimi/js/js/context/knowledge/AssetWiring.md +7 -0
  615. package/resources/targets/kimi/js/js/context/knowledge/Layout.md +7 -0
  616. package/resources/targets/kimi/js/js/context/knowledge/Lifecycle.md +11 -0
  617. package/resources/targets/kimi/js/js/context/knowledge/ResourceLoading.md +9 -0
  618. package/resources/targets/kimi/js/js/context/skills/export-config/SKILL.md +16 -0
  619. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  620. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  621. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  622. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  623. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  624. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  625. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  626. package/resources/targets/kimi/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  627. package/resources/targets/kimi/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  628. package/resources/targets/kimi/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  629. package/resources/targets/kimi/js/js/context/skills/index.json +19 -0
  630. package/resources/targets/kimi/js/js/context/skills/visual-qa/SKILL.md +14 -0
  631. package/resources/targets/kimi/js/js/project/README.md +7 -0
  632. package/resources/targets/kimi/js/js/project/configs/assets.json +1 -0
  633. package/resources/targets/kimi/js/js/project/configs/game.controls.json +3 -0
  634. package/resources/targets/kimi/js/js/project/configs/game.json +3 -0
  635. package/resources/targets/kimi/js/js/project/game-runtime.json +7 -0
  636. package/resources/targets/kimi/js/js/project/game.config.json +7 -0
  637. package/resources/targets/kimi/js/js/project/index.html +20 -0
  638. package/resources/targets/kimi/js/js/project/package.json +22 -0
  639. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  640. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  641. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  642. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  643. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  644. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  645. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  646. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  647. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  648. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  649. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  650. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  651. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  652. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  653. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  654. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  655. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  656. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  657. package/resources/targets/kimi/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  658. package/resources/targets/kimi/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  659. package/resources/targets/kimi/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  660. package/resources/targets/kimi/js/js/project/scripts/config-export.mjs +13 -0
  661. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  662. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  663. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  664. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  665. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  666. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  667. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  668. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  669. package/resources/targets/kimi/js/js/project/scripts/write-preview-ready.mjs +22 -0
  670. package/resources/targets/kimi/js/js/project/src/display/ui-stage.ts +156 -0
  671. package/resources/targets/kimi/js/js/project/src/display/viewport.ts +249 -0
  672. package/resources/targets/kimi/js/js/project/src/main.ts +87 -0
  673. package/resources/targets/kimi/js/js/project/src/platform.ts +2 -0
  674. package/resources/targets/kimi/js/js/project/src/scenes/LoadScene.ts +89 -0
  675. package/resources/targets/kimi/js/js/project/src/scenes/PlayScene.ts +17 -0
  676. package/resources/targets/kimi/js/js/project/src/screenUi.ts +185 -0
  677. package/resources/targets/kimi/js/js/project/src/style.css +294 -0
  678. package/resources/targets/kimi/js/js/project/tsconfig.json +20 -0
  679. package/resources/targets/kimi/js/js/project/unified_data_control_config.json +20 -0
  680. package/resources/targets/kimi/js/js/project/vite.config.ts +5 -0
  681. package/resources/targets/kimi/js/recovery.md +17 -0
  682. package/resources/targets/kimi/js/target.json +61 -0
  683. package/resources/targets/kimi/js3d/bootstrap/SKILL.md +20 -0
  684. package/resources/targets/kimi/js3d/context-filter-report.json +27 -0
  685. package/resources/targets/kimi/js3d/craft-game-maker/SKILL.md +72 -0
  686. package/resources/targets/kimi/js3d/craft-game-maker/js3d.md +12 -0
  687. package/resources/targets/kimi/js3d/js3d/bundle.json +108 -0
  688. package/resources/targets/kimi/js3d/js3d/context/AGENTS.md +30 -0
  689. package/resources/targets/kimi/js3d/js3d/context/hooks/hooks.json +14 -0
  690. package/resources/targets/kimi/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  691. package/resources/targets/kimi/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  692. package/resources/targets/kimi/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  693. package/resources/targets/kimi/js3d/js3d/context/knowledge/Layout.md +7 -0
  694. package/resources/targets/kimi/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  695. package/resources/targets/kimi/js3d/js3d/context/knowledge/Runtime.md +9 -0
  696. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  697. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  698. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  699. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  700. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  701. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  702. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  703. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  704. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  705. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  706. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  707. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  708. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  709. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  710. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  711. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  712. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  713. package/resources/targets/kimi/js3d/js3d/context/skills/index.json +31 -0
  714. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  715. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  716. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  717. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  718. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  719. package/resources/targets/kimi/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  720. package/resources/targets/kimi/js3d/js3d/project/README.md +7 -0
  721. package/resources/targets/kimi/js3d/js3d/project/configs/game.controls.json +3 -0
  722. package/resources/targets/kimi/js3d/js3d/project/configs/game.json +3 -0
  723. package/resources/targets/kimi/js3d/js3d/project/game-runtime.json +7 -0
  724. package/resources/targets/kimi/js3d/js3d/project/game.config.json +7 -0
  725. package/resources/targets/kimi/js3d/js3d/project/index.html +12 -0
  726. package/resources/targets/kimi/js3d/js3d/project/package.json +23 -0
  727. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  728. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  729. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  730. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  731. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  732. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  733. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  734. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  735. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  736. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  737. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  738. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  739. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  740. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  741. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  742. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  743. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  744. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  745. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  746. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  747. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  748. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  749. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  750. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  751. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export.mjs +15 -0
  752. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  753. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  754. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  755. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  756. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  757. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  758. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  759. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  760. package/resources/targets/kimi/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  761. package/resources/targets/kimi/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  762. package/resources/targets/kimi/js3d/js3d/project/src/display/viewport.ts +239 -0
  763. package/resources/targets/kimi/js3d/js3d/project/src/main.ts +85 -0
  764. package/resources/targets/kimi/js3d/js3d/project/src/platform.ts +2 -0
  765. package/resources/targets/kimi/js3d/js3d/project/src/style.css +83 -0
  766. package/resources/targets/kimi/js3d/js3d/project/tsconfig.json +20 -0
  767. package/resources/targets/kimi/js3d/js3d/project/unified_data_control_config.json +20 -0
  768. package/resources/targets/kimi/js3d/js3d/project/vite.config.ts +5 -0
  769. package/resources/targets/kimi/js3d/recovery.md +17 -0
  770. package/resources/targets/kimi/js3d/target.json +60 -0
  771. package/resources/targets/workbuddy/js/bootstrap/SKILL.md +9 -1
  772. package/resources/targets/workbuddy/js/context-filter-report.json +27 -0
  773. package/resources/targets/workbuddy/js/craft-game-maker/SKILL.md +24 -29
  774. package/resources/targets/workbuddy/js/craft-game-maker/js.md +2 -2
  775. package/resources/targets/workbuddy/js/js/bundle.json +16 -18
  776. package/resources/targets/workbuddy/js/js/context/AGENTS.md +10 -6
  777. package/resources/targets/workbuddy/js/js/context/knowledge/AssetUrl.md +4 -4
  778. package/resources/targets/workbuddy/js/js/context/knowledge/AssetWiring.md +7 -0
  779. package/resources/targets/workbuddy/js/js/context/knowledge/ResourceLoading.md +9 -0
  780. package/resources/targets/workbuddy/js/js/context/skills/export-config/SKILL.md +2 -2
  781. package/resources/targets/workbuddy/js/js/context/skills/index.json +2 -14
  782. package/resources/targets/workbuddy/js/js/context/skills/visual-qa/SKILL.md +1 -1
  783. package/resources/targets/workbuddy/js/recovery.md +16 -4
  784. package/resources/targets/workbuddy/js/target.json +1 -1
  785. package/resources/targets/workbuddy/js3d/bootstrap/SKILL.md +9 -1
  786. package/resources/targets/workbuddy/js3d/context-filter-report.json +27 -0
  787. package/resources/targets/workbuddy/js3d/craft-game-maker/SKILL.md +24 -29
  788. package/resources/targets/workbuddy/js3d/craft-game-maker/js3d.md +3 -4
  789. package/resources/targets/workbuddy/js3d/js3d/bundle.json +19 -21
  790. package/resources/targets/workbuddy/js3d/js3d/context/AGENTS.md +10 -6
  791. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
  792. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  793. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  794. package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
  795. package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
  796. package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
  797. package/resources/targets/workbuddy/js3d/js3d/context/skills/index.json +4 -16
  798. package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
  799. package/resources/targets/workbuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
  800. package/resources/targets/workbuddy/js3d/recovery.md +16 -4
  801. package/resources/targets/workbuddy/js3d/target.json +1 -1
  802. package/resources/targets/zcode/js/bootstrap/SKILL.md +20 -0
  803. package/resources/targets/zcode/js/context-filter-report.json +27 -0
  804. package/resources/targets/zcode/js/craft-game-maker/SKILL.md +72 -0
  805. package/resources/targets/zcode/js/craft-game-maker/js.md +10 -0
  806. package/resources/targets/zcode/js/js/bundle.json +97 -0
  807. package/resources/targets/zcode/js/js/context/AGENTS.md +29 -0
  808. package/resources/targets/zcode/js/js/context/hooks/hooks.json +14 -0
  809. package/resources/targets/zcode/js/js/context/knowledge/AssetUrl.md +9 -0
  810. package/resources/targets/zcode/js/js/context/knowledge/AssetWiring.md +7 -0
  811. package/resources/targets/zcode/js/js/context/knowledge/Layout.md +7 -0
  812. package/resources/targets/zcode/js/js/context/knowledge/Lifecycle.md +11 -0
  813. package/resources/targets/zcode/js/js/context/knowledge/ResourceLoading.md +9 -0
  814. package/resources/targets/zcode/js/js/context/skills/export-config/SKILL.md +16 -0
  815. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  816. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  817. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  818. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  819. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  820. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  821. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  822. package/resources/targets/zcode/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  823. package/resources/targets/zcode/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  824. package/resources/targets/zcode/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  825. package/resources/targets/zcode/js/js/context/skills/index.json +19 -0
  826. package/resources/targets/zcode/js/js/context/skills/visual-qa/SKILL.md +14 -0
  827. package/resources/targets/zcode/js/js/project/README.md +7 -0
  828. package/resources/targets/zcode/js/js/project/configs/assets.json +1 -0
  829. package/resources/targets/zcode/js/js/project/configs/game.controls.json +3 -0
  830. package/resources/targets/zcode/js/js/project/configs/game.json +3 -0
  831. package/resources/targets/zcode/js/js/project/game-runtime.json +7 -0
  832. package/resources/targets/zcode/js/js/project/game.config.json +7 -0
  833. package/resources/targets/zcode/js/js/project/index.html +20 -0
  834. package/resources/targets/zcode/js/js/project/package.json +22 -0
  835. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  836. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  837. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  838. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  839. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  840. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  841. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  842. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  843. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  844. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  845. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  846. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  847. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  848. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  849. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  850. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  851. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  852. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  853. package/resources/targets/zcode/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  854. package/resources/targets/zcode/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  855. package/resources/targets/zcode/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  856. package/resources/targets/zcode/js/js/project/scripts/config-export.mjs +13 -0
  857. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  858. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  859. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  860. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  861. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  862. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  863. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  864. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  865. package/resources/targets/zcode/js/js/project/scripts/write-preview-ready.mjs +22 -0
  866. package/resources/targets/zcode/js/js/project/src/display/ui-stage.ts +156 -0
  867. package/resources/targets/zcode/js/js/project/src/display/viewport.ts +249 -0
  868. package/resources/targets/zcode/js/js/project/src/main.ts +87 -0
  869. package/resources/targets/zcode/js/js/project/src/platform.ts +2 -0
  870. package/resources/targets/zcode/js/js/project/src/scenes/LoadScene.ts +89 -0
  871. package/resources/targets/zcode/js/js/project/src/scenes/PlayScene.ts +17 -0
  872. package/resources/targets/zcode/js/js/project/src/screenUi.ts +185 -0
  873. package/resources/targets/zcode/js/js/project/src/style.css +294 -0
  874. package/resources/targets/zcode/js/js/project/tsconfig.json +20 -0
  875. package/resources/targets/zcode/js/js/project/unified_data_control_config.json +20 -0
  876. package/resources/targets/zcode/js/js/project/vite.config.ts +5 -0
  877. package/resources/targets/zcode/js/recovery.md +17 -0
  878. package/resources/targets/zcode/js/target.json +61 -0
  879. package/resources/targets/zcode/js3d/bootstrap/SKILL.md +20 -0
  880. package/resources/targets/zcode/js3d/context-filter-report.json +27 -0
  881. package/resources/targets/zcode/js3d/craft-game-maker/SKILL.md +72 -0
  882. package/resources/targets/zcode/js3d/craft-game-maker/js3d.md +12 -0
  883. package/resources/targets/zcode/js3d/js3d/bundle.json +108 -0
  884. package/resources/targets/zcode/js3d/js3d/context/AGENTS.md +30 -0
  885. package/resources/targets/zcode/js3d/js3d/context/hooks/hooks.json +14 -0
  886. package/resources/targets/zcode/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  887. package/resources/targets/zcode/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  888. package/resources/targets/zcode/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  889. package/resources/targets/zcode/js3d/js3d/context/knowledge/Layout.md +7 -0
  890. package/resources/targets/zcode/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  891. package/resources/targets/zcode/js3d/js3d/context/knowledge/Runtime.md +9 -0
  892. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  893. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  894. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  895. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  896. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  897. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  898. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  899. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  900. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  901. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  902. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  903. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  904. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  905. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  906. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  907. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  908. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  909. package/resources/targets/zcode/js3d/js3d/context/skills/index.json +31 -0
  910. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  911. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  912. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  913. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  914. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  915. package/resources/targets/zcode/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  916. package/resources/targets/zcode/js3d/js3d/project/README.md +7 -0
  917. package/resources/targets/zcode/js3d/js3d/project/configs/game.controls.json +3 -0
  918. package/resources/targets/zcode/js3d/js3d/project/configs/game.json +3 -0
  919. package/resources/targets/zcode/js3d/js3d/project/game-runtime.json +7 -0
  920. package/resources/targets/zcode/js3d/js3d/project/game.config.json +7 -0
  921. package/resources/targets/zcode/js3d/js3d/project/index.html +12 -0
  922. package/resources/targets/zcode/js3d/js3d/project/package.json +23 -0
  923. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  924. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  925. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  926. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  927. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  928. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  929. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  930. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  931. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  932. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  933. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  934. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  935. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  936. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  937. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  938. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  939. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  940. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  941. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  942. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  943. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  944. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  945. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  946. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  947. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export.mjs +15 -0
  948. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  949. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  950. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  951. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  952. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  953. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  954. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  955. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  956. package/resources/targets/zcode/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  957. package/resources/targets/zcode/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  958. package/resources/targets/zcode/js3d/js3d/project/src/display/viewport.ts +239 -0
  959. package/resources/targets/zcode/js3d/js3d/project/src/main.ts +85 -0
  960. package/resources/targets/zcode/js3d/js3d/project/src/platform.ts +2 -0
  961. package/resources/targets/zcode/js3d/js3d/project/src/style.css +83 -0
  962. package/resources/targets/zcode/js3d/js3d/project/tsconfig.json +20 -0
  963. package/resources/targets/zcode/js3d/js3d/project/unified_data_control_config.json +20 -0
  964. package/resources/targets/zcode/js3d/js3d/project/vite.config.ts +5 -0
  965. package/resources/targets/zcode/js3d/recovery.md +17 -0
  966. package/resources/targets/zcode/js3d/target.json +60 -0
  967. package/vendor/craft-runtime/SOURCE.json +3 -3
  968. package/vendor/craft-runtime/package.json +1 -1
  969. package/dist-server/game-workflow/publication-materials.mjs +0 -92
  970. package/dist-server/game-workflow/publications.mjs +0 -164
  971. package/dist-server/game-workflow/publish-capture-worker.mjs +0 -57
  972. package/dist-server/game-workflow/publish-capture.mjs +0 -75
  973. package/dist-server/mcp/publication-page.html +0 -86
  974. package/dist-server/mcp/publication-page.mjs +0 -375
  975. package/dist-server/mcp/publication-preview.mjs +0 -63
  976. package/dist-server/mcp/publication-tools.mjs +0 -22
  977. package/dist-server/mcp/publish-panel.mjs +0 -205
  978. package/dist-server/upstream/publication-transport.mjs +0 -101
  979. package/resources/targets/codebuddy/js/js/context/knowledge/AigcWiring.md +0 -9
  980. package/resources/targets/codebuddy/js/js/context/skills/aigc-generate/SKILL.md +0 -14
  981. package/resources/targets/codebuddy/js/js/context/skills/asset-search/SKILL.md +0 -12
  982. package/resources/targets/codebuddy/js/js/context/skills/asset-search/references/resource-config.md +0 -9
  983. package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
  984. package/resources/targets/codebuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
  985. package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
  986. package/resources/targets/codex/js/js/context/knowledge/AigcWiring.md +0 -9
  987. package/resources/targets/codex/js/js/context/skills/aigc-generate/SKILL.md +0 -14
  988. package/resources/targets/codex/js/js/context/skills/asset-search/SKILL.md +0 -12
  989. package/resources/targets/codex/js/js/context/skills/asset-search/references/resource-config.md +0 -9
  990. package/resources/targets/codex/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
  991. package/resources/targets/codex/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
  992. package/resources/targets/codex/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
  993. package/resources/targets/workbuddy/js/js/context/knowledge/AigcWiring.md +0 -9
  994. package/resources/targets/workbuddy/js/js/context/skills/aigc-generate/SKILL.md +0 -14
  995. package/resources/targets/workbuddy/js/js/context/skills/asset-search/SKILL.md +0 -12
  996. package/resources/targets/workbuddy/js/js/context/skills/asset-search/references/resource-config.md +0 -9
  997. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
  998. package/resources/targets/workbuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
  999. package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
@@ -0,0 +1,29 @@
1
+ # 2D / Phaser
2
+
3
+ 本上下文用于当前 Craft 本地游戏,Phaser 版本由项目 package.json 固定。需求、编码与工具调度由当前 AI IDE 承担。
4
+
5
+ ## 开始与恢复
6
+
7
+ 先用 craft_game_info(name) 只读核对项目、引擎、版本和占用;需要制作时 prepare(mode=resume,request_key),轮询成功后再读取本地最新上下文并保留 work_id。读取项目 AGENTS.md、SPEC/PROGRESS.md、本次相关源码及存在的 .craft/user-rules.md;新项目由 craft_game_prepare 创建,已有项目保留源码和进度。
8
+
9
+ 完整上下文就在项目 `.cursor/`:本文件为引擎入口,`knowledge/` 是引擎资料,`skills/` 是宿主可发现的领域 Skill,`skills/index.json` 是技能索引。索引按 description 选择本次所需技能,再读取 entrypoint;不要一次加载全部技能。文档中的 `${CRAFT_CONTEXT_DIR}`、`${CRAFT_PROJECT_DIR}`、`${CRAFT_SKILL_DIR}` 分别代表返回的上下文、工程和已选技能绝对路径;执行脚本时显式替换或传入,不假设终端已设置变量。
10
+
11
+ ## 开发
12
+
13
+ - 玩法写入 src/scenes/PlayScene.ts,资源预加载放入 src/scenes/LoadScene.ts。src/main.ts 负责 Phaser 初始化、尺寸同步和预览桥;屏幕 UI 沿用 src/screenUi.ts 与 src/display/。
14
+ - 保留 game-runtime.json、Vite 插件和项目内配置导出模块。普通玩法修改不升级 runtime,不重写完整性清单。
15
+ - 玩法、胜负、操作和素材方案以用户要求为准。需求不明确时只澄清影响实现的部分;先形成最小可玩循环,再扩展。素材可用代码图形、用户提供或工程已有资源,按实际需求选用。
16
+ - 修改加载或预览接线时读 [生命周期](knowledge/Lifecycle.md);接入素材时读 [资源接线](knowledge/AssetWiring.md) 和 [地址规则](knowledge/AssetUrl.md)。配置与资源导出使用 export-config 技能。
17
+ - 屏幕布局按当前容器尺寸适配;坐标与 HUD 同步,保留已有输入,不把某种设备范围作为隐含需求。见 [布局与输入](knowledge/Layout.md)。
18
+
19
+ ## 验收与交接
20
+
21
+ 完整流程读取本目录的 `workflow.md`。实现真实的 `globalThis.__GAME_PROBE__.snapshot()`,从 Phaser 渲染帧与玩法状态返回 ready、frameCount、game;不得用定时器或固定值替代实际状态。
22
+
23
+ craft_game_check 验证最终构建和真实输入,craft_game_review 提供截图审阅,craft_game_deliver 返回同一验收快照的预览启动命令。将命令放在宿主后台任务中运行,再查询 running/snapshot 并打开 URL 核实。检查成功不等于预览已经运行。
24
+
25
+ 在 SPEC/PROGRESS.md 记录已完成玩法、操作、关键文件、实际验收结果和下一步。恢复时由 MCP 自动同步官方上下文;只读恢复不改游戏内容和进度,不执行构建或导出。
26
+
27
+ ## 制作任务边界
28
+
29
+ 只读查看使用 `craft_game_info(name)`,不会更新项目。执行开发或可写 Skill 前,先按根 AGENTS.md 准备本次 work(已有工程 mode=resume),轮询完成后读取本宿主的最新入口和工作流;已有 active work 沿用其 work_id,不重复准备。制作工具传入 work_id,结束后 release。详见项目宿主目录内的 recovery.md。
@@ -0,0 +1,14 @@
1
+ {
2
+ "run:complete": [
3
+ {
4
+ "name": "export-config",
5
+ "when": "workspace-changed",
6
+ "command": [
7
+ "node",
8
+ "${CONTEXT_DIR}/skills/export-config/scripts/export-config.mjs"
9
+ ],
10
+ "cwd": "workspace",
11
+ "timeoutMs": 300000
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,9 @@
1
+ # 资源地址
2
+
3
+ 资源地址保存在对应配置 slot 中,保留已有资源的原始 URL 或相对 Path。核对实际消费字段,不把资源标识符当作可加载地址。
4
+
5
+ 运行时从配置读取值,使用项目 runtime/lightgame/1.1.0/tools/assets.mjs 的 resolveAssetUrl(path, { cdnBaseUrl }) 解析相对资源;cdnBaseUrl 取 game-runtime.json 的 cdnBase。保留 HTTP、data 或 blob 地址的语义,不能把远端资源路径当成本机文件路径。
6
+
7
+ 配置导出可能将同一官方地址的百分号编码解回原字符,并规范资源路径。保留导出器的结果,不能为迎合旧文本重新写回等价但冲突的路径。模型依赖由模型加载管线解析,不手动拼接压缩档位或重写模型依赖 URL。
8
+
9
+ 用户提供的本地素材可作为项目资源使用;远端素材保留其有效地址,不为远端资源另造本地副本。验证资源真实加载、用途匹配、跨域与浏览器可用性。
@@ -0,0 +1,7 @@
1
+ # 2D / Phaser 资源接线
2
+
3
+ 先确认资源实际可用,定位消费者和稳定的配置 slot,再将地址与参数写入对应配置。配置更新不代表素材已被游戏使用。
4
+
5
+ 按照 [地址规则](AssetUrl.md) 加载资源。核对实际类型、透明背景、比例、模型朝向与骨骼兼容性;在游戏中实际展示或播放,再验证结算和重开时的行为。加载失败保留错误和原因,不用不存在的文件或硬编码成功状态掩盖错误。
6
+
7
+ 具体加载方式见 [资源加载](ResourceLoading.md)。资源修改后使用 export-config 技能,构建并在真实截图中检查结果。资源配置与画面均正确后才将本项记为完成。
@@ -0,0 +1,7 @@
1
+ # 容器布局与输入
2
+
3
+ 模板已提供 src/display/viewport.ts 与 ui-stage.ts。容器尺寸变化时同时同步画布、UI 和相机/世界取景,避免只改变 CSS 拉伸画布。初始零尺寸保留上一有效状态;避免重复初始化 ResizeObserver。
4
+
5
+ 玩法范围由用户需求决定。保留已有键鼠或触摸操作,只在需求涉及相应输入时增加适配;创建引导只选择引擎。检查按钮命中区域、滚动行为、文字可读性和 HUD 遮挡,不把浏览器窗口大小当成固定分辨率。
6
+
7
+ 画面提示的每个操作都应有实际事件绑定。游戏重开和场景销毁时清理监听,避免一次输入触发多次。将实际操作方式记录在 SPEC/PROGRESS.md。
@@ -0,0 +1,11 @@
1
+ # Phaser 加载与预览生命周期
2
+
3
+ 模板在 main.ts 注册 PlayScene,启动 LoadScene,并将 connectPreview 挂到 Phaser canvas。保留 POST_RENDER 中的 afterRender 和销毁时的 dispose。
4
+
5
+ LoadScene 先显示可绘制的加载层,再按 configs/assets.json 的实际资源入队。图片使用 Phaser Loader image,音频用 audio,图集用 spritesheet 并提供真实帧尺寸。必要资源成功后进入 PlayScene;失败时报告具体资源,避免永久等待或将失败资源判定为可用。
6
+
7
+ 预览桥 markReady 表示预览可展示首帧,可能仍处于加载画面。玩法验收探针的 ready 则必须等必要资源已加载、PlayScene 活跃并完成实际渲染;两者不能混为同一时刻。
8
+
9
+ 场景切换或重开应注销旧计时器和事件、重置玩法状态,复用可复用的纹理。不能在每帧重复注册输入或加载素材。尺寸变化按模板 ResizeObserver 更新 Phaser 和 UI。
10
+
11
+ 调用具体 Runtime API 前,读项目 runtime/lightgame/1.1.0/platform/platform.d.mts;资源工具读同版 tools/assets.d.mts。仅定位实现问题时再读对应 .mjs。
@@ -0,0 +1,9 @@
1
+ # Phaser 素材使用
2
+
3
+ 从 configs/assets.json 取 slot 地址,按 [地址规则](AssetUrl.md) 解析后在 LoadScene 中入队。图片用 this.load.image,音频用 this.load.audio。PlayScene 实际通过 texture key 创建对象或播放音频,重开时复用已经加载的资源。
4
+
5
+ 图集使用实际资源的 sheetPath、rows、cols、frameCount、loop;配置保留图集 PNG 原始 Path。加载后按真实图像和布局计算帧尺寸,不能将整张图集作为单帧。
6
+
7
+ 使用 manifest JSON 的序列帧保留清单原始 URL,读取真实清单和帧布局后加载对应图集。模板 sheetUrl helper 仅适用于已经核实清单与同名 PNG 的契约,不能对任意 JSON 地址猜测图片。检查动画帧范围、透明边缘与碰撞体。
8
+
9
+ 有多个依赖时,必要资源全部就绪后才进入实际玩法 ready。一次失败不能通过伪造纹理键略过。
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: export-config
3
+ description: Craft Cursor 项目专用;导出当前 2D / Phaser 工程的资源与可调参数配置;新增资源槽、修改配置、构建或上传前排查时使用。
4
+ ---
5
+
6
+ # 2D / Phaser 配置导出
7
+
8
+ 模板已自带 scripts/skill-modules/export-config,Vite 中 gameConfig() 与 lightgame() 并列。默认值写 configs/*.json,控件元数据写同名 *.controls.json;保持业务普通 JSON import。
9
+
10
+ 在项目目录执行 `node "${CRAFT_SKILL_DIR}/scripts/export-config.mjs"`。MCP 的工程检查也通过 SDK hook 调用本工程已同步版本的本地技能入口;技能与普通 `npm run config:export` 共用项目内导出流程,不查找相邻工程的上下文。
11
+
12
+ 脚本同步 @slot、assets.json 与资源控件,再导出 unified_data_control_config.json,保留已有有效覆盖值。导出后核实资源 slot 有真实消费者,参数修改能改变游戏,必要加载已成功。地址规则见 [AssetUrl](../../knowledge/AssetUrl.md)。
13
+
14
+ 只有配置模块确实缺失或明确升级时,才执行 `node "${CRAFT_SKILL_DIR}/scripts/install.mjs" --project "${CRAFT_PROJECT_DIR}"`;它会覆盖该模块,先检查已有改动。API 以随技能 assets/tooling/*.d.mts 为准。
15
+
16
+ 导出成功不等于玩法或画面通过。继续使用 craft_game_check 与 craft_game_review 验证本次最终状态。
@@ -0,0 +1,20 @@
1
+ import { resolve } from 'node:path';
2
+ import { pathToFileURL } from 'node:url';
3
+ import { exportProjectConfig } from './project.mjs';
4
+
5
+ export async function runCli(args = process.argv.slice(2)) {
6
+ if ((args[0] ?? 'export-config') !== 'export-config') throw new Error('Usage: cli.mjs export-config [--project <directory>] [--check]');
7
+ let project = process.cwd(), check = false;
8
+ for (let index = 1; index < args.length; index++) {
9
+ if (args[index] === '--check') check = true;
10
+ else if (args[index] === '--project' && args[index + 1] && !args[index + 1].startsWith('--')) project = args[++index];
11
+ else throw new Error(`Invalid export-config option: ${args[index]}`);
12
+ }
13
+ const result = await exportProjectConfig(resolve(project), { check, onWarn: message => console.warn(`[LightGame config] ${message}`) });
14
+ console.log(`[LightGame] ${result.entries.length} controls ${result.changed ? 'exported' : 'unchanged'}`);
15
+ return result;
16
+ }
17
+
18
+ if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
19
+ runCli().catch(error => { console.error(`[LightGame config] ${error.message}`); process.exitCode = 1; });
20
+ }
@@ -0,0 +1,19 @@
1
+ export interface ControlMetadata {
2
+ type?: 'int' | 'float' | 'number' | 'num_slider' | 'bool' | 'boolean' | 'switch' | 'enum' | 'dropdown' | 'string' | 'text' | 'color' | 'resource';
3
+ enabled?: boolean; expose?: boolean; title?: string; description?: string;
4
+ min?: number; max?: number; step?: number; unit?: string; alpha?: boolean;
5
+ options?: Array<string | number | {value: string | number; label?: string}>;
6
+ tab?: string; group?: string; priority?: number;
7
+ category?: string; subcategory?: string; asset_type?: string;
8
+ }
9
+ export interface ConfigEntry {
10
+ schema: string; enabled: boolean; title: string; description: string;
11
+ locator: { tab: string; group: string; priority: number };
12
+ control: Record<string, unknown> & { type: string; default: unknown; value?: unknown; origin?: unknown };
13
+ }
14
+ export interface ConfigOptions { onWarn?: (message: string) => void; cdnBase?: string }
15
+ export function normalizeAssetUrl(value: unknown, cdnBase?: string): string;
16
+ export function inferControl(value: unknown, metadata?: ControlMetadata): ConfigEntry['control'] | null;
17
+ export function validateControlValue(control: ConfigEntry['control'], value: unknown): boolean;
18
+ export function createConfigEntries(owner: string, data: object, metadata?: Record<string, ControlMetadata>, previous?: ConfigEntry[], options?: ConfigOptions): ConfigEntry[];
19
+ export function resolveConfig<T extends object>(owner: string, data: T, metadata?: Record<string, ControlMetadata>, entries?: ConfigEntry[], options?: ConfigOptions): T;
@@ -0,0 +1 @@
1
+ var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:true});function resolveAssetUrl(path,{cdnBaseUrl="",baseUrl}={}){const value=String(path??"").trim();if(!value)throw new TypeError("Asset path must not be empty");if(/^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(value))return value;const encoded=encodeURI(value).replace(/%25([\da-f]{2})/gi,"%$1");const localPrefix=/^(?:assets|game|res|cfg|fonts)\//.test(value);if(cdnBaseUrl&&!localPrefix&&(value.startsWith("/Game/")||!/^(?:\/|\.\.?\/)/.test(value))){return`${cdnBaseUrl.replace(/\/+$/,"")}/${encoded.replace(/^\/+/,"")}`}return baseUrl?new URL(encoded,baseUrl).href:encoded}__name(resolveAssetUrl,"resolveAssetUrl");var has=__name((value,key)=>Object.prototype.hasOwnProperty.call(value,key),"has");var record=__name(value=>value!==null&&typeof value==="object"&&!Array.isArray(value),"record");var equal=__name((a,b)=>typeof a===typeof b&&(typeof a==="number"?Math.abs(a-b)<1e-9:a===b),"equal");var colorPattern=/^#(?:[a-f\d]{3}|[a-f\d]{4}|[a-f\d]{6}|[a-f\d]{8})$/i;var reserved=new Set(["__proto__","prototype","constructor"]);function assertKey(key,label){if(!key||key.includes(".")||reserved.has(key))throw new TypeError(`${label}: config keys must be nonempty, safe and contain no dots (${key})`)}__name(assertKey,"assertKey");function normalizeAssetUrl(value,cdnBase="https://file.craft.qq.com"){const path=String(value??"").trim().replaceAll("\\","/");return path?resolveAssetUrl(path,{cdnBaseUrl:cdnBase}):""}__name(normalizeAssetUrl,"normalizeAssetUrl");function inferControl(value,metadata={}){if(metadata.enabled===false||metadata.expose===false)return null;const kind=metadata.type??(typeof value==="number"?"number":typeof value==="boolean"?"boolean":typeof value==="string"&&colorPattern.test(value)?"color":void 0);if(!kind)return null;let control;switch(kind){case"int":case"float":case"number":case"num_slider":{if(typeof value!=="number"||!Number.isFinite(value))throw new TypeError("numeric controls require a finite numeric default");const span=Math.max(1,Math.abs(value)*2);const min=metadata.min??Math.min(0,value-span);const max=metadata.max??Math.max(1,value+span);const step=metadata.step??(kind==="int"||kind!=="float"&&Number.isInteger(value)?1:.01);if(![min,max,step].every(Number.isFinite)||min>max||step<=0||value<min||value>max)throw new TypeError("numeric min/max/step must be finite, contain the default, and step must be positive");control={type:"num_slider",default:value,min,max,step,unit:metadata.unit??""};if(kind==="int")control.integer=true;break}case"bool":case"boolean":case"switch":if(typeof value!=="boolean")throw new TypeError("switch controls require a boolean default");control={type:"switch",default:value};break;case"enum":case"dropdown":{const options=metadata.options?.map(option=>record(option)?{value:option.value,label:String(option.label??option.value)}:{value:option,label:String(option)});if(!options?.length||options.some(option=>!["string","number"].includes(typeof option.value))||new Set(options.map(option=>`${typeof option.value}:${option.value}`)).size!==options.length||!options.some(option=>equal(option.value,value)))throw new TypeError("dropdown options must be unique scalar values and contain the default");control={type:"dropdown",default:value,options};break}case"string":case"text":if(typeof value!=="string")throw new TypeError("text controls require a string default");control={type:"text",default:value};break;case"color":if(typeof value!=="string"||!colorPattern.test(value))throw new TypeError("color controls require a hexadecimal color default");control={type:"color",default:value,alpha:metadata.alpha??(value.length===5||value.length===9)};break;case"resource":if(typeof value!=="string")throw new TypeError("resource controls require a string default");control={type:"resource",default:value};for(const key of["category","subcategory","asset_type"])if(metadata[key]!==void 0)control[key]=metadata[key];break;default:throw new TypeError(`unsupported control type: ${kind}`)}return control}__name(inferControl,"inferControl");function validateControlValue(control,value){switch(control.type){case"num_slider":return typeof value==="number"&&Number.isFinite(value)&&value>=control.min&&value<=control.max&&(!control.integer||Number.isInteger(value));case"switch":return typeof value==="boolean";case"color":return typeof value==="string"&&colorPattern.test(value);case"dropdown":return control.options.some(option=>equal(option.value,value));case"text":case"resource":return typeof value==="string";default:return false}}__name(validateControlValue,"validateControlValue");function leaves(data,metadata,owner){if(!record(data)||!record(metadata))throw new TypeError(`${owner}: config and controls must be JSON objects`);const output=[];const seen=new Set;function walk(value,parts){if(Array.isArray(value))return;if(record(value)){for(const[key,child]of Object.entries(value)){assertKey(key,owner);walk(child,[...parts,key])}return}const path=parts.join(".");const meta=metadata[path]??{};if(!record(meta))throw new TypeError(`${owner}.${path}: controls metadata must be an object`);seen.add(path);try{const control=inferControl(value,meta);if(control)output.push({path,parts,control,meta,value})}catch(error){throw new TypeError(`${owner}.${path}: ${error.message}`)}}__name(walk,"walk");walk(data,[]);for(const key of Object.keys(metadata))if(!seen.has(key))throw new TypeError(`${owner}.${key}: control refers to a missing scalar field (arrays are not exposed)`);return output}__name(leaves,"leaves");function createConfigEntries(owner,data,metadata={},previous=[],options={}){assertKey(owner,"config filename");const oldBySchema=new Map((Array.isArray(previous)?previous:[]).map(item=>[item.schema,item]));return leaves(data,metadata,owner).map(({path,control,meta,value})=>{const schema=`${owner}.${path}`;const old=oldBySchema.get(schema);const oldControl=old?.control;let selected=value;let stale=oldControl?.previous_value;if(oldControl){const candidate=has(oldControl,"change_value")?oldControl.change_value:has(oldControl,"value")?oldControl.value:oldControl.default;const origin=has(oldControl,"origin")?oldControl.origin:oldControl.default;if(!equal(origin,value)&&equal(candidate,origin)){selected=value;stale=void 0}else if((control.type==="resource"||equal(origin,value))&&validateControlValue(control,candidate)){selected=candidate;if(!equal(candidate,value))stale=void 0}else if(!equal(candidate,value)){stale=candidate;options.onWarn?.(`${schema}: saved override is incompatible with the current default or constraints; using code default`)}}return{schema,enabled:old?.enabled!==false,title:meta.title??old?.title??path,description:meta.description??old?.description??"",locator:{tab:meta.tab??owner,group:meta.group??path.split(".")[0],priority:meta.priority??0},control:{...control,...control.type==="resource"?Object.fromEntries(["category","subcategory","asset_type"].filter(key=>control[key]===void 0&&oldControl?.[key]!==void 0).map(key=>[key,oldControl[key]])):{},origin:value,value:selected,...stale!==void 0?{previous_value:stale}:{}}}})}__name(createConfigEntries,"createConfigEntries");function resolveConfig(owner,data,metadata={},entries=[],options={}){const result=JSON.parse(JSON.stringify(data));const index=new Map((Array.isArray(entries)?entries:[]).map(item=>[item.schema,item]));for(const{path,parts,control,value}of leaves(data,metadata,owner)){const item=index.get(`${owner}.${path}`);let selected=value;if(item?.enabled!==false&&item?.control){const stored=item.control;const candidate=has(stored,"change_value")?stored.change_value:has(stored,"value")?stored.value:stored.default;const origin=has(stored,"origin")?stored.origin:stored.default;if(!equal(origin,value)&&equal(candidate,origin))selected=value;else if((control.type==="resource"||equal(origin,value))&&validateControlValue(control,candidate))selected=candidate;else options.onWarn?.(`${owner}.${path}: ignored incompatible saved override`)}if(control.type==="resource")selected=normalizeAssetUrl(selected,options.cdnBase);let parent=result;for(const key of parts.slice(0,-1))parent=parent[key];parent[parts.at(-1)]=selected}return result}__name(resolveConfig,"resolveConfig");export{createConfigEntries,inferControl,normalizeAssetUrl,resolveConfig,validateControlValue};
@@ -0,0 +1,6 @@
1
+ import type { ConfigEntry, ControlMetadata } from './config.mjs';
2
+ export interface ConfigManifest { configs: string; cdnBase?: string; projectRoot: string }
3
+ export function projectPath(root: string, path: string): string;
4
+ export function readProjectConfigs(root: string): Promise<{ manifest: ConfigManifest; configs: Array<{ name: string; path: string; metadataPath: string; data: object; metadata: Record<string, ControlMetadata> }>; snapshotPath: string; snapshot: ConfigEntry[] }>;
5
+ export function exportProjectConfig(root: string, options?: { check?: boolean; onWarn?: (message: string) => void }): Promise<{ entries: ConfigEntry[]; warnings: string[]; changed: boolean }>;
6
+ export function resolvedProjectConfigs(root: string): Promise<Awaited<ReturnType<typeof readProjectConfigs>> & { resolved: Map<string, object> }>;
@@ -0,0 +1,77 @@
1
+ import { readFile, readdir, writeFile, rename, unlink } from 'node:fs/promises';
2
+ import { resolve, relative, isAbsolute, join, basename } from 'node:path';
3
+ import { randomUUID } from 'node:crypto';
4
+ import { createConfigEntries, resolveConfig } from './config.mjs';
5
+
6
+ export function projectPath(root, path) {
7
+ const target = resolve(root, path);
8
+ const rel = relative(resolve(root), target);
9
+ if (rel === '..' || rel.startsWith('../') || rel.startsWith('..\\') || isAbsolute(rel)) throw new Error(`Path escapes project: ${path}`);
10
+ return target;
11
+ }
12
+
13
+ async function readJson(path, fallback) {
14
+ try { return JSON.parse(await readFile(path, 'utf8')); }
15
+ catch (error) {
16
+ if (error.code === 'ENOENT' && fallback !== undefined) return fallback;
17
+ throw new Error(`${path}: ${error.message}`, { cause: error });
18
+ }
19
+ }
20
+
21
+ export async function readProjectConfigs(projectRoot) {
22
+ const root = resolve(projectRoot);
23
+ const manifest = { configs: 'configs', ...await readJson(join(root, 'game-runtime.json'), {}), projectRoot: root };
24
+ const configRoot = projectPath(root, manifest.configs);
25
+ let files;
26
+ try { files = await readdir(configRoot, { withFileTypes: true }); }
27
+ catch (error) {
28
+ if (error.code === 'ENOENT') throw new Error(`Configured directory is missing: ${configRoot}. Existing panel values were not changed.`);
29
+ throw error;
30
+ }
31
+ const configs = [];
32
+ for (const file of files.sort((a, b) => a.name.localeCompare(b.name))) {
33
+ if (!file.isFile() || !file.name.endsWith('.json') || file.name.endsWith('.controls.json')) continue;
34
+ const name = basename(file.name, '.json');
35
+ const path = join(configRoot, file.name);
36
+ const metadataPath = join(configRoot, `${name}.controls.json`);
37
+ configs.push({ name, path, metadataPath, data: await readJson(path), metadata: await readJson(metadataPath, {}) });
38
+ }
39
+ const snapshotPath = join(root, 'unified_data_control_config.json');
40
+ const snapshot = await readJson(snapshotPath, []);
41
+ if (!Array.isArray(snapshot) && !(snapshot && typeof snapshot === 'object' && Object.keys(snapshot).length === 0)) {
42
+ throw new Error(`${snapshotPath}: expected a ConfigItem array`);
43
+ }
44
+ return { manifest, configs, snapshotPath, snapshot: Array.isArray(snapshot) ? snapshot : [] };
45
+ }
46
+
47
+ const exportQueues = new Map();
48
+ export function exportProjectConfig(projectRoot, options = {}) {
49
+ const key = resolve(projectRoot);
50
+ const previous = exportQueues.get(key) ?? Promise.resolve();
51
+ const next = previous.catch(() => {}).then(() => writeProjectConfig(key, options));
52
+ exportQueues.set(key, next);
53
+ return next.finally(() => { if (exportQueues.get(key) === next) exportQueues.delete(key); });
54
+ }
55
+
56
+ async function writeProjectConfig(projectRoot, options) {
57
+ const state = await readProjectConfigs(projectRoot);
58
+ const warnings = [];
59
+ const entries = state.configs.flatMap(config => createConfigEntries(config.name, config.data, config.metadata, state.snapshot, { onWarn: warning => warnings.push(warning) }));
60
+ const output = `${JSON.stringify(entries, null, 2)}\n`;
61
+ let current = '';
62
+ try { current = await readFile(state.snapshotPath, 'utf8'); }
63
+ catch (error) { if (error.code !== 'ENOENT') throw error; }
64
+ if (current !== output) {
65
+ if (options.check) throw new Error('Configuration snapshot is stale. Run the export-config command before collecting the upload snapshot.');
66
+ const temporary = `${state.snapshotPath}.${process.pid}.${randomUUID()}.tmp`;
67
+ try { await writeFile(temporary, output, 'utf8'); await rename(temporary, state.snapshotPath); }
68
+ finally { await unlink(temporary).catch(error => { if (error.code !== 'ENOENT') throw error; }); }
69
+ }
70
+ for (const warning of warnings) options.onWarn?.(warning);
71
+ return { entries, warnings, changed: current !== output };
72
+ }
73
+
74
+ export async function resolvedProjectConfigs(projectRoot) {
75
+ const state = await readProjectConfigs(projectRoot);
76
+ return { ...state, resolved: new Map(state.configs.map(config => [resolve(config.path), resolveConfig(config.name, config.data, config.metadata, state.snapshot, { cdnBase: state.manifest.cdnBase })])) };
77
+ }
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from 'vite';
2
+ export function gameConfig(): Plugin;
@@ -0,0 +1,34 @@
1
+ import { resolve, join } from 'node:path';
2
+ import { exportProjectConfig, resolvedProjectConfigs } from './project.mjs';
3
+
4
+ export function gameConfig() {
5
+ let root, state, server;
6
+ const refresh = async () => {
7
+ await exportProjectConfig(root, { onWarn: message => console.warn(`[LightGame config] ${message}`) });
8
+ state = await resolvedProjectConfigs(root);
9
+ };
10
+ return {
11
+ name: 'lightgame-config',
12
+ enforce: 'pre',
13
+ async configResolved(config) { root = config.root; await refresh(); },
14
+ configureServer(value) { server = value; },
15
+ transform(code, id) {
16
+ const path = resolve(id.split('?')[0]);
17
+ const query = new URLSearchParams(id.includes('?') ? id.slice(id.indexOf('?') + 1) : '');
18
+ const data = state?.resolved.get(path);
19
+ if (data !== undefined && !query.has('raw') && !query.has('url')) return { code: JSON.stringify(data), map: null };
20
+ },
21
+ async hotUpdate(context) {
22
+ if (this.environment.name !== 'client') return;
23
+ const path = resolve(context.file);
24
+ const configRoot = resolve(root, state.manifest.configs);
25
+ if (path === join(root, 'game-runtime.json') || path === join(root, 'unified_data_control_config.json')
26
+ || path.startsWith(`${configRoot}/`) || path.startsWith(`${configRoot}\\`)) {
27
+ await refresh();
28
+ server?.moduleGraph.invalidateAll();
29
+ server?.ws.send({ type: 'full-reload' });
30
+ return [];
31
+ }
32
+ },
33
+ };
34
+ }
@@ -0,0 +1,4 @@
1
+ // Invoke the exporter shipped with this project's engine template.
2
+ import { resolve } from 'node:path';
3
+ import { pathToFileURL } from 'node:url';
4
+ await import(pathToFileURL(resolve(process.cwd(), 'scripts/config-export.mjs')).href);
@@ -0,0 +1,89 @@
1
+ import { readFile, lstat, mkdir, writeFile } from 'node:fs/promises';
2
+ import { resolve, join, relative, isAbsolute, dirname } from 'node:path';
3
+ import { fileURLToPath, pathToFileURL } from 'node:url';
4
+
5
+ const pair = name => [`${name}.mjs`, `${name}.d.mts`];
6
+ const release = {
7
+ version: '1.1.0',
8
+ target: 'scripts/skill-modules/export-config',
9
+ defaults: ['config'],
10
+ groups: {
11
+ config: [...pair('config'), ...pair('project'), ...pair('vite'), 'cli.mjs'],
12
+ },
13
+ };
14
+ const assets = resolve(dirname(fileURLToPath(import.meta.url)), '../assets/tooling');
15
+ const safeParts = value => typeof value === 'string' && value.split('/').every(part => /^[a-zA-Z0-9][a-zA-Z0-9._-]*$/.test(part));
16
+
17
+ async function checkedPath(root, name) {
18
+ if (!safeParts(name)) throw new Error(`Invalid package path: ${name}`);
19
+ const target = resolve(root, name);
20
+ const rel = relative(root, target);
21
+ if (isAbsolute(rel) || rel === '..' || rel.startsWith('../')) throw new Error(`Path escapes project: ${name}`);
22
+ let current = root;
23
+ for (const part of name.split('/')) {
24
+ current = join(current, part);
25
+ try {
26
+ const info = await lstat(current);
27
+ if (info.isSymbolicLink()) throw new Error(`Symbolic links are not allowed: ${current}`);
28
+ } catch (error) { if (error.code !== 'ENOENT') throw error; }
29
+ }
30
+ return target;
31
+ }
32
+
33
+ async function readRecord(path) {
34
+ try {
35
+ const record = JSON.parse(await readFile(path, 'utf8'));
36
+ return record && typeof record === 'object' ? record : {};
37
+ } catch (error) {
38
+ if (error.code === 'ENOENT') return {};
39
+ throw error;
40
+ }
41
+ }
42
+
43
+ export async function installPackage(project, modules, source = assets) {
44
+ const root = resolve(project);
45
+ const info = await lstat(root);
46
+ if (!info.isDirectory() || info.isSymbolicLink()) throw new Error('Project root must be a real directory');
47
+ await readFile(await checkedPath(root, 'package.json'));
48
+ const selected = modules ?? release.defaults;
49
+ if (!Array.isArray(selected) || !selected.length) throw new Error('Select at least one module');
50
+ for (const module of selected) {
51
+ if (!Object.hasOwn(release.groups, module)) throw new Error(`Unknown module: ${module}`);
52
+ }
53
+ const recordPath = await checkedPath(root, `${release.target}/installed.json`);
54
+ const previous = await readRecord(recordPath);
55
+ const kept = Array.isArray(previous.modules) ? previous.modules.filter(module => Object.hasOwn(release.groups, module)) : [];
56
+ const installed = [...new Set([...kept, ...selected])].sort();
57
+ const files = new Map();
58
+ for (const name of new Set(installed.flatMap(module => release.groups[module]))) {
59
+ files.set(await checkedPath(root, `${release.target}/${name}`), await readFile(await checkedPath(source, name)));
60
+ }
61
+ for (const [target, bytes] of files) {
62
+ await mkdir(dirname(target), { recursive: true });
63
+ await writeFile(target, bytes);
64
+ }
65
+ await writeFile(recordPath, `${JSON.stringify({ version: release.version, modules: installed }, null, 2)}\n`);
66
+ const previousVersion = typeof previous.version === 'string' ? previous.version : '';
67
+ return { root: release.target, version: release.version, previousVersion, modules: installed };
68
+ }
69
+
70
+ export async function runCli(args = process.argv.slice(2)) {
71
+ let project, modules;
72
+ for (let index = 0; index < args.length; index++) {
73
+ const flag = args[index];
74
+ const value = args[++index];
75
+ if (!value || value.startsWith('--')) throw new Error(`Missing value for ${flag}`);
76
+ if (flag === '--project') project = value;
77
+ else if (flag === '--modules') modules = value.split(',');
78
+ else throw new Error(`Unknown option: ${flag}`);
79
+ }
80
+ if (!project) throw new Error('Usage: install.mjs --project <directory> [--modules <comma-separated names>]');
81
+ const result = await installPackage(project, modules);
82
+ const version = result.previousVersion && result.previousVersion !== result.version ? `${result.previousVersion} -> ${result.version}` : result.version;
83
+ console.log(`[skill] ${result.root}: ${result.modules.join(', ')} (${version})`);
84
+ return result;
85
+ }
86
+
87
+ if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
88
+ runCli().catch(error => { console.error(error.message); process.exitCode = 1; });
89
+ }
@@ -0,0 +1,106 @@
1
+ // 资源地址归一化的唯一实现。只改 https://file.craft.qq.com 和相对路径:
2
+ // 库资源收成 Game/,其它路径把百分号编码解回中文,相对路径保留原前缀。
3
+ // UTF-8 与 GBK 都能解时,只有 GBK 得到汉字而 UTF-8 不是汉字才用 GBK。
4
+
5
+ function percentEncodedBytes(text) {
6
+ const bytes = [];
7
+ let index = 0;
8
+ while (index < text.length) {
9
+ if (text[index] === '%' && /^[0-9A-Fa-f]{2}$/.test(text.slice(index + 1, index + 3))) {
10
+ bytes.push(Number.parseInt(text.slice(index + 1, index + 3), 16));
11
+ index += 3;
12
+ continue;
13
+ }
14
+ const code = text.charCodeAt(index);
15
+ if (code > 0x7f) return null;
16
+ bytes.push(code);
17
+ index += 1;
18
+ }
19
+ return bytes;
20
+ }
21
+
22
+ function hasCjk(text) {
23
+ return /[\u3400-\u9fff]/.test(text);
24
+ }
25
+
26
+ function decodeGbk(bytes) {
27
+ try {
28
+ return new TextDecoder('gbk', { fatal: true }).decode(Uint8Array.from(bytes));
29
+ } catch {
30
+ return null;
31
+ }
32
+ }
33
+
34
+ function decodeResourcePath(text) {
35
+ const bytes = percentEncodedBytes(text);
36
+ if (!bytes) return text;
37
+ let utf8 = null;
38
+ try {
39
+ utf8 = decodeURIComponent(text);
40
+ } catch {
41
+ utf8 = null;
42
+ }
43
+ const gbk = bytes.some((byte) => byte >= 0x80) ? decodeGbk(bytes) : null;
44
+ if (utf8 && gbk && utf8 !== gbk) {
45
+ return hasCjk(gbk) && !hasCjk(utf8) ? gbk : utf8;
46
+ }
47
+ return utf8 ?? gbk ?? text;
48
+ }
49
+
50
+ function hasNonAscii(text) {
51
+ for (let index = 0; index < text.length; index += 1) {
52
+ if (text.charCodeAt(index) > 0x7f) return true;
53
+ }
54
+ return false;
55
+ }
56
+
57
+ function restoreGamePath(source) {
58
+ let path = source;
59
+ try {
60
+ const url = new URL(source);
61
+ if (url.protocol !== 'https:' || url.hostname !== 'file.craft.qq.com') return source;
62
+ path = url.pathname;
63
+ } catch { /* 相对路径 */ }
64
+ if (!/^\/?Game\//.test(path)) return source;
65
+ const decoded = decodeResourcePath(path.startsWith('/') ? path : `/${path}`).replace(/^\/+/, '');
66
+ return decoded.startsWith('Game/') ? decoded : source;
67
+ }
68
+
69
+ function decodeRelativePath(source) {
70
+ if (/^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(source)) return source;
71
+ const parts = source.match(/^([^?#]*)([?#].*)?$/);
72
+ if (!parts || !parts[1].includes('%')) return source;
73
+ const decoded = decodeResourcePath(parts[1]);
74
+ if (decoded === parts[1] || !hasNonAscii(decoded)) return source;
75
+ const rest = parts[2] ?? '';
76
+ if (/^\/?Game\//.test(decoded)) return decoded.replace(/^\/+/, '') + rest;
77
+ return decoded + rest;
78
+ }
79
+
80
+ function decodeAbsoluteUrl(source) {
81
+ let url;
82
+ try {
83
+ url = new URL(source);
84
+ } catch {
85
+ return source;
86
+ }
87
+ if (url.protocol !== 'https:' || url.hostname !== 'file.craft.qq.com') return source;
88
+ const decodedPath = decodeResourcePath(url.pathname);
89
+ if (decodedPath === url.pathname || !hasNonAscii(decodedPath)) return source;
90
+ const href = url.href;
91
+ const origin = url.origin;
92
+ if (!href.startsWith(origin)) return source;
93
+ const rest = href.slice(origin.length);
94
+ if (!rest.startsWith(url.pathname)) return source;
95
+ return origin + decodedPath + rest.slice(url.pathname.length);
96
+ }
97
+
98
+ export function toPanelResourcePath(value) {
99
+ const source = String(value ?? '').trim();
100
+ if (!source) return source;
101
+ const restored = restoreGamePath(source);
102
+ if (restored.startsWith('Game/')) return restored;
103
+ const absolute = decodeAbsoluteUrl(source);
104
+ if (absolute !== source) return absolute;
105
+ return decodeRelativePath(source);
106
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schema": 1,
3
+ "engine": "js",
4
+ "host": "cursor",
5
+ "skills": [
6
+ {
7
+ "id": "cursor:js:export-config",
8
+ "name": "export-config",
9
+ "description": "Craft Cursor 项目专用;导出当前 2D / Phaser 工程的资源与可调参数配置;新增资源槽、修改配置、构建或上传前排查时使用。",
10
+ "entrypoint": "skills/export-config/SKILL.md"
11
+ },
12
+ {
13
+ "id": "cursor:js:visual-qa",
14
+ "name": "visual-qa",
15
+ "description": "Craft Cursor 项目专用;验收 2D / Phaser 游戏的真实输入、玩法闭环与截图;在交付预览或验证修复时使用。",
16
+ "entrypoint": "skills/visual-qa/SKILL.md"
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: visual-qa
3
+ description: Craft Cursor 项目专用;验收 2D / Phaser 游戏的真实输入、玩法闭环与截图;在交付预览或验证修复时使用。
4
+ ---
5
+
6
+ # 2D / Phaser 游戏验收
7
+
8
+ 读取当前工作流 context.workflow 的玩法观测和检查 schema。探针从真实渲染与玩法状态提供 engine、ready、frameCount 和 game;保留 Phaser POST_RENDER 与 PlayScene 状态。
9
+
10
+ 设计能由实际输入触发的检查:进入/推进核心循环、达到结算条件、重开恢复初始状态。只断言业务实际产生的值,不通过测试代码直接修改分数或结算。
11
+
12
+ 调用 craft_game_check 并轮询完成,使用 craft_game_review 查看实际截图。核实主要对象、UI、尺寸、遮挡、资源透明度与当前玩法,3D 场景还检查地面接触、相机与光照。修改后重新检查受影响状态。
13
+
14
+ 通过后 craft_game_deliver 返回启动命令;让宿主后台任务持续运行,查询 running 与 snapshot,打开实际链接核实后交付。记录已验证与未覆盖项,不把静态构建或扫描无错误等同于可玩。
@@ -0,0 +1,7 @@
1
+ # Craft 2D / Phaser 模板
2
+
3
+ 安装依赖后可运行 `npm run dev`;`npm run build` 包含配置导出、类型检查、Runtime 校验和 Vite 构建。
4
+
5
+ 通过 Craft 创建时,项目根 AGENTS.md 和项目恢复 Skill 由 prepare 生成。完整引擎上下文使用 craft_game_info 返回的绑定路径,开发进度保存在 SPEC/PROGRESS.md。
6
+
7
+ runtime/lightgame/1.1.0 是本模板的固定运行库。普通游戏开发使用现有声明与接口;修改 Runtime 时必须单独评审、测试并维护完整性清单。
@@ -0,0 +1,3 @@
1
+ {
2
+ "background": { "title": "背景颜色", "tab": "场景", "group": "画面" }
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "background": "#222222"
3
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": "1.1.0",
3
+ "root": "runtime/lightgame/1.1.0",
4
+ "cli": "tooling/cli.mjs",
5
+ "configs": "configs",
6
+ "cdnBase": "https://file.craft.qq.com"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "designResolution": {
3
+ "width": 1920,
4
+ "height": 1080
5
+ },
6
+ "orientation": "landscape"
7
+ }
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
6
+ <title>Light Game</title>
7
+ </head>
8
+ <body>
9
+ <div id="game"></div>
10
+ <div id="loading">
11
+ <div class="loading-panel">
12
+ <div class="loading-label">加载中</div>
13
+ <div id="loading-percent" class="loading-percent">0%</div>
14
+ <div class="loading-bar"><div id="loading-bar-fill" class="loading-bar-fill"></div></div>
15
+ </div>
16
+ </div>
17
+ <script>globalThis.__loadState = { state: "loading", progress: 0 };</script>
18
+ <script type="module" src="./src/main.ts"></script>
19
+ </body>
20
+ </html>
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "craft-js-template",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "npm run config:export && npm run typecheck && vite build",
9
+ "postbuild": "node scripts/write-preview-ready.mjs",
10
+ "preview": "vite preview",
11
+ "typecheck": "tsc --noEmit",
12
+ "runtime:verify": "node runtime/lightgame/1.1.0/tooling/cli.mjs verify",
13
+ "config:export": "node scripts/config-export.mjs"
14
+ },
15
+ "dependencies": {
16
+ "phaser": "3.90.0"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "5.8.3",
20
+ "vite": "7.3.5"
21
+ }
22
+ }