@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,31 +0,0 @@
1
- # effect2d — 2D 特效序列帧(`effect_2d_js`)
2
-
3
- ## query 拼装
4
-
5
- 拼一条语义文本。格式:`字段:值`,全角 `:` 前缀、半角空格分隔、多值全角 `,`;已知才写,未知跳过。
6
- 模板:`标签:{tags} 主色调:{color} 朝向:{direction}`
7
-
8
- - `主色调`:基础色名(青蓝/橙红/金黄/白色…),≤2 个。
9
- - `朝向`:运动/扩散方向(向上/向右/向外扩散/向内收缩/旋转/环绕/随机闪烁);无则留空。
10
- - `标签`:仅画风/循环性明确时写(像素/循环);勿写数字,勿臆造。
11
-
12
- 例:`主色调:青蓝,白色 朝向:向上`
13
-
14
- ## 判别
15
-
16
- - 爆炸/冲击波 → `爆炸`;命中/受击 → `受击`;近身挥砍轨迹 → `近战`
17
- - 施法起手/吟唱 → `施法`;AOE 范围 → `范围`;目标/地面指示器 → `指示器`;锁定连线 → `连线`
18
- - 增益减益循环(冰冻/中毒/燃烧) → `Buff`;护盾护罩 → `护盾`
19
- - 投射物/弹道 → `飞行`;头顶情绪符号 → `表情`
20
- - 场景环境动效 → `环境`;UI 界面动效 → `界面`
21
-
22
- ## 消歧
23
-
24
- - 受击 vs 爆炸:单体火花=受击,范围炸裂=爆炸。
25
- - 近战 vs 飞行:贴身=近战,脱手投射=飞行。
26
- - `Buff` 大写B,原样传。
27
-
28
- ## 同义组(多值 OR)
29
-
30
- - 攻击命中:`["近战","受击","爆炸"]`
31
- - 技能释放:`["施法","范围","飞行"]`
@@ -1,89 +0,0 @@
1
- # 案例:Tidewater Zoo(bundle 模式)
2
-
3
- 这是一个只有打包产物、没有源码的 Three.js/WebGPU 项目。用它验证 bundle 模式扫描、动画重采样、贴图缩放、静态模型裁剪和“预加载不能盲删”的判断。以下数字只描述这个案例,不构成其他项目的收益预期。
4
-
5
- ## 基线
6
-
7
- - 157 个文件,87.42 MB;
8
- - 32 个 GLB;animation bufferView 合计 34.21 MB,贴图合计 16.32 MB;
9
- - 15 个 visitor GLB 每个约 3 MB,动画占 85% 左右(约 2.0 MB / 3.1 MB),贴图只有 80–150 KB;
10
- - 2 个 vendor GLB(joe 4.74 MB、marta 5.51 MB),动画与贴图都偏大;
11
- - whale 两张 2048×1024 PNG:height 3.30 MB、albedo 1.66 MB;
12
- - pirate_player 4.87 MB,74k 三角形,36 个节点、13 个 mesh、无动画;
13
- - 2 个 quaternius GLB 共 1.16 MB,只在注释里出现,代码不加载;
14
- - 入口脚本在约 1.1 s 时用 5 并发预取 15 个 visitor GLB,合计 45.3 MB。
15
-
16
- 扫描器给出 31 条 finding,其中 17 条 ANIMATION_DOMINANT、6 条 LARGE_TEXTURE、1 条 UNREFERENCED_FILE(quaternius_large)、1 条 PRUNE_CANDIDATE、1 条 EAGER_PRELOAD。
17
-
18
- ## 运行时基线
19
-
20
- 无头 Chromium + NVIDIA WebGPU(仅代表功能与网络,不代表真实手机):
21
-
22
- - 15 s 内请求 50.8 MB;其中 visitor 预取 45.3 MB;
23
- - 完整游戏 20 s 内请求 86.9 MB;
24
- - 构建日志 built OK 约 5.2 s;
25
- - people 的 74 个 skinned slot 全部就绪约 34–41 s;
26
- - 74 个 visitor 实例来自 14 个 unique avatar(预取了 15 个)。
27
-
28
- ## 已实施
29
-
30
- | 改动 | 结果 |
31
- |---|---|
32
- | 15 个 visitor + 2 个 vendor 动画重采样(tolerance 0.001;cf01 用 0.0005) | 53.75 MB → 26.4 MB(约 51%) |
33
- | whale height/albedo 从 2048×1024 缩到 1024×512 | 4.96 MB → 1.42 MB |
34
- | pirate_player prune | 4.87 MB → 3.88 MB |
35
- | 删除 quaternius_large/small | −1.16 MB |
36
- | 总体打包体积 | 87.42 MB → 54.22 MB(约 −38%) |
37
- | 重新扫描 | 32 → 30 个 GLB,animation 34.21 → 7.25 MB,findings 31 → 9 |
38
-
39
- 运行时复测:
40
-
41
- - 优化后 3 s 内请求 26.6 MB,完整游戏 50 s 内 53.0 MB;优化前预取单次 45.3 MB,完整游戏 20 s 内 86.9 MB;
42
- - built OK 约 4.3–4.4 s;
43
- - people 就绪约 32–35 s,没有明显回退;
44
- - 无新增运行时错误;唯一的 404 是 favicon,与资源无关。
45
-
46
- ## 源码工程校正(重要)
47
-
48
- 第一次只改了独立产物 `js3d_zoo` 的 `dist/`,这不是源码修复:同一游戏的源码工程里,`public/models/` 才是资产源,`dist/` 是 Vite/rebuild 产物。随后在源码工程把同一组改动应用到 `public/models`(15 visitor + 2 vendor 重采样、whale 缩放、pirate_player prune、删除 quaternius),再执行 `npm run build`,接着运行 `zoo/inject.mjs` / `zoo/patch_final.mjs` / `zoo/apply_ui.mjs` 生成发布产物。
49
-
50
- 源码构建结果:`dist` 从 91 MB 降到约 58 MB(`du`;`dist/models` 45 MB),构建日志 `built OK` 约 4.8 s,运行时 50 s 内请求 53.2 MB,people 74/74、0 fallback、无新增错误。`src/main.ts` 的 visitor prefetch 是源码层行为,保留不动;本次只改资产与构建输入。源码工程的 `dist/` 与 `public/assets/` 在 git 中忽略,提交的是 `public/models` 的源资产差异。
51
-
52
- ## 保守替代:库 GLB LOD
53
-
54
- 这批改动属于 L2 平衡档,不是默认。潮汐动物园使用自定义 `__TW.GLBLoader`,没有 `loadGlbModel` 的 0/1/2 档选档,所以无法直接套用库 LOD。如果同类项目的模型走资产库/AIGC 的 `loadGlbModel`,应先对远景、背景、大量实例试 `lod: 1` 或 `2`:每降一档模型 LOD 加一、贴图分辨率减半,缺档自动回退 0 档;近景主体保持 0 档。LOD 保留了 0 档原资产,通常比动画重采样和贴图缩放更保守。
55
-
56
- 若使用自定义加载器,先确认它是否读取 `_L1`/`_L2` 和压缩贴图 sidecar;不要手工拼路径,也不要把库 LOD 当成现成能力。
57
-
58
- ## 未继续压的项
59
-
60
- 复扫仍保留 9 条 finding,不是漏修:marta/joe 是近景 vendor,keyart 是首屏资源,pirate_enemy/signs 体积较小;cf01 仍有 ANIMATION_DOMINANT,但 0.001 已超出位移阈值,0.0005 是体积与保真的折中。把它们留在报告里作为已知项,不为了清零指标牺牲近景质量。
61
-
62
- ## 关键经验
63
-
64
- 1. **先看字节构成,不要先删文件。** visitor 的 3 MB 里贴图只有 100 KB;删模型只能省 3 MB,重采样动画能省 1–1.5 MB/个。ANIMATION_DOMINANT 是这批资源最高 ROI 的发现。
65
- 2. **动画验证必须 slerp 感知。** 原始数据在关键帧处有四元数符号翻转;线性插值比较会报 0.29 的假误差。改用 dot<0 取反的 slerp 后,worst 误差约 0.0008(旋转)和 0.0026(位移),在阈值内。
66
- 3. **不要给自定义 GLBLoader 加扩展压缩。** 运行时 Nr 解析器遇到任何 extensionsRequired 直接报错;Draco/meshopt/位置量化都不可用。重采样保留 buffer 0、标准 accessor,才可直接替换。
67
- 4. **预加载不能盲删。** 去掉 15 个 visitor 的预热后,模型请求被推到主线程构建/编译之后,people 就绪反而更晚。正确顺序是先把单文件从 3 MB 降到 1.3 MB,再决定是否缩小预热集合;首画布与模型就绪要分开测。
68
- 5. **动态目录族不能按文件名删。** props 的 45 张 512 贴图没有逐字文件名,代码用前缀 + layer + _a.jpg 构造;debris 同理。扫描器把整族标为 family,避免了误删。
69
- 6. **已经合理的不要动。** props 贴图已是 512;动物 GLB 重采样只省 5.5%,不值得承担动画风险;UI keyart 和字体属于首屏可感知资源,优化收益小于风险。
70
- 7. **prune 是低风险补充。** pirate_player 的 36 个节点里大半是空灯光节点;prune 后仍保留全部 13 个 mesh 和材质,运行时船长船正常加载。
71
- 8. **人群就绪的瓶颈不只是网络。** 74 个 SkinnedModel 的创建/蒙皮成本很高;重采样与贴图优化缩短了加载,但就绪仍在 30 s 量级。要再降,需要减少实例数或缓存/复用 SkinnedModel 原型,属于玩法与架构决策,不应混在“资源体积优化”里一起做。
72
-
73
- ## 另一个样本:云端资产 / 旧引擎(无本地资产)
74
-
75
- 一个 6.9 MB 的源码工程(121 个文件)没有 `public/models`、没有 `game-runtime.json`:`configs/assets.json` 只有 38 条 `Game/...` 云端 GLB,`SPEC/res/asset-manifest.json` 104 条,`engine/` 用 `GLTFLoader` 直接加载、通过 `window.__assetPaths['assets.*']` 取路径。本地没有任何模型/贴图/音频可压缩,`loadGlbModel` 的 0/1/2 档也不生效。
76
-
77
- 修复后的扫描结果是 80 个槽位(38 条配置 + 42 条 manifest-only),0 个 unreferenced;`BYPASS_GLB_LOADER` 是唯一 warning,8 条 `DUPLICATE_URL` 是 manifest 里的动作别名。关键不是“没有优化空间”,而是“本地没有压缩对象”:这时应检查 LOD 接线、预加载、复用与释放,不要把云端 URL 当成可删的本地文件。
78
-
79
- 扫描器为此补了三件事:扫描 `engine/` 等非 `src/` 运行时代码;扁平 `assets.*` 键不再重复前缀;内联 `{ type: 'resource', value }` 直接作为 controls,且 manifest 与 config 同 URL 时只保留 config 槽位。
80
-
81
- ## 复现命令
82
-
83
- ~~~bash
84
- node "$CRAFT_SKILL_DIR/scripts/scan-assets.mjs" --project "$CRAFT_PROJECT_DIR" --top 20
85
- npx --yes @gltf-transform/cli resample old.glb new.glb --tolerance 0.001
86
- node "$CRAFT_SKILL_DIR/scripts/compare-animations.mjs" old.glb new.glb
87
- ~~~
88
-
89
- 源码工程:改 `public/` 后先 `npm run build`,再运行 `zoo/inject.mjs` / `zoo/patch_final.mjs` / `zoo/apply_ui.mjs`;bundle 工程才直接对产物执行 scan。报告写入项目 .asset-audit/report.json;不要把它作为交付文件提交。
@@ -1,143 +0,0 @@
1
- # 优化处方与验证
2
-
3
- 按“先体积、后加载、再生命周期”的顺序做。每次只改一类,改完重新扫描并实际运行;不要把多个高风险改动混在一起,否则无法判断收益与回归来源。
4
-
5
- ## 0. 先确认资产源
6
-
7
- - 有 `src/`、`public/`、`public/models/` 或构建脚本时,资产源是 `public/` 或源资产目录;先改源,再 `npm run build` / 项目自有 rebuild 流程,最后检查 `dist/` 是否确实复制了新文件。
8
- - 不要把 `dist/` 里的 GLB/贴图当作源:下一次构建会覆盖,且发布产物可能缺少体积校验/版本记录。
9
- - 只有拿到的是纯产物、没有源码时,才用 bundle 模式做诊断;把结果带回源码工程重新执行优化。
10
- - 源工程的 rebuild 脚本可能只同步 bundle/UI,不复制 models;确认 models 是从 `public/` 复制还是需要单独步骤。
11
-
12
- ## 0.5 先试库 GLB 的 LOD(比改资产保守)
13
-
14
- 资产库与 AIGC 的 GLB 可能有 0/1/2 三档独立文件。优先用 LOD,而不是直接改模型或贴图:
15
-
16
- ```ts
17
- const gltf = await loadGlbModel(THREE, renderer, modelUrl, {
18
- lod: 1, // 0 基线;1/2 为降级档;目标档缺失会自动回退 0 档
19
- signal,
20
- });
21
- ```
22
-
23
- 核心口径(来自资源配置与 Runtime 知识):
24
-
25
- - 每个模型有 0 档基线与两级降档;每降一档模型 LOD 加一、贴图分辨率减半。
26
- - 0 档是基线,也是缺档时的回退目标;1/2 档是否存在因模型而异。
27
- - 按实际负担选档:远景、背景、大量实例可用 1/2;近景角色、主体、UI 保持 0。不要按「移动端」推断档位。
28
- - 资产库与 AIGC 模型同构,加载代码不需要区分来源;路径原样保存,挂载归一化、选档、压缩贴图(ASTC/DXT KTX2)和 PNG 回退都由加载侧完成。
29
- - 不要手工拼 `_L1` / `_L2` 或 `_astc` / `_dxt` 路径;需要自定义管线时用 `withGlbLod` / `pickGlbTextureVariant` / `glbCompressedTextureUrlModifier`,并遵守每载入 manager 的 `addHandler` 约束。
30
- - 如果项目使用自己的 `GLBLoader` / 原始 GLB 解析器(例如潮汐动物园),`loadGlbModel` 的选档不自动生效;先在工程里确认加载器是否支持 `lod`,不要把库 LOD 当成现成能力。
31
-
32
- 参见 [资源配置与运行时接入](../../asset-search/references/resource-config.md) 的「加载模型」,以及 [Runtime.md](../../../knowledge/Runtime.md) 的渲染与截图条目。LOD 通常优先于动画重采样和贴图缩放:它保留 0 档原资产,只替换运行时档位。
33
-
34
- ## 0.6 贴图与其他资源没有独立 LOD
35
-
36
- - 只有模型 GLB 有 `lod: 0|1|2`;贴图没有 `textureLod` / `quality` 参数。每降一档,模型 LOD 加一,**该档位使用的贴图分辨率减半**(内嵌或同目录外部 PNG 都由档位文件决定)。
37
- - 模型外部贴图的 `_astc` / `_dxt` KTX2 是**格式选择**(按 WebGL 扩展),不是分辨率档位;取不到或解码失败时回退 PNG。
38
- - 屏幕 UI、地形等独立贴图走 `tools/astc.mjs` 的 KTX v1 + PNG 回退,同样没有档位;只能在制作期选尺寸/格式。
39
- - 音频、序列帧、字体没有 LOD:选择更小的格式/码率/尺寸,按需加载并及时释放。
40
- - `renderer.setPixelRatio`、renderScale、阴影/抗锯齿是渲染质量,不是单资产 LOD;不要写成“贴图档位”。
41
- - 旧引擎或自定义 `GLTFLoader` 没有选档;要 LOD 必须先接 `loadGlbModel` 或等价代码,靠改资源文件得不到档位。
42
-
43
- 独立贴图当前的抓取路径:
44
-
45
- 1. `configs/*.json` 保存 `Texture2D` 的 URL(`configs/assets.json` 或普通配置字段)。
46
- 2. `resolveAssetUrl(url, { cdnBaseUrl: runtime.cdnBase })` 归一化。它只给 `.glb` / `.gltf` 补 `/Glb` 挂载;贴图路径不补,也不要把 `/Game/` 改写成 `/Glb/`。
47
- 3. 通用图片用 `createAssetLoader({ cdnBaseUrl }).load(url, { type: 'image', signal })`(`tools/assets.mjs`):fetch + 解码为 ImageBitmap/HTMLImageElement,按 path+type 缓存、合并并发请求、支持 abort / release / clear。项目已有 Three `TextureLoader` 时沿用,但要自己承担缓存与释放。
48
- 4. 屏幕 UI、地表贴图用 `loadAstcTexture(gl, url, { fallbackUrl })`(`tools/astc.mjs`):尝试同名 `.ktx`(KTX v1),失败回退 PNG。
49
- 5. 模型自带贴图由 `loadGlbModel` 处理:外部 PNG 按 `_astc` / `_dxt` 目录改写成 KTX2,失败回退 PNG。
50
-
51
- 这条链路没有分辨率档位。`meta.width/height` 只用于地表平铺密度(按实际米数算 repeat),不是 LOD;mipmap / anisotropy 是采样设置,也不是换档。要更小的独立贴图,只能在制作/召回阶段选更小尺寸的资产,或生成低分辨率变体后改配置指向它。
52
-
53
- ## 1. 动画重采样(最高 ROI)
54
-
55
- 适用:ANIMATION_DOMINANT,且无法使用库 GLB LOD。典型特征是 skinned GLB 的大部分字节是 animation bufferView,贴图很小。先按 L1 用 0.0001;只有用户明确接受 L2 时才用 0.001。
56
-
57
- ~~~bash
58
- npx --yes @gltf-transform/cli resample old.glb new.glb --tolerance 0.0001 # L1 近无损;L2 才用 0.001
59
- node "$CRAFT_SKILL_DIR/scripts/compare-animations.mjs" old.glb new.glb
60
- ~~~
61
-
62
- 检查项:
63
-
64
- - clip 名称、数量、时长不变;
65
- - compare-animations 输出 OK;旋转误差默认上限 0.01,位移/缩放 0.005;比较器覆盖 translation/rotation/scale 与 morph weights,`--ignore-weights` 会跳过权重通道并在输出里显示 skipped 数量;
66
- - 若 FAIL,先降到 0.0005 重试;不要为了体积强行接受超过上限的误差;
67
- - 替换后必须用运行时加载器实际播放,截图或观察代表动作。
68
-
69
- 批量处理时保留原文件名,逐个比较;不要只抽检一个就批量替换。重采样后的 GLB 应保持标准 buffer 0 与标准 accessor;若项目使用自定义 `GLBLoader`,还要确认它不接受 `extensionsRequired`。
70
-
71
- 标准 `loadGlbModel` 未接 Draco/meshopt decoder;自定义 `GLBLoader` 还可能拒绝所有 `extensionsRequired`。压缩几何前先确认加载链路;位置量化也不能靠简单的 normalized 解码还原。
72
-
73
- ## 2. 贴图缩放
74
-
75
- 适用:LARGE_TEXTURE。先看观看距离:
76
-
77
- - 远景、背景、地形高度图:优先 1024 或 512;
78
- - 近景角色、UI、可交互道具:保持原尺寸,或只做无损重编码;
79
- - 带 alpha 的贴图保留 alpha;法线/粗糙度等数据贴图不要按 sRGB 处理;
80
- - 外部贴图若被 JSON 记录宽高,缩放后同步更新;没有记录就不要猜。
81
-
82
- 嵌入式 GLB 贴图:
83
-
84
- ~~~bash
85
- npx --yes @gltf-transform/cli resize old.glb new.glb --width 1024 --height 1024
86
- ~~~
87
-
88
- 外部 PNG/JPEG 用图像工具缩放,保留格式与色彩配置;不要改扩展名伪装格式。
89
-
90
- 验证:在最近可玩距离看接缝、alpha 边缘、文字可读性;远景贴图至少在目标屏幕尺寸下看一次。
91
-
92
- ## 3. 静态模型裁剪
93
-
94
- 适用:PRUNE_CANDIDATE。常见于从 DCC 导出的模型带空节点、灯光节点或未使用 accessor。
95
-
96
- ~~~bash
97
- npx --yes @gltf-transform/cli prune old.glb new.glb
98
- npx --yes @gltf-transform/cli dedup old.glb new.glb
99
- ~~~
100
-
101
- 只删空节点/未使用 accessor;代码按名称查找的根节点、挂点、材质槽必须保留。替换后跑一次运行时加载与场景装配。
102
-
103
- ## 4. 未使用文件与槽位
104
-
105
- - bundle:删除前确认路径、文件名、词干、动态目录族都没有命中;删除后检查预加载数组、manifest、HTML/CSS 是否有残留。
106
- - source:同时删除配置键、同名 controls、manifest 槽位与召回账本中的记录;只删“可证明未使用”的槽位。
107
- - 动态消费(Object.entries、展开、按 key 查表)不能按未引用删除;输出 UNKNOWN_USAGE,人工确认。
108
- - 删除后必须重新构建并加载;仅 scan 通过不代表运行时没有 404。
109
-
110
- ## 5. 预加载与加载策略
111
-
112
- 先降单文件体积,再考虑预加载结构:
113
-
114
- - 预加载很多模型时,先看总字节与首画布时间;把“首画布”和“模型/人群就绪”分开测。
115
- - 不要因为网络总量大就直接删除预加载:主线程忙于构建/编译时,删除预热可能让模型请求延后,模型就绪反而更慢。
116
- - 要缩小预热集合时,选最常出现的前几个模型;其余按需加载。预热延后到 idle 或首帧后,避免和游戏 chunk/字体抢带宽。
117
- - 加载统一走 loadGlbModel;需要复用时缓存 Promise,静态模型用 clone(),骨骼模型用 SkeletonUtils.clone,不要直接克隆骨架。
118
- - 场景切换按所有权 dispose 几何/材质/贴图,停止 mixer;使用 AssetLoader 时 clear()/release()。
119
-
120
- ## 6. 验证矩阵
121
-
122
- | 检查 | 证据 | 不能证明 |
123
- |---|---|---|
124
- | 重新 scan | findings 消失、无新增 error | 运行时正确 |
125
- | npm run build | 类型、配置导出、打包通过 | 资源实际加载 |
126
- | game_visual_qa / 截图 | 可见资源与画面无回归 | 性能、所有设备 |
127
- | 网络面板 | 首包/首画布/模型就绪时间、请求数 | GPU/CPU 帧时间 |
128
- | renderer.info | draws / triangles / textures / geometries | 真实设备帧率、显存安全 |
129
- | 目标设备试玩 | 交互、加载、发热、掉帧 | 其他机型 |
130
-
131
- 交付时分开写:
132
-
133
- - 本次变化:改了哪些文件、预计省多少、为什么;
134
- - 已验证:scan/build/视觉/运行时实际做到哪一步;
135
- - 未完成或未验证:没有测到的设备、场景、交互与性能结论。
136
-
137
- ## 7. 禁止项
138
-
139
- - 不改 runtime/、vendor/、node_modules/ 来“优化”业务资源;
140
- - 不手写 GLB 贴图 URL 或压缩 sidecar 路径;加载侧负责归一化、选档与 KTX2;
141
- - 不把静态模型合并/实例化到 scene.ts 的 item 粒度里;场景编辑器需要独立 item;
142
- - 不自动替换成更便宜的资产;需要召回/生成时交给 asset-search / aigc-integration;
143
- - 不把“文件变小”写成“帧率提升”;没有测量就保留未验证。
@@ -1,90 +0,0 @@
1
- # 使用模型与判定口径
2
-
3
- 扫描器只回答“能证明什么”,不把猜测写成结论。两种工程形态共用一套 finding 结构。
4
-
5
- ## 两种模式
6
-
7
- | 模式 | 判定 | 主要输入 | 主要输出 |
8
- |---|---|---|---|
9
- | source | 有 src/ 与 configs/ | configs/*.json、*.controls.json、configs/assets.json、configs/scene_assets.json、SPEC/res/asset-manifest.json、src/**/*.ts;有 public/ 时附带扫描 public/ 资产镜像 | 槽位级 used / dynamic / unreferenced,接线错误,热路径加载,public 资产字节构成 |
10
- | bundle | 有 index.html 与 assets/ | index.html、assets/**、ui/**、models/**、audio/**、textures/**、clouds/** | 文件级引用、动态目录族、GLB 字节构成、重复文件、预加载 |
11
-
12
- auto 模式优先 source;没有源码时走 bundle。bundle 不是“源码工程的替代品”:它只能看到打包后的文件名与引用,不能看到 configs 里的面板语义。若工程有 `public/`(资产镜像)但只有胶水层源码,bundle 只用于诊断;修改要落在 `public/`,再通过构建/rebuild 生成 `dist/`。
13
-
14
- 云端资产项目(configs 只有 URL、本地没有 models/textures)仍会产出槽位与接线结果,但本地资产字节为 0;不要据此计算本地压缩收益,转去检查 LOD、预加载、复用与释放。
15
-
16
- ## 槽位身份
17
-
18
- source 模式的槽位 id 由“配置文件名 + 点路径”组成,例如 gameScene.crate_model。它对应面板与 AIGC 的 slot 语义;manifest 槽位另加 manifest.<slot> 前缀。scene_assets 与 configs/assets.json 各自保留来源前缀,避免同名键互相覆盖。
19
-
20
- ## 引用置信度
21
-
22
- | confidence | 含义 | 能否删除 |
23
- |---|---|---|
24
- | direct | 代码里出现完整路径、文件名或配置点路径 | 可以,但仍要确认面板/编辑器/存档 |
25
- | family | 文件名没出现,但目录由前缀 + 参数构造(如 models/props/ + layer + _a.jpg) | 不能按文件名删除;检查构造逻辑 |
26
- | none | 路径、文件名、词干与动态目录都未命中 | 中/高概率未引用;仍要人工确认,不能自动删除 |
27
- | unknown | source 模式下 JSON 被 Object.entries / 展开运算符整体消费 | 不能删除,必须手工看消费方 |
28
-
29
- 常见误报:
30
-
31
- - 资源名只出现在注释里。扫描器会剥离块注释与 `//` 行注释(含行尾注释);如果仍命中,检查是否是模板字符串里的真实 URL。
32
- - 同一个文件名属于多个目录。扫描器同时比较相对路径和文件名;不同目录不会被合并。
33
- - 动态目录族。bundle 模式识别“目录前缀 + 拼接”并把整族标为 family;family 的文件不会进入 UNREFERENCED_FILE。
34
- - 面板保留槽位。source 模式的 UNREFERENCED_SLOT 只表示“没有可证明的消费点”,不表示“永远不会用”。
35
-
36
- ## GLB 字节归因
37
-
38
- bundle 模式对每个 .glb 解析 JSON/BIN 块,按 bufferView 去重归因:
39
-
40
- - geometry:mesh 的 POSITION/NORMAL/UV/JOINTS/WEIGHTS/indices 等 accessor 所在 bufferView;
41
- - animation:所有动画 sampler 的 input/output bufferView;
42
- - skin:inverseBindMatrices;
43
- - texture:images 的 bufferView;
44
- - other:其余 bufferView。
45
-
46
- 同时读取 clip 数、关键帧数、时长、三角形数、贴图尺寸与 extensionsRequired。归因是“文件内字节”,不是 GPU 显存;贴图会被驱动解码/压缩,实际显存与文件字节不同。库 GLB 的 1/2 档是独立文件(`_L1`/`_L2`),不在这份 GLB 内;bundle 扫描只能看到当前档位。贴图没有独立 LOD:档位文件每降一档,该档使用的贴图分辨率减半;是否可用 LOD 要回到 `loadGlbModel` 的选档与工程实际加载器判断。
47
-
48
- ## Finding 索引
49
-
50
- | id | 证据 | 默认严重度 |
51
- |---|---|---|
52
- | UNREFERENCED_FILE | path/name/stem/family 计数与字节 | warning |
53
- | UNREFERENCED_SLOT | 槽位 id、URL、来源 | warning |
54
- | UNKNOWN_USAGE | 动态消费的槽位 | info |
55
- | DUPLICATE_FILE / DUPLICATE_URL | hash 或归一化 URL 分组 | warning / info |
56
- | ANIMATION_DOMINANT | animationBytes、clips、keyframes、duration、keyframesPerSecond | warning |
57
- | LARGE_TEXTURE | 文件/GLB 贴图字节、宽高、格式 | warning |
58
- | PRUNE_CANDIDATE | 静态模型 nodes 远多于 meshes | info |
59
- | UNSUPPORTED_GLB_EXTENSION | extensionsRequired;先确认是标准还是自定义加载器 | error |
60
- | GLB_PARSE_ERROR | 资产读取/解析失败的路径与错误 | error |
61
- | NO_USAGE_CORPUS | 未扫描到已构建代码,无法判断引用 | warning |
62
- | EAGER_PRELOAD | 预加载名字数、命中文件数、总字节 | warning |
63
- | HARDCODED_URL | 源码中的 URL 字面量 | error |
64
- | SCENE_ASSET_UNREGISTERED | scene.ts 的 /Game/ 引用未进 scene_assets | error |
65
- | LOAD_IN_HOT_PATH | 加载调用位于 render/update/tick 等热函数附近 | warning(低置信度,需人工确认) |
66
- | BYPASS_GLB_LOADER | 出现 GLTFLoader / DRACOLoader | warning |
67
- | NO_DISPOSE | 有加载但无 dispose | info |
68
- | CONTROLS_MISSING | 资源叶子缺少 controls 元数据 | info |
69
-
70
- ## 报告结构
71
-
72
- report.json 顶层:
73
-
74
- - schemaVersion、project、mode、generatedAt;
75
- - summary:files/bytes、usedBytes、unusedBytes、familyBytes、glbFiles、animationBytes、textureBytes、duplicateGroups、findings 计数;
76
- - assets:每个文件的 path/bytes/kind/used/confidence/refs/glb/image/error;
77
- - usage:source 模式的槽位列表;
78
- - findings:id/severity/confidence/title/path/evidence/estimatedSavings/fix/verify。
79
-
80
- estimatedSavings 是“预计可省文件字节”,不是实测收益。最终交付必须把预计与实测分开。
81
-
82
- ## 测量边界
83
-
84
- 静态扫描不证明帧率、GPU 显存、首屏时间或真实设备表现。运行时结论至少需要:
85
-
86
- - 代表性帧的 renderer.info(draws / triangles / textures / geometries);
87
- - 首画布时间与模型/人群就绪时间分开记录;
88
- - 真实网络与目标设备;无头软件渲染只能做功能冒烟。
89
-
90
- 没有这些证据时,写“未验证”,不要把文件变小写成“帧率提升”。
@@ -1,161 +0,0 @@
1
- import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
2
- import { join } from 'node:path';
3
-
4
- export const TRANSLATE_API_URL = 'http://wxup-agent.agent-toolbox.gw2clsv.woa.com/v1/translate';
5
-
6
- const QUEUE_SUBDIRS = ['pending', 'working', 'done', 'failed'];
7
-
8
- export function hasCjk(text) {
9
- return /[\u3400-\u9fff]/.test(String(text ?? ''));
10
- }
11
-
12
- export function needsTranslation(text) {
13
- const value = String(text ?? '').trim();
14
- return value.length > 0 && /^[\x00-\x7F]+$/.test(value) && /[A-Za-z]/.test(value);
15
- }
16
-
17
- export function readableEnglish(text) {
18
- return String(text ?? '')
19
- .replaceAll('_', ' ')
20
- .replace(/([a-z])([A-Z])/g, '$1 $2')
21
- .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')
22
- .trim();
23
- }
24
-
25
- function readJson(path, fallback) {
26
- if (!existsSync(path)) return fallback;
27
- try {
28
- return JSON.parse(readFileSync(path, 'utf8'));
29
- } catch {
30
- return fallback;
31
- }
32
- }
33
-
34
- function takeTitle(map, name, value) {
35
- const title = String(value ?? '').trim();
36
- if (!name || !hasCjk(title)) return;
37
- if (hasCjk(map.get(name))) return;
38
- map.set(name, title);
39
- }
40
-
41
- export function collectDisplayTitles(projectRoot) {
42
- const titles = new Map();
43
- const ledger = readJson(join(projectRoot, '.aigc-queue', 'results.json'), { items: [] });
44
- for (const item of Array.isArray(ledger.items) ? ledger.items : []) {
45
- takeTitle(titles, String(item?.name ?? '').trim(), item?.displayPath);
46
- }
47
- const queueRoot = join(projectRoot, '.aigc-queue');
48
- for (const sub of QUEUE_SUBDIRS) {
49
- const dir = join(queueRoot, sub);
50
- if (!existsSync(dir)) continue;
51
- for (const entry of readdirSync(dir, { withFileTypes: true })) {
52
- if (!entry.isFile() || !entry.name.endsWith('.json')) continue;
53
- const record = readJson(join(dir, entry.name), null);
54
- const name = String(record?.task?.name ?? '').trim();
55
- takeTitle(titles, name, record?.cardFields?.displayPath ?? record?.task?.displayPath);
56
- }
57
- }
58
- return titles;
59
- }
60
-
61
- async function fetchTranslations(texts, fetchImpl = globalThis.fetch) {
62
- if (typeof fetchImpl !== 'function') return texts.map(() => null);
63
- const platformUrl = process.env.PLATFORM_ACCESS_URL?.replace(/\/+$/, '');
64
- const platformKey = process.env.PLATFORM_ACCESS_KEY;
65
- if (platformUrl && !platformKey) return texts.map(() => null);
66
- const endpoint = platformUrl ? platformUrl + '/api/ms/agent/toolbox/translate' : TRANSLATE_API_URL;
67
- const values = [];
68
- for (let start = 0; start < texts.length; start += 50) {
69
- const batch = texts.slice(start, start + 50);
70
- let result = null;
71
- for (let attempt = 0; attempt <= 3; attempt += 1) {
72
- try {
73
- const response = await fetchImpl(endpoint, {
74
- method: 'POST',
75
- headers: { 'Content-Type': 'application/json', ...(platformUrl ? { 'x-platform-run-key': platformKey } : {}) },
76
- body: JSON.stringify({ texts: batch, source_lang: 'en', target_lang: 'zh', mode: 'fast' }),
77
- signal: AbortSignal.timeout(30_000),
78
- });
79
- if (response.status === 429) {
80
- await new Promise((resolve) => setTimeout(resolve, 2 ** attempt * 1000));
81
- continue;
82
- }
83
- if (!response.ok) throw new Error(`HTTP ${response.status}`);
84
- const payload = await response.json();
85
- if (!Array.isArray(payload.translations) || payload.translations.length !== batch.length) {
86
- throw new Error('translations 数量不对');
87
- }
88
- result = payload.translations.map((item) => String(item ?? '').trim() || null);
89
- break;
90
- } catch {
91
- if (attempt < 3 && fetchImpl === globalThis.fetch) {
92
- await new Promise((resolve) => setTimeout(resolve, 2 ** attempt * 1000));
93
- } else break;
94
- }
95
- }
96
- values.push(...(result ?? batch.map(() => null)));
97
- }
98
- return values;
99
- }
100
-
101
- export async function applyPanelTitles(projectRoot, { fetchImpl } = {}) {
102
- const controlsPath = join(projectRoot, 'configs', 'assets.controls.json');
103
- const controls = readJson(controlsPath, {});
104
- if (!controls || typeof controls !== 'object' || Array.isArray(controls)) {
105
- return { updated: 0 };
106
- }
107
- const display = collectDisplayTitles(projectRoot);
108
- const jobs = [];
109
- let updated = 0;
110
-
111
- for (const [name, entry] of Object.entries(controls)) {
112
- if (!entry || typeof entry !== 'object') continue;
113
- const fromDisplay = display.get(name);
114
- if (hasCjk(fromDisplay) && entry.title !== fromDisplay) {
115
- entry.title = fromDisplay;
116
- updated += 1;
117
- continue;
118
- }
119
- if (hasCjk(entry.title)) continue;
120
- const seed = String(entry.title || name).trim() || name;
121
- if (!needsTranslation(seed)) continue;
122
- jobs.push({ name, text: readableEnglish(seed) });
123
- }
124
-
125
- if (jobs.length > 0) {
126
- const translated = await fetchTranslations(jobs.map((job) => job.text), fetchImpl);
127
- jobs.forEach((job, index) => {
128
- const zh = translated[index];
129
- if (!hasCjk(zh)) return;
130
- if (controls[job.name].title === zh) return;
131
- controls[job.name].title = zh;
132
- updated += 1;
133
- });
134
- }
135
-
136
- if (updated) {
137
- mkdirSync(join(projectRoot, 'configs'), { recursive: true });
138
- writeFileSync(controlsPath, `${JSON.stringify(controls, null, 2)}\n`, 'utf8');
139
- }
140
- return { updated };
141
- }
142
-
143
- export function copyControlTitlesToSnapshot(projectRoot) {
144
- const snapshotPath = join(projectRoot, 'unified_data_control_config.json');
145
- const controls = readJson(join(projectRoot, 'configs', 'assets.controls.json'), {});
146
- const snapshot = readJson(snapshotPath, []);
147
- if (!Array.isArray(snapshot) || !controls || typeof controls !== 'object') return { updated: 0 };
148
- let updated = 0;
149
- for (const entry of snapshot) {
150
- if (!entry || typeof entry.schema !== 'string' || !entry.schema.startsWith('assets.')) continue;
151
- const name = entry.schema.slice('assets.'.length);
152
- const title = controls[name]?.title;
153
- if (!hasCjk(title) || entry.title === title) continue;
154
- entry.title = title;
155
- updated += 1;
156
- }
157
- if (updated) {
158
- writeFileSync(snapshotPath, `${JSON.stringify(snapshot, null, 2)}\n`, 'utf8');
159
- }
160
- return { updated };
161
- }
@@ -1,60 +0,0 @@
1
- ---
2
- name: game-art-style
3
- description: 为 JS3D 选择并直接实施画面与 UI 风格。支持首轮及生成后采用用户提供的美术 skill 文档;无用户来源时匹配八种内置风格。普通逻辑修复和资源回调不自行重选风格。
4
- ---
5
-
6
- # 用户风格与内置风格
7
-
8
- 在画面与 UI 制作之前使用。本技能及风格卡所说的「框架」指 `src/main.ts` 中已有的唯一 renderer、渲染循环与相机。依据当前用户要求、采用的风格来源与项目现有实现,直接制作代表画面和 UI,验证后扩展。本技能不规定固定题材、人物、关卡或展览界面。
9
-
10
- 八张风格卡及预览图不提供游戏相机参数;相机见 [镜头类型](../threejs-game-quality/references/camera-by-genre.md),选风格不会改变机位。
11
-
12
- ## 选择顺序
13
-
14
- 1. **先采用用户文档。** 用户当前明确指令优先于其采用的美术文档,用户文档再优先于旧项目设计和内置默认。完整风格可用 `custom` 并记名称/来源;局部文档仅覆盖对应部分。只做评审或比较时不自动应用。接入方法见 [用户文档接入](references/user-style-document.md)。
15
- 2. **没有文档时遵循显式风格要求。** 指定体素、折纸、漫画等时选对应构造;题材词不能覆盖造型要求,例如“体素恐怖医院”选 voxel 并保留恐怖气氛。八类不能覆盖的明确风格可独立定义为 custom,不强行降格为最近的一张卡。
16
- 3. **无新风格输入时延续已有画面。** 对照现有画面、实际实现与 `SPEC/plan/美术设计.md` 的风格来源行,沿用有效选择。新提供并采用的用户文档本身就是视觉更新依据,不要求额外声明“换风格”。普通修 bug、加角色或换纹理不自行重选。
17
- 4. **仍未指定时主动匹配。** 综合游戏类型、主题、形体语言、材质、情绪、玩法视距与交互需求,选择一种内置风格。两个接近时比较构造与受光方式,不为了问卷暂停正常制作。
18
- 5. **读取命中方法,直接制作并验证。** 用户路径只读其有效文档及必要补充;内置路径只读下表命中的一张卡。把造型、材料、光色与 UI 方法接入现有框架,先用代表主体、环境和实际 UI 检查,再扩展种类与场景。最终值直接由现有配置、CSS 或控制器消费。
19
-
20
- 首个代表画面与必要 UI 形成后,按 [简版美术参数](references/art-parameters-lite.md) 记录 `SPEC/plan/美术设计.md`。
21
-
22
- ## 路由与既定默认
23
-
24
- 下表只用于内置路径及不冲突的按需补充。时间、季节、色彩分别覆盖:当前用户指令优先,其次用户美术文档;其未定义项先沿用不冲突的项目值和实际框架默认,必要美术缺项才补兼容工法并标明 Agent 决定。只有内置路径直接采用下表默认,不向完整用户风格强塞八卡色板或季节。颜色按角色职责迁移,不要求所有题材都出现草、天空或水。
25
-
26
- | ID / 指南 | 最合适的视觉需求与区分点 | 默认时间 / 季节 | 默认颜色分工 |
27
- |---|---|---|---|
28
- | [cartoon](references/styles/cartoon.md) 经典卡通 | 亲和、清楚的玩具体积;连续圆润生命体配柔角结构;不是所有东西一律球形 | 晴朗日间 / 初夏 | 自然绿环境、暖白、砖红、少量角色色;中性光保本色 |
29
- | [comic](references/styles/comic.md) 美漫 | 强动作、夸张结构、有限分色、墨色轮廓;不能只给普通模型套黑边 | 暖色日间 / 不强调季节 | 暖纸底、墨蓝轮廓、有限英雄强调色 |
30
- | [cyber](references/styles/cyber.md) 赛博朋克 | 工业层级、连续衣形、局部霓虹与湿表面;科幻不自动等于机械碎片堆 | 湿润夜间 / 不强调季节 | 冷暗结构、电青/洋红分组光源及对应反射 |
31
- | [cozy](references/styles/cozy.md) 温馨治愈 | 宁静日常、较自然人物比例、连贯地形树林、宽明暗色块;不是大头玩具的同义词 | 夏日下午 / 夏季 | 蓝绿冠层、浅绿地表、灰路/米白/沙色明亮中性色 |
32
- | [paper](references/styles/paper.md) 纸片 | 切、折、卷、覆片、纸芯边与层间阴影;需要实际薄度和折面 | 柔和暖色日间或工作室照明 / 不强调季节 | 奶油纸、有限红青彩纸、稍暗纸芯 |
33
- | [horror](references/styles/horror.md) 恐怖 | 脆弱主体与压迫空间、遮挡、局部光;不靠全屏压黑 | 雾夜 / 晚秋 | 冷灰暗结构、局部旧黄暖光、保留关键路径对比 |
34
- | [voxel](references/styles/voxel.md) 体素 | 完整主方块、一致块体尺度、少量阶梯和辨识附块;不是表面贴像素图 | 晴朗日间 / 初夏 | 柔绿地面、较深冠层、木棕、自然白、少量橙蓝 |
35
- | [lowpoly](references/styles/lowpoly.md) Lowpoly | 有设计方向的大切面、低细分剪影与形体色块;不是高模随机减面 | 晴朗日间 / 初夏 | 黄绿草面、橄榄冠层、暖砂石/赭木、蓝水点缀 |
36
-
37
- 初夏、晚秋及未明确季节的默认是本套流程为稳定生成新增的设计约定,不冒称原参考站公开参数。室内或无季节题材只保留相应色光关系,不额外添花草、积雪、雨或地台。用户指定时间/天气时也不自动新增天气玩法;显式的时段/季节要求需落实到材质、光源、环境和背景,不能只改标签。
38
-
39
- ## 真正落到画面
40
-
41
- - 先按本游戏主题和所选风格确定角色的身份/物种、主剪影、比例、表情或生物特征、服饰道具、配色职责与动作,再用对应构造、材质和运动方法实现。示例人物不是固定角色库,不能只换颜色或名称就跨游戏复用同一形象;用户明确要求复刻特定角色时按该身份保真。
42
- - 先画一个能暴露比例、五官、材料和接地的代表主体,以及玩法所需承载环境;无角色题材用主要交互物验证。头部检查、发型构造与接地规则见 [construction.md](references/construction.md) 的头部段与接地段,代表头型通过后再扩展。
43
- - 主轮廓与用户定义的识别特征先成立,再按采用方案补表面和装饰。有意无脸、离体部件、平涂或 unlit 等按用户定义实施,不强加内置角色结构和材质偏好。
44
- - 各风格保留各自的材质和色彩管线。不要把晴野小岛参考里的 r180/VSM 日光配方全局盖到八风格;本库小样来源 r186,目标模板 r185.1,参数均须按目标运行结果校准。
45
- - 用户要求决定对象和玩法;示例人物、动物、职业、建筑与数量都只是说明构造的证据,不成为必生成清单。
46
-
47
- ## 仅在需要时读的方法
48
-
49
- | 当前问题 | 读取 |
50
- |---|---|
51
- | 首轮或生成后采用用户美术 skill/规范 | [user-style-document.md](references/user-style-document.md) |
52
- | 首次记录或调整画面/UI 的关键配置 | [art-parameters-lite.md](references/art-parameters-lite.md) |
53
- | 新物种/器物如何构造、截面连接、五官贴合、支点与共享资产 | [construction.md](references/construction.md) 中命中段 |
54
- | 木纹/织纹/纸纤维/粗糙度/纹理尺度、UV 与三平面选择 | [materials-textures.md](references/materials-textures.md) 中命中段 |
55
- | 地表叠层、贴花、动态阴影或表面闪烁 | [渲染稳定性](../threejs-game-quality/references/rendering-stability.md) |
56
- | 运动、相机决策或最终画面检验 | [threejs-game-quality](../threejs-game-quality/SKILL.md) 的对应模块 |
57
-
58
- 只在相应问题出现时选附页;工具支持 skill_select_docs 时按明确文件选择,不启用 include_all_docs。没有该工具时直接读取明确路径,不遍历八份指南。
59
-
60
- 需要校准复刻程度时,只查看所选 ID 对应的 assets/previews/<id>.png,参考造型、材料和光色,不参考其机位、投影或取景;不把图库所有图片加入上下文。来源核对才读 [sources.md](references/sources.md)。