@craft_eco/craft-mcp 0.1.25 → 0.1.26

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 (620) hide show
  1. package/README.md +31 -10
  2. package/bin/craft-mcp.mjs +10 -8
  3. package/dist-server/game-workflow/bundle-files.mjs +43 -0
  4. package/dist-server/game-workflow/engines.mjs +13 -6
  5. package/dist-server/game-workflow/project-bundles.mjs +90 -0
  6. package/dist-server/game-workflow/project-context.mjs +91 -0
  7. package/dist-server/game-workflow/projects.mjs +16 -4
  8. package/dist-server/game-workflow/publication-materials.mjs +18 -20
  9. package/dist-server/game-workflow/publications.mjs +15 -17
  10. package/dist-server/game-workflow/publish-capture.mjs +21 -57
  11. package/dist-server/integrations/config.mjs +71 -0
  12. package/dist-server/integrations/files.mjs +54 -0
  13. package/dist-server/integrations/hosts.mjs +30 -0
  14. package/dist-server/integrations/install.mjs +86 -0
  15. package/dist-server/integrations/runtime.mjs +71 -0
  16. package/dist-server/mcp/publication-page.mjs +18 -50
  17. package/dist-server/mcp/publish-panel.mjs +28 -35
  18. package/dist-server/mcp/server.mjs +17 -14
  19. package/dist-server/preview/preview-launcher.mjs +9 -2
  20. package/dist-server/preview/preview-start.mjs +2 -2
  21. package/dist-server/upstream/publication-transport.mjs +19 -19
  22. package/package.json +10 -2
  23. package/resources/craft-create/SKILL.md +14 -0
  24. package/resources/craft-game-maker/SKILL.md +77 -71
  25. package/resources/craft-game-maker/js.md +10 -10
  26. package/resources/craft-game-maker/js3d.md +13 -13
  27. package/resources/game_visual_qa.mjs +1149 -1149
  28. package/resources/js/bundle.json +93 -0
  29. package/resources/js/context/AGENTS.md +15 -102
  30. package/resources/js/context/knowledge/AigcWiring.md +5 -196
  31. package/resources/js/context/knowledge/AssetUrl.md +5 -20
  32. package/resources/js/context/knowledge/Layout.md +7 -0
  33. package/resources/js/context/knowledge/Lifecycle.md +6 -27
  34. package/resources/js/context/skills/aigc-generate/SKILL.md +6 -141
  35. package/resources/js/context/skills/asset-search/SKILL.md +5 -62
  36. package/resources/js/context/skills/asset-search/references/resource-config.md +9 -0
  37. package/resources/js/context/skills/export-config/SKILL.md +7 -19
  38. package/resources/js/context/skills/export-config/scripts/export-config.mjs +3 -45
  39. package/resources/js/context/skills/index.json +30 -0
  40. package/resources/js/context/skills/visual-qa/SKILL.md +6 -28
  41. package/resources/js/project/README.md +4 -96
  42. package/resources/js/project/package.json +1 -2
  43. package/resources/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  44. package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +1 -37
  45. package/resources/js/project/scripts/config-export.mjs +10 -34
  46. package/resources/js3d/bundle.json +104 -0
  47. package/resources/js3d/context/AGENTS.md +16 -85
  48. package/resources/js3d/context/knowledge/AigcWiring.md +9 -0
  49. package/resources/js3d/context/knowledge/AssetUrl.md +9 -0
  50. package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +9 -67
  51. package/resources/js3d/context/knowledge/Layout.md +7 -0
  52. package/resources/js3d/context/knowledge/Runtime.md +5 -30
  53. package/resources/js3d/context/skills/aigc-integration/SKILL.md +6 -164
  54. package/resources/js3d/context/skills/asset-search/SKILL.md +5 -171
  55. package/resources/js3d/context/skills/asset-search/references/resource-config.md +6 -94
  56. package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +6 -82
  57. package/resources/js3d/context/skills/export-config/SKILL.md +7 -11
  58. package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +3 -55
  59. package/resources/js3d/context/skills/index.json +42 -0
  60. package/resources/js3d/context/skills/performance-audit/SKILL.md +8 -153
  61. package/resources/js3d/context/skills/visual-qa/SKILL.md +14 -0
  62. package/resources/js3d/project/README.md +4 -103
  63. package/resources/js3d/project/package.json +1 -2
  64. package/resources/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  65. package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-scene-assets.mjs +3 -28
  66. package/resources/js3d/project/scripts/config-export.mjs +12 -34
  67. package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts +8 -0
  68. package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts.map +1 -0
  69. package/vendor/agent-cli/dist/src/artifacts/build-failure.js +39 -0
  70. package/vendor/agent-cli/dist/src/artifacts/build-failure.js.map +1 -0
  71. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts +5 -0
  72. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts.map +1 -0
  73. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js +45 -0
  74. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js.map +1 -0
  75. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +1 -1
  76. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +2 -1
  77. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +1 -1
  78. package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +2 -0
  79. package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -1
  80. package/vendor/agent-cli/dist/src/artifacts/prepare.js +7 -2
  81. package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -1
  82. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +2 -0
  83. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -1
  84. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +27 -16
  85. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -1
  86. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts +14 -0
  87. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts.map +1 -0
  88. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js +119 -0
  89. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js.map +1 -0
  90. package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -1
  91. package/vendor/agent-cli/dist/src/artifacts/static.js +20 -6
  92. package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -1
  93. package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -1
  94. package/vendor/agent-cli/dist/src/cli/process-protocol.js +24 -2
  95. package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -1
  96. package/vendor/agent-cli/dist/src/cli/process-steering.d.ts +21 -0
  97. package/vendor/agent-cli/dist/src/cli/process-steering.d.ts.map +1 -0
  98. package/vendor/agent-cli/dist/src/cli/process-steering.js +66 -0
  99. package/vendor/agent-cli/dist/src/cli/process-steering.js.map +1 -0
  100. package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +1 -1
  101. package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +1 -1
  102. package/vendor/agent-cli/dist/src/index.d.ts +4 -1
  103. package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
  104. package/vendor/agent-cli/dist/src/index.js +3 -0
  105. package/vendor/agent-cli/dist/src/index.js.map +1 -1
  106. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +29 -1
  107. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -1
  108. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +18 -1
  109. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -1
  110. package/vendor/agent-cli/dist/src/session/client.d.ts +10 -0
  111. package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -1
  112. package/vendor/agent-cli/dist/src/session/client.js +15 -5
  113. package/vendor/agent-cli/dist/src/session/client.js.map +1 -1
  114. package/vendor/agent-cli/dist/src/session/link-session.d.ts +3 -0
  115. package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -1
  116. package/vendor/agent-cli/dist/src/session/link-session.js +14 -1
  117. package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -1
  118. package/vendor/agent-cli/dist/src/session/process-observability.d.ts +3 -0
  119. package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +1 -1
  120. package/vendor/agent-cli/dist/src/session/process-observability.js +11 -0
  121. package/vendor/agent-cli/dist/src/session/process-observability.js.map +1 -1
  122. package/vendor/agent-cli/dist/src/session/process-request.d.ts +3 -2
  123. package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -1
  124. package/vendor/agent-cli/dist/src/session/process-request.js +27 -9
  125. package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -1
  126. package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +1 -0
  127. package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -1
  128. package/vendor/agent-cli/dist/src/session/run-start-body.js +8 -3
  129. package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -1
  130. package/vendor/agent-cli/dist/src/session/run-steer.d.ts +42 -0
  131. package/vendor/agent-cli/dist/src/session/run-steer.d.ts.map +1 -0
  132. package/vendor/agent-cli/dist/src/session/run-steer.js +205 -0
  133. package/vendor/agent-cli/dist/src/session/run-steer.js.map +1 -0
  134. package/vendor/agent-cli/dist/src/shared/types.d.ts +6 -0
  135. package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -1
  136. package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts +21 -0
  137. package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts.map +1 -0
  138. package/vendor/agent-cli/dist/src/tools/context-program-receipt.js +102 -0
  139. package/vendor/agent-cli/dist/src/tools/context-program-receipt.js.map +1 -0
  140. package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -1
  141. package/vendor/agent-cli/dist/src/tools/context-program.js +3 -0
  142. package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -1
  143. package/resources/js/context/.role/AGENTS_DESIGN.md +0 -9
  144. package/resources/js/context/agents/aigc-asset.md +0 -168
  145. package/resources/js/context/knowledge/AigcEnabled.md +0 -49
  146. package/resources/js/context/knowledge/FrontendComponents.md +0 -17
  147. package/resources/js/context/knowledge/MobileAdaptation.md +0 -73
  148. package/resources/js/context/knowledge/MobileAdapted.md +0 -36
  149. package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
  150. package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -115
  151. package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -392
  152. package/resources/js/context/knowledge/PlatformServices.md +0 -190
  153. package/resources/js/context/knowledge/ProjectDisplayConfig.md +0 -35
  154. package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
  155. package/resources/js/context/knowledge/Ui.md +0 -11
  156. package/resources/js/context/knowledge/UiEditorCompat.md +0 -21
  157. package/resources/js/context/rules/MultiplayerCapability.md +0 -23
  158. package/resources/js/context/rules/MultiplayerRoomEntryUX.md +0 -63
  159. package/resources/js/context/rules/PlatformBoundaryModules.md +0 -44
  160. package/resources/js/context/rules/preview_ready.md +0 -8
  161. package/resources/js/context/skills/aigc-generate/knowledge/audio.md +0 -39
  162. package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +0 -26
  163. package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +0 -132
  164. package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +0 -53
  165. package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +0 -52
  166. package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +0 -191
  167. package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +0 -55
  168. package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +0 -62
  169. package/resources/js/context/skills/asset-search/scripts/config.json +0 -5
  170. package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +0 -125
  171. package/resources/js/context/skills/asset-search/scripts/search.mjs +0 -760
  172. package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -657
  173. package/resources/js/context/skills/asset-search/strategies/anim2d.md +0 -42
  174. package/resources/js/context/skills/asset-search/strategies/audio.md +0 -34
  175. package/resources/js/context/skills/asset-search/strategies/effect2d.md +0 -31
  176. package/resources/js/context/skills/asset-search/strategies/texture-prop.md +0 -22
  177. package/resources/js/context/skills/asset-search/strategies/ui-common.md +0 -40
  178. package/resources/js/context/skills/asset-search/strategies/ui-style.md +0 -28
  179. package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
  180. package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +0 -93
  181. package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +0 -7
  182. package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +0 -22
  183. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +0 -5
  184. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +0 -208
  185. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +0 -37
  186. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +0 -227
  187. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +0 -31
  188. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +0 -272
  189. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.d.mts +0 -79
  190. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.mjs +0 -29
  191. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/release.json +0 -22
  192. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/cli.mjs +0 -16
  193. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.d.mts +0 -4
  194. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.mjs +0 -50
  195. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +0 -3
  196. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.mjs +0 -72
  197. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.d.mts +0 -24
  198. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.mjs +0 -2
  199. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.d.mts +0 -10
  200. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.mjs +0 -1
  201. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +0 -37
  202. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +0 -50
  203. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/cli.mjs +0 -20
  204. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.d.mts +0 -19
  205. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.mjs +0 -1
  206. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/installed.json +0 -6
  207. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.d.mts +0 -6
  208. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.mjs +0 -77
  209. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.d.mts +0 -2
  210. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.mjs +0 -34
  211. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +0 -156
  212. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +0 -249
  213. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +0 -87
  214. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +0 -2
  215. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +0 -185
  216. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +0 -294
  217. package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +0 -20
  218. package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +0 -5
  219. package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +0 -159
  220. package/resources/js/context/skills/mobile-adaptation/SKILL.md +0 -277
  221. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -50
  222. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -862
  223. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
  224. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
  225. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
  226. package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -135
  227. package/resources/js/context/skills/mobile-adaptation/references/input-config.md +0 -342
  228. package/resources/js/context/skills/mobile-adaptation/references/verification.md +0 -140
  229. package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +0 -11
  230. package/resources/js/context/skills/mobile-compat-qa/SKILL.md +0 -53
  231. package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
  232. package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
  233. package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
  234. package/resources/js/context/skills/optimization-suggestions/SKILL.md +0 -89
  235. package/resources/js/context/skills/platform-services/SKILL.md +0 -101
  236. package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
  237. package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
  238. package/resources/js/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
  239. package/resources/js/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
  240. package/resources/js/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
  241. package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
  242. package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
  243. package/resources/js/context/skills/platform-services/assets/modules/log.ts +0 -35
  244. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
  245. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
  246. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
  247. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
  248. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
  249. package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
  250. package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
  251. package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +0 -49
  252. package/resources/js/context/skills/platform-services/assets/modules/save.mjs +0 -1
  253. package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
  254. package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
  255. package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
  256. package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
  257. package/resources/js/context/skills/platform-services/references/api_reference.md +0 -18
  258. package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
  259. package/resources/js/context/skills/platform-services/scripts/install.mjs +0 -148
  260. package/resources/js/context/skills/resolution-adaptation/SKILL.md +0 -47
  261. package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
  262. package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -249
  263. package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +0 -98
  264. package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -200
  265. package/resources/js/context/skills/resolution-adaptation/references/audit.md +0 -31
  266. package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
  267. package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
  268. package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
  269. package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
  270. package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
  271. package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +0 -55
  272. package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
  273. package/resources/js/context/skills/scene-editor-compat/SKILL.md +0 -94
  274. package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +0 -13
  275. package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +0 -6
  276. package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +0 -25
  277. package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +0 -18
  278. package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +0 -7
  279. package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +0 -42
  280. package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +0 -144
  281. package/resources/js/context/skills/scene-editor-compat/docs/contract.md +0 -330
  282. package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +0 -64
  283. package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +0 -28
  284. package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +0 -47
  285. package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +0 -64
  286. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +0 -38
  287. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +0 -9
  288. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +0 -59
  289. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +0 -30
  290. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +0 -66
  291. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +0 -20
  292. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +0 -26
  293. package/resources/js/context/skills/scene-editor-compat/references/contract.md +0 -73
  294. package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +0 -162
  295. package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +0 -853
  296. package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +0 -173
  297. package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -427
  298. package/resources/js/context/skills/scene-editor-compat/version.json +0 -1
  299. package/resources/js/context/skills/ui-editor-compat/SKILL.md +0 -48
  300. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
  301. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -74
  302. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
  303. package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
  304. package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
  305. package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
  306. package/resources/js/context/skills/ui-editor-compat/references/contract.md +0 -132
  307. package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
  308. package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
  309. package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
  310. package/resources/js/context/skills/version-update/SKILL.md +0 -192
  311. package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
  312. package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
  313. package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
  314. package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
  315. package/resources/js/context/version/version.json +0 -1
  316. package/resources/js/project/SPEC/assist/.gitkeep +0 -0
  317. package/resources/js/project/SPEC/guide/.gitkeep +0 -0
  318. package/resources/js/project/SPEC/plan/.gitkeep +0 -0
  319. package/resources/js/project/SPEC/readme.md +0 -6
  320. package/resources/js/project/SPEC/res/.gitkeep +0 -0
  321. package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
  322. package/resources/js/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
  323. package/resources/js/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
  324. package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
  325. package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
  326. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
  327. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
  328. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
  329. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
  330. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -29
  331. package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
  332. package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
  333. package/resources/js/project/runtime/lightgame/1.0.0/release.json +0 -37
  334. package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
  335. package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
  336. package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
  337. package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
  338. package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
  339. package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
  340. package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
  341. package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
  342. package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
  343. package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
  344. package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
  345. package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
  346. package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
  347. package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
  348. package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
  349. package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
  350. package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
  351. package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
  352. package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
  353. package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
  354. package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
  355. package/resources/js/project/scripts/refresh-runtime.mjs +0 -50
  356. package/resources/js/project/vendor/core-manager-js/package.json +0 -33
  357. package/resources/js/project/vendor/core-manager-js/src/.versions.json +0 -42
  358. package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +0 -41
  359. package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +0 -93
  360. package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +0 -203
  361. package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +0 -106
  362. package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +0 -25
  363. package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +0 -21
  364. package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +0 -65
  365. package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +0 -340
  366. package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +0 -87
  367. package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +0 -92
  368. package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +0 -271
  369. package/resources/js/project/vendor/core-manager-js/src/index.ts +0 -31
  370. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +0 -81
  371. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +0 -43
  372. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +0 -32
  373. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +0 -141
  374. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +0 -20
  375. package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +0 -183
  376. package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +0 -304
  377. package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +0 -351
  378. package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +0 -180
  379. package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +0 -13
  380. package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +0 -14
  381. package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +0 -68
  382. package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +0 -433
  383. package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +0 -118
  384. package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +0 -444
  385. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +0 -485
  386. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +0 -66
  387. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +0 -149
  388. package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +0 -9
  389. package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +0 -29
  390. package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +0 -88
  391. package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +0 -122
  392. package/resources/js/project/vendor/core-manager-js/src/runtime.ts +0 -24
  393. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +0 -318
  394. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +0 -151
  395. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +0 -235
  396. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +0 -98
  397. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +0 -94
  398. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +0 -209
  399. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +0 -106
  400. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +0 -341
  401. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +0 -68
  402. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +0 -236
  403. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +0 -22
  404. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +0 -29
  405. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +0 -197
  406. package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +0 -9
  407. package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +0 -555
  408. package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +0 -112
  409. package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +0 -178
  410. package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +0 -246
  411. package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +0 -139
  412. package/resources/js/project/vendor/core-manager-js/tsconfig.json +0 -15
  413. package/resources/js/project/vendor/run.sh +0 -4
  414. package/resources/js/project/version/craft_feature_version.json +0 -42
  415. package/resources/js/project/version/project_feature_version.json +0 -11
  416. package/resources/js3d/context/.role/AGENTS_DESIGN.md +0 -9
  417. package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +0 -75
  418. package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +0 -42
  419. package/resources/js3d/context/knowledge/FrontendComponents.md +0 -19
  420. package/resources/js3d/context/knowledge/MobileAdaptation.md +0 -73
  421. package/resources/js3d/context/knowledge/MobileAdapted.md +0 -36
  422. package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
  423. package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -117
  424. package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -430
  425. package/resources/js3d/context/knowledge/PlatformServices.md +0 -190
  426. package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +0 -35
  427. package/resources/js3d/context/knowledge/SceneEditorCompat.md +0 -35
  428. package/resources/js3d/context/knowledge/StepByStep.md +0 -21
  429. package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
  430. package/resources/js3d/context/knowledge/UiEditorCompat.md +0 -21
  431. package/resources/js3d/context/rules/MultiplayerCapability.md +0 -27
  432. package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +0 -63
  433. package/resources/js3d/context/rules/PlatformBoundaryModules.md +0 -44
  434. package/resources/js3d/context/rules/preview_ready.md +0 -8
  435. package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +0 -70
  436. package/resources/js3d/context/skills/aigc-integration/callback.md +0 -77
  437. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +0 -23
  438. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +0 -38
  439. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +0 -72
  440. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +0 -33
  441. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +0 -36
  442. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +0 -37
  443. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +0 -35
  444. package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +0 -58
  445. package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +0 -62
  446. package/resources/js3d/context/skills/asset-search/scripts/config.json +0 -235
  447. package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +0 -905
  448. package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +0 -79
  449. package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +0 -74
  450. package/resources/js3d/context/skills/asset-search/scripts/search.mjs +0 -637
  451. package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -667
  452. package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +0 -42
  453. package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +0 -31
  454. package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +0 -89
  455. package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +0 -143
  456. package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +0 -90
  457. package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
  458. package/resources/js3d/context/skills/game-art-style/SKILL.md +0 -60
  459. package/resources/js3d/context/skills/game-art-style/assets/previews/cartoon.png +0 -0
  460. package/resources/js3d/context/skills/game-art-style/assets/previews/comic.png +0 -0
  461. package/resources/js3d/context/skills/game-art-style/assets/previews/cozy.png +0 -0
  462. package/resources/js3d/context/skills/game-art-style/assets/previews/cyber.png +0 -0
  463. package/resources/js3d/context/skills/game-art-style/assets/previews/horror.png +0 -0
  464. package/resources/js3d/context/skills/game-art-style/assets/previews/lowpoly.png +0 -0
  465. package/resources/js3d/context/skills/game-art-style/assets/previews/paper.png +0 -0
  466. package/resources/js3d/context/skills/game-art-style/assets/previews/voxel.png +0 -0
  467. package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +0 -38
  468. package/resources/js3d/context/skills/game-art-style/references/construction.md +0 -111
  469. package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +0 -105
  470. package/resources/js3d/context/skills/game-art-style/references/sources.md +0 -25
  471. package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +0 -175
  472. package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +0 -168
  473. package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +0 -191
  474. package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +0 -165
  475. package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +0 -173
  476. package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +0 -185
  477. package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +0 -181
  478. package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +0 -189
  479. package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +0 -88
  480. package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +0 -301
  481. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -104
  482. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -933
  483. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
  484. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
  485. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
  486. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -257
  487. package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +0 -342
  488. package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +0 -140
  489. package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +0 -11
  490. package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +0 -53
  491. package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
  492. package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +0 -10
  493. package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
  494. package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
  495. package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +0 -74
  496. package/resources/js3d/context/skills/performance-audit/references/case-notes.md +0 -93
  497. package/resources/js3d/context/skills/performance-audit/references/rules.md +0 -183
  498. package/resources/js3d/context/skills/platform-services/SKILL.md +0 -101
  499. package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
  500. package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
  501. package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
  502. package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
  503. package/resources/js3d/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
  504. package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
  505. package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
  506. package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +0 -35
  507. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
  508. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
  509. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
  510. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
  511. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
  512. package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
  513. package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
  514. package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +0 -49
  515. package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +0 -1
  516. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
  517. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
  518. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
  519. package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
  520. package/resources/js3d/context/skills/platform-services/references/api_reference.md +0 -18
  521. package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
  522. package/resources/js3d/context/skills/platform-services/scripts/install.mjs +0 -148
  523. package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +0 -46
  524. package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
  525. package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -239
  526. package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +0 -129
  527. package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -188
  528. package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +0 -31
  529. package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
  530. package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
  531. package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
  532. package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
  533. package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
  534. package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
  535. package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +0 -599
  536. package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +0 -141
  537. package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +0 -92
  538. package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +0 -125
  539. package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +0 -113
  540. package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -1187
  541. package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +0 -53
  542. package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +0 -4
  543. package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +0 -94
  544. package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +0 -50
  545. package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +0 -105
  546. package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +0 -147
  547. package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +0 -79
  548. package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +0 -56
  549. package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +0 -51
  550. package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +0 -55
  551. package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +0 -78
  552. package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +0 -84
  553. package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +0 -120
  554. package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +0 -4
  555. package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +0 -238
  556. package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +0 -59
  557. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
  558. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -61
  559. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
  560. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
  561. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
  562. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
  563. package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +0 -110
  564. package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
  565. package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
  566. package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
  567. package/resources/js3d/context/skills/version-update/SKILL.md +0 -191
  568. package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
  569. package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
  570. package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
  571. package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
  572. package/resources/js3d/context/version/version.json +0 -1
  573. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
  574. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
  575. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
  576. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
  577. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
  578. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
  579. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
  580. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
  581. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -30
  582. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
  583. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
  584. package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +0 -39
  585. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
  586. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
  587. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
  588. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
  589. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -7
  590. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
  591. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
  592. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
  593. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
  594. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
  595. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
  596. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
  597. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
  598. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +0 -26
  599. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +0 -351
  600. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
  601. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
  602. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
  603. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
  604. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
  605. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
  606. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
  607. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
  608. package/resources/js3d/project/scripts/refresh-runtime.mjs +0 -50
  609. package/resources/js3d/project/vendor/core-manager-three/package.json +0 -12
  610. package/resources/js3d/project/vendor/core-manager-three/src/index.ts +0 -2
  611. package/resources/js3d/project/vendor/run.sh +0 -4
  612. package/resources/js3d/project/version/craft_feature_version.json +0 -42
  613. package/resources/js3d/project/version/project_feature_version.json +0 -11
  614. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +0 -7
  615. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +0 -1
  616. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +0 -145
  617. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +0 -1
  618. /package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
  619. /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
  620. /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +0 -0
@@ -1,53 +0,0 @@
1
- ---
2
- name: mobile-compat-qa
3
- description: >
4
- 根据 JS/JS3D 游戏的移动端 QA 报告或具体机型故障定位并修复遮挡、超框、触控失效、音频、暂停恢复、卡顿和启动黑白屏及回归问题。
5
- 复用现有屏幕与输入适配机制;普通新游戏制作不因此启动完整兼容性审计。
6
- ---
7
-
8
- # 移动端兼容性 QA 修复
9
-
10
- 目标是把当前 QA 问题改到可验证状态。保留现有工程架构与平台契约,不把兼容性修复变成 SDK 升级、显示模型迁移或重写游戏。
11
-
12
- 先按 `${CRAFT_CONTEXT_DIR}/knowledge/MobileAdapted.md` 读取适配状态。具体移动端问题可触发定向修复;局部 QA 通过不能把尚未完成整体适配的项目标为 `mobile_adapted: true`。修复后的状态更新遵守该文档。
13
-
14
- ## 先建立当前问题范围
15
-
16
- - 优先读取报告文字、状态、版本和截图位置索引;大型表格不批量解码图片。只为尚不明确的遮挡、裁切、偏移等问题查看关联图片;视觉判读遵守当前引擎的工具流程。
17
- - 每条待修项保留来源定位(sheet/行或原问题 ID)、游戏/构建版本、机型与系统、宿主及内核版本(有则记录)、复现步骤、预期/实际行为。未知项标为未知;仍可先做不依赖它的代码定位。
18
- - 分开读取原始测试、修复状态、回归结果和新增问题。“已修复”不等于回归通过;优先处理回归残留/新增问题,不把历史已通过项重新列为待修。
19
- - “新增问题”仅表示报告在回归中记录的问题,未经前后版本对照不认定由本次修改引入。不同版本的结果不能混为当前状态。
20
- - 游戏×机型记录数、描述条数和去重后的缺陷数分别统计。保留拆分与合并依据;同机型多个问题不计成多台机型。
21
- - 先处理不能进入、不能操作和流程阻断,再处理遮挡/超框与视觉细节;用户指定顺序优先。
22
-
23
- ## 按归属复用已有机制
24
-
25
- | 症状 | 先看什么 | 修改归属 |
26
- |---|---|---|
27
- | 刘海/状态栏/宿主按钮遮挡、转屏错位、弹窗超框 | 容器实际区域、stage 缩放、当前布局与命中边界 | 加载 `resolution-adaptation`,读 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/device-safe-area.md`;复用 display/UI owner |
28
- | 摇杆/按钮无响应、松手残留、触点冲突 | 已有 input 映射、触点仲裁、面板显隐与生命周期 | 加载 `mobile-adaptation`;不另建全屏监听或第二套输入 |
29
- | 加载/首次进入黑白屏、特定设备失败 | 首个错误、失败资源、启动阶段、内核和渲染能力 | 读 `${CRAFT_SKILL_DIR}/references/startup-diagnosis.md`,按证据选择修复 |
30
- | 引导层级/缺步骤、设置重叠、关键玩法区域不可见 | 具体 Scene/Widget、状态机、布局锚点与实际命中 | 读 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/game-ui-occlusion.md`;修游戏本身,不期待通用适配自动修好 |
31
- | 首次无声、播放拒绝、静音失效或恢复叠播 | 实际音频实现、解锁与当前播放状态 | 读 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/web-audio.md`,复用 Phaser 能力,不以音频阻塞 ready |
32
- | 后台/锁屏恢复异常、重入残留或运行中断 | 可观察生命周期、时间基准、owner 与清理 | 读 `${CRAFT_SKILL_DIR}/references/web-lifecycle.md`,不假定宿主有活跃通知 |
33
- | 卡顿、发热、资源压力或明确性能目标 | 目标设备同场景数据、资源与绘制成本 | 按需读 `${CRAFT_SKILL_DIR}/references/web-performance.md`,不自动降低画质或修改公共 renderer |
34
- | 软键盘与表单诉求 | JS2D 根规则禁止自由文本输入 | 无合规场景标不适用;不为适配新增输入框、自定义命名或自由打字 |
35
- | 创建房间、身份或联机失败 | 实际服务响应、环境和已有接线 | 按当前工程的平台服务规则定位;无服务端访问时记录阻塞证据,不伪造联机成功 |
36
-
37
- 先读实际入口、依赖与相关代码,确认是否已有 `src/display/`、UI stage 和输入层。旧项目保持已有结构;修局部问题不自动安装新模板、修改 runtime 清单或绕过构建校验。没有原说明引用的脚本时,不声称已经执行扫描或复制不存在的资产。
38
-
39
- ## 修改与验证
40
-
41
- 1. 把故障变成可观察判据,例如“关闭按钮完整可见且点击后回到游戏”,而非“适配正常”。能复现则保留修改前证据;不能复现时区分 QA 已观察事实与代码推断。
42
- 2. 按根因做最小修复。共性问题集中在已有布局/输入入口处理,业务问题留在业务 owner;不要用隐藏溢出、统一缩小字号或整屏内缩掩盖问题。
43
- 3. 复用项目已有构建和验证命令,遵守当前引擎的交付要求。布局变化使用已有比例审计,触屏变化使用已有输入验收;这些结果不替代宿主/真机回归。
44
- 4. 定向复验原步骤、受影响的相邻页面,以及转屏/折叠或暂停恢复等有关状态变化。核对视觉、点击命中和核心玩法;不重复跑与本次变更无关的全量矩阵。
45
- 5. 发布视图清除非需求的 debug/GM/热区高亮/日志覆盖层和无关控件;保留诊断能力。避免全局删除 focus 样式,键盘焦点反馈应仍可用。
46
-
47
- ## 交付给 QA
48
-
49
- 在现有问题记录或回复中逐项给出:来源 ID、修复位置/原因、被验证的游戏版本、实际机型/系统及浏览器或 App/宿主与版本、可取得的内核版本、屏幕/容器尺寸及相关显示状态、覆盖页面与操作、观察结果及证据、未验证或受阻范围。未知项标未知;已有记录可复用,不强制另建报告。
50
-
51
- 按实际渠道及本次改动,从 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 选择宿主、内部 UI、音频、生命周期和性能等相关补验;不把桌面模拟扩大为真机结果,不为条件项新增功能。与问题相关时补网络/缓存、冷/热启动、采样时长与重复次数;最低支持版本和热区/性能阈值依据已确认目标,不设统一次数或时长门槛。
52
-
53
- 状态分开写“修改完成”“本地验证通过”“QA 回归通过”;最后一项只依据对应版本的 QA 反馈。人类监督提供的验收口径和真机结果是有效证据,不以缺少自动化结果否定它,也不将其扩大为全部设备/所有问题通过。未验证、工具受阻、平台待处理均保留,不写成通过。
@@ -1,23 +0,0 @@
1
- # 启动与运行失败定位
2
-
3
- 只在启动/黑白屏/卡加载或特定设备运行失败时读本页。先定位项目实际版本,不套用历史引擎版本或浏览器阈值。
4
-
5
- ## 保留现有生命周期
6
-
7
- - 沿现有入口、预览桥和错误上报接线补充诊断,不创建第二个 renderer、游戏循环或预览桥,不改平台 ready 的约定。
8
- - **平台 ready 与业务可交互是不同信号**:例如 JS 模板加载层第一帧已调用平台 `markReady`。保留它;需要诊断时另外记录资源加载完成、玩法初始化、首个可交互画面等阶段,不把平台 ready 推迟到业务完成或云服务返回。
9
- - 优先复用已有错误/资源日志。只有现有入口无法捕获的失败才加轻量、按需开启的业务诊断;记录阶段、耗时、首个错误和相关失败 URL,玩家界面显示简短失败/重试提示。
10
- - 若主模块解析前就失败,诊断代码也不能依赖该模块已执行;按目标内核选能独立运行的最小入口。超时提示只是线索,不证明根因;记录阶段,避免固定短超时误判慢网。
11
-
12
- ## 按证据区分故障
13
-
14
- | 证据 | 检查与处理 |
15
- |---|---|
16
- | 首个脚本解析错误、某语法不支持 | 确认实际 QQ/WebView/浏览器内核和报错文件;区分业务 bundle、public 原样脚本、外部引擎。构建 target 只约束参与转译的代码,语法转译不补齐缺失 Web API |
17
- | 资源 404/CORS/解码失败、一直等待加载 | 核对真实请求、部署路径大小写、配置导出、资源错误分支和重试;不绕过平台 URL/资产登记机制 |
18
- | renderer 创建失败、WebGL 能力不满足 | 查询实际引擎要求和设备能力;降低构建 target 不能给设备增加 WebGL2。平台引擎不可改时提供可读失败信息和待平台处理证据 |
19
- | 纹理失败、上下文丢失、内存压力 | 根据设备上限、资源尺寸及日志选择压缩/缩图、降低像素比或资源释放;不把固定 4096 阈值当作所有设备的根因 |
20
- | 已显示首屏,点开始/切场景/结算才黑屏 | 从该动作的异常、状态转换、场景销毁/资源与相机检查;不优先修改全局构建目标 |
21
- | 页面可交互但联机失败 | 检查平台服务响应和接线,与渲染/布局故障分开记录 |
22
-
23
- 修复后针对报错路径复验构建产物;源码没有高版本语法不代表外部脚本也兼容。无法得到内核或真机证据时给出已查证部分及下一步所需信息,不宣称黑屏已根治。
@@ -1,20 +0,0 @@
1
- # 移动 Web 生命周期与运行中断
2
-
3
- 实现或排查暂停、后台恢复、重入、资源失败及适用的 WebGL 中断时读取。Phaser Scene、输入和资源由当前 owner 管理,优先复用引擎与现有 dispose;不新增统一恢复 SDK 或第二套全局状态机。
4
-
5
- ## 暂停、恢复与时间
6
-
7
- - 页面隐藏、业务暂停和宿主覆盖分别核对。对已有可观察路径,沿当前 owner 释放输入、调整计时和音频;恢复时沿引擎机制重建时间基准,避免一次补算整个后台间隔或堆积更新。
8
- - 沿游戏已有时间步推进移动和动画;联机、离线收益等有意推进时间的玩法遵循原约定,不一律停止或清零全部状态,不照搬外部平台的固定 delta 上限。
9
- - `blur` 不等于页面隐藏;宿主仅用 CSS 隐藏 iframe 不保证触发其 `visibilitychange`。没有活跃通知时记录宿主缺口,不编造回调或宣称跨层自动暂停已经实现。
10
- - 音频启动、静音与恢复职责见 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/web-audio.md`,不在此另接音频系统。
11
-
12
- ## 重入、清理与中断
13
-
14
- - 重开、切场景、重入和销毁时核对 RAF、定时器、监听、音轨与资源引用,避免多个循环、BGM 叠播或持续增长。使用已有输入显隐/取消及 dispose,清理属于当前 owner 的资源,不误停其它业务。
15
- - 慢加载、失败、重试或替代路径复用 [startup-diagnosis.md](startup-diagnosis.md) 的阶段定位和错误记录;不每帧重试,不用短固定超时武断判失败。
16
- - WebGL 项目核对运行中 context 丢失后的引擎恢复、资源与业务状态;无法安全恢复时提供可读提示和可控重试,不只隐藏错误或无限重建 renderer。Canvas 项目不为此改成 WebGL。
17
- - 仅对已使用且平台允许的设备能力,核对拒绝、不支持、暂时中断及替代操作。授权成功不等于硬件一定可用,授权不阻塞首帧;普通游戏不因此新增摄像头、麦克风、倾斜或震动。
18
- - 保留 `${CRAFT_CONTEXT_DIR}/knowledge/Lifecycle.md` 的加载、预览、截图及 `markReady` 时序,不把 ready 延后到全部业务或异步服务完成。
19
-
20
- 验收统一在 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 选择相关场景;缺少宿主通知或测试环境时保留未验证范围。
@@ -1,19 +0,0 @@
1
- # 移动 Web 性能诊断
2
-
3
- 仅在具体卡顿、发热、资源压力或明确性能目标下读取。复用项目已有 profile/日志入口,不把普通制作变成完整审计,不建设公共采集服务或动态画质系统。
4
-
5
- ## 先固定比较条件
6
-
7
- - 记录游戏版本、真实机型/系统/浏览器或宿主、场景与操作、网络/缓存、重复次数和采样时长。前后版本使用可比较的场景与方法;取不到的版本或指标标未知。
8
- - 分开记录逻辑尺寸、最终 CSS 区域、实际 drawing buffer、DPR 和画质。短边 1080 是逻辑布局约定,不能直接推导 GPU 像素预算或运行成本。
9
- - 条件具备时记录帧间隔中位数、P95、长帧判定阈值和采样范围,不只给平均 FPS;区分 RAF/引擎回调、渲染提交与屏幕实际呈现。缺数据不编造 GPU 时间、内存或能耗。
10
- - 平台 ready、资源完成和首个有效输入的可交互时间分别记录,不为测量改变 ready 契约。包体/上传限制不能代替运行内存或显存结论。
11
-
12
- ## 按证据选择游戏级改动
13
-
14
- - 检查重复下载、解码、创建及多重循环/监听,纹理、同屏对象与粒子数量,资源释放和持续运行中的增长。
15
- - 移动和动画沿既有时间步;DOM 高频动效避免反复布局。加载按引擎和场景安排,不照搬“一次载完全部素材”,不打乱已有加载与首帧时序。
16
- - 先说明瓶颈假设,再选有数据支持的候选;修改后同时回归玩法、画质、输入、截图与资源生命周期。无测量只陈述候选,不宣称性能已改善。
17
- - 沿用项目已有 DPR 上限和资源分级;60/30 FPS、纹理上限、像素预算及持续时长须有明确目标,不设新的全平台硬值,不把外部平台的 delta 上限当帧率或执行耗时预算。
18
-
19
- 实际环境与结果写入现有 QA 记录。持续/重复验证按故障安排,不把“恢复 10 次、运行 10 分钟”设为所有任务的门槛,不通过关闭截图能力规避问题。
@@ -1,89 +0,0 @@
1
- ---
2
- name: optimization-suggestions
3
- description: 结合当前 JS2D 游戏工程,生成 3 条可执行的优化/迭代建议,输出为 <inspiration> 卡片。仅当用户本轮明确索要灵感/优化建议,或上下文含二创冷启动标记时,由主 Agent 起 subagent 执行。首轮制作完成不得自动调用。
4
- ---
5
-
6
- # Optimization Suggestions
7
-
8
- 产出 **3 条**可执行建议,以 `<inspiration>` 标签输出。主 Agent 起 subagent 执行,避免污染主上下文。
9
-
10
- ## 调用边界
11
-
12
- 仅当主 Agent 判定本轮命中以下之一时调起:
13
-
14
- 1. 用户本轮明确索要灵感 / 优化建议 / 迭代建议(点击提示条或自己打字)。交付收尾、讲解「游戏有什么」、制作完成、构建通过,都不算。
15
- 2. 本轮上下文含 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]`(二创冷启动)。
16
-
17
- 首轮制作 / `[team-promote]` / 确认开工后自动出卡禁止。
18
-
19
- ## 执行(subagent)
20
-
21
- ### 0. 产品共识
22
-
23
- - **场景 B**:本轮有 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]` → 标记块即共识,不读文件。
24
- - **场景 A**:读 `${CRAFT_PROJECT_DIR}/SPEC/plan/游戏设计.md`。缺失 → 不输出 `<inspiration>`,结束。
25
-
26
- ### 1. 读上下文
27
-
28
- 必读:场景 A 读 `游戏设计.md`;场景 B 读本轮标记块(不是文件)。
29
-
30
- 禁读:`src/**`、`configs/**`、除 `游戏设计.md` 外的 SPEC。
31
-
32
- ### 2. 生成
33
-
34
- 按当前场景 3 个维度各生成 1–2 条候选,按性价比 → 缺口 → 意图匹配 → 多样性取 Top 3。命中「引擎能力边界」或「已有内容」的剔除递补。
35
-
36
- 场景 A 先从「首轮欠账」取,取不满再自由发挥。
37
-
38
- ## 建议维度
39
-
40
- | 场景 | 维度 | 产出方向 |
41
- |------|------|---------|
42
- | A 新建 | 功能与体验(feel) | 手感 / 反馈 / 特效 / 引导 / 打击感 |
43
- | A 新建 | 数值平衡(balance) | 难度曲线 / 经济 / 成长节奏 |
44
- | A 新建 | 玩法扩展(content) | 成就 / 本局最佳记录 / 关卡变种 / 局外养成 |
45
- | B 二创 | 玩法变体(gameplay) | 核心机制变形、混搭其他类型 |
46
- | B 二创 | 内容扩展(content) | 加关卡 / 角色 / 剧情 / 模式 |
47
- | B 二创 | 机制创新(system) | 在原框架加入新机制、新规则 |
48
-
49
- ## 首轮欠账(场景 A)
50
-
51
- | 欠账 | 可推的具体形态 | 维度 |
52
- |---|---|---|
53
- | 反馈从简 | 击杀时短震屏;命中迸火星;重击 0.1 秒顿帧 | `feel` |
54
- | 关卡目标 | 分阶段目标;进度条 | `content` |
55
- | 变体最少 | 加一种行为不同的敌人;给道具加临时增益 | `content` |
56
- | 无教学 | 开局三步操作提示 | `feel` |
57
- | 无局外 | 通关解锁新外观;累计成就 | `content` |
58
- | 单轴难度 | 在已有递进之外再加一轴(如已有波次,再加敌人变快) | `balance` |
59
-
60
- ## 已有内容(禁止推荐)
61
-
62
- 加载界面(含百分比)与主题 BGM 首轮已有。单一难度递进轴若 `游戏设计.md` 已写,不要再推「随时间加快」这类同轴建议。拿不准以 `游戏设计.md` 为准。
63
-
64
- ## 生成约束
65
-
66
- 1. 固定 3 条。`text` ≤ 15 字;`prompt` ≤ 50 字。
67
- 2. 面向用户,禁止暴露代码 / 文件名 / 技术细节。对外称 js2d 引擎。
68
- 3. 每条 `dimension` 为 `feel` / `balance` / `content` / `gameplay` / `system` 之一。
69
-
70
- ## 引擎能力边界(禁止推荐)
71
-
72
- - 网络多人 / 联机 / PVP
73
- - 好友系统
74
- - 玩家自定义文本输入(输入框 / 自由打字 / 自定义命名)
75
- - 新增 npm 包 / 外部 JS 库
76
- - 后端服务 / 外部 API Key / 真实账号体系
77
- - 用户额外安装软件
78
-
79
- ## 输出
80
-
81
- 整个回复只输出该标签,标签外不加解释:
82
-
83
- ```
84
- <inspiration>{"title":"下一步你可以试试","suggestions":[{"id":"s1","text":"击杀时震屏迸火星","prompt":"击杀敌人时加入短暂震屏和火星迸射,强化打击感","dimension":"feel"},{"id":"s2","text":"加一种远程敌人","prompt":"加入一种会隔空射击的敌人,逼玩家走位躲避","dimension":"content"},{"id":"s3","text":"后期敌人也变快","prompt":"在现有波次递进之外,让敌人移动速度也随进度提高","dimension":"balance"}]}</inspiration>
85
- ```
86
-
87
- ## 失败降级
88
-
89
- `游戏设计.md` 缺失且非场景 B:不输出标签。完全无法生成有效建议:不输出标签。
@@ -1,101 +0,0 @@
1
- ---
2
- name: platform-services
3
- description: 为 JS/JS3D 游戏按需接入平台身份、排行榜、云存档或多人同步中的一项。只装这次要用的模块,不为普通预览、截图或本地游戏默认安装。
4
- ---
5
-
6
- # Platform Services
7
-
8
- ## 安装
9
-
10
- 在 `${CRAFT_PROJECT_DIR}` 中检查已使用的服务。已有 `1.0.0` 工程保持原服务,除非明确迁移;禁止同一工程混用新旧服务实现。给 `1.0.0` 工程新增联机、以及 `src/subsystem/multiplayerManager/` 旧副本的处理,见 `${CRAFT_CONTEXT_DIR}/rules/PlatformBoundaryModules.md`。
11
-
12
- 一次只传这次要用的模块名:
13
-
14
- | `--modules` | 装什么 | 不装什么 |
15
- |---|---|---|
16
- | `identity` | 身份 | 排行榜、云存档、联机 |
17
- | `leaderboard` | 排行榜,并带上身份文件 | 云存档、联机 |
18
- | `save` | 云存档,并带上身份文件 | 排行榜、联机 |
19
- | `multiplayer` | `MultiplayerManager.ts`、`eventBus.ts`、`log.ts` 和 `multiplayer/`,并带上身份文件 | 排行榜、云存档 |
20
-
21
- 身份文件是这三项的请求底座,所以后三个模块各自带上它。身份文件是 `platform-service.mjs`/`.d.mts` 和 `identity/`(含 QQ 轻游 SDK)。带上身份不等于把三项能力装在一起。不传 `--modules` 时只装 `identity`。
22
-
23
- 安装目录顶层的文件是业务 import 的入口;`identity/`、`multiplayer/` 是内部实现,业务不要直接 import。
24
-
25
- ```
26
- node "${CRAFT_SKILL_DIR}/scripts/install.mjs" --project "${CRAFT_PROJECT_DIR}" --modules multiplayer
27
- ```
28
-
29
- 把 `multiplayer` 换成实际需要的那一个名字。不要把用不到的名字写进同一次 `--modules`。
30
-
31
- 安装器复制 `assets/modules/` 到 `src/skill-modules/platform-services/`,在 `installed.json` 记录版本与已装模块。不要安装到 `runtime/`,不要直接 import Skill 目录。装 `multiplayer` 时,工程没有 `ds/` 就写入 `assets/scaffold/ds/` 骨架;已有 `ds/` 不覆盖,之后归工程所有,也不参与下面的重装备份。写 Room 前读 `references/SERVER_GUIDE.md`。
32
-
33
- ## 修改与重装
34
-
35
- 装出来的文件属于项目代码,玩法需要时可以改。例如容器根字段、player 级 schema 字段的监听,就加在 `MultiplayerManager.ts` 的 `_attachRoom()` 里,做法见 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`。连接、身份、重试、载荷上限这些封装好的边界行为不改。
36
-
37
- 每次安装都会把已装模块连同本次模块一起覆盖为当前版本,哪怕这次只装 `save`。内容和当前版本不同的文件,安装器会先备份为同目录的 `<文件名>.previous`,并输出 `[skill] BACKUP <路径>`。看到这行后:
38
-
39
- 1. 读 `.previous`、新装的文件,以及业务里对它的调用,找出项目侧的改动。只是旧版本、没有项目改动时,直接删除备份。
40
- 2. 按项目实际代码把这些改动改进新版本文件。新版本接口变了就按新接口改,不要把旧文件整份换回去。
41
- 3. 构建通过后删除 `.previous`。
42
-
43
- 上次的 `.previous` 还在、本次又要覆盖同一文件时,安装器报 `Unmerged backup` 并且不写任何文件。先按上面三步处理完再重装,这不算安装失败。
44
-
45
- ## 接线
46
-
47
- 1.1.0 模板会在 QQ 轻游启动时初始化随包的身份服务,已安装的云服务共用该实例。
48
-
49
- 先读这次装出来的声明:身份、排行榜、云存档读对应 `.d.mts`,联机读 `MultiplayerManager.ts`。再读 `references/api_reference.md`。装了 `leaderboard` 时再读 `references/leaderboard_playbook.md`。
50
-
51
- 装上身份文件之后:
52
-
53
- 1. 从项目内 `platform-service.mjs` 导入 `getPlatformService` 或 `PlatformServiceManager`,使用同一服务实例。
54
- 2. 在任何可能触发 `markReady()` 的入口之前调用 `void service.init()`。**装了 `leaderboard` 或 `save` 时**用 `getPlatformService({ initTimeoutMs: 20000 }).init()`(手 Q 换票常超过默认 5s;身份未就绪时排行会不可用,存档会静默走本地)。它只挂身份监听或启动 QQ 换票,不向父页面发送消息。`ready` 只由预览桥在首帧后发送。
55
- 3. 不等待 `whenReady()`、云存档或建房结果才触发预览 `ready`。
56
- 4. 在游戏入口的 HMR 清理/页面销毁中处理服务生命周期。预览桥不负责服务初始化或释放。
57
-
58
- QQ 轻游不需要另外接线。Craft 同步到 QQ 时在游戏 URL 上追加 `api`、`app_id`、`qq_test`(如 `index.html?api=https%3A%2F%2Fdev.craft.qq.com&app_id=<id>&qq_test=1`)。URL 带 `qq_test` 时,同一个 `init()` 从 URL 读这三项,按需加载随包的 QQ SDK,用 `login()` 拿到的 `game_token` 换平台 session(请求体带 `app_id` 和数字 `qq_test`,不带 `game_id`),过期前自动重新登录换票。`api` 只接受 `craft.qq.com` 及其子域。不要在 `index.html` 写运行时配置或加 SDK `<script>`,不要装 npm 包,不要自己调 `qqAiGameSdk.login()` 或 `/api/auth/qq-game-session`。QQ 下 `getPlayerId()` 是 gopenid;昵称默认 `用户` + gopenid 后 6 位,游戏内有自己的昵称时把它作为 `report(score, playerName)` 的第二个参数传入。榜单高亮自己用 `getPlayerId()` 比对,不要用昵称。
59
-
60
- 只在装了对应模块时继续:
61
-
62
- - `leaderboard`:用 `createLeaderboard({ service })` 或 `LeaderboardManager`。参数以声明为准;写法与面板时序见 `references/leaderboard_playbook.md`。
63
- - `save`:用 `createSaveManager({ service })` 或 `SaveManager`。保留存档键、冲突令牌、错误降级规则。首次云读档前先 `whenReady()` 并确认 `isReady()` 为真;身份稍后变为 `active` 时再读一次云端。用户要云存档时,`OK` + `source === 'local'` 不算成功;重试云读写前也要确认身份就绪,`noop` 下等待迟到身份或由玩家重新加载游戏。
64
- - `multiplayer`:`import { MultiplayerManager } from './skill-modules/platform-services/MultiplayerManager'`(相对 `src/`)。身份 `init()` 之后调用 `MultiplayerManager.init(...)`。房间事件从同目录 `eventBus.ts` 的 `bus` 订阅。用法见 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`。
65
-
66
- 不要为了接入某一项去安装或接线另外两项。不要为了接入服务覆盖玩法、场景、配置或预览桥。不记录身份 token。
67
-
68
- ## 验收
69
-
70
- 验证构建、宿主身份消息、token 刷新,以及这次实际安装的那一项调用和无宿主时降级。确认身份监听早于 ready,且退出/热更新后无重复监听。项目脱离 `context` 后应仍可构建。
71
-
72
- 装了 `save` 时必须再走一遍下面这条,验收终点是「玩家能接着玩」,不是日志里出现读取成功:
73
-
74
- 1. 入口 `initTimeoutMs` ≥ 20000;首次云 `load` 在 `whenReady` 后确认 `isReady()` 为真,或身份变 `active` 后再读;
75
- 2. 产生一段进度(通关、解锁、加分都算);
76
- 3. 确认写入回 `result === 'OK'` 且 `source === 'cloud'`。`source === 'local'` 只是写进了本机,不算云存档通过;
77
- 4. 重新加载页面;
78
- 5. 确认读回同一份进度;
79
- 6. **点进这段进度解锁出来的内容**,确认按钮可点、星级/数值/「继续游戏」入口都用的是恢复后的值。
80
-
81
- 第 6 步是重点:读档成功但界面没跟着重建时,前面全绿,玩家仍然要从头玩。手 Q 真机跨设备同步成功前标「未验证」。
82
-
83
- 装了 `leaderboard` 时按 `references/leaderboard_playbook.md` 验收:
84
-
85
- 1. 入口 `initTimeoutMs` ≥ 20000,且未阻塞 `ready`;
86
- 2. `configure` / `report` / `query`(及用到的 `updateDisplay` / `reportBatch`)带**同一个** `boardKey`;
87
- 3. 通关或结算后上报,Craft 预览里查榜能看到刚上报的成绩(或空榜文案,不是假数据);
88
- 4. 排行面板:先 loading;身份未就绪时提供【重新加载游戏】,身份有效时查榜失败可重查;迟到 `active` 后打开的面板自动重查。恢复方式见 `references/leaderboard_playbook.md`;
89
- 5. 手 Q:真机打开排行面板成功前标「未验证」(本地与 Craft 预览不算手 Q 通过)。
90
-
91
- 本地验证时云存储、云排行榜或联机不可用,是因为没有真实宿主下发身份。这种情况把对应检查项标记为「未验证」,不要当作已通过。QQ 轻游路径只能在手 Q 容器里验证,本地与 Craft 预览一律标记「未验证」。
92
-
93
- ## 写入功能版本
94
-
95
- 安装器不写功能版本。接线完成、构建通过,且「验收」里本地能验的项都通过后,按这次装的模块回写一次(只能标「未验证」的宿主项不影响回写):
96
-
97
- ```
98
- node "${CRAFT_CONTEXT_DIR}/skills/version-update/scripts/update_feature_version.mjs" --project "${CRAFT_PROJECT_DIR}" --id <id> --if-present
99
- ```
100
-
101
- 模块和 id 的对应是 `leaderboard` → `leaderboard`、`save` → `cloudsave`、`multiplayer` → `multiplayer`;`identity` 不写。输出 `FEATURE_VERSION_UPDATED` 表示已写入;`FEATURE_VERSION_SKIPPED` 表示工程没有 `version/craft_feature_version.json`,不用处理。脚本报错时模块已经装好,不算安装失败:报告报错首行,不要手改功能版本文件。版本号由开发者在平台清单里手动维护。验收未通过时不回写,也不要向用户声称该功能已经升级完成。