@craft_eco/craft-mcp 0.1.18 → 0.1.22

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 (922) hide show
  1. package/README.md +45 -8
  2. package/bin/craft-mcp.mjs +14 -1
  3. package/dist-server/core/connector-auth.mjs +3 -3
  4. package/dist-server/game-workflow/asset-formats.mjs +25 -64
  5. package/dist-server/game-workflow/asset-import.mjs +83 -67
  6. package/dist-server/game-workflow/assets.mjs +81 -9
  7. package/dist-server/game-workflow/capture-worker.mjs +1 -1
  8. package/dist-server/game-workflow/check.mjs +1 -1
  9. package/dist-server/game-workflow/draft-archive.mjs +53 -53
  10. package/dist-server/game-workflow/draft-bindings.mjs +35 -35
  11. package/dist-server/game-workflow/draft-uploads.mjs +225 -207
  12. package/dist-server/game-workflow/engines.mjs +2 -2
  13. package/dist-server/game-workflow/library-assets.mjs +16 -5
  14. package/dist-server/game-workflow/library-candidates.mjs +2 -1
  15. package/dist-server/game-workflow/library-catalog.mjs +2 -2
  16. package/dist-server/game-workflow/publication-materials.mjs +92 -67
  17. package/dist-server/game-workflow/publications.mjs +164 -148
  18. package/dist-server/game-workflow/publish-capture-worker.mjs +57 -57
  19. package/dist-server/game-workflow/publish-capture.mjs +75 -75
  20. package/dist-server/game-workflow/resource-catalog.mjs +16 -13
  21. package/dist-server/mcp/control-panel.html +2 -2
  22. package/dist-server/mcp/control-panel.mjs +59 -59
  23. package/dist-server/mcp/publication-page.html +86 -86
  24. package/dist-server/mcp/publication-page.mjs +375 -347
  25. package/dist-server/mcp/publication-preview.mjs +62 -48
  26. package/dist-server/mcp/publication-tools.mjs +22 -22
  27. package/dist-server/mcp/publish-panel.mjs +205 -191
  28. package/dist-server/mcp/server.mjs +312 -312
  29. package/dist-server/upstream/craft-aigc.mjs +182 -169
  30. package/dist-server/upstream/library-url.mjs +3 -5
  31. package/dist-server/upstream/publication-transport.mjs +101 -81
  32. package/dist-server/upstream/resource-path.mjs +17 -0
  33. package/package.json +2 -2
  34. package/resources/craft-game-maker/SKILL.md +71 -69
  35. package/resources/craft-game-maker/js.md +6 -5
  36. package/resources/craft-game-maker/js3d.md +6 -5
  37. package/resources/game_visual_qa.mjs +9 -3
  38. package/resources/js/context/.role/AGENTS_DESIGN.md +9 -0
  39. package/resources/js/context/AGENTS.md +112 -0
  40. package/resources/js/context/agents/aigc-asset.md +168 -0
  41. package/resources/js/context/hooks/hooks.json +14 -20
  42. package/resources/js/context/knowledge/AigcEnabled.md +49 -41
  43. package/resources/js/context/knowledge/AigcWiring.md +200 -200
  44. package/resources/js/context/knowledge/AssetUrl.md +24 -24
  45. package/resources/js/context/knowledge/FrontendComponents.md +17 -23
  46. package/resources/js/context/knowledge/Lifecycle.md +32 -27
  47. package/resources/js/context/knowledge/MobileAdaptation.md +73 -0
  48. package/resources/js/context/knowledge/MobileAdapted.md +36 -0
  49. package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -114
  50. package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +115 -115
  51. package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +392 -392
  52. package/resources/js/context/knowledge/PlatformServices.md +190 -184
  53. package/resources/js/context/knowledge/ProjectDisplayConfig.md +35 -0
  54. package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -242
  55. package/resources/js/context/knowledge/Ui.md +11 -11
  56. package/resources/js/context/knowledge/UiEditorCompat.md +21 -21
  57. package/resources/js/context/rules/MultiplayerCapability.md +23 -23
  58. package/resources/js/context/rules/MultiplayerRoomEntryUX.md +63 -63
  59. package/resources/js/context/rules/PlatformBoundaryModules.md +44 -43
  60. package/resources/js/context/rules/preview_ready.md +8 -0
  61. package/resources/js/context/skills/aigc-generate/SKILL.md +149 -301
  62. package/resources/js/context/skills/aigc-generate/knowledge/audio.md +39 -39
  63. package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +26 -14
  64. package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +132 -129
  65. package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +53 -54
  66. package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +52 -50
  67. package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +191 -201
  68. package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +55 -53
  69. package/resources/js/context/skills/asset-search/SKILL.md +69 -73
  70. package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +62 -62
  71. package/resources/js/context/skills/asset-search/scripts/config.json +5 -5
  72. package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +125 -125
  73. package/resources/js/context/skills/asset-search/scripts/search.mjs +760 -749
  74. package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +657 -723
  75. package/resources/js/context/skills/asset-search/strategies/anim2d.md +42 -0
  76. package/resources/js/context/skills/asset-search/strategies/audio.md +34 -34
  77. package/resources/js/context/skills/asset-search/strategies/effect2d.md +31 -31
  78. package/resources/js/context/skills/asset-search/strategies/texture-prop.md +22 -22
  79. package/resources/js/context/skills/asset-search/strategies/ui-common.md +40 -40
  80. package/resources/js/context/skills/asset-search/strategies/ui-style.md +28 -28
  81. package/resources/js/context/skills/export-config/SKILL.md +28 -20
  82. package/resources/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  83. package/resources/js/context/skills/{lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform → export-config/assets/tooling}/config.d.mts +19 -19
  84. package/resources/js/context/skills/{lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform → export-config/assets/tooling}/config.mjs +1 -1
  85. package/resources/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  86. package/resources/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
  87. package/resources/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  88. package/resources/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  89. package/resources/js/context/skills/export-config/scripts/assert-asset-wiring.mjs +72 -72
  90. package/resources/js/context/skills/export-config/scripts/export-config.mjs +46 -43
  91. package/resources/js/context/skills/export-config/scripts/install.mjs +89 -0
  92. package/resources/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -106
  93. package/resources/js/context/skills/export-config/scripts/sync-asset-controls.mjs +352 -351
  94. package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +161 -163
  95. package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +93 -92
  96. package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +7 -7
  97. package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +22 -22
  98. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  99. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  100. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  101. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform-capture-video.mjs +227 -227
  102. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform-service.d.mts +31 -25
  103. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  104. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform.d.mts +79 -79
  105. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform.mjs +29 -29
  106. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/release.json +22 -0
  107. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  108. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  109. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  110. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  111. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  112. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/assets.d.mts +24 -24
  113. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/assets.mjs +2 -2
  114. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/astc.d.mts +10 -10
  115. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/astc.mjs +1 -1
  116. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +37 -32
  117. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +50 -50
  118. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  119. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  120. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.mjs +1 -0
  121. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/installed.json +6 -0
  122. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  123. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.mjs +77 -0
  124. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  125. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  126. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +156 -121
  127. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +249 -254
  128. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +87 -99
  129. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +2 -14
  130. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +185 -172
  131. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +294 -165
  132. package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +20 -20
  133. package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +5 -4
  134. package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +159 -109
  135. package/resources/js/context/skills/mobile-adaptation/SKILL.md +277 -260
  136. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +50 -50
  137. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +862 -881
  138. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -92
  139. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +254 -0
  140. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -245
  141. package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +135 -134
  142. package/resources/js/context/skills/mobile-adaptation/references/input-config.md +342 -311
  143. package/resources/js/context/skills/mobile-adaptation/references/verification.md +140 -106
  144. package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +11 -0
  145. package/resources/js/context/skills/mobile-compat-qa/SKILL.md +53 -0
  146. package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +23 -0
  147. package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +20 -0
  148. package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +19 -0
  149. package/resources/js/context/skills/optimization-suggestions/SKILL.md +89 -89
  150. package/resources/js/context/skills/platform-services/SKILL.md +101 -94
  151. package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +465 -783
  152. package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +57 -57
  153. package/resources/js/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +5 -0
  154. package/resources/js/context/skills/platform-services/assets/modules/identity/qq-session.mjs +208 -0
  155. package/resources/js/context/skills/platform-services/assets/modules/identity/shared.mjs +37 -0
  156. package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -39
  157. package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -1
  158. package/resources/js/context/skills/platform-services/assets/modules/log.ts +35 -35
  159. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +61 -0
  160. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +52 -0
  161. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +30 -0
  162. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +89 -0
  163. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +47 -0
  164. package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +31 -25
  165. package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +272 -1
  166. package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +49 -49
  167. package/resources/js/context/skills/platform-services/assets/modules/save.mjs +1 -1
  168. package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -7
  169. package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -264
  170. package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -39
  171. package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +139 -139
  172. package/resources/js/context/skills/platform-services/references/api_reference.md +18 -18
  173. package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +96 -0
  174. package/resources/js/context/skills/platform-services/scripts/install.mjs +148 -134
  175. package/resources/js/context/skills/resolution-adaptation/SKILL.md +47 -202
  176. package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +156 -121
  177. package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +249 -254
  178. package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +98 -98
  179. package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +200 -200
  180. package/resources/js/context/skills/resolution-adaptation/references/audit.md +31 -0
  181. package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +40 -0
  182. package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +18 -0
  183. package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +15 -134
  184. package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +34 -0
  185. package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +38 -119
  186. package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +55 -0
  187. package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +448 -338
  188. package/resources/js/context/skills/scene-editor-compat/SKILL.md +94 -94
  189. package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +13 -13
  190. package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +6 -6
  191. package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +25 -25
  192. package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +18 -18
  193. package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +7 -7
  194. package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +42 -42
  195. package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +144 -144
  196. package/resources/js/context/skills/scene-editor-compat/docs/contract.md +330 -330
  197. package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +64 -64
  198. package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +28 -28
  199. package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +47 -47
  200. package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +64 -64
  201. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +38 -38
  202. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +9 -9
  203. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +59 -59
  204. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +30 -30
  205. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +66 -66
  206. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +20 -20
  207. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +26 -26
  208. package/resources/js/context/skills/scene-editor-compat/references/contract.md +73 -73
  209. package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +162 -162
  210. package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +853 -853
  211. package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +173 -173
  212. package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +427 -427
  213. package/resources/js/context/skills/scene-editor-compat/version.json +1 -1
  214. package/resources/js/context/skills/ui-editor-compat/SKILL.md +48 -48
  215. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -35
  216. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +74 -74
  217. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -60
  218. package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -45
  219. package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -265
  220. package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +7 -7
  221. package/resources/js/context/skills/ui-editor-compat/references/contract.md +132 -132
  222. package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -327
  223. package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -80
  224. package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -84
  225. package/resources/js/context/skills/version-update/SKILL.md +192 -192
  226. package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -129
  227. package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +159 -159
  228. package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +157 -157
  229. package/resources/js/context/skills/visual-qa/SKILL.md +36 -36
  230. package/resources/js/context/version/version.json +1 -1
  231. package/resources/js/project/README.md +99 -99
  232. package/resources/js/project/SPEC/readme.md +6 -6
  233. package/resources/js/project/configs/assets.json +1 -1
  234. package/resources/js/project/configs/game.controls.json +3 -3
  235. package/resources/js/project/configs/game.json +3 -3
  236. package/resources/js/project/game-runtime.json +2 -2
  237. package/resources/js/project/{projectDisplayInfo.json → game.config.json} +7 -7
  238. package/resources/js/project/index.html +20 -20
  239. package/resources/js/project/package.json +23 -23
  240. package/resources/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  241. package/resources/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  242. package/resources/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  243. package/resources/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  244. package/resources/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  245. package/resources/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  246. package/resources/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  247. package/resources/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
  248. package/resources/js/project/runtime/lightgame/1.1.0/release.json +22 -0
  249. package/resources/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  250. package/resources/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  251. package/resources/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  252. package/resources/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  253. package/resources/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  254. package/resources/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  255. package/resources/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  256. package/resources/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  257. package/resources/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  258. package/resources/js/project/scripts/config-export.mjs +37 -32
  259. package/resources/js/project/scripts/refresh-runtime.mjs +50 -50
  260. package/resources/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  261. package/resources/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  262. package/resources/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
  263. package/resources/js/project/scripts/skill-modules/export-config/installed.json +6 -0
  264. package/resources/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  265. package/resources/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
  266. package/resources/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  267. package/resources/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  268. package/resources/js/project/scripts/write-preview-ready.mjs +22 -0
  269. package/resources/js/project/src/display/ui-stage.ts +156 -121
  270. package/resources/js/project/src/display/viewport.ts +249 -254
  271. package/resources/js/project/src/main.ts +87 -99
  272. package/resources/js/project/src/platform.ts +2 -14
  273. package/resources/js/project/src/scenes/LoadScene.ts +89 -89
  274. package/resources/js/project/src/scenes/PlayScene.ts +17 -17
  275. package/resources/js/project/src/screenUi.ts +185 -172
  276. package/resources/js/project/src/style.css +294 -165
  277. package/resources/js/project/tsconfig.json +20 -20
  278. package/resources/js/project/unified_data_control_config.json +20 -20
  279. package/resources/js/project/vendor/core-manager-js/src/.versions.json +42 -42
  280. package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +41 -41
  281. package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +93 -90
  282. package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +203 -203
  283. package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +106 -106
  284. package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +25 -25
  285. package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +21 -21
  286. package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +65 -65
  287. package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +340 -340
  288. package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +87 -87
  289. package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +92 -92
  290. package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +271 -271
  291. package/resources/js/project/vendor/core-manager-js/src/index.ts +31 -31
  292. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +81 -81
  293. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +43 -43
  294. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +32 -32
  295. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +141 -141
  296. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +20 -20
  297. package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +183 -183
  298. package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +304 -304
  299. package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +351 -351
  300. package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +180 -180
  301. package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +13 -13
  302. package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +14 -14
  303. package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +68 -68
  304. package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +433 -433
  305. package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +118 -118
  306. package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +444 -444
  307. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +485 -485
  308. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +66 -66
  309. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +149 -149
  310. package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +9 -9
  311. package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +29 -29
  312. package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +88 -88
  313. package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +122 -122
  314. package/resources/js/project/vendor/core-manager-js/src/runtime.ts +24 -24
  315. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +318 -318
  316. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +151 -151
  317. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +235 -235
  318. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +98 -98
  319. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +94 -94
  320. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +209 -209
  321. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +106 -106
  322. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +341 -341
  323. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +68 -68
  324. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +236 -236
  325. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +22 -22
  326. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +29 -29
  327. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +197 -197
  328. package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +9 -9
  329. package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +555 -555
  330. package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +112 -112
  331. package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +178 -178
  332. package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +246 -246
  333. package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +139 -139
  334. package/resources/js/project/vendor/core-manager-js/tsconfig.json +15 -15
  335. package/resources/js/project/vendor/run.sh +4 -107
  336. package/resources/js/project/version/craft_feature_version.json +42 -42
  337. package/resources/js/project/version/project_feature_version.json +11 -11
  338. package/resources/js/project/vite.config.ts +5 -4
  339. package/resources/js3d/context/.role/AGENTS_DESIGN.md +9 -0
  340. package/resources/js3d/context/AGENTS.md +95 -0
  341. package/resources/js3d/context/hooks/hooks.json +14 -20
  342. package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +75 -87
  343. package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +69 -69
  344. package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +42 -42
  345. package/resources/js3d/context/knowledge/FrontendComponents.md +19 -23
  346. package/resources/js3d/context/knowledge/MobileAdaptation.md +73 -0
  347. package/resources/js3d/context/knowledge/MobileAdapted.md +36 -0
  348. package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -114
  349. package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +117 -117
  350. package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +430 -430
  351. package/resources/js3d/context/knowledge/PlatformServices.md +190 -162
  352. package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +35 -0
  353. package/resources/js3d/context/knowledge/Runtime.md +34 -30
  354. package/resources/js3d/context/knowledge/SceneEditorCompat.md +35 -34
  355. package/resources/js3d/context/knowledge/StepByStep.md +21 -21
  356. package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -242
  357. package/resources/js3d/context/knowledge/UiEditorCompat.md +21 -21
  358. package/resources/js3d/context/rules/MultiplayerCapability.md +27 -27
  359. package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +63 -63
  360. package/resources/js3d/context/rules/PlatformBoundaryModules.md +44 -43
  361. package/resources/js3d/context/rules/preview_ready.md +8 -0
  362. package/resources/js3d/context/skills/aigc-integration/SKILL.md +172 -176
  363. package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +70 -0
  364. package/resources/js3d/context/skills/aigc-integration/callback.md +77 -56
  365. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +23 -22
  366. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +38 -38
  367. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +72 -0
  368. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +33 -33
  369. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +36 -36
  370. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +37 -37
  371. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +35 -35
  372. package/resources/js3d/context/skills/asset-search/SKILL.md +178 -159
  373. package/resources/js3d/context/skills/asset-search/references/resource-config.md +99 -56
  374. package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +58 -0
  375. package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +62 -62
  376. package/resources/js3d/context/skills/asset-search/scripts/config.json +235 -213
  377. package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +905 -885
  378. package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +79 -79
  379. package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +74 -74
  380. package/resources/js3d/context/skills/asset-search/scripts/search.mjs +637 -597
  381. package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +667 -0
  382. package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +42 -0
  383. package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +31 -0
  384. package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +92 -0
  385. package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +89 -0
  386. package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +143 -0
  387. package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +90 -0
  388. package/resources/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
  389. package/resources/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
  390. package/resources/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
  391. package/resources/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
  392. package/resources/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
  393. package/resources/js3d/context/skills/export-config/SKILL.md +20 -0
  394. package/resources/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
  395. package/resources/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
  396. package/resources/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
  397. package/resources/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
  398. package/resources/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
  399. package/resources/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
  400. package/resources/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
  401. package/resources/js3d/context/skills/export-config/scripts/assert-asset-wiring.mjs +97 -83
  402. package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +56 -53
  403. package/resources/js3d/context/skills/export-config/scripts/install.mjs +89 -0
  404. package/resources/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -106
  405. package/resources/js3d/context/skills/export-config/scripts/sync-asset-controls.mjs +327 -325
  406. package/resources/js3d/context/skills/export-config/scripts/sync-scene-assets.mjs +216 -181
  407. package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +161 -163
  408. package/resources/js3d/context/skills/game-art-style/SKILL.md +60 -60
  409. package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +38 -38
  410. package/resources/js3d/context/skills/game-art-style/references/construction.md +111 -111
  411. package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +105 -105
  412. package/resources/js3d/context/skills/game-art-style/references/sources.md +25 -25
  413. package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +175 -175
  414. package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +168 -168
  415. package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +191 -191
  416. package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +165 -165
  417. package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +173 -173
  418. package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +185 -185
  419. package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +181 -181
  420. package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +189 -189
  421. package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +88 -88
  422. package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +301 -284
  423. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +104 -104
  424. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +933 -952
  425. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -92
  426. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +254 -0
  427. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -245
  428. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +257 -256
  429. package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +342 -311
  430. package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +140 -106
  431. package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +11 -0
  432. package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +53 -0
  433. package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +23 -0
  434. package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +10 -0
  435. package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +20 -0
  436. package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +19 -0
  437. package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +74 -74
  438. package/resources/js3d/context/skills/performance-audit/SKILL.md +166 -0
  439. package/resources/js3d/context/skills/performance-audit/references/case-notes.md +93 -0
  440. package/resources/js3d/context/skills/performance-audit/references/rules.md +183 -0
  441. package/resources/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
  442. package/resources/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
  443. package/resources/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
  444. package/resources/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
  445. package/resources/js3d/context/skills/platform-services/SKILL.md +101 -94
  446. package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +465 -783
  447. package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +57 -57
  448. package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +5 -0
  449. package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-session.mjs +208 -0
  450. package/resources/js3d/context/skills/platform-services/assets/modules/identity/shared.mjs +37 -0
  451. package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -39
  452. package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -1
  453. package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +35 -35
  454. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +61 -0
  455. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +52 -0
  456. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +30 -0
  457. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +89 -0
  458. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +47 -0
  459. package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +31 -25
  460. package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +272 -1
  461. package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +49 -49
  462. package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +1 -1
  463. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -7
  464. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -264
  465. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -39
  466. package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +139 -139
  467. package/resources/js3d/context/skills/platform-services/references/api_reference.md +18 -18
  468. package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +96 -0
  469. package/resources/js3d/context/skills/platform-services/scripts/install.mjs +148 -134
  470. package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +46 -170
  471. package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +156 -121
  472. package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +239 -244
  473. package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +129 -127
  474. package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +188 -188
  475. package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +31 -0
  476. package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +40 -0
  477. package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +18 -0
  478. package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +15 -124
  479. package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +34 -0
  480. package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +38 -117
  481. package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +448 -338
  482. package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +599 -599
  483. package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +141 -141
  484. package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +92 -92
  485. package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +125 -125
  486. package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +113 -113
  487. package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +1187 -1187
  488. package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +53 -52
  489. package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +4 -4
  490. package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +94 -94
  491. package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +50 -50
  492. package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +105 -105
  493. package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +147 -147
  494. package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +79 -79
  495. package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +56 -56
  496. package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +51 -51
  497. package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +55 -55
  498. package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +78 -78
  499. package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +84 -84
  500. package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +117 -117
  501. package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +4 -4
  502. package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +238 -238
  503. package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +59 -59
  504. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -35
  505. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +61 -61
  506. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -60
  507. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -45
  508. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -265
  509. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +7 -7
  510. package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +110 -110
  511. package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -327
  512. package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -80
  513. package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -84
  514. package/resources/js3d/context/skills/version-update/SKILL.md +191 -191
  515. package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -129
  516. package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +159 -159
  517. package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +157 -157
  518. package/resources/js3d/context/version/version.json +1 -1
  519. package/resources/js3d/project/README.md +106 -100
  520. package/resources/js3d/project/configs/game.controls.json +3 -3
  521. package/resources/js3d/project/configs/game.json +3 -3
  522. package/resources/js3d/project/game-runtime.json +2 -2
  523. package/resources/js3d/project/{projectDisplayInfo.json → game.config.json} +7 -7
  524. package/resources/js3d/project/index.html +12 -12
  525. package/resources/js3d/project/package.json +24 -24
  526. package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +2 -2
  527. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +2 -12
  528. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +21 -29
  529. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
  530. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
  531. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
  532. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
  533. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
  534. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
  535. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
  536. package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
  537. package/resources/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
  538. package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
  539. package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
  540. package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
  541. package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
  542. package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
  543. package/resources/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
  544. package/resources/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
  545. package/resources/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
  546. package/resources/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
  547. package/resources/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
  548. package/resources/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
  549. package/resources/js3d/project/scripts/config-export.mjs +37 -32
  550. package/resources/js3d/project/scripts/refresh-runtime.mjs +50 -50
  551. package/resources/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
  552. package/resources/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
  553. package/resources/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
  554. package/resources/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
  555. package/resources/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
  556. package/resources/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
  557. package/resources/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
  558. package/resources/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
  559. package/resources/js3d/project/scripts/write-preview-ready.mjs +22 -0
  560. package/resources/js3d/project/src/display/ui-stage.ts +156 -121
  561. package/resources/js3d/project/src/display/viewport.ts +239 -244
  562. package/resources/js3d/project/src/main.ts +85 -83
  563. package/resources/js3d/project/src/platform.ts +2 -14
  564. package/resources/js3d/project/src/style.css +83 -17
  565. package/resources/js3d/project/tsconfig.json +20 -20
  566. package/resources/js3d/project/unified_data_control_config.json +20 -20
  567. package/resources/js3d/project/vendor/core-manager-three/package.json +12 -12
  568. package/resources/js3d/project/vendor/core-manager-three/src/index.ts +2 -2
  569. package/resources/js3d/project/vendor/run.sh +4 -4
  570. package/resources/js3d/project/version/craft_feature_version.json +42 -42
  571. package/resources/js3d/project/version/project_feature_version.json +11 -11
  572. package/resources/js3d/project/vite.config.ts +5 -4
  573. package/vendor/agent-cli/dist/runtime-tools/ue/blender-cook-assets.cjs +19 -19
  574. package/vendor/agent-cli/dist/runtime-tools/ue/tool-manifest.json +1 -1
  575. package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts +1 -1
  576. package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts.map +1 -1
  577. package/vendor/agent-cli/dist/src/artifacts/context-finalize.js +15 -6
  578. package/vendor/agent-cli/dist/src/artifacts/context-finalize.js.map +1 -1
  579. package/vendor/agent-cli/dist/src/artifacts/native-source.d.ts +3 -0
  580. package/vendor/agent-cli/dist/src/artifacts/native-source.d.ts.map +1 -0
  581. package/vendor/agent-cli/dist/src/artifacts/native-source.js +13 -0
  582. package/vendor/agent-cli/dist/src/artifacts/native-source.js.map +1 -0
  583. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts +13 -0
  584. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +1 -0
  585. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +300 -0
  586. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +1 -0
  587. package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +4 -0
  588. package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -1
  589. package/vendor/agent-cli/dist/src/artifacts/prepare.js +20 -7
  590. package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -1
  591. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +8 -1
  592. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -1
  593. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +64 -37
  594. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -1
  595. package/vendor/agent-cli/dist/src/artifacts/restore-permissions.d.ts +27 -0
  596. package/vendor/agent-cli/dist/src/artifacts/restore-permissions.d.ts.map +1 -0
  597. package/vendor/agent-cli/dist/src/artifacts/restore-permissions.js +112 -0
  598. package/vendor/agent-cli/dist/src/artifacts/restore-permissions.js.map +1 -0
  599. package/vendor/agent-cli/dist/src/artifacts/restore.d.ts +9 -0
  600. package/vendor/agent-cli/dist/src/artifacts/restore.d.ts.map +1 -1
  601. package/vendor/agent-cli/dist/src/artifacts/restore.js +140 -59
  602. package/vendor/agent-cli/dist/src/artifacts/restore.js.map +1 -1
  603. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +7 -0
  604. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +1 -0
  605. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +145 -0
  606. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +1 -0
  607. package/vendor/agent-cli/dist/src/artifacts/static.d.ts +6 -2
  608. package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -1
  609. package/vendor/agent-cli/dist/src/artifacts/static.js +100 -28
  610. package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -1
  611. package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -1
  612. package/vendor/agent-cli/dist/src/cli/process-protocol.js +6 -3
  613. package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -1
  614. package/vendor/agent-cli/dist/src/component/browser-queue.d.ts +55 -0
  615. package/vendor/agent-cli/dist/src/component/browser-queue.d.ts.map +1 -0
  616. package/vendor/agent-cli/dist/src/component/browser-queue.js +63 -0
  617. package/vendor/agent-cli/dist/src/component/browser-queue.js.map +1 -0
  618. package/vendor/agent-cli/dist/src/component/execution.d.ts +4 -0
  619. package/vendor/agent-cli/dist/src/component/execution.d.ts.map +1 -1
  620. package/vendor/agent-cli/dist/src/component/execution.js +16 -4
  621. package/vendor/agent-cli/dist/src/component/execution.js.map +1 -1
  622. package/vendor/agent-cli/dist/src/component/isolated-launcher.d.ts +2 -0
  623. package/vendor/agent-cli/dist/src/component/isolated-launcher.d.ts.map +1 -0
  624. package/vendor/agent-cli/dist/src/component/isolated-launcher.js +76 -0
  625. package/vendor/agent-cli/dist/src/component/isolated-launcher.js.map +1 -0
  626. package/vendor/agent-cli/dist/src/component/isolated-preload.d.ts +2 -0
  627. package/vendor/agent-cli/dist/src/component/isolated-preload.d.ts.map +1 -0
  628. package/vendor/agent-cli/dist/src/component/isolated-preload.js +27 -0
  629. package/vendor/agent-cli/dist/src/component/isolated-preload.js.map +1 -0
  630. package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts +0 -5
  631. package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts.map +1 -1
  632. package/vendor/agent-cli/dist/src/component/platform-access/server.js +9 -3
  633. package/vendor/agent-cli/dist/src/component/platform-access/server.js.map +1 -1
  634. package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts.map +1 -1
  635. package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js +5 -0
  636. package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js.map +1 -1
  637. package/vendor/agent-cli/dist/src/component/process-diagnostics.d.ts +25 -0
  638. package/vendor/agent-cli/dist/src/component/process-diagnostics.d.ts.map +1 -0
  639. package/vendor/agent-cli/dist/src/component/process-diagnostics.js +137 -0
  640. package/vendor/agent-cli/dist/src/component/process-diagnostics.js.map +1 -0
  641. package/vendor/agent-cli/dist/src/component/process-isolation.d.ts +10 -0
  642. package/vendor/agent-cli/dist/src/component/process-isolation.d.ts.map +1 -0
  643. package/vendor/agent-cli/dist/src/component/process-isolation.js +59 -0
  644. package/vendor/agent-cli/dist/src/component/process-isolation.js.map +1 -0
  645. package/vendor/agent-cli/dist/src/component/proxied-fetch.d.ts +2 -0
  646. package/vendor/agent-cli/dist/src/component/proxied-fetch.d.ts.map +1 -0
  647. package/vendor/agent-cli/dist/src/component/proxied-fetch.js +46 -0
  648. package/vendor/agent-cli/dist/src/component/proxied-fetch.js.map +1 -0
  649. package/vendor/agent-cli/dist/src/component/public-egress.d.ts +17 -0
  650. package/vendor/agent-cli/dist/src/component/public-egress.d.ts.map +1 -0
  651. package/vendor/agent-cli/dist/src/component/public-egress.js +246 -0
  652. package/vendor/agent-cli/dist/src/component/public-egress.js.map +1 -0
  653. package/vendor/agent-cli/dist/src/context/cache-publication-lock.d.ts +3 -0
  654. package/vendor/agent-cli/dist/src/context/cache-publication-lock.d.ts.map +1 -0
  655. package/vendor/agent-cli/dist/src/context/cache-publication-lock.js +68 -0
  656. package/vendor/agent-cli/dist/src/context/cache-publication-lock.js.map +1 -0
  657. package/vendor/agent-cli/dist/src/context/cache-publication.d.ts +1 -1
  658. package/vendor/agent-cli/dist/src/context/cache-publication.d.ts.map +1 -1
  659. package/vendor/agent-cli/dist/src/context/cache-publication.js +8 -4
  660. package/vendor/agent-cli/dist/src/context/cache-publication.js.map +1 -1
  661. package/vendor/agent-cli/dist/src/context/context-cache.d.ts.map +1 -1
  662. package/vendor/agent-cli/dist/src/context/context-cache.js +5 -2
  663. package/vendor/agent-cli/dist/src/context/context-cache.js.map +1 -1
  664. package/vendor/agent-cli/dist/src/context/context-project.d.ts +45 -4
  665. package/vendor/agent-cli/dist/src/context/context-project.d.ts.map +1 -1
  666. package/vendor/agent-cli/dist/src/context/context-project.js +157 -16
  667. package/vendor/agent-cli/dist/src/context/context-project.js.map +1 -1
  668. package/vendor/agent-cli/dist/src/context/context-scoped-source.d.ts +13 -0
  669. package/vendor/agent-cli/dist/src/context/context-scoped-source.d.ts.map +1 -0
  670. package/vendor/agent-cli/dist/src/context/context-scoped-source.js +78 -0
  671. package/vendor/agent-cli/dist/src/context/context-scoped-source.js.map +1 -0
  672. package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts +14 -0
  673. package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts.map +1 -1
  674. package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js +110 -44
  675. package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js.map +1 -1
  676. package/vendor/agent-cli/dist/src/context/local-skills.d.ts +2 -0
  677. package/vendor/agent-cli/dist/src/context/local-skills.d.ts.map +1 -1
  678. package/vendor/agent-cli/dist/src/context/local-skills.js +36 -19
  679. package/vendor/agent-cli/dist/src/context/local-skills.js.map +1 -1
  680. package/vendor/agent-cli/dist/src/context/member-context.d.ts +2 -1
  681. package/vendor/agent-cli/dist/src/context/member-context.d.ts.map +1 -1
  682. package/vendor/agent-cli/dist/src/context/member-context.js +17 -9
  683. package/vendor/agent-cli/dist/src/context/member-context.js.map +1 -1
  684. package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts +9 -1
  685. package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts.map +1 -1
  686. package/vendor/agent-cli/dist/src/context/script-dependencies.js +22 -6
  687. package/vendor/agent-cli/dist/src/context/script-dependencies.js.map +1 -1
  688. package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts +1 -1
  689. package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts.map +1 -1
  690. package/vendor/agent-cli/dist/src/context/shared-cache-build.js +1 -0
  691. package/vendor/agent-cli/dist/src/context/shared-cache-build.js.map +1 -1
  692. package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts.map +1 -1
  693. package/vendor/agent-cli/dist/src/context/team-knowledge.js +11 -2
  694. package/vendor/agent-cli/dist/src/context/team-knowledge.js.map +1 -1
  695. package/vendor/agent-cli/dist/src/context/template-cache.d.ts +5 -1
  696. package/vendor/agent-cli/dist/src/context/template-cache.d.ts.map +1 -1
  697. package/vendor/agent-cli/dist/src/context/template-cache.js +2 -2
  698. package/vendor/agent-cli/dist/src/context/template-cache.js.map +1 -1
  699. package/vendor/agent-cli/dist/src/context/template-refresh.d.ts +6 -0
  700. package/vendor/agent-cli/dist/src/context/template-refresh.d.ts.map +1 -0
  701. package/vendor/agent-cli/dist/src/context/template-refresh.js +45 -0
  702. package/vendor/agent-cli/dist/src/context/template-refresh.js.map +1 -0
  703. package/vendor/agent-cli/dist/src/context/template-seed.d.ts +16 -3
  704. package/vendor/agent-cli/dist/src/context/template-seed.d.ts.map +1 -1
  705. package/vendor/agent-cli/dist/src/context/template-seed.js +71 -19
  706. package/vendor/agent-cli/dist/src/context/template-seed.js.map +1 -1
  707. package/vendor/agent-cli/dist/src/context/template-sync.d.ts +11 -0
  708. package/vendor/agent-cli/dist/src/context/template-sync.d.ts.map +1 -0
  709. package/vendor/agent-cli/dist/src/context/template-sync.js +167 -0
  710. package/vendor/agent-cli/dist/src/context/template-sync.js.map +1 -0
  711. package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts +3 -1
  712. package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts.map +1 -1
  713. package/vendor/agent-cli/dist/src/context/user-skill-context.js +41 -2
  714. package/vendor/agent-cli/dist/src/context/user-skill-context.js.map +1 -1
  715. package/vendor/agent-cli/dist/src/index.d.ts +5 -1
  716. package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
  717. package/vendor/agent-cli/dist/src/index.js +5 -1
  718. package/vendor/agent-cli/dist/src/index.js.map +1 -1
  719. package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts +2 -2
  720. package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js +4 -2
  721. package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js.map +1 -1
  722. package/vendor/agent-cli/dist/src/lifecycle/hook-command.js +1 -1
  723. package/vendor/agent-cli/dist/src/lifecycle/hook-command.js.map +1 -1
  724. package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts +24 -0
  725. package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts.map +1 -1
  726. package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js +6 -0
  727. package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js.map +1 -1
  728. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +71 -4
  729. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -1
  730. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +13 -1
  731. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -1
  732. package/vendor/agent-cli/dist/src/security/command-translate.d.ts.map +1 -1
  733. package/vendor/agent-cli/dist/src/security/command-translate.js +4 -0
  734. package/vendor/agent-cli/dist/src/security/command-translate.js.map +1 -1
  735. package/vendor/agent-cli/dist/src/security/guard.d.ts +4 -0
  736. package/vendor/agent-cli/dist/src/security/guard.d.ts.map +1 -1
  737. package/vendor/agent-cli/dist/src/security/guard.js +17 -5
  738. package/vendor/agent-cli/dist/src/security/guard.js.map +1 -1
  739. package/vendor/agent-cli/dist/src/security/mount-table.d.ts +11 -2
  740. package/vendor/agent-cli/dist/src/security/mount-table.d.ts.map +1 -1
  741. package/vendor/agent-cli/dist/src/security/mount-table.js +92 -5
  742. package/vendor/agent-cli/dist/src/security/mount-table.js.map +1 -1
  743. package/vendor/agent-cli/dist/src/security/tool-scope.d.ts +4 -1
  744. package/vendor/agent-cli/dist/src/security/tool-scope.d.ts.map +1 -1
  745. package/vendor/agent-cli/dist/src/security/tool-scope.js +38 -4
  746. package/vendor/agent-cli/dist/src/security/tool-scope.js.map +1 -1
  747. package/vendor/agent-cli/dist/src/session/client.d.ts +20 -0
  748. package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -1
  749. package/vendor/agent-cli/dist/src/session/client.js +28 -5
  750. package/vendor/agent-cli/dist/src/session/client.js.map +1 -1
  751. package/vendor/agent-cli/dist/src/session/custom-context.d.ts.map +1 -1
  752. package/vendor/agent-cli/dist/src/session/custom-context.js +12 -6
  753. package/vendor/agent-cli/dist/src/session/custom-context.js.map +1 -1
  754. package/vendor/agent-cli/dist/src/session/execution-recovery.d.ts +9 -0
  755. package/vendor/agent-cli/dist/src/session/execution-recovery.d.ts.map +1 -0
  756. package/vendor/agent-cli/dist/src/session/execution-recovery.js +49 -0
  757. package/vendor/agent-cli/dist/src/session/execution-recovery.js.map +1 -0
  758. package/vendor/agent-cli/dist/src/session/expert-definition.d.ts +4 -0
  759. package/vendor/agent-cli/dist/src/session/expert-definition.d.ts.map +1 -0
  760. package/vendor/agent-cli/dist/src/session/expert-definition.js +20 -0
  761. package/vendor/agent-cli/dist/src/session/expert-definition.js.map +1 -0
  762. package/vendor/agent-cli/dist/src/session/link-config.js +1 -1
  763. package/vendor/agent-cli/dist/src/session/link-config.js.map +1 -1
  764. package/vendor/agent-cli/dist/src/session/link-session.d.ts +1 -0
  765. package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -1
  766. package/vendor/agent-cli/dist/src/session/link-session.js +19 -2
  767. package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -1
  768. package/vendor/agent-cli/dist/src/session/process-environment.d.ts.map +1 -1
  769. package/vendor/agent-cli/dist/src/session/process-environment.js +11 -0
  770. package/vendor/agent-cli/dist/src/session/process-environment.js.map +1 -1
  771. package/vendor/agent-cli/dist/src/session/process-lifecycle.d.ts +5 -0
  772. package/vendor/agent-cli/dist/src/session/process-lifecycle.d.ts.map +1 -0
  773. package/vendor/agent-cli/dist/src/session/process-lifecycle.js +18 -0
  774. package/vendor/agent-cli/dist/src/session/process-lifecycle.js.map +1 -0
  775. package/vendor/agent-cli/dist/src/session/process-observability.d.ts +4 -0
  776. package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +1 -0
  777. package/vendor/agent-cli/dist/src/session/process-observability.js +14 -0
  778. package/vendor/agent-cli/dist/src/session/process-observability.js.map +1 -0
  779. package/vendor/agent-cli/dist/src/session/process-request.d.ts +7 -6
  780. package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -1
  781. package/vendor/agent-cli/dist/src/session/process-request.js +66 -87
  782. package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -1
  783. package/vendor/agent-cli/dist/src/session/process-restore.d.ts +4 -0
  784. package/vendor/agent-cli/dist/src/session/process-restore.d.ts.map +1 -0
  785. package/vendor/agent-cli/dist/src/session/process-restore.js +21 -0
  786. package/vendor/agent-cli/dist/src/session/process-restore.js.map +1 -0
  787. package/vendor/agent-cli/dist/src/session/process-summary-output.d.ts +15 -0
  788. package/vendor/agent-cli/dist/src/session/process-summary-output.d.ts.map +1 -0
  789. package/vendor/agent-cli/dist/src/session/process-summary-output.js +46 -0
  790. package/vendor/agent-cli/dist/src/session/process-summary-output.js.map +1 -0
  791. package/vendor/agent-cli/dist/src/session/process-workspace.d.ts +3 -0
  792. package/vendor/agent-cli/dist/src/session/process-workspace.d.ts.map +1 -0
  793. package/vendor/agent-cli/dist/src/session/process-workspace.js +21 -0
  794. package/vendor/agent-cli/dist/src/session/process-workspace.js.map +1 -0
  795. package/vendor/agent-cli/dist/src/session/reference-tools.d.ts.map +1 -1
  796. package/vendor/agent-cli/dist/src/session/reference-tools.js +3 -2
  797. package/vendor/agent-cli/dist/src/session/reference-tools.js.map +1 -1
  798. package/vendor/agent-cli/dist/src/session/run-setup.d.ts +2 -0
  799. package/vendor/agent-cli/dist/src/session/run-setup.d.ts.map +1 -1
  800. package/vendor/agent-cli/dist/src/session/run-setup.js +35 -14
  801. package/vendor/agent-cli/dist/src/session/run-setup.js.map +1 -1
  802. package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +5 -0
  803. package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -1
  804. package/vendor/agent-cli/dist/src/session/run-start-body.js +13 -1
  805. package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -1
  806. package/vendor/agent-cli/dist/src/session/team-persistence.js +1 -1
  807. package/vendor/agent-cli/dist/src/session/team-persistence.js.map +1 -1
  808. package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts.map +1 -1
  809. package/vendor/agent-cli/dist/src/session/tool-scheduler.js +33 -23
  810. package/vendor/agent-cli/dist/src/session/tool-scheduler.js.map +1 -1
  811. package/vendor/agent-cli/dist/src/session/user-choice-policy.d.ts +25 -0
  812. package/vendor/agent-cli/dist/src/session/user-choice-policy.d.ts.map +1 -0
  813. package/vendor/agent-cli/dist/src/session/user-choice-policy.js +70 -0
  814. package/vendor/agent-cli/dist/src/session/user-choice-policy.js.map +1 -0
  815. package/vendor/agent-cli/dist/src/session/user-choice.d.ts +3 -2
  816. package/vendor/agent-cli/dist/src/session/user-choice.d.ts.map +1 -1
  817. package/vendor/agent-cli/dist/src/session/user-choice.js +30 -9
  818. package/vendor/agent-cli/dist/src/session/user-choice.js.map +1 -1
  819. package/vendor/agent-cli/dist/src/session/user-skill-compatibility.d.ts +4 -0
  820. package/vendor/agent-cli/dist/src/session/user-skill-compatibility.d.ts.map +1 -0
  821. package/vendor/agent-cli/dist/src/session/user-skill-compatibility.js +25 -0
  822. package/vendor/agent-cli/dist/src/session/user-skill-compatibility.js.map +1 -0
  823. package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts.map +1 -1
  824. package/vendor/agent-cli/dist/src/session/user-skill-loaded.js +2 -1
  825. package/vendor/agent-cli/dist/src/session/user-skill-loaded.js.map +1 -1
  826. package/vendor/agent-cli/dist/src/session/user-skill-prompt.d.ts +4 -0
  827. package/vendor/agent-cli/dist/src/session/user-skill-prompt.d.ts.map +1 -0
  828. package/vendor/agent-cli/dist/src/session/user-skill-prompt.js +15 -0
  829. package/vendor/agent-cli/dist/src/session/user-skill-prompt.js.map +1 -0
  830. package/vendor/agent-cli/dist/src/shared/replace-file.d.ts +3 -0
  831. package/vendor/agent-cli/dist/src/shared/replace-file.d.ts.map +1 -0
  832. package/vendor/agent-cli/dist/src/shared/replace-file.js +34 -0
  833. package/vendor/agent-cli/dist/src/shared/replace-file.js.map +1 -0
  834. package/vendor/agent-cli/dist/src/shared/types.d.ts +55 -4
  835. package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -1
  836. package/vendor/agent-cli/dist/src/shared/user-choice.d.ts +21 -2
  837. package/vendor/agent-cli/dist/src/shared/user-choice.d.ts.map +1 -1
  838. package/vendor/agent-cli/dist/src/tools/command-executor.d.ts +3 -0
  839. package/vendor/agent-cli/dist/src/tools/command-executor.d.ts.map +1 -1
  840. package/vendor/agent-cli/dist/src/tools/command-executor.js +42 -5
  841. package/vendor/agent-cli/dist/src/tools/command-executor.js.map +1 -1
  842. package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -1
  843. package/vendor/agent-cli/dist/src/tools/context-program.js +46 -20
  844. package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -1
  845. package/vendor/agent-cli/dist/src/tools/file-ops.d.ts +10 -19
  846. package/vendor/agent-cli/dist/src/tools/file-ops.d.ts.map +1 -1
  847. package/vendor/agent-cli/dist/src/tools/file-ops.js +11 -85
  848. package/vendor/agent-cli/dist/src/tools/file-ops.js.map +1 -1
  849. package/vendor/agent-cli/dist/src/tools/file-search.d.ts +29 -0
  850. package/vendor/agent-cli/dist/src/tools/file-search.d.ts.map +1 -0
  851. package/vendor/agent-cli/dist/src/tools/file-search.js +98 -0
  852. package/vendor/agent-cli/dist/src/tools/file-search.js.map +1 -0
  853. package/vendor/agent-cli/dist/src/tools/file-stat.d.ts +9 -0
  854. package/vendor/agent-cli/dist/src/tools/file-stat.d.ts.map +1 -0
  855. package/vendor/agent-cli/dist/src/tools/file-stat.js +29 -0
  856. package/vendor/agent-cli/dist/src/tools/file-stat.js.map +1 -0
  857. package/vendor/agent-cli/dist/src/tools/local-hands.d.ts.map +1 -1
  858. package/vendor/agent-cli/dist/src/tools/local-hands.js +10 -2
  859. package/vendor/agent-cli/dist/src/tools/local-hands.js.map +1 -1
  860. package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts +3 -0
  861. package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts.map +1 -1
  862. package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js +3 -0
  863. package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js.map +1 -1
  864. package/resources/js/context/CLAUDE.md +0 -54
  865. package/resources/js/context/agents/aigc-manager.md +0 -91
  866. package/resources/js/context/knowledge/GameProbe.md +0 -74
  867. package/resources/js/context/skills/aigc-generate/scripts/apply-results.mjs +0 -83
  868. package/resources/js/context/skills/aigc-generate/scripts/config.json +0 -29
  869. package/resources/js/context/skills/aigc-generate/scripts/generate.mjs +0 -1016
  870. package/resources/js/context/skills/aigc-generate/scripts/lib/client.mjs +0 -228
  871. package/resources/js/context/skills/aigc-generate/scripts/lib/ledger.mjs +0 -119
  872. package/resources/js/context/skills/aigc-generate/scripts/lib/nstep-handoff.mjs +0 -100
  873. package/resources/js/context/skills/aigc-generate/scripts/lib/pipelines.mjs +0 -441
  874. package/resources/js/context/skills/aigc-generate/scripts/lib/queue.mjs +0 -283
  875. package/resources/js/context/skills/aigc-generate/scripts/lib/submit.mjs +0 -122
  876. package/resources/js/context/skills/aigc-generate/scripts/worker.mjs +0 -171
  877. package/resources/js/context/skills/asset-search/scripts/recalled_sprite_paths.mjs +0 -47
  878. package/resources/js/context/skills/asset-search/strategies/character2d.md +0 -33
  879. package/resources/js/context/skills/asset-search/strategies/texture-ui.md +0 -35
  880. package/resources/js/context/skills/display-info-setup/SKILL.md +0 -32
  881. package/resources/js/context/skills/display-info-setup/scripts/init_project.mjs +0 -38
  882. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
  883. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
  884. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
  885. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
  886. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
  887. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/release.json +0 -37
  888. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
  889. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
  890. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
  891. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
  892. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
  893. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
  894. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
  895. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
  896. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
  897. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
  898. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
  899. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
  900. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
  901. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
  902. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
  903. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
  904. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
  905. package/resources/js/context/skills/platform-services/assets/release.json +0 -44
  906. package/resources/js/project/.gitattributes +0 -2
  907. package/resources/js/project/gameplay-probe.json +0 -37
  908. package/resources/js/project/package-lock.json +0 -1155
  909. package/resources/js3d/context/CLAUDE.md +0 -50
  910. package/resources/js3d/context/skills/aigc-integration/scripts/config.json +0 -3
  911. package/resources/js3d/context/skills/aigc-integration/scripts/lib/submit.mjs +0 -344
  912. package/resources/js3d/context/skills/aigc-integration/scripts/query-music.mjs +0 -53
  913. package/resources/js3d/context/skills/aigc-integration/scripts/query-results.mjs +0 -53
  914. package/resources/js3d/context/skills/aigc-integration/scripts/submit-cover.mjs +0 -44
  915. package/resources/js3d/context/skills/aigc-integration/scripts/submit-image.mjs +0 -48
  916. package/resources/js3d/context/skills/aigc-integration/scripts/submit-music.mjs +0 -34
  917. package/resources/js3d/context/skills/aigc-integration/scripts/submit-staticmesh.mjs +0 -39
  918. package/resources/js3d/context/skills/platform-services/assets/release.json +0 -44
  919. package/resources/js3d/project/.gitattributes +0 -2
  920. package/resources/js3d/project/gameplay-probe.json +0 -38
  921. package/resources/js3d/project/package-lock.json +0 -1204
  922. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.test.mjs +0 -25
