@craft_eco/craft-mcp 0.1.28 → 0.1.29

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 (980) hide show
  1. package/README.md +23 -17
  2. package/bin/craft-mcp.mjs +4 -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 +5 -0
  7. package/dist-server/game-workflow/context-state.mjs +67 -0
  8. package/dist-server/game-workflow/draft-uploads.mjs +3 -0
  9. package/dist-server/game-workflow/engines.mjs +3 -3
  10. package/dist-server/game-workflow/library-assets.mjs +2 -1
  11. package/dist-server/game-workflow/local-context.mjs +62 -0
  12. package/dist-server/game-workflow/native-context.mjs +289 -0
  13. package/dist-server/game-workflow/project-bundles.mjs +246 -129
  14. package/dist-server/game-workflow/project-context.mjs +183 -45
  15. package/dist-server/game-workflow/project-leases.mjs +101 -30
  16. package/dist-server/game-workflow/projects.mjs +86 -10
  17. package/dist-server/game-workflow/publications.mjs +5 -1
  18. package/dist-server/game-workflow/tasks.mjs +6 -1
  19. package/dist-server/game-workflow/work-scope.mjs +7 -0
  20. package/dist-server/integrations/config.mjs +145 -71
  21. package/dist-server/integrations/connection-handoff.mjs +42 -0
  22. package/dist-server/integrations/dsh-config.mjs +182 -0
  23. package/dist-server/integrations/files.mjs +54 -54
  24. package/dist-server/integrations/hosts.mjs +55 -35
  25. package/dist-server/integrations/install.mjs +205 -86
  26. package/dist-server/integrations/installation-state.mjs +84 -0
  27. package/dist-server/integrations/runtime-gc.mjs +188 -0
  28. package/dist-server/integrations/runtime.mjs +126 -72
  29. package/dist-server/integrations/updates.mjs +225 -0
  30. package/dist-server/integrations/version-policy.mjs +32 -0
  31. package/dist-server/mcp/control-panel.mjs +5 -2
  32. package/dist-server/mcp/publish-panel.mjs +7 -2
  33. package/dist-server/mcp/server.mjs +134 -26
  34. package/dist-server/mcp/start.mjs +8 -2
  35. package/dist-server/mcp/update-session.mjs +92 -0
  36. package/package.json +2 -2
  37. package/resources/context-filter-report.json +177 -0
  38. package/resources/craft-create/SKILL.md +19 -11
  39. package/resources/craft-update/SKILL.md +25 -0
  40. package/resources/targets/claude/js/bootstrap/SKILL.md +18 -0
  41. package/resources/targets/claude/js/context-filter-report.json +27 -0
  42. package/resources/targets/claude/js/craft-game-maker/SKILL.md +76 -0
  43. package/resources/targets/claude/js/craft-game-maker/js.md +10 -0
  44. package/resources/targets/claude/js/js/bundle.json +97 -0
  45. package/resources/targets/claude/js/js/context/AGENTS.md +29 -0
  46. package/resources/targets/claude/js/js/context/hooks/hooks.json +14 -0
  47. package/resources/targets/claude/js/js/context/knowledge/AssetUrl.md +9 -0
  48. package/resources/targets/claude/js/js/context/knowledge/AssetWiring.md +7 -0
  49. package/resources/targets/claude/js/js/context/knowledge/Layout.md +7 -0
  50. package/resources/targets/claude/js/js/context/knowledge/Lifecycle.md +11 -0
  51. package/resources/targets/claude/js/js/context/knowledge/ResourceLoading.md +9 -0
  52. package/resources/targets/claude/js/js/context/skills/export-config/SKILL.md +16 -0
  53. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  54. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  55. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  56. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  57. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  58. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  59. package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  60. package/resources/targets/claude/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  61. package/resources/targets/claude/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  62. package/resources/targets/claude/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  63. package/resources/targets/claude/js/js/context/skills/index.json +19 -0
  64. package/resources/targets/claude/js/js/context/skills/visual-qa/SKILL.md +14 -0
  65. package/resources/targets/claude/js/js/project/README.md +7 -0
  66. package/resources/targets/claude/js/js/project/configs/assets.json +1 -0
  67. package/resources/targets/claude/js/js/project/configs/game.controls.json +3 -0
  68. package/resources/targets/claude/js/js/project/configs/game.json +3 -0
  69. package/resources/targets/claude/js/js/project/game-runtime.json +7 -0
  70. package/resources/targets/claude/js/js/project/game.config.json +7 -0
  71. package/resources/targets/claude/js/js/project/index.html +20 -0
  72. package/resources/targets/claude/js/js/project/package.json +22 -0
  73. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  74. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  75. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  76. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  77. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  78. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  79. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  80. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  81. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  82. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  83. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  84. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  85. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  86. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  87. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  88. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  89. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  90. package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  91. package/resources/targets/claude/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  92. package/resources/targets/claude/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  93. package/resources/targets/claude/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  94. package/resources/targets/claude/js/js/project/scripts/config-export.mjs +13 -0
  95. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  96. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  97. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  98. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  99. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  100. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  101. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  102. package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  103. package/resources/targets/claude/js/js/project/scripts/write-preview-ready.mjs +22 -0
  104. package/resources/targets/claude/js/js/project/src/display/ui-stage.ts +156 -0
  105. package/resources/targets/claude/js/js/project/src/display/viewport.ts +249 -0
  106. package/resources/targets/claude/js/js/project/src/main.ts +87 -0
  107. package/resources/targets/claude/js/js/project/src/platform.ts +2 -0
  108. package/resources/targets/claude/js/js/project/src/scenes/LoadScene.ts +89 -0
  109. package/resources/targets/claude/js/js/project/src/scenes/PlayScene.ts +17 -0
  110. package/resources/targets/claude/js/js/project/src/screenUi.ts +185 -0
  111. package/resources/targets/claude/js/js/project/src/style.css +294 -0
  112. package/resources/targets/claude/js/js/project/tsconfig.json +20 -0
  113. package/resources/targets/claude/js/js/project/unified_data_control_config.json +20 -0
  114. package/resources/targets/claude/js/js/project/vite.config.ts +5 -0
  115. package/resources/targets/claude/js/recovery.md +13 -0
  116. package/resources/targets/claude/js/target.json +61 -0
  117. package/resources/targets/claude/js3d/bootstrap/SKILL.md +18 -0
  118. package/resources/targets/claude/js3d/context-filter-report.json +27 -0
  119. package/resources/targets/claude/js3d/craft-game-maker/SKILL.md +76 -0
  120. package/resources/targets/claude/js3d/craft-game-maker/js3d.md +12 -0
  121. package/resources/targets/claude/js3d/js3d/bundle.json +108 -0
  122. package/resources/targets/claude/js3d/js3d/context/AGENTS.md +30 -0
  123. package/resources/targets/claude/js3d/js3d/context/hooks/hooks.json +14 -0
  124. package/resources/targets/claude/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  125. package/resources/targets/claude/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  126. package/resources/targets/claude/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  127. package/resources/targets/claude/js3d/js3d/context/knowledge/Layout.md +7 -0
  128. package/resources/targets/{workbuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md → claude/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
  129. package/resources/targets/claude/js3d/js3d/context/knowledge/Runtime.md +9 -0
  130. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  131. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  132. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  133. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  134. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  135. package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  136. package/resources/targets/claude/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  137. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  138. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  139. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  140. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  141. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  142. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  143. package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  144. package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  145. package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  146. package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  147. package/resources/targets/claude/js3d/js3d/context/skills/index.json +31 -0
  148. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  149. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  150. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  151. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  152. package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  153. package/resources/targets/claude/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  154. package/resources/targets/claude/js3d/js3d/project/README.md +7 -0
  155. package/resources/targets/claude/js3d/js3d/project/configs/game.controls.json +3 -0
  156. package/resources/targets/claude/js3d/js3d/project/configs/game.json +3 -0
  157. package/resources/targets/claude/js3d/js3d/project/game-runtime.json +7 -0
  158. package/resources/targets/claude/js3d/js3d/project/game.config.json +7 -0
  159. package/resources/targets/claude/js3d/js3d/project/index.html +12 -0
  160. package/resources/targets/claude/js3d/js3d/project/package.json +23 -0
  161. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  162. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  163. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  164. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  165. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  166. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  167. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  168. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  169. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  170. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  171. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  172. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  173. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  174. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  175. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  176. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  177. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  178. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  179. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  180. package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  181. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  182. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  183. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  184. package/resources/targets/claude/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  185. package/resources/targets/claude/js3d/js3d/project/scripts/config-export.mjs +15 -0
  186. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  187. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  188. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  189. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  190. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  191. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  192. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  193. package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  194. package/resources/targets/claude/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  195. package/resources/targets/claude/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  196. package/resources/targets/claude/js3d/js3d/project/src/display/viewport.ts +239 -0
  197. package/resources/targets/claude/js3d/js3d/project/src/main.ts +85 -0
  198. package/resources/targets/claude/js3d/js3d/project/src/platform.ts +2 -0
  199. package/resources/targets/claude/js3d/js3d/project/src/style.css +83 -0
  200. package/resources/targets/claude/js3d/js3d/project/tsconfig.json +20 -0
  201. package/resources/targets/claude/js3d/js3d/project/unified_data_control_config.json +20 -0
  202. package/resources/targets/claude/js3d/js3d/project/vite.config.ts +5 -0
  203. package/resources/targets/claude/js3d/recovery.md +13 -0
  204. package/resources/targets/claude/js3d/target.json +60 -0
  205. package/resources/targets/codebuddy/js/bootstrap/SKILL.md +5 -1
  206. package/resources/targets/codebuddy/js/context-filter-report.json +27 -0
  207. package/resources/targets/codebuddy/js/craft-game-maker/SKILL.md +18 -19
  208. package/resources/targets/codebuddy/js/craft-game-maker/js.md +2 -2
  209. package/resources/targets/codebuddy/js/js/bundle.json +16 -18
  210. package/resources/targets/codebuddy/js/js/context/AGENTS.md +10 -6
  211. package/resources/targets/codebuddy/js/js/context/knowledge/AssetUrl.md +4 -4
  212. package/resources/targets/codebuddy/js/js/context/knowledge/AssetWiring.md +7 -0
  213. package/resources/targets/codebuddy/js/js/context/knowledge/ResourceLoading.md +9 -0
  214. package/resources/targets/codebuddy/js/js/context/skills/export-config/SKILL.md +2 -2
  215. package/resources/targets/codebuddy/js/js/context/skills/index.json +2 -14
  216. package/resources/targets/codebuddy/js/js/context/skills/visual-qa/SKILL.md +1 -1
  217. package/resources/targets/codebuddy/js/recovery.md +10 -4
  218. package/resources/targets/codebuddy/js/target.json +1 -1
  219. package/resources/targets/codebuddy/js3d/bootstrap/SKILL.md +5 -1
  220. package/resources/targets/codebuddy/js3d/context-filter-report.json +27 -0
  221. package/resources/targets/codebuddy/js3d/craft-game-maker/SKILL.md +18 -19
  222. package/resources/targets/codebuddy/js3d/craft-game-maker/js3d.md +3 -4
  223. package/resources/targets/codebuddy/js3d/js3d/bundle.json +19 -21
  224. package/resources/targets/codebuddy/js3d/js3d/context/AGENTS.md +10 -6
  225. package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
  226. package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  227. package/resources/targets/{codex/js3d/js3d/context/skills/asset-search/references/resource-config.md → codebuddy/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
  228. package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
  229. package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
  230. package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
  231. package/resources/targets/codebuddy/js3d/js3d/context/skills/index.json +4 -16
  232. package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
  233. package/resources/targets/codebuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
  234. package/resources/targets/codebuddy/js3d/recovery.md +10 -4
  235. package/resources/targets/codebuddy/js3d/target.json +1 -1
  236. package/resources/targets/codex/js/bootstrap/SKILL.md +9 -1
  237. package/resources/targets/codex/js/context-filter-report.json +27 -0
  238. package/resources/targets/codex/js/craft-game-maker/SKILL.md +18 -19
  239. package/resources/targets/codex/js/craft-game-maker/js.md +2 -2
  240. package/resources/targets/codex/js/js/bundle.json +16 -18
  241. package/resources/targets/codex/js/js/context/AGENTS.md +10 -6
  242. package/resources/targets/codex/js/js/context/knowledge/AssetUrl.md +4 -4
  243. package/resources/targets/codex/js/js/context/knowledge/AssetWiring.md +7 -0
  244. package/resources/targets/codex/js/js/context/knowledge/ResourceLoading.md +9 -0
  245. package/resources/targets/codex/js/js/context/skills/export-config/SKILL.md +2 -2
  246. package/resources/targets/codex/js/js/context/skills/index.json +2 -14
  247. package/resources/targets/codex/js/js/context/skills/visual-qa/SKILL.md +1 -1
  248. package/resources/targets/codex/js/recovery.md +14 -4
  249. package/resources/targets/codex/js/target.json +1 -1
  250. package/resources/targets/codex/js3d/bootstrap/SKILL.md +9 -1
  251. package/resources/targets/codex/js3d/context-filter-report.json +27 -0
  252. package/resources/targets/codex/js3d/craft-game-maker/SKILL.md +18 -19
  253. package/resources/targets/codex/js3d/craft-game-maker/js3d.md +3 -4
  254. package/resources/targets/codex/js3d/js3d/bundle.json +19 -21
  255. package/resources/targets/codex/js3d/js3d/context/AGENTS.md +10 -6
  256. package/resources/targets/codex/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
  257. package/resources/targets/codex/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  258. package/resources/targets/{codebuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md → codex/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
  259. package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
  260. package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
  261. package/resources/targets/codex/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
  262. package/resources/targets/codex/js3d/js3d/context/skills/index.json +4 -16
  263. package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
  264. package/resources/targets/codex/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
  265. package/resources/targets/codex/js3d/recovery.md +14 -4
  266. package/resources/targets/codex/js3d/target.json +1 -1
  267. package/resources/targets/cursor/js/bootstrap/SKILL.md +18 -0
  268. package/resources/targets/cursor/js/context-filter-report.json +27 -0
  269. package/resources/targets/cursor/js/craft-game-maker/SKILL.md +76 -0
  270. package/resources/targets/cursor/js/craft-game-maker/js.md +10 -0
  271. package/resources/targets/cursor/js/js/bundle.json +97 -0
  272. package/resources/targets/cursor/js/js/context/AGENTS.md +29 -0
  273. package/resources/targets/cursor/js/js/context/hooks/hooks.json +14 -0
  274. package/resources/targets/cursor/js/js/context/knowledge/AssetUrl.md +9 -0
  275. package/resources/targets/cursor/js/js/context/knowledge/AssetWiring.md +7 -0
  276. package/resources/targets/cursor/js/js/context/knowledge/Layout.md +7 -0
  277. package/resources/targets/cursor/js/js/context/knowledge/Lifecycle.md +11 -0
  278. package/resources/targets/cursor/js/js/context/knowledge/ResourceLoading.md +9 -0
  279. package/resources/targets/cursor/js/js/context/skills/export-config/SKILL.md +16 -0
  280. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  281. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  282. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  283. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  284. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  285. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  286. package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  287. package/resources/targets/cursor/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  288. package/resources/targets/cursor/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  289. package/resources/targets/cursor/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  290. package/resources/targets/cursor/js/js/context/skills/index.json +19 -0
  291. package/resources/targets/cursor/js/js/context/skills/visual-qa/SKILL.md +14 -0
  292. package/resources/targets/cursor/js/js/project/README.md +7 -0
  293. package/resources/targets/cursor/js/js/project/configs/assets.json +1 -0
  294. package/resources/targets/cursor/js/js/project/configs/game.controls.json +3 -0
  295. package/resources/targets/cursor/js/js/project/configs/game.json +3 -0
  296. package/resources/targets/cursor/js/js/project/game-runtime.json +7 -0
  297. package/resources/targets/cursor/js/js/project/game.config.json +7 -0
  298. package/resources/targets/cursor/js/js/project/index.html +20 -0
  299. package/resources/targets/cursor/js/js/project/package.json +22 -0
  300. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  301. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  302. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  303. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  304. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  305. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  306. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  307. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  308. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  309. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  310. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  311. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  312. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  313. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  314. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  315. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  316. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  317. package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  318. package/resources/targets/cursor/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  319. package/resources/targets/cursor/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  320. package/resources/targets/cursor/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  321. package/resources/targets/cursor/js/js/project/scripts/config-export.mjs +13 -0
  322. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  323. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  324. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  325. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  326. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  327. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  328. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  329. package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  330. package/resources/targets/cursor/js/js/project/scripts/write-preview-ready.mjs +22 -0
  331. package/resources/targets/cursor/js/js/project/src/display/ui-stage.ts +156 -0
  332. package/resources/targets/cursor/js/js/project/src/display/viewport.ts +249 -0
  333. package/resources/targets/cursor/js/js/project/src/main.ts +87 -0
  334. package/resources/targets/cursor/js/js/project/src/platform.ts +2 -0
  335. package/resources/targets/cursor/js/js/project/src/scenes/LoadScene.ts +89 -0
  336. package/resources/targets/cursor/js/js/project/src/scenes/PlayScene.ts +17 -0
  337. package/resources/targets/cursor/js/js/project/src/screenUi.ts +185 -0
  338. package/resources/targets/cursor/js/js/project/src/style.css +294 -0
  339. package/resources/targets/cursor/js/js/project/tsconfig.json +20 -0
  340. package/resources/targets/cursor/js/js/project/unified_data_control_config.json +20 -0
  341. package/resources/targets/cursor/js/js/project/vite.config.ts +5 -0
  342. package/resources/targets/cursor/js/recovery.md +13 -0
  343. package/resources/targets/cursor/js/target.json +61 -0
  344. package/resources/targets/cursor/js3d/bootstrap/SKILL.md +18 -0
  345. package/resources/targets/cursor/js3d/context-filter-report.json +27 -0
  346. package/resources/targets/cursor/js3d/craft-game-maker/SKILL.md +76 -0
  347. package/resources/targets/cursor/js3d/craft-game-maker/js3d.md +12 -0
  348. package/resources/targets/cursor/js3d/js3d/bundle.json +108 -0
  349. package/resources/targets/cursor/js3d/js3d/context/AGENTS.md +30 -0
  350. package/resources/targets/cursor/js3d/js3d/context/hooks/hooks.json +14 -0
  351. package/resources/targets/cursor/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  352. package/resources/targets/cursor/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  353. package/resources/targets/cursor/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  354. package/resources/targets/cursor/js3d/js3d/context/knowledge/Layout.md +7 -0
  355. package/resources/targets/cursor/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  356. package/resources/targets/cursor/js3d/js3d/context/knowledge/Runtime.md +9 -0
  357. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  358. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  359. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  360. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  361. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  362. package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  363. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  364. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  365. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  366. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  367. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  368. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  369. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  370. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  371. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  372. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  373. package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  374. package/resources/targets/cursor/js3d/js3d/context/skills/index.json +31 -0
  375. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  376. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  377. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  378. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  379. package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  380. package/resources/targets/cursor/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  381. package/resources/targets/cursor/js3d/js3d/project/README.md +7 -0
  382. package/resources/targets/cursor/js3d/js3d/project/configs/game.controls.json +3 -0
  383. package/resources/targets/cursor/js3d/js3d/project/configs/game.json +3 -0
  384. package/resources/targets/cursor/js3d/js3d/project/game-runtime.json +7 -0
  385. package/resources/targets/cursor/js3d/js3d/project/game.config.json +7 -0
  386. package/resources/targets/cursor/js3d/js3d/project/index.html +12 -0
  387. package/resources/targets/cursor/js3d/js3d/project/package.json +23 -0
  388. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  389. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  390. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  391. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  392. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  393. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  394. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  395. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  396. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  397. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  398. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  399. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  400. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  401. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  402. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  403. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  404. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  405. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  406. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  407. package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  408. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  409. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  410. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  411. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  412. package/resources/targets/cursor/js3d/js3d/project/scripts/config-export.mjs +15 -0
  413. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  414. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  415. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  416. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  417. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  418. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  419. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  420. package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  421. package/resources/targets/cursor/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  422. package/resources/targets/cursor/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  423. package/resources/targets/cursor/js3d/js3d/project/src/display/viewport.ts +239 -0
  424. package/resources/targets/cursor/js3d/js3d/project/src/main.ts +85 -0
  425. package/resources/targets/cursor/js3d/js3d/project/src/platform.ts +2 -0
  426. package/resources/targets/cursor/js3d/js3d/project/src/style.css +83 -0
  427. package/resources/targets/cursor/js3d/js3d/project/tsconfig.json +20 -0
  428. package/resources/targets/cursor/js3d/js3d/project/unified_data_control_config.json +20 -0
  429. package/resources/targets/cursor/js3d/js3d/project/vite.config.ts +5 -0
  430. package/resources/targets/cursor/js3d/recovery.md +13 -0
  431. package/resources/targets/cursor/js3d/target.json +60 -0
  432. package/resources/targets/dsh/js/bootstrap/SKILL.md +18 -0
  433. package/resources/targets/dsh/js/context-filter-report.json +27 -0
  434. package/resources/targets/dsh/js/craft-game-maker/SKILL.md +76 -0
  435. package/resources/targets/dsh/js/craft-game-maker/js.md +10 -0
  436. package/resources/targets/dsh/js/js/bundle.json +97 -0
  437. package/resources/targets/dsh/js/js/context/AGENTS.md +29 -0
  438. package/resources/targets/dsh/js/js/context/hooks/hooks.json +14 -0
  439. package/resources/targets/dsh/js/js/context/knowledge/AssetUrl.md +9 -0
  440. package/resources/targets/dsh/js/js/context/knowledge/AssetWiring.md +7 -0
  441. package/resources/targets/dsh/js/js/context/knowledge/Layout.md +7 -0
  442. package/resources/targets/dsh/js/js/context/knowledge/Lifecycle.md +11 -0
  443. package/resources/targets/dsh/js/js/context/knowledge/ResourceLoading.md +9 -0
  444. package/resources/targets/dsh/js/js/context/skills/export-config/SKILL.md +16 -0
  445. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  446. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  447. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  448. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  449. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  450. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  451. package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  452. package/resources/targets/dsh/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  453. package/resources/targets/dsh/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  454. package/resources/targets/dsh/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  455. package/resources/targets/dsh/js/js/context/skills/index.json +19 -0
  456. package/resources/targets/dsh/js/js/context/skills/visual-qa/SKILL.md +14 -0
  457. package/resources/targets/dsh/js/js/project/README.md +7 -0
  458. package/resources/targets/dsh/js/js/project/configs/assets.json +1 -0
  459. package/resources/targets/dsh/js/js/project/configs/game.controls.json +3 -0
  460. package/resources/targets/dsh/js/js/project/configs/game.json +3 -0
  461. package/resources/targets/dsh/js/js/project/game-runtime.json +7 -0
  462. package/resources/targets/dsh/js/js/project/game.config.json +7 -0
  463. package/resources/targets/dsh/js/js/project/index.html +20 -0
  464. package/resources/targets/dsh/js/js/project/package.json +22 -0
  465. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  466. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  467. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  468. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  469. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  470. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  471. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  472. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  473. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  474. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  475. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  476. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  477. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  478. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  479. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  480. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  481. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  482. package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  483. package/resources/targets/dsh/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  484. package/resources/targets/dsh/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  485. package/resources/targets/dsh/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  486. package/resources/targets/dsh/js/js/project/scripts/config-export.mjs +13 -0
  487. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  488. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  489. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  490. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  491. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  492. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  493. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  494. package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  495. package/resources/targets/dsh/js/js/project/scripts/write-preview-ready.mjs +22 -0
  496. package/resources/targets/dsh/js/js/project/src/display/ui-stage.ts +156 -0
  497. package/resources/targets/dsh/js/js/project/src/display/viewport.ts +249 -0
  498. package/resources/targets/dsh/js/js/project/src/main.ts +87 -0
  499. package/resources/targets/dsh/js/js/project/src/platform.ts +2 -0
  500. package/resources/targets/dsh/js/js/project/src/scenes/LoadScene.ts +89 -0
  501. package/resources/targets/dsh/js/js/project/src/scenes/PlayScene.ts +17 -0
  502. package/resources/targets/dsh/js/js/project/src/screenUi.ts +185 -0
  503. package/resources/targets/dsh/js/js/project/src/style.css +294 -0
  504. package/resources/targets/dsh/js/js/project/tsconfig.json +20 -0
  505. package/resources/targets/dsh/js/js/project/unified_data_control_config.json +20 -0
  506. package/resources/targets/dsh/js/js/project/vite.config.ts +5 -0
  507. package/resources/targets/dsh/js/recovery.md +13 -0
  508. package/resources/targets/dsh/js/target.json +61 -0
  509. package/resources/targets/dsh/js3d/bootstrap/SKILL.md +18 -0
  510. package/resources/targets/dsh/js3d/context-filter-report.json +27 -0
  511. package/resources/targets/dsh/js3d/craft-game-maker/SKILL.md +76 -0
  512. package/resources/targets/dsh/js3d/craft-game-maker/js3d.md +12 -0
  513. package/resources/targets/dsh/js3d/js3d/bundle.json +108 -0
  514. package/resources/targets/dsh/js3d/js3d/context/AGENTS.md +30 -0
  515. package/resources/targets/dsh/js3d/js3d/context/hooks/hooks.json +14 -0
  516. package/resources/targets/dsh/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  517. package/resources/targets/dsh/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  518. package/resources/targets/dsh/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  519. package/resources/targets/dsh/js3d/js3d/context/knowledge/Layout.md +7 -0
  520. package/resources/targets/dsh/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  521. package/resources/targets/dsh/js3d/js3d/context/knowledge/Runtime.md +9 -0
  522. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  523. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  524. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  525. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  526. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  527. package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  528. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  529. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  530. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  531. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  532. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  533. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  534. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  535. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  536. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  537. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  538. package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  539. package/resources/targets/dsh/js3d/js3d/context/skills/index.json +31 -0
  540. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  541. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  542. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  543. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  544. package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  545. package/resources/targets/dsh/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  546. package/resources/targets/dsh/js3d/js3d/project/README.md +7 -0
  547. package/resources/targets/dsh/js3d/js3d/project/configs/game.controls.json +3 -0
  548. package/resources/targets/dsh/js3d/js3d/project/configs/game.json +3 -0
  549. package/resources/targets/dsh/js3d/js3d/project/game-runtime.json +7 -0
  550. package/resources/targets/dsh/js3d/js3d/project/game.config.json +7 -0
  551. package/resources/targets/dsh/js3d/js3d/project/index.html +12 -0
  552. package/resources/targets/dsh/js3d/js3d/project/package.json +23 -0
  553. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  554. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  555. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  556. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  557. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  558. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  559. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  560. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  561. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  562. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  563. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  564. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  565. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  566. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  567. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  568. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  569. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  570. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  571. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  572. package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  573. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  574. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  575. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  576. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  577. package/resources/targets/dsh/js3d/js3d/project/scripts/config-export.mjs +15 -0
  578. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  579. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  580. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  581. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  582. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  583. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  584. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  585. package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  586. package/resources/targets/dsh/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  587. package/resources/targets/dsh/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  588. package/resources/targets/dsh/js3d/js3d/project/src/display/viewport.ts +239 -0
  589. package/resources/targets/dsh/js3d/js3d/project/src/main.ts +85 -0
  590. package/resources/targets/dsh/js3d/js3d/project/src/platform.ts +2 -0
  591. package/resources/targets/dsh/js3d/js3d/project/src/style.css +83 -0
  592. package/resources/targets/dsh/js3d/js3d/project/tsconfig.json +20 -0
  593. package/resources/targets/dsh/js3d/js3d/project/unified_data_control_config.json +20 -0
  594. package/resources/targets/dsh/js3d/js3d/project/vite.config.ts +5 -0
  595. package/resources/targets/dsh/js3d/recovery.md +13 -0
  596. package/resources/targets/dsh/js3d/target.json +60 -0
  597. package/resources/targets/index.json +72 -12
  598. package/resources/targets/kimi/js/bootstrap/SKILL.md +18 -0
  599. package/resources/targets/kimi/js/context-filter-report.json +27 -0
  600. package/resources/targets/kimi/js/craft-game-maker/SKILL.md +76 -0
  601. package/resources/targets/kimi/js/craft-game-maker/js.md +10 -0
  602. package/resources/targets/kimi/js/js/bundle.json +97 -0
  603. package/resources/targets/kimi/js/js/context/AGENTS.md +29 -0
  604. package/resources/targets/kimi/js/js/context/hooks/hooks.json +14 -0
  605. package/resources/targets/kimi/js/js/context/knowledge/AssetUrl.md +9 -0
  606. package/resources/targets/kimi/js/js/context/knowledge/AssetWiring.md +7 -0
  607. package/resources/targets/kimi/js/js/context/knowledge/Layout.md +7 -0
  608. package/resources/targets/kimi/js/js/context/knowledge/Lifecycle.md +11 -0
  609. package/resources/targets/kimi/js/js/context/knowledge/ResourceLoading.md +9 -0
  610. package/resources/targets/kimi/js/js/context/skills/export-config/SKILL.md +16 -0
  611. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  612. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  613. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  614. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  615. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  616. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  617. package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  618. package/resources/targets/kimi/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  619. package/resources/targets/kimi/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  620. package/resources/targets/kimi/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  621. package/resources/targets/kimi/js/js/context/skills/index.json +19 -0
  622. package/resources/targets/kimi/js/js/context/skills/visual-qa/SKILL.md +14 -0
  623. package/resources/targets/kimi/js/js/project/README.md +7 -0
  624. package/resources/targets/kimi/js/js/project/configs/assets.json +1 -0
  625. package/resources/targets/kimi/js/js/project/configs/game.controls.json +3 -0
  626. package/resources/targets/kimi/js/js/project/configs/game.json +3 -0
  627. package/resources/targets/kimi/js/js/project/game-runtime.json +7 -0
  628. package/resources/targets/kimi/js/js/project/game.config.json +7 -0
  629. package/resources/targets/kimi/js/js/project/index.html +20 -0
  630. package/resources/targets/kimi/js/js/project/package.json +22 -0
  631. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  632. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  633. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  634. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  635. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  636. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  637. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  638. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  639. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  640. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  641. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  642. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  643. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  644. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  645. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  646. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  647. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  648. package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  649. package/resources/targets/kimi/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  650. package/resources/targets/kimi/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  651. package/resources/targets/kimi/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  652. package/resources/targets/kimi/js/js/project/scripts/config-export.mjs +13 -0
  653. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  654. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  655. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  656. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  657. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  658. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  659. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  660. package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  661. package/resources/targets/kimi/js/js/project/scripts/write-preview-ready.mjs +22 -0
  662. package/resources/targets/kimi/js/js/project/src/display/ui-stage.ts +156 -0
  663. package/resources/targets/kimi/js/js/project/src/display/viewport.ts +249 -0
  664. package/resources/targets/kimi/js/js/project/src/main.ts +87 -0
  665. package/resources/targets/kimi/js/js/project/src/platform.ts +2 -0
  666. package/resources/targets/kimi/js/js/project/src/scenes/LoadScene.ts +89 -0
  667. package/resources/targets/kimi/js/js/project/src/scenes/PlayScene.ts +17 -0
  668. package/resources/targets/kimi/js/js/project/src/screenUi.ts +185 -0
  669. package/resources/targets/kimi/js/js/project/src/style.css +294 -0
  670. package/resources/targets/kimi/js/js/project/tsconfig.json +20 -0
  671. package/resources/targets/kimi/js/js/project/unified_data_control_config.json +20 -0
  672. package/resources/targets/kimi/js/js/project/vite.config.ts +5 -0
  673. package/resources/targets/kimi/js/recovery.md +13 -0
  674. package/resources/targets/kimi/js/target.json +61 -0
  675. package/resources/targets/kimi/js3d/bootstrap/SKILL.md +18 -0
  676. package/resources/targets/kimi/js3d/context-filter-report.json +27 -0
  677. package/resources/targets/kimi/js3d/craft-game-maker/SKILL.md +76 -0
  678. package/resources/targets/kimi/js3d/craft-game-maker/js3d.md +12 -0
  679. package/resources/targets/kimi/js3d/js3d/bundle.json +108 -0
  680. package/resources/targets/kimi/js3d/js3d/context/AGENTS.md +30 -0
  681. package/resources/targets/kimi/js3d/js3d/context/hooks/hooks.json +14 -0
  682. package/resources/targets/kimi/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  683. package/resources/targets/kimi/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  684. package/resources/targets/kimi/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  685. package/resources/targets/kimi/js3d/js3d/context/knowledge/Layout.md +7 -0
  686. package/resources/targets/kimi/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  687. package/resources/targets/kimi/js3d/js3d/context/knowledge/Runtime.md +9 -0
  688. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  689. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  690. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  691. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  692. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  693. package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  694. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  695. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  696. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  697. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  698. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  699. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  700. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  701. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  702. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  703. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  704. package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  705. package/resources/targets/kimi/js3d/js3d/context/skills/index.json +31 -0
  706. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  707. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  708. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  709. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  710. package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  711. package/resources/targets/kimi/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  712. package/resources/targets/kimi/js3d/js3d/project/README.md +7 -0
  713. package/resources/targets/kimi/js3d/js3d/project/configs/game.controls.json +3 -0
  714. package/resources/targets/kimi/js3d/js3d/project/configs/game.json +3 -0
  715. package/resources/targets/kimi/js3d/js3d/project/game-runtime.json +7 -0
  716. package/resources/targets/kimi/js3d/js3d/project/game.config.json +7 -0
  717. package/resources/targets/kimi/js3d/js3d/project/index.html +12 -0
  718. package/resources/targets/kimi/js3d/js3d/project/package.json +23 -0
  719. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  720. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  721. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  722. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  723. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  724. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  725. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  726. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  727. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  728. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  729. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  730. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  731. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  732. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  733. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  734. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  735. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  736. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  737. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  738. package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  739. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  740. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  741. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  742. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  743. package/resources/targets/kimi/js3d/js3d/project/scripts/config-export.mjs +15 -0
  744. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  745. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  746. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  747. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  748. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  749. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  750. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  751. package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  752. package/resources/targets/kimi/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  753. package/resources/targets/kimi/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  754. package/resources/targets/kimi/js3d/js3d/project/src/display/viewport.ts +239 -0
  755. package/resources/targets/kimi/js3d/js3d/project/src/main.ts +85 -0
  756. package/resources/targets/kimi/js3d/js3d/project/src/platform.ts +2 -0
  757. package/resources/targets/kimi/js3d/js3d/project/src/style.css +83 -0
  758. package/resources/targets/kimi/js3d/js3d/project/tsconfig.json +20 -0
  759. package/resources/targets/kimi/js3d/js3d/project/unified_data_control_config.json +20 -0
  760. package/resources/targets/kimi/js3d/js3d/project/vite.config.ts +5 -0
  761. package/resources/targets/kimi/js3d/recovery.md +13 -0
  762. package/resources/targets/kimi/js3d/target.json +60 -0
  763. package/resources/targets/workbuddy/js/bootstrap/SKILL.md +24 -14
  764. package/resources/targets/workbuddy/js/context-filter-report.json +27 -0
  765. package/resources/targets/workbuddy/js/craft-game-maker/SKILL.md +18 -19
  766. package/resources/targets/workbuddy/js/craft-game-maker/js.md +2 -2
  767. package/resources/targets/workbuddy/js/js/bundle.json +16 -18
  768. package/resources/targets/workbuddy/js/js/context/AGENTS.md +29 -25
  769. package/resources/targets/workbuddy/js/js/context/knowledge/AssetUrl.md +4 -4
  770. package/resources/targets/workbuddy/js/js/context/knowledge/AssetWiring.md +7 -0
  771. package/resources/targets/workbuddy/js/js/context/knowledge/ResourceLoading.md +9 -0
  772. package/resources/targets/workbuddy/js/js/context/skills/export-config/SKILL.md +2 -2
  773. package/resources/targets/workbuddy/js/js/context/skills/index.json +2 -14
  774. package/resources/targets/workbuddy/js/js/context/skills/visual-qa/SKILL.md +1 -1
  775. package/resources/targets/workbuddy/js/recovery.md +19 -7
  776. package/resources/targets/workbuddy/js/target.json +1 -1
  777. package/resources/targets/workbuddy/js3d/bootstrap/SKILL.md +24 -14
  778. package/resources/targets/workbuddy/js3d/context-filter-report.json +27 -0
  779. package/resources/targets/workbuddy/js3d/craft-game-maker/SKILL.md +18 -19
  780. package/resources/targets/workbuddy/js3d/craft-game-maker/js3d.md +3 -4
  781. package/resources/targets/workbuddy/js3d/js3d/bundle.json +19 -21
  782. package/resources/targets/workbuddy/js3d/js3d/context/AGENTS.md +30 -26
  783. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
  784. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  785. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  786. package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
  787. package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
  788. package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
  789. package/resources/targets/workbuddy/js3d/js3d/context/skills/index.json +4 -16
  790. package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
  791. package/resources/targets/workbuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
  792. package/resources/targets/workbuddy/js3d/recovery.md +19 -7
  793. package/resources/targets/workbuddy/js3d/target.json +1 -1
  794. package/resources/targets/zcode/js/bootstrap/SKILL.md +18 -0
  795. package/resources/targets/zcode/js/context-filter-report.json +27 -0
  796. package/resources/targets/zcode/js/craft-game-maker/SKILL.md +76 -0
  797. package/resources/targets/zcode/js/craft-game-maker/js.md +10 -0
  798. package/resources/targets/zcode/js/js/bundle.json +97 -0
  799. package/resources/targets/zcode/js/js/context/AGENTS.md +29 -0
  800. package/resources/targets/zcode/js/js/context/hooks/hooks.json +14 -0
  801. package/resources/targets/zcode/js/js/context/knowledge/AssetUrl.md +9 -0
  802. package/resources/targets/zcode/js/js/context/knowledge/AssetWiring.md +7 -0
  803. package/resources/targets/zcode/js/js/context/knowledge/Layout.md +7 -0
  804. package/resources/targets/zcode/js/js/context/knowledge/Lifecycle.md +11 -0
  805. package/resources/targets/zcode/js/js/context/knowledge/ResourceLoading.md +9 -0
  806. package/resources/targets/zcode/js/js/context/skills/export-config/SKILL.md +16 -0
  807. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  808. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  809. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
  810. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  811. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  812. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  813. package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  814. package/resources/targets/zcode/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
  815. package/resources/targets/zcode/js/js/context/skills/export-config/scripts/install.mjs +89 -0
  816. package/resources/targets/zcode/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  817. package/resources/targets/zcode/js/js/context/skills/index.json +19 -0
  818. package/resources/targets/zcode/js/js/context/skills/visual-qa/SKILL.md +14 -0
  819. package/resources/targets/zcode/js/js/project/README.md +7 -0
  820. package/resources/targets/zcode/js/js/project/configs/assets.json +1 -0
  821. package/resources/targets/zcode/js/js/project/configs/game.controls.json +3 -0
  822. package/resources/targets/zcode/js/js/project/configs/game.json +3 -0
  823. package/resources/targets/zcode/js/js/project/game-runtime.json +7 -0
  824. package/resources/targets/zcode/js/js/project/game.config.json +7 -0
  825. package/resources/targets/zcode/js/js/project/index.html +20 -0
  826. package/resources/targets/zcode/js/js/project/package.json +22 -0
  827. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  828. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  829. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  830. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  831. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  832. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  833. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  834. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  835. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  836. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  837. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  838. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  839. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  840. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  841. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  842. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  843. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  844. package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  845. package/resources/targets/zcode/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
  846. package/resources/targets/zcode/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  847. package/resources/targets/zcode/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
  848. package/resources/targets/zcode/js/js/project/scripts/config-export.mjs +13 -0
  849. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  850. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  851. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  852. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  853. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  854. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  855. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  856. package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  857. package/resources/targets/zcode/js/js/project/scripts/write-preview-ready.mjs +22 -0
  858. package/resources/targets/zcode/js/js/project/src/display/ui-stage.ts +156 -0
  859. package/resources/targets/zcode/js/js/project/src/display/viewport.ts +249 -0
  860. package/resources/targets/zcode/js/js/project/src/main.ts +87 -0
  861. package/resources/targets/zcode/js/js/project/src/platform.ts +2 -0
  862. package/resources/targets/zcode/js/js/project/src/scenes/LoadScene.ts +89 -0
  863. package/resources/targets/zcode/js/js/project/src/scenes/PlayScene.ts +17 -0
  864. package/resources/targets/zcode/js/js/project/src/screenUi.ts +185 -0
  865. package/resources/targets/zcode/js/js/project/src/style.css +294 -0
  866. package/resources/targets/zcode/js/js/project/tsconfig.json +20 -0
  867. package/resources/targets/zcode/js/js/project/unified_data_control_config.json +20 -0
  868. package/resources/targets/zcode/js/js/project/vite.config.ts +5 -0
  869. package/resources/targets/zcode/js/recovery.md +13 -0
  870. package/resources/targets/zcode/js/target.json +61 -0
  871. package/resources/targets/zcode/js3d/bootstrap/SKILL.md +18 -0
  872. package/resources/targets/zcode/js3d/context-filter-report.json +27 -0
  873. package/resources/targets/zcode/js3d/craft-game-maker/SKILL.md +76 -0
  874. package/resources/targets/zcode/js3d/craft-game-maker/js3d.md +12 -0
  875. package/resources/targets/zcode/js3d/js3d/bundle.json +108 -0
  876. package/resources/targets/zcode/js3d/js3d/context/AGENTS.md +30 -0
  877. package/resources/targets/zcode/js3d/js3d/context/hooks/hooks.json +14 -0
  878. package/resources/targets/zcode/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
  879. package/resources/targets/zcode/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
  880. package/resources/targets/zcode/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
  881. package/resources/targets/zcode/js3d/js3d/context/knowledge/Layout.md +7 -0
  882. package/resources/targets/zcode/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
  883. package/resources/targets/zcode/js3d/js3d/context/knowledge/Runtime.md +9 -0
  884. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
  885. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  886. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  887. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  888. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  889. package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  890. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
  891. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  892. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  893. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  894. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  895. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  896. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  897. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  898. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
  899. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  900. package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
  901. package/resources/targets/zcode/js3d/js3d/context/skills/index.json +31 -0
  902. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
  903. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  904. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  905. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  906. package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  907. package/resources/targets/zcode/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
  908. package/resources/targets/zcode/js3d/js3d/project/README.md +7 -0
  909. package/resources/targets/zcode/js3d/js3d/project/configs/game.controls.json +3 -0
  910. package/resources/targets/zcode/js3d/js3d/project/configs/game.json +3 -0
  911. package/resources/targets/zcode/js3d/js3d/project/game-runtime.json +7 -0
  912. package/resources/targets/zcode/js3d/js3d/project/game.config.json +7 -0
  913. package/resources/targets/zcode/js3d/js3d/project/index.html +12 -0
  914. package/resources/targets/zcode/js3d/js3d/project/package.json +23 -0
  915. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  916. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  917. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  918. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  919. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  920. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  921. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  922. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  923. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  924. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  925. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  926. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  927. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  928. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  929. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  930. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  931. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  932. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  933. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  934. package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  935. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
  936. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  937. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
  938. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
  939. package/resources/targets/zcode/js3d/js3d/project/scripts/config-export.mjs +15 -0
  940. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  941. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  942. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  943. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  944. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  945. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  946. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  947. package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  948. package/resources/targets/zcode/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
  949. package/resources/targets/zcode/js3d/js3d/project/src/display/ui-stage.ts +156 -0
  950. package/resources/targets/zcode/js3d/js3d/project/src/display/viewport.ts +239 -0
  951. package/resources/targets/zcode/js3d/js3d/project/src/main.ts +85 -0
  952. package/resources/targets/zcode/js3d/js3d/project/src/platform.ts +2 -0
  953. package/resources/targets/zcode/js3d/js3d/project/src/style.css +83 -0
  954. package/resources/targets/zcode/js3d/js3d/project/tsconfig.json +20 -0
  955. package/resources/targets/zcode/js3d/js3d/project/unified_data_control_config.json +20 -0
  956. package/resources/targets/zcode/js3d/js3d/project/vite.config.ts +5 -0
  957. package/resources/targets/zcode/js3d/recovery.md +13 -0
  958. package/resources/targets/zcode/js3d/target.json +60 -0
  959. package/vendor/craft-runtime/SOURCE.json +2 -2
  960. package/resources/targets/codebuddy/js/js/context/knowledge/AigcWiring.md +0 -9
  961. package/resources/targets/codebuddy/js/js/context/skills/aigc-generate/SKILL.md +0 -14
  962. package/resources/targets/codebuddy/js/js/context/skills/asset-search/SKILL.md +0 -12
  963. package/resources/targets/codebuddy/js/js/context/skills/asset-search/references/resource-config.md +0 -9
  964. package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
  965. package/resources/targets/codebuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
  966. package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
  967. package/resources/targets/codex/js/js/context/knowledge/AigcWiring.md +0 -9
  968. package/resources/targets/codex/js/js/context/skills/aigc-generate/SKILL.md +0 -14
  969. package/resources/targets/codex/js/js/context/skills/asset-search/SKILL.md +0 -12
  970. package/resources/targets/codex/js/js/context/skills/asset-search/references/resource-config.md +0 -9
  971. package/resources/targets/codex/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
  972. package/resources/targets/codex/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
  973. package/resources/targets/codex/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
  974. package/resources/targets/workbuddy/js/js/context/knowledge/AigcWiring.md +0 -9
  975. package/resources/targets/workbuddy/js/js/context/skills/aigc-generate/SKILL.md +0 -14
  976. package/resources/targets/workbuddy/js/js/context/skills/asset-search/SKILL.md +0 -12
  977. package/resources/targets/workbuddy/js/js/context/skills/asset-search/references/resource-config.md +0 -9
  978. package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
  979. package/resources/targets/workbuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
  980. package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
@@ -0,0 +1,185 @@
1
+ import { getUiStage } from './display/ui-stage';
2
+
3
+ function setRect(element: HTMLElement, rect: { x: number; y: number; width: number; height: number }): void {
4
+ Object.assign(element.style, { position: 'absolute', left: `${rect.x}px`, top: `${rect.y}px`, width: `${rect.width}px`, height: `${rect.height}px` });
5
+ }
6
+
7
+ function createButton(doc: Document, options: { label: string; onClick: () => void; className?: string }) {
8
+ const element = doc.createElement('button');
9
+ element.type = 'button';
10
+ element.textContent = options.label;
11
+ element.className = options.className ?? '';
12
+ element.style.pointerEvents = 'auto';
13
+ element.addEventListener('click', options.onClick);
14
+ return { element, dispose() { element.removeEventListener('click', options.onClick); element.remove(); } };
15
+ }
16
+
17
+ const NATIVE_HIT_STYLE_ID = 'screen-ui-native-hit';
18
+ const NATIVE_HIT_CSS = [
19
+ '#game button,#game input,#game select,#game textarea,#game a,#game [role="button"]{pointer-events:auto}',
20
+ '#game button{-webkit-appearance:none;appearance:none}',
21
+ ':where(#game) button{border:2px solid var(--hud-btn-edge,rgba(214,181,106,.55));border-radius:var(--hud-btn-radius,10px);background:var(--hud-btn-fill,rgba(28,22,18,.88));color:var(--hud-btn-ink,#f3ead8);font:600 28px/1.2 var(--hud-font,system-ui,"Microsoft YaHei",sans-serif);text-shadow:0 2px 4px rgba(0,0,0,.7)}',
22
+ ].join('');
23
+
24
+ function ensureNativeHitCss(doc: Document): void {
25
+ if (doc.getElementById(NATIVE_HIT_STYLE_ID)) return;
26
+ const style = document.createElement('style');
27
+ style.id = NATIVE_HIT_STYLE_ID;
28
+ style.textContent = NATIVE_HIT_CSS;
29
+ doc.head.appendChild(style);
30
+ }
31
+
32
+ export type ScreenRect = { x: number; y: number; width: number; height: number };
33
+
34
+ export type ScreenPanel = {
35
+ root: HTMLDivElement;
36
+ setOpen: (open: boolean) => void;
37
+ isOpen: () => boolean;
38
+ dispose: () => void;
39
+ };
40
+
41
+ export type ScreenPanelOptions = {
42
+ rect?: ScreenRect;
43
+ scroll?: boolean;
44
+ scrim?: boolean;
45
+ close?: boolean;
46
+ };
47
+
48
+ export type ScreenUi = {
49
+ width: number;
50
+ height: number;
51
+ layer: (name: string) => HTMLDivElement;
52
+ button: (
53
+ host: string | HTMLElement,
54
+ options: { label: string; rect?: ScreenRect; onClick: () => void },
55
+ ) => { element: HTMLButtonElement; dispose: () => void };
56
+ text: (host: string | HTMLElement, options: { text: string }) => HTMLDivElement;
57
+ panel: (options?: ScreenPanelOptions) => ScreenPanel;
58
+ dispose: () => void;
59
+ };
60
+
61
+ function isPanelBody(node: HTMLElement): boolean {
62
+ return node.classList.contains('screen-panel-body');
63
+ }
64
+
65
+ export function mountScreenUi(): ScreenUi {
66
+ const host = document.getElementById('game');
67
+ if (!host) throw new Error('#game 不存在');
68
+ ensureNativeHitCss(document);
69
+ const stage = getUiStage();
70
+
71
+ const resolveParent = (target: string | HTMLElement): HTMLDivElement =>
72
+ typeof target === 'string' ? stage.layer(target) : (target as HTMLDivElement);
73
+
74
+ const mountButton = (
75
+ parent: HTMLElement,
76
+ options: { label: string; rect?: ScreenRect; onClick: () => void; className?: string },
77
+ ) => {
78
+ const btn = createButton(document, {
79
+ label: options.label,
80
+ onClick: options.onClick,
81
+ ...(options.className ? { className: options.className } : {}),
82
+ });
83
+ parent.appendChild(btn.element);
84
+ if (options.rect && !isPanelBody(parent)) {
85
+ setRect(btn.element, options.rect);
86
+ }
87
+ return btn;
88
+ };
89
+
90
+ return {
91
+ get width() {
92
+ return stage.logical.logicW;
93
+ },
94
+ get height() {
95
+ return stage.logical.logicH;
96
+ },
97
+ layer: (name) => stage.layer(name),
98
+ button(target, options) {
99
+ return mountButton(resolveParent(target), options);
100
+ },
101
+ text(target, options) {
102
+ const parent = resolveParent(target);
103
+ const el = document.createElement('div');
104
+ el.className = 'screen-text';
105
+ el.textContent = options.text;
106
+ parent.appendChild(el);
107
+ return el;
108
+ },
109
+ panel(options = {}) {
110
+ const useFixed = Boolean(options.rect);
111
+ const scrimOn = options.scrim !== false;
112
+ const closeOn = options.close === true;
113
+
114
+ const scrim = document.createElement('div');
115
+ scrim.className = 'screen-scrim screen-hidden';
116
+ scrim.style.pointerEvents = 'auto';
117
+ scrim.style.inset = '0';
118
+ if (scrimOn) stage.layer('scrim').appendChild(scrim);
119
+
120
+ const box = document.createElement('div');
121
+ box.className = 'screen-panel screen-hidden';
122
+ box.style.pointerEvents = 'auto';
123
+ if (useFixed && options.rect) {
124
+ setRect(box, options.rect);
125
+ box.style.transform = 'none';
126
+ }
127
+ stage.layer('modal').appendChild(box);
128
+
129
+ let open = false;
130
+ const setOpen = (next: boolean) => {
131
+ open = next;
132
+ if (scrimOn) scrim.classList.toggle('screen-hidden', !next);
133
+ box.classList.toggle('screen-hidden', !next);
134
+ };
135
+
136
+ let closeBtn: { dispose: () => void } | undefined;
137
+ if (closeOn) {
138
+ const head = document.createElement('div');
139
+ head.className = 'screen-panel-head';
140
+ box.appendChild(head);
141
+ closeBtn = mountButton(head, {
142
+ label: '关闭',
143
+ className: 'screen-panel-close',
144
+ onClick: () => setOpen(false),
145
+ });
146
+ }
147
+
148
+ const body = document.createElement('div');
149
+ body.className = 'screen-panel-body';
150
+ body.style.pointerEvents = 'auto';
151
+ if (options.scroll === false) body.style.overflow = 'hidden';
152
+ box.appendChild(body);
153
+
154
+ const onScrimClick = () => {
155
+ if (closeOn) setOpen(false);
156
+ };
157
+ const onKey = (event: KeyboardEvent) => {
158
+ if (!closeOn || event.key !== 'Escape' || !open) return;
159
+ event.preventDefault();
160
+ setOpen(false);
161
+ };
162
+ if (scrimOn) scrim.addEventListener('click', onScrimClick);
163
+ document.addEventListener('keydown', onKey);
164
+
165
+ return {
166
+ root: body,
167
+ setOpen,
168
+ isOpen: () => open,
169
+ dispose: () => {
170
+ setOpen(false);
171
+ document.removeEventListener('keydown', onKey);
172
+ if (scrimOn) {
173
+ scrim.removeEventListener('click', onScrimClick);
174
+ scrim.remove();
175
+ }
176
+ closeBtn?.dispose();
177
+ box.remove();
178
+ },
179
+ };
180
+ },
181
+ dispose: () => {
182
+ /* 舞台由 main.ts 的 initUiStage 持有,Scene 关闭不清掉 #ui-root */
183
+ },
184
+ };
185
+ }
@@ -0,0 +1,294 @@
1
+ :root {
2
+ /* 从 SPEC/plan/游戏设计.md 画风主色 / 字色 / 描边改这三项;弹层底板用 --hud-panel-fill */
3
+ --hud-btn-fill: rgba(28, 22, 18, 0.88);
4
+ --hud-btn-ink: #f3ead8;
5
+ --hud-btn-edge: rgba(214, 181, 106, 0.55);
6
+ --hud-btn-radius: 10px;
7
+ --hud-panel-fill: rgba(18, 14, 12, 0.94);
8
+ --hud-font: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
9
+
10
+ --ui-primary: #4aa3ff;
11
+ --ui-primary-strong: #2f7fe0;
12
+ --ui-accent: #ffc247;
13
+ --ui-danger: #ff5a5a;
14
+ --ui-success: #48d597;
15
+ --ui-text: #f2f7ff;
16
+ --ui-text-dim: #c3cede;
17
+ --ui-text-dark: #1b2230;
18
+ --ui-panel-bg: rgba(16, 22, 34, 0.82);
19
+ --ui-panel-border: rgba(255, 255, 255, 0.16);
20
+ --ui-scrim: rgba(0, 0, 0, 0.55);
21
+ --ui-font-xl: 64px;
22
+ --ui-font-lg: 44px;
23
+ --ui-font-md: 32px;
24
+ --ui-font-sm: 24px;
25
+ --ui-gap-xs: 8px;
26
+ --ui-gap-sm: 16px;
27
+ --ui-gap-md: 28px;
28
+ --ui-gap-lg: 48px;
29
+ --ui-radius-sm: 8px;
30
+ --ui-radius-md: 16px;
31
+ --ui-radius-lg: 28px;
32
+ --ui-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
33
+ --ui-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
34
+ --ui-shadow-text: 0 2px 6px rgba(0, 0, 0, 0.75);
35
+ --ui-page-margin: 32px;
36
+ --ui-font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
37
+ }
38
+
39
+ html, body {
40
+ margin: 0;
41
+ width: 100%;
42
+ height: 100%;
43
+ overflow: hidden;
44
+ background: #000;
45
+ }
46
+
47
+ #game {
48
+ position: relative;
49
+ width: 100%;
50
+ height: 100%;
51
+ overflow: hidden;
52
+ }
53
+
54
+ #game canvas {
55
+ display: block;
56
+ }
57
+
58
+ #ui-root {
59
+ position: absolute;
60
+ inset: 0;
61
+ overflow: hidden;
62
+ pointer-events: none;
63
+ z-index: 10;
64
+ }
65
+
66
+ #ui-stage {
67
+ position: absolute;
68
+ left: 50%;
69
+ top: 50%;
70
+ transform-origin: center center;
71
+ overflow: hidden;
72
+ pointer-events: none;
73
+ isolation: isolate;
74
+ }
75
+
76
+ #game button {
77
+ box-sizing: border-box;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ margin: 0;
82
+ padding: 0 16px;
83
+ cursor: pointer;
84
+ pointer-events: auto;
85
+ -webkit-appearance: none;
86
+ appearance: none;
87
+ border: 2px solid var(--hud-btn-edge);
88
+ border-radius: var(--hud-btn-radius);
89
+ background: var(--hud-btn-fill);
90
+ color: var(--hud-btn-ink);
91
+ font: 600 28px/1.2 var(--hud-font);
92
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
93
+ user-select: none;
94
+ }
95
+
96
+ #game button:active:not(:disabled) {
97
+ filter: brightness(0.88);
98
+ }
99
+
100
+ .screen-hidden {
101
+ display: none !important;
102
+ }
103
+
104
+ .screen-scrim {
105
+ box-sizing: border-box;
106
+ background: rgba(0, 0, 0, 0.45);
107
+ }
108
+
109
+ .screen-panel {
110
+ position: absolute;
111
+ left: 50%;
112
+ top: 50%;
113
+ transform: translate(-50%, -50%);
114
+ display: flex;
115
+ flex-direction: column;
116
+ box-sizing: border-box;
117
+ width: max-content;
118
+ height: max-content;
119
+ max-width: 90%;
120
+ max-height: 90%;
121
+ border: 2px solid var(--hud-btn-edge);
122
+ border-radius: 16px;
123
+ background: var(--hud-panel-fill);
124
+ color: var(--hud-btn-ink);
125
+ font: 600 1em/1.35 var(--hud-font);
126
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
127
+ }
128
+
129
+ .screen-panel-head {
130
+ display: flex;
131
+ justify-content: flex-end;
132
+ flex: 0 0 auto;
133
+ padding: 0.4em 0.4em 0;
134
+ }
135
+
136
+ #game .screen-panel-close {
137
+ width: auto;
138
+ height: auto;
139
+ flex: 0 0 auto;
140
+ padding: 0.35em 0.8em;
141
+ white-space: nowrap;
142
+ }
143
+
144
+ .screen-panel-body {
145
+ position: relative;
146
+ display: flex;
147
+ flex-direction: column;
148
+ align-items: stretch;
149
+ gap: 0.5em;
150
+ min-height: 0;
151
+ padding: 0.8em 1.2em 1.2em;
152
+ overflow: auto;
153
+ }
154
+
155
+ #game .screen-panel-body > button {
156
+ position: static;
157
+ width: auto;
158
+ height: auto;
159
+ align-self: center;
160
+ padding: 0.35em 0.9em;
161
+ white-space: nowrap;
162
+ }
163
+
164
+ .screen-text {
165
+ margin: 0;
166
+ max-inline-size: 36ch;
167
+ text-align: center;
168
+ overflow-wrap: anywhere;
169
+ font: 600 1em/1.4 var(--hud-font);
170
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
171
+ }
172
+
173
+ .ui-layer {
174
+ font-family: var(--ui-font-family);
175
+ color: var(--ui-text);
176
+ line-height: 1.25;
177
+ }
178
+
179
+ .ui-row {
180
+ display: flex;
181
+ flex-direction: row;
182
+ align-items: center;
183
+ gap: var(--ui-gap-sm);
184
+ }
185
+
186
+ .ui-col {
187
+ display: flex;
188
+ flex-direction: column;
189
+ gap: var(--ui-gap-sm);
190
+ }
191
+
192
+ .ui-center {
193
+ justify-content: center;
194
+ }
195
+
196
+ .ui-between {
197
+ justify-content: space-between;
198
+ }
199
+
200
+ .ui-grow {
201
+ flex: 1 1 auto;
202
+ min-height: 0;
203
+ min-width: 0;
204
+ }
205
+
206
+ .ui-modal {
207
+ position: absolute;
208
+ inset: 0;
209
+ display: flex;
210
+ align-items: center;
211
+ justify-content: center;
212
+ pointer-events: auto;
213
+ }
214
+
215
+ .ui-panel {
216
+ background: var(--ui-panel-bg);
217
+ border: 2px solid var(--ui-panel-border);
218
+ border-radius: var(--ui-radius-md);
219
+ box-shadow: var(--ui-shadow-md);
220
+ padding: var(--ui-gap-md);
221
+ box-sizing: border-box;
222
+ }
223
+
224
+ .ui-btn {
225
+ font: inherit;
226
+ color: var(--ui-text);
227
+ background: var(--ui-primary);
228
+ border: none;
229
+ border-radius: var(--ui-radius-sm);
230
+ padding: var(--ui-gap-xs) var(--ui-gap-md);
231
+ min-height: 80px;
232
+ min-width: 160px;
233
+ cursor: pointer;
234
+ pointer-events: auto;
235
+ }
236
+
237
+ .ui-btn:active {
238
+ transform: translateY(2px);
239
+ }
240
+
241
+ .ui-num {
242
+ font-variant-numeric: tabular-nums;
243
+ }
244
+
245
+ #ui-stage[data-orientation='portrait'] .hud-topbar {
246
+ flex-direction: column;
247
+ }
248
+
249
+ #ui-stage[data-orientation='landscape'] .hud-topbar {
250
+ flex-direction: row;
251
+ }
252
+
253
+ #game[data-platform='mobile'] .hud-hint {
254
+ display: none;
255
+ }
256
+
257
+ #loading {
258
+ position: fixed;
259
+ inset: 0;
260
+ z-index: 9999;
261
+ display: flex;
262
+ align-items: center;
263
+ justify-content: center;
264
+ background: #000;
265
+ color: #fff;
266
+ font-family: sans-serif;
267
+ pointer-events: none;
268
+ user-select: none;
269
+ }
270
+
271
+ .loading-panel {
272
+ display: flex;
273
+ flex-direction: column;
274
+ align-items: center;
275
+ gap: 12px;
276
+ }
277
+
278
+ .loading-label,
279
+ .loading-percent {
280
+ font-size: 16px;
281
+ line-height: 1.2;
282
+ }
283
+
284
+ .loading-bar {
285
+ width: 240px;
286
+ height: 8px;
287
+ background: #333;
288
+ }
289
+
290
+ .loading-bar-fill {
291
+ width: 0%;
292
+ height: 100%;
293
+ background: #fff;
294
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "types": ["vite/client"],
8
+
9
+ "strict": true,
10
+ "noEmit": true,
11
+ "skipLibCheck": true,
12
+ "isolatedModules": true,
13
+ "esModuleInterop": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "resolveJsonModule": true,
16
+ "useDefineForClassFields": true
17
+ },
18
+ "include": ["src"],
19
+ "exclude": ["node_modules", "dist", "src/**/*.test.ts"]
20
+ }
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "schema": "game.background",
4
+ "enabled": true,
5
+ "title": "背景颜色",
6
+ "description": "",
7
+ "locator": {
8
+ "tab": "场景",
9
+ "group": "画面",
10
+ "priority": 0
11
+ },
12
+ "control": {
13
+ "type": "color",
14
+ "default": "#222222",
15
+ "alpha": false,
16
+ "origin": "#222222",
17
+ "value": "#222222"
18
+ }
19
+ }
20
+ ]
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from 'vite';
2
+ import { lightgame } from './runtime/lightgame/1.1.0/tooling/vite.mjs';
3
+ import { gameConfig } from './scripts/skill-modules/export-config/vite.mjs';
4
+
5
+ export default defineConfig({ base: './', plugins: [lightgame(), gameConfig()] });
@@ -0,0 +1,13 @@
1
+ # 恢复当前 ZCode / 2D / Phaser 游戏
2
+
3
+ 新会话首次处理本项目时,先核对 `craft_game_info(name)` 的目录,再调用 `craft_update_check(name,intent:"inspect")` 检查 npm 版本。继续制作前调用 intent=resume 并与 prepare 复用本次 request_key;返回 pending_reconnect 表示新版已安装、当前连接仍为旧版。先结束并 release 既有工作,按宿主可用方式重连,再由当前连接的 craft_game_info 确认版本、build_id 与 active_verified 后准备项目,不把安装成功当成连接已更新。同步成功后重新读取本地入口、技能索引和所需 Skill 正文。纯查看仅检查,不同步或改写项目;工作进行中保持既有 work_id/context_revision。
4
+
5
+ 本套资料安装在项目 `.zcode/`。请在该游戏项目目录开启会话,从 `AGENTS.md` 和项目 `craft-project` Skill 恢复。使用本宿主目录下的 `AGENTS.md`、`workflow.md`、`guide.md`、`knowledge/` 和 `skills/`,按任务选择领域 Skill,无需从缓存或版本目录查找正文。
6
+
7
+ 先调用只读 `craft_game_info(name)` 检查工程、已安装版本和占用。纯查看直接读取现有文件。继续制作时调用 `craft_game_prepare(name,mode:"resume",request_key)` 并轮询成功,保存 work_id/context_revision,再重新读取返回的本地入口、工作流和技能索引;制作工具传入 work_id。读取项目 `SPEC/PROGRESS.md`、已有设计、相关源码,以及存在的 `.craft/user-rules.md`;以文件和实际工具结果恢复进度。
8
+
9
+ 项目入口与源码不重建。更新只管理 Craft 清单中的文件,修改过的官方副本先备份;用户规则和进度保留。旧运行时不能降级已更新的上下文,兼容检查失败时按诊断处理。
10
+
11
+ 只读恢复不修改游戏代码、进度或设计,不执行构建或导出。进行游戏开发时按本地工作流完成验收并记录真实结果。
12
+
13
+ 完成或暂停制作时记录进度,等待后台任务结束并调用 `craft_game_release(name,work_id)`。新的制作任务使用新的 request_key;同次准备的网络重试复用原 key。resume 不重建模板、不安装依赖、不构建或导出。更新只在准备阶段发生,查询不更新文件。
@@ -0,0 +1,61 @@
1
+ {
2
+ "schema": 1,
3
+ "host": "zcode",
4
+ "engine": "js",
5
+ "version": "1.0.1",
6
+ "template": {
7
+ "path": "engines/js/project",
8
+ "files": {
9
+ "configs/assets.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
10
+ "configs/game.controls.json": "c353f210e7d63c4042cc4a58163e90cc9dc55b3bb5789547dbf913f1e553d2fa",
11
+ "configs/game.json": "3289dc2a6fb9a75e47e59dd95507a91a5337352a3ae5a0f7dbaf14a2ab16ad88",
12
+ "game-runtime.json": "9e6d4974f371478ce507ae208de580e248175a0d99941aa0d10465243fd4ad69",
13
+ "game.config.json": "0d50535f695a1be2c7a1649953fedd112d02a078ceda11c22391b21c05a22c0e",
14
+ "index.html": "6968aba482c4fb0d2c6bd0e4effe627837c1a83bf16f185c32dd7b351605c6a2",
15
+ "package.json": "b308908f78564b70471e7c9c762904f497778e2e5dd0512a47e9034ed7c2c8d4",
16
+ "README.md": "7708ecdf5ff65e5565bb46c98b4388778db0e747c2d9fce778f42f73c78663f5",
17
+ "runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js": "2a2ad154f1f300f188e202100d35d866e81cba0ff603cb9abea8ab1b4f2b909a",
18
+ "runtime/lightgame/1.1.0/platform/identity/qq-session.mjs": "6a2716cdb7393cac0b0b231bf1b5f9886e2c876917c7af17913c57a683df2a8a",
19
+ "runtime/lightgame/1.1.0/platform/identity/shared.mjs": "58855d261455d390e66b8dbfccd6384a3daddcf77615490c744014c695e611b3",
20
+ "runtime/lightgame/1.1.0/platform/platform-capture-video.mjs": "5137bfd403c8500e1e5b5305ac7f3ca55ee68daaade624333a7c85786077713d",
21
+ "runtime/lightgame/1.1.0/platform/platform-service.d.mts": "1215d08eaa70c412628e6d160e10f3d1b211be8ff66da5d312684d6fe6905f11",
22
+ "runtime/lightgame/1.1.0/platform/platform-service.mjs": "4c80bd843775d687d6015dcde78c3ea2a354923860d1c5d443a6035fcfce5653",
23
+ "runtime/lightgame/1.1.0/platform/platform.d.mts": "27819e8b8730a6af9c84aa4b540fef010e51299f32a76739621d340046e12f11",
24
+ "runtime/lightgame/1.1.0/platform/platform.mjs": "d4848e892f4863003d4022178817cf3c796975f5304bd59530b6574971b4e9c9",
25
+ "runtime/lightgame/1.1.0/release.json": "ddd0894b196b729b9d1e592f204897655c34dc685c0397a6dee267c47d90c55e",
26
+ "runtime/lightgame/1.1.0/tooling/cli.mjs": "ff2a614679a8b2fc3847efe6d0d7194e8c87d8100eaff6b9168e4e3d050465c0",
27
+ "runtime/lightgame/1.1.0/tooling/project.d.mts": "d8272a81789094fed7090ae0cd07f597f62b2dca16834fd6b6e9ccea81968ec8",
28
+ "runtime/lightgame/1.1.0/tooling/project.mjs": "d1600f6a294fe0399d9d45d20cffb7416318b2bbff497c08142ce1a568c59db2",
29
+ "runtime/lightgame/1.1.0/tooling/vite.d.mts": "667e46bd016ef8ba368e53564b49b3fd571786c1672b3dbb14dc24833e0c293c",
30
+ "runtime/lightgame/1.1.0/tooling/vite.mjs": "58edccd64f94c442a313ce51f0698c081fa829ce18ed3173a6694c2a8619cd65",
31
+ "runtime/lightgame/1.1.0/tools/assets.d.mts": "50111c87e3c639383df7900c88540e91b564e560c4411b9d0292712de3712628",
32
+ "runtime/lightgame/1.1.0/tools/assets.mjs": "7608d8e7f0e7491bdd5b32581db77d7a622e08ee32a5cfb9ff992be252b32eda",
33
+ "runtime/lightgame/1.1.0/tools/astc.d.mts": "24416261df0bbfc9a22ec010eb6857bea6ee39703e6e62caf183c2adbe45cd86",
34
+ "runtime/lightgame/1.1.0/tools/astc.mjs": "661576a1d5e65d6079328c0e00348d2eeeae123b0310a8110edac4de92745a2f",
35
+ "scripts/config-export/assert-asset-wiring.mjs": "2d4903626e75b699e8ea9a53449f99498ae20d58f3132db9e0055eab514dee01",
36
+ "scripts/config-export/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
37
+ "scripts/config-export/sync-asset-controls.mjs": "ac2c05d52d34ff3f63cd61892db23c5ae3c622d5e6023d9a4b6f221bc4b8bc67",
38
+ "scripts/config-export.mjs": "2b36636fda0dac316129c354134a77e18d60a940210d870ae5ba18697c347d49",
39
+ "scripts/skill-modules/export-config/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
40
+ "scripts/skill-modules/export-config/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
41
+ "scripts/skill-modules/export-config/config.mjs": "ba99f6f54d0db4fc42d5431d0792c3f5e6981474faef3a0acf924a90b27158f8",
42
+ "scripts/skill-modules/export-config/installed.json": "fec5c3035b0e153b78765f7d97f27acded592d8fccd07cb728fe59d3559bcc94",
43
+ "scripts/skill-modules/export-config/project.d.mts": "5cf22fae66b199b92080d07ea45b686502d0605f677504177b029e0d615a5e9b",
44
+ "scripts/skill-modules/export-config/project.mjs": "f7a1417e019cee8efea68840ca768d414fa8106e67dd60d4f300465c9a58e541",
45
+ "scripts/skill-modules/export-config/vite.d.mts": "70918eaafd1b4518818533232fb9fa83e7b5df0da14927b5e2ad2288347bca23",
46
+ "scripts/skill-modules/export-config/vite.mjs": "6da929e7d7d59f928f468a0052e1f970b992032d461968b93b713583fdbbb86a",
47
+ "scripts/write-preview-ready.mjs": "9ceeb1ba6b4a686b633c5ad78db6422f38603e86d502b85281e4344bd39ce978",
48
+ "src/display/ui-stage.ts": "c0cfd56a244cc50fb82dc4ec013e12db45840150eef85b764a412ac1f25c7913",
49
+ "src/display/viewport.ts": "7b335bc6789a3f9bace1e55ff75849ca553da02414045bbbe646f42700f26653",
50
+ "src/main.ts": "95c615c4f8296b4c5c822e32be90888586051f99bf7b68ed79941bf4cefab454",
51
+ "src/platform.ts": "5b3d3d1132d25d1f8f08eb1edcc6719bc5f9737c75bd3050ef09dddd1e117ad9",
52
+ "src/scenes/LoadScene.ts": "6a5dfef1a33275e617983ec801a55875b09837824a9791567c42278eefe73929",
53
+ "src/scenes/PlayScene.ts": "9a31c41b3390420bd7ac732bd6a5624a82f37219f1b95ff1b23c4add627e0b4c",
54
+ "src/screenUi.ts": "f2493a628630c5649a48011ef33c72c62b50780697428c98b24e6a10f8b59bc3",
55
+ "src/style.css": "23c2ee94511737469d5645fdcee4fd177f92589ff6415ac5776bbe9bfc2dad70",
56
+ "tsconfig.json": "ff460bbe00552390594da800297aa4d1bcd0c21e07ebe2794d7fc94cf5debd58",
57
+ "unified_data_control_config.json": "713e928403c10e069dc2d43b74da0a5ca4323f616ee84917d7df8f2e9bc48b21",
58
+ "vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f"
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: craft-create
3
+ description: 在 ZCode 中使用 Craft 新建 2D、3D 游戏或玩法原型。Create a new 2D or 3D game with Craft. 当前目录已有 Craft 游戏、需要继续或恢复时使用项目 craft-project Skill 和 AGENTS.md。
4
+ ---
5
+
6
+ <!-- craft-mcp:bootstrap:v1 -->
7
+ # 创建 Craft 游戏
8
+
9
+ 创建前调用 `craft_update_check(intent:"create",request_key)`,自动检查已配置的 npm 渠道并安装兼容新版;与本次 prepare 复用 request_key。核对当前连接的实际 runtime 和 activation 状态。返回 pending_reconnect 时,新版已安装但当前连接保持旧版;先结束并 release 既有工作,按宿主可用方式重连,再用当前连接的 craft_game_info 核对版本、build_id 和 active_verified 后重试准备。安装器不保证宿主自动重连,不能用独立探测结果替代当前连接确认。不兼容时按诊断处理;离线时说明未确认最新。没有更新工具的旧连接先完成新版标准安装与连接切换。
10
+
11
+ 1. 当前目录已有 Craft 工程时,先读项目 `AGENTS.md` 并恢复该工程。创建新游戏时,调用 `craft_game_info`,核对服务的 workspace 和平台;游戏将创建在 `<workspace>/<name>`,不自动跟随宿主当前目录。
12
+ 2. 创建选项只展示 **2D / Phaser**(`js`)和 **3D / Three.js**(`js3d`)。用户已明确选择时直接沿用;尚未明确时结合玩法给出推荐和简短理由,使用宿主可用的提问交互收集选择,不可用时用文字询问。用户让你决定时按需求选择并说明,不重复确认已有选择。选定引擎后,使用英文小写、数字和连字符组成 name,调用 `craft_game_info({"engine":"js"})`(3D 使用 `js3d`)读取对应指南。
13
+ 3. 调用 `craft_game_prepare({"name":"项目名","engine":"js","mode":"create","request_key":"create-unique-key"})` 并轮询返回的任务至完成。核对 project、engine、context_binding 和 project_context,将 project 作为当前工作目录。读取返回的 `context.workflow`、`context.engine.entrypoint` 和 `context.engine.skills_index`,按索引 description 选择技能,并相对于 context.engine.directory 读取 entrypoint 与相关引用;上下文已放入项目。保存 work_id 和 context_revision,制作工具传入该 work_id;重试准备复用 request_key,不新建重复任务。
14
+ 4. 遵循当前引擎指南和用户需求完成游戏,将设计与实际开发进度保存在项目 SPEC 文件中,更新 `SPEC/PROGRESS.md`。通过 `craft_game_check`、`craft_game_review` 验收,再按 `craft_game_deliver` 返回命令启动并确认预览。
15
+
16
+ 完成或暂停制作时,等待后台任务结束,记录进度并调用 `craft_game_release(name,work_id)`;无需关闭 MCP。新一轮制作使用新的 request_key,已结束的请求不可复活。
17
+
18
+ MCP 未连接时,先在当前宿主连接 Craft 服务。新会话从项目 `AGENTS.md` 和 `craft-project` Skill 恢复,资源路径重新通过工具查询。
@@ -0,0 +1,27 @@
1
+ {
2
+ "schema": 1,
3
+ "config": "context-filters.json",
4
+ "config_sha256": "011ff0085f7c938e65f5cf182c042c2e9b93613b3497210bf24b132400c50b29",
5
+ "exclude": [
6
+ "contexts/*/js/skills/aigc-generate/**",
7
+ "contexts/*/js/skills/asset-search/**",
8
+ "contexts/*/js3d/skills/aigc-integration/**",
9
+ "contexts/*/js3d/skills/asset-search/**"
10
+ ],
11
+ "validation": {
12
+ "scope": "all",
13
+ "deferred_patterns": []
14
+ },
15
+ "targets": {
16
+ "zcode/js3d": {
17
+ "excluded_skills": [
18
+ "aigc-integration",
19
+ "asset-search"
20
+ ],
21
+ "excluded_files": [
22
+ "skills/aigc-integration/SKILL.md",
23
+ "skills/asset-search/SKILL.md"
24
+ ]
25
+ }
26
+ }
27
+ }