@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,178 +0,0 @@
1
- /**
2
- * UIFacadePlugin — Scene 级 UI facade(`this.ui`)。
3
- *
4
- * 提供 `register` / `mount` / `show` / `hide` / `has` / `get` 接口,
5
- * 让业务 Scene 以统一方式管理 DOM UI 面板的生命周期。
6
- *
7
- * 底层完全基于 DomUiKit(HTML + CSS DOM 层),**不使用任何 Phaser Canvas UI 渲染**。
8
- * Panel 的布局由 WidgetLayout 产出,逻辑由 WidgetLogic 实现,
9
- * 本 Plugin 只负责 Panel 注册、依赖注入实例化、显隐和 Scene shutdown 时自动卸载。
10
- * UI 图用 resolveAssetUrl(path),不进入 Phaser preload。
11
- */
12
-
13
- import Phaser from 'phaser';
14
- import { setVisible } from './DomUiKit';
15
- import type { DomUiPanel } from './DomUiContracts';
16
- // ─────────────────────── Panel 契约 ───────────────────────
17
-
18
- /**
19
- * Panel 类的静态契约。业务 Scene 通过 PanelClass identity 操作面板。
20
- */
21
- export interface UIPanelClass<
22
- P extends DomUiPanel = DomUiPanel,
23
- Deps extends object = Record<string, never>,
24
- > {
25
- /** 稳定的面板 ID(PascalCase),不依赖构建后的 class name */
26
- readonly panelId: string;
27
- /** 每个 Panel 统一接收一个依赖对象,由 owner Scene 在 mount 时注入。 */
28
- new (deps: Deps): P;
29
- }
30
-
31
- // ─────────────────────── 内部状态 ───────────────────────
32
-
33
- interface MountedPanel {
34
- instance: DomUiPanel;
35
- panelClass: UIPanelClass<DomUiPanel, any>;
36
- }
37
-
38
- // ─────────────────────── Plugin 实现 ───────────────────────
39
-
40
- export class UIFacadePlugin extends Phaser.Plugins.ScenePlugin {
41
- private mounted: Map<string, MountedPanel> = new Map();
42
- private registered: Map<string, UIPanelClass<DomUiPanel, any>> = new Map();
43
-
44
- boot(): void {
45
- const events = this.systems!.events;
46
- events.on(Phaser.Scenes.Events.SHUTDOWN, this.onShutdown, this);
47
- events.on(Phaser.Scenes.Events.DESTROY, this.onDestroy, this);
48
- }
49
-
50
- // ─────────────── 公开 API ───────────────
51
-
52
- private requireMounted<Panel extends DomUiPanel, Deps extends object>(
53
- PanelClass: UIPanelClass<Panel, Deps>,
54
- ): MountedPanel {
55
- const entry = this.mounted.get(PanelClass.panelId);
56
- if (!entry || entry.panelClass !== PanelClass) {
57
- throw new Error(`[UIFacade] ${PanelClass.panelId} 尚未 mount`);
58
- }
59
- return entry;
60
- }
61
-
62
- /** 在 Scene preload() 中声明本 Scene 将使用的 PanelClass。 */
63
- register<Panel extends DomUiPanel, Deps extends object>(
64
- PanelClass: UIPanelClass<Panel, Deps>,
65
- ): void {
66
- const existing = this.registered.get(PanelClass.panelId);
67
- if (existing && existing !== PanelClass) {
68
- throw new Error(`[UIFacade] panelId '${PanelClass.panelId}' 在同一 Scene 中重复`);
69
- }
70
- this.registered.set(PanelClass.panelId, PanelClass);
71
- }
72
-
73
- /**
74
- * 在 Scene create() 中调用,实例化面板。
75
- * 面板构造时自行调用 DomUiKit 创建 DOM 节点。
76
- * 默认构造后隐藏(`visible: false`),需要 show() 才显示。
77
- */
78
- mount<Panel extends DomUiPanel, Deps extends object>(
79
- PanelClass: UIPanelClass<Panel, Deps>,
80
- deps: Deps,
81
- ): Panel {
82
- const id = PanelClass.panelId;
83
-
84
- if (this.registered.get(id) !== PanelClass) {
85
- throw new Error(`[UIFacade] mount(${id}) 前必须在 preload() 调用 this.ui.register`);
86
- }
87
-
88
- // 同一 Scene 的同一 PanelClass 只能 mount 一次。
89
- if (this.mounted.has(id)) {
90
- throw new Error(`[UIFacade] ${id} 已 mount,同一 Scene 不得重复 mount`);
91
- }
92
-
93
- const instance = new PanelClass(deps);
94
-
95
- this.mounted.set(id, {
96
- instance,
97
- panelClass: PanelClass,
98
- });
99
- try {
100
- instance.hide();
101
- setVisible(instance.root, false);
102
- } catch (error) {
103
- this.mounted.delete(id);
104
- instance.dispose();
105
- throw error;
106
- }
107
- return instance;
108
- }
109
-
110
- /**
111
- * 显示面板。数据依赖在 mount 注入,瞬时状态通过 Panel 公开语义方法更新。
112
- */
113
- show<Panel extends DomUiPanel, Deps extends object>(
114
- PanelClass: UIPanelClass<Panel, Deps>,
115
- ): void {
116
- const entry = this.requireMounted(PanelClass);
117
- setVisible(entry.instance.root, true);
118
- entry.instance.show();
119
- }
120
-
121
- /**
122
- * 隐藏面板(不销毁)。
123
- */
124
- hide<Panel extends DomUiPanel, Deps extends object>(
125
- PanelClass: UIPanelClass<Panel, Deps>,
126
- ): void {
127
- const entry = this.requireMounted(PanelClass);
128
- entry.instance.hide();
129
- setVisible(entry.instance.root, false);
130
- }
131
-
132
- /**
133
- * 查询面板是否已 mount。
134
- */
135
- has<Panel extends DomUiPanel, Deps extends object>(
136
- PanelClass: UIPanelClass<Panel, Deps>,
137
- ): boolean {
138
- return this.mounted.get(PanelClass.panelId)?.panelClass === PanelClass;
139
- }
140
-
141
- /**
142
- * 获取已 mount 的面板实例(用于 update 或调用 Panel 公开语义方法)。
143
- */
144
- get<Panel extends DomUiPanel, Deps extends object>(
145
- PanelClass: UIPanelClass<Panel, Deps>,
146
- ): Panel | null {
147
- const entry = this.mounted.get(PanelClass.panelId);
148
- return entry?.panelClass === PanelClass ? (entry.instance as Panel) : null;
149
- }
150
-
151
- // ─────────────── 生命周期 ───────────────
152
-
153
- private disposeAll(): void {
154
- for (const [, entry] of this.mounted) {
155
- try {
156
- entry.instance.dispose();
157
- } catch (error) {
158
- console.error(`[UIFacade] dispose(${entry.panelClass.panelId}) 失败`, error);
159
- }
160
- }
161
- this.mounted.clear();
162
- this.registered.clear();
163
- }
164
-
165
- private onShutdown(): void {
166
- this.disposeAll();
167
- }
168
-
169
- private onDestroy(): void {
170
- this.disposeAll();
171
-
172
- const events = this.systems?.events;
173
- if (events) {
174
- events.off(Phaser.Scenes.Events.SHUTDOWN, this.onShutdown, this);
175
- events.off(Phaser.Scenes.Events.DESTROY, this.onDestroy, this);
176
- }
177
- }
178
- }
@@ -1,246 +0,0 @@
1
- /**
2
- * CoreManager DOM UI 的冻结基础样式。
3
- * 业务只按 knowledge/CodingGuide/API/UiCss.md 的公开契约消费,不读取或覆盖本实现。
4
- * 单位:所有 px 为设计像素,屏幕缩放由 stage 的 transform: scale() 统一完成。
5
- */
6
-
7
- :root {
8
- /* ── 基础色板:项目级覆盖写在 ui.css ── */
9
- --ui-primary: #4a7ab8;
10
- --ui-primary-strong: #2f5a8c;
11
- --ui-accent: #e8a33d;
12
- --ui-danger: #d4533f;
13
- --ui-success: #4faa6e;
14
-
15
- --ui-text: #f2ebd9;
16
- --ui-text-dim: #b3aa96;
17
- --ui-text-dark: #26190d;
18
-
19
- --ui-panel-bg: rgba(24, 22, 28, 0.88);
20
- --ui-panel-border: rgba(255, 255, 255, 0.14);
21
- --ui-scrim: rgba(0, 0, 0, 0.62);
22
-
23
- /* ── 字号阶梯(设计像素) ── */
24
- --ui-font-xl: 64px;
25
- --ui-font-lg: 44px;
26
- --ui-font-md: 32px;
27
- --ui-font-sm: 24px;
28
-
29
- /* ── 间距阶梯 ── */
30
- --ui-gap-xs: 8px;
31
- --ui-gap-sm: 16px;
32
- --ui-gap-md: 28px;
33
- --ui-gap-lg: 48px;
34
-
35
- /* ── 圆角 ── */
36
- --ui-radius-sm: 8px;
37
- --ui-radius-md: 16px;
38
- --ui-radius-lg: 28px;
39
-
40
- /* ── 阴影与描边 ── */
41
- --ui-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
42
- --ui-shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
43
- --ui-shadow-text: 0 2px 4px rgba(0, 0, 0, 0.85);
44
- --ui-backdrop-filter: blur(2px);
45
- --ui-active-filter: brightness(0.88);
46
- --ui-disabled-filter: grayscale(0.7) brightness(0.6);
47
- --ui-filter-transition: filter 0.12s ease-out;
48
- --ui-disabled-opacity: 1;
49
- --ui-touch-target: 80px;
50
- --ui-page-margin: 56px;
51
-
52
- /* ── 字体:优先系统 UI 字体,中文回退到系统黑体 ── */
53
- --ui-font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC',
54
- 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
55
- }
56
-
57
- /* 所有 UI 节点的默认文字行为(不含颜色,颜色由 owner CSS 指定) */
58
- .ui-node {
59
- font-family: var(--ui-font-family);
60
- font-size: var(--ui-font-md);
61
- line-height: 1.25;
62
- /* 禁止文字被选中/长按弹菜单 —— 游戏 UI 不需要这些浏览器默认行为 */
63
- user-select: none;
64
- -webkit-user-select: none;
65
- -webkit-touch-callout: none;
66
- -webkit-tap-highlight-color: transparent;
67
- }
68
-
69
- /* ─────────────────── 面板与容器 ─────────────────── */
70
-
71
- /** 标准面板盒模型:圆角与内距用 token,背景/描边/投影由 owner CSS 指定 */
72
- .ui-panel {
73
- border-radius: var(--ui-radius-md);
74
- padding: var(--ui-gap-md);
75
- box-sizing: border-box;
76
- }
77
-
78
- /** 弹窗容器:铺满层段并flex 居中,子面板不需要自己算 (designW - w) / 2 */
79
- .ui-modal {
80
- position: absolute;
81
- left: 0;
82
- top: 0;
83
- width: 100%;
84
- height: 100%;
85
- display: flex;
86
- align-items: center;
87
- justify-content: center;
88
- }
89
-
90
- /** 全屏遮罩:背景色由 owner CSS 指定 */
91
- .ui-scrim {
92
- backdrop-filter: var(--ui-backdrop-filter);
93
- }
94
-
95
- /* ─────────────────── 按钮 ─────────────────── */
96
-
97
- .ui-btn {
98
- display: inline-flex;
99
- align-items: center;
100
- justify-content: center;
101
- gap: var(--ui-gap-xs);
102
- /* 可点击控件最短边不小于 80 设计像素 */
103
- min-width: var(--ui-touch-target);
104
- min-height: var(--ui-touch-target);
105
- padding: 20px var(--ui-gap-md); /* 按钮文字与边缘四边间距 ≥ 20px */
106
- font-family: var(--ui-font-family);
107
- font-size: var(--ui-font-md);
108
- font-weight: 600;
109
- border-radius: var(--ui-radius-md);
110
- cursor: pointer;
111
- transition: transform 0.08s ease-out, var(--ui-filter-transition);
112
- box-sizing: border-box;
113
- }
114
-
115
- .ui-btn:active:not(:disabled) {
116
- transform: scale(0.96);
117
- filter: var(--ui-active-filter);
118
- }
119
-
120
- .ui-btn:disabled {
121
- filter: var(--ui-disabled-filter);
122
- opacity: var(--ui-disabled-opacity);
123
- cursor: default;
124
- }
125
-
126
- .ui-btn__icon { width: 1.2em; height: 1.2em; flex:0 0 auto; }
127
- .ui-btn__label { flex: 0 1 auto; }
128
-
129
- /** 关闭按钮:统一 80×80 圆形 */
130
- .ui-btn-close {
131
- width: var(--ui-touch-target);
132
- height: var(--ui-touch-target);
133
- min-width: var(--ui-touch-target);
134
- min-height: var(--ui-touch-target);
135
- padding: 0;
136
- border-radius: 50%;
137
- font-size: var(--ui-font-lg);
138
- }
139
-
140
- /* ─────────────────── 文字 ─────────────────── */
141
-
142
- .ui-title { font-size: var(--ui-font-xl); font-weight: 700; }
143
- .ui-subtitle { font-size: var(--ui-font-lg); font-weight: 600; }
144
- .ui-small { font-size: var(--ui-font-sm); }
145
-
146
- /**
147
- * 数值文字必须用等宽数字 —— 否则分数从 1999 变 2000 时宽度跳动,整行元素抖动。
148
- * 这是 DOM 方案相比 CanvasTexture 的直接收益之一。
149
- */
150
- .ui-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
151
-
152
- /** 单行省略 */
153
- .ui-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
154
-
155
- /* ─────────────────── 进度条 ─────────────────── */
156
-
157
- .ui-bar {
158
- position: relative;
159
- overflow: hidden;
160
- border-radius: var(--ui-radius-sm);
161
- box-sizing: border-box;
162
- }
163
-
164
- /**
165
- * 填充条。**改宽度百分比即可**,不需要像旧方案那样同步 scale.x 与 position.x
166
- * —— 左锚定是 DOM 的默认行为。
167
- */
168
- .ui-bar__fill {
169
- position: absolute;
170
- left: 0;
171
- top: 0;
172
- height: 100%;
173
- width: 0%;
174
- transition: width 0.18s ease-out;
175
- }
176
-
177
- /* ─────────────────── 排版工具类 ─────────────────── */
178
-
179
- .ui-row { display: flex; flex-direction: row; align-items: center; gap: var(--ui-gap-sm); }
180
- .ui-col { display: flex; flex-direction: column; gap: var(--ui-gap-sm); }
181
- .ui-center { display: flex; align-items: center; justify-content: center; }
182
- .ui-between { display: flex; align-items: center; justify-content: space-between; }
183
- .ui-page { box-sizing: border-box; padding: var(--ui-page-margin); }
184
-
185
- /** flex 子项占满剩余空间。min-width/height: 0 是溢出收缩的关键,不加会撑破容器 */
186
- .ui-grow { flex: 1 1 auto; min-width: 0; min-height: 0; }
187
-
188
- /** flex/grid 中间区域的收缩与裁切边界;滚动交给内部 .ui-scroll */
189
- .ui-clip { min-width: 0; min-height: 0; overflow: hidden; }
190
-
191
- /**
192
- * 等分网格。列数用 --cols 控制,行高由 1fr 自动均分——
193
- * 不需要手算 cardH = (availH - gap * (rows - 1)) / rows。
194
- */
195
- .ui-grid {
196
- display: grid;
197
- grid-template-columns: repeat(var(--cols, 3), 1fr);
198
- gap: var(--ui-gap-sm);
199
- }
200
-
201
- /** 可滚动区域:自动接收指针事件,无需额外设置 interactive */
202
- .ui-scroll {
203
- overflow-y: auto;
204
- overscroll-behavior: contain;
205
- -webkit-overflow-scrolling: touch;
206
- min-height: 0;
207
- pointer-events: auto;
208
- }
209
-
210
- .ui-scroll::-webkit-scrollbar { width: 8px; }
211
- .ui-scroll::-webkit-scrollbar-track { border-radius: 4px; }
212
- .ui-scroll::-webkit-scrollbar-thumb { background: currentColor; opacity: 0.45; border-radius: 4px; }
213
-
214
- /* ─────────────────── 动画 ─────────────────── */
215
-
216
- @keyframes ui-fade-in { from { opacity: 0; } to { opacity: 1; } }
217
- @keyframes ui-pop-in {
218
- from { opacity: 0; transform: scale(0.9); }
219
- to { opacity: 1; transform: scale(1); }
220
- }
221
- /** 伤害飘字上浮。注意只改 transform,定位由 left/top 承担,两者不冲突 */
222
- @keyframes ui-float-up {
223
- from { opacity: 1; transform: translateY(0); }
224
- to { opacity: 0; transform: translateY(-90px); }
225
- }
226
-
227
- .ui-fade-in { animation: ui-fade-in 0.18s ease-out both; }
228
- .ui-pop-in { animation: ui-pop-in 0.22s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
229
- .ui-float-up { animation: ui-float-up 0.9s ease-out both; }
230
-
231
- /**尊重系统的「减弱动效」设置 */
232
- @media (prefers-reduced-motion: reduce) {
233
- .ui-fade-in, .ui-pop-in, .ui-float-up { animation-duration: 0.01s; }
234
- .ui-btn, .ui-bar__fill { transition: none; }
235
- }
236
-
237
- /* ─────────────────── 安全区 ─────────────────── */
238
-
239
- /**
240
- * 贴边HUD 用这些类避开刘海、圆角、底部横条。
241
- * env() 在不支持的环境下回退为 0,不会报错。
242
- */
243
- .ui-safe-top { padding-top: env(safe-area-inset-top, 0px); }
244
- .ui-safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
245
- .ui-safe-left { padding-left: env(safe-area-inset-left, 0px); }
246
- .ui-safe-right { padding-right: env(safe-area-inset-right, 0px); }
@@ -1,139 +0,0 @@
1
- /**
2
- * VideoManager — DOM <video> 叠加层视频播放(仅浏览器 H5 平台)。
3
- *
4
- * 参照 UE 侧 PlayVideoOverlay 三接口语义:视频元素挂在 #ui-stage 末尾(DOM UI 之上),
5
- * 坐标用设计像素,随 #ui-stage 的 transform 统一缩放;视频自身 pointer-events:none,
6
- * 不拦截交互。url 先经 resolveAssetUrl 收成可请求地址(与图片/音频同规则)。
7
- */
8
-
9
- import { resolveAssetUrl } from '../assetManager/resolveAssetUrl';
10
-
11
- export interface PlayVideoOverlayOptions {
12
- /** 窗口左上角 X(设计像素)。width/height 任一为 0 或缺省时全屏铺满。 */
13
- x?: number;
14
- y?: number;
15
- width?: number;
16
- height?: number;
17
- /** 播放完毕自动关闭并销毁(缺省 true;循环视频不触发)。 */
18
- autoClose?: boolean;
19
- /** 静音播放(缺省 false;带声音播放被浏览器拦截时自动静音重试一次)。 */
20
- muted?: boolean;
21
- }
22
-
23
- interface VideoOverlay {
24
- video: HTMLVideoElement;
25
- autoClose: boolean;
26
- }
27
-
28
- let nextIndex = 1;
29
- const overlays = new Map<number, VideoOverlay>();
30
-
31
- function resolveStage(): HTMLElement {
32
- return document.getElementById('ui-stage') ?? document.body;
33
- }
34
-
35
- function applyRect(
36
- video: HTMLVideoElement,
37
- rect?: Pick<PlayVideoOverlayOptions, 'x' | 'y' | 'width' | 'height'>,
38
- ): void {
39
- const width = rect?.width ?? 0;
40
- const height = rect?.height ?? 0;
41
- if (width <= 0 || height <= 0) {
42
- video.style.left = '0';
43
- video.style.top = '0';
44
- video.style.width = '100%';
45
- video.style.height = '100%';
46
- return;
47
- }
48
- video.style.left = `${Math.round(rect?.x ?? 0)}px`;
49
- video.style.top = `${Math.round(rect?.y ?? 0)}px`;
50
- video.style.width = `${Math.round(width)}px`;
51
- video.style.height = `${Math.round(height)}px`;
52
- }
53
-
54
- function cleanup(overlay: VideoOverlay): void {
55
- const { video } = overlay;
56
- video.pause();
57
- video.removeAttribute('src');
58
- video.load();
59
- video.remove();
60
- }
61
-
62
- /** 创建并播放视频叠加层,返回视频 Index(失败 -1)。仅浏览器 H5 平台有效。 */
63
- export function playVideoOverlay(url: string, options?: PlayVideoOverlayOptions): number {
64
- const resolved = resolveAssetUrl(url);
65
- if (!resolved || typeof document === 'undefined') return -1;
66
-
67
- const video = document.createElement('video');
68
- video.crossOrigin = 'anonymous';
69
- video.playsInline = true;
70
- video.preload = 'auto';
71
- video.style.position = 'absolute';
72
- video.style.pointerEvents = 'none';
73
- video.muted = options?.muted === true;
74
- applyRect(video, options);
75
-
76
- const index = nextIndex;
77
- nextIndex += 1;
78
- const overlay: VideoOverlay = { video, autoClose: options?.autoClose !== false };
79
- overlays.set(index, overlay);
80
-
81
- video.addEventListener(
82
- 'ended',
83
- () => {
84
- if (overlay.autoClose) closeVideoOverlay(index);
85
- },
86
- { once: true },
87
- );
88
- video.addEventListener(
89
- 'error',
90
- () => {
91
- console.warn(`[VideoManager] 视频加载失败: ${resolved}`);
92
- closeVideoOverlay(index);
93
- },
94
- { once: true },
95
- );
96
-
97
- resolveStage().appendChild(video);
98
- video.src = resolved;
99
- video.load();
100
-
101
- video.play().catch(() => {
102
- // 带声音视频需由玩家手势触发;被浏览器拦截时静音重试一次(对齐 UE 侧语义)。
103
- if (!video.muted) {
104
- video.muted = true;
105
- video.play().catch(() => {
106
- console.warn(`[VideoManager] 视频播放被拦截: ${resolved}`);
107
- });
108
- }
109
- });
110
-
111
- return index;
112
- }
113
-
114
- /** 设置视频窗口位置/大小(设计像素)。Index 失效时静默忽略。 */
115
- export function setVideoOverlayRect(
116
- index: number,
117
- x: number,
118
- y: number,
119
- width: number,
120
- height: number,
121
- ): void {
122
- const overlay = overlays.get(index);
123
- if (!overlay) return;
124
- applyRect(overlay.video, { x, y, width, height });
125
- }
126
-
127
- /** 关闭并销毁视频,释放资源。关闭后该 Index 失效。 */
128
- export function closeVideoOverlay(index: number): void {
129
- const overlay = overlays.get(index);
130
- if (!overlay) return;
131
- overlays.delete(index);
132
- cleanup(overlay);
133
- }
134
-
135
- /** 关闭全部视频叠加层。 */
136
- export function closeAllVideoOverlays(): void {
137
- for (const overlay of [...overlays.values()]) cleanup(overlay);
138
- overlays.clear();
139
- }
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "strict": true,
7
- "skipLibCheck": true,
8
- "declaration": true,
9
- "esModuleInterop": true,
10
- "resolveJsonModule": true,
11
- "isolatedModules": true,
12
- "noEmit": true
13
- },
14
- "include": ["src/**/*.ts"]
15
- }
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 保留旧 bootstrap_script 路径。游戏已不依赖 CoreManager,无需覆盖工具链。
3
- # vendor 空包留给 lightgame_box 的初始化/打包检查,不在此删除。
4
- exit 0
@@ -1,42 +0,0 @@
1
- {
2
- "_comment": "本文档用作版本升级使用。其中版本号由开发者手动维护。Agent 正常开发时忽略本文件。",
3
- "prompt": "通过skill进行版本升级,升级以下几项:",
4
- "features": [
5
- {
6
- "id": "runtime",
7
- "displayName": "平台内置基础功能",
8
- "currentVersion": "1.1.0",
9
- "oldestCompatibleVersion": "0.0.0"
10
- },
11
- {
12
- "id": "uieditor",
13
- "displayName": "界面编辑器",
14
- "currentVersion": "1.0.0",
15
- "oldestCompatibleVersion": "0.0.0"
16
- },
17
- {
18
- "id": "sceneeditor",
19
- "displayName": "场景编辑器",
20
- "currentVersion": "1.0.0",
21
- "oldestCompatibleVersion": "0.0.0"
22
- },
23
- {
24
- "id": "multiplayer",
25
- "displayName": "多人联机",
26
- "currentVersion": "1.0.0",
27
- "oldestCompatibleVersion": "0.0.0"
28
- },
29
- {
30
- "id": "cloudsave",
31
- "displayName": "云存档",
32
- "currentVersion": "1.0.0",
33
- "oldestCompatibleVersion": "0.0.0"
34
- },
35
- {
36
- "id": "leaderboard",
37
- "displayName": "云排名",
38
- "currentVersion": "1.0.0",
39
- "oldestCompatibleVersion": "0.0.0"
40
- }
41
- ]
42
- }
@@ -1,11 +0,0 @@
1
- {
2
- "_comment": "本文档用作版本升级使用,触发相关skill时更新,Agent正常开发时忽略本文件",
3
- "features": [
4
- {
5
- "id": "runtime",
6
- "displayName": "平台内置基础功能",
7
- "currentVersion": "1.1.0",
8
- "oldestCompatibleVersion": "0.0.0"
9
- }
10
- ]
11
- }
@@ -1,9 +0,0 @@
1
- # 新项目的平台范围与设计确认
2
-
3
- 本规则在 JS3D 引擎内同样适用于普通模式与策划专家。新会话直接进入开发引擎、只有空模板,或用户本轮只要求澄清/设计时,都不能假定已经完成上游平台选择。
4
-
5
- 1. 在输出新项目的平台结论、提出范围问题或写游戏设计前,先读 `${CRAFT_CONTEXT_DIR}/knowledge/MobileAdaptation.md`。已有项目按有效设计和本轮明确变更维护,不自动扩大旧项目范围。
6
- 2. 新项目默认开启移动端;明确开启或关闭时直接遵循。“PC 游戏”“以 PC 为主”“其它细节你决定”、实体键盘并发和密集同屏都不等于用户关闭手机。没有具体冲突时不为确认默认值提问。
7
- 3. 有具体核心操作、内容表现或明确交付约束冲突且用户尚未选择时,先说明取舍并展示固定的非必填 `mobile_adaptation` 二选一,推荐开启放首位;不能先推荐仅 PC、用必填平台题替换,或只提供 PC 与手机演示选项。问卷成功展示后跳过才按开启处理;失败不能冒充已跳过。
8
- 4. 开启只确定需求范围,不证明核心约束已同时可满足。必须实体键盘的要求不能被静默替换为十点触控;未经验证的设备触点数、同屏可读性或两端体验不能写成已解决。无可行方案时保留开启范围与核心约束,列出尚未解决的取舍,不能声称手机可玩、退成提示页或再次追问已答开关。
9
- 5. 提交最终设计/开工确认前,核对平台范围、有效答案、附加功能选择与未解决限制;把范围及其来源写进游戏设计。只要求设计时等待确认,不开发、不将 `mobile_adapted` 置为 `true`。