@craft_eco/craft-mcp 0.1.22 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (614) hide show
  1. package/README.md +28 -7
  2. package/bin/craft-mcp.mjs +10 -2
  3. package/dist-server/game-workflow/bundle-files.mjs +43 -0
  4. package/dist-server/game-workflow/engines.mjs +13 -6
  5. package/dist-server/game-workflow/project-bundles.mjs +90 -0
  6. package/dist-server/game-workflow/project-context.mjs +91 -0
  7. package/dist-server/game-workflow/projects.mjs +16 -4
  8. package/dist-server/integrations/config.mjs +71 -0
  9. package/dist-server/integrations/files.mjs +54 -0
  10. package/dist-server/integrations/hosts.mjs +30 -0
  11. package/dist-server/integrations/install.mjs +86 -0
  12. package/dist-server/integrations/runtime.mjs +71 -0
  13. package/dist-server/mcp/server.mjs +13 -9
  14. package/dist-server/preview/preview-launcher.mjs +9 -2
  15. package/dist-server/preview/preview-start.mjs +2 -2
  16. package/package.json +10 -1
  17. package/resources/craft-create/SKILL.md +14 -0
  18. package/resources/craft-game-maker/SKILL.md +77 -71
  19. package/resources/craft-game-maker/js.md +10 -10
  20. package/resources/craft-game-maker/js3d.md +13 -13
  21. package/resources/game_visual_qa.mjs +1149 -1149
  22. package/resources/js/bundle.json +93 -0
  23. package/resources/js/context/AGENTS.md +15 -102
  24. package/resources/js/context/knowledge/AigcWiring.md +5 -196
  25. package/resources/js/context/knowledge/AssetUrl.md +5 -20
  26. package/resources/js/context/knowledge/Layout.md +7 -0
  27. package/resources/js/context/knowledge/Lifecycle.md +6 -27
  28. package/resources/js/context/skills/aigc-generate/SKILL.md +6 -141
  29. package/resources/js/context/skills/asset-search/SKILL.md +5 -62
  30. package/resources/js/context/skills/asset-search/references/resource-config.md +9 -0
  31. package/resources/js/context/skills/export-config/SKILL.md +7 -19
  32. package/resources/js/context/skills/export-config/scripts/export-config.mjs +3 -45
  33. package/resources/js/context/skills/index.json +30 -0
  34. package/resources/js/context/skills/visual-qa/SKILL.md +6 -28
  35. package/resources/js/project/README.md +4 -96
  36. package/resources/js/project/package.json +1 -2
  37. package/resources/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
  38. package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +1 -37
  39. package/resources/js/project/scripts/config-export.mjs +10 -34
  40. package/resources/js3d/bundle.json +104 -0
  41. package/resources/js3d/context/AGENTS.md +16 -85
  42. package/resources/js3d/context/knowledge/AigcWiring.md +9 -0
  43. package/resources/js3d/context/knowledge/AssetUrl.md +9 -0
  44. package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +9 -67
  45. package/resources/js3d/context/knowledge/Layout.md +7 -0
  46. package/resources/js3d/context/knowledge/Runtime.md +5 -30
  47. package/resources/js3d/context/skills/aigc-integration/SKILL.md +6 -164
  48. package/resources/js3d/context/skills/asset-search/SKILL.md +5 -171
  49. package/resources/js3d/context/skills/asset-search/references/resource-config.md +6 -94
  50. package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +6 -82
  51. package/resources/js3d/context/skills/export-config/SKILL.md +7 -11
  52. package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +3 -55
  53. package/resources/js3d/context/skills/index.json +42 -0
  54. package/resources/js3d/context/skills/performance-audit/SKILL.md +8 -153
  55. package/resources/js3d/context/skills/visual-qa/SKILL.md +14 -0
  56. package/resources/js3d/project/README.md +4 -103
  57. package/resources/js3d/project/package.json +1 -2
  58. package/resources/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
  59. package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-scene-assets.mjs +3 -28
  60. package/resources/js3d/project/scripts/config-export.mjs +12 -34
  61. package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts +8 -0
  62. package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts.map +1 -0
  63. package/vendor/agent-cli/dist/src/artifacts/build-failure.js +39 -0
  64. package/vendor/agent-cli/dist/src/artifacts/build-failure.js.map +1 -0
  65. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts +5 -0
  66. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts.map +1 -0
  67. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js +45 -0
  68. package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js.map +1 -0
  69. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +1 -1
  70. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +71 -6
  71. package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +1 -1
  72. package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +2 -0
  73. package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -1
  74. package/vendor/agent-cli/dist/src/artifacts/prepare.js +7 -2
  75. package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -1
  76. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +2 -0
  77. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -1
  78. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +27 -16
  79. package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -1
  80. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts +14 -0
  81. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts.map +1 -0
  82. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js +119 -0
  83. package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js.map +1 -0
  84. package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -1
  85. package/vendor/agent-cli/dist/src/artifacts/static.js +20 -6
  86. package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -1
  87. package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -1
  88. package/vendor/agent-cli/dist/src/cli/process-protocol.js +24 -2
  89. package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -1
  90. package/vendor/agent-cli/dist/src/cli/process-steering.d.ts +21 -0
  91. package/vendor/agent-cli/dist/src/cli/process-steering.d.ts.map +1 -0
  92. package/vendor/agent-cli/dist/src/cli/process-steering.js +66 -0
  93. package/vendor/agent-cli/dist/src/cli/process-steering.js.map +1 -0
  94. package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +1 -1
  95. package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +1 -1
  96. package/vendor/agent-cli/dist/src/index.d.ts +4 -1
  97. package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
  98. package/vendor/agent-cli/dist/src/index.js +3 -0
  99. package/vendor/agent-cli/dist/src/index.js.map +1 -1
  100. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +31 -1
  101. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -1
  102. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +19 -1
  103. package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -1
  104. package/vendor/agent-cli/dist/src/session/client.d.ts +10 -0
  105. package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -1
  106. package/vendor/agent-cli/dist/src/session/client.js +16 -5
  107. package/vendor/agent-cli/dist/src/session/client.js.map +1 -1
  108. package/vendor/agent-cli/dist/src/session/link-session.d.ts +3 -0
  109. package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -1
  110. package/vendor/agent-cli/dist/src/session/link-session.js +17 -1
  111. package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -1
  112. package/vendor/agent-cli/dist/src/session/process-observability.d.ts +3 -0
  113. package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +1 -1
  114. package/vendor/agent-cli/dist/src/session/process-observability.js +11 -0
  115. package/vendor/agent-cli/dist/src/session/process-observability.js.map +1 -1
  116. package/vendor/agent-cli/dist/src/session/process-request.d.ts +3 -2
  117. package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -1
  118. package/vendor/agent-cli/dist/src/session/process-request.js +27 -9
  119. package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -1
  120. package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +2 -0
  121. package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -1
  122. package/vendor/agent-cli/dist/src/session/run-start-body.js +9 -3
  123. package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -1
  124. package/vendor/agent-cli/dist/src/session/run-steer.d.ts +42 -0
  125. package/vendor/agent-cli/dist/src/session/run-steer.d.ts.map +1 -0
  126. package/vendor/agent-cli/dist/src/session/run-steer.js +205 -0
  127. package/vendor/agent-cli/dist/src/session/run-steer.js.map +1 -0
  128. package/vendor/agent-cli/dist/src/shared/types.d.ts +10 -0
  129. package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -1
  130. package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts +21 -0
  131. package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts.map +1 -0
  132. package/vendor/agent-cli/dist/src/tools/context-program-receipt.js +102 -0
  133. package/vendor/agent-cli/dist/src/tools/context-program-receipt.js.map +1 -0
  134. package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -1
  135. package/vendor/agent-cli/dist/src/tools/context-program.js +3 -0
  136. package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -1
  137. package/resources/js/context/.role/AGENTS_DESIGN.md +0 -9
  138. package/resources/js/context/agents/aigc-asset.md +0 -168
  139. package/resources/js/context/knowledge/AigcEnabled.md +0 -49
  140. package/resources/js/context/knowledge/FrontendComponents.md +0 -17
  141. package/resources/js/context/knowledge/MobileAdaptation.md +0 -73
  142. package/resources/js/context/knowledge/MobileAdapted.md +0 -36
  143. package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
  144. package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -115
  145. package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -392
  146. package/resources/js/context/knowledge/PlatformServices.md +0 -190
  147. package/resources/js/context/knowledge/ProjectDisplayConfig.md +0 -35
  148. package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
  149. package/resources/js/context/knowledge/Ui.md +0 -11
  150. package/resources/js/context/knowledge/UiEditorCompat.md +0 -21
  151. package/resources/js/context/rules/MultiplayerCapability.md +0 -23
  152. package/resources/js/context/rules/MultiplayerRoomEntryUX.md +0 -63
  153. package/resources/js/context/rules/PlatformBoundaryModules.md +0 -44
  154. package/resources/js/context/rules/preview_ready.md +0 -8
  155. package/resources/js/context/skills/aigc-generate/knowledge/audio.md +0 -39
  156. package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +0 -26
  157. package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +0 -132
  158. package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +0 -53
  159. package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +0 -52
  160. package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +0 -191
  161. package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +0 -55
  162. package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +0 -62
  163. package/resources/js/context/skills/asset-search/scripts/config.json +0 -5
  164. package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +0 -125
  165. package/resources/js/context/skills/asset-search/scripts/search.mjs +0 -760
  166. package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -657
  167. package/resources/js/context/skills/asset-search/strategies/anim2d.md +0 -42
  168. package/resources/js/context/skills/asset-search/strategies/audio.md +0 -34
  169. package/resources/js/context/skills/asset-search/strategies/effect2d.md +0 -31
  170. package/resources/js/context/skills/asset-search/strategies/texture-prop.md +0 -22
  171. package/resources/js/context/skills/asset-search/strategies/ui-common.md +0 -40
  172. package/resources/js/context/skills/asset-search/strategies/ui-style.md +0 -28
  173. package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
  174. package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +0 -93
  175. package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +0 -7
  176. package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +0 -22
  177. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +0 -5
  178. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +0 -208
  179. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +0 -37
  180. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +0 -227
  181. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +0 -31
  182. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +0 -272
  183. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.d.mts +0 -79
  184. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.mjs +0 -29
  185. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/release.json +0 -22
  186. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/cli.mjs +0 -16
  187. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.d.mts +0 -4
  188. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.mjs +0 -50
  189. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +0 -3
  190. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.mjs +0 -72
  191. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.d.mts +0 -24
  192. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.mjs +0 -2
  193. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.d.mts +0 -10
  194. package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.mjs +0 -1
  195. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +0 -37
  196. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +0 -50
  197. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/cli.mjs +0 -20
  198. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.d.mts +0 -19
  199. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.mjs +0 -1
  200. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/installed.json +0 -6
  201. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.d.mts +0 -6
  202. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.mjs +0 -77
  203. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.d.mts +0 -2
  204. package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.mjs +0 -34
  205. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +0 -156
  206. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +0 -249
  207. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +0 -87
  208. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +0 -2
  209. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +0 -185
  210. package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +0 -294
  211. package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +0 -20
  212. package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +0 -5
  213. package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +0 -159
  214. package/resources/js/context/skills/mobile-adaptation/SKILL.md +0 -277
  215. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -50
  216. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -862
  217. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
  218. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
  219. package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
  220. package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -135
  221. package/resources/js/context/skills/mobile-adaptation/references/input-config.md +0 -342
  222. package/resources/js/context/skills/mobile-adaptation/references/verification.md +0 -140
  223. package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +0 -11
  224. package/resources/js/context/skills/mobile-compat-qa/SKILL.md +0 -53
  225. package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
  226. package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
  227. package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
  228. package/resources/js/context/skills/optimization-suggestions/SKILL.md +0 -89
  229. package/resources/js/context/skills/platform-services/SKILL.md +0 -101
  230. package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
  231. package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
  232. package/resources/js/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
  233. package/resources/js/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
  234. package/resources/js/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
  235. package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
  236. package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
  237. package/resources/js/context/skills/platform-services/assets/modules/log.ts +0 -35
  238. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
  239. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
  240. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
  241. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
  242. package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
  243. package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
  244. package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
  245. package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +0 -49
  246. package/resources/js/context/skills/platform-services/assets/modules/save.mjs +0 -1
  247. package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
  248. package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
  249. package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
  250. package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
  251. package/resources/js/context/skills/platform-services/references/api_reference.md +0 -18
  252. package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
  253. package/resources/js/context/skills/platform-services/scripts/install.mjs +0 -148
  254. package/resources/js/context/skills/resolution-adaptation/SKILL.md +0 -47
  255. package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
  256. package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -249
  257. package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +0 -98
  258. package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -200
  259. package/resources/js/context/skills/resolution-adaptation/references/audit.md +0 -31
  260. package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
  261. package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
  262. package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
  263. package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
  264. package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
  265. package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +0 -55
  266. package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
  267. package/resources/js/context/skills/scene-editor-compat/SKILL.md +0 -94
  268. package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +0 -13
  269. package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +0 -6
  270. package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +0 -25
  271. package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +0 -18
  272. package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +0 -7
  273. package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +0 -42
  274. package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +0 -144
  275. package/resources/js/context/skills/scene-editor-compat/docs/contract.md +0 -330
  276. package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +0 -64
  277. package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +0 -28
  278. package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +0 -47
  279. package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +0 -64
  280. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +0 -38
  281. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +0 -9
  282. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +0 -59
  283. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +0 -30
  284. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +0 -66
  285. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +0 -20
  286. package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +0 -26
  287. package/resources/js/context/skills/scene-editor-compat/references/contract.md +0 -73
  288. package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +0 -162
  289. package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +0 -853
  290. package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +0 -173
  291. package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -427
  292. package/resources/js/context/skills/scene-editor-compat/version.json +0 -1
  293. package/resources/js/context/skills/ui-editor-compat/SKILL.md +0 -48
  294. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
  295. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -74
  296. package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
  297. package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
  298. package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
  299. package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
  300. package/resources/js/context/skills/ui-editor-compat/references/contract.md +0 -132
  301. package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
  302. package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
  303. package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
  304. package/resources/js/context/skills/version-update/SKILL.md +0 -192
  305. package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
  306. package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
  307. package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
  308. package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
  309. package/resources/js/context/version/version.json +0 -1
  310. package/resources/js/project/SPEC/assist/.gitkeep +0 -0
  311. package/resources/js/project/SPEC/guide/.gitkeep +0 -0
  312. package/resources/js/project/SPEC/plan/.gitkeep +0 -0
  313. package/resources/js/project/SPEC/readme.md +0 -6
  314. package/resources/js/project/SPEC/res/.gitkeep +0 -0
  315. package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
  316. package/resources/js/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
  317. package/resources/js/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
  318. package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
  319. package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
  320. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
  321. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
  322. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
  323. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
  324. package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -29
  325. package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
  326. package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
  327. package/resources/js/project/runtime/lightgame/1.0.0/release.json +0 -37
  328. package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
  329. package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
  330. package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
  331. package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
  332. package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
  333. package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
  334. package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
  335. package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
  336. package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
  337. package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
  338. package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
  339. package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
  340. package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
  341. package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
  342. package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
  343. package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
  344. package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
  345. package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
  346. package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
  347. package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
  348. package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
  349. package/resources/js/project/scripts/refresh-runtime.mjs +0 -50
  350. package/resources/js/project/vendor/core-manager-js/package.json +0 -33
  351. package/resources/js/project/vendor/core-manager-js/src/.versions.json +0 -42
  352. package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +0 -41
  353. package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +0 -93
  354. package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +0 -203
  355. package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +0 -106
  356. package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +0 -25
  357. package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +0 -21
  358. package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +0 -65
  359. package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +0 -340
  360. package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +0 -87
  361. package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +0 -92
  362. package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +0 -271
  363. package/resources/js/project/vendor/core-manager-js/src/index.ts +0 -31
  364. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +0 -81
  365. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +0 -43
  366. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +0 -32
  367. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +0 -141
  368. package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +0 -20
  369. package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +0 -183
  370. package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +0 -304
  371. package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +0 -351
  372. package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +0 -180
  373. package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +0 -13
  374. package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +0 -14
  375. package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +0 -68
  376. package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +0 -433
  377. package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +0 -118
  378. package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +0 -444
  379. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +0 -485
  380. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +0 -66
  381. package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +0 -149
  382. package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +0 -9
  383. package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +0 -29
  384. package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +0 -88
  385. package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +0 -122
  386. package/resources/js/project/vendor/core-manager-js/src/runtime.ts +0 -24
  387. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +0 -318
  388. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +0 -151
  389. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +0 -235
  390. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +0 -98
  391. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +0 -94
  392. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +0 -209
  393. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +0 -106
  394. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +0 -341
  395. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +0 -68
  396. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +0 -236
  397. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +0 -22
  398. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +0 -29
  399. package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +0 -197
  400. package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +0 -9
  401. package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +0 -555
  402. package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +0 -112
  403. package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +0 -178
  404. package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +0 -246
  405. package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +0 -139
  406. package/resources/js/project/vendor/core-manager-js/tsconfig.json +0 -15
  407. package/resources/js/project/vendor/run.sh +0 -4
  408. package/resources/js/project/version/craft_feature_version.json +0 -42
  409. package/resources/js/project/version/project_feature_version.json +0 -11
  410. package/resources/js3d/context/.role/AGENTS_DESIGN.md +0 -9
  411. package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +0 -75
  412. package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +0 -42
  413. package/resources/js3d/context/knowledge/FrontendComponents.md +0 -19
  414. package/resources/js3d/context/knowledge/MobileAdaptation.md +0 -73
  415. package/resources/js3d/context/knowledge/MobileAdapted.md +0 -36
  416. package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
  417. package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -117
  418. package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -430
  419. package/resources/js3d/context/knowledge/PlatformServices.md +0 -190
  420. package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +0 -35
  421. package/resources/js3d/context/knowledge/SceneEditorCompat.md +0 -35
  422. package/resources/js3d/context/knowledge/StepByStep.md +0 -21
  423. package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
  424. package/resources/js3d/context/knowledge/UiEditorCompat.md +0 -21
  425. package/resources/js3d/context/rules/MultiplayerCapability.md +0 -27
  426. package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +0 -63
  427. package/resources/js3d/context/rules/PlatformBoundaryModules.md +0 -44
  428. package/resources/js3d/context/rules/preview_ready.md +0 -8
  429. package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +0 -70
  430. package/resources/js3d/context/skills/aigc-integration/callback.md +0 -77
  431. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +0 -23
  432. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +0 -38
  433. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +0 -72
  434. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +0 -33
  435. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +0 -36
  436. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +0 -37
  437. package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +0 -35
  438. package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +0 -58
  439. package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +0 -62
  440. package/resources/js3d/context/skills/asset-search/scripts/config.json +0 -235
  441. package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +0 -905
  442. package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +0 -79
  443. package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +0 -74
  444. package/resources/js3d/context/skills/asset-search/scripts/search.mjs +0 -637
  445. package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -667
  446. package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +0 -42
  447. package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +0 -31
  448. package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +0 -89
  449. package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +0 -143
  450. package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +0 -90
  451. package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
  452. package/resources/js3d/context/skills/game-art-style/SKILL.md +0 -60
  453. package/resources/js3d/context/skills/game-art-style/assets/previews/cartoon.png +0 -0
  454. package/resources/js3d/context/skills/game-art-style/assets/previews/comic.png +0 -0
  455. package/resources/js3d/context/skills/game-art-style/assets/previews/cozy.png +0 -0
  456. package/resources/js3d/context/skills/game-art-style/assets/previews/cyber.png +0 -0
  457. package/resources/js3d/context/skills/game-art-style/assets/previews/horror.png +0 -0
  458. package/resources/js3d/context/skills/game-art-style/assets/previews/lowpoly.png +0 -0
  459. package/resources/js3d/context/skills/game-art-style/assets/previews/paper.png +0 -0
  460. package/resources/js3d/context/skills/game-art-style/assets/previews/voxel.png +0 -0
  461. package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +0 -38
  462. package/resources/js3d/context/skills/game-art-style/references/construction.md +0 -111
  463. package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +0 -105
  464. package/resources/js3d/context/skills/game-art-style/references/sources.md +0 -25
  465. package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +0 -175
  466. package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +0 -168
  467. package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +0 -191
  468. package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +0 -165
  469. package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +0 -173
  470. package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +0 -185
  471. package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +0 -181
  472. package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +0 -189
  473. package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +0 -88
  474. package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +0 -301
  475. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -104
  476. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -933
  477. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
  478. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
  479. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
  480. package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -257
  481. package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +0 -342
  482. package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +0 -140
  483. package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +0 -11
  484. package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +0 -53
  485. package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
  486. package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +0 -10
  487. package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
  488. package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
  489. package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +0 -74
  490. package/resources/js3d/context/skills/performance-audit/references/case-notes.md +0 -93
  491. package/resources/js3d/context/skills/performance-audit/references/rules.md +0 -183
  492. package/resources/js3d/context/skills/platform-services/SKILL.md +0 -101
  493. package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
  494. package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
  495. package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
  496. package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
  497. package/resources/js3d/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
  498. package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
  499. package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
  500. package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +0 -35
  501. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
  502. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
  503. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
  504. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
  505. package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
  506. package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
  507. package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
  508. package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +0 -49
  509. package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +0 -1
  510. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
  511. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
  512. package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
  513. package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
  514. package/resources/js3d/context/skills/platform-services/references/api_reference.md +0 -18
  515. package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
  516. package/resources/js3d/context/skills/platform-services/scripts/install.mjs +0 -148
  517. package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +0 -46
  518. package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
  519. package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -239
  520. package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +0 -129
  521. package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -188
  522. package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +0 -31
  523. package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
  524. package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
  525. package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
  526. package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
  527. package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
  528. package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
  529. package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +0 -599
  530. package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +0 -141
  531. package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +0 -92
  532. package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +0 -125
  533. package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +0 -113
  534. package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -1187
  535. package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +0 -53
  536. package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +0 -4
  537. package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +0 -94
  538. package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +0 -50
  539. package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +0 -105
  540. package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +0 -147
  541. package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +0 -79
  542. package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +0 -56
  543. package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +0 -51
  544. package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +0 -55
  545. package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +0 -78
  546. package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +0 -84
  547. package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +0 -120
  548. package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +0 -4
  549. package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +0 -238
  550. package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +0 -59
  551. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
  552. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -61
  553. package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
  554. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
  555. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
  556. package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
  557. package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +0 -110
  558. package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
  559. package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
  560. package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
  561. package/resources/js3d/context/skills/version-update/SKILL.md +0 -191
  562. package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
  563. package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
  564. package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
  565. package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
  566. package/resources/js3d/context/version/version.json +0 -1
  567. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
  568. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
  569. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
  570. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
  571. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
  572. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
  573. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
  574. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
  575. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -30
  576. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
  577. package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
  578. package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +0 -39
  579. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
  580. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
  581. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
  582. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
  583. package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -7
  584. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
  585. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
  586. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
  587. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
  588. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
  589. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
  590. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
  591. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
  592. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +0 -26
  593. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +0 -351
  594. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
  595. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
  596. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
  597. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
  598. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
  599. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
  600. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
  601. package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
  602. package/resources/js3d/project/scripts/refresh-runtime.mjs +0 -50
  603. package/resources/js3d/project/vendor/core-manager-three/package.json +0 -12
  604. package/resources/js3d/project/vendor/core-manager-three/src/index.ts +0 -2
  605. package/resources/js3d/project/vendor/run.sh +0 -4
  606. package/resources/js3d/project/version/craft_feature_version.json +0 -42
  607. package/resources/js3d/project/version/project_feature_version.json +0 -11
  608. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +0 -7
  609. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +0 -1
  610. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +0 -145
  611. package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +0 -1
  612. /package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
  613. /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
  614. /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +0 -0
