@craft_eco/craft-mcp 0.1.18 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -8
- package/bin/craft-mcp.mjs +14 -1
- package/dist-server/core/connector-auth.mjs +3 -3
- package/dist-server/game-workflow/asset-formats.mjs +25 -64
- package/dist-server/game-workflow/asset-import.mjs +83 -67
- package/dist-server/game-workflow/assets.mjs +81 -9
- package/dist-server/game-workflow/capture-worker.mjs +1 -1
- package/dist-server/game-workflow/check.mjs +1 -1
- package/dist-server/game-workflow/draft-archive.mjs +53 -53
- package/dist-server/game-workflow/draft-bindings.mjs +35 -35
- package/dist-server/game-workflow/draft-uploads.mjs +225 -207
- package/dist-server/game-workflow/engines.mjs +2 -2
- package/dist-server/game-workflow/library-assets.mjs +16 -5
- package/dist-server/game-workflow/library-candidates.mjs +2 -1
- package/dist-server/game-workflow/library-catalog.mjs +2 -2
- package/dist-server/game-workflow/publication-materials.mjs +92 -67
- package/dist-server/game-workflow/publications.mjs +164 -148
- package/dist-server/game-workflow/publish-capture-worker.mjs +57 -57
- package/dist-server/game-workflow/publish-capture.mjs +75 -75
- package/dist-server/game-workflow/resource-catalog.mjs +16 -13
- package/dist-server/mcp/control-panel.html +2 -2
- package/dist-server/mcp/control-panel.mjs +59 -59
- package/dist-server/mcp/publication-page.html +86 -86
- package/dist-server/mcp/publication-page.mjs +375 -347
- package/dist-server/mcp/publication-preview.mjs +62 -48
- package/dist-server/mcp/publication-tools.mjs +22 -22
- package/dist-server/mcp/publish-panel.mjs +205 -191
- package/dist-server/mcp/server.mjs +312 -312
- package/dist-server/upstream/craft-aigc.mjs +182 -169
- package/dist-server/upstream/library-url.mjs +3 -5
- package/dist-server/upstream/publication-transport.mjs +101 -81
- package/dist-server/upstream/resource-path.mjs +17 -0
- package/package.json +2 -2
- package/resources/craft-game-maker/SKILL.md +71 -69
- package/resources/craft-game-maker/js.md +6 -5
- package/resources/craft-game-maker/js3d.md +6 -5
- package/resources/game_visual_qa.mjs +9 -3
- package/resources/js/context/.role/AGENTS_DESIGN.md +9 -0
- package/resources/js/context/AGENTS.md +112 -0
- package/resources/js/context/agents/aigc-asset.md +168 -0
- package/resources/js/context/hooks/hooks.json +14 -20
- package/resources/js/context/knowledge/AigcEnabled.md +49 -41
- package/resources/js/context/knowledge/AigcWiring.md +200 -200
- package/resources/js/context/knowledge/AssetUrl.md +24 -24
- package/resources/js/context/knowledge/FrontendComponents.md +17 -23
- package/resources/js/context/knowledge/Lifecycle.md +32 -27
- package/resources/js/context/knowledge/MobileAdaptation.md +73 -0
- package/resources/js/context/knowledge/MobileAdapted.md +36 -0
- package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -114
- package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +115 -115
- package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +392 -392
- package/resources/js/context/knowledge/PlatformServices.md +190 -184
- package/resources/js/context/knowledge/ProjectDisplayConfig.md +35 -0
- package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -242
- package/resources/js/context/knowledge/Ui.md +11 -11
- package/resources/js/context/knowledge/UiEditorCompat.md +21 -21
- package/resources/js/context/rules/MultiplayerCapability.md +23 -23
- package/resources/js/context/rules/MultiplayerRoomEntryUX.md +63 -63
- package/resources/js/context/rules/PlatformBoundaryModules.md +44 -43
- package/resources/js/context/rules/preview_ready.md +8 -0
- package/resources/js/context/skills/aigc-generate/SKILL.md +149 -301
- package/resources/js/context/skills/aigc-generate/knowledge/audio.md +39 -39
- package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +26 -14
- package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +132 -129
- package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +53 -54
- package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +52 -50
- package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +191 -201
- package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +55 -53
- package/resources/js/context/skills/asset-search/SKILL.md +69 -73
- package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +62 -62
- package/resources/js/context/skills/asset-search/scripts/config.json +5 -5
- package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +125 -125
- package/resources/js/context/skills/asset-search/scripts/search.mjs +760 -749
- package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +657 -723
- package/resources/js/context/skills/asset-search/strategies/anim2d.md +42 -0
- package/resources/js/context/skills/asset-search/strategies/audio.md +34 -34
- package/resources/js/context/skills/asset-search/strategies/effect2d.md +31 -31
- package/resources/js/context/skills/asset-search/strategies/texture-prop.md +22 -22
- package/resources/js/context/skills/asset-search/strategies/ui-common.md +40 -40
- package/resources/js/context/skills/asset-search/strategies/ui-style.md +28 -28
- package/resources/js/context/skills/export-config/SKILL.md +28 -20
- package/resources/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/js/context/skills/{lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform → export-config/assets/tooling}/config.d.mts +19 -19
- package/resources/js/context/skills/{lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform → export-config/assets/tooling}/config.mjs +1 -1
- package/resources/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/js/context/skills/export-config/scripts/assert-asset-wiring.mjs +72 -72
- package/resources/js/context/skills/export-config/scripts/export-config.mjs +46 -43
- package/resources/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -106
- package/resources/js/context/skills/export-config/scripts/sync-asset-controls.mjs +352 -351
- package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +161 -163
- package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +93 -92
- package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +7 -7
- package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +22 -22
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform-capture-video.mjs +227 -227
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform-service.d.mts +31 -25
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform.d.mts +79 -79
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/platform/platform.mjs +29 -29
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/assets.d.mts +24 -24
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/assets.mjs +2 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/astc.d.mts +10 -10
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/{1.0.0 → 1.1.0}/tools/astc.mjs +1 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +37 -32
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +50 -50
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +156 -121
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +249 -254
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +87 -99
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +2 -14
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +185 -172
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +294 -165
- package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +20 -20
- package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +5 -4
- package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +159 -109
- package/resources/js/context/skills/mobile-adaptation/SKILL.md +277 -260
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +50 -50
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +862 -881
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -92
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +254 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -245
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +135 -134
- package/resources/js/context/skills/mobile-adaptation/references/input-config.md +342 -311
- package/resources/js/context/skills/mobile-adaptation/references/verification.md +140 -106
- package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +11 -0
- package/resources/js/context/skills/mobile-compat-qa/SKILL.md +53 -0
- package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +23 -0
- package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +20 -0
- package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +19 -0
- package/resources/js/context/skills/optimization-suggestions/SKILL.md +89 -89
- package/resources/js/context/skills/platform-services/SKILL.md +101 -94
- package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +465 -783
- package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +57 -57
- package/resources/js/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/js/context/skills/platform-services/assets/modules/identity/qq-session.mjs +208 -0
- package/resources/js/context/skills/platform-services/assets/modules/identity/shared.mjs +37 -0
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -39
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -1
- package/resources/js/context/skills/platform-services/assets/modules/log.ts +35 -35
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +61 -0
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +52 -0
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +30 -0
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +89 -0
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +47 -0
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +31 -25
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +272 -1
- package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +49 -49
- package/resources/js/context/skills/platform-services/assets/modules/save.mjs +1 -1
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -7
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -264
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -39
- package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +139 -139
- package/resources/js/context/skills/platform-services/references/api_reference.md +18 -18
- package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +96 -0
- package/resources/js/context/skills/platform-services/scripts/install.mjs +148 -134
- package/resources/js/context/skills/resolution-adaptation/SKILL.md +47 -202
- package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +156 -121
- package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +249 -254
- package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +98 -98
- package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +200 -200
- package/resources/js/context/skills/resolution-adaptation/references/audit.md +31 -0
- package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +40 -0
- package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +18 -0
- package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +15 -134
- package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +34 -0
- package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +38 -119
- package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +55 -0
- package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +448 -338
- package/resources/js/context/skills/scene-editor-compat/SKILL.md +94 -94
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +13 -13
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +6 -6
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +25 -25
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +18 -18
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +7 -7
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +42 -42
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +144 -144
- package/resources/js/context/skills/scene-editor-compat/docs/contract.md +330 -330
- package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +64 -64
- package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +28 -28
- package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +47 -47
- package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +64 -64
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +38 -38
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +9 -9
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +59 -59
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +30 -30
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +66 -66
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +20 -20
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +26 -26
- package/resources/js/context/skills/scene-editor-compat/references/contract.md +73 -73
- package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +162 -162
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +853 -853
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +173 -173
- package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +427 -427
- package/resources/js/context/skills/scene-editor-compat/version.json +1 -1
- package/resources/js/context/skills/ui-editor-compat/SKILL.md +48 -48
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -35
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +74 -74
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -60
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -45
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -265
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +7 -7
- package/resources/js/context/skills/ui-editor-compat/references/contract.md +132 -132
- package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -327
- package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -80
- package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -84
- package/resources/js/context/skills/version-update/SKILL.md +192 -192
- package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -129
- package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +159 -159
- package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +157 -157
- package/resources/js/context/skills/visual-qa/SKILL.md +36 -36
- package/resources/js/context/version/version.json +1 -1
- package/resources/js/project/README.md +99 -99
- package/resources/js/project/SPEC/readme.md +6 -6
- package/resources/js/project/configs/assets.json +1 -1
- package/resources/js/project/configs/game.controls.json +3 -3
- package/resources/js/project/configs/game.json +3 -3
- package/resources/js/project/game-runtime.json +2 -2
- package/resources/js/project/{projectDisplayInfo.json → game.config.json} +7 -7
- package/resources/js/project/index.html +20 -20
- package/resources/js/project/package.json +23 -23
- package/resources/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/js/project/scripts/config-export.mjs +37 -32
- package/resources/js/project/scripts/refresh-runtime.mjs +50 -50
- package/resources/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/js/project/src/display/ui-stage.ts +156 -121
- package/resources/js/project/src/display/viewport.ts +249 -254
- package/resources/js/project/src/main.ts +87 -99
- package/resources/js/project/src/platform.ts +2 -14
- package/resources/js/project/src/scenes/LoadScene.ts +89 -89
- package/resources/js/project/src/scenes/PlayScene.ts +17 -17
- package/resources/js/project/src/screenUi.ts +185 -172
- package/resources/js/project/src/style.css +294 -165
- package/resources/js/project/tsconfig.json +20 -20
- package/resources/js/project/unified_data_control_config.json +20 -20
- package/resources/js/project/vendor/core-manager-js/src/.versions.json +42 -42
- package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +41 -41
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +93 -90
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +203 -203
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +106 -106
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +25 -25
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +21 -21
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +65 -65
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +340 -340
- package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +87 -87
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +92 -92
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +271 -271
- package/resources/js/project/vendor/core-manager-js/src/index.ts +31 -31
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +81 -81
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +43 -43
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +32 -32
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +141 -141
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +20 -20
- package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +183 -183
- package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +304 -304
- package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +351 -351
- package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +180 -180
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +13 -13
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +14 -14
- package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +68 -68
- package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +433 -433
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +118 -118
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +444 -444
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +485 -485
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +66 -66
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +149 -149
- package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +9 -9
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +29 -29
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +88 -88
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +122 -122
- package/resources/js/project/vendor/core-manager-js/src/runtime.ts +24 -24
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +318 -318
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +151 -151
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +235 -235
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +98 -98
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +94 -94
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +209 -209
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +106 -106
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +341 -341
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +68 -68
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +236 -236
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +22 -22
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +29 -29
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +197 -197
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +9 -9
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +555 -555
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +112 -112
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +178 -178
- package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +246 -246
- package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +139 -139
- package/resources/js/project/vendor/core-manager-js/tsconfig.json +15 -15
- package/resources/js/project/vendor/run.sh +4 -107
- package/resources/js/project/version/craft_feature_version.json +42 -42
- package/resources/js/project/version/project_feature_version.json +11 -11
- package/resources/js/project/vite.config.ts +5 -4
- package/resources/js3d/context/.role/AGENTS_DESIGN.md +9 -0
- package/resources/js3d/context/AGENTS.md +95 -0
- package/resources/js3d/context/hooks/hooks.json +14 -20
- package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +75 -87
- package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +69 -69
- package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +42 -42
- package/resources/js3d/context/knowledge/FrontendComponents.md +19 -23
- package/resources/js3d/context/knowledge/MobileAdaptation.md +73 -0
- package/resources/js3d/context/knowledge/MobileAdapted.md +36 -0
- package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -114
- package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +117 -117
- package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +430 -430
- package/resources/js3d/context/knowledge/PlatformServices.md +190 -162
- package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +35 -0
- package/resources/js3d/context/knowledge/Runtime.md +34 -30
- package/resources/js3d/context/knowledge/SceneEditorCompat.md +35 -34
- package/resources/js3d/context/knowledge/StepByStep.md +21 -21
- package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -242
- package/resources/js3d/context/knowledge/UiEditorCompat.md +21 -21
- package/resources/js3d/context/rules/MultiplayerCapability.md +27 -27
- package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +63 -63
- package/resources/js3d/context/rules/PlatformBoundaryModules.md +44 -43
- package/resources/js3d/context/rules/preview_ready.md +8 -0
- package/resources/js3d/context/skills/aigc-integration/SKILL.md +172 -176
- package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +70 -0
- package/resources/js3d/context/skills/aigc-integration/callback.md +77 -56
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +23 -22
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +38 -38
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +72 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +33 -33
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +36 -36
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +37 -37
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +35 -35
- package/resources/js3d/context/skills/asset-search/SKILL.md +178 -159
- package/resources/js3d/context/skills/asset-search/references/resource-config.md +99 -56
- package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +58 -0
- package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +62 -62
- package/resources/js3d/context/skills/asset-search/scripts/config.json +235 -213
- package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +905 -885
- package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +79 -79
- package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +74 -74
- package/resources/js3d/context/skills/asset-search/scripts/search.mjs +637 -597
- package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +667 -0
- package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +42 -0
- package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +31 -0
- package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +92 -0
- package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +89 -0
- package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +143 -0
- package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +90 -0
- package/resources/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/js3d/context/skills/export-config/SKILL.md +20 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/js3d/context/skills/export-config/scripts/assert-asset-wiring.mjs +97 -83
- package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +56 -53
- package/resources/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -106
- package/resources/js3d/context/skills/export-config/scripts/sync-asset-controls.mjs +327 -325
- package/resources/js3d/context/skills/export-config/scripts/sync-scene-assets.mjs +216 -181
- package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +161 -163
- package/resources/js3d/context/skills/game-art-style/SKILL.md +60 -60
- package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +38 -38
- package/resources/js3d/context/skills/game-art-style/references/construction.md +111 -111
- package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +105 -105
- package/resources/js3d/context/skills/game-art-style/references/sources.md +25 -25
- package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +175 -175
- package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +168 -168
- package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +191 -191
- package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +165 -165
- package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +173 -173
- package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +185 -185
- package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +181 -181
- package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +189 -189
- package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +88 -88
- package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +301 -284
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +104 -104
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +933 -952
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -92
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +254 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -245
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +257 -256
- package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +342 -311
- package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +140 -106
- package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +11 -0
- package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +53 -0
- package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +23 -0
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +10 -0
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +20 -0
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +19 -0
- package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +74 -74
- package/resources/js3d/context/skills/performance-audit/SKILL.md +166 -0
- package/resources/js3d/context/skills/performance-audit/references/case-notes.md +93 -0
- package/resources/js3d/context/skills/performance-audit/references/rules.md +183 -0
- package/resources/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/js3d/context/skills/platform-services/SKILL.md +101 -94
- package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +465 -783
- package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +57 -57
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-session.mjs +208 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/shared.mjs +37 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -39
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -1
- package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +35 -35
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +61 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +52 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +30 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +89 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +47 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +31 -25
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +272 -1
- package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +49 -49
- package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +1 -1
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -7
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -264
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -39
- package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +139 -139
- package/resources/js3d/context/skills/platform-services/references/api_reference.md +18 -18
- package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +96 -0
- package/resources/js3d/context/skills/platform-services/scripts/install.mjs +148 -134
- package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +46 -170
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +156 -121
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +239 -244
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +129 -127
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +188 -188
- package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +31 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +40 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +18 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +15 -124
- package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +34 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +38 -117
- package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +448 -338
- package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +599 -599
- package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +141 -141
- package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +92 -92
- package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +125 -125
- package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +113 -113
- package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +1187 -1187
- package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +53 -52
- package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +4 -4
- package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +94 -94
- package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +50 -50
- package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +105 -105
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +147 -147
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +79 -79
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +56 -56
- package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +51 -51
- package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +55 -55
- package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +78 -78
- package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +84 -84
- package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +117 -117
- package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +4 -4
- package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +238 -238
- package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +59 -59
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -35
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +61 -61
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -60
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -45
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -265
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +7 -7
- package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +110 -110
- package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -327
- package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -80
- package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -84
- package/resources/js3d/context/skills/version-update/SKILL.md +191 -191
- package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -129
- package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +159 -159
- package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +157 -157
- package/resources/js3d/context/version/version.json +1 -1
- package/resources/js3d/project/README.md +106 -100
- package/resources/js3d/project/configs/game.controls.json +3 -3
- package/resources/js3d/project/configs/game.json +3 -3
- package/resources/js3d/project/game-runtime.json +2 -2
- package/resources/js3d/project/{projectDisplayInfo.json → game.config.json} +7 -7
- package/resources/js3d/project/index.html +12 -12
- package/resources/js3d/project/package.json +24 -24
- package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +2 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +2 -12
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +21 -29
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/js3d/project/scripts/config-export.mjs +37 -32
- package/resources/js3d/project/scripts/refresh-runtime.mjs +50 -50
- package/resources/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/js3d/project/src/display/ui-stage.ts +156 -121
- package/resources/js3d/project/src/display/viewport.ts +239 -244
- package/resources/js3d/project/src/main.ts +85 -83
- package/resources/js3d/project/src/platform.ts +2 -14
- package/resources/js3d/project/src/style.css +83 -17
- package/resources/js3d/project/tsconfig.json +20 -20
- package/resources/js3d/project/unified_data_control_config.json +20 -20
- package/resources/js3d/project/vendor/core-manager-three/package.json +12 -12
- package/resources/js3d/project/vendor/core-manager-three/src/index.ts +2 -2
- package/resources/js3d/project/vendor/run.sh +4 -4
- package/resources/js3d/project/version/craft_feature_version.json +42 -42
- package/resources/js3d/project/version/project_feature_version.json +11 -11
- package/resources/js3d/project/vite.config.ts +5 -4
- package/vendor/agent-cli/dist/runtime-tools/ue/blender-cook-assets.cjs +19 -19
- package/vendor/agent-cli/dist/runtime-tools/ue/tool-manifest.json +1 -1
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts +1 -1
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js +15 -6
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/native-source.d.ts +3 -0
- package/vendor/agent-cli/dist/src/artifacts/native-source.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/native-source.js +13 -0
- package/vendor/agent-cli/dist/src/artifacts/native-source.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts +13 -0
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +300 -0
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +4 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.js +20 -7
- package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +8 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +64 -37
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.d.ts +27 -0
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.js +112 -0
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts +9 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/restore.js +140 -59
- package/vendor/agent-cli/dist/src/artifacts/restore.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +7 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +145 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts +6 -2
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/static.js +100 -28
- 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 +6 -3
- package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -1
- package/vendor/agent-cli/dist/src/component/browser-queue.d.ts +55 -0
- package/vendor/agent-cli/dist/src/component/browser-queue.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/browser-queue.js +63 -0
- package/vendor/agent-cli/dist/src/component/browser-queue.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/execution.d.ts +4 -0
- package/vendor/agent-cli/dist/src/component/execution.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/component/execution.js +16 -4
- package/vendor/agent-cli/dist/src/component/execution.js.map +1 -1
- package/vendor/agent-cli/dist/src/component/isolated-launcher.d.ts +2 -0
- package/vendor/agent-cli/dist/src/component/isolated-launcher.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/isolated-launcher.js +76 -0
- package/vendor/agent-cli/dist/src/component/isolated-launcher.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/isolated-preload.d.ts +2 -0
- package/vendor/agent-cli/dist/src/component/isolated-preload.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/isolated-preload.js +27 -0
- package/vendor/agent-cli/dist/src/component/isolated-preload.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts +0 -5
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/component/platform-access/server.js +9 -3
- package/vendor/agent-cli/dist/src/component/platform-access/server.js.map +1 -1
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js +5 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js.map +1 -1
- package/vendor/agent-cli/dist/src/component/process-diagnostics.d.ts +25 -0
- package/vendor/agent-cli/dist/src/component/process-diagnostics.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/process-diagnostics.js +137 -0
- package/vendor/agent-cli/dist/src/component/process-diagnostics.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/process-isolation.d.ts +10 -0
- package/vendor/agent-cli/dist/src/component/process-isolation.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/process-isolation.js +59 -0
- package/vendor/agent-cli/dist/src/component/process-isolation.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/proxied-fetch.d.ts +2 -0
- package/vendor/agent-cli/dist/src/component/proxied-fetch.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/proxied-fetch.js +46 -0
- package/vendor/agent-cli/dist/src/component/proxied-fetch.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/public-egress.d.ts +17 -0
- package/vendor/agent-cli/dist/src/component/public-egress.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/public-egress.js +246 -0
- package/vendor/agent-cli/dist/src/component/public-egress.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.js +68 -0
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts +1 -1
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/cache-publication.js +8 -4
- package/vendor/agent-cli/dist/src/context/cache-publication.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/context-cache.js +5 -2
- package/vendor/agent-cli/dist/src/context/context-cache.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/context-project.d.ts +45 -4
- package/vendor/agent-cli/dist/src/context/context-project.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/context-project.js +157 -16
- package/vendor/agent-cli/dist/src/context/context-project.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/context-scoped-source.d.ts +13 -0
- package/vendor/agent-cli/dist/src/context/context-scoped-source.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-scoped-source.js +78 -0
- package/vendor/agent-cli/dist/src/context/context-scoped-source.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts +14 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js +110 -44
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts +2 -0
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/local-skills.js +36 -19
- package/vendor/agent-cli/dist/src/context/local-skills.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/member-context.d.ts +2 -1
- package/vendor/agent-cli/dist/src/context/member-context.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/member-context.js +17 -9
- package/vendor/agent-cli/dist/src/context/member-context.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts +9 -1
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/script-dependencies.js +22 -6
- package/vendor/agent-cli/dist/src/context/script-dependencies.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts +1 -1
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js +1 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/team-knowledge.js +11 -2
- package/vendor/agent-cli/dist/src/context/team-knowledge.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts +5 -1
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-cache.js +2 -2
- package/vendor/agent-cli/dist/src/context/template-cache.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-refresh.d.ts +6 -0
- package/vendor/agent-cli/dist/src/context/template-refresh.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-refresh.js +45 -0
- package/vendor/agent-cli/dist/src/context/template-refresh.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts +16 -3
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-seed.js +71 -19
- package/vendor/agent-cli/dist/src/context/template-seed.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-sync.d.ts +11 -0
- package/vendor/agent-cli/dist/src/context/template-sync.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-sync.js +167 -0
- package/vendor/agent-cli/dist/src/context/template-sync.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts +3 -1
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/user-skill-context.js +41 -2
- package/vendor/agent-cli/dist/src/context/user-skill-context.js.map +1 -1
- package/vendor/agent-cli/dist/src/index.d.ts +5 -1
- package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/index.js +5 -1
- package/vendor/agent-cli/dist/src/index.js.map +1 -1
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts +2 -2
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js +4 -2
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js.map +1 -1
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js +1 -1
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts +24 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js +6 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +71 -4
- 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 +13 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -1
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/security/command-translate.js +4 -0
- package/vendor/agent-cli/dist/src/security/command-translate.js.map +1 -1
- package/vendor/agent-cli/dist/src/security/guard.d.ts +4 -0
- package/vendor/agent-cli/dist/src/security/guard.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/security/guard.js +17 -5
- package/vendor/agent-cli/dist/src/security/guard.js.map +1 -1
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts +11 -2
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/security/mount-table.js +92 -5
- package/vendor/agent-cli/dist/src/security/mount-table.js.map +1 -1
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts +4 -1
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/security/tool-scope.js +38 -4
- package/vendor/agent-cli/dist/src/security/tool-scope.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/client.d.ts +20 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/client.js +28 -5
- package/vendor/agent-cli/dist/src/session/client.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/custom-context.js +12 -6
- package/vendor/agent-cli/dist/src/session/custom-context.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/execution-recovery.d.ts +9 -0
- package/vendor/agent-cli/dist/src/session/execution-recovery.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/execution-recovery.js +49 -0
- package/vendor/agent-cli/dist/src/session/execution-recovery.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/expert-definition.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/expert-definition.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/expert-definition.js +20 -0
- package/vendor/agent-cli/dist/src/session/expert-definition.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-config.js +1 -1
- package/vendor/agent-cli/dist/src/session/link-config.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/link-session.d.ts +1 -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 +19 -2
- package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-environment.js +11 -0
- package/vendor/agent-cli/dist/src/session/process-environment.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-lifecycle.d.ts +5 -0
- package/vendor/agent-cli/dist/src/session/process-lifecycle.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-lifecycle.js +18 -0
- package/vendor/agent-cli/dist/src/session/process-lifecycle.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-observability.js +14 -0
- package/vendor/agent-cli/dist/src/session/process-observability.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-request.d.ts +7 -6
- package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-request.js +66 -87
- package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-restore.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/process-restore.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-restore.js +21 -0
- package/vendor/agent-cli/dist/src/session/process-restore.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-summary-output.d.ts +15 -0
- package/vendor/agent-cli/dist/src/session/process-summary-output.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-summary-output.js +46 -0
- package/vendor/agent-cli/dist/src/session/process-summary-output.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-workspace.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/process-workspace.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-workspace.js +21 -0
- package/vendor/agent-cli/dist/src/session/process-workspace.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/reference-tools.js +3 -2
- package/vendor/agent-cli/dist/src/session/reference-tools.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts +2 -0
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-setup.js +35 -14
- package/vendor/agent-cli/dist/src/session/run-setup.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +5 -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 +13 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/team-persistence.js +1 -1
- package/vendor/agent-cli/dist/src/session/team-persistence.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js +33 -23
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/user-choice-policy.d.ts +25 -0
- package/vendor/agent-cli/dist/src/session/user-choice-policy.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-choice-policy.js +70 -0
- package/vendor/agent-cli/dist/src/session/user-choice-policy.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts +3 -2
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/user-choice.js +30 -9
- package/vendor/agent-cli/dist/src/session/user-choice.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.js +25 -0
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js +2 -1
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.js +15 -0
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/replace-file.d.ts +3 -0
- package/vendor/agent-cli/dist/src/shared/replace-file.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/replace-file.js +34 -0
- package/vendor/agent-cli/dist/src/shared/replace-file.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts +55 -4
- package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts +21 -2
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts +3 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/command-executor.js +42 -5
- package/vendor/agent-cli/dist/src/tools/command-executor.js.map +1 -1
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/context-program.js +46 -20
- package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -1
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts +10 -19
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/file-ops.js +11 -85
- package/vendor/agent-cli/dist/src/tools/file-ops.js.map +1 -1
- package/vendor/agent-cli/dist/src/tools/file-search.d.ts +29 -0
- package/vendor/agent-cli/dist/src/tools/file-search.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-search.js +98 -0
- package/vendor/agent-cli/dist/src/tools/file-search.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-stat.d.ts +9 -0
- package/vendor/agent-cli/dist/src/tools/file-stat.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-stat.js +29 -0
- package/vendor/agent-cli/dist/src/tools/file-stat.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/local-hands.js +10 -2
- package/vendor/agent-cli/dist/src/tools/local-hands.js.map +1 -1
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts +3 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js +3 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js.map +1 -1
- package/resources/js/context/CLAUDE.md +0 -54
- package/resources/js/context/agents/aigc-manager.md +0 -91
- package/resources/js/context/knowledge/GameProbe.md +0 -74
- package/resources/js/context/skills/aigc-generate/scripts/apply-results.mjs +0 -83
- package/resources/js/context/skills/aigc-generate/scripts/config.json +0 -29
- package/resources/js/context/skills/aigc-generate/scripts/generate.mjs +0 -1016
- package/resources/js/context/skills/aigc-generate/scripts/lib/client.mjs +0 -228
- package/resources/js/context/skills/aigc-generate/scripts/lib/ledger.mjs +0 -119
- package/resources/js/context/skills/aigc-generate/scripts/lib/nstep-handoff.mjs +0 -100
- package/resources/js/context/skills/aigc-generate/scripts/lib/pipelines.mjs +0 -441
- package/resources/js/context/skills/aigc-generate/scripts/lib/queue.mjs +0 -283
- package/resources/js/context/skills/aigc-generate/scripts/lib/submit.mjs +0 -122
- package/resources/js/context/skills/aigc-generate/scripts/worker.mjs +0 -171
- package/resources/js/context/skills/asset-search/scripts/recalled_sprite_paths.mjs +0 -47
- package/resources/js/context/skills/asset-search/strategies/character2d.md +0 -33
- package/resources/js/context/skills/asset-search/strategies/texture-ui.md +0 -35
- package/resources/js/context/skills/display-info-setup/SKILL.md +0 -32
- package/resources/js/context/skills/display-info-setup/scripts/init_project.mjs +0 -38
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/release.json +0 -37
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/release.json +0 -44
- package/resources/js/project/.gitattributes +0 -2
- package/resources/js/project/gameplay-probe.json +0 -37
- package/resources/js/project/package-lock.json +0 -1155
- package/resources/js3d/context/CLAUDE.md +0 -50
- package/resources/js3d/context/skills/aigc-integration/scripts/config.json +0 -3
- package/resources/js3d/context/skills/aigc-integration/scripts/lib/submit.mjs +0 -344
- package/resources/js3d/context/skills/aigc-integration/scripts/query-music.mjs +0 -53
- package/resources/js3d/context/skills/aigc-integration/scripts/query-results.mjs +0 -53
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-cover.mjs +0 -44
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-image.mjs +0 -48
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-music.mjs +0 -34
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-staticmesh.mjs +0 -39
- package/resources/js3d/context/skills/platform-services/assets/release.json +0 -44
- package/resources/js3d/project/.gitattributes +0 -2
- package/resources/js3d/project/gameplay-probe.json +0 -38
- package/resources/js3d/project/package-lock.json +0 -1204
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.test.mjs +0 -25
|
@@ -1,106 +1,140 @@
|
|
|
1
|
-
# 移动端验收
|
|
2
|
-
|
|
3
|
-
## 强制平台:`?launchPlatform=pc|mobile`
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
http://localhost:5173/?launchPlatform=mobile # 本地强制移动端
|
|
7
|
-
http://localhost:5173/?launchPlatform=pc # 本地强制 PC
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
判定优先级见 [`input-platform.ts`](../assets/example/src/input/input-platform.ts):
|
|
11
|
-
显式注入 → `wx` → `?launchPlatform` → 触摸能力 + `(pointer: coarse)`。
|
|
12
|
-
|
|
13
|
-
**为什么必须有这个开关**:自动化验收与真机复现都要能**确定性地**进入移动端形态。
|
|
14
|
-
只靠设备检测,验证者只能在真机上试,无法在 CI 或桌面上回归;
|
|
15
|
-
而且一旦有人绕过它自行判定,验收门禁会直接失效(典型症状:铺了移动端 HUD 但没有摇杆)。
|
|
16
|
-
|
|
17
|
-
因此:
|
|
18
|
-
|
|
19
|
-
- **业务代码禁止自行判定平台**:不用 `navigator.maxTouchPoints` / `userAgent` / `ontouchstart`,
|
|
20
|
-
不读 `window.matchMedia('(pointer: coarse)')` 做功能分支。
|
|
21
|
-
- **禁止在每帧里读平台**:`getInputPlatform()` 只在构建期调用一次并缓存结果
|
|
22
|
-
(插拔鼠标、旋转设备都不重算)。逐帧读取一律走语义接口。
|
|
23
|
-
- 桌面浏览器用 DevTools 设备模拟时 `(pointer: coarse)` 会命中,多数情况下能自动判为 mobile;
|
|
24
|
-
但只要结论会影响验收,就显式带参数,不要依赖隐式检测。
|
|
25
|
-
|
|
26
|
-
## 必查清单
|
|
27
|
-
|
|
28
|
-
改完移动端输入后逐条过:
|
|
29
|
-
|
|
30
|
-
1. `?launchPlatform=mobile` 打开,`#game` 上有 `data-platform="mobile"`。
|
|
31
|
-
2.
|
|
32
|
-
3. 动作按钮:按下即响应,按下态有视觉反馈;一根手指按住按钮、另一根手指拖摇杆,两者互不干扰。
|
|
33
|
-
4. 触点仲裁:按住动作按钮拖动,视角**不转动**;拖摇杆时手指划过按钮,按钮**不触发**。
|
|
34
|
-
5. 视角滑动区(若配了 `looks`):右半屏空白处拖动可转视角;空白处轻点不会莫名转视角(起手死区生效)。
|
|
35
|
-
6. 面板与控件:打开模态面板后虚拟控件不可点(被遮罩挡住或 `setControlsVisible(false)` 关掉),
|
|
36
|
-
关掉面板后控件恢复;**没有按钮卡在按下态**。
|
|
37
|
-
7. 转屏:横竖屏切换后控件仍在可点区域,位置不跑到屏幕外。
|
|
38
|
-
8.
|
|
39
|
-
9. PC 分支未被破坏:`?launchPlatform=pc` 下键鼠操作与改造前一致;虚拟控件完全不创建。
|
|
40
|
-
10. 无残留:切场景 / 重开一局后,`input.dispose()` 或 `setControlsVisible(false)` 已把
|
|
41
|
-
按键、触点、摇杆读数清干净(否则新一局开局就在移动)。
|
|
42
|
-
11. Phaser 场景切换:Loading → 玩法场景切换期间不残留控件;暂停(`scene.pause()`)时控件不可点。
|
|
43
|
-
12. 两条通路不打架:世界内点选(Phaser 指针)与虚拟控件不会互相触发同一次操作。
|
|
44
|
-
13. 上下文交互按钮(若有):靠近目标才出现、离开即消失,**开局不闪一下**;文案随目标切换;
|
|
45
|
-
**按住按钮时让它消失(走出交互范围),松手后动作不会一直触发**;
|
|
46
|
-
`?launchPlatform=pc` 下同一动作的键位照常可用,不受按钮显隐影响。
|
|
47
|
-
14. 摇杆底盘跟手:**在桌面浏览器用鼠标左键**按下左半屏(`?launchPlatform=mobile`),
|
|
48
|
-
底盘必须出现在**落点**而不是屏幕角上 —— 这条要专门用鼠标测,
|
|
49
|
-
因为真机(`pointerType='touch'`)走的是另一条判定分支,只在真机上看会漏掉。
|
|
50
|
-
右键按下则**不应**出现底盘(与 `createJoystick` 的门槛一致)。
|
|
51
|
-
|
|
52
|
-
> **PC look 通道要测两种锁定状态。** 若业务调了 `requestPointerLock()`,
|
|
53
|
-
> 必须**分别**在「已锁定」与「未锁定」下各拖一次视角 —— 这是两条完全不同的代码路径
|
|
54
|
-
> (`movementX/Y` vs 坐标差),只测一种必然漏。
|
|
55
|
-
> 用合成 `PointerEvent` 做自动化时注意:**`movementX` 默认为 0**,
|
|
56
|
-
> 锁定态下会测出假的「无反应」,要么显式传 `movementX`,要么先 `exitPointerLock()`。
|
|
57
|
-
|
|
58
|
-
## 症状 → 根因
|
|
59
|
-
|
|
60
|
-
| 症状 | 根因 |
|
|
61
|
-
|---|---|
|
|
62
|
-
| 铺了移动端 HUD 但看不到摇杆 | 业务自判平台绕过了 `?launchPlatform`;或 `mobile.type` 写错被跳过(看 warn) |
|
|
63
|
-
| `?launchPlatform=mobile` 无效 | 参数在平台判定之前被别的代码消费/覆盖,或判定结果被缓存后又改写 |
|
|
64
|
-
| 能拖动但视角不转 | `look` 通道读了两遍(消费型,第二次恒为 0);或 `getLookDelta` 放在了 `sample()` 之前/之外 |
|
|
65
|
-
| 拖摇杆时视角也转 | 滑动区与摇杆区重叠;或另挂了全屏的相机拖拽/`OrbitControls` 类逻辑 |
|
|
66
|
-
| 按按钮时视角也在转 | 按钮没有排在滑动区之后(DOM 顺序 = 命中优先级),触点到不了按钮 |
|
|
67
|
-
| PC 上视角完全转不动 —— 尤其是业务调了 `requestPointerLock()` 之后 | 指针锁定态下浏览器把 `clientX/Y` **冻结**在锁定时的坐标、且不再派发 `pointerdown`,只读坐标差的实现会恒得 0。LookPad 必须在锁定态改用 `movementX/Y`,并且 `requireButton: null` 时免 `pointerdown` 直接跟踪移动 |
|
|
68
|
-
| PC 上视角完全转不动,必须按住右键才转(配置明明写了 `requireButton: null`) | 输入层用 `look.pc?.requireButton ?? 2` 读默认值,`??` 把显式的 `null` 也吞掉了。必须显式判 `=== undefined`(范式里走 `pcLookRequireButton()`)|
|
|
69
|
-
| 桌面 `?launchPlatform=mobile` 下摇杆能推、按钮能按,唯独右半屏拖不动视角 | 移动端 `createLookPad` 的 `pointerTypes` 漏了 `'mouse'`。桌面验收时指针类型仍是 mouse,而摇杆认鼠标左键、按钮不筛类型,于是只有 look 区失灵。应配 `['touch', 'pen', 'mouse']` + `requireButton: 0`(真机不产生 mouse 事件,无副作用) |
|
|
70
|
-
|
|
|
71
|
-
| 摇杆推满却走得很慢 | 死区过大或 `radius` 的单位不是设计像素(`scale` 传了固定值) |
|
|
72
|
-
| 角色方向与推杆方向不一致 | 在移动端对轴单独取反了。极性在输入边界统一为「右正 / 下正」,世界方向转换只在消费侧做一次 |
|
|
73
|
-
| 触屏拖动被浏览器当成滚动 | 控件元素缺 `touch-action: none` |
|
|
74
|
-
| 控件挡住了场景点选 / 交互 | 控件容器写了 `pointer-events: auto`(应只在可操作元素上设 auto) |
|
|
75
|
-
| PC 上按键没反应 | 键名写了 `'A'` 而不是 `'KeyA'`(**控制台会有 `[input] 键名 …` 的 warn**);键盘监听挂在了不可聚焦的 canvas 上(应挂 `window`) |
|
|
76
|
-
| PC 左键 / 右键没反应 | 鼠标键要写 `Mouse0` / `Mouse2` token,不是 `'MOUSE_LEFT'`,也不用自己接 `pointerdown` |
|
|
77
|
-
| 按右键先弹出浏览器菜单 | 右键没有被登记为输入(`"pc": ["Mouse2"]` 或 `requireButton: 2`),所以输入层没有抑制 `contextmenu` |
|
|
78
|
-
| 按一次右键既转向又触发了动作 | 右键同时给了 `looks.*.pc.requireButton: 2` 与某个 action 的 `Mouse2`,二选一 |
|
|
79
|
-
| 松开鼠标后按键仍按住 | `blur` / `visibilitychange` 未清理;或模态弹出时未 `clear()` |
|
|
80
|
-
| 松手后还在持续开火 | 鼠标抬起监听挂在了 canvas 上:按住后移出画布松手,canvas 收不到 `pointerup`(要挂 `window`) |
|
|
81
|
-
| 瞄准镜按一下就弹回 / 要一直按住 | 该动作没写 `"mode": "toggle"`,`isDown()` 返回的是物理按下 |
|
|
82
|
-
| 瞄准状态一帧内反复开关 | 业务自己又用 `wasPressed` 翻了一次 boolean,与框架锁存叠加 —— 删掉业务那份 |
|
|
83
|
-
| toggle 按钮亮不起来(或按住才亮) | 自定义 CSS 把 `.is-latched` 写在了 `.is-pressed` **之前**,同特异度被盖掉 |
|
|
84
|
-
| 开火按钮拖动不转视角 | 没配 `mobile.drag`;或 `drag.look` 指的通道没在 `looks` 里声明(控制台有 warn) |
|
|
85
|
-
| 按住开火拖动时镜头猛甩一下 | 业务自己接了 `pointermove` 调 `feedLookDelta`,与 `mobile.drag` 双份注入 |
|
|
86
|
-
| 交互按钮一直不出现 | 配了 `"hidden": true` 却没人调 `setActionButtonVisible(action, true)`;或动作名拼错(控制台有 `[input] setActionButtonVisible(…)` 的 warn) |
|
|
87
|
-
| 开局闪一下交互按钮 | 配置漏了 `"hidden": true`,按钮先建出来才被业务第一帧收掉 |
|
|
88
|
-
| 按钮消失后动作还在持续触发 | 业务自己改了 `.touch-btn` 的 `style.display`:`display:none` 不保证释放指针捕获,触点残留。改用 `setActionButtonVisible` |
|
|
89
|
-
| 关掉暂停面板后交互按钮全冒出来 | 用 `setControlsVisible(true)` 顶替了单按钮显隐,或自己改 DOM 盖掉了 `is-hidden` |
|
|
90
|
-
| 隐藏 toggle 按钮后锁存还开着 | 设计如此 —— `latched` 是两端共享的语义状态,UI 可见性不动它。要退出锁存调 `setToggle(action, false)` |
|
|
91
|
-
| PC 上按不动某个动作 | 误以为 `setActionButtonVisible(false)` 会屏蔽键位而没写上下文判断 —— 它只管移动端按钮,PC 侧要业务自己判 |
|
|
92
|
-
| 手机上点场景物体没反应 | 触点被滑动区/摇杆区消费(设计如此)。需要点选的玩法要把点选目标做成动作按钮,或限定未被消费的区域 |
|
|
93
|
-
| 按一下跳两下 / 动作触发两次 | 同一动作同时接了 Phaser `this.input` 与虚拟控件或键盘映射 |
|
|
94
|
-
| 暂停后还能按按钮,恢复后角色自己在走 | 暂停 / 切场景时没调 `setControlsVisible(false)`(Phaser 停更新了,DOM 控件还活着) |
|
|
95
|
-
| 场景切换后控件不见了 | 控件挂在某个 Scene 的容器里,被场景销毁带走了。控件属于输入层,要挂在常驻容器上 |
|
|
96
|
-
|
|
97
|
-
## 反模式
|
|
98
|
-
|
|
99
|
-
- ❌ `if (isMobile) { ... } else { ... }` 出现在玩法逻辑里 —— 玩法只读语义接口,PC 与移动端走同一条路径。
|
|
100
|
-
- ❌ 为移动端单独写一套「移动速度更快 / 跳跃更高」的数值 —— 那是数值配置的事,不是输入分支。
|
|
101
|
-
- ❌ 把虚拟控件做成 DOM 面板的一部分(`createButton` 之类)再自己接事件 —— 会与触点仲裁抢所有权。
|
|
102
|
-
玩法按钮属于输入层,界面按钮属于 UI 层,两者不要混。
|
|
103
|
-
- ❌ 用 `setTimeout` 给按钮做「长按连发」而不检查触点是否还在同一控件上 —— 触点抬起/滑走必须停。
|
|
104
|
-
- ❌ 把移动端控件写进 `configs/`,让它出现在玩家的参数面板里。
|
|
105
|
-
- ❌ `document.querySelector('.touch-btn[data-action=…]')` 自己改 `display` / `textContent` ——
|
|
106
|
-
绕过了隐藏时的触点清理,也把内部 class 约定变成业务依赖。走 `setActionButtonVisible` / `setActionLabel`。
|
|
1
|
+
# 移动端验收
|
|
2
|
+
|
|
3
|
+
## 强制平台:`?launchPlatform=pc|mobile`
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
http://localhost:5173/?launchPlatform=mobile # 本地强制移动端
|
|
7
|
+
http://localhost:5173/?launchPlatform=pc # 本地强制 PC
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
判定优先级见 [`input-platform.ts`](../assets/example/src/input/input-platform.ts):
|
|
11
|
+
显式注入 → `wx` → `?launchPlatform` → 触摸能力 + `(pointer: coarse)`。
|
|
12
|
+
|
|
13
|
+
**为什么必须有这个开关**:自动化验收与真机复现都要能**确定性地**进入移动端形态。
|
|
14
|
+
只靠设备检测,验证者只能在真机上试,无法在 CI 或桌面上回归;
|
|
15
|
+
而且一旦有人绕过它自行判定,验收门禁会直接失效(典型症状:铺了移动端 HUD 但没有摇杆)。
|
|
16
|
+
|
|
17
|
+
因此:
|
|
18
|
+
|
|
19
|
+
- **业务代码禁止自行判定平台**:不用 `navigator.maxTouchPoints` / `userAgent` / `ontouchstart`,
|
|
20
|
+
不读 `window.matchMedia('(pointer: coarse)')` 做功能分支。
|
|
21
|
+
- **禁止在每帧里读平台**:`getInputPlatform()` 只在构建期调用一次并缓存结果
|
|
22
|
+
(插拔鼠标、旋转设备都不重算)。逐帧读取一律走语义接口。
|
|
23
|
+
- 桌面浏览器用 DevTools 设备模拟时 `(pointer: coarse)` 会命中,多数情况下能自动判为 mobile;
|
|
24
|
+
但只要结论会影响验收,就显式带参数,不要依赖隐式检测。
|
|
25
|
+
|
|
26
|
+
## 必查清单
|
|
27
|
+
|
|
28
|
+
改完移动端输入后逐条过:
|
|
29
|
+
|
|
30
|
+
1. `?launchPlatform=mobile` 打开,`#game` 上有 `data-platform="mobile"`。
|
|
31
|
+
2. 摇杆:按下左侧 50% 宽、下方 65% 高触发区内任意位置,底盘出现在手指落点;拖动可移动;抬手后摇杆归零、底盘隐藏。
|
|
32
|
+
3. 动作按钮:按下即响应,按下态有视觉反馈;一根手指按住按钮、另一根手指拖摇杆,两者互不干扰。
|
|
33
|
+
4. 触点仲裁:按住动作按钮拖动,视角**不转动**;拖摇杆时手指划过按钮,按钮**不触发**。
|
|
34
|
+
5. 视角滑动区(若配了 `looks`):右半屏空白处拖动可转视角;空白处轻点不会莫名转视角(起手死区生效)。
|
|
35
|
+
6. 面板与控件:打开模态面板后虚拟控件不可点(被遮罩挡住或 `setControlsVisible(false)` 关掉),
|
|
36
|
+
关掉面板后控件恢复;**没有按钮卡在按下态**。
|
|
37
|
+
7. 转屏:横竖屏切换后控件仍在可点区域,位置不跑到屏幕外。
|
|
38
|
+
8. 尺寸:按 [显示尺寸与有效热区](input-config.md#显示尺寸与有效热区) 验收所有移动端交互控件,覆盖玩法、菜单及弹窗。目标小屏横竖屏、转屏后均测最终可见区域与有效热区:宽高至少 40 CSS px,圆形直径至少 40 CSS px。DOM 读取 `getBoundingClientRect()`,Canvas 将控件与命中范围换算到显示 CSS 坐标;另计外层宿主变换,并排除裁切、遮挡,不能把包围盒直接当作完整可用热区。检查中心与靠近边缘处点击、相邻控件误触和多指操作,记录视口、尺寸及结果。不足必须修复后再交付;未测范围不标通过。文字可读性与摇杆可操作范围另查,不以设计值、DPR 或物理尺寸承诺代替验证。
|
|
39
|
+
9. PC 分支未被破坏:`?launchPlatform=pc` 下键鼠操作与改造前一致;虚拟控件完全不创建。
|
|
40
|
+
10. 无残留:切场景 / 重开一局后,`input.dispose()` 或 `setControlsVisible(false)` 已把
|
|
41
|
+
按键、触点、摇杆读数清干净(否则新一局开局就在移动)。
|
|
42
|
+
11. Phaser 场景切换:Loading → 玩法场景切换期间不残留控件;暂停(`scene.pause()`)时控件不可点。
|
|
43
|
+
12. 两条通路不打架:世界内点选(Phaser 指针)与虚拟控件不会互相触发同一次操作。
|
|
44
|
+
13. 上下文交互按钮(若有):靠近目标才出现、离开即消失,**开局不闪一下**;文案随目标切换;
|
|
45
|
+
**按住按钮时让它消失(走出交互范围),松手后动作不会一直触发**;
|
|
46
|
+
`?launchPlatform=pc` 下同一动作的键位照常可用,不受按钮显隐影响。
|
|
47
|
+
14. 摇杆底盘跟手:**在桌面浏览器用鼠标左键**按下左半屏(`?launchPlatform=mobile`),
|
|
48
|
+
底盘必须出现在**落点**而不是屏幕角上 —— 这条要专门用鼠标测,
|
|
49
|
+
因为真机(`pointerType='touch'`)走的是另一条判定分支,只在真机上看会漏掉。
|
|
50
|
+
右键按下则**不应**出现底盘(与 `createJoystick` 的门槛一致)。
|
|
51
|
+
|
|
52
|
+
> **PC look 通道要测两种锁定状态。** 若业务调了 `requestPointerLock()`,
|
|
53
|
+
> 必须**分别**在「已锁定」与「未锁定」下各拖一次视角 —— 这是两条完全不同的代码路径
|
|
54
|
+
> (`movementX/Y` vs 坐标差),只测一种必然漏。
|
|
55
|
+
> 用合成 `PointerEvent` 做自动化时注意:**`movementX` 默认为 0**,
|
|
56
|
+
> 锁定态下会测出假的「无反应」,要么显式传 `movementX`,要么先 `exitPointerLock()`。
|
|
57
|
+
|
|
58
|
+
## 症状 → 根因
|
|
59
|
+
|
|
60
|
+
| 症状 | 根因 |
|
|
61
|
+
|---|---|
|
|
62
|
+
| 铺了移动端 HUD 但看不到摇杆 | 业务自判平台绕过了 `?launchPlatform`;或 `mobile.type` 写错被跳过(看 warn) |
|
|
63
|
+
| `?launchPlatform=mobile` 无效 | 参数在平台判定之前被别的代码消费/覆盖,或判定结果被缓存后又改写 |
|
|
64
|
+
| 能拖动但视角不转 | `look` 通道读了两遍(消费型,第二次恒为 0);或 `getLookDelta` 放在了 `sample()` 之前/之外 |
|
|
65
|
+
| 拖摇杆时视角也转 | 滑动区与摇杆区重叠;或另挂了全屏的相机拖拽/`OrbitControls` 类逻辑 |
|
|
66
|
+
| 按按钮时视角也在转 | 按钮没有排在滑动区之后(DOM 顺序 = 命中优先级),触点到不了按钮 |
|
|
67
|
+
| PC 上视角完全转不动 —— 尤其是业务调了 `requestPointerLock()` 之后 | 指针锁定态下浏览器把 `clientX/Y` **冻结**在锁定时的坐标、且不再派发 `pointerdown`,只读坐标差的实现会恒得 0。LookPad 必须在锁定态改用 `movementX/Y`,并且 `requireButton: null` 时免 `pointerdown` 直接跟踪移动 |
|
|
68
|
+
| PC 上视角完全转不动,必须按住右键才转(配置明明写了 `requireButton: null`) | 输入层用 `look.pc?.requireButton ?? 2` 读默认值,`??` 把显式的 `null` 也吞掉了。必须显式判 `=== undefined`(范式里走 `pcLookRequireButton()`)|
|
|
69
|
+
| 桌面 `?launchPlatform=mobile` 下摇杆能推、按钮能按,唯独右半屏拖不动视角 | 移动端 `createLookPad` 的 `pointerTypes` 漏了 `'mouse'`。桌面验收时指针类型仍是 mouse,而摇杆认鼠标左键、按钮不筛类型,于是只有 look 区失灵。应配 `['touch', 'pen', 'mouse']` + `requireButton: 0`(真机不产生 mouse 事件,无副作用) |
|
|
70
|
+
| 摇杆底盘与手指落点不一致 | 检查是否通过 `createJoystick.onStart` 定位,是否使用 zone 的矩形与当前 UI 缩放换算;不要额外监听 pointerdown,否则第二指可能重定位。 |
|
|
71
|
+
| 摇杆推满却走得很慢 | 死区过大或 `radius` 的单位不是设计像素(`scale` 传了固定值) |
|
|
72
|
+
| 角色方向与推杆方向不一致 | 在移动端对轴单独取反了。极性在输入边界统一为「右正 / 下正」,世界方向转换只在消费侧做一次 |
|
|
73
|
+
| 触屏拖动被浏览器当成滚动 | 控件元素缺 `touch-action: none` |
|
|
74
|
+
| 控件挡住了场景点选 / 交互 | 控件容器写了 `pointer-events: auto`(应只在可操作元素上设 auto) |
|
|
75
|
+
| PC 上按键没反应 | 键名写了 `'A'` 而不是 `'KeyA'`(**控制台会有 `[input] 键名 …` 的 warn**);键盘监听挂在了不可聚焦的 canvas 上(应挂 `window`) |
|
|
76
|
+
| PC 左键 / 右键没反应 | 鼠标键要写 `Mouse0` / `Mouse2` token,不是 `'MOUSE_LEFT'`,也不用自己接 `pointerdown` |
|
|
77
|
+
| 按右键先弹出浏览器菜单 | 右键没有被登记为输入(`"pc": ["Mouse2"]` 或 `requireButton: 2`),所以输入层没有抑制 `contextmenu` |
|
|
78
|
+
| 按一次右键既转向又触发了动作 | 右键同时给了 `looks.*.pc.requireButton: 2` 与某个 action 的 `Mouse2`,二选一 |
|
|
79
|
+
| 松开鼠标后按键仍按住 | `blur` / `visibilitychange` 未清理;或模态弹出时未 `clear()` |
|
|
80
|
+
| 松手后还在持续开火 | 鼠标抬起监听挂在了 canvas 上:按住后移出画布松手,canvas 收不到 `pointerup`(要挂 `window`) |
|
|
81
|
+
| 瞄准镜按一下就弹回 / 要一直按住 | 该动作没写 `"mode": "toggle"`,`isDown()` 返回的是物理按下 |
|
|
82
|
+
| 瞄准状态一帧内反复开关 | 业务自己又用 `wasPressed` 翻了一次 boolean,与框架锁存叠加 —— 删掉业务那份 |
|
|
83
|
+
| toggle 按钮亮不起来(或按住才亮) | 自定义 CSS 把 `.is-latched` 写在了 `.is-pressed` **之前**,同特异度被盖掉 |
|
|
84
|
+
| 开火按钮拖动不转视角 | 没配 `mobile.drag`;或 `drag.look` 指的通道没在 `looks` 里声明(控制台有 warn) |
|
|
85
|
+
| 按住开火拖动时镜头猛甩一下 | 业务自己接了 `pointermove` 调 `feedLookDelta`,与 `mobile.drag` 双份注入 |
|
|
86
|
+
| 交互按钮一直不出现 | 配了 `"hidden": true` 却没人调 `setActionButtonVisible(action, true)`;或动作名拼错(控制台有 `[input] setActionButtonVisible(…)` 的 warn) |
|
|
87
|
+
| 开局闪一下交互按钮 | 配置漏了 `"hidden": true`,按钮先建出来才被业务第一帧收掉 |
|
|
88
|
+
| 按钮消失后动作还在持续触发 | 业务自己改了 `.touch-btn` 的 `style.display`:`display:none` 不保证释放指针捕获,触点残留。改用 `setActionButtonVisible` |
|
|
89
|
+
| 关掉暂停面板后交互按钮全冒出来 | 用 `setControlsVisible(true)` 顶替了单按钮显隐,或自己改 DOM 盖掉了 `is-hidden` |
|
|
90
|
+
| 隐藏 toggle 按钮后锁存还开着 | 设计如此 —— `latched` 是两端共享的语义状态,UI 可见性不动它。要退出锁存调 `setToggle(action, false)` |
|
|
91
|
+
| PC 上按不动某个动作 | 误以为 `setActionButtonVisible(false)` 会屏蔽键位而没写上下文判断 —— 它只管移动端按钮,PC 侧要业务自己判 |
|
|
92
|
+
| 手机上点场景物体没反应 | 触点被滑动区/摇杆区消费(设计如此)。需要点选的玩法要把点选目标做成动作按钮,或限定未被消费的区域 |
|
|
93
|
+
| 按一下跳两下 / 动作触发两次 | 同一动作同时接了 Phaser `this.input` 与虚拟控件或键盘映射 |
|
|
94
|
+
| 暂停后还能按按钮,恢复后角色自己在走 | 暂停 / 切场景时没调 `setControlsVisible(false)`(Phaser 停更新了,DOM 控件还活着) |
|
|
95
|
+
| 场景切换后控件不见了 | 控件挂在某个 Scene 的容器里,被场景销毁带走了。控件属于输入层,要挂在常驻容器上 |
|
|
96
|
+
|
|
97
|
+
## 反模式
|
|
98
|
+
|
|
99
|
+
- ❌ `if (isMobile) { ... } else { ... }` 出现在玩法逻辑里 —— 玩法只读语义接口,PC 与移动端走同一条路径。
|
|
100
|
+
- ❌ 为移动端单独写一套「移动速度更快 / 跳跃更高」的数值 —— 那是数值配置的事,不是输入分支。
|
|
101
|
+
- ❌ 把虚拟控件做成 DOM 面板的一部分(`createButton` 之类)再自己接事件 —— 会与触点仲裁抢所有权。
|
|
102
|
+
玩法按钮属于输入层,界面按钮属于 UI 层,两者不要混。
|
|
103
|
+
- ❌ 用 `setTimeout` 给按钮做「长按连发」而不检查触点是否还在同一控件上 —— 触点抬起/滑走必须停。
|
|
104
|
+
- ❌ 把移动端控件写进 `configs/`,让它出现在玩家的参数面板里。
|
|
105
|
+
- ❌ `document.querySelector('.touch-btn[data-action=…]')` 自己改 `display` / `textContent` ——
|
|
106
|
+
绕过了隐藏时的触点清理,也把内部 class 约定变成业务依赖。走 `setActionButtonVisible` / `setActionLabel`。
|
|
107
|
+
|
|
108
|
+
## 设备遮挡与回归补验
|
|
109
|
+
|
|
110
|
+
- `?launchPlatform=mobile` 仅强制输入分支,不模拟真实刘海、宿主操作区或老 WebView。设备遮挡按 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/device-safe-area.md` 处理。
|
|
111
|
+
- 适配位置改变后检查实际命中区:按钮中心/边缘可点,摇杆拖出后松手不残留;不要只核对图标位置。
|
|
112
|
+
- 同一会话中转屏/折叠、开关弹窗再操作,检查控件与玩法区域不被遮挡、触点仲裁和暂停恢复仍正常。沿用已有语义输入和显隐 API,不另建监听。
|
|
113
|
+
- 选中边框先区分调试热区、触摸高亮和键盘焦点;按控件定向处理,保留必要的 focus-visible 反馈。
|
|
114
|
+
- 收到 QA 回归异常时加载 `mobile-compat-qa`,按原问题 ID 与验证版本记录;本地输入验收通过不等于真机 QA 通过。
|
|
115
|
+
|
|
116
|
+
按本次支持渠道和改动选择以下相关场景,不因普通无关修改重跑全量矩阵。每项记录已执行、未执行或不适用及原因:
|
|
117
|
+
|
|
118
|
+
| 场景 | 补验对象与结论边界 |
|
|
119
|
+
|---|---|
|
|
120
|
+
| 宿主返回等控件覆盖 | 按钮完整热区、展示型 HUD 与 Canvas HUD 均不被挡,背景仍铺满;记录真实宿主及遮挡依据,依据缺失不写安全区全通过 |
|
|
121
|
+
| 方向提示、退出确认覆盖及返回 | 检查残留移动/开火、重复音频与异常计时;无可观察结果或缺少宿主活跃通知时保留未验证,不只看是否重载 |
|
|
122
|
+
| 小尺寸或父层变换 | 按 `input-config.md` 核对最终尺寸、边缘命中与相邻误触,最外层缩放/旋转未知时保留对应范围 |
|
|
123
|
+
| 浏览器手势 | 游戏拖动不被滚动/缩放抢占,正常滚动区域仍可用;pointer/touch/mouse 不重复触发,取消后输入归零 |
|
|
124
|
+
| 首次音频、静音与恢复 | 依据 `web-audio.md` 检查播放被拒、静音保持、重试与恢复,玩法/ready 不受阻;不将单设备结果扩大到全部 WebView |
|
|
125
|
+
| 内部 HUD、面板与动态控件 | 检查互压、关键玩法区域和透明区域抢触摸;弹窗开关、动态文字及面板打开时转屏后,视觉与输入均正常,不只靠截图 |
|
|
126
|
+
| 后台、锁屏、重入与资源失败 | 按 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-lifecycle.md` 核对输入释放、时间跳变、重复循环/音轨和失败重试;仅对可观察路径作结论 |
|
|
127
|
+
| WebGL 运行中断 | 适用项目核对引擎恢复或可读提示与可控重试,以及业务状态;未实际触发不写已通过 |
|
|
128
|
+
| 性能故障或目标 | 按 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-performance.md` 比较同场景指标及持续运行,不以平均 FPS 或代码改动推断已改善 |
|
|
129
|
+
| 软键盘与表单 | JS2D 根规则禁止自由文本输入,不为验收新增输入框、自定义命名或自由打字;无合规场景标不适用 |
|
|
130
|
+
|
|
131
|
+
证据写入已有问题记录或交付说明:注明游戏版本、实际机型/系统、浏览器或 App/宿主及可取得的内核版本、屏幕/容器尺寸和相关显示状态、覆盖页面与操作、观察结果及证据、未验证或受阻范围;未知项标未知。按实际渠道选择手机浏览器、App WebView 与 PC 回归。
|
|
132
|
+
|
|
133
|
+
与故障相关时补冷/热启动、网络/缓存、场景、逻辑/CSS/backing 尺寸、DPR、画质、重复次数与运行时长;持续和重复验证按问题安排,不统一要求固定次数或时长。最低支持版本、低端机范围及热区/性能阈值须有已确认目标。规则更新完成、游戏本地验证和目标宿主真机通过分别陈述,已有人工 QA 证据仅用于其实际版本与范围。
|
|
134
|
+
|
|
135
|
+
### 浮动摇杆回归
|
|
136
|
+
|
|
137
|
+
- 在触发区中心、边缘分别按下,底盘中心与落点重合,按下瞬间轴为零;顶部 35% 与右半屏按下不激活摇杆。
|
|
138
|
+
- 第一指拖动时第二指在区内按下、移动、抬起,原点和底盘均不跳动;右侧按钮仍可独立操作。
|
|
139
|
+
- 拖出区域后松手、pointercancel、lostpointercapture、失焦均归零;再次按下使用新的落点。
|
|
140
|
+
- 在带偏移、缩放的 UI 容器中检查落点对齐;底盘超出区域的装饰不可扩大触发范围。
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 移动 Web 音频启动与恢复
|
|
2
|
+
|
|
3
|
+
首次接入移动端有声音频,或排查首次播放、静音和恢复故障时读取。先核对实际 Phaser 音频管理与解锁行为,已有能力直接复用,不另建 AudioManager 或重复的全局监听。
|
|
4
|
+
|
|
5
|
+
- 素材加载完成不代表浏览器当前允许有声播放。加载、首帧和 `markReady` 仍按 `${CRAFT_CONTEXT_DIR}/knowledge/Lifecycle.md`;音频解锁与播放失败不能阻塞 ready 或核心玩法,也不用于伪造加载进度。
|
|
6
|
+
- 需要真实用户交互时复用已有开始或声音操作入口;不强制所有游戏增加开始按钮或声音弹窗。按实际音频实现处理播放拒绝、解锁和恢复失败,保留继续游玩及适用的重试路径。
|
|
7
|
+
- 尊重玩家静音选择,恢复时不擅自打开声音,不重复创建音轨或叠播 BGM。
|
|
8
|
+
- 暂停、重开、切场景与页面恢复沿当前生命周期处理;与计时、清理有关的规则见 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-lifecycle.md`。音频解锁不表示运动、摄像头或麦克风已获授权。
|
|
9
|
+
- 宿主只隐藏 iframe 而没有对应通知时,不假定游戏收到暂停事件;按实际可观察路径处理并记录未覆盖范围。不编造平台音频 API,不回引旧版 runtime 音频工具。
|
|
10
|
+
|
|
11
|
+
验收按 [verification.md](verification.md) 的相关场景执行;无音频工作不要求读取本页。
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mobile-compat-qa
|
|
3
|
+
description: >
|
|
4
|
+
根据 JS/JS3D 游戏的移动端 QA 报告或具体机型故障定位并修复遮挡、超框、触控失效、音频、暂停恢复、卡顿和启动黑白屏及回归问题。
|
|
5
|
+
复用现有屏幕与输入适配机制;普通新游戏制作不因此启动完整兼容性审计。
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 移动端兼容性 QA 修复
|
|
9
|
+
|
|
10
|
+
目标是把当前 QA 问题改到可验证状态。保留现有工程架构与平台契约,不把兼容性修复变成 SDK 升级、显示模型迁移或重写游戏。
|
|
11
|
+
|
|
12
|
+
先按 `${CRAFT_CONTEXT_DIR}/knowledge/MobileAdapted.md` 读取适配状态。具体移动端问题可触发定向修复;局部 QA 通过不能把尚未完成整体适配的项目标为 `mobile_adapted: true`。修复后的状态更新遵守该文档。
|
|
13
|
+
|
|
14
|
+
## 先建立当前问题范围
|
|
15
|
+
|
|
16
|
+
- 优先读取报告文字、状态、版本和截图位置索引;大型表格不批量解码图片。只为尚不明确的遮挡、裁切、偏移等问题查看关联图片;视觉判读遵守当前引擎的工具流程。
|
|
17
|
+
- 每条待修项保留来源定位(sheet/行或原问题 ID)、游戏/构建版本、机型与系统、宿主及内核版本(有则记录)、复现步骤、预期/实际行为。未知项标为未知;仍可先做不依赖它的代码定位。
|
|
18
|
+
- 分开读取原始测试、修复状态、回归结果和新增问题。“已修复”不等于回归通过;优先处理回归残留/新增问题,不把历史已通过项重新列为待修。
|
|
19
|
+
- “新增问题”仅表示报告在回归中记录的问题,未经前后版本对照不认定由本次修改引入。不同版本的结果不能混为当前状态。
|
|
20
|
+
- 游戏×机型记录数、描述条数和去重后的缺陷数分别统计。保留拆分与合并依据;同机型多个问题不计成多台机型。
|
|
21
|
+
- 先处理不能进入、不能操作和流程阻断,再处理遮挡/超框与视觉细节;用户指定顺序优先。
|
|
22
|
+
|
|
23
|
+
## 按归属复用已有机制
|
|
24
|
+
|
|
25
|
+
| 症状 | 先看什么 | 修改归属 |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| 刘海/状态栏/宿主按钮遮挡、转屏错位、弹窗超框 | 容器实际区域、stage 缩放、当前布局与命中边界 | 加载 `resolution-adaptation`,读 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/device-safe-area.md`;复用 display/UI owner |
|
|
28
|
+
| 摇杆/按钮无响应、松手残留、触点冲突 | 已有 input 映射、触点仲裁、面板显隐与生命周期 | 加载 `mobile-adaptation`;不另建全屏监听或第二套输入 |
|
|
29
|
+
| 加载/首次进入黑白屏、特定设备失败 | 首个错误、失败资源、启动阶段、内核和渲染能力 | 读 `${CRAFT_SKILL_DIR}/references/startup-diagnosis.md`,按证据选择修复 |
|
|
30
|
+
| 引导层级/缺步骤、设置重叠、关键玩法区域不可见 | 具体 Scene/Widget、状态机、布局锚点与实际命中 | 读 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/game-ui-occlusion.md`;修游戏本身,不期待通用适配自动修好 |
|
|
31
|
+
| 首次无声、播放拒绝、静音失效或恢复叠播 | 实际音频实现、解锁与当前播放状态 | 读 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/web-audio.md`,复用 Phaser 能力,不以音频阻塞 ready |
|
|
32
|
+
| 后台/锁屏恢复异常、重入残留或运行中断 | 可观察生命周期、时间基准、owner 与清理 | 读 `${CRAFT_SKILL_DIR}/references/web-lifecycle.md`,不假定宿主有活跃通知 |
|
|
33
|
+
| 卡顿、发热、资源压力或明确性能目标 | 目标设备同场景数据、资源与绘制成本 | 按需读 `${CRAFT_SKILL_DIR}/references/web-performance.md`,不自动降低画质或修改公共 renderer |
|
|
34
|
+
| 软键盘与表单诉求 | JS2D 根规则禁止自由文本输入 | 无合规场景标不适用;不为适配新增输入框、自定义命名或自由打字 |
|
|
35
|
+
| 创建房间、身份或联机失败 | 实际服务响应、环境和已有接线 | 按当前工程的平台服务规则定位;无服务端访问时记录阻塞证据,不伪造联机成功 |
|
|
36
|
+
|
|
37
|
+
先读实际入口、依赖与相关代码,确认是否已有 `src/display/`、UI stage 和输入层。旧项目保持已有结构;修局部问题不自动安装新模板、修改 runtime 清单或绕过构建校验。没有原说明引用的脚本时,不声称已经执行扫描或复制不存在的资产。
|
|
38
|
+
|
|
39
|
+
## 修改与验证
|
|
40
|
+
|
|
41
|
+
1. 把故障变成可观察判据,例如“关闭按钮完整可见且点击后回到游戏”,而非“适配正常”。能复现则保留修改前证据;不能复现时区分 QA 已观察事实与代码推断。
|
|
42
|
+
2. 按根因做最小修复。共性问题集中在已有布局/输入入口处理,业务问题留在业务 owner;不要用隐藏溢出、统一缩小字号或整屏内缩掩盖问题。
|
|
43
|
+
3. 复用项目已有构建和验证命令,遵守当前引擎的交付要求。布局变化使用已有比例审计,触屏变化使用已有输入验收;这些结果不替代宿主/真机回归。
|
|
44
|
+
4. 定向复验原步骤、受影响的相邻页面,以及转屏/折叠或暂停恢复等有关状态变化。核对视觉、点击命中和核心玩法;不重复跑与本次变更无关的全量矩阵。
|
|
45
|
+
5. 发布视图清除非需求的 debug/GM/热区高亮/日志覆盖层和无关控件;保留诊断能力。避免全局删除 focus 样式,键盘焦点反馈应仍可用。
|
|
46
|
+
|
|
47
|
+
## 交付给 QA
|
|
48
|
+
|
|
49
|
+
在现有问题记录或回复中逐项给出:来源 ID、修复位置/原因、被验证的游戏版本、实际机型/系统及浏览器或 App/宿主与版本、可取得的内核版本、屏幕/容器尺寸及相关显示状态、覆盖页面与操作、观察结果及证据、未验证或受阻范围。未知项标未知;已有记录可复用,不强制另建报告。
|
|
50
|
+
|
|
51
|
+
按实际渠道及本次改动,从 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 选择宿主、内部 UI、音频、生命周期和性能等相关补验;不把桌面模拟扩大为真机结果,不为条件项新增功能。与问题相关时补网络/缓存、冷/热启动、采样时长与重复次数;最低支持版本和热区/性能阈值依据已确认目标,不设统一次数或时长门槛。
|
|
52
|
+
|
|
53
|
+
状态分开写“修改完成”“本地验证通过”“QA 回归通过”;最后一项只依据对应版本的 QA 反馈。人类监督提供的验收口径和真机结果是有效证据,不以缺少自动化结果否定它,也不将其扩大为全部设备/所有问题通过。未验证、工具受阻、平台待处理均保留,不写成通过。
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# 启动与运行失败定位
|
|
2
|
+
|
|
3
|
+
只在启动/黑白屏/卡加载或特定设备运行失败时读本页。先定位项目实际版本,不套用历史引擎版本或浏览器阈值。
|
|
4
|
+
|
|
5
|
+
## 保留现有生命周期
|
|
6
|
+
|
|
7
|
+
- 沿现有入口、预览桥和错误上报接线补充诊断,不创建第二个 renderer、游戏循环或预览桥,不改平台 ready 的约定。
|
|
8
|
+
- **平台 ready 与业务可交互是不同信号**:例如 JS 模板加载层第一帧已调用平台 `markReady`。保留它;需要诊断时另外记录资源加载完成、玩法初始化、首个可交互画面等阶段,不把平台 ready 推迟到业务完成或云服务返回。
|
|
9
|
+
- 优先复用已有错误/资源日志。只有现有入口无法捕获的失败才加轻量、按需开启的业务诊断;记录阶段、耗时、首个错误和相关失败 URL,玩家界面显示简短失败/重试提示。
|
|
10
|
+
- 若主模块解析前就失败,诊断代码也不能依赖该模块已执行;按目标内核选能独立运行的最小入口。超时提示只是线索,不证明根因;记录阶段,避免固定短超时误判慢网。
|
|
11
|
+
|
|
12
|
+
## 按证据区分故障
|
|
13
|
+
|
|
14
|
+
| 证据 | 检查与处理 |
|
|
15
|
+
|---|---|
|
|
16
|
+
| 首个脚本解析错误、某语法不支持 | 确认实际 QQ/WebView/浏览器内核和报错文件;区分业务 bundle、public 原样脚本、外部引擎。构建 target 只约束参与转译的代码,语法转译不补齐缺失 Web API |
|
|
17
|
+
| 资源 404/CORS/解码失败、一直等待加载 | 核对真实请求、部署路径大小写、配置导出、资源错误分支和重试;不绕过平台 URL/资产登记机制 |
|
|
18
|
+
| renderer 创建失败、WebGL 能力不满足 | 查询实际引擎要求和设备能力;降低构建 target 不能给设备增加 WebGL2。平台引擎不可改时提供可读失败信息和待平台处理证据 |
|
|
19
|
+
| 纹理失败、上下文丢失、内存压力 | 根据设备上限、资源尺寸及日志选择压缩/缩图、降低像素比或资源释放;不把固定 4096 阈值当作所有设备的根因 |
|
|
20
|
+
| 已显示首屏,点开始/切场景/结算才黑屏 | 从该动作的异常、状态转换、场景销毁/资源与相机检查;不优先修改全局构建目标 |
|
|
21
|
+
| 页面可交互但联机失败 | 检查平台服务响应和接线,与渲染/布局故障分开记录 |
|
|
22
|
+
|
|
23
|
+
修复后针对报错路径复验构建产物;源码没有高版本语法不代表外部脚本也兼容。无法得到内核或真机证据时给出已查证部分及下一步所需信息,不宣称黑屏已根治。
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# 移动 Web 生命周期与运行中断
|
|
2
|
+
|
|
3
|
+
实现或排查暂停、后台恢复、重入、资源失败及适用的 WebGL 中断时读取。Phaser Scene、输入和资源由当前 owner 管理,优先复用引擎与现有 dispose;不新增统一恢复 SDK 或第二套全局状态机。
|
|
4
|
+
|
|
5
|
+
## 暂停、恢复与时间
|
|
6
|
+
|
|
7
|
+
- 页面隐藏、业务暂停和宿主覆盖分别核对。对已有可观察路径,沿当前 owner 释放输入、调整计时和音频;恢复时沿引擎机制重建时间基准,避免一次补算整个后台间隔或堆积更新。
|
|
8
|
+
- 沿游戏已有时间步推进移动和动画;联机、离线收益等有意推进时间的玩法遵循原约定,不一律停止或清零全部状态,不照搬外部平台的固定 delta 上限。
|
|
9
|
+
- `blur` 不等于页面隐藏;宿主仅用 CSS 隐藏 iframe 不保证触发其 `visibilitychange`。没有活跃通知时记录宿主缺口,不编造回调或宣称跨层自动暂停已经实现。
|
|
10
|
+
- 音频启动、静音与恢复职责见 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/web-audio.md`,不在此另接音频系统。
|
|
11
|
+
|
|
12
|
+
## 重入、清理与中断
|
|
13
|
+
|
|
14
|
+
- 重开、切场景、重入和销毁时核对 RAF、定时器、监听、音轨与资源引用,避免多个循环、BGM 叠播或持续增长。使用已有输入显隐/取消及 dispose,清理属于当前 owner 的资源,不误停其它业务。
|
|
15
|
+
- 慢加载、失败、重试或替代路径复用 [startup-diagnosis.md](startup-diagnosis.md) 的阶段定位和错误记录;不每帧重试,不用短固定超时武断判失败。
|
|
16
|
+
- WebGL 项目核对运行中 context 丢失后的引擎恢复、资源与业务状态;无法安全恢复时提供可读提示和可控重试,不只隐藏错误或无限重建 renderer。Canvas 项目不为此改成 WebGL。
|
|
17
|
+
- 仅对已使用且平台允许的设备能力,核对拒绝、不支持、暂时中断及替代操作。授权成功不等于硬件一定可用,授权不阻塞首帧;普通游戏不因此新增摄像头、麦克风、倾斜或震动。
|
|
18
|
+
- 保留 `${CRAFT_CONTEXT_DIR}/knowledge/Lifecycle.md` 的加载、预览、截图及 `markReady` 时序,不把 ready 延后到全部业务或异步服务完成。
|
|
19
|
+
|
|
20
|
+
验收统一在 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/verification.md` 选择相关场景;缺少宿主通知或测试环境时保留未验证范围。
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 移动 Web 性能诊断
|
|
2
|
+
|
|
3
|
+
仅在具体卡顿、发热、资源压力或明确性能目标下读取。复用项目已有 profile/日志入口,不把普通制作变成完整审计,不建设公共采集服务或动态画质系统。
|
|
4
|
+
|
|
5
|
+
## 先固定比较条件
|
|
6
|
+
|
|
7
|
+
- 记录游戏版本、真实机型/系统/浏览器或宿主、场景与操作、网络/缓存、重复次数和采样时长。前后版本使用可比较的场景与方法;取不到的版本或指标标未知。
|
|
8
|
+
- 分开记录逻辑尺寸、最终 CSS 区域、实际 drawing buffer、DPR 和画质。短边 1080 是逻辑布局约定,不能直接推导 GPU 像素预算或运行成本。
|
|
9
|
+
- 条件具备时记录帧间隔中位数、P95、长帧判定阈值和采样范围,不只给平均 FPS;区分 RAF/引擎回调、渲染提交与屏幕实际呈现。缺数据不编造 GPU 时间、内存或能耗。
|
|
10
|
+
- 平台 ready、资源完成和首个有效输入的可交互时间分别记录,不为测量改变 ready 契约。包体/上传限制不能代替运行内存或显存结论。
|
|
11
|
+
|
|
12
|
+
## 按证据选择游戏级改动
|
|
13
|
+
|
|
14
|
+
- 检查重复下载、解码、创建及多重循环/监听,纹理、同屏对象与粒子数量,资源释放和持续运行中的增长。
|
|
15
|
+
- 移动和动画沿既有时间步;DOM 高频动效避免反复布局。加载按引擎和场景安排,不照搬“一次载完全部素材”,不打乱已有加载与首帧时序。
|
|
16
|
+
- 先说明瓶颈假设,再选有数据支持的候选;修改后同时回归玩法、画质、输入、截图与资源生命周期。无测量只陈述候选,不宣称性能已改善。
|
|
17
|
+
- 沿用项目已有 DPR 上限和资源分级;60/30 FPS、纹理上限、像素预算及持续时长须有明确目标,不设新的全平台硬值,不把外部平台的 delta 上限当帧率或执行耗时预算。
|
|
18
|
+
|
|
19
|
+
实际环境与结果写入现有 QA 记录。持续/重复验证按故障安排,不把“恢复 10 次、运行 10 分钟”设为所有任务的门槛,不通过关闭截图能力规避问题。
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: optimization-suggestions
|
|
3
|
-
description: 结合当前 JS2D 游戏工程,生成 3 条可执行的优化/迭代建议,输出为 <inspiration> 卡片。仅当用户本轮明确索要灵感/优化建议,或上下文含二创冷启动标记时,由主 Agent 起 subagent 执行。首轮制作完成不得自动调用。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Optimization Suggestions
|
|
7
|
-
|
|
8
|
-
产出 **3 条**可执行建议,以 `<inspiration>` 标签输出。主 Agent 起 subagent 执行,避免污染主上下文。
|
|
9
|
-
|
|
10
|
-
## 调用边界
|
|
11
|
-
|
|
12
|
-
仅当主 Agent 判定本轮命中以下之一时调起:
|
|
13
|
-
|
|
14
|
-
1. 用户本轮明确索要灵感 / 优化建议 / 迭代建议(点击提示条或自己打字)。交付收尾、讲解「游戏有什么」、制作完成、构建通过,都不算。
|
|
15
|
-
2. 本轮上下文含 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]`(二创冷启动)。
|
|
16
|
-
|
|
17
|
-
首轮制作 / `[team-promote]` / 确认开工后自动出卡禁止。
|
|
18
|
-
|
|
19
|
-
## 执行(subagent)
|
|
20
|
-
|
|
21
|
-
### 0. 产品共识
|
|
22
|
-
|
|
23
|
-
- **场景 B**:本轮有 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]` → 标记块即共识,不读文件。
|
|
24
|
-
- **场景 A**:读 `${
|
|
25
|
-
|
|
26
|
-
### 1. 读上下文
|
|
27
|
-
|
|
28
|
-
必读:场景 A 读 `游戏设计.md`;场景 B 读本轮标记块(不是文件)。
|
|
29
|
-
|
|
30
|
-
禁读:`src/**`、`configs/**`、除 `游戏设计.md` 外的 SPEC。
|
|
31
|
-
|
|
32
|
-
### 2. 生成
|
|
33
|
-
|
|
34
|
-
按当前场景 3 个维度各生成 1–2 条候选,按性价比 → 缺口 → 意图匹配 → 多样性取 Top 3。命中「引擎能力边界」或「已有内容」的剔除递补。
|
|
35
|
-
|
|
36
|
-
场景 A 先从「首轮欠账」取,取不满再自由发挥。
|
|
37
|
-
|
|
38
|
-
## 建议维度
|
|
39
|
-
|
|
40
|
-
| 场景 | 维度 | 产出方向 |
|
|
41
|
-
|------|------|---------|
|
|
42
|
-
| A 新建 | 功能与体验(feel) | 手感 / 反馈 / 特效 / 引导 / 打击感 |
|
|
43
|
-
| A 新建 | 数值平衡(balance) | 难度曲线 / 经济 / 成长节奏 |
|
|
44
|
-
| A 新建 | 玩法扩展(content) | 成就 / 本局最佳记录 / 关卡变种 / 局外养成 |
|
|
45
|
-
| B 二创 | 玩法变体(gameplay) | 核心机制变形、混搭其他类型 |
|
|
46
|
-
| B 二创 | 内容扩展(content) | 加关卡 / 角色 / 剧情 / 模式 |
|
|
47
|
-
| B 二创 | 机制创新(system) | 在原框架加入新机制、新规则 |
|
|
48
|
-
|
|
49
|
-
## 首轮欠账(场景 A)
|
|
50
|
-
|
|
51
|
-
| 欠账 | 可推的具体形态 | 维度 |
|
|
52
|
-
|---|---|---|
|
|
53
|
-
| 反馈从简 | 击杀时短震屏;命中迸火星;重击 0.1 秒顿帧 | `feel` |
|
|
54
|
-
| 关卡目标 | 分阶段目标;进度条 | `content` |
|
|
55
|
-
| 变体最少 | 加一种行为不同的敌人;给道具加临时增益 | `content` |
|
|
56
|
-
| 无教学 | 开局三步操作提示 | `feel` |
|
|
57
|
-
| 无局外 | 通关解锁新外观;累计成就 | `content` |
|
|
58
|
-
| 单轴难度 | 在已有递进之外再加一轴(如已有波次,再加敌人变快) | `balance` |
|
|
59
|
-
|
|
60
|
-
## 已有内容(禁止推荐)
|
|
61
|
-
|
|
62
|
-
加载界面(含百分比)与主题 BGM 首轮已有。单一难度递进轴若 `游戏设计.md` 已写,不要再推「随时间加快」这类同轴建议。拿不准以 `游戏设计.md` 为准。
|
|
63
|
-
|
|
64
|
-
## 生成约束
|
|
65
|
-
|
|
66
|
-
1. 固定 3 条。`text` ≤ 15 字;`prompt` ≤ 50 字。
|
|
67
|
-
2. 面向用户,禁止暴露代码 / 文件名 / 技术细节。对外称 js2d 引擎。
|
|
68
|
-
3. 每条 `dimension` 为 `feel` / `balance` / `content` / `gameplay` / `system` 之一。
|
|
69
|
-
|
|
70
|
-
## 引擎能力边界(禁止推荐)
|
|
71
|
-
|
|
72
|
-
- 网络多人 / 联机 / PVP
|
|
73
|
-
- 好友系统
|
|
74
|
-
- 玩家自定义文本输入(输入框 / 自由打字 / 自定义命名)
|
|
75
|
-
- 新增 npm 包 / 外部 JS 库
|
|
76
|
-
- 后端服务 / 外部 API Key / 真实账号体系
|
|
77
|
-
- 用户额外安装软件
|
|
78
|
-
|
|
79
|
-
## 输出
|
|
80
|
-
|
|
81
|
-
整个回复只输出该标签,标签外不加解释:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
<inspiration>{"title":"下一步你可以试试","suggestions":[{"id":"s1","text":"击杀时震屏迸火星","prompt":"击杀敌人时加入短暂震屏和火星迸射,强化打击感","dimension":"feel"},{"id":"s2","text":"加一种远程敌人","prompt":"加入一种会隔空射击的敌人,逼玩家走位躲避","dimension":"content"},{"id":"s3","text":"后期敌人也变快","prompt":"在现有波次递进之外,让敌人移动速度也随进度提高","dimension":"balance"}]}</inspiration>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## 失败降级
|
|
88
|
-
|
|
89
|
-
`游戏设计.md` 缺失且非场景 B:不输出标签。完全无法生成有效建议:不输出标签。
|
|
1
|
+
---
|
|
2
|
+
name: optimization-suggestions
|
|
3
|
+
description: 结合当前 JS2D 游戏工程,生成 3 条可执行的优化/迭代建议,输出为 <inspiration> 卡片。仅当用户本轮明确索要灵感/优化建议,或上下文含二创冷启动标记时,由主 Agent 起 subagent 执行。首轮制作完成不得自动调用。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Optimization Suggestions
|
|
7
|
+
|
|
8
|
+
产出 **3 条**可执行建议,以 `<inspiration>` 标签输出。主 Agent 起 subagent 执行,避免污染主上下文。
|
|
9
|
+
|
|
10
|
+
## 调用边界
|
|
11
|
+
|
|
12
|
+
仅当主 Agent 判定本轮命中以下之一时调起:
|
|
13
|
+
|
|
14
|
+
1. 用户本轮明确索要灵感 / 优化建议 / 迭代建议(点击提示条或自己打字)。交付收尾、讲解「游戏有什么」、制作完成、构建通过,都不算。
|
|
15
|
+
2. 本轮上下文含 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]`(二创冷启动)。
|
|
16
|
+
|
|
17
|
+
首轮制作 / `[team-promote]` / 确认开工后自动出卡禁止。
|
|
18
|
+
|
|
19
|
+
## 执行(subagent)
|
|
20
|
+
|
|
21
|
+
### 0. 产品共识
|
|
22
|
+
|
|
23
|
+
- **场景 B**:本轮有 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]` → 标记块即共识,不读文件。
|
|
24
|
+
- **场景 A**:读 `${CRAFT_PROJECT_DIR}/SPEC/plan/游戏设计.md`。缺失 → 不输出 `<inspiration>`,结束。
|
|
25
|
+
|
|
26
|
+
### 1. 读上下文
|
|
27
|
+
|
|
28
|
+
必读:场景 A 读 `游戏设计.md`;场景 B 读本轮标记块(不是文件)。
|
|
29
|
+
|
|
30
|
+
禁读:`src/**`、`configs/**`、除 `游戏设计.md` 外的 SPEC。
|
|
31
|
+
|
|
32
|
+
### 2. 生成
|
|
33
|
+
|
|
34
|
+
按当前场景 3 个维度各生成 1–2 条候选,按性价比 → 缺口 → 意图匹配 → 多样性取 Top 3。命中「引擎能力边界」或「已有内容」的剔除递补。
|
|
35
|
+
|
|
36
|
+
场景 A 先从「首轮欠账」取,取不满再自由发挥。
|
|
37
|
+
|
|
38
|
+
## 建议维度
|
|
39
|
+
|
|
40
|
+
| 场景 | 维度 | 产出方向 |
|
|
41
|
+
|------|------|---------|
|
|
42
|
+
| A 新建 | 功能与体验(feel) | 手感 / 反馈 / 特效 / 引导 / 打击感 |
|
|
43
|
+
| A 新建 | 数值平衡(balance) | 难度曲线 / 经济 / 成长节奏 |
|
|
44
|
+
| A 新建 | 玩法扩展(content) | 成就 / 本局最佳记录 / 关卡变种 / 局外养成 |
|
|
45
|
+
| B 二创 | 玩法变体(gameplay) | 核心机制变形、混搭其他类型 |
|
|
46
|
+
| B 二创 | 内容扩展(content) | 加关卡 / 角色 / 剧情 / 模式 |
|
|
47
|
+
| B 二创 | 机制创新(system) | 在原框架加入新机制、新规则 |
|
|
48
|
+
|
|
49
|
+
## 首轮欠账(场景 A)
|
|
50
|
+
|
|
51
|
+
| 欠账 | 可推的具体形态 | 维度 |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| 反馈从简 | 击杀时短震屏;命中迸火星;重击 0.1 秒顿帧 | `feel` |
|
|
54
|
+
| 关卡目标 | 分阶段目标;进度条 | `content` |
|
|
55
|
+
| 变体最少 | 加一种行为不同的敌人;给道具加临时增益 | `content` |
|
|
56
|
+
| 无教学 | 开局三步操作提示 | `feel` |
|
|
57
|
+
| 无局外 | 通关解锁新外观;累计成就 | `content` |
|
|
58
|
+
| 单轴难度 | 在已有递进之外再加一轴(如已有波次,再加敌人变快) | `balance` |
|
|
59
|
+
|
|
60
|
+
## 已有内容(禁止推荐)
|
|
61
|
+
|
|
62
|
+
加载界面(含百分比)与主题 BGM 首轮已有。单一难度递进轴若 `游戏设计.md` 已写,不要再推「随时间加快」这类同轴建议。拿不准以 `游戏设计.md` 为准。
|
|
63
|
+
|
|
64
|
+
## 生成约束
|
|
65
|
+
|
|
66
|
+
1. 固定 3 条。`text` ≤ 15 字;`prompt` ≤ 50 字。
|
|
67
|
+
2. 面向用户,禁止暴露代码 / 文件名 / 技术细节。对外称 js2d 引擎。
|
|
68
|
+
3. 每条 `dimension` 为 `feel` / `balance` / `content` / `gameplay` / `system` 之一。
|
|
69
|
+
|
|
70
|
+
## 引擎能力边界(禁止推荐)
|
|
71
|
+
|
|
72
|
+
- 网络多人 / 联机 / PVP
|
|
73
|
+
- 好友系统
|
|
74
|
+
- 玩家自定义文本输入(输入框 / 自由打字 / 自定义命名)
|
|
75
|
+
- 新增 npm 包 / 外部 JS 库
|
|
76
|
+
- 后端服务 / 外部 API Key / 真实账号体系
|
|
77
|
+
- 用户额外安装软件
|
|
78
|
+
|
|
79
|
+
## 输出
|
|
80
|
+
|
|
81
|
+
整个回复只输出该标签,标签外不加解释:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
<inspiration>{"title":"下一步你可以试试","suggestions":[{"id":"s1","text":"击杀时震屏迸火星","prompt":"击杀敌人时加入短暂震屏和火星迸射,强化打击感","dimension":"feel"},{"id":"s2","text":"加一种远程敌人","prompt":"加入一种会隔空射击的敌人,逼玩家走位躲避","dimension":"content"},{"id":"s3","text":"后期敌人也变快","prompt":"在现有波次递进之外,让敌人移动速度也随进度提高","dimension":"balance"}]}</inspiration>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## 失败降级
|
|
88
|
+
|
|
89
|
+
`游戏设计.md` 缺失且非场景 B:不输出标签。完全无法生成有效建议:不输出标签。
|