@@ -1,106 +1,140 @@
1
- # 移动端验收
2
-
3
- ## 强制平台:`?launchPlatform=pc|mobile`
4
-
5
- ```
6
- http://localhost:5173/?launchPlatform=mobile # 本地强制移动端
7
- http://localhost:5173/?launchPlatform=pc # 本地强制 PC
8
- ```
9
-
10
- 判定优先级见 [`input-platform.ts`](../assets/example/src/input/input-platform.ts):
11
- 显式注入 → `wx` → `?launchPlatform` → 触摸能力 + `(pointer: coarse)`。
12
-
13
- **为什么必须有这个开关**:自动化验收与真机复现都要能**确定性地**进入移动端形态。
14
- 只靠设备检测,验证者只能在真机上试,无法在 CI 或桌面上回归;
15
- 而且一旦有人绕过它自行判定,验收门禁会直接失效(典型症状:铺了移动端 HUD 但没有摇杆)。
16
-
17
- 因此:
18
-
19
- - **业务代码禁止自行判定平台**:不用 `navigator.maxTouchPoints` / `userAgent` / `ontouchstart`,
20
- 不读 `window.matchMedia('(pointer: coarse)')` 做功能分支。
21
- - **禁止在每帧里读平台**:`getInputPlatform()` 只在构建期调用一次并缓存结果
22
- (插拔鼠标、旋转设备都不重算)。逐帧读取一律走语义接口。
23
- - 桌面浏览器用 DevTools 设备模拟时 `(pointer: coarse)` 会命中,多数情况下能自动判为 mobile;
24
- 但只要结论会影响验收,就显式带参数,不要依赖隐式检测。
25
-
26
- ## 必查清单
27
-
28
- 改完移动端输入后逐条过:
29
-
30
- 1. `?launchPlatform=mobile` 打开,`#game` 上有 `data-platform="mobile"`。
31
- 2. 摇杆:按下左半屏任意位置,底盘出现在手指落点;拖动可移动;抬手后摇杆归零、底盘隐藏。
32
- 3. 动作按钮:按下即响应,按下态有视觉反馈;一根手指按住按钮、另一根手指拖摇杆,两者互不干扰。
33
- 4. 触点仲裁:按住动作按钮拖动,视角**不转动**;拖摇杆时手指划过按钮,按钮**不触发**。
34
- 5. 视角滑动区(若配了 `looks`):右半屏空白处拖动可转视角;空白处轻点不会莫名转视角(起手死区生效)。
35
- 6. 面板与控件:打开模态面板后虚拟控件不可点(被遮罩挡住或 `setControlsVisible(false)` 关掉),
36
- 关掉面板后控件恢复;**没有按钮卡在按下态**。
37
- 7. 转屏:横竖屏切换后控件仍在可点区域,位置不跑到屏幕外。
38
- 8. 尺寸:按钮与摇杆的物理大小在不同设备上一致(设计像素 × 短边缩放),不是「按 canvas 像素算」。
39
- 9. PC 分支未被破坏:`?launchPlatform=pc` 下键鼠操作与改造前一致;虚拟控件完全不创建。
40
- 10. 无残留:切场景 / 重开一局后,`input.dispose()` 或 `setControlsVisible(false)` 已把
41
- 按键、触点、摇杆读数清干净(否则新一局开局就在移动)。
42
- 11. 上下文交互按钮(若有):靠近目标才出现、离开即消失,**开局不闪一下**;文案随目标切换;
43
- **按住按钮时让它消失(走出交互范围),松手后动作不会一直触发**;
44
- `?launchPlatform=pc` 下同一动作的键位照常可用,不受按钮显隐影响。
45
- 12. 摇杆底盘跟手:**在桌面浏览器用鼠标左键**按下左半屏(`?launchPlatform=mobile`),
46
- 底盘必须出现在**落点**而不是屏幕角上 —— 这条要专门用鼠标测,
47
- 因为真机(`pointerType='touch'`)走的是另一条判定分支,只在真机上看会漏掉。
48
- 右键按下则**不应**出现底盘(与 `createJoystick` 的门槛一致)。
49
-
50
- > **PC look 通道要测两种锁定状态。** 若业务调了 `requestPointerLock()`,
51
- > 必须**分别**在「已锁定」与「未锁定」下各拖一次视角 —— 这是两条完全不同的代码路径
52
- > (`movementX/Y` vs 坐标差),只测一种必然漏。
53
- > 用合成 `PointerEvent` 做自动化时注意:**`movementX` 默认为 0**,
54
- > 锁定态下会测出假的「无反应」,要么显式传 `movementX`,要么先 `exitPointerLock()`。
55
-
56
- ## 症状 → 根因
57
-
58
- | 症状 | 根因 |
59
- |---|---|
60
- | 铺了移动端 HUD 但看不到摇杆 | 业务自判平台绕过了 `?launchPlatform`;或 `mobile.type` 写错被跳过(看 warn) |
61
- | `?launchPlatform=mobile` 无效 | 参数在平台判定之前被别的代码消费/覆盖,或判定结果被缓存后又改写 |
62
- | 能拖动但视角不转 | `look` 通道读了两遍(消费型,第二次恒为 0);或 `getLookDelta` 放在了 `sample()` 之前/之外 |
63
- | 拖摇杆时视角也转 | 滑动区与摇杆区重叠;或另挂了全屏的相机拖拽/`OrbitControls` 类逻辑 |
64
- | 按按钮时视角也在转 | 按钮没有排在滑动区之后(DOM 顺序 = 命中优先级),触点到不了按钮 |
65
- | 方向扇偏在底盘右下方、尖角跑到屏幕外 | CSS 里漏了初始 `transform: translate(-50%, -50%)`。JS 只在越过死区时才写内联 transform,在那之前元素以左上角对齐 `left/top: 50%` |
66
- | 死区圆环从不出现 / 一按下就出现 | 判据用了 `value.active`(只表示有触点)。「越过死区」要判 `value.x !== 0 || value.y !== 0` |
67
- | 方向扇转向与手指方向镜像(上下颠倒) | 对 `atan2` 的 y 取了负。CSS rotate 与屏幕 y 轴同为「顺时针 / 下为正」,直接用 `atan2(y, x)` |
68
- | 控件变成看不见的透明区域 / 只剩文字(能点但看不到按钮) | 切图皮肤只写了 `background: url(...)` 没留兜底渐变,CDN 不可达时整层没了。皮肤规则一律写成「切图图层 + 渐变兜底」的多背景 |
69
- | 按压态颜色和设计稿对不上(比如灰色变成纯蓝) | 切图是半透明的,兜底层的颜色透上来了。**兜底色必须与切图同色系** |
70
- | PC 上视角完全转不动 —— 尤其是业务调了 `requestPointerLock()` 之后 | 指针锁定态下浏览器把 `clientX/Y` **冻结**在锁定时的坐标、且不再派发 `pointerdown`,只读坐标差的实现会恒得 0。LookPad 必须在锁定态改用 `movementX/Y`,并且 `requireButton: null` 时免 `pointerdown` 直接跟踪移动 |
71
- | PC 上视角完全转不动,必须按住右键才转(配置明明写了 `requireButton: null`) | 输入层用 `look.pc?.requireButton ?? 2` 读默认值,`??` 把显式的 `null` 也吞掉了。必须显式判 `=== undefined`(范式里走 `pcLookRequireButton()`)|
72
- | 桌面 `?launchPlatform=mobile` 下摇杆能推、按钮能按,唯独右半屏拖不动视角 | 移动端 `createLookPad` 的 `pointerTypes` 漏了 `'mouse'`。桌面验收时指针类型仍是 mouse,而摇杆认鼠标左键、按钮不筛类型,于是只有 look 区失灵。应配 `['touch', 'pen', 'mouse']` + `requireButton: 0`(真机不产生 mouse 事件,无副作用) |
73
- | 摇杆底盘卡在左半屏左上角(只露出 1/4) | `followFloatingStick` 与 runtime `createJoystick` 的指针门槛不一致(如前者写 `pointerType === 'mouse'` 就 return,而后者接受鼠标左键):轴能推但底盘的 left/top 从不写入,`absolute` 退化为静态位置 (0,0) 叠加 `translate(-50%,-50%)`。**同一元素同一事件的多个 handler,门槛必须逐字一致** |
74
- | 摇杆推满却走得很慢 | 死区过大或 `radius` 的单位不是设计像素(`scale` 传了固定值) |
75
- | 角色方向与推杆方向不一致 | 在移动端对轴单独取反了。极性在输入边界统一为「右正 / 下正」,世界方向转换只在消费侧做一次 |
76
- | 触屏拖动被浏览器当成滚动 | 控件元素缺 `touch-action: none` |
77
- | 控件挡住了 3D 点选 / 场景交互 | 控件容器写了 `pointer-events: auto`(应只在可操作元素上设 auto) |
78
- | PC 上按键没反应 | 键名写了 `'A'` 而不是 `'KeyA'`(**控制台会有 `[input] 键名 …` 的 warn**);键盘监听挂在了不可聚焦的 canvas 上(应挂 `window`) |
79
- | PC 左键 / 右键没反应 | 鼠标键要写 `Mouse0` / `Mouse2` token,不是 `'MOUSE_LEFT'`,也不用自己接 `pointerdown` |
80
- | 按右键先弹出浏览器菜单 | 右键没有被登记为输入(`"pc": ["Mouse2"]` 或 `requireButton: 2`),所以输入层没有抑制 `contextmenu` |
81
- | 按一次右键既转向又触发了动作 | 右键同时给了 `looks.*.pc.requireButton: 2` 与某个 action 的 `Mouse2`,二选一 |
82
- | 松开鼠标后按键仍按住 | `blur` / `visibilitychange` 未清理;或模态弹出时未 `clear()` |
83
- | 松手后还在持续开火 | 鼠标抬起监听挂在了 canvas 上:按住后移出画布松手,canvas 收不到 `pointerup`(要挂 `window`) |
84
- | 瞄准镜按一下就弹回 / 要一直按住 | 该动作没写 `"mode": "toggle"`,`isDown()` 返回的是物理按下 |
85
- | 瞄准状态一帧内反复开关 | 业务自己又用 `wasPressed` 翻了一次 boolean,与框架锁存叠加 —— 删掉业务那份 |
86
- | toggle 按钮亮不起来(或按住才亮) | 自定义 CSS 把 `.is-latched` 写在了 `.is-pressed` **之前**,同特异度被盖掉 |
87
- | 开火按钮拖动不转视角 | 没配 `mobile.drag`;或 `drag.look` 指的通道没在 `looks` 里声明(控制台有 warn) |
88
- | 按住开火拖动时镜头猛甩一下 | 业务自己接了 `pointermove` 调 `feedLookDelta`,与 `mobile.drag` 双份注入 |
89
- | 交互按钮一直不出现 | 配了 `"hidden": true` 却没人调 `setActionButtonVisible(action, true)`;或动作名拼错(控制台有 `[input] setActionButtonVisible(…)` 的 warn) |
90
- | 开局闪一下交互按钮 | 配置漏了 `"hidden": true`,按钮先建出来才被业务第一帧收掉 |
91
- | 按钮消失后动作还在持续触发 | 业务自己改了 `.touch-btn` 的 `style.display`:`display:none` 不保证释放指针捕获,触点残留。改用 `setActionButtonVisible` |
92
- | 关掉暂停面板后交互按钮全冒出来 | 用 `setControlsVisible(true)` 顶替了单按钮显隐,或自己改 DOM 盖掉了 `is-hidden` |
93
- | 隐藏 toggle 按钮后锁存还开着 | 设计如此 —— `latched` 是两端共享的语义状态,UI 可见性不动它。要退出锁存调 `setToggle(action, false)` |
94
- | PC 上按不动某个动作 | 误以为 `setActionButtonVisible(false)` 会屏蔽键位而没写上下文判断 —— 它只管移动端按钮,PC 侧要业务自己判 |
95
- | 手机上点 3D 物体没反应 | 触点被滑动区/摇杆区消费(设计如此)。需要点选的玩法要把点选目标做成动作按钮,或限定未被消费的区域 |
96
-
97
- ## 反模式
98
-
99
- - ❌ `if (isMobile) { ... } else { ... }` 出现在玩法逻辑里 —— 玩法只读语义接口,PC 与移动端走同一条路径。
100
- - ❌ 为移动端单独写一套「移动速度更快 / 跳跃更高」的数值 —— 那是数值配置的事,不是输入分支。
101
- - ❌ 把虚拟控件做成 DOM 面板的一部分(`createButton` 之类)再自己接事件 —— 会与触点仲裁抢所有权。
102
- 玩法按钮属于输入层,界面按钮属于 UI 层,两者不要混。
103
- - ❌ 用 `setTimeout` 给按钮做「长按连发」而不检查触点是否还在同一控件上 —— 触点抬起/滑走必须停。
104
- - ❌ 把移动端控件写进 `configs/`,让它出现在玩家的参数面板里。
105
- - ❌ `document.querySelector('.touch-btn[data-action=…]')` 自己改 `display` / `textContent` ——
106
- 绕过了隐藏时的触点清理,也把内部 class 约定变成业务依赖。走 `setActionButtonVisible` / `setActionLabel`。
1
+ # 移动端验收
2
+
3
+ ## 强制平台:`?launchPlatform=pc|mobile`
4
+
5
+ ```
6
+ http://localhost:5173/?launchPlatform=mobile # 本地强制移动端
7
+ http://localhost:5173/?launchPlatform=pc # 本地强制 PC
8
+ ```
9
+
10
+ 判定优先级见 [`input-platform.ts`](../assets/example/src/input/input-platform.ts):
11
+ 显式注入 → `wx` → `?launchPlatform` → 触摸能力 + `(pointer: coarse)`。
12
+
13
+ **为什么必须有这个开关**:自动化验收与真机复现都要能**确定性地**进入移动端形态。
14
+ 只靠设备检测,验证者只能在真机上试,无法在 CI 或桌面上回归;
15
+ 而且一旦有人绕过它自行判定,验收门禁会直接失效(典型症状:铺了移动端 HUD 但没有摇杆)。
16
+
17
+ 因此:
18
+
19
+ - **业务代码禁止自行判定平台**:不用 `navigator.maxTouchPoints` / `userAgent` / `ontouchstart`,
20
+ 不读 `window.matchMedia('(pointer: coarse)')` 做功能分支。
21
+ - **禁止在每帧里读平台**:`getInputPlatform()` 只在构建期调用一次并缓存结果
22
+ (插拔鼠标、旋转设备都不重算)。逐帧读取一律走语义接口。
23
+ - 桌面浏览器用 DevTools 设备模拟时 `(pointer: coarse)` 会命中,多数情况下能自动判为 mobile;
24
+ 但只要结论会影响验收,就显式带参数,不要依赖隐式检测。
25
+
26
+ ## 必查清单
27
+
28
+ 改完移动端输入后逐条过:
29
+
30
+ 1. `?launchPlatform=mobile` 打开,`#game` 上有 `data-platform="mobile"`。
31
+ 2. 摇杆:按下左侧 50% 宽、下方 65% 高触发区内任意位置,底盘出现在手指落点;拖动可移动;抬手后摇杆归零、底盘隐藏。
32
+ 3. 动作按钮:按下即响应,按下态有视觉反馈;一根手指按住按钮、另一根手指拖摇杆,两者互不干扰。
33
+ 4. 触点仲裁:按住动作按钮拖动,视角**不转动**;拖摇杆时手指划过按钮,按钮**不触发**。
34
+ 5. 视角滑动区(若配了 `looks`):右半屏空白处拖动可转视角;空白处轻点不会莫名转视角(起手死区生效)。
35
+ 6. 面板与控件:打开模态面板后虚拟控件不可点(被遮罩挡住或 `setControlsVisible(false)` 关掉),
36
+ 关掉面板后控件恢复;**没有按钮卡在按下态**。
37
+ 7. 转屏:横竖屏切换后控件仍在可点区域,位置不跑到屏幕外。
38
+ 8. 尺寸:按 [显示尺寸与有效热区](input-config.md#显示尺寸与有效热区) 验收所有移动端交互控件,覆盖玩法、菜单及弹窗。目标小屏横竖屏、转屏后均测最终可见区域与有效热区:宽高至少 40 CSS px,圆形直径至少 40 CSS px。DOM 读取 `getBoundingClientRect()`,Canvas 将控件与命中范围换算到显示 CSS 坐标;另计外层宿主变换,并排除裁切、遮挡,不能把包围盒直接当作完整可用热区。检查中心与靠近边缘处点击、相邻控件误触和多指操作,记录视口、尺寸及结果。不足必须修复后再交付;未测范围不标通过。文字可读性与摇杆可操作范围另查,不以设计值、DPR 或物理尺寸承诺代替验证。
39
+ 9. PC 分支未被破坏:`?launchPlatform=pc` 下键鼠操作与改造前一致;虚拟控件完全不创建。
40
+ 10. 无残留:切场景 / 重开一局后,`input.dispose()` 或 `setControlsVisible(false)` 已把
41
+ 按键、触点、摇杆读数清干净(否则新一局开局就在移动)。
42
+ 11. 上下文交互按钮(若有):靠近目标才出现、离开即消失,**开局不闪一下**;文案随目标切换;
43
+ **按住按钮时让它消失(走出交互范围),松手后动作不会一直触发**;
44
+ `?launchPlatform=pc` 下同一动作的键位照常可用,不受按钮显隐影响。
45
+ 12. 摇杆底盘跟手:**在桌面浏览器用鼠标左键**按下左半屏(`?launchPlatform=mobile`),
46
+ 底盘必须出现在**落点**而不是屏幕角上 —— 这条要专门用鼠标测,
47
+ 因为真机(`pointerType='touch'`)走的是另一条判定分支,只在真机上看会漏掉。
48
+ 右键按下则**不应**出现底盘(与 `createJoystick` 的门槛一致)。
49
+
50
+ > **PC look 通道要测两种锁定状态。** 若业务调了 `requestPointerLock()`,
51
+ > 必须**分别**在「已锁定」与「未锁定」下各拖一次视角 —— 这是两条完全不同的代码路径
52
+ > (`movementX/Y` vs 坐标差),只测一种必然漏。
53
+ > 用合成 `PointerEvent` 做自动化时注意:**`movementX` 默认为 0**,
54
+ > 锁定态下会测出假的「无反应」,要么显式传 `movementX`,要么先 `exitPointerLock()`。
55
+
56
+ ## 症状 → 根因
57
+
58
+ | 症状 | 根因 |
59
+ |---|---|
60
+ | 铺了移动端 HUD 但看不到摇杆 | 业务自判平台绕过了 `?launchPlatform`;或 `mobile.type` 写错被跳过(看 warn) |
61
+ | `?launchPlatform=mobile` 无效 | 参数在平台判定之前被别的代码消费/覆盖,或判定结果被缓存后又改写 |
62
+ | 能拖动但视角不转 | `look` 通道读了两遍(消费型,第二次恒为 0);或 `getLookDelta` 放在了 `sample()` 之前/之外 |
63
+ | 拖摇杆时视角也转 | 滑动区与摇杆区重叠;或另挂了全屏的相机拖拽/`OrbitControls` 类逻辑 |
64
+ | 按按钮时视角也在转 | 按钮没有排在滑动区之后(DOM 顺序 = 命中优先级),触点到不了按钮 |
65
+ | 方向扇偏在底盘右下方、尖角跑到屏幕外 | CSS 里漏了初始 `transform: translate(-50%, -50%)`。JS 只在越过死区时才写内联 transform,在那之前元素以左上角对齐 `left/top: 50%` |
66
+ | 死区圆环从不出现 / 一按下就出现 | 判据用了 `value.active`(只表示有触点)。「越过死区」要判 `value.x !== 0 || value.y !== 0` |
67
+ | 方向扇转向与手指方向镜像(上下颠倒) | 对 `atan2` 的 y 取了负。CSS rotate 与屏幕 y 轴同为「顺时针 / 下为正」,直接用 `atan2(y, x)` |
68
+ | 控件变成看不见的透明区域 / 只剩文字(能点但看不到按钮) | 切图皮肤只写了 `background: url(...)` 没留兜底渐变,CDN 不可达时整层没了。皮肤规则一律写成「切图图层 + 渐变兜底」的多背景 |
69
+ | 按压态颜色和设计稿对不上(比如灰色变成纯蓝) | 切图是半透明的,兜底层的颜色透上来了。**兜底色必须与切图同色系** |
70
+ | PC 上视角完全转不动 —— 尤其是业务调了 `requestPointerLock()` 之后 | 指针锁定态下浏览器把 `clientX/Y` **冻结**在锁定时的坐标、且不再派发 `pointerdown`,只读坐标差的实现会恒得 0。LookPad 必须在锁定态改用 `movementX/Y`,并且 `requireButton: null` 时免 `pointerdown` 直接跟踪移动 |
71
+ | PC 上视角完全转不动,必须按住右键才转(配置明明写了 `requireButton: null`) | 输入层用 `look.pc?.requireButton ?? 2` 读默认值,`??` 把显式的 `null` 也吞掉了。必须显式判 `=== undefined`(范式里走 `pcLookRequireButton()`)|
72
+ | 桌面 `?launchPlatform=mobile` 下摇杆能推、按钮能按,唯独右半屏拖不动视角 | 移动端 `createLookPad` 的 `pointerTypes` 漏了 `'mouse'`。桌面验收时指针类型仍是 mouse,而摇杆认鼠标左键、按钮不筛类型,于是只有 look 区失灵。应配 `['touch', 'pen', 'mouse']` + `requireButton: 0`(真机不产生 mouse 事件,无副作用) |
73
+ | 摇杆底盘与手指落点不一致 | 检查是否通过 `createJoystick.onStart` 定位,是否使用 zone 的矩形与当前 UI 缩放换算;不要额外监听 pointerdown,否则第二指可能重定位。 |
74
+ | 摇杆推满却走得很慢 | 死区过大或 `radius` 的单位不是设计像素(`scale` 传了固定值) |
75
+ | 角色方向与推杆方向不一致 | 在移动端对轴单独取反了。极性在输入边界统一为「右正 / 下正」,世界方向转换只在消费侧做一次 |
76
+ | 触屏拖动被浏览器当成滚动 | 控件元素缺 `touch-action: none` |
77
+ | 控件挡住了 3D 点选 / 场景交互 | 控件容器写了 `pointer-events: auto`(应只在可操作元素上设 auto) |
78
+ | PC 上按键没反应 | 键名写了 `'A'` 而不是 `'KeyA'`(**控制台会有 `[input] 键名 …` 的 warn**);键盘监听挂在了不可聚焦的 canvas 上(应挂 `window`) |
79
+ | PC 左键 / 右键没反应 | 鼠标键要写 `Mouse0` / `Mouse2` token,不是 `'MOUSE_LEFT'`,也不用自己接 `pointerdown` |
80
+ | 按右键先弹出浏览器菜单 | 右键没有被登记为输入(`"pc": ["Mouse2"]` 或 `requireButton: 2`),所以输入层没有抑制 `contextmenu` |
81
+ | 按一次右键既转向又触发了动作 | 右键同时给了 `looks.*.pc.requireButton: 2` 与某个 action 的 `Mouse2`,二选一 |
82
+ | 松开鼠标后按键仍按住 | `blur` / `visibilitychange` 未清理;或模态弹出时未 `clear()` |
83
+ | 松手后还在持续开火 | 鼠标抬起监听挂在了 canvas 上:按住后移出画布松手,canvas 收不到 `pointerup`(要挂 `window`) |
84
+ | 瞄准镜按一下就弹回 / 要一直按住 | 该动作没写 `"mode": "toggle"`,`isDown()` 返回的是物理按下 |
85
+ | 瞄准状态一帧内反复开关 | 业务自己又用 `wasPressed` 翻了一次 boolean,与框架锁存叠加 —— 删掉业务那份 |
86
+ | toggle 按钮亮不起来(或按住才亮) | 自定义 CSS 把 `.is-latched` 写在了 `.is-pressed` **之前**,同特异度被盖掉 |
87
+ | 开火按钮拖动不转视角 | 没配 `mobile.drag`;或 `drag.look` 指的通道没在 `looks` 里声明(控制台有 warn) |
88
+ | 按住开火拖动时镜头猛甩一下 | 业务自己接了 `pointermove` 调 `feedLookDelta`,与 `mobile.drag` 双份注入 |
89
+ | 交互按钮一直不出现 | 配了 `"hidden": true` 却没人调 `setActionButtonVisible(action, true)`;或动作名拼错(控制台有 `[input] setActionButtonVisible(…)` 的 warn) |
90
+ | 开局闪一下交互按钮 | 配置漏了 `"hidden": true`,按钮先建出来才被业务第一帧收掉 |
91
+ | 按钮消失后动作还在持续触发 | 业务自己改了 `.touch-btn` 的 `style.display`:`display:none` 不保证释放指针捕获,触点残留。改用 `setActionButtonVisible` |
92
+ | 关掉暂停面板后交互按钮全冒出来 | 用 `setControlsVisible(true)` 顶替了单按钮显隐,或自己改 DOM 盖掉了 `is-hidden` |
93
+ | 隐藏 toggle 按钮后锁存还开着 | 设计如此 —— `latched` 是两端共享的语义状态,UI 可见性不动它。要退出锁存调 `setToggle(action, false)` |
94
+ | PC 上按不动某个动作 | 误以为 `setActionButtonVisible(false)` 会屏蔽键位而没写上下文判断 —— 它只管移动端按钮,PC 侧要业务自己判 |
95
+ | 手机上点 3D 物体没反应 | 触点被滑动区/摇杆区消费(设计如此)。需要点选的玩法要把点选目标做成动作按钮,或限定未被消费的区域 |
96
+
97
+ ## 反模式
98
+
99
+ - ❌ `if (isMobile) { ... } else { ... }` 出现在玩法逻辑里 —— 玩法只读语义接口,PC 与移动端走同一条路径。
100
+ - ❌ 为移动端单独写一套「移动速度更快 / 跳跃更高」的数值 —— 那是数值配置的事,不是输入分支。
101
+ - ❌ 把虚拟控件做成 DOM 面板的一部分(`createButton` 之类)再自己接事件 —— 会与触点仲裁抢所有权。
102
+ 玩法按钮属于输入层,界面按钮属于 UI 层,两者不要混。
103
+ - ❌ 用 `setTimeout` 给按钮做「长按连发」而不检查触点是否还在同一控件上 —— 触点抬起/滑走必须停。
104
+ - ❌ 把移动端控件写进 `configs/`,让它出现在玩家的参数面板里。
105
+ - ❌ `document.querySelector('.touch-btn[data-action=…]')` 自己改 `display` / `textContent` ——
106
+ 绕过了隐藏时的触点清理,也把内部 class 约定变成业务依赖。走 `setActionButtonVisible` / `setActionLabel`。
107
+
108
+ ## 设备遮挡与回归补验
109
+
110
+ - `?launchPlatform=mobile` 仅强制输入分支,不模拟真实刘海、宿主操作区或老 WebView。设备遮挡按 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/device-safe-area.md` 处理。
111
+ - 适配位置改变后检查实际命中区:按钮中心/边缘可点,摇杆拖出后松手不残留;不要只核对图标位置。
112
+ - 同一会话中转屏/折叠、开关弹窗再操作,检查控件与玩法区域不被遮挡、触点仲裁和暂停恢复仍正常。沿用已有语义输入和显隐 API,不另建监听。
113
+ - 选中边框先区分调试热区、触摸高亮和键盘焦点;按控件定向处理,保留必要的 focus-visible 反馈。
114
+ - 收到 QA 回归异常时加载 `mobile-compat-qa`,按原问题 ID 与验证版本记录;本地输入验收通过不等于真机 QA 通过。
115
+
116
+ 按本次支持渠道和改动选择以下相关场景,不因普通无关修改重跑全量矩阵。每项记录已执行、未执行或不适用及原因:
117
+
118
+ | 场景 | 补验对象与结论边界 |
119
+ |---|---|
120
+ | 宿主返回等控件覆盖 | 按钮完整热区、展示型 HUD 与 Canvas HUD 均不被挡,背景仍铺满;记录真实宿主及遮挡依据,依据缺失不写安全区全通过 |
121
+ | 方向提示、退出确认覆盖及返回 | 检查残留移动/开火、重复音频与异常计时;无可观察结果或缺少宿主活跃通知时保留未验证,不只看是否重载 |
122
+ | 小尺寸或父层变换 | 按 `input-config.md` 核对最终尺寸、边缘命中与相邻误触,最外层缩放/旋转未知时保留对应范围 |
123
+ | 浏览器手势 | 游戏拖动不被滚动/缩放抢占,正常滚动区域仍可用;pointer/touch/mouse 不重复触发,取消后输入归零 |
124
+ | 首次音频、静音与恢复 | 依据 `web-audio.md` 检查播放被拒、静音保持、重试与恢复,玩法/ready 不受阻;不将单设备结果扩大到全部 WebView |
125
+ | 内部 HUD、面板与动态控件 | 检查互压、关键玩法区域和透明区域抢触摸;弹窗开关、动态文字及面板打开时转屏后,视觉与输入均正常,不只靠截图 |
126
+ | 后台、锁屏、重入与资源失败 | 按 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-lifecycle.md` 核对输入释放、时间跳变、重复循环/音轨和失败重试;仅对可观察路径作结论 |
127
+ | WebGL 运行中断 | 适用项目核对引擎恢复或可读提示与可控重试,以及业务状态;未实际触发不写已通过 |
128
+ | 性能故障或目标 | 按 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-performance.md` 比较同场景指标及持续运行,不以平均 FPS 或代码改动推断已改善 |
129
+ | 合规表单与软键盘 | 仅在当前功能规则允许且实际存在时,按 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-form-input.md` 检查组合输入、提交/取消、快捷键门控及收起后的状态恢复;无合规场景标不适用 |
130
+
131
+ 证据写入已有问题记录或交付说明:注明游戏版本、实际机型/系统、浏览器或 App/宿主及可取得的内核版本、屏幕/容器尺寸和相关显示状态、覆盖页面与操作、观察结果及证据、未验证或受阻范围;未知项标未知。按实际渠道选择手机浏览器、App WebView 与 PC 回归。
132
+
133
+ 与故障相关时补冷/热启动、网络/缓存、场景、逻辑/CSS/backing 尺寸、DPR、画质、重复次数与运行时长;持续和重复验证按问题安排,不统一要求固定次数或时长。最低支持版本、低端机范围及热区/性能阈值须有已确认目标。规则更新完成、游戏本地验证和目标宿主真机通过分别陈述,已有人工 QA 证据仅用于其实际版本与范围。
134
+
135
+ ### 浮动摇杆回归
136
+
137
+ - 在触发区中心、边缘分别按下,底盘中心与落点重合,按下瞬间轴为零;顶部 35% 与右半屏按下不激活摇杆。
138
+ - 第一指拖动时第二指在区内按下、移动、抬起,原点和底盘均不跳动;右侧按钮仍可独立操作。
139
+ - 拖出区域后松手、pointercancel、lostpointercapture、失焦均归零;再次按下使用新的落点。
140
+ - 在带偏移、缩放的 UI 容器中检查落点对齐;底盘超出区域的装饰不可扩大触发范围。
@@ -0,0 +1,11 @@
1
+ # 移动 Web 音频启动与恢复
2
+
3
+ 首次接入移动端有声音频,或排查首次播放、静音和恢复故障时读取。先核对项目实际使用的 Three.js 或浏览器音频实现及解锁行为,已有能力直接复用,不另建 AudioManager 或重复的全局监听。
4
+
5
+ - 素材加载完成不代表浏览器当前允许有声播放。预览、首帧和 `markReady` 仍按 `${CRAFT_CONTEXT_DIR}/knowledge/Runtime.md`;音频解锁与播放失败不能阻塞 ready 或核心玩法,也不用于伪造加载进度。
6
+ - 需要真实用户交互时复用已有开始或声音操作入口;不强制所有游戏增加开始按钮或声音弹窗。按实际音频实现处理播放拒绝、解锁和恢复失败,保留继续游玩及适用的重试路径。
7
+ - 尊重玩家静音选择,恢复时不擅自打开声音,不重复创建音轨或叠播 BGM。
8
+ - 暂停、重开、切场景与页面恢复沿当前生命周期处理;与计时、清理有关的规则见 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-lifecycle.md`。音频解锁不表示运动、摄像头或麦克风已获授权。
9
+ - 宿主只隐藏 iframe 而没有对应通知时,不假定游戏收到暂停事件;按实际可观察路径处理并记录未覆盖范围。不编造平台音频 API,不回引旧版 runtime 音频工具。
10
+
11
+ 验收按 [verification.md](verification.md) 的相关场景执行;无音频工作不要求读取本页。
@@ -0,0 +1,53 @@
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`,复用项目已有实现,不以音频阻塞 ready |
32
+ | 后台/锁屏恢复异常、重入残留或运行中断 | 可观察生命周期、时间基准、owner 与清理 | 读 `${CRAFT_SKILL_DIR}/references/web-lifecycle.md`,不假定宿主有活跃通知 |
33
+ | 卡顿、发热、资源压力或明确性能目标 | 目标设备同场景数据、资源与绘制成本 | 按需读 `${CRAFT_SKILL_DIR}/references/web-performance.md`,不自动降低画质或修改公共 renderer |
34
+ | 已有合规表单的键盘遮挡/焦点故障 | 当前功能限制、焦点与 resize/display 链 | 确认可用后读 `${CRAFT_SKILL_DIR}/references/web-form-input.md`;无合规场景标不适用,不绕过联机进房限制 |
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 反馈。人类监督提供的验收口径和真机结果是有效证据,不以缺少自动化结果否定它,也不将其扩大为全部设备/所有问题通过。未验证、工具受阻、平台待处理均保留,不写成通过。
@@ -0,0 +1,23 @@
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
+ 修复后针对报错路径复验构建产物;源码没有高版本语法不代表外部脚本也兼容。无法得到内核或真机证据时给出已查证部分及下一步所需信息,不宣称黑屏已根治。
@@ -0,0 +1,10 @@
1
+ # 软键盘与表单(条件适用)
2
+
3
+ 只为已有、平台允许且本次实际涉及的游戏表单读取。先核对根规则及当前功能规则;`${CRAFT_CONTEXT_DIR}/rules/MultiplayerRoomEntryUX.md` 禁止房间名、房间号、邀请码和数字输码页,不能以适配为由绕过。没有合规表单则标不适用,不新增自定义命名或自由打字功能;宿主页表单不属于本技能修改范围。
4
+
5
+ - 检查焦点、输入法组合输入、提交与取消;组合输入期间不把中间按键误当提交。键盘打开时,输入框和主要操作仍可见可达。
6
+ - 输入文字期间沿已有门控暂停玩法快捷键,结束输入后恢复;不另接一套全局键盘监听。
7
+ - 键盘引起的容器变化沿原 resize/display 链处理,收起后恢复布局、命中及业务状态,不重建关卡、清分或重置位置。
8
+ - iframe 的 `innerHeight` 不能代表顶层键盘高度;顶层 VisualViewport 或宿主页配合缺失时单列 Web 基建问题,不编造 SDK 数据或宣称已完成全链路恢复。
9
+
10
+ 实际输入、提交、取消及收起后的操作统一按 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 补验;没有条件验证的设备/宿主保留未验证。
@@ -0,0 +1,20 @@
1
+ # 移动 Web 生命周期与运行中断
2
+
3
+ 实现或排查暂停、后台恢复、重入、资源失败及适用的 WebGL 中断时读取。Three.js 游戏的循环、输入和资源由当前 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。
17
+ - 仅对已使用且平台允许的设备能力,核对拒绝、不支持、暂时中断及替代操作。授权成功不等于硬件一定可用,授权不阻塞首帧;普通游戏不因此新增摄像头、麦克风、倾斜或震动。
18
+ - 保留 `${CRAFT_CONTEXT_DIR}/knowledge/Runtime.md` 的预览、截图及 `markReady` 时序,不把 ready 延后到全部业务或异步服务完成。
19
+
20
+ 验收统一在 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 选择相关场景;缺少宿主通知或测试环境时保留未验证范围。
@@ -0,0 +1,19 @@
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,74 +1,74 @@
1
- ---
2
- name: optimization-suggestions
3
- description: >
4
- 仅当用户本轮明确索要游戏灵感、优化建议、迭代方向或主动调用本技能时使用。
5
- 结合当前 JS3D 三维游戏生成 3 条可点击的灵感建议。不得自动触发;制作完成、二创摘要、资源回调和执行已选建议均不触发。
6
- ---
7
-
8
- # Optimization Suggestions
9
-
10
- 由当前单 Agent 基于实际游戏生成 3 条独立可执行的建议,以 `<inspiration>` 卡片输出。本技能只提供建议,不修改工程、不提交资源任务,也不要求创建子 Agent。
11
-
12
- ## 调用边界
13
-
14
- - 用户本轮主动说“给我几个优化建议”“还有什么玩法方向”、点击“让 AI 给我灵感”入口,或明确调用 `optimization-suggestions` 时才执行。仅提到技能名称、引用历史建议或讨论技能配置不算调用。
15
- - “优化一下操作手感”、修复问题、继续开发、点击某条卡片发送其中的具体需求,属于实现请求;按该请求执行,不转为出卡。
16
- - 首轮制作完成、交付收尾、构建通过、任务清空、自动续跑、资源结果返回、二创冷启动都不能触发。`[REMIX_MOTHER_SUMMARY]` 仅可作为已获准出卡时的背景资料。
17
- - 上一轮索要建议不授权以后自动出卡;不注册完成后出卡或延迟出卡流程。未命中本轮显式请求时,退出本技能并继续原任务。
18
-
19
- ## 获取当前上下文
20
-
21
- 项目根是 `${CLAUDE_PROJECT_DIR}`,即模板 `project/` 物化后的游戏目录,不是上下文仓库根。
22
-
23
- 1. 先使用本轮需求、已知实现结果、用户反馈和现有游戏截图;区分“用户想要”“已经实现”“尚未确认”。
24
- 2. 按需读 `SPEC/` 中实际存在的需求文档,如 `SPEC/plan/游戏设计.md`;场景蓝图存在时只读相关场景。没有固定文件不等于没有游戏;不要求旧 `dev-config.json`、分步开发字段或固定策划章节。
25
- 3. 信息不足时,定向查看入口及相关 `src/` 实现、`configs/*.json`、同名 `*.controls.json` 的必要片段,确认建议涉及的相机、操作、玩法和已有资源。`SPEC/res/asset-manifest.json` 存在时仅查看相关槽位及消费方;READY 只代表已有路径,不能证明模型、动画或音频已实际接入。
26
- 4. 二创请求可参考本轮母本摘要,但摘要只说明母本情况,不能当作当前修改已完成的证据。与当前代码或用户最新要求冲突时,以当前事实为准。无需通读整个工程、SDK、vendor 或资源清单。
27
-
28
- 至少能明确游戏的核心玩法和本次建议范围后再生成。只有空场景、缺少玩法资料且无法从当前工程确认时,简短说明缺少什么,不拼凑卡片。
29
-
30
- ## 适配当前 JS3D 项目
31
-
32
- - 使用 Three.js、TypeScript、Vite 与浏览器 API,场景、相机、渲染循环与玩法由业务管理。物理库和后处理按实际项目判断,不假定已有刚体系统、角色控制器或完整特效管线。
33
- - 带 `game-runtime.json` 的项目使用固定版本 runtime,默认值在普通 `configs/*.json`,参数元数据在 `*.controls.json`。建议应能落在业务代码、配置或现有资源上,不以修改 `runtime/lightgame/`、启用空 CoreManager 兼容包或升级 SDK 为前提;没有标记的旧项目按原架构考虑。
34
- - 场景与视觉建议需适合当前镜头、移动方式和设备开销。不要把实时全局光照、大规模流体/布料模拟等重型能力当作现成组件;不把开启 `preserveDrawingBuffer` 当成默认截图方案,ASTC 需要对应 WebGL 扩展和普通图片回退。
35
- - 界面改写规则见 `${CLAUDE_DIR}/knowledge/UiEditorCompat.md`;出建议阶段不调用 `ui-editor-compat`。
36
- - 场景编辑适配状态见 `${CLAUDE_DIR}/knowledge/SceneEditorCompat.md`,已接入项目的摆位与造型维护约定见 `${CLAUDE_DIR}/knowledge/CodingGuide/SceneEditableGuide.md`;出建议阶段不调用 `scene-editor-compat`,也不得把「重做场景可编辑改造」当收益项。
37
- - 资源库素材可在用户选择实施后使用 `asset-search`,定制图片、静态模型、音乐等可按 `aigc-integration` 的实际能力处理;出建议阶段不调用召回、生成或重试。骨骼角色需有可用配套动画,不能把静态模型生成当成完整骨骼动画生成。
38
- - 不假定首轮必有 BGM、菜单、反馈或难度递进,也不把程序化表现一律视为占位。首轮 BGM 提交记录、资源 TODO 或回调本身均不是视觉/音频缺陷的证据,更不是自动出卡信号。
39
-
40
- ## 选择建议
41
-
42
- 围绕用户目标生成候选,按收益、实现成本和当前缺口筛选。每条都应说明具体游戏变化,剔除已实现、已拒绝、正在执行以及与原需求冲突的事项;不能把“没读到”当作“没实现”。缺少依据的候选换一个,不编造关卡、角色或精确数值。
43
-
44
- | dimension | 可考虑的方向 |
45
- |---|---|
46
- | `feel` | 镜头跟随、命中反馈、空间可读性、操作引导 |
47
- | `balance` | 已有机制的难度、奖励、成长节奏 |
48
- | `content` | 关卡变种、场景互动、敌人或道具类型 |
49
- | `gameplay` | 保留题材的玩法变体或核心机制变化 |
50
- | `system` | 连击、连锁、风险收益等新增规则 |
51
-
52
- - 尽量覆盖不同维度,3 条相互独立,点击任一条即可作为下一轮需求;用户限定某一方面时优先满足该范围。
53
- - 优先使用当前依赖和本地玩法能力。没有已接入的服务时,不推荐在线排行榜、跨端存档或真实账号系统;本地记录要明确是本机记录。
54
- - **多人联机是本平台已支持能力,可以推**:只推 `${CLAUDE_DIR}/knowledge/Multiplayer/OverviewKnowledge.md`「能力边界与降级路由」表判为 ✅ 的形态,⚠️ / ❌ 档不推。
55
- - 不把新增后端、申请 API Key、额外安装软件或未经确认的复杂渲染能力作为可立即实现的前提。涉及新依赖、平台输入限制或资源生成时,按当前项目与工具的实际能力判断,不沿用旧的“依赖只读”“所有文本输入均禁用”等笼统限制。
56
- - 用户要求保留美术、静音或禁用外部资源时遵守该范围;不得为了凑三条固定推荐 AIGC 替换、音乐生成或资源重试。
57
-
58
- ## 输出协议
59
-
60
- 用户仅索要建议时,最终回复只输出一行完整的 `<inspiration>...</inspiration>`,标签内是有效 JSON,不包 Markdown 代码围栏。若本轮同时明确要求完成其他事项并给建议,先正常回复这些事项,再在末尾输出一次卡片;这不授权之后自动出卡。
61
-
62
- - `title` 使用“下一步你可以试试”。
63
- - `suggestions` 固定 3 条,每条写齐唯一 `id`(`s1`、`s2`、`s3`)、`text`、`prompt`、`dimension`。
64
- - `text` 不超过 15 字,`prompt` 不超过 50 字;`prompt` 是点击后发送的一句完整、可独立执行的需求,不使用“照上面做”等指代。
65
- - `dimension` 仅取上表五个值;不新增字段、注释或尾逗号。
66
- - 卡片用玩家能理解的语言,不暴露代码、文件路径、内部工具或引擎实现名称。不输出问卷或伪造埋点事件。
67
-
68
- 下例仅演示协议,只有游戏确有对应机制且尚未实现这些改进时才可采用:
69
-
70
- ```text
71
- <inspiration>{"title":"下一步你可以试试","suggestions":[{"id":"s1","text":"落点增加清晰提示","prompt":"跳跃时在地面显示预计落点,帮助玩家判断平台距离","dimension":"feel"},{"id":"s2","text":"连续收集获得加分","prompt":"短时间内连续收集道具时提高得分倍率,中断后恢复","dimension":"balance"},{"id":"s3","text":"加入移动平台路线","prompt":"增加一条由移动平台组成的可选路线,终点放置额外奖励","dimension":"content"}]}</inspiration>
72
- ```
73
-
74
- 资料不足或无法得到三条有依据、可落地的建议时,简短说明限制,不输出空卡片、半截 JSON 或编造建议。提出建议不代表已经实现或验证。
1
+ ---
2
+ name: optimization-suggestions
3
+ description: >
4
+ 仅当用户本轮明确索要游戏灵感、优化建议、迭代方向或主动调用本技能时使用。
5
+ 结合当前 JS3D 三维游戏生成 3 条可点击的灵感建议。不得自动触发;制作完成、二创摘要、资源回调和执行已选建议均不触发。
6
+ ---
7
+
8
+ # Optimization Suggestions
9
+
10
+ 由当前单 Agent 基于实际游戏生成 3 条独立可执行的建议,以 `<inspiration>` 卡片输出。本技能只提供建议,不修改工程、不提交资源任务,也不要求创建子 Agent。
11
+
12
+ ## 调用边界
13
+
14
+ - 用户本轮主动说“给我几个优化建议”“还有什么玩法方向”、点击“让 AI 给我灵感”入口,或明确调用 `optimization-suggestions` 时才执行。仅提到技能名称、引用历史建议或讨论技能配置不算调用。
15
+ - “优化一下操作手感”、修复问题、继续开发、点击某条卡片发送其中的具体需求,属于实现请求;按该请求执行,不转为出卡。
16
+ - 首轮制作完成、交付收尾、构建通过、任务清空、自动续跑、资源结果返回、二创冷启动都不能触发。`[REMIX_MOTHER_SUMMARY]` 仅可作为已获准出卡时的背景资料。
17
+ - 上一轮索要建议不授权以后自动出卡;不注册完成后出卡或延迟出卡流程。未命中本轮显式请求时,退出本技能并继续原任务。
18
+
19
+ ## 获取当前上下文
20
+
21
+ 项目根是 `${CRAFT_PROJECT_DIR}`,即模板 `project/` 物化后的游戏目录,不是上下文仓库根。
22
+
23
+ 1. 先使用本轮需求、已知实现结果、用户反馈和现有游戏截图;区分“用户想要”“已经实现”“尚未确认”。
24
+ 2. 按需读 `SPEC/` 中实际存在的需求文档,如 `SPEC/plan/游戏设计.md`;场景蓝图存在时只读相关场景。没有固定文件不等于没有游戏;不要求旧 `dev-config.json`、分步开发字段或固定策划章节。
25
+ 3. 信息不足时,定向查看入口及相关 `src/` 实现、`configs/*.json`、同名 `*.controls.json` 的必要片段,确认建议涉及的相机、操作、玩法和已有资源。`SPEC/res/asset-manifest.json` 存在时仅查看相关槽位及消费方;READY 只代表已有路径,不能证明模型、动画或音频已实际接入。
26
+ 4. 二创请求可参考本轮母本摘要,但摘要只说明母本情况,不能当作当前修改已完成的证据。与当前代码或用户最新要求冲突时,以当前事实为准。无需通读整个工程、SDK、vendor 或资源清单。
27
+
28
+ 至少能明确游戏的核心玩法和本次建议范围后再生成。只有空场景、缺少玩法资料且无法从当前工程确认时,简短说明缺少什么,不拼凑卡片。
29
+
30
+ ## 适配当前 JS3D 项目
31
+
32
+ - 使用 Three.js、TypeScript、Vite 与浏览器 API,场景、相机、渲染循环与玩法由业务管理。物理库和后处理按实际项目判断,不假定已有刚体系统、角色控制器或完整特效管线。
33
+ - 带 `game-runtime.json` 的项目使用固定版本 runtime,默认值在普通 `configs/*.json`,参数元数据在 `*.controls.json`。建议应能落在业务代码、配置或现有资源上,不以修改 `runtime/lightgame/`、启用空 CoreManager 兼容包或升级 SDK 为前提;没有标记的旧项目按原架构考虑。
34
+ - 场景与视觉建议需适合当前镜头、移动方式和设备开销。不要把实时全局光照、大规模流体/布料模拟等重型能力当作现成组件;不把开启 `preserveDrawingBuffer` 当成默认截图方案,ASTC 需要对应 WebGL 扩展和普通图片回退。
35
+ - 界面改写规则见 `${CRAFT_CONTEXT_DIR}/knowledge/UiEditorCompat.md`;出建议阶段不调用 `ui-editor-compat`。
36
+ - 场景编辑适配状态见 `${CRAFT_CONTEXT_DIR}/knowledge/SceneEditorCompat.md`,已接入项目的摆位与造型维护约定见 `${CRAFT_CONTEXT_DIR}/knowledge/CodingGuide/SceneEditableGuide.md`;出建议阶段不调用 `scene-editor-compat`,也不得把「重做场景可编辑改造」当收益项。
37
+ - 资源库素材可在用户选择实施后使用 `asset-search`,定制图片、静态模型、音乐等可按 `aigc-integration` 的实际能力处理;出建议阶段不调用召回、生成或重试。骨骼角色需有可用配套动画,不能把静态模型生成当成完整骨骼动画生成。
38
+ - 不假定首轮必有 BGM、菜单、反馈或难度递进,也不把程序化表现一律视为占位。首轮 BGM 提交记录、资源 TODO 或回调本身均不是视觉/音频缺陷的证据,更不是自动出卡信号。
39
+
40
+ ## 选择建议
41
+
42
+ 围绕用户目标生成候选,按收益、实现成本和当前缺口筛选。每条都应说明具体游戏变化,剔除已实现、已拒绝、正在执行以及与原需求冲突的事项;不能把“没读到”当作“没实现”。缺少依据的候选换一个,不编造关卡、角色或精确数值。
43
+
44
+ | dimension | 可考虑的方向 |
45
+ |---|---|
46
+ | `feel` | 镜头跟随、命中反馈、空间可读性、操作引导 |
47
+ | `balance` | 已有机制的难度、奖励、成长节奏 |
48
+ | `content` | 关卡变种、场景互动、敌人或道具类型 |
49
+ | `gameplay` | 保留题材的玩法变体或核心机制变化 |
50
+ | `system` | 连击、连锁、风险收益等新增规则 |
51
+
52
+ - 尽量覆盖不同维度,3 条相互独立,点击任一条即可作为下一轮需求;用户限定某一方面时优先满足该范围。
53
+ - 优先使用当前依赖和本地玩法能力。没有已接入的服务时,不推荐在线排行榜、跨端存档或真实账号系统;本地记录要明确是本机记录。
54
+ - **多人联机是本平台已支持能力,可以推**:只推 `${CRAFT_CONTEXT_DIR}/knowledge/Multiplayer/OverviewKnowledge.md`「能力边界与降级路由」表判为 ✅ 的形态,⚠️ / ❌ 档不推。
55
+ - 不把新增后端、申请 API Key、额外安装软件或未经确认的复杂渲染能力作为可立即实现的前提。涉及新依赖、平台输入限制或资源生成时,按当前项目与工具的实际能力判断,不沿用旧的“依赖只读”“所有文本输入均禁用”等笼统限制。
56
+ - 用户要求保留美术、静音或禁用外部资源时遵守该范围;不得为了凑三条固定推荐 AIGC 替换、音乐生成或资源重试。
57
+
58
+ ## 输出协议
59
+
60
+ 用户仅索要建议时,最终回复只输出一行完整的 `<inspiration>...</inspiration>`,标签内是有效 JSON,不包 Markdown 代码围栏。若本轮同时明确要求完成其他事项并给建议,先正常回复这些事项,再在末尾输出一次卡片;这不授权之后自动出卡。
61
+
62
+ - `title` 使用“下一步你可以试试”。
63
+ - `suggestions` 固定 3 条,每条写齐唯一 `id`(`s1`、`s2`、`s3`)、`text`、`prompt`、`dimension`。
64
+ - `text` 不超过 15 字,`prompt` 不超过 50 字;`prompt` 是点击后发送的一句完整、可独立执行的需求,不使用“照上面做”等指代。
65
+ - `dimension` 仅取上表五个值;不新增字段、注释或尾逗号。
66
+ - 卡片用玩家能理解的语言,不暴露代码、文件路径、内部工具或引擎实现名称。不输出问卷或伪造埋点事件。
67
+
68
+ 下例仅演示协议,只有游戏确有对应机制且尚未实现这些改进时才可采用:
69
+
70
+ ```text
71
+ <inspiration>{"title":"下一步你可以试试","suggestions":[{"id":"s1","text":"落点增加清晰提示","prompt":"跳跃时在地面显示预计落点,帮助玩家判断平台距离","dimension":"feel"},{"id":"s2","text":"连续收集获得加分","prompt":"短时间内连续收集道具时提高得分倍率,中断后恢复","dimension":"balance"},{"id":"s3","text":"加入移动平台路线","prompt":"增加一条由移动平台组成的可选路线,终点放置额外奖励","dimension":"content"}]}</inspiration>
72
+ ```
73
+
74
+ 资料不足或无法得到三条有依据、可落地的建议时,简短说明限制,不输出空卡片、半截 JSON 或编造建议。提出建议不代表已经实现或验证。