@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.
- package/README.md +28 -7
- package/bin/craft-mcp.mjs +10 -2
- package/dist-server/game-workflow/bundle-files.mjs +43 -0
- package/dist-server/game-workflow/engines.mjs +13 -6
- package/dist-server/game-workflow/project-bundles.mjs +90 -0
- package/dist-server/game-workflow/project-context.mjs +91 -0
- package/dist-server/game-workflow/projects.mjs +16 -4
- package/dist-server/integrations/config.mjs +71 -0
- package/dist-server/integrations/files.mjs +54 -0
- package/dist-server/integrations/hosts.mjs +30 -0
- package/dist-server/integrations/install.mjs +86 -0
- package/dist-server/integrations/runtime.mjs +71 -0
- package/dist-server/mcp/server.mjs +13 -9
- package/dist-server/preview/preview-launcher.mjs +9 -2
- package/dist-server/preview/preview-start.mjs +2 -2
- package/package.json +10 -1
- package/resources/craft-create/SKILL.md +14 -0
- package/resources/craft-game-maker/SKILL.md +77 -71
- package/resources/craft-game-maker/js.md +10 -10
- package/resources/craft-game-maker/js3d.md +13 -13
- package/resources/game_visual_qa.mjs +1149 -1149
- package/resources/js/bundle.json +93 -0
- package/resources/js/context/AGENTS.md +15 -102
- package/resources/js/context/knowledge/AigcWiring.md +5 -196
- package/resources/js/context/knowledge/AssetUrl.md +5 -20
- package/resources/js/context/knowledge/Layout.md +7 -0
- package/resources/js/context/knowledge/Lifecycle.md +6 -27
- package/resources/js/context/skills/aigc-generate/SKILL.md +6 -141
- package/resources/js/context/skills/asset-search/SKILL.md +5 -62
- package/resources/js/context/skills/asset-search/references/resource-config.md +9 -0
- package/resources/js/context/skills/export-config/SKILL.md +7 -19
- package/resources/js/context/skills/export-config/scripts/export-config.mjs +3 -45
- package/resources/js/context/skills/index.json +30 -0
- package/resources/js/context/skills/visual-qa/SKILL.md +6 -28
- package/resources/js/project/README.md +4 -96
- package/resources/js/project/package.json +1 -2
- package/resources/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +1 -37
- package/resources/js/project/scripts/config-export.mjs +10 -34
- package/resources/js3d/bundle.json +104 -0
- package/resources/js3d/context/AGENTS.md +16 -85
- package/resources/js3d/context/knowledge/AigcWiring.md +9 -0
- package/resources/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +9 -67
- package/resources/js3d/context/knowledge/Layout.md +7 -0
- package/resources/js3d/context/knowledge/Runtime.md +5 -30
- package/resources/js3d/context/skills/aigc-integration/SKILL.md +6 -164
- package/resources/js3d/context/skills/asset-search/SKILL.md +5 -171
- package/resources/js3d/context/skills/asset-search/references/resource-config.md +6 -94
- package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +6 -82
- package/resources/js3d/context/skills/export-config/SKILL.md +7 -11
- package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +3 -55
- package/resources/js3d/context/skills/index.json +42 -0
- package/resources/js3d/context/skills/performance-audit/SKILL.md +8 -153
- package/resources/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/js3d/project/README.md +4 -103
- package/resources/js3d/project/package.json +1 -2
- package/resources/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-scene-assets.mjs +3 -28
- package/resources/js3d/project/scripts/config-export.mjs +12 -34
- package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts +8 -0
- package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/build-failure.js +39 -0
- package/vendor/agent-cli/dist/src/artifacts/build-failure.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts +5 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js +45 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +71 -6
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +2 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.js +7 -2
- package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +2 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +27 -16
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts +14 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js +119 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/static.js +20 -6
- package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -1
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/cli/process-protocol.js +24 -2
- package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -1
- package/vendor/agent-cli/dist/src/cli/process-steering.d.ts +21 -0
- package/vendor/agent-cli/dist/src/cli/process-steering.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/process-steering.js +66 -0
- package/vendor/agent-cli/dist/src/cli/process-steering.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +1 -1
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +1 -1
- package/vendor/agent-cli/dist/src/index.d.ts +4 -1
- package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/index.js +3 -0
- package/vendor/agent-cli/dist/src/index.js.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +31 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +19 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/client.d.ts +10 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/client.js +16 -5
- package/vendor/agent-cli/dist/src/session/client.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/link-session.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/link-session.js +17 -1
- package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-observability.js +11 -0
- package/vendor/agent-cli/dist/src/session/process-observability.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-request.d.ts +3 -2
- package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-request.js +27 -9
- package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +2 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.js +9 -3
- package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-steer.d.ts +42 -0
- package/vendor/agent-cli/dist/src/session/run-steer.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-steer.js +205 -0
- package/vendor/agent-cli/dist/src/session/run-steer.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts +10 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts +21 -0
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.js +102 -0
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/context-program.js +3 -0
- package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -1
- package/resources/js/context/.role/AGENTS_DESIGN.md +0 -9
- package/resources/js/context/agents/aigc-asset.md +0 -168
- package/resources/js/context/knowledge/AigcEnabled.md +0 -49
- package/resources/js/context/knowledge/FrontendComponents.md +0 -17
- package/resources/js/context/knowledge/MobileAdaptation.md +0 -73
- package/resources/js/context/knowledge/MobileAdapted.md +0 -36
- package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
- package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -115
- package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -392
- package/resources/js/context/knowledge/PlatformServices.md +0 -190
- package/resources/js/context/knowledge/ProjectDisplayConfig.md +0 -35
- package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
- package/resources/js/context/knowledge/Ui.md +0 -11
- package/resources/js/context/knowledge/UiEditorCompat.md +0 -21
- package/resources/js/context/rules/MultiplayerCapability.md +0 -23
- package/resources/js/context/rules/MultiplayerRoomEntryUX.md +0 -63
- package/resources/js/context/rules/PlatformBoundaryModules.md +0 -44
- package/resources/js/context/rules/preview_ready.md +0 -8
- package/resources/js/context/skills/aigc-generate/knowledge/audio.md +0 -39
- package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +0 -26
- package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +0 -132
- package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +0 -53
- package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +0 -52
- package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +0 -191
- package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +0 -55
- package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +0 -62
- package/resources/js/context/skills/asset-search/scripts/config.json +0 -5
- package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +0 -125
- package/resources/js/context/skills/asset-search/scripts/search.mjs +0 -760
- package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -657
- package/resources/js/context/skills/asset-search/strategies/anim2d.md +0 -42
- package/resources/js/context/skills/asset-search/strategies/audio.md +0 -34
- package/resources/js/context/skills/asset-search/strategies/effect2d.md +0 -31
- package/resources/js/context/skills/asset-search/strategies/texture-prop.md +0 -22
- package/resources/js/context/skills/asset-search/strategies/ui-common.md +0 -40
- package/resources/js/context/skills/asset-search/strategies/ui-style.md +0 -28
- package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
- package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +0 -93
- package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +0 -7
- package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +0 -22
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +0 -5
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +0 -208
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +0 -37
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +0 -227
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +0 -31
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +0 -272
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.d.mts +0 -79
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.mjs +0 -29
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/release.json +0 -22
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/cli.mjs +0 -16
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.d.mts +0 -4
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.mjs +0 -50
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +0 -3
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.mjs +0 -72
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.d.mts +0 -24
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.mjs +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.d.mts +0 -10
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +0 -37
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/cli.mjs +0 -20
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.d.mts +0 -19
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/installed.json +0 -6
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.d.mts +0 -6
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.mjs +0 -77
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.d.mts +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.mjs +0 -34
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +0 -156
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +0 -249
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +0 -87
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +0 -185
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +0 -294
- package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +0 -20
- package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +0 -5
- package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +0 -159
- package/resources/js/context/skills/mobile-adaptation/SKILL.md +0 -277
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -50
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -862
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -135
- package/resources/js/context/skills/mobile-adaptation/references/input-config.md +0 -342
- package/resources/js/context/skills/mobile-adaptation/references/verification.md +0 -140
- package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +0 -11
- package/resources/js/context/skills/mobile-compat-qa/SKILL.md +0 -53
- package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
- package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
- package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
- package/resources/js/context/skills/optimization-suggestions/SKILL.md +0 -89
- package/resources/js/context/skills/platform-services/SKILL.md +0 -101
- package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
- package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
- package/resources/js/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
- package/resources/js/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
- package/resources/js/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/modules/log.ts +0 -35
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
- package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +0 -49
- package/resources/js/context/skills/platform-services/assets/modules/save.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
- package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
- package/resources/js/context/skills/platform-services/references/api_reference.md +0 -18
- package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
- package/resources/js/context/skills/platform-services/scripts/install.mjs +0 -148
- package/resources/js/context/skills/resolution-adaptation/SKILL.md +0 -47
- package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
- package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -249
- package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +0 -98
- package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -200
- package/resources/js/context/skills/resolution-adaptation/references/audit.md +0 -31
- package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
- package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
- package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
- package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
- package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
- package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +0 -55
- package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
- package/resources/js/context/skills/scene-editor-compat/SKILL.md +0 -94
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +0 -13
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +0 -6
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +0 -25
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +0 -18
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +0 -42
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +0 -144
- package/resources/js/context/skills/scene-editor-compat/docs/contract.md +0 -330
- package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +0 -64
- package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +0 -28
- package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +0 -47
- package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +0 -64
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +0 -38
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +0 -9
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +0 -59
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +0 -30
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +0 -66
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +0 -20
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +0 -26
- package/resources/js/context/skills/scene-editor-compat/references/contract.md +0 -73
- package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +0 -162
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +0 -853
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +0 -173
- package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -427
- package/resources/js/context/skills/scene-editor-compat/version.json +0 -1
- package/resources/js/context/skills/ui-editor-compat/SKILL.md +0 -48
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -74
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js/context/skills/ui-editor-compat/references/contract.md +0 -132
- package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
- package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
- package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
- package/resources/js/context/skills/version-update/SKILL.md +0 -192
- package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
- package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
- package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
- package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js/context/version/version.json +0 -1
- package/resources/js/project/SPEC/assist/.gitkeep +0 -0
- package/resources/js/project/SPEC/guide/.gitkeep +0 -0
- package/resources/js/project/SPEC/plan/.gitkeep +0 -0
- package/resources/js/project/SPEC/readme.md +0 -6
- package/resources/js/project/SPEC/res/.gitkeep +0 -0
- package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -29
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/release.json +0 -37
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js/project/vendor/core-manager-js/package.json +0 -33
- package/resources/js/project/vendor/core-manager-js/src/.versions.json +0 -42
- package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +0 -41
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +0 -93
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +0 -203
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +0 -106
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +0 -25
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +0 -21
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +0 -65
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +0 -340
- package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +0 -87
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +0 -92
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +0 -271
- package/resources/js/project/vendor/core-manager-js/src/index.ts +0 -31
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +0 -81
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +0 -43
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +0 -32
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +0 -141
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +0 -20
- package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +0 -183
- package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +0 -304
- package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +0 -351
- package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +0 -180
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +0 -13
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +0 -14
- package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +0 -68
- package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +0 -433
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +0 -118
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +0 -444
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +0 -485
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +0 -66
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +0 -149
- package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +0 -9
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +0 -29
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +0 -88
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +0 -122
- package/resources/js/project/vendor/core-manager-js/src/runtime.ts +0 -24
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +0 -318
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +0 -151
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +0 -235
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +0 -98
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +0 -94
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +0 -209
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +0 -106
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +0 -341
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +0 -68
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +0 -236
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +0 -22
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +0 -29
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +0 -197
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +0 -9
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +0 -555
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +0 -112
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +0 -178
- package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +0 -246
- package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +0 -139
- package/resources/js/project/vendor/core-manager-js/tsconfig.json +0 -15
- package/resources/js/project/vendor/run.sh +0 -4
- package/resources/js/project/version/craft_feature_version.json +0 -42
- package/resources/js/project/version/project_feature_version.json +0 -11
- package/resources/js3d/context/.role/AGENTS_DESIGN.md +0 -9
- package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +0 -75
- package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +0 -42
- package/resources/js3d/context/knowledge/FrontendComponents.md +0 -19
- package/resources/js3d/context/knowledge/MobileAdaptation.md +0 -73
- package/resources/js3d/context/knowledge/MobileAdapted.md +0 -36
- package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
- package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -117
- package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -430
- package/resources/js3d/context/knowledge/PlatformServices.md +0 -190
- package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +0 -35
- package/resources/js3d/context/knowledge/SceneEditorCompat.md +0 -35
- package/resources/js3d/context/knowledge/StepByStep.md +0 -21
- package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
- package/resources/js3d/context/knowledge/UiEditorCompat.md +0 -21
- package/resources/js3d/context/rules/MultiplayerCapability.md +0 -27
- package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +0 -63
- package/resources/js3d/context/rules/PlatformBoundaryModules.md +0 -44
- package/resources/js3d/context/rules/preview_ready.md +0 -8
- package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +0 -70
- package/resources/js3d/context/skills/aigc-integration/callback.md +0 -77
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +0 -23
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +0 -38
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +0 -72
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +0 -33
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +0 -36
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +0 -37
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +0 -35
- package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +0 -58
- package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +0 -62
- package/resources/js3d/context/skills/asset-search/scripts/config.json +0 -235
- package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +0 -905
- package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +0 -79
- package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +0 -74
- package/resources/js3d/context/skills/asset-search/scripts/search.mjs +0 -637
- package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -667
- package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +0 -42
- package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +0 -31
- package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +0 -89
- package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +0 -143
- package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +0 -90
- package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
- package/resources/js3d/context/skills/game-art-style/SKILL.md +0 -60
- package/resources/js3d/context/skills/game-art-style/assets/previews/cartoon.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/comic.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cozy.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cyber.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/horror.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/lowpoly.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/paper.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/voxel.png +0 -0
- package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +0 -38
- package/resources/js3d/context/skills/game-art-style/references/construction.md +0 -111
- package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +0 -105
- package/resources/js3d/context/skills/game-art-style/references/sources.md +0 -25
- package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +0 -175
- package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +0 -168
- package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +0 -191
- package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +0 -165
- package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +0 -173
- package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +0 -185
- package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +0 -181
- package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +0 -189
- package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +0 -88
- package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +0 -301
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -104
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -933
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -257
- package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +0 -342
- package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +0 -140
- package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +0 -11
- package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +0 -53
- package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +0 -10
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
- package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +0 -74
- package/resources/js3d/context/skills/performance-audit/references/case-notes.md +0 -93
- package/resources/js3d/context/skills/performance-audit/references/rules.md +0 -183
- package/resources/js3d/context/skills/platform-services/SKILL.md +0 -101
- package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
- package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
- package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +0 -35
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
- package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +0 -49
- package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +0 -1
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
- package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
- package/resources/js3d/context/skills/platform-services/references/api_reference.md +0 -18
- package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
- package/resources/js3d/context/skills/platform-services/scripts/install.mjs +0 -148
- package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +0 -46
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -239
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +0 -129
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -188
- package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +0 -31
- package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
- package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
- package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
- package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
- package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
- package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
- package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +0 -599
- package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +0 -141
- package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +0 -92
- package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +0 -125
- package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +0 -113
- package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -1187
- package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +0 -53
- package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +0 -4
- package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +0 -94
- package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +0 -50
- package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +0 -105
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +0 -147
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +0 -79
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +0 -56
- package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +0 -51
- package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +0 -55
- package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +0 -78
- package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +0 -84
- package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +0 -120
- package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +0 -4
- package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +0 -238
- package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +0 -59
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -61
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +0 -110
- package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
- package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
- package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
- package/resources/js3d/context/skills/version-update/SKILL.md +0 -191
- package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
- package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
- package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
- package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js3d/context/version/version.json +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -30
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +0 -39
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -7
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +0 -26
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +0 -351
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js3d/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js3d/project/vendor/core-manager-three/package.json +0 -12
- package/resources/js3d/project/vendor/core-manager-three/src/index.ts +0 -2
- package/resources/js3d/project/vendor/run.sh +0 -4
- package/resources/js3d/project/version/craft_feature_version.json +0 -42
- package/resources/js3d/project/version/project_feature_version.json +0 -11
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +0 -7
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +0 -145
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +0 -1
- /package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
- /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
- /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +0 -0
|
@@ -1,172 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: aigc-integration
|
|
3
|
-
description:
|
|
4
|
-
用 AIGC 生成/定制游戏资源(2D 图片、角色序列帧、静态模型、音乐、封面)。用户表达「AIGC 生成一个
|
|
5
|
-
xxx」「重新生成这个图标/模型/BGM」「生成一张游戏封面」或等价意图时触发;异步生成结果
|
|
6
|
-
返回或用户询问进度时也用它;查询不触发替换,应用按 callback.md 回填,不重复提交。
|
|
7
|
-
除封面外以 config key 作为资产实体名,结果回填 configs。
|
|
3
|
+
description: 为 3D / Three.js 游戏生成并接入模型、贴图、音乐或动画;需要平台生成素材时使用。
|
|
8
4
|
---
|
|
9
5
|
|
|
10
|
-
#
|
|
6
|
+
# 3D 素材生成与接入
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
本文件只管三件它管不了的事:**谁该走 AIGC、提示词怎么写、产物怎么接线**。
|
|
8
|
+
明确每项素材的用途、slot、尺度、视角和风格。先读取当前 craft_game_info.aigc:静态模型使用 static_mesh,骨骼角色使用 skeletal_mesh,图片使用 image,音乐使用 music,动作使用实际支持的 animation 参数。
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
>
|
|
17
|
-
> | 资产类型 | 交付方式 |
|
|
18
|
-
> |---|---|
|
|
19
|
-
> | 贴图(`texture-*`)/ 角色序列帧(`character2d`)/ 封面 / 音乐 | 收尾用 `wait_for_tasks` 后调 `aigc_status` 接线 |
|
|
20
|
-
> | **静态模型(`staticmesh`)** | 提交即止;按需查进度,用户要求应用后回填 |
|
|
21
|
-
>
|
|
22
|
-
> 所以一轮里同时要贴图和模型时,**贴图当轮就能接上,模型留到后续轮次**——
|
|
23
|
-
> 交付说明要分开讲清楚,不要笼统说「都在生成中」。
|
|
24
|
-
> 模型类产物由用户在资源中心应用后推回来,届时按 [callback.md](callback.md) 回填;
|
|
25
|
-
> **不要轮询、不要为它延迟交付**。
|
|
10
|
+
调用 craft_assets_generate,每批 1~8 项,保留稳定 request_key 与返回的任务 ID。轮询 craft_task_status;超时或会话中断通过 craft_assets_status 恢复,已有结果用 craft_assets_import 导入,不盲目重发计费任务。
|
|
26
11
|
|
|
27
|
-
|
|
12
|
+
模型提示词说明轮廓、结构、材质、风格和游戏用途;角色动作需匹配实际骨骼,不能用平面图集冒充骨骼动画。纹理说明平铺与色彩用途,透明字段与工具 schema 一致。
|
|
28
13
|
|
|
29
|
-
|
|
30
|
-
> 就是提交给工具的 `name`;当轮完成项按结果的 `name` 定位,只有跨轮模型把它作为 `slot` 发给后端并由回调带回。
|
|
31
|
-
> 除封面外,**没有 config key 的资源不允许提交 AIGC**。
|
|
32
|
-
|
|
33
|
-
## 视觉风格来源
|
|
34
|
-
|
|
35
|
-
用于 `staticmesh`、`texture-*`、`character2d` 和 `cover`;音频的【风格】仍指配器与音色,不使用本节。
|
|
36
|
-
|
|
37
|
-
- 用户当前明确要求优先。已有简表时,读 `SPEC/plan/美术设计.md` 的「风格来源」行,并沿引用的源文档或命中风格卡读取与本次资源相关的段落;结合实际配色、材质与配置中的已采用值组织提示词。
|
|
38
|
-
- 简表识别、同名用户文档冲突与备用路径按 [简版美术参数](../game-art-style/references/art-parameters-lite.md#同名文件与已有项目) 处理。
|
|
39
|
-
- 没有简表时,沿用本轮已采用的源文档或风格卡;仍无来源时按用户要求、`SPEC/plan/游戏设计.md` 的美术方向与实际画面确定。本次不为 AIGC 补建美术文档或重新选择全局风格。
|
|
40
|
-
- 下方及知识文件中的示例只说明提示词格式,不是项目默认风格。
|
|
41
|
-
|
|
42
|
-
## 支持范围
|
|
43
|
-
|
|
44
|
-
| 需求 | `category` | controls `asset_type` |
|
|
45
|
-
|---|---|---|
|
|
46
|
-
| 2D 图片(图标、UI、道具图、场景贴图) | `texture-ui` / `texture-prop` / `texture-scene` | `Texture2D` |
|
|
47
|
-
| 角色动作序列帧(Sprite / 平面上的 2D 动画) | `character2d` | `PaperFlipbook` |
|
|
48
|
-
| 静态模型(道具、建筑、场景物件、装饰) | `staticmesh` | `StaticMesh` |
|
|
49
|
-
| 音乐 / BGM / 循环环境音 | `audio` | `SoundWave` |
|
|
50
|
-
| 游戏封面 / 分享图 / 宣传图 | `cover` | **不进 configs** |
|
|
51
|
-
|
|
52
|
-
音频只生成 **BGM / 循环环境音**:循环播放的底噪与配乐走 `audio`,`audio_role` 取 `bgm` / `ambience`。
|
|
53
|
-
|
|
54
|
-
其他类型(单次触发的短音效、骨骼模型、骨骼动画、特效)**一律不支持**:`category` 枚举里没有它们,
|
|
55
|
-
直接说明不支持并走 `asset-search` 普通召回。禁止降级到相近类型充数——音效不得改用 `audio` 生成。
|
|
56
|
-
|
|
57
|
-
`character2d` 生成平面角色动画,不生成 3D 骨骼动画,也不代替场景中应有的三维模型。
|
|
58
|
-
AIGC `effect2d` 不开放,特效序列帧可通过 `asset-search` 的 `effect2d` 召回,不能改报成 `character2d` 生成。角色序列帧按
|
|
59
|
-
[角色序列帧](knowledge/aigc/character2d-aigc-knowledge.md) 准备首帧、动作与 Three.js 消费方。
|
|
60
|
-
|
|
61
|
-
## 分支判定(第一步,必须先判)
|
|
62
|
-
|
|
63
|
-
| 用户需求 | 分支 |
|
|
64
|
-
|---|---|
|
|
65
|
-
| 替换/重做**已存在**的资产(「把这个图标换成…」「重新生成主角模型」「这个 BGM 不对,改成…」) | **A. 替换已有** |
|
|
66
|
-
| 生成一个**当前工程还没有**的资源(「加一个宝箱模型」「生成一个技能图标」) | **B. 新增资源** |
|
|
67
|
-
| 封面 / 宣传图 | **C. 封面**(不走 A/B) |
|
|
68
|
-
|
|
69
|
-
判不准时按 B 处理(B 天然包含 A 的后半段)。
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## 分支 A:替换已有资产
|
|
74
|
-
|
|
75
|
-
**提交前建立实际消费的配置锚点。** manifest 槽位或 `src/**` 中硬编码路径不能替代 config key。以 `gameScene.crate_model` 为例,字符串路径在 `configs/gameScene.json` 的 `crate_model` 字段,`type: resource` 与 `asset_type` 放在 `configs/gameScene.controls.json` 的同名条目。
|
|
76
|
-
|
|
77
|
-
1. 在 `${CRAFT_PROJECT_DIR}/configs/*.json` 中定位消费该资产的字符串字段,并核对对应 controls 的资源类型。
|
|
78
|
-
2. 找不到时,先新增字段、controls 与实际消费:
|
|
79
|
-
- 将当前正在使用的真实路径放进 `configs/<owner>.json`,元数据按上表声明;
|
|
80
|
-
- 业务改为普通 JSON import 读取字段,保留已有加载与销毁逻辑;
|
|
81
|
-
- 当前只有程序化表现时按 B 分支建立占位与消费分流。
|
|
82
|
-
3. 用该 config key 作为 `name` 提交(见「提交」)。
|
|
83
|
-
|
|
84
|
-
**配置中的路径在提交后保持原样不动**,等结果回来才替换。
|
|
85
|
-
|
|
86
|
-
## 分支 B:新增资源
|
|
87
|
-
|
|
88
|
-
AIGC 期间工程保持可运行,先建立可被回填的配置字段与消费方,再提交生成任务。
|
|
89
|
-
|
|
90
|
-
1. 优先复用当前项目同类资产;需要资源库替代素材时使用 `${CRAFT_CONTEXT_DIR}/skills/asset-search`,只召回本轮所需槽位。已有合适程序化占位时可直接沿用。
|
|
91
|
-
2. 将真实替代路径写进 `configs/<owner>.json`,并在同名 controls 声明 `type: resource` 和对应 `asset_type`。通过普通 JSON import 与实际 loader 接入消费。
|
|
92
|
-
3. 暂无真实路径时,配置字段可为空字符串,消费方必须判断非空后才加载,空值走程序化占位或不播放音频。manifest 如有该槽位则保持 `TODO + null`;不能伪造路径或把占位报告为成品。
|
|
93
|
-
4. 确认配置键与消费方已经存在,用该 config key 作为 `name` 提交。
|
|
94
|
-
|
|
95
|
-
## 分支 C:封面
|
|
96
|
-
|
|
97
|
-
封面是会话/分享展示图,**不是运行时资源**:不进 `configs/**`、不占 config key、不进 `asset-manifest.json`、不需要回填。
|
|
98
|
-
|
|
99
|
-
1. 从用户需求提炼画面主体 + 场景 + 氛围,画风按 [视觉风格来源](#视觉风格来源) 提取。
|
|
100
|
-
2. 封面 `size` 一律 `1024x1024`(方形)。
|
|
101
|
-
3. `name` 随便取个唯一标识即可(不进 HTTP、没有回填目标),`category` 填 `cover`。
|
|
102
|
-
4. 提交后提醒用户确认积分消耗;按返回的 `follow_up` 用 `wait_for_tasks` 收回后台任务,再用 `aigc_status` 取得结果并报告成功或失败。封面属于 `delivery=await`,不能提交后立即结束,否则未收回的后台任务会被取消。结果仍不写入 configs 或 manifest。
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## 提交
|
|
107
|
-
|
|
108
|
-
本轮全部资产**一次交完**,工具负责拆批与串行。一个回合只准调一次 `aigc_submit`。
|
|
109
|
-
|
|
110
|
-
工具列表里没有它时,说明服务端版本比本上下文旧:**如实告诉用户「当前服务端还没有 AIGC
|
|
111
|
-
生成能力」,并问他是等更新还是本轮先用程序化方案**。两者是不同交付物,由用户选。
|
|
112
|
-
|
|
113
|
-
```json
|
|
114
|
-
{ "assets": [
|
|
115
|
-
{ "name": "uiHud.gem_icon", "category": "texture-ui", "display_name": "绿宝石图标",
|
|
116
|
-
"prompt": "【主体】...\n【风格】...", "size": "1024x1024" },
|
|
117
|
-
{ "name": "gameScene.crate_model", "category": "staticmesh", "display_name": "木箱模型",
|
|
118
|
-
"prompt": "【主体】...\n【材质】...",
|
|
119
|
-
"wiring": { "config_file": "configs/gameScene.json",
|
|
120
|
-
"manifest_slot": "wooden_crate", "asset_type": "StaticMesh" } }
|
|
121
|
-
] }
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
| 字段 | 说明 |
|
|
125
|
-
|---|---|
|
|
126
|
-
| `name` | **带点的 config key**(`<owner>.<name>`)。不是 manifest 的 snake_case 槽位名,也不是资产路径。封面除外 |
|
|
127
|
-
| `display_name` | 中文展示名(如「绿宝石图标」),进对话流卡片与资源中心 |
|
|
128
|
-
| `prompt` | 分维度文本(`【维度名】内容`,换行分隔),按 `knowledge/aigc/*` 对应 category 的模板构造。**图片类必须包含「不要文字,不要水印,不要复杂背景」** |
|
|
129
|
-
| `size` | 仅图片/封面:`1024x1024` / `1024x768` / `768x1024` / `1280x720` / `720x1280` |
|
|
130
|
-
| `duration` / `bpm` | 音乐:整数秒 `duration [10,240]`、`bpm [40,240]`;序列帧:整数秒 `duration [3,5]`,默认 3,不传 `bpm` |
|
|
131
|
-
| `derive_first_frame_from` | 每条 `character2d` 指向同一次提交中参考立绘的 `name`,不是 URL;工具先出立绘再生成动作 |
|
|
132
|
-
| `clip_start` / `clip_end` | 仅序列帧:可选抽帧区间(秒),需满足 `0 <= clip_start < clip_end <= duration`;不裁剪则省略 |
|
|
133
|
-
| `wiring` | **仅 `staticmesh` 必填**。见下 |
|
|
134
|
-
|
|
135
|
-
**`wiring` 只有跨轮交付的资产要填。** 模型产物在后续轮次才回来,那时本轮上下文早没了,
|
|
136
|
-
落点信息必须随提交一起落账,否则只能丢掉一次已计费的生成(工具当场报 `missing_wiring`)。
|
|
137
|
-
贴图 / 角色序列帧 / 音乐 / 封面本轮就接线,**不要传 `wiring`**。
|
|
138
|
-
|
|
139
|
-
- `config_file`:项目根内相对路径,形如 `configs/gameScene.json`,必须与 `name` 的 owner 段一致
|
|
140
|
-
- `manifest_slot`:该资源在 `SPEC/res/asset-manifest.json` 的根节点键。B 分支为新登记的槽位,
|
|
141
|
-
A 分支为原资产槽位;确实不存在时留空
|
|
142
|
-
- `asset_type`:`Texture2D` / `StaticMesh` / `SoundWave`,回填前据此校验 URL 后缀
|
|
143
|
-
|
|
144
|
-
工具返回 `batches`(按批的名字清单)与 `rejected`(不支持的类型)。按批向用户说明提交了什么,
|
|
145
|
-
**`rejected` 必须如实报告**,不得静默降级。账本由工具自动写入
|
|
146
|
-
`${CRAFT_PROJECT_DIR}/.aigc-queue/results.json`。提交与本轮等待阶段不要手写账本;仅跨轮资源应用后的终态回填按 `callback.md`「清理与校验」处理。
|
|
147
|
-
|
|
148
|
-
## 取结果
|
|
149
|
-
|
|
150
|
-
- **贴图 / 角色序列帧 / 音乐 / 封面(`await`)**:收尾前 `wait_for_tasks`,再用 `aigc_status` 读取本地 `completed + result_url`,按 `callback.md` 回填。序列帧 `result_url` 是 `PaperFlipbook` manifest JSON,按[序列帧接线](knowledge/aigc/character2d-aigc-knowledge.md#threejs-接线)加载图集并逐帧播放。
|
|
151
|
-
- **静态模型(`fire_and_forget`)**:提交后继续交付;用户问进度时调用一次 `aigc_status` 查后端。`awaiting_preview` 是「待预览确认」,请用户到资源中心预览确认;`completed` 是「生成完成」,不代表已应用到项目。
|
|
152
|
-
- 跨轮查询不触发替换;用户明确要求应用或发来应用资源消息后,才按 `callback.md` 回填。
|
|
153
|
-
- `failed` 如实报告 `error/reason`;`unknown/unavailable` 说明暂时无法确认,不猜成仍在生成、失败或取消,均不重新提交。
|
|
154
|
-
- 序列帧失败(`keep_portrait_placeholder`)时保留已有动作;新增动作字段仍为空,消费方回退成功立绘或原占位,不把立绘 URL 写进 `PaperFlipbook` 字段。
|
|
155
|
-
- `pending_confirm` 请用户确认积分;`await` 确认后继续 `wait_for_tasks`,跨轮任务正常收尾。
|
|
156
|
-
|
|
157
|
-
## 音乐接线
|
|
158
|
-
|
|
159
|
-
- 使用 `THREE.AudioLoader` 解码 `AudioBuffer`,当前 runtime 通用 asset loader 不默认解码音频;路径为空时不加载、不播放。
|
|
160
|
-
- 在真实 pointerdown / keydown 内解锁 AudioContext;兼顾先交互后加载与先加载后交互,仅 buffer 就绪且 context 为 running 时播放,失败保留下次交互重试。BGM 按需求循环,已有播放器不重复创建。
|
|
161
|
-
- 重开不叠播;销毁时停止并断开音源、清理 listener 和交互事件,阻止迟到加载启动播放,不关闭共享 AudioContext。不为音乐擅自新增开始菜单。
|
|
162
|
-
- 按统一交付要求确认实际播放、重开不叠播、加载失败不挡玩法;仅有路径不算验证了声音。
|
|
163
|
-
|
|
164
|
-
## 硬性禁止
|
|
165
|
-
|
|
166
|
-
- 不把 `AIGC_PENDING`、`TODO`、`READY`、`DRAW` 写成资源路径;manifest 只接受 `TODO` / `READY`。空字符串仅用于已有非空检查与可运行占位的新字段,不能覆盖当前真实路径。
|
|
167
|
-
- 可回填的资源从配置读取,不把生成结果内联到 `src/**`。
|
|
168
|
-
- 任何分支均不得编造产物 URL;失败不得回退成「已完成」,也不得把失败任务转成普通召回后当作成功。
|
|
169
|
-
- 禁止为封面创建 config key 或 manifest 槽位。
|
|
170
|
-
- 不要自己 `sleep` 轮询,不要为 `staticmesh` 延迟交付。
|
|
171
|
-
|
|
172
|
-
回填规则见 `callback.md`。
|
|
14
|
+
按 [模型加载](../asset-search/references/resource-config.md) 与 [接线](../../knowledge/AigcWiring.md) 使用实际产物,核实方向、尺度、地面接触、动画和资源释放。配置有值不等于模型已经出现在画面中。
|
|
@@ -1,178 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asset-search
|
|
3
|
-
description:
|
|
4
|
-
从资源库检索模型、骨骼动画、角色/特效序列帧、贴图与音频。需要为本轮玩法实体、具象 UI 素材或具名音效
|
|
5
|
-
找现成资产时使用;用户要求美术升级、更换模型或反馈画面粗糙时也用它补召回。
|
|
6
|
-
按本轮需求登记与召回,不依赖固定策划文档或场景流程。URL 解析、通用加载和 ASTC 在 runtime/lightgame/1.1.0/tools,不由本 skill 提供。
|
|
3
|
+
description: 为当前 3D / Three.js 游戏检索并导入 Craft 素材库资源;需要现有图片、音频、模型或骨骼动作时使用。
|
|
7
4
|
---
|
|
8
5
|
|
|
9
|
-
#
|
|
6
|
+
# 3D / Three.js 素材库
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
读取 craft_game_info 的当前引擎 library 分类,按实际 slot、category、query 调用 craft_assets_search。等待任务完成,检查候选类型、metadata、score 和错误,按需求选用;搜索本身不生成素材。
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
通过 craft_assets_import 传 source=library、search_id、candidate_id、slot、稳定 request_key 导入。只使用返回候选,不猜测资源地址。不同来源分批处理,AssetId 与生成任务 resource_id 分开保存。
|
|
14
11
|
|
|
15
|
-
-
|
|
16
|
-
- 用户提供官方资源地址或平台附件资源块时,用下方 `--provide` 保存资源 ID 映射,再接入业务配置。
|
|
17
|
-
- 需求取自用户要求、已有 `SPEC/` 文档与实际代码;只读与目标资源有关的内容,不要求先生成策划、范围文档或场景蓝图。
|
|
18
|
-
- 本次处理范围是当前需要检索、补充或替换的实体及其必要配套资源,不自动并入历史角色 TODO 或无关场景槽位。下方屏蔽、地表、骨骼与 Query 规则保留;按对应规则处理本次资源,不据此新增全项目预登记步骤。
|
|
19
|
-
- 用户禁止外部资产时遵守限制;没有召回需求时直接制作,不为调用 skill 建空 manifest 或占位登记。
|
|
20
|
-
|
|
21
|
-
## 需求拆解与槽位登记
|
|
22
|
-
|
|
23
|
-
- 使用 manifest 批处理时,只创建或合并本次所需槽位;保留已有无关条目,不预登记未来可能使用的实体,不规定扩充数量或近中远档位。
|
|
24
|
-
- 骨骼模型及配套动作的登记要求见下方「骨骼动画」;已有合适 READY 资源直接复用,不为完成流程重新召回。`check` 输出的角色集合是清单信息,不自动成为本次 batch 范围。
|
|
25
|
-
- `purpose` 描述资源主体、用途与视觉/声音要求,不含实现方案;风格与 query 按「判型与 Query」处理。确需扩充的条目可用已有 `origin: enrich` 标记,不把“扩充”写进检索词,也不借补素材新增玩法。
|
|
26
|
-
- 命中不等于完成接入:本次采用的 READY 资源由当前 Agent 接入实际消费方;结果与需求不符时说明弃用原因,不为了 READY 状态强行使用。未命中保留 `TODO + null`,维持可运行的现有表现。
|
|
27
|
-
- slot、字段、依赖及状态配套由 `check` 校验;只处理实际错误,不把登记检查变成独立制作阶段。
|
|
28
|
-
|
|
29
|
-
## 屏蔽清单(硬门禁)
|
|
30
|
-
|
|
31
|
-
仅以下**封闭清单**不召回,**不可外推**;清单之外一切可见实体无论多简单都必须召回(对清单做「等」类开放式外推违规):
|
|
32
|
-
|
|
33
|
-
| 不召回项 | 原因与去向 |
|
|
34
|
-
|---|---|
|
|
35
|
-
| 天空盒 / 环境光照 | 由渲染参数与配置控制;天空贴图本身仍按 `ui` / `staticmesh` 召回 |
|
|
36
|
-
| 数学生成的地形高度图 | 高度数据非美术资产;其**地表表现**按下方地表方案召回 |
|
|
37
|
-
| 粒子特效本体 | 程序化实现(`Points`/`Sprite` + 材质参数,标注 `// VFX: <说明>`,不适用 `// TODO(asset):`);**载体模型仍需召回**(子弹/法球按 `staticmesh`/`skeletalmesh` 判型),逐帧动画贴图(火焰、爆炸)按 `effect2d` 召回,单张魔法阵等静态贴图按 `ui` 召回;不得把可见实体降级成粒子代替 |
|
|
38
|
-
| 背景片 / backdrop | 资产库该子类多为占位低质;具备独立语义的远景物件仍按 `staticmesh` 召回 |
|
|
39
|
-
| UI 结构性控件(面板底板、按钮、进度条、分隔装饰) | DOM UI 下由 CSS 实现(`ui-panel`/`ui-btn`/`ui-bar` 类 + 色板 token);图标、头像、背景图仍按 `ui` 召回 |
|
|
40
|
-
|
|
41
|
-
### 地表方案(场景优化轮)
|
|
42
|
-
|
|
43
|
-
已有 `SPEC/res/场景蓝图.md` 的 `terrain.method` 声明时沿用其方案;没有时根据用户需求与实际场景的承载面选择,不要求先产出蓝图。首轮不执行本表(程序化承载面)。场景资产**程序化为基线**:下表召回动作仅在场景优化轮 **VLM 仲裁判「协调性不足/质量偏弱」或用户点名**时执行:
|
|
44
|
-
|
|
45
|
-
| 声明 | 召回动作(仅 VLM 仲裁/点名时) | 编码动作(基线) |
|
|
46
|
-
|---|---|---|
|
|
47
|
-
| `模型地表`(有造型/起伏/可辨识地块结构) | `staticmesh` | 按场景需求以程序化造型实现;仅 VLM 仲裁/点名召回到 READY 才实例化资产,**禁止 `PlaneGeometry` 兜底** |
|
|
48
|
-
| `贴图地表`(平坦大面积承载面) | `terrain_texture` | 程序化承载面为基线;仅 VLM 仲裁/点名召回到 READY 才贴图贴 `PlaneGeometry` + `RepeatWrapping` |
|
|
49
|
-
|
|
50
|
-
VLM 仲裁/点名召回失败保留 `TODO` 与原程序化基线,不因召回失败改变已确定的地表方案。地表方案不豁免其上物件:平台、台阶、栏杆、石块等同为程序化基线、点名/仲裁按需处理。
|
|
51
|
-
|
|
52
|
-
## 骨骼动画(硬门禁)
|
|
53
|
-
|
|
54
|
-
`skeletalmesh` 本体不含动画数据,每个骨骼槽位必须同一次提交配套登记 `sequence`:
|
|
55
|
-
|
|
56
|
-
1. 动作集取用户需求、已有设计与实际玩法行为,逐条登记;每个骨骼实体包含 `idle`,移动、攻击、受击等行为各配对应动作。
|
|
57
|
-
2. 槽位命名 `<mesh_slot>_<动作名>`。
|
|
58
|
-
3. `batch` 自动兜底 `idle`,其余动作显式登记。
|
|
59
|
-
|
|
60
|
-
- slot 命名 `<mesh_slot>_<action>`;purpose 只描述**动作**、不重复模型外观。**sequence query 写法**:拼「骨骼身份+动作标签」,身份拉开同骨架近似动作的距离,动作段用 2~4 个短标签(动作名、姿态/发力/武器、循环性)喂足语义。例:`僵尸待机,站立、缓慢摇晃、循环`。
|
|
61
|
-
- **工具/劳作类动作再带工具名**:写「农夫手持水壶浇水」而非裸动词,拉开近似动作距离(「喷水技能」vs「浇水」)。
|
|
62
|
-
- depends_on 存在性与指向校验由 `check` 拦截;`sequence` 召回依赖上游 READY 返回的 `skeleton_tag` 作骨骼过滤——没有 `depends_on` 只会召回到套不上的动画。
|
|
63
|
-
|
|
64
|
-
## 召回资产朝向
|
|
65
|
-
所有`skeletalmesh`的默认正面朝向为坐标轴-Z方向,所有`staticmesh`的朝向参考召回结果中的`Direction`字段
|
|
66
|
-
|
|
67
|
-
## 库模型路径
|
|
68
|
-
召回返回的模型路径**原样保存**,不要手工改写或补前缀——挂载归一化、分级选档与压缩贴图都由加载侧(`loadGlbModel`)自动完成,登记与召回不涉及这些细节;接入见 [资源配置与运行时接入](references/resource-config.md)。
|
|
69
|
-
|
|
70
|
-
## 判型与 Query
|
|
71
|
-
|
|
72
|
-
| category | 路由标准 |
|
|
73
|
-
|---|---|
|
|
74
|
-
| `skeletalmesh` | 带骨骼、可播动画的模型(角色、怪物、NPC)。**判到此类必须同时登记 sequence** |
|
|
75
|
-
| `sequence` | 骨骼动画片段,经 `depends_on` 绑定 `skeletalmesh` |
|
|
76
|
-
| `anim2d` | 在 Sprite / 平面上播放的角色动作序列帧,路由 `anim_2d_js`,不依赖骨架 |
|
|
77
|
-
| `effect2d` | 火焰、爆炸、命中等特效序列帧,路由 `effect_2d_js`;不是 3D 粒子系统 |
|
|
78
|
-
| `staticmesh` | 无骨骼静态 3D 模型(物件、建筑、家具、武器、植被、山石) |
|
|
79
|
-
| `geometry` | **确实无美术语义**的纯结构件(碰撞可视化、调试、纯色底座);purpose 必须说明「为何没有美术语义」,说不出即误判改 `staticmesh`。**不是「用几何体拼场景」的许可** |
|
|
80
|
-
| `terrain_texture` | 贴 3D 地表的平铺贴图(`贴图地表` 声明时用);贴屏幕 UI 层归 `ui`,有体积的地块模型归 `staticmesh` |
|
|
81
|
-
| `ui` | 图标、头像、背景图及静态展示贴图;**结构性控件不判此类** |
|
|
82
|
-
| `audio` | BGM、环境音、界面音、玩法音效 |
|
|
83
|
-
|
|
84
|
-
`anim2d` / `effect2d` 的 query 分别按 [角色动作策略](strategies/anim2d.md) / [特效策略](strategies/effect2d.md),与 JS2D 使用相同字段语义;其余类别的 query 是一行纯语义词,用顿号/逗号列 2~6 个有区分力的词,不写字段名。下表子分类、风格等只是**参考方向**,措辞自定、不必逐字命中。**风格**:用户原话提到才写(逐字,如 科幻/中国风/西方魔幻/赛博朋克/二次元/卡通/写实/lowpoly),没提就省略——未经用户确认的派生基调不算约束,协调性在资源接入后的实际画面验证中判断。
|
|
85
|
-
|
|
86
|
-
| category | 维度顺序(思考清单,非输出格式) | 关键约束 |
|
|
87
|
-
|---|---|---|
|
|
88
|
-
| `skeletalmesh` | 身份描述→子分类→风格→体型→标签 | 子分类参考:动物/怪物/人形/物件(按需自判粒度) |
|
|
89
|
-
| `sequence` | 骨骼身份+动作标签 | 写法见「骨骼动画」节;骨架兼容性靠 `depends_on` 的 skeleton_tag 过滤 |
|
|
90
|
-
| `staticmesh` | 内容描述→子分类→尺寸→放置→风格→场景 | 子分类参考:家具/山石/建筑/植被/武器/物品/道具/食物/机关/载具(按需自判);尺寸:小/中/大;放置:落地/台面/顶面/靠墙 |
|
|
91
|
-
| `geometry` | 形状描述→方向→场景→标签 | 形状须明确几何体名(棱柱/球体/锥体/环/底座/楔形等) |
|
|
92
|
-
| `terrain_texture` | 内容描述→风格 | 内容**只写材质/地貌本身**(草地/地砖/泥地/雪地/岩石/木板…);**禁止写「地图」「无缝平铺/seamless/tileable」**及模型维度;平铺密度由编码阶段按 `meta.width/height` 与实际米数现算 |
|
|
93
|
-
| `ui` | 视觉描述→子分类→风格→场景→缩放 | 子分类参考:图标/头像/背景图 |
|
|
94
|
-
| `audio` | 用途描述→子分类→时长→触发→语义 | 子分类:音乐/界面/移动/战斗/环境/游戏;时长:短/中/长/循环;触发:一次性/连续/断续/渐强/渐弱 |
|
|
95
|
-
|
|
96
|
-
## 角色与特效序列帧
|
|
97
|
-
|
|
98
|
-
与 JS2D 一样按动作级召回:一个动作一张 PNG 图集,`anim2d` / `effect2d` 返回全部候选及 `sprite` 帧信息,不套用 3D 类别的 top1 分数门槛。`character2d` 仅用于 AIGC / 用户提供资源,不用于召回。
|
|
99
|
-
|
|
100
|
-
- `search.mjs --requests` 返回 `assets[].candidates[]` 的完整候选字段(含 `AssetId`、`SetTag`、`FrameCount`、`GridLayout`、`Loop`)和 `sprite: { sheetPath, rows, cols, frameCount, loop? }`。`asset` 保留首候选,供 manifest batch 使用;Agent 按需求选候选,不把首项当成自动验收。
|
|
101
|
-
- 同角色其他动作使用该候选真实 `SetTag`:`filters: { "SetTag": ["<实际角色名>"] }`,按动作语义检索;可调整 `limit` 获取更多动作。没有 SetTag 时不猜名字或兄弟动作地址,不把另一角色的动作强行拼成一套。
|
|
102
|
-
- 图集原始 PNG 地址进 `configs`,帧信息来自候选(`GridLayout=3x4` 表示 3 行 4 列)。缺布局、缺帧数或帧数超过容量时不接入、不猜布局;batch 保留 `TODO`,刷新已有 READY 未命中时保留旧资源。
|
|
103
|
-
- manifest 可登记 `anim2d` / `effect2d`,可带 `filters`;batch 将行列、帧数、循环和 SetTag 写入 `meta`,不需要骨骼 `depends_on` 或自动派生 idle。
|
|
104
|
-
- 播放与资源替换见[序列帧接入](references/sprite-sheets.md)。召回未命中不自动转为付费 AIGC;用户要求生成角色动画时用 `aigc-integration`。特效序列帧可召回,但 AIGC `effect2d` 仍不开放,与 JS2D 一致。
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
node "${CRAFT_SKILL_DIR}/scripts/search.mjs" --requests '[
|
|
108
|
-
{"slot_id":"hero_idle","category":"anim2d","query":"动作:待机 分类:人类 视角:侧面"},
|
|
109
|
-
{"slot_id":"hit_effect","category":"effect2d","query":"标签:爆炸 主色调:橙红 朝向:向外扩散"}
|
|
110
|
-
]'
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## Manifest 与执行
|
|
114
|
-
|
|
115
|
-
manifest 的结构违规(字段白名单外字段、slot 命名、枚举值、depends_on 链、READY/TODO 与 path/meta 配套)**全部由 `check` 拦截**,FAIL 消息自带修法——按消息修,不在本页背诵字段表;`meta` 由 `batch` 召回后自动写入召回事实(embedding_score / box_size / skeleton_tag / duration / width / height 按 category),不手写。`check` 的两类 WARN(「骨骼模型与动画序列物种不匹配」「骨骼模型最终没有可用动画序列」)属**召回质量信号**:不阻塞,但**优先当场换 query 重召回同物种动画**(物种不匹配的后果是骨架套不上、动画完全不动,当场是唯一修复窗口);资产库确无同族替代时在完成报告中逐项说明并接受近似,累计形态可在离线批次用 trace 数据观测趋势。骨架示例:
|
|
116
|
-
|
|
117
|
-
```json
|
|
118
|
-
{
|
|
119
|
-
"hero_knight": { "category": "skeletalmesh", "query": "持剑骑士,人形", "status": "TODO", "path": null },
|
|
120
|
-
"hero_knight_idle": { "category": "sequence", "query": "持剑骑士待机,站立、单手持剑、循环", "status": "TODO", "path": null, "depends_on": "hero_knight" }
|
|
121
|
-
}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
按本次资源选择执行方式,不区分首轮和触发轮:
|
|
125
|
-
|
|
126
|
-
- 单次检索可用 `search.mjs --requests` 提交 `{slot_id, category, query}` 列表;项目根默认 `CRAFT_PROJECT_DIR` 或 cwd,可用 `--project-dir` 指定。原始结果自动存入项目 `.asset-search/`,返回项目相对 `report_path`;不改 manifest 或业务配置。接线后按 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md` 调用 `asset_display` 工具,不手写 ID 或组件标签。骨骼及动画依赖按上述规则处理。
|
|
127
|
-
- 需要依赖编排或持续跟踪时,创建或合并 `SPEC/res/asset-manifest.json`,按本次槽位执行 `check`、`batch --slots`,结果写回后再检查。只在确需替换 READY 槽位时使用 `--refresh-ready`,不自动补召回全部历史 TODO。
|
|
128
|
-
- 根据命中结果继续当前制作或替换任务;复用已有配置键,新接入按 [资源配置](references/resource-config.md) 建立真实消费点,不规定登记期间禁止写业务代码。
|
|
129
|
-
- 当前 batch 会为 manifest 中 READY 模型补建缺失 idle;有历史模型时先核对其配套槽位,避免误以为 `--slots` 会限制这项派生。仅做定点检索且不需此编排时使用 `search.mjs`,不修改脚本语义。
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
node "${CRAFT_SKILL_DIR}/scripts/manifest_pipeline.mjs" batch \
|
|
133
|
-
--project-root "${CRAFT_PROJECT_DIR}" --slots '["<slot>"]'
|
|
134
|
-
node "${CRAFT_SKILL_DIR}/scripts/manifest_pipeline.mjs" check \
|
|
135
|
-
--project-root "${CRAFT_PROJECT_DIR}"
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
- `batch` 仅召回已登记条目(唯一例外:自动补建缺失 `idle`);一次调用覆盖模型与动画(Phase 1 召回无依赖类、Phase 2 以上游 `skeleton_tag` 为 filter 召回 `sequence`),不为动画单独再跑。
|
|
139
|
-
- **重搜正确性**:换 query 重跑 batch 时必须更换语义方向(换子分类/体型维度,非原 query 重跑);重搜后模型槽位仍返回同一 path → 库内无替代,收口为 TODO 回退直绘不再重试——batch 无「排除已选」机制,靠语义方向切换 + 同 path 收口防无效重搜循环。
|
|
140
|
-
- TODO 只表示该已登记资源尚未命中,不触发自动补召回;本次确需继续检索时才处理。失败方向需要留供后续参考时记录原因,不按角色失败比例强制再跑一轮。
|
|
141
|
-
- `batch` 首报 `HTTP 404/5xx`、请求失败或 timeout(凡跑 batch 的轮次):先跑 `node "${CRAFT_SKILL_DIR}/scripts/preflight.mjs"` 判环境——退出码 `0` 才重试一次 `batch`;`1`/`2` 即环境阻塞,全部槽位保持 `TODO + null`,本轮不再重试、不 sleep 等待、不通读本 skill 的 `scripts/` 源码排查,按程序化直绘回退收口并在完成报告注明「资产召回环境不可达(preflight 结论)」,环境结论本 run 后续轮次直接复用。
|
|
142
|
-
|
|
143
|
-
## 用户提供的资源
|
|
144
|
-
|
|
145
|
-
用户引用资源块含 `resource_id` 时,将该 ID 与资源地址一起传入(建议 ID 用字符串):
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
node "${CRAFT_SKILL_DIR}/scripts/search.mjs" --provide \
|
|
149
|
-
--requests '[{"slot_id":"场景装饰","category":"ui","resourcePath":"/Game/assets/decoration.png","resource_id":"110001234"}]'
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
示例 ID 仅示意,实际取用户资源块,不得照抄或从 URL 推测。只接受官方资源相对地址或 `https://file.craft.qq.com` URL,不接受项目本地路径。此命令无需连接检索服务,返回 `assets[].path`;成功项的 ID、路径与槽位保存到项目 `.asset-search/provided.json`,不改 manifest 或业务配置。
|
|
153
|
-
|
|
154
|
-
将 path 按 [资源配置](references/resource-config.md) 接入实际消费方,再调用 `asset_display` 工具。没有 ID 时仍可提供路径,但缺少其他可匹配记录的资源不会进入展示列表;骨骼模型与动画的配套要求仍适用。
|
|
155
|
-
|
|
156
|
-
序列帧提供方式与 JS2D 对齐:PNG 用 `anim2d` / `effect2d`,附资源块中的 `GridLayout` / `FrameCount` / `Loop`,返回 `sprite`;缺帧信息不猜。AIGC manifest JSON 用 `character2d`(角色)或 `effect2d`(已有特效资源),脚本读取 JSON 并返回 `runtime.animations`,这只是资源接入,不调用生成服务。
|
|
157
|
-
角色多个 JSON 动作可用 `category: character2d`、`clips: [{ name: "idle", resourcePath: "<真实 JSON 地址>" }, ...]` 和 `defaultAnimation` 替代 `resourcePath`;顶层 `resource_id` 只对应默认动作,不能给其他动作复用该 ID。各动作保留独立配置字段,按[序列帧接入](references/sprite-sheets.md)消费。
|
|
158
|
-
|
|
159
|
-
## 召回账本
|
|
160
|
-
|
|
161
|
-
需要保留失败方向、弃用原因或多轮替换记录时,向 `${CRAFT_PROJECT_DIR}/SPEC/res/recall-ledger.md` 追加记录;已有账本不改写历史。简单检索不要求建立账本,也不因执行 check 追加记录:
|
|
162
|
-
|
|
163
|
-
```markdown
|
|
164
|
-
## 轮次 <n>(<日期>)
|
|
165
|
-
| 槽位 | 结果 | 说明 |
|
|
166
|
-
|---|---|---|
|
|
167
|
-
| hero_knight | READY | 首次召回命中 |
|
|
168
|
-
| hero_knight_idle | READY | Phase 2 skeleton_tag 过滤命中 |
|
|
169
|
-
| slime_elite | TODO | 换模型连带重搜仍无配套动画(skeleton_tag=xxx 孤本) |
|
|
170
|
-
| goblin_archer | 弃用 | 召回结果与玩法语义错位(搜骑士得机器人) |
|
|
171
|
-
|
|
172
|
-
召回率 2/4;preflight=0。
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
- 三态:`READY` / `TODO`(重试过,附原因)/ `弃用`(语义错位,附原因)——manifest 只有 TODO/READY 两态,账本补上「试过但放弃」的历史。
|
|
176
|
-
- 继续处理已有槽位时,只查其相关记录,避免重复同一失败方向;交付说明报告实际结果,不强制统计召回率或复述全部候选。
|
|
177
|
-
|
|
178
|
-
完成以本次目标为准:仅检索则返回可用结果与缺项;需要接入则由当前 Agent 完成并验证实际加载。manifest 和账本不是所有制作任务的必交产物。
|
|
12
|
+
接线见 [资源使用](references/resource-config.md),地址见 [地址规则](../../knowledge/AssetUrl.md)。检查真实画面或音频;不把仅写入配置报告为已接入。
|
|
@@ -1,99 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Three.js 模型与纹理
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
图片、模型、音频地址保存在工具返回的配置 slot 中。业务 import 配置,再按 [地址规则](../../../knowledge/AssetUrl.md) 解析;不要直接把 Game/... 当成当前站点路径。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
模型使用当前固定运行库 tools/glb.mjs 的 `loadGlbModel(THREE, renderer, url, options?)`,声明见项目同目录 glb.d.mts。该管线处理模型挂载、LOD、压缩贴图变体与回退,不自行拼接派生 URL。加载后的 scene 加到实际场景,结合真实包围盒调整尺度和地面接触。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
骨骼模型与动作按候选 skeleton_tag 匹配;保留 direction 与 box_size 作为方向和尺度参考,实际加载后核对。AnimationMixer 绑定真实骨骼并按秒级 delta 更新。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
普通图片按 Three.js TextureLoader 接入对应材质,配置透明、色彩空间与用途;音乐按浏览器音频交互限制处理。图片不能代替需要真实几何和空间关系的模型。
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
"crate_model": "/Game/example/crate.glb"
|
|
14
|
-
}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
检索返回的模型路径**原样保存**即可,不需要自己拼任何前缀:挂载归一化由 `resolveAssetUrl` 在加载侧自动完成。
|
|
18
|
-
|
|
19
|
-
对应 `configs/gameScene.controls.json`:
|
|
20
|
-
|
|
21
|
-
```json
|
|
22
|
-
{
|
|
23
|
-
"crate_model": {
|
|
24
|
-
"type": "resource",
|
|
25
|
-
"asset_type": "StaticMesh",
|
|
26
|
-
"title": "木箱模型"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
`type` / `asset_type` 属于 controls 元数据,不把业务字段改为 `{ type, value, asset_type }` 包装对象,也不手写 `unified_data_control_config.json`。`asset_type`:图片用 `Texture2D`,静态模型用 `StaticMesh`,骨骼模型用 `SkeletalMesh`,骨骼动画用 `AnimSequence`,角色/特效序列帧用 `PaperFlipbook`,音频用 `SoundWave`。
|
|
32
|
-
|
|
33
|
-
`PaperFlipbook`:库召回保存图集 PNG 地址,帧布局取同一候选的 `sprite`;AIGC 保存 manifest JSON 地址,读取其中的图集 URL 和布局。两者都用 Three.js Sprite / 平面逐帧播放,不能当 `Texture2D` 加载 JSON 或整张图集。召回、提供、多动作与替换见[序列帧接入](sprite-sheets.md)。
|
|
34
|
-
|
|
35
|
-
```ts
|
|
36
|
-
import gameScene from '../configs/gameScene.json';
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
模型 GLB 的加载方式见下方「加载模型」(`loadGlbModel`),**不要直接用 `GLTFLoader().loadAsync()`**——那样绕开了选档回退、压缩贴图与 KTX2 接线。贴图、音频、动画等其它资源类型使用 Three.js loader、浏览器 API 或项目已固定版本的 runtime 工具;按需读其 `.d.mts`。当前 `vendor/core-manager-three` 是空兼容包,不从中导入 `ConfigManager` / `ResourceManager`。资源加载与销毁由实际消费方负责。
|
|
40
|
-
|
|
41
|
-
## 两种交付来源(同为 `.glb`)
|
|
42
|
-
|
|
43
|
-
都是标准 glTF 2.0,用 `GLTFLoader` 直接加载;差别在**文件怎么托管**,不是第二种 3D 格式。
|
|
44
|
-
|
|
45
|
-
| | 资产库(asset-search 召回) | AIGC(`submit-staticmesh` 回调) |
|
|
46
|
-
|---|---|---|
|
|
47
|
-
| 路径 | 检索返回的原路径,原样保存(如 `/Game/…/Name.glb`) | `test1/ai-resource/…/Name.glb` 或平台完整 HTTPS URL |
|
|
48
|
-
|
|
49
|
-
两类模型的 GLB **完全同构**:都可能是一体式(贴图内嵌)或拆分式(外部 PNG + 可选 `_astc` / `_dxt` KTX2 sidecar),也都可能带原规格与两级降档。**加载代码不需要区分来源,也不需要关心某个档位或某种形态是否存在**:贴图形态在加载时由 glTF 自身区分(内嵌贴图由 loader 直接解码,外部 PNG 按标准相对 URI 加载),降级档缺失由 `loadGlbModel` 自动回退基线档。所以同一槽位先是库模型、被 AIGC 回调覆盖后变成 `test1/…`,既有加载代码照样正确,不用加分支。也**不要用 `asset_type` 判来源**(两者都是 `StaticMesh` / `SkeletalMesh`),更不要给任何模型路径手工补挂载前缀或档位/压缩贴图路径——那些由 runtime 在加载时按需尝试,手写的反而会指向不存在的文件。
|
|
50
|
-
|
|
51
|
-
## 加载模型
|
|
52
|
-
|
|
53
|
-
模型 GLB 一律通过 `loadGlbModel` 加载,资产库与 AIGC 模型通用——选档、压缩贴图与回退都在内部完成,不需要拼 URL,也不需要手工接 `GLTFLoader` / `KTX2Loader`:
|
|
54
|
-
|
|
55
|
-
```ts
|
|
56
|
-
import { loadGlbModel } from '../runtime/lightgame/1.1.0/tools/glb.mjs';
|
|
57
|
-
|
|
58
|
-
const gltf = await loadGlbModel(THREE, renderer, gameScene.crate_model, {
|
|
59
|
-
lod: 0, // 可选:1 / 2 为降级档,按实际负担选(远景/大量实例),不要按「移动端」推断
|
|
60
|
-
signal, // 可选:AbortSignal
|
|
61
|
-
});
|
|
62
|
-
scene.add(gltf.scene);
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
`gameScene.crate_model` 的实际取值取决于该槽位当前是资产库召回还是 AIGC 回填,但调用方式完全一样,不用分支:
|
|
66
|
-
|
|
67
|
-
```ts
|
|
68
|
-
// 资产库召回:原样保存检索返回的路径,挂载归一化在加载时自动完成
|
|
69
|
-
gameScene.crate_model = '/Game/资产/相关资产/通用/静态模型/道具/木箱01.glb';
|
|
70
|
-
await loadGlbModel(THREE, renderer, gameScene.crate_model);
|
|
71
|
-
|
|
72
|
-
// AIGC 回调回填后可能变成这样——同一个字段,同一份加载代码,不用改
|
|
73
|
-
gameScene.crate_model = 'test1/ai-resource/571/1000002624/木箱01.glb';
|
|
74
|
-
await loadGlbModel(THREE, renderer, gameScene.crate_model);
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
内部行为(排障时才需要细读):
|
|
78
|
-
|
|
79
|
-
- **档位**:每个模型有 0 档基线与两级降档的独立文件(是否带降档因模型而异),每降一档模型 LOD 加一、贴图分辨率减半。目标降级档缺失时自动回退 0 档。
|
|
80
|
-
- **贴图形态在加载时自然区分**,不按来源假设:内嵌贴图(blob:)由 loader 直接解码;库模型的贴图已拆出(`Name/<Image>.png` 由 `images[].uri` 引用),**PNG 是兼容基线**,直接可加载。
|
|
81
|
-
- **压缩贴图是可选优化**:按 WebGL 扩展探测选变体(禁止嗅探 userAgent)。有 ASTC 时把外部 PNG `Name/<Image>.png` 改写到兄弟目录 `Name_astc/<Image>.ktx2`;没有 ASTC 但有 S3TC/DXT 时改写到 `Name_dxt/<Image>.ktx2`(改写的是目录名,不是同级文件;这些文件**不在 GLB JSON 里**,loader 不会主动请求)并接 `KTX2Loader` 解析。两者都没有,或任一环节(404 / 解码 / GPU 格式不支持)失败时,留在或回退原 PNG 重载,材质不会空着。
|
|
82
|
-
- 屏幕 UI 与地表贴图仍走 `tools/astc.mjs` 的 KTX **v1**(`.png` → `.ktx`),与模型 GLB 的 KTX2 sidecar 是两套东西,不要混用。
|
|
83
|
-
|
|
84
|
-
需要自定义加载管线时才用进阶导出 `withGlbLod` / `pickGlbTextureVariant` / `glbCompressedTextureUrlModifier`。自行接线有两处硬约束:压缩贴图必须同时挂 URL 改写**和** `manager.addHandler()`(GLTFLoader 按 glTF 原始 uri——仍是 `.png`——选择贴图 loader,只挂改写不挂 handler 时改写出的 `.ktx2` 会落回图片解码器直接失败);改写必须挂在本次加载专用的 `LoadingManager` 上,挂到共享/全局 manager 会把无关的外部图片一并改写掉。
|
|
85
|
-
|
|
86
|
-
## 路径与异步期间状态
|
|
87
|
-
|
|
88
|
-
- 检索结果的真实路径原样保存。官方 CDN 的完整 HTTPS URL、`/Game/...` 与不带前导斜杠的 CDN 相对路径均可作为资源字段;平台生成的完整 URL 可以直接保留,无需先删域名。
|
|
89
|
-
- **不要手工改写召回路径**:挂载归一化由 `resolveAssetUrl` 在加载侧完成,检索返回的原形式直接可加载。归一化只作用于 `.glb` / `.gltf` 的挂载点;贴图、音频等不要跟着补前缀。
|
|
90
|
-
- `test1/ai-resource/...` 不要变成 `/test1/ai-resource/...`,后者会指向游戏站点。`resolveAssetUrl` 在 `runtime/lightgame/1.1.0/tools/assets.mjs`。处理 CDN 相对路径需显式传 `cdnBaseUrl: 'https://file.craft.qq.com'`;该底层函数没有默认 CDN。
|
|
91
|
-
- 不编造资源 URL,不把 `TODO` / `READY` / `AIGC_PENDING` 等状态词当路径。未命中的 manifest 槽位保留 `TODO + null`,消费方保持现有表现或明确的程序化占位。
|
|
92
|
-
- 已有资源在异步生成期间保留当前真实路径;回填只改对应 JSON 字符串叶子,保留其他字段和 controls 元数据。已有消费代码通常无需修改。
|
|
93
|
-
- 新资源也可使用可运行的程序化占位:声明空字符串资源字段和对应 controls,消费方只在路径非空时加载;这建立稳定回填锚点,不代表已有真实资产。
|
|
94
|
-
|
|
95
|
-
不带 `game-runtime.json` 的旧游戏沿用其现有配置与加载方式;不要为调用这两个 skill 替换旧框架。
|
|
96
|
-
|
|
97
|
-
## 收尾
|
|
98
|
-
|
|
99
|
-
统一按 `${CRAFT_CONTEXT_DIR}/AGENTS.md` 的交付要求通过构建校验,并验证本次资源加载、替换或播放;仅修改配置或音频也须通过构建校验。同一批改动只在最终状态收尾,不按槽位重复构建;`manifest check` 只校验登记结构,不证明资源已接入。
|
|
11
|
+
必要资源加载成功后才置玩法 ready。移除对象时释放不再共享的材质、贴图、几何和混合器。
|
|
@@ -1,92 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asset-usage-audit
|
|
3
|
-
description:
|
|
4
|
-
扫描 JS3D 项目的资源使用、加载与体积构成:发现未使用/动态引用资源、动画冗余、贴图过大、
|
|
5
|
-
重复文件、预加载过重、运行时加载器不支持等问题,并据此实施可验证的优化。
|
|
6
|
-
用户要求排查资源占用、加载慢、首包/包体大、贴图或动画体积、重复加载、资源冗余时使用。
|
|
7
|
-
不用于资源召回(asset-search)、灵感建议(optimization-suggestions)或纯画面风格调整(game-art-style)。
|
|
3
|
+
description: 检查 3D / Three.js 工程资源槽、引用关系、模型与动画负担;资源接线排错或清理分析时使用。
|
|
8
4
|
---
|
|
9
5
|
|
|
10
|
-
#
|
|
6
|
+
# 资源使用检查
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## 调用边界
|
|
15
|
-
|
|
16
|
-
- 用户点名资源占用、加载慢、包体/首包、贴图/动画体积、重复加载、资源冗余,或要求优化已有资源时使用;扫描后是否修改由本轮需求决定。
|
|
17
|
-
- 只提供灵感、玩法方向或优化建议卡片时走 `optimization-suggestions`;需要召回或更换资产时走 `asset-search`;纯画面风格、材质、镜头问题走 `game-art-style` / `threejs-game-quality`。
|
|
18
|
-
- 不扫描 `runtime/`、`vendor/`、`node_modules/` 作为业务资源;不把 `dist/` 重复计入已扫描包。
|
|
19
|
-
- 报告写到项目内 `.asset-audit/`,是诊断产物,不作为交付文件;不要提交到工程或平台。
|
|
20
|
-
- 有源码或 `public/` 时,先改源资产与构建流程,再重建 `dist/`;`dist/` 是产物,不当作资产源。
|
|
21
|
-
|
|
22
|
-
## 优化阶梯(默认从低风险开始)
|
|
23
|
-
|
|
24
|
-
- **L0 安全**:只删可证明未使用的文件;调预加载/懒加载/缓存;优先用现有 LOD(只有 GLB 0/1/2;贴图没有独立档位,随 GLB 档位减半;音频/序列帧无 LOD)。收益小,风险极低。
|
|
25
|
-
- **L1 近无损**:prune/dedup、无损重编码、动画重采样 0.0001。收益中等,低–中风险。
|
|
26
|
-
- **L2 平衡**:0.001 重采样、按观看距离缩贴图。收益较大,需用户确认 + 视觉 QA。
|
|
27
|
-
- **L3 激进**:批量缩贴图、减变体、几何压缩。收益最大,自定义加载器兼容风险高。
|
|
28
|
-
|
|
29
|
-
默认只到 L1;L2/L3 必须明确选择,并保留原资产或可切换构建档位。收益用相对大小描述,具体 MB/占比只在案例中作为实测示例,不作为通用预期。库/AIGC GLB 先试 `loadGlbModel` 的 0/1/2 档 LOD;自定义 `GLBLoader` 不自动支持。
|
|
30
|
-
|
|
31
|
-
## 流程
|
|
32
|
-
|
|
33
|
-
### 1. 扫描
|
|
34
|
-
|
|
35
|
-
```bash
|
|
8
|
+
```sh
|
|
36
9
|
node "${CRAFT_SKILL_DIR}/scripts/scan-assets.mjs" --project "${CRAFT_PROJECT_DIR}" --top 20
|
|
37
10
|
```
|
|
38
11
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- **source**:有 `src/` + `configs/`,读 `configs/*.json`、`*.controls.json`、`configs/assets.json`、`configs/scene_assets.json`、`SPEC/res/asset-manifest.json` 与 `src/**/*.ts`,输出槽位级别的 used / dynamic / unreferenced;有 `public/` 资产镜像时附带扫描 public 下的资源文件。public 的引用证据来自已构建的 `public/assets` JS;没有构建产物时只做体积与 GLB 分析。
|
|
42
|
-
- **bundle**:有 `index.html` + `assets/`,扫 `models/ audio/ textures/ ui/ clouds/ assets/`,按代码引用、动态目录族、GLB 内部构成和 hash 去重出报告;没有源码时也能定位大文件与动画冗余。
|
|
43
|
-
|
|
44
|
-
bundle 模式只用于没有源码的产物诊断。若同一游戏存在源码或 `public/`,把结论应用在 `public/` 与构建流程,再重新构建并复验;不要直接改 `dist/` 里的 GLB/贴图,下一次构建会覆盖。
|
|
45
|
-
|
|
46
|
-
报告默认写到 `<project>/.asset-audit/report.json`,含 `summary`、`assets`、`findings`。用 `--json` 可直接看完整 JSON,用 `--mode source|bundle` 强制模式。
|
|
47
|
-
|
|
48
|
-
### 2. 确认,不要直接删
|
|
49
|
-
|
|
50
|
-
- 先看 `used=false` 且 `confidence=none` 的文件;这是“未引用”候选,不是“确定无用”。打开证据里的 `refs`,确认不是动态拼路径。
|
|
51
|
-
- 报告出现 `NO_USAGE_CORPUS` 时,说明没有扫到已构建的 JS;先构建再扫描,这一轮不要根据“未引用”删除任何资源。
|
|
52
|
-
- 若报告只有槽位/URL、没有本地资产文件(云端资产项目),本地压缩阶梯没有对象;不要编造可省字节,转而检查 LOD、预加载、复用与释放。
|
|
53
|
-
- `confidence=family` 表示文件由目录前缀 + 参数构造(如 `models/props/` + 名称 + `_a.jpg`),不能按文件名未命中就删除。
|
|
54
|
-
- `UNKNOWN_USAGE`、`UNREFERENCED_SLOT` 都是待确认项;JSON 被 `Object.entries` / 展开运算符整体消费时,静态扫描无法证明未使用,禁止按“未引用”删除。
|
|
55
|
-
- 删除资源前先确认面板控件、场景编辑器、存档或回填流程是否还引用它;删除后必须重新构建并实际加载。
|
|
56
|
-
|
|
57
|
-
### 3. 按发现修复
|
|
58
|
-
|
|
59
|
-
| 发现 | 首选动作 | 验证 |
|
|
60
|
-
|---|---|---|
|
|
61
|
-
| `UNREFERENCED_FILE` / `UNREFERENCED_SLOT` | 确认后删除文件、配置键与同名 controls;或接入真实消费点。 | 重新扫描;构建;游戏无 404 / 缺件。 |
|
|
62
|
-
| `ANIMATION_DOMINANT` | 先查库 LOD;否则 L1 用 0.0001,L2 才用 0.001;保留 clip/节点索引,替换前做 slerp 对比。 | 播放代表动作,确认 clip 数量与时长不变。 |
|
|
63
|
-
| `LARGE_TEXTURE` | 先查模型 LOD(贴图随档位减半,没有独立贴图 LOD);L1 无损重编码,L2 才按距离缩 1024/512;近景/UI 保持原尺寸。 | 最近可玩距离截图;检查接缝、alpha 与文字。 |
|
|
64
|
-
| `PRUNE_CANDIDATE` | `gltf-transform prune`(必要时再 `dedup`),只删空节点/未用 accessor;代码按名称查找的节点必须保留。 | 运行时加载;命名锚点、材质、动画仍可用。 |
|
|
65
|
-
| `DUPLICATE_FILE` | 保留一份,所有消费方共享;平台要求独立文件名时保留别名。 | 每个消费方实际加载成功。 |
|
|
66
|
-
| `EAGER_PRELOAD` | 先降单文件体积,再考虑缩小预热集合或延后到 idle;不要直接删除预热。 | 分别测首画布时间与模型就绪时间;确认没有明显 pop-in。 |
|
|
67
|
-
| `UNSUPPORTED_GLB_EXTENSION` | 先确认扩展是否被项目加载器接好:标准 `loadGlbModel` 用 Three `GLTFLoader`,Draco/meshopt 需要额外 decoder;自定义 `GLBLoader` 可能整体拒绝 `extensionsRequired`。必要时重新导出或补 decoder。 | 运行时加载成功;几何、蒙皮、贴图正确。 |
|
|
68
|
-
| `HARDCODED_URL` / `SCENE_ASSET_UNREGISTERED` | 按 `configs/assets.json` 与 `scene_assets.json` 的既有链路接线,重新导出。 | `npm run build` 通过;场景资产实际出现。 |
|
|
69
|
-
| `LOAD_IN_HOT_PATH` / `NO_DISPOSE` / `BYPASS_GLB_LOADER` | 加载放到初始化/场景入口;共享同一份结果;按所有权释放;模型统一走 `loadGlbModel`。 | 代表性帧无网络/解析;切场景后 GPU 资源不持续增长;LOD/压缩贴图回退正常。 |
|
|
70
|
-
|
|
71
|
-
### 4. 验证与报告
|
|
72
|
-
|
|
73
|
-
1. 重新扫描,确认目标 finding 消失且没有新增错误。
|
|
74
|
-
2. 运行 `npm run build`;涉及可见资源时按项目流程做 `game_visual_qa`。
|
|
75
|
-
3. 记录**测得**的改动:包体/首包字节、首画布时间、模型/人群就绪时间、`renderer.info` 的 draws / triangles / textures、网络请求数。没有测量就写“未验证”,不要承诺帧率提升。
|
|
76
|
-
4. 交付说明按“本次变化 / 已验证 / 未完成或未验证”组织;把“预计节省”与“实测节省”分开写。
|
|
77
|
-
|
|
78
|
-
## 硬约束
|
|
79
|
-
|
|
80
|
-
- **源优先**:有 `src/`、`public/` 或构建脚本时,改源资产并重建;只对没有源码的产物使用 bundle 模式,且要把 `dist/` 的改动视为一次性诊断,不视为源修复。
|
|
81
|
-
- **先分清加载器**:标准 `loadGlbModel` 走 Three `GLTFLoader`,没有接 Draco/meshopt decoder,但常见 KHR 材质扩展可用;潮汐动物园这类自定义 `GLBLoader` 会拒绝所有 `extensionsRequired`、外部 buffer 与 sparse accessor。压缩几何前先确认项目实际走哪条;保持 GLB 内嵌 buffer 0、标准 accessor 最稳。
|
|
82
|
-
- **动画重采样不是无损**:`resample` 会删除冗余关键帧,四元数可能跨符号翻转;验证时必须用与运行时一致的 slerp(dot<0 取反),不能只用线性插值。
|
|
83
|
-
- **贴图尺寸服从观看距离**:不要为了体积把近景角色、UI、可交互道具一律压到 512;远景、背景、地形高度图优先。
|
|
84
|
-
- **不要改场景编辑器的 item 粒度**:`src/scenes/**/scene.ts` 由编辑器读写;不要为了合并/实例化破坏 item 或槽位。
|
|
85
|
-
- **不要自动替换资产**:需要更低成本模型/贴图时交给 `asset-search`;生成替换交给 `aigc-integration`。本 skill 只处理现有资源与加载方式。
|
|
86
|
-
- **报告不是验收**:静态扫描、构建通过、截图正常分别只证明各自范围;没有实际运行和测量就保留未验证。
|
|
12
|
+
结果默认保存在 .asset-audit/report.json。源码模式检查资源槽与消费者,产物模式检查本地文件、GLB 纹理与动画体积;远端动态资源和计算引用可能无法判定。
|
|
87
13
|
|
|
88
|
-
|
|
14
|
+
逐项核对实际消费路径,将动态引用与确实未用分开。报告本身不删除资源;只有用户要求清理、且确认引用和恢复方式后才修改。动画比较脚本通过 `--help` 查看输入,使用真实文件,不猜测线上资源路径。
|
|
89
15
|
|
|
90
|
-
-
|
|
91
|
-
- [优化处方与验证](references/optimization-playbook.md)
|
|
92
|
-
- [Tidewater Zoo 案例](references/case-tidewater-zoo.md)
|
|
16
|
+
资源体积、静态引用和运行时内存是不同证据。需要完整验证时加载实际场景并结合 performance-audit 与截图检查。只读上下文恢复不执行扫描。
|