@@ -1,98 +0,0 @@
1
- /**
2
- * 适配接线范式 —— 对照 `${CRAFT_PROJECT_DIR}/src/main.ts` 改写。
3
- * 只替换「尺寸解算 → Phaser gameSize / UI 层」这一段;
4
- * 保留模板已有的 preview / HMR / PlayScene 登记 / `__qaWarp`。
5
- *
6
- * 全流程只有三次同步,顺序固定:
7
- * ① 容器实测尺寸 → computeLogicalSize(唯一的尺寸事实源)
8
- * ② 同一次回调里同步玩法坐标系(`game.scale.setGameSize`)
9
- * ③ 同一次回调里同步 UI 层(`ui.apply`)
10
- * ②③ 必须成对出现。只做其中一半 = HUD 与画面整体错位。
11
- */
12
- import Phaser from 'phaser';
13
- import { connectPreview } from './platform';
14
- import { LoadScene } from './scenes/LoadScene';
15
- import { PlayScene } from './scenes/PlayScene';
16
- import './style.css';
17
- import { initUiStage } from './display/ui-stage';
18
- import { computeLogicalSize } from './display/viewport';
19
- import type { LogicalSize } from './display/viewport';
20
-
21
- const container = document.querySelector<HTMLDivElement>('#game')!;
22
- const initial: LogicalSize = computeLogicalSize(container.clientWidth, container.clientHeight);
23
- const ui = initUiStage(container);
24
-
25
- const game = new Phaser.Game({
26
- type: Phaser.AUTO,
27
- parent: 'game',
28
- banner: false,
29
- scale: {
30
- mode: Phaser.Scale.FIT,
31
- autoCenter: Phaser.Scale.CENTER_BOTH,
32
- width: initial.logicW,
33
- height: initial.logicH,
34
- },
35
- render: {
36
- preserveDrawingBuffer: true,
37
- },
38
- physics: {
39
- default: 'arcade',
40
- },
41
- scene: [LoadScene],
42
- callbacks: {
43
- preBoot: (game) => {
44
- game.scene.add('PlayScene', PlayScene, false);
45
- },
46
- postBoot: (booted) => {
47
- const canvas = booted.canvas;
48
- if (!canvas) throw new Error('Phaser 未创建画布');
49
- const preview = connectPreview(canvas, { uiRoot: '#ui-root' });
50
- let marked = false;
51
- booted.registry.set('markPreviewReady', () => {
52
- if (marked) return;
53
- marked = true;
54
- preview.markReady();
55
- });
56
- booted.events.on(Phaser.Core.Events.POST_RENDER, () => {
57
- preview.afterRender();
58
- });
59
- (globalThis as unknown as { __qaWarp?: (target: string) => boolean }).__qaWarp = (target) => {
60
- const want = String(target || '').toLowerCase();
61
- if (want !== 'play' && want !== 'playscene' && want !== 'game') return false;
62
- try { booted.scene.stop('LoadScene'); } catch { /* already stopped */ }
63
- booted.scene.start('PlayScene');
64
- const loading = document.getElementById('loading');
65
- if (loading) {
66
- loading.style.display = 'none';
67
- loading.setAttribute('aria-hidden', 'true');
68
- }
69
- return true;
70
- };
71
- if (import.meta.hot) {
72
- import.meta.hot.dispose(() => {
73
- preview.dispose();
74
- ui.dispose();
75
- booted.destroy(true);
76
- });
77
- }
78
- },
79
- },
80
- });
81
-
82
- function applyViewSize(): void {
83
- const vw = container.clientWidth;
84
- const vh = container.clientHeight;
85
- if (!(vw > 0) || !(vh > 0)) return;
86
- const next = computeLogicalSize(vw, vh);
87
- if (
88
- Math.abs(game.scale.width - next.logicW) > 0.5 ||
89
- Math.abs(game.scale.height - next.logicH) > 0.5
90
- ) {
91
- game.scale.setGameSize(next.logicW, next.logicH);
92
- }
93
- ui.apply(vw, vh);
94
- }
95
-
96
- new ResizeObserver(applyViewSize).observe(container);
97
- applyViewSize();
98
- game.scale.on(Phaser.Scale.Events.RESIZE, () => ui.applyFromContainer());
@@ -1,200 +0,0 @@
1
- /**
2
- * 适配相关的 CSS 基线 + 设计令牌。
3
- * 落盘位置:`${CRAFT_PROJECT_DIR}/src/style.css`(追加到模板已有规则之后)。
4
- *
5
- * 分工:
6
- * - `src/style.css`:页面骨架 + `--ui-*` 令牌 + 通用工具类(本文件);
7
- * - `src/ui/ui.css`:业务界面的业务 class(只追加,不重复定义本文件的通用类)。
8
- *
9
- * 单位口径:本文件里所有数字都是**设计像素**。实际显示尺寸 = 设计像素 ×
10
- * `#ui-stage` 的 `transform: scale()`(= viewport 短边 / 1080),业务不需要自己换算。
11
- */
12
-
13
- html,
14
- body {
15
- margin: 0;
16
- width: 100%;
17
- height: 100%;
18
- overflow: hidden;
19
- background: #000;
20
- }
21
-
22
- /* 容器必须是定位上下文:canvas 与 #ui-root 都以它为基准铺满 */
23
- #game {
24
- position: relative;
25
- width: 100%;
26
- height: 100%;
27
- overflow: hidden;
28
- }
29
-
30
- /*
31
- * 模板原来给 #game 写的 `display: flex; align-items: center; justify-content: center`
32
- * 与 `#game canvas { flex: none }` 是旧的 FIT 居中方案,**改造后必须去掉**:
33
- * Phaser 的 `autoCenter: CENTER_BOTH` 自己会写 canvas 的 margin,
34
- * 两层居中叠加会在 clamp 档位(留边)下把画面推偏。
35
- */
36
- #game > canvas {
37
- display: block;
38
- }
39
-
40
- /*
41
- * 加载层(index.html 的 `#loading`)是 `position: fixed` 的全屏覆盖层,
42
- * **不属于逻辑坐标区域**,保持 CSS px 即可;它只在 Phaser 首帧前存在。
43
- * 如果希望加载层的字号与游戏内字号一致,用 `calc(24px * var(--ui-scale))` 换算。
44
- */
45
-
46
- /* ─────────────── 适配层骨架(尺寸/transform 由 src/display/ui-stage.ts 接管) ─────────────── */
47
-
48
- #ui-root,
49
- #ui-stage {
50
- /* 仅兜底声明;实际值来自 runtime 的内联样式与 ui-stage.ts 的逐次同步 */
51
- pointer-events: none;
52
- }
53
-
54
- /*
55
- * 禁止给 #ui-stage 写 transform(含 transition / animation 里的 transform):
56
- * 它的 transform 是「居中 + 缩放」的唯一承载,被覆盖后整层 UI 会偏移或失去缩放。
57
- * 需要整体位移/抖动的动效作用在业务根节点上。
58
- */
59
- #ui-stage {
60
- /* 视觉自检与截图锚点,勿改 */
61
- isolation: isolate;
62
- }
63
-
64
- /* ─────────────── 设计令牌 ─────────────── */
65
-
66
- :root {
67
- /* 色板 */
68
- --ui-primary: #4aa3ff;
69
- --ui-primary-strong: #2f7fe0;
70
- --ui-accent: #ffc247;
71
- --ui-danger: #ff5a5a;
72
- --ui-success: #48d597;
73
- --ui-text: #f2f7ff;
74
- --ui-text-dim: #c3cede;
75
- --ui-text-dark: #1b2230;
76
- --ui-panel-bg: rgba(16, 22, 34, 0.82);
77
- --ui-panel-border: rgba(255, 255, 255, 0.16);
78
- --ui-scrim: rgba(0, 0, 0, 0.55);
79
-
80
- /* 默认字号示例,业务按实际可读性调整 */
81
- --ui-font-xl: 64px;
82
- --ui-font-lg: 44px;
83
- --ui-font-md: 32px;
84
- --ui-font-sm: 24px;
85
-
86
- /* 间距 */
87
- --ui-gap-xs: 8px;
88
- --ui-gap-sm: 16px;
89
- --ui-gap-md: 28px;
90
- --ui-gap-lg: 48px;
91
-
92
- /* 圆角与阴影 */
93
- --ui-radius-sm: 8px;
94
- --ui-radius-md: 16px;
95
- --ui-radius-lg: 28px;
96
- --ui-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
97
- --ui-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
98
- --ui-shadow-text: 0 2px 6px rgba(0, 0, 0, 0.75);
99
-
100
- /* 贴边控件的最小留白,替代「贴 0」 */
101
- --ui-page-margin: 32px;
102
-
103
- --ui-font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
104
- }
105
-
106
- /* ─────────────── 通用工具类(业务 class 不要重复定义这些) ─────────────── */
107
-
108
- .ui-layer {
109
- /* runtime 已给层容器 absolute inset:0;这里只补充字体基线 */
110
- font-family: var(--ui-font-family);
111
- color: var(--ui-text);
112
- line-height: 1.25;
113
- }
114
-
115
- .ui-row {
116
- display: flex;
117
- flex-direction: row;
118
- align-items: center;
119
- gap: var(--ui-gap-sm);
120
- }
121
-
122
- .ui-col {
123
- display: flex;
124
- flex-direction: column;
125
- gap: var(--ui-gap-sm);
126
- }
127
-
128
- .ui-center {
129
- justify-content: center;
130
- }
131
-
132
- .ui-between {
133
- justify-content: space-between;
134
- }
135
-
136
- .ui-grow {
137
- flex: 1 1 auto;
138
- min-height: 0;
139
- min-width: 0;
140
- }
141
-
142
- /* 全屏层:铺满逻辑区域并居中。内层高度由内容撑开,不要写 height */
143
- .ui-modal {
144
- position: absolute;
145
- inset: 0;
146
- display: flex;
147
- align-items: center;
148
- justify-content: center;
149
- pointer-events: auto;
150
- }
151
-
152
- .ui-panel {
153
- background: var(--ui-panel-bg);
154
- border: 2px solid var(--ui-panel-border);
155
- border-radius: var(--ui-radius-md);
156
- box-shadow: var(--ui-shadow-md);
157
- padding: var(--ui-gap-md);
158
- box-sizing: border-box;
159
- }
160
-
161
- .ui-btn {
162
- font: inherit;
163
- color: var(--ui-text);
164
- background: var(--ui-primary);
165
- border: none;
166
- border-radius: var(--ui-radius-sm);
167
- padding: var(--ui-gap-xs) var(--ui-gap-md);
168
- min-height: 80px;
169
- min-width: 160px;
170
- cursor: pointer;
171
- pointer-events: auto;
172
- }
173
-
174
- .ui-btn:active {
175
- transform: translateY(2px);
176
- }
177
-
178
- .ui-num {
179
- font-variant-numeric: tabular-nums;
180
- }
181
-
182
- /* ─────────────── 方向与平台钩子(由 ui-stage.ts / 输入层写入) ─────────────── */
183
-
184
- /*
185
- * CSS 方向重排示例;业务坐标更新沿现有 resize 链处理。
186
- * 属性值由每次 resize 实测写入,转屏实时翻转。
187
- */
188
- #ui-stage[data-orientation='portrait'] .hud-topbar {
189
- /* 竖屏:长边是高,横向空间只有 1080,顶部栏改为两行 */
190
- flex-direction: column;
191
- }
192
-
193
- #ui-stage[data-orientation='landscape'] .hud-topbar {
194
- flex-direction: row;
195
- }
196
-
197
- /* 平台分支同理:纯样式差异走 CSS,功能差异走输入层的语义接口 */
198
- #game[data-platform='mobile'] .hud-hint {
199
- display: none;
200
- }
@@ -1,31 +0,0 @@
1
- # 多比例审计
2
-
3
- 在最终构建产物上运行 `node "${CRAFT_SKILL_DIR}/scripts/aspect_audit.mjs" --game <dist目录> --out <证据目录> --config <game.config.json> --steps <步骤JSON>`;Playwright 不在默认路径时传 `--package-root <包含playwright目录的node_modules>`。默认使用其Chromium;已有Chrome/Edge可传 `--browser-channel chrome` / `msedge`。
4
-
5
- 工具先逐尺寸冷启动,再在同一页面切换各档并返回首选尺寸(无配置时返回16:9)。包含800×360与360×800,以观察实际CSS尺度。报告的 `phase` 区分 `cold` / `live`,截图和面板名一一对应;同尺寸冷启动正常、切换异常时,先排查现有resize链,不立即另建布局系统。
6
-
7
- ## 进入玩法与面板
8
-
9
- 根据当前游戏正常界面填写步骤,不在游戏里添加审计专用状态开关。例:
10
-
11
- ```json
12
- {
13
- "enter": [{"click": "#start-game"}, {"waitFor": "#battle-hud"}],
14
- "panels": [{
15
- "name": "inventory",
16
- "open": [{"click": "#open-inventory"}, {"waitFor": "#inventory"}],
17
- "close": [{"click": "#close-inventory"}]
18
- }]
19
- }
20
- ```
21
-
22
- 每步仅支持一个 `click`(唯一CSS选择器)、`press`(如 `Escape`)或 `waitFor`(可见选择器)。面板名仅用字母/数字/下划线/短横线且不重复;必须提供关闭步骤,避免改变后续状态。需要暂停计时的游戏可用其正常暂停入口,仍须另查实际运行中的操作。步骤出错会标失败并停止该会话,不假定已成功进入玩法。`--click-center` 仅保留旧调用兼容,不能证明进入玩法。
23
-
24
- ## 判读边界
25
-
26
- - `geometryPassed` / 退出码0只表示采集状态的几何检查通过;`visualReviewRequired` 始终为true。未配置enter时会提示可能停在标题。
27
- - 打开截图检查当前角色、必要棋盘/轨道/工作台、文字阅读及关键入口,再实际操作核对命中。canvas铺满不证明画布内对象完整;纯DOM经营界面也不能因没有canvas就判失败。
28
- - 隐藏层和滚动容器裁剪掉的内容不直接计UI越界;滚动到底、关闭/返回是否可达仍需操作验证。多层重叠、canvas控件、可读性不能只靠矩形计数判断。
29
- - 最终修改后须复验受影响状态。视觉判读工具失败或额度不足时保留未验证结论,不以构建、截图生成或正常模型回复代替验收。
30
- - 窄视口审计不自动触发移动端输入接入,也不写 `mobile_adapted`;移动端状态按 `MobileAdapted.md` 的实际实现与验证证据维护。
31
- - 当前比例脚本不自动模拟真实宿主控件遮挡、宿主覆盖状态或音频权限。相关结果由目标宿主中的实际检查补充;不编造脚本参数,不以 `geometryPassed` 或截图生成代替这些验证。移动端补验沿 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 选择本次相关场景。
@@ -1,40 +0,0 @@
1
- # 设备安全区与宿主顶部避让
2
-
3
- 移动端首次制作、修改屏幕 UI 或修复宿主遮挡时读取。QQ、Web、微信的宿主操作区可能覆盖游戏内容;本页统一约束按钮和展示型 HUD,不依赖它们是否接收点击。
4
-
5
- ## 避让对象与方向
6
-
7
- - **功能 UI 必须避让**:返回、暂停、设置、跳过、关闭、菜单、玩法按钮,以及血量、分数、计时、资源、任务提示等展示信息。检查文字、图标、信息主体和完整命中区;不能只移动按钮中心,也不能漏掉 Canvas 绘制的 HUD。
8
- - **竖屏**:顶部预留全宽功能 UI 避让带。不要把按钮或 HUD 塞进宿主左右控件之间的空隙。
9
- - **横屏**:分别避开左上和右上的宿主区域,顶部中间仍可放展示型 HUD 或低频按钮。左右区域可不对称;右侧除胶囊外还可能有“可能含 AI 生成内容”等宿主提示,范围须一并计入。不能把左右遮挡合成一条全宽顶部禁放带。
10
- - 背景、世界与全屏遮罩继续覆盖原有范围,不随功能 UI 整体内缩,也不添加空白顶栏。必要信息不能只画在可能被遮挡的背景里。
11
- - 在可用区域内保留“越靠近屏幕上沿使用频率越低”的布局原则,高频操作仍靠近拇指自然落点。
12
-
13
- ## 遮挡数据与回退
14
-
15
- 1. 优先使用工程已有、契约明确的宿主接口或实测遮挡范围。先统一到游戏容器内的 CSS 坐标,只保留与容器相交的部分;宿主已在容器外预留的标题栏不要再扣。不得猜测桥接 API,也不为此在业务控件里分别检测 QQ / 微信 UA。
16
- 2. 将有效遮挡矩形向外增加 12 CSS px 的间距,再裁到容器范围。竖屏以顶部宿主遮挡的最下沿形成全宽保留带;横屏分别保留左右遮挡矩形,不取两者的外包矩形。设备刘海、状态栏和手势区按同一坐标口径合并;设备 safe-area 数值不能替代宿主悬浮控件范围。重叠区域取并集,不把多种高度相加。
17
- 3. 无可信数据时使用下表的**工程回退值**,集中放在已有 display/UI 布局入口。数值包含缓冲,仅作为首次生成起点,尚未经过三端真机定标;有当前宿主实测依据后替换对应方向的回退值。未知不能当作无遮挡,也不能用截图物理像素直接充当 CSS px。
18
-
19
- | 当前容器方向 | 回退避让范围(容器 CSS px) |
20
- |---|---|
21
- | 竖屏 | 从顶边起 120 高,全宽 |
22
- | 横屏 | 左上 96 宽 × 96 高;右上 240 宽 × 96 高;顶部中间保留可用 |
23
-
24
- 横屏右侧较宽是为宿主胶囊和提示文字预留的保守起点,不代表固定平台规格。可用中间区域不足以容纳完整控件或 HUD 时,将该项移到遮挡下方或重排,不能减小遮挡范围来凑布局。确认宿主没有与容器相交的遮挡时,可将宿主遮挡设为空,仍须处理设备安全区。
25
-
26
- ## 沿现有 display/UI 入口统一换算
27
-
28
- - `safeFrame` / `omniSafeFrame` 只表示比例安全框,不包含设备与宿主遮挡,也不改变其原有语义。
29
- - 功能 UI 可用区域是“当前布局安全框扣除设备与宿主遮挡”。横屏可能同时包含顶部中间和两侧遮挡下方,不能强制归并为一个更小的全宽矩形。
30
- - 普通未旋转 stage,容器 CSS 矩形 `(x, y, width, height)` 转逻辑坐标使用已有解算结果:
31
- `((x - offsetX) / scale, (y - offsetY) / scale, width / scale, height / scale)`。
32
- 宿主若给屏幕坐标,先减去游戏容器的位置。不能把 CSS px 直接当设计像素,也不能把预留高度再次加到 `safeFrame.y` 上。
33
- - 例如竖屏 360×800 时,默认 scale=1/3、offsetY=0,120 CSS px 对应 360 逻辑像素;当前 safeFrame 上沿为 480,功能 UI 从 480 开始即可,不再加 360。
34
- - 例如横屏 800×360 时,回退矩形为左侧 x=0~96、右侧 x=560~800,均从 y=0 到 96;与默认 safeFrame 相交后,顶部 x=160~560 CSS px 仍可用于完整放下的 HUD 或低频按钮,不要求它们一律移到 y=96 以下。
35
- - 如果宿主通过 CSS 旋转游戏来模拟横屏,先按实际变换将遮挡映射进游戏坐标;不套用上述仅平移/缩放的公式,也不机械设置 `padding-top`。普通横屏按当前实际容器方向计算。
36
- - 业务 UI 与虚拟控件读取同一份布局结果。已有比例留白足够时不额外下移;按钮完整热区、HUD 完整信息边界均不得与排除区域相交。空容器暂缓布局。
37
- - 容器尺寸、方向或宿主遮挡变化时沿现有 resize/布局更新链重算;宿主遮挡变化即使未触发 resize,也调用同一布局更新入口。不另建全局缩放,不覆盖 stage 的 transform。
38
- - 横屏先重排为安全中间区域内的信息行,或将侧边信息下移;空间不足时换行、折叠次要信息或调整面板排布,保持必要信息可读。触控起始热区扣除遮挡,已开始的拖动仍沿用原 pointer capture、松手和取消规则。
39
-
40
- 本页只规定生成与布局规则,不代表现有自动 QA 已模拟这些宿主区域。比例安全框内、构建通过或强制移动端输入均不能证明真机无遮挡。
@@ -1,18 +0,0 @@
1
- # 游戏内部 UI 遮挡
2
-
3
- 制作或修改 HUD、面板和控件布局时读取。设备与宿主避让沿 [设备安全区](device-safe-area.md);本页处理游戏自身的视觉遮挡、输入拦截和玩法区域。
4
-
5
- ## 判断当前界面状态
6
-
7
- - 检查完整文字、图标与有效热区;动态数字、长文本、引导和上下文按钮出现后也要成立。必要信息不能互压,控件不能持续遮住当前必需识别或操作的角色、目标、棋盘或轨道。
8
- - 暂停、设置、结算等模态面板可以按设计覆盖游戏。检查主要信息及关闭、返回、确认入口,不把所有矩形相交都判为错误。
9
- - 分别确认看得见与点得到:透明 look 区、摇杆起始区或遗留遮罩也可能抢触摸;`pointer-events: none` 不会消除视觉重叠。
10
-
11
- ## 沿现有 owner 调整
12
-
13
- - 复用已有 hud/panel/scrim/modal 层段及输入仲裁。交互 HUD 不被触控区先截获,非交互装饰不拦截正常输入;不靠无限提高 z-index 解决归属问题。
14
- - 模态面板沿已有流程清理并门控玩法输入。DOM 遮罩不能证明键盘、窗口监听或 Phaser 世界点选已停止;关闭面板或隐藏按钮后,不残留透明挡层、按下态、重复监听或重复控件。
15
- - 空间不足时在 UI owner 中重排、换行、滚动或折叠次要信息,不靠整屏内缩或统一缩字号掩盖问题。DOM 与 Canvas 按实际渲染方式处理,不为统一层级迁移 UI 技术。
16
- - 正常游玩、引导、暂停/设置、结算及动态控件变化时,沿同一布局链更新 HUD、已打开面板和命中位置。面板打开时转屏仍保留进度,不以强关面板或重建关卡规避布局问题。
17
-
18
- 涉及移动端时,相关状态的实际补验统一见 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md`。普通 PC 项目沿现有比例审计与实际操作验证,不因读取本页接入移动端,不另建碰撞管理器或验收系统。
@@ -1,15 +0,0 @@
1
- # 分层与布局方案
2
-
3
- 尺寸模型见 `${CRAFT_SKILL_DIR}/SKILL.md`。本页只约定适配职责,不指定控件或 CSS 实现。
4
-
5
- - 背景可延展或适度裁切;必须完整展示的信息采用等比完整布局。全屏遮罩覆盖实际容器,不只覆盖安全框。
6
- - 屏幕 UI 以逻辑区域为布局空间,核心内容以安全框及实际设备可用区为基准。空间变化优先调整排布与内容组织,避免把整套界面缩小到不可读。
7
- - 世界层按玩法选择整体可见或相机滚动;改变可见范围不应意外改变碰撞边界、操作距离与关卡节奏。跨方向必须可见的玩法内容按保守取景范围布置,或提供相应的取景调整。
8
- - 屏幕 UI 不随相机变换;世界标签遵循世界投影及其遮挡需求。跨层元素在 resize 后同步位置与命中区域。
9
- - 布局自由选择锚定、重排、伸缩或滚动。验收看不同尺寸下的可见性、可读性与操作可达性,不以特定类名、固定字号或居中方式作为标准。
10
-
11
- HUD、面板或控件布局还须按 [游戏内部 UI 遮挡](game-ui-occlusion.md) 检查当前界面状态;设备与宿主空间已经避让,不代表游戏内部不会互压或抢触摸。
12
-
13
- 固定棋盘、轨道或工作台按当前步骤所需区域取景;跟随场景不要求整个世界同屏。先调整信息组织与取景,再考虑整体缩放;不要用无限拉远换取两侧装饰入镜。
14
-
15
- 方向建议仅作可选引导:偏好方向与当前视口不符且影响体验时,可显示中性、可关闭的“横屏/竖屏体验更佳,也可继续当前方向”提示,本次会话不反复弹出、不锁方向、不遮挡玩法。它不能替代关键内容可见性修复,也不触发移动端控件接入。
@@ -1,34 +0,0 @@
1
- # 适配故障排查
2
-
3
- 仅在小屏缩水、面板裁切、切换尺寸后错位,或接入显示链时读取。先检查现有实现,不另建全局缩放。玩法与冷启动对照步骤见 [审计](audit.md)。
4
-
5
- ## 小屏成比例缩水:检查坐标单位
6
-
7
- `ui-stage` 已按逻辑尺寸整体缩放。其内部未经换算的 `vw/vh/dvw/dvh/vmin/vmax` 先按 CSS 视口计算,再乘 stage 缩放,容易产生二次缩水。例如短边360、逻辑短边1080时,stage 内 `width:50vw` 得到180逻辑像素,最终仅显示60 CSS像素,而非半屏180像素。
8
-
9
- stage 内按逻辑空间或父容器比例布局;跨层尺寸经同一缩放与偏移换算。stage 外不受其缩放的全屏背景可使用视口单位,不把这一限制扩大为全项目禁用。业务动效不要覆盖 stage 的全局变换。
10
-
11
- ## 面板按钮消失:检查静默裁切
12
-
13
- 显示根层有 `overflow:hidden`,超出范围可能直接消失,不会自动出现滚动条,也不会编译报错。检查面板整体边界及其内部内容,不只检查面板中心是否在安全框内。
14
-
15
- 空间不足时按内容选择重排、分页或内部滚动;不要仅缩小整套文字与按钮。限高面板需有实际可用的溢出处理,并操作到最后一项,确认主要按钮、关闭/返回入口可达。不要求固定居中、指定类名或统一控件尺寸。
16
-
17
- 排查 CSS 时注意:纵向百分比 margin/padding 通常以包含块宽度为基准;仅用 `left:50%` 不代表面板中心对齐;固定尺寸叠加 padding/border 可能增加实际占用。这些是检查线索,不是禁止使用相应布局手段。
18
-
19
- ## 切换后错位:核对同一条尺寸更新链
20
-
21
- 模板已有显示模块,也需核对入口和业务订阅;不要重新生成模块代替检查。以容器实际 CSS 尺寸作为同一轮更新的输入,观测容器而非只依赖窗口事件,无效尺寸暂缓更新。
22
-
23
- 2D核对顺序:测量容器 → 解算动态逻辑尺寸 → 尺寸确实变化时更新Phaser gameSize → 同步UI stage → Scene更新受影响的相机、背景与业务布局。Phaser自身尺寸事件也需同步UI,避免重复监听或递归改尺寸。具体世界职责见 [世界层扩展](world-resize.md),入口示例见 [main.ts](../assets/example/main.ts)。
24
-
25
- 检查已打开面板、世界标签和命中区域是否仍引用初始尺寸。布局重建后从当前业务状态恢复显示,不用初始默认值覆盖进度;画面正常但目标/步数归零时,分别检查业务状态与HUD刷新,不能仅凭显示断言数据丢失。
26
-
27
- | 症状 | 优先检查 |
28
- |---|---|
29
- | 桌面正常,小屏整套UI额外缩水 | stage内视口单位或额外全局缩放 |
30
- | 面板可见,底部按钮消失 | 根层裁切、内容超高、滚动/返回入口 |
31
- | 画面与HUD或世界标签错位 | 画面、UI及投影是否使用同一轮尺寸 |
32
- | 冷启动正常,实时切换异常 | 业务是否响应resize、缓存初始坐标 |
33
-
34
- 这些现象只提供排查方向,需用实际代码和操作证据确认根因。
@@ -1,38 +0,0 @@
1
- # 视口解算契约
2
-
3
- 仅接入或维护显示模块时读取;实现见 `${CRAFT_SKILL_DIR}/assets/display/viewport.ts`。
4
-
5
- | 接口 | 语义 |
6
- |---|---|
7
- | `computeLogicalSize(w, h, options?)` | 输入容器 CSS 尺寸,输出逻辑宽高、方向、缩放、居中偏移与 clamped 状态 |
8
- | `getSafeFrame(logical, options?)` | 当前方向的居中保守可见区 |
9
- | `getOmniSafeFrame(logical, options?)` | 跨方向的居中正方形可见区 |
10
- | `getCameraBounds(worldW, worldH, logicW, logicH)` | 各轴独立计算取景边界;世界小于视口时居中,不作为物理边界 |
11
-
12
- 默认 `shortEdge=1080`;`longEdgeClamp` 默认按短边派生为 `[shortEdge×4/3, shortEdge×20/9]`。调用方使用容器实际尺寸,零尺寸或无效尺寸时暂缓布局,不使用解算兜底值更新画面。
13
-
14
- 有效尺寸下保持:
15
-
16
- - 短边等于基准,长边在 clamp 区间内;正方形方向归为 landscape。
17
- - `scale=min(w/logicW,h/logicH)`,偏移使逻辑区域居中;未 clamp 时无留边,逻辑比例与容器一致。
18
- - 两类安全框均居中且位于逻辑区域内;omni 框为正方形。
19
- - 尺寸变化后重新计算取景边界,世界碰撞范围保持自身语义。
20
-
21
- 维护数学时覆盖 4:3、16:9、20:9、竖屏、正方形、超长屏、无效输入及自定义短边;边界比较使用浮点容差。常规布局调整无需改写模块或展开其实现。
22
-
23
- ## 维护时的边界用例
24
-
25
- 以下使用默认参数;数值比较使用浮点容差。只在修改解算模块时核对,不作为日常控件规范。
26
-
27
- | 输入CSS尺寸/选项 | 预期逻辑尺寸与结果 |
28
- |---|---|
29
- | 1920×1080 | 1920×1080,scale=1,无留边 |
30
- | 1024×768(4:3下界) | 1440×1080,clamped=false,无留边 |
31
- | 2400×1080(20:9上界) | 2400×1080,clamped=false,无留边 |
32
- | 360×800 | 1080×2400,portrait,scale=1/3,无留边 |
33
- | 768×768 | 1440×1080,landscape,clamped=true,offsetY=96 CSS像素 |
34
- | 2520×1080(21:9) | 2400×1080,clamped=true,offsetX=60 CSS像素 |
35
- | 0×0、负宽、NaN宽 | 默认兜底1440×1080、scale=1;调用方暂缓布局,不用兜底更新画面 |
36
- | 1920×1080,shortEdge=720 | 1280×720,scale=1.5;默认clamp随短边派生为[960,1600] |
37
-
38
- 另检查 `getCameraBounds(1000,1000,1440,1080)` 返回 `x=-220,y=-40,width=1440,height=1080`,仅用于取景;碰撞边界仍由关卡定义。横竖交换时两类安全框应继续居中,不能复用旧方向坐标。
@@ -1,55 +0,0 @@
1
- # 2D 世界层扩展与 resize
2
-
3
- 用于 Phaser 世界布局、相机取景和尺寸变化接线。复用现有 `src/display/` 与入口;不另建全局缩放,也不规定控件样式。
4
-
5
- ## 扩展什么
6
-
7
- - 短边锁定、长边扩展改变的是可见范围,不是物理世界大小。保持世界坐标、移动速度、碰撞和关卡规则的既有语义;不要为了填屏重新缩放所有实体或扩大可行走区域。
8
- - 同方向从 16:9 到 20:9 时,增加长边可见范围;横转竖会交换长短轴,并不自动保留原横屏全部内容。固定棋盘、轨道或单屏操作区须完整可见且可操作,可调整必要布局与取景;滚动世界只须保护角色、当前目标与反应空间,不要求全地图同屏或全部塞进 omni safe frame。
9
- - 默认不通过 `zoom = 屏幕尺寸 / 世界尺寸` 实现填屏。无专门镜头设计时沿用 zoom=1;已有玩法变焦或演出保留其语义,并按实际 zoom 核对可见范围,不能机械套用 zoom=1 的取景计算。
10
-
11
- ## 入口与 Scene 各负责一段
12
-
13
- 入口示例见 [main.ts](../assets/example/main.ts):以 `ResizeObserver` 观测容器,在同一更新链按实测尺寸解算,尺寸真正改变才 `game.scale.setGameSize`,并调用 `ui.apply`。无效尺寸暂缓更新;不要重复注册入口监听。
14
-
15
- `FIT + 动态 setGameSize` 才实现当前扩展模型:逻辑比例跟随容器时 FIT 铺满,超出 clamp 范围才居中留边。仅保留固定 gameSize 再使用 FIT,并没有完成长边扩展。
16
-
17
- Scene 读取实时 `this.scale.width/height`,不缓存初始尺寸或重复解算。初始化和尺寸变化调用同一布局过程,更新受影响的相机、背景、HUD、当前已打开面板及输入换算。`ui.apply` 只更新外层尺寸与变换,不会自动移动业务对象。尺寸变化不重开关卡、不重置进度、不强制关闭面板。
18
-
19
- 有界世界在 zoom=1 时可沿用 [getCameraBounds](../assets/display/viewport.ts):
20
-
21
- ```ts
22
- // Scene 内;WORLD_W/H 是实际关卡边界,不随视口改变。
23
- const applyLayout = () => {
24
- const b = getCameraBounds(WORLD_W, WORLD_H, this.scale.width, this.scale.height);
25
- this.cameras.main.setBounds(b.x, b.y, b.width, b.height);
26
- // 在这里更新本场景实际需要变化的背景、HUD、面板与关联对象。
27
- };
28
- applyLayout();
29
- this.scale.on(Phaser.Scale.Events.RESIZE, applyLayout);
30
- this.events.once(Phaser.Scenes.Events.SHUTDOWN, () => {
31
- this.scale.off(Phaser.Scale.Events.RESIZE, applyLayout);
32
- });
33
- ```
34
-
35
- 示例需从项目显示模块导入 `getCameraBounds`,并接入现有 Scene 生命周期,不能在每次打开面板时重复注册。自定义相机或变焦项目按实际可见范围计算,保持同样的更新与清理职责。
36
-
37
- ## 世界、背景与命中保持一致
38
-
39
- - 相机 bounds 表示能看到哪里,物理 bounds 表示能走到哪里,分别设置。窄世界居中时相机 bounds 可为负值,不能把它传给 `physics.world`,否则角色可能走进留白区。出世界与出屏判定分别使用世界边界与相机可见范围。
40
- - 背景及视觉地表覆盖当前可见范围,并在 resize 时更新;不能只覆盖较小的关卡范围。延展背景不等于延展碰撞地面;有意的悬崖、地图边缘仍按玩法保留。极端比例的画布外留边由容器背景覆盖。
41
- - 图像、影子、标签、连接线和命中区域共享位置依据。布局改变时关联更新,不能一部分用新坐标、一部分保留旧坐标。世界拾取使用当前相机与画布换算;UI 使用 stage 换算,避免混用。
42
- - 仅更新确实依赖尺寸的对象。响应式 DOM 可交给布局系统,滚动世界通常更新取景与背景,不普遍重排实体。场景退出时清理尺寸订阅及所属 HUD,避免重进后重复更新或残留叠层。
43
-
44
- ## 排查与验收
45
-
46
- | 症状 | 优先检查 |
47
- |---|---|
48
- | 固定画面缩小留边,宽屏没有扩展 | gameSize 是否仍是固定设计尺寸 |
49
- | 窄世界贴左上角,另一侧空白 | 相机是否按当前逻辑尺寸重算并居中 |
50
- | 冷启动正常,实时切换错位 | Scene 是否订阅 resize;面板或坐标是否缓存初始尺寸 |
51
- | 图像、影子、连线或点击位置分离 | 关联对象是否使用同一位置与坐标换算 |
52
- | 角色走进装饰留白 | 是否误把相机边界当成物理边界 |
53
- | 重进场景后错位或重复 HUD | 是否清理旧订阅与场景 UI |
54
-
55
- 沿 [审计步骤](audit.md) 进入实际玩法,打开代表性面板或地图,横竖切换再回到原尺寸,执行一次关键点击或拖拽。核对关键内容、关联对象、命中与进度保留;异常以相同尺寸冷启动对照。截图或几何检查成功不等于通过,未操作的部分明确记录未验证。