@craft_eco/craft-mcp 0.1.14 → 0.1.21
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 +9 -47
- package/dist-server/game-workflow/draft-bindings.mjs +35 -35
- package/dist-server/game-workflow/draft-uploads.mjs +7 -7
- 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 +67 -67
- package/dist-server/game-workflow/publications.mjs +148 -146
- 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 +47 -28
- package/dist-server/mcp/publication-page.html +85 -0
- package/dist-server/mcp/publication-page.mjs +346 -0
- package/dist-server/mcp/publication-preview.mjs +63 -0
- package/dist-server/mcp/publication-tools.mjs +22 -19
- package/dist-server/mcp/publish-panel.mjs +191 -0
- package/dist-server/mcp/server.mjs +29 -14
- package/dist-server/upstream/craft-aigc.mjs +28 -43
- package/dist-server/upstream/library-url.mjs +3 -5
- package/dist-server/upstream/publication-transport.mjs +81 -80
- package/dist-server/upstream/resource-path.mjs +17 -0
- package/package.json +2 -2
- package/resources/craft-game-maker/SKILL.md +18 -14
- 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/external-game-archive.d.ts +19 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.js +107 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.d.ts +44 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.js +106 -0
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.js.map +1 -0
- 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 +59 -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 +137 -57
- package/vendor/agent-cli/dist/src/artifacts/restore.js.map +1 -1
- 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.js +2 -2
- package/vendor/agent-cli/dist/src/context/template-cache.js.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/context/template-seed.js +50 -16
- package/vendor/agent-cli/dist/src/context/template-seed.js.map +1 -1
- 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 +6 -1
- package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/index.js +6 -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 +26 -4
- 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-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 +6 -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 +55 -60
- 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-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.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-setup.js +33 -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 +32 -23
- package/vendor/agent-cli/dist/src/session/tool-scheduler.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/types.d.ts +50 -3
- package/vendor/agent-cli/dist/src/shared/types.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,80 +1,81 @@
|
|
|
1
|
-
const idPattern = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
2
|
-
const hashPattern = /^[0-9a-f]{64}$/;
|
|
3
|
-
|
|
4
|
-
function identifier(value) {
|
|
5
|
-
if (typeof value !== 'string' || !idPattern.test(value)) throw new Error('Invalid publication identifier');
|
|
6
|
-
return value;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function imageURL(value, token, base) {
|
|
10
|
-
if (typeof value !== 'string' || value.includes(token)) throw new Error('Invalid publication image URL');
|
|
11
|
-
const url = new URL(value);
|
|
12
|
-
if (url.username || url.password || url.hash || url.search ||
|
|
13
|
-
(url.protocol !== 'https:' && !(url.protocol === 'http:' && new URL(base).hostname === '127.0.0.1' && url.hostname === '127.0.0.1'))) {
|
|
14
|
-
throw new Error('Invalid publication image URL');
|
|
15
|
-
}
|
|
16
|
-
return url.href;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function publicationSession({ base, token, current, http }) {
|
|
20
|
-
if (new URL(base).pathname !== '/') throw new Error('Publication requires a Craft platform origin');
|
|
21
|
-
return async (kind, options = {}, signal) => {
|
|
22
|
-
if (!current()) throw new Error('Craft account changed');
|
|
23
|
-
let endpoint, method = 'GET', body, form;
|
|
24
|
-
if (kind === 'options') endpoint = '/api/ms/gamemeta/game-style';
|
|
25
|
-
else if (kind === 'image') {
|
|
26
|
-
const { image, conversation_id, version_id, external_manifest_sha256, purpose } = options;
|
|
27
|
-
if (!['cover','screenshot','audit-shot'].includes(purpose) || !hashPattern.test(external_manifest_sha256) ||
|
|
28
|
-
!Buffer.isBuffer(image?.data) || !image.data.length || image.data.length > 2 * 1024 * 1024 ||
|
|
29
|
-
!['png','jpg'].includes(image.extension)) throw new Error('Invalid publication image');
|
|
30
|
-
endpoint = '/api/ms/versions/share-cover'; method = 'POST';
|
|
31
|
-
form = new FormData();
|
|
32
|
-
for (const [key,value] of Object.entries({ conversation_id:identifier(conversation_id), version_id:identifier(version_id), external_manifest_sha256, purpose })) form.set(key,value);
|
|
33
|
-
form.set('cover',new Blob([image.data],{ type:image.extension === 'png' ? 'image/png' : 'image/jpeg' }),`material.${image.extension}`);
|
|
34
|
-
} else if (kind === 'submit') {
|
|
35
|
-
endpoint = '/api/ms/versions/share'; method = 'POST'; body = options.input;
|
|
36
|
-
identifier(body?.client_request_id); identifier(body?.conversation_id); identifier(body?.version_id);
|
|
37
|
-
if (!hashPattern.test(body.external_manifest_sha256)) throw new Error('Invalid publication manifest');
|
|
38
|
-
} else if (kind === 'status') endpoint = `/api/ms/versions/${identifier(options.version_id)}/detail`;
|
|
39
|
-
else throw new Error('Unknown publication operation');
|
|
40
|
-
const data = await http(endpoint,method,body,signal,{ form,draft:true,businessErrors:true });
|
|
41
|
-
if (!current()) throw new Error('Craft account changed during publication');
|
|
42
|
-
if (kind === 'options') {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if (publication
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
1
|
+
const idPattern = /^[a-zA-Z0-9_-]{1,128}$/;
|
|
2
|
+
const hashPattern = /^[0-9a-f]{64}$/;
|
|
3
|
+
|
|
4
|
+
function identifier(value) {
|
|
5
|
+
if (typeof value !== 'string' || !idPattern.test(value)) throw new Error('Invalid publication identifier');
|
|
6
|
+
return value;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function imageURL(value, token, base) {
|
|
10
|
+
if (typeof value !== 'string' || value.includes(token)) throw new Error('Invalid publication image URL');
|
|
11
|
+
const url = new URL(value);
|
|
12
|
+
if (url.username || url.password || url.hash || url.search ||
|
|
13
|
+
(url.protocol !== 'https:' && !(url.protocol === 'http:' && new URL(base).hostname === '127.0.0.1' && url.hostname === '127.0.0.1'))) {
|
|
14
|
+
throw new Error('Invalid publication image URL');
|
|
15
|
+
}
|
|
16
|
+
return url.href;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function publicationSession({ base, token, current, http }) {
|
|
20
|
+
if (new URL(base).pathname !== '/') throw new Error('Publication requires a Craft platform origin');
|
|
21
|
+
return async (kind, options = {}, signal) => {
|
|
22
|
+
if (!current()) throw new Error('Craft account changed');
|
|
23
|
+
let endpoint, method = 'GET', body, form;
|
|
24
|
+
if (kind === 'options') endpoint = '/api/ms/gamemeta/game-style';
|
|
25
|
+
else if (kind === 'image') {
|
|
26
|
+
const { image, conversation_id, version_id, external_manifest_sha256, purpose } = options;
|
|
27
|
+
if (!['cover','screenshot','audit-shot'].includes(purpose) || !hashPattern.test(external_manifest_sha256) ||
|
|
28
|
+
!Buffer.isBuffer(image?.data) || !image.data.length || image.data.length > 2 * 1024 * 1024 ||
|
|
29
|
+
!['png','jpg'].includes(image.extension)) throw new Error('Invalid publication image');
|
|
30
|
+
endpoint = '/api/ms/versions/share-cover'; method = 'POST';
|
|
31
|
+
form = new FormData();
|
|
32
|
+
for (const [key,value] of Object.entries({ conversation_id:identifier(conversation_id), version_id:identifier(version_id), external_manifest_sha256, purpose })) form.set(key,value);
|
|
33
|
+
form.set('cover',new Blob([image.data],{ type:image.extension === 'png' ? 'image/png' : 'image/jpeg' }),`material.${image.extension}`);
|
|
34
|
+
} else if (kind === 'submit') {
|
|
35
|
+
endpoint = '/api/ms/versions/share'; method = 'POST'; body = options.input;
|
|
36
|
+
identifier(body?.client_request_id); identifier(body?.conversation_id); identifier(body?.version_id);
|
|
37
|
+
if (!hashPattern.test(body.external_manifest_sha256)) throw new Error('Invalid publication manifest');
|
|
38
|
+
} else if (kind === 'status') endpoint = `/api/ms/versions/${identifier(options.version_id)}/detail`;
|
|
39
|
+
else throw new Error('Unknown publication operation');
|
|
40
|
+
const data = await http(endpoint,method,body,signal,{ form,draft:true,businessErrors:true,bare:kind === 'options' });
|
|
41
|
+
if (!current()) throw new Error('Craft account changed during publication');
|
|
42
|
+
if (kind === 'options') {
|
|
43
|
+
if (!data || typeof data !== 'object' || Array.isArray(data)) throw new Error('Invalid publication category response');
|
|
44
|
+
const result = {};
|
|
45
|
+
for (const key of ['game_types','art_styles','play_tags']) {
|
|
46
|
+
if (!data || !Object.hasOwn(data,key)) throw new Error('Invalid publication category response');
|
|
47
|
+
const values = data[key] ?? [];
|
|
48
|
+
if (!Array.isArray(values) || values.length > 200 || values.some(item=>typeof item !== 'string' || item.length > 100 || item.includes(token))) throw new Error('Invalid publication category response');
|
|
49
|
+
result[key] = values;
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
if (kind === 'image') {
|
|
54
|
+
if (!hashPattern.test(data?.sha256) || data.bytes !== options.image.data.length) throw new Error('Invalid publication material receipt');
|
|
55
|
+
return { cover_url:imageURL(data.cover_url,token,base),material_id:identifier(data.material_id),sha256:data.sha256,bytes:data.bytes };
|
|
56
|
+
}
|
|
57
|
+
if (kind === 'submit') return { accepted:true };
|
|
58
|
+
const publication = data?.external_publication;
|
|
59
|
+
if (!publication) return { state:'not_submitted', version_id:options.version_id };
|
|
60
|
+
if (publication.version_id !== options.version_id || !hashPattern.test(publication.external_manifest_sha256) ||
|
|
61
|
+
!hashPattern.test(publication.request_sha256) || typeof publication.status !== 'string' || !/^[a-z_]{1,48}$/.test(publication.status)) {
|
|
62
|
+
throw new Error('Invalid publication status response');
|
|
63
|
+
}
|
|
64
|
+
const result = { client_request_id:identifier(publication.client_request_id),request_sha256:publication.request_sha256,
|
|
65
|
+
external_manifest_sha256:publication.external_manifest_sha256,version_id:publication.version_id,
|
|
66
|
+
conversation_id:identifier(publication.conversation_id),state:publication.status,
|
|
67
|
+
status_reason:typeof publication.status_reason === 'string' ? publication.status_reason.split(token).join('[REDACTED]').slice(0,1000) : '' };
|
|
68
|
+
if (publication.finalization_retry_required !== undefined) {
|
|
69
|
+
if (typeof publication.finalization_retry_required !== 'boolean' ||
|
|
70
|
+
(publication.finalization_retry_required && result.state !== 'sharing')) throw new Error('Invalid publication finalization state');
|
|
71
|
+
result.finalization_retry_required = publication.finalization_retry_required;
|
|
72
|
+
}
|
|
73
|
+
if (publication.public_url !== undefined && publication.public_url !== '') {
|
|
74
|
+
const url = new URL(publication.public_url);
|
|
75
|
+
if (result.state !== 'share_completed' || publication.published_version_id !== options.version_id ||
|
|
76
|
+
url.origin !== new URL(base).origin || url.username || url.password || publication.public_url.includes(token)) throw new Error('Publication URL does not match the completed version');
|
|
77
|
+
result.public_url = url.href;
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Validate URL path delimiters without interpreting non-ASCII resource-name octets.
|
|
2
|
+
export function assertSafeResourcePath(value) {
|
|
3
|
+
const authority = /^[a-z][a-z\d+.-]*:\/\/[^/?#]*/i.exec(value);
|
|
4
|
+
const tail = authority ? value.slice(authority[0].length) : value;
|
|
5
|
+
let pathname = tail.split(/[?#]/,1)[0];
|
|
6
|
+
if (/%(?![0-9a-f]{2})/i.test(pathname)) throw new Error('Invalid resource path encoding');
|
|
7
|
+
while (true) {
|
|
8
|
+
if (/[\u0000-\u001f\u007f\\]/.test(pathname)) throw new Error('Resource path contains a control character or backslash');
|
|
9
|
+
if (pathname.split(/[/?#]/).some(part => part === '.' || part === '..')) throw new Error('Resource path contains traversal');
|
|
10
|
+
const next = pathname.replace(/%([0-9a-f]{2})/gi,(encoded,hex) => {
|
|
11
|
+
const byte = Number.parseInt(hex,16);
|
|
12
|
+
return byte < 0x80 ? String.fromCharCode(byte) : encoded;
|
|
13
|
+
});
|
|
14
|
+
if (next === pathname) return;
|
|
15
|
+
pathname = next;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craft_eco/craft-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.12.0"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@vscode/ripgrep": "^1.18.0",
|
|
16
16
|
"ws": "^8.21.3"
|
|
17
17
|
},
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "Craft 2D/Phaser and 3D/Three.js game-making MCP for AI IDEs supporting stdio",
|
|
19
19
|
"bin": {
|
|
20
20
|
"craft-mcp": "bin/craft-mcp.mjs"
|
|
21
21
|
},
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: craft-game-maker
|
|
3
|
-
description: Make or modify local Craft 2D/Phaser and 3D/Three.js games
|
|
3
|
+
description: Make or modify local Craft 2D/Phaser and 3D/Three.js games in AI IDEs, including AI assets, gameplay checks and preview.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Craft 本地小游戏制作
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
AI IDE 负责理解需求、设计、编码和看图验收;Craft MCP 提供工程、素材召回、AIGC、构建和预览,不调用 ForgeAgent。用户描述需求后自动推进,不要求用户指定工具、安装依赖或运行构建。
|
|
9
9
|
|
|
10
10
|
## 默认交互
|
|
11
11
|
|
|
12
|
-
素材来源、获取方式、使用顺序与表现方式遵守当前引擎 `
|
|
12
|
+
素材来源、获取方式、使用顺序与表现方式遵守当前引擎 `AGENTS.md`、相关技能及用户要求。`craft_game_info` 的 library / aigc 字段分别列出可用的召回分类与生成类型。调用 AIGC 时使用实际返回的产物;生成按平台规则自动扣分,不要求工程额度或逐项确认。短音效生成已下线,音频召回仍可用。
|
|
13
13
|
|
|
14
|
-
使用平台能力前调用 `craft_auth_status`。已登录直接继续;仅未登录时展示工具返回的 `user_message`,不自行拼地址。`auth_mode:token` 由用户在
|
|
14
|
+
使用平台能力前调用 `craft_auth_status`。已登录直接继续;仅未登录时展示工具返回的 `user_message`,不自行拼地址。`auth_mode:token` 由用户在 宿主凭证设置或连接器表单更新凭证并重新连接;普通安装由用户在工具返回的本机页面登录。连接后复用原工程和请求继续。网络错误不要求重新登录;积分不足或服务失败如实报告并保留记录。
|
|
15
15
|
|
|
16
16
|
禁止读取凭据文件、自动填写登录页或连接器凭证表单,或要求用户把 Token 发到聊天、写配置;链接中不得带 Token。
|
|
17
17
|
|
|
18
|
-
后台任务、素材接线、测试、看图和修复持续推进,直到交付或明确受阻;需要用户登录、用户取消时停下说明。交付预览链接、玩法和操作键;生成过图片时附资源 ID
|
|
18
|
+
后台任务、素材接线、测试、看图和修复持续推进,直到交付或明确受阻;需要用户登录、用户取消时停下说明。交付预览链接、玩法和操作键;生成过图片时附资源 ID 与原始资源 URL。
|
|
19
19
|
|
|
20
|
-
使用召回时,按工程引擎提交 1~8 个 slot/category/query,轮询后检查候选、score、metadata 和错误。选中后用 `craft_assets_import` 传 `source:"library"`、search_id、candidate_id、slot、request_key;一批只含一种来源。AssetId 不当作 AIGC resource_id
|
|
20
|
+
使用召回时,按工程引擎提交 1~8 个 slot/category/query,轮询后检查候选、score、metadata 和错误。选中后用 `craft_assets_import` 传 `source:"library"`、search_id、candidate_id、slot、request_key;一批只含一种来源。AssetId 不当作 AIGC resource_id,不手填或猜测候选外的资源地址。搜索操作本身不生成素材;后续素材决策遵守当前引擎上下文与用户要求,不因错误换 key 盲重试,也不把召回素材冒充 AI 产物。
|
|
21
21
|
|
|
22
22
|
## 连续工作流
|
|
23
23
|
|
|
24
|
-
1. **先读引擎说明,再制作游戏。** 新建时用 `craft_game_info(engine)` 选择 `js`(2D/Phaser)或 `js3d`(3D/Three.js),没有 3D 要求时默认 `js`;继续游戏用 `craft_game_info(name)` 获取已保存的引擎。开始设计、编码或修改前,必须用文件工具完整读取 `context.engine.entrypoint` 指向的对应引擎 `
|
|
25
|
-
2. 调用 `craft_game_prepare`,使用稳定的英文 name;新建时传 engine,继续时复用原 name、沿用引擎。必须轮询成功后才用
|
|
24
|
+
1. **先读引擎说明,再制作游戏。** 新建时用 `craft_game_info(engine)` 选择 `js`(2D/Phaser)或 `js3d`(3D/Three.js),没有 3D 要求时默认 `js`;继续游戏用 `craft_game_info(name)` 获取已保存的引擎。开始设计、编码或修改前,必须用文件工具完整读取 `context.engine.entrypoint` 指向的对应引擎 `AGENTS.md`,遵循其开发约定。不能用查看路径或本指南代替读取;无法读取时报告阻塞。只读当前引擎,其余参考文档按需加载。
|
|
25
|
+
2. 调用 `craft_game_prepare`,使用稳定的英文 name;新建时传 engine,继续时复用原 name、沿用引擎。必须轮询成功后才用 AI IDE 文件工具编辑工程,遵循返回的 instructions/context。工程由本会话占用至 Craft 断开;遇到 CRAFT_PROJECT_IN_USE 时回原会话继续或请用户关闭原会话的 Craft,不绕过锁写文件、不终止其他进程。并行制作使用不同 name。保留模板依赖、runtime、Vite、预览接线和配置结构。
|
|
26
26
|
3. 按当前引擎上下文与用户要求选定的素材方案调用对应工具。使用召回时遵守上述候选导入契约;调用 `craft_assets_generate(name,assets)` 时每批 1~8 项,用 kind 选择 image/image_edit、static_mesh、skeletal_mesh、music、video、sprite_sheet 或 animation。图片按画面选尺寸,角色/道具图可设 `transparent:true`;动画需要视频和宿主骨骼 ID。slot、request_key 保持稳定;恢复用原 key 和全部参数,仅用户要求重做时新建 key。已有 AIGC 任务用 `craft_assets_import` 按 resource_id 导入,禁止另行 curl 下载或重复付费生成。
|
|
27
27
|
4. 返回 task_id 后,用 `craft_task_status(wait_ms:15000)` 轮询至终态;等待生成时可写独立逻辑。遇到 login 展示工具登录链接;asset_preview 则请用户在 Craft 资源中心完成预览确认后复用原请求继续,不自动冒充预览通过。failed/interrupted 查看错误并保留记录,资源未完成不宣称完成。取消用 `craft_task_cancel`,远端 processing 可能继续;导入任务取消只停止本地导入。
|
|
28
28
|
5. 平台没有请求级幂等:超时或提交响应丢失时保留原 key,只查询认领原任务,不盲目重发付费请求;查询未找到不代表未扣分,提交未确认时稍后用原参数重试。
|
|
29
|
-
6.
|
|
29
|
+
6. 按工具返回的 `config_file` 和 slot 接线,保留资源原值:AIGC 写平台返回的 `result_url`,召回写候选原始 Path;不下载到 `public/assets/generated/`,不把平台相对路径改成游戏站点路径。按当前引擎的资源 URL 门禁和加载规范使用官方 CDN、`resolveAssetUrl` 与 `gameConfig()`;不要在源码硬编码资源地址。AIGC `PaperFlipbook` 保存 manifest JSON 地址,召回序列帧保存图集 PNG 地址并使用同一候选的 `sprite` 布局。导出按原始面板规则对官方域和百分号编码做归一化,召回路径保留其合法前缀,不改成本地素材地址;检查导出后的实际配置,不把合法解码又改回编码。模型、贴图、音频及清单依赖由原始加载管线实际读取,资源不可访问时报告失败,不以只写配置代替接线。
|
|
30
30
|
7. 调用 `craft_game_check` 执行引擎收尾、构建和浏览器采集。依次提供 `loop`、`settlement`、`restart` 三步,每步包含 action、expected 和真实玩法断言。
|
|
31
31
|
8. gate.passed 后调用 `craft_game_review`,逐一查看初始、主循环、结算、重开四张截图,检查素材、构图、比例、文字、遮挡、透明边缘和玩法反馈;有问题就修复并重验。浏览器或截图不可用时报告未验证。
|
|
32
|
-
9. 玩法和视觉均通过后,调用 `craft_game_deliver(task_id,visual_passed:true,visual_notes)`,填写实际观察。返回 awaiting_host_start 时,由
|
|
32
|
+
9. 玩法和视觉均通过后,调用 `craft_game_deliver(task_id,visual_passed:true,visual_notes)`,填写实际观察。返回 awaiting_host_start 时,由 AI IDE 使用终端或后台进程工具执行 `start.script`;Craft 不启动预览。轮询 `craft_game_info(name).preview`,直到 running=true 且 snapshot 与此次交付一致,打开 URL 确认画布能启动后才交付链接。预览可能被宿主或系统回收;失效时查看 start.logs,重跑启动命令并验证,用 `craft_preview_stop(name)` 停止。源码或构建产物变化后重新检查、交付。
|
|
33
33
|
|
|
34
|
-
用户要求上传 Craft 私有草稿时,先通过检查与看图,再调用 `craft_game_upload(name,check_task_id)`。同一目录、name、账号和平台自动复用 appid,修改后重新检查上传只新增版本;中断时保留原 check_task_id
|
|
34
|
+
用户要求上传 Craft 私有草稿时,先通过检查与看图,再调用 `craft_game_upload(name,check_task_id)`。同一目录、name、账号和平台自动复用 appid,修改后重新检查上传只新增版本;中断时保留原 check_task_id 重试。发布与本地预览使用相同的资源配置:保留 AIGC 原始 URL、召回原始相对路径,按引擎配置解析 CDN;同时验证远端资源在目标浏览器和公开托管中实际可用。用 `craft_task_status` 等待上传,用 `craft_game_publish_status(name,check_task_id)` 查询同一版本。`draft_ready` 表示私有上传完成,交付项目 ID、版本 ID 与摘要,不代表公开发布,也不提供云端预览链接。试玩与交付预览沿用 IDE 本地的 `craft_game_deliver` 启动流程,不以云端试玩作为上传完成条件。
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
用户要求公开发布时,优先调用 `craft_game_publish_open(name,check_task_id)` 并向用户展示返回的本地发布页链接。页面可编辑材料、查看验收冻结版本和最终图片,使用原有 30 秒真实采集;只有用户勾选确认具体 revision 后才上传公开图片并提审。页面不依赖安装桌面客户端;同一 publication_id 可重新打开恢复。发布完成以目标版本审核完成及公开链接为准。
|
|
37
|
+
|
|
38
|
+
需要由工具准备材料时,先完成私有上传,调用 `craft_game_publish_options` 获取当前分类。AI IDE 根据游戏准备名称、简介/操作说明、分类、标签和封面;封面可用工程内 PNG/JPEG,省略时使用真实游戏截图。调用 `craft_game_publish_prepare(name,check_task_id,materials)`,轮询完成;MCP 对同一冻结版本真实试玩至少 30 秒,生成展示图和审核抽帧,不用四张普通验收图冒充完整采集。
|
|
37
39
|
|
|
38
40
|
随后调用 `craft_game_publish_review(name,publication_id)`,向用户展示完整文案、封面、截图、目标版本、是否开放二创,以及图片上传后为公开 URL 的事实。取得用户对本次 `revision` 的明确确认后,才调用 `craft_game_publish_submit(name,publication_id,revision,confirmed:true)`。材料变化须重新准备、看图和确认;准备完成不表示获得了提交授权。
|
|
39
41
|
|
|
@@ -47,11 +49,13 @@ WorkBuddy 负责理解需求、设计、编码和看图验收;Craft MCP 提供
|
|
|
47
49
|
|
|
48
50
|
连接时发送通用指南,选定引擎后的 info/prepare 结果附专用指南。`context.workflow` 为通用指南,`context.engine.guide` 为专用指南,`context.engine.directory` 为引擎上下文,`context.references` 为按需文档。
|
|
49
51
|
|
|
50
|
-
引擎目录也供 SDK 生命周期使用。引擎 `
|
|
52
|
+
引擎目录也供 SDK 生命周期使用。引擎 `AGENTS.md`、相关技能及用户要求决定素材策略;其中的 Forge 工具和组件接口按当前 MCP 能力适配,不直接调用 skill_load、spawn、game_visual_qa。构建和采集统一用 `craft_game_check`。
|
|
51
53
|
|
|
52
54
|
## 玩法观测
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
验收前必须确保工程已显式安装 `globalThis.__GAME_PROBE__.snapshot()`,不能假设模板自带探针;缺少时先补齐,再调用 `craft_game_check`。旧工程已有探针时保留并扩展。快照返回真实 `engine`、`ready`、`frameCount`,`game` 从实际玩法状态读取,如 `{score,phase,round}`。
|
|
57
|
+
|
|
58
|
+
`frameCount` 只能随真实渲染帧递增。必要资源加载成功且实际场景已渲染后才允许 `ready` 成立:Phaser 结合 `POST_RENDER`、`markPreviewReady` 和活跃的 `PlayScene`,Three.js 结合实际 render 帧与资源加载。保留引擎预览生命周期,不伪造帧数、就绪或玩法状态使检查通过。
|
|
55
59
|
|
|
56
60
|
测试使用真实输入,不直接改分数或强行结算。Canvas 用坐标,DOM 用 target;`qa:` 仅路由到与玩家操作相同的处理函数,每步 ms ≤ 30000。
|
|
57
61
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# 当前工程:2D / Phaser(engine=js)
|
|
2
2
|
|
|
3
|
-
使用当前工程的 Phaser 模板和本引擎上下文。制作或修改前完整读取 `context.engine.entrypoint` 对应的 `
|
|
3
|
+
使用当前工程的 Phaser 模板和本引擎上下文。制作或修改前完整读取 `context.engine.entrypoint` 对应的 `AGENTS.md`,素材来源与流程遵守该引擎的相关技能及用户要求。再读取 `src/main.ts`、`src/scenes/LoadScene.ts`、`src/scenes/PlayScene.ts`、`configs/assets.json`、`configs/game.json`。
|
|
4
4
|
|
|
5
|
-
- `LoadScene` 负责预加载,`PlayScene`
|
|
6
|
-
- 使用召回时调用 craft_assets_search,分类以当前 library 能力为准。anim2d / effect2d
|
|
7
|
-
- 修改加载场景时按需读取 `context.references.loading
|
|
8
|
-
-
|
|
5
|
+
- `LoadScene` 负责预加载,`PlayScene` 实现玩法。图片、音频及序列帧按引擎 `knowledge/AigcWiring.md` 读取 `configs/assets.json` 的 slot 原值:AIGC 是 `result_url`,召回是资源地址原值。`slotUrl` 只取配置;加载时按 `knowledge/AssetUrl.md` 使用 `resolveAssetUrl` 和官方 CDN 配置,在 LoadScene 入队并在 PlayScene 实际使用。
|
|
6
|
+
- 使用召回时调用 craft_assets_search,分类以当前 library 能力为准。anim2d / effect2d 槽值保存候选 `sprite.sheetPath` 的原始图集 PNG 路径,帧布局取同一候选的 rows、cols、frameCount、loop;AIGC 序列帧槽值保存原始 manifest JSON URL。按 `AigcWiring.md` 的 `sheetUrl`、spritesheet 与动画流程加载,不把 JSON 当图片或把整张图集当单帧,不新建本地素材清单。不运行原上下文的检索脚本。
|
|
7
|
+
- 修改加载场景时按需读取 `context.references.loading`;补充玩法观测时遵守 `context.workflow` 中的玩法观测约定。
|
|
8
|
+
- 验收前按 `context.workflow` 的玩法观测约定显式安装 `globalThis.__GAME_PROBE__.snapshot()`;缺少探针时必须补齐。旧工程已有探针时保留并扩展,`engine` 保持 `js`,在 `snapshot().game` 读取真实分数、阶段、回合等状态。
|
|
9
|
+
- `frameCount` 随真实 Phaser `POST_RENDER` 帧递增;`ready` 仅在必要资源加载成功、`PlayScene` 活跃且已发生真实渲染后成立,并与 `markPreviewReady` 的预览就绪流程一致。保留原有预览生命周期,不用定时器、硬编码分数或伪造帧数使检查通过。
|
|
9
10
|
- 使用 `craft_game_check` 构建与验证,再查看四张截图并交付。SDK 自动执行本引擎的必要收尾,不另行调用 Forge 的导出或采集工具。
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# 当前工程:3D / Three.js(engine=js3d)
|
|
2
2
|
|
|
3
|
-
使用当前工程的 Three.js 模板和本引擎上下文。制作或修改前完整读取 `context.engine.entrypoint` 对应的 `
|
|
3
|
+
使用当前工程的 Three.js 模板和本引擎上下文。制作或修改前完整读取 `context.engine.entrypoint` 对应的 `AGENTS.md`,素材来源与流程遵守该引擎的相关技能及用户要求。再读 `src/main.ts`、`src/platform.ts`、`src/style.css`、`game-runtime.json`、`configs/game.json`、`configs/game.controls.json`;需要图片时读 `configs/assets.json`。本模板没有 Phaser 的 LoadScene/PlayScene,不创建这些场景来套用 2D 流程。
|
|
4
4
|
|
|
5
5
|
- 首次制作或修改渲染、预览接线前,按需读取 `context.references.runtime` 的相关生命周期约定。保留模板中的 renderer、camera、resize、preview.afterRender、markReady、renderForCapture 和资源释放行为。
|
|
6
6
|
- 按需求实现 Three.js 场景、相机、光照、网格、材质和真实输入交互。调用 AIGC 生成模型时,静物用 static_mesh,骨骼角色用 skeletal_mesh;已有产物通过 craft_assets_import 导入。图片只作为纹理、背景或 UI,不冒充 3D 模型。
|
|
7
|
-
- 使用召回时,分类用 staticmesh、skeletalmesh、sequence、geometry、ui、terrain_texture、audio。角色与动作需匹配返回的 skeleton_tag,搜索动作时可用 filters.SkeletonTag;保留模型 direction、box_size
|
|
8
|
-
- MCP 为 3D 工程准备 `configs/assets.json
|
|
9
|
-
-
|
|
10
|
-
-
|
|
7
|
+
- 使用召回时,分类用 staticmesh、skeletalmesh、sequence、geometry、ui、terrain_texture、audio。角色与动作需匹配返回的 skeleton_tag,搜索动作时可用 filters.SkeletonTag;保留模型 direction、box_size 并按实际加载结果调整朝向和尺度。召回导入后按工具返回的 `config_file` 和 slot 消费候选原始 Path,不运行原上下文中的检索脚本或配置额外 Token。
|
|
8
|
+
- MCP 为 3D 工程准备 `configs/assets.json`。图片从配置读取平台原始 URL 或召回原始路径,通过 `gameConfig()` 的资源归一化、`resolveAssetUrl` 与 Three.js 加载方式接入材质、背景或 Sprite;必要时显式提供官方 `cdnBaseUrl`,不要给 CDN 相对路径加站点根斜杠。等待所需资源实际就绪,透明图片使用相应透明材质。不要使用 Phaser 专用的 slotUrl 或 texture 接口。
|
|
9
|
+
- 资源字段与同名 controls 按工具返回的 `config_file` 和 slot 回填,业务 import 对应配置。模型按 `skills/asset-search/references/resource-config.md` 通过当前固定 runtime 的 `loadGlbModel` 加载原始 GLB/glTF 地址;挂载归一化、LOD、压缩贴图及回退由加载管线负责,不自行拼前缀、档位或依赖地址,也不直接用 GLTFLoader 绕过该流程。动作结合匹配骨骼与 AnimationMixer 使用,音频和视频按实际配置加载。AIGC 序列帧保留原始 manifest JSON URL,召回序列帧保留原始图集 PNG Path 并取同一候选布局;不改写为本地文件。
|
|
10
|
+
- 验收前按 `context.workflow` 的玩法观测约定显式安装 `globalThis.__GAME_PROBE__.snapshot()`;缺少探针时必须补齐。旧工程已有探针时保留并扩展,`engine` 保持 `js3d`,`viewport`、`camera` 和 `game` 读取真实视口、相机、分数、阶段及回合状态。
|
|
11
|
+
- `frameCount` 随实际完成的渲染帧递增,`ready` 由必要资源加载成功和真实场景渲染决定;与现有 preview 生命周期协作,不移除其渲染、就绪或资源释放接线,不伪造 ready、帧数或玩法状态。检查步骤使用真实输入,覆盖主循环、结算和重开。
|
|
11
12
|
- 实现问题按需读取 `context.references.pitfalls`;仅在涉及场景编辑器时读取 `context.references.scene_editor`。引擎文档中的 Forge 工具和前端组件接口按当前 MCP 能力适配,素材策略仍遵守本引擎上下文与用户要求。
|
|
12
13
|
- 用 `craft_game_check` 运行本引擎的收尾、构建和采集,再用 `craft_game_review` 看四张截图,检查空间关系、光照、遮挡、相机和纹理接线。浏览器采集可能提供渲染探针,渲染诊断不替代实际看图;通过后使用 `craft_game_deliver`。
|
|
@@ -778,7 +778,7 @@ async function canvasPoint(frame, x, y) {
|
|
|
778
778
|
// a step can address a scene object by id instead of guessing pixel coordinates.
|
|
779
779
|
async function invokeQAHook(frame, key) {
|
|
780
780
|
const done = await frame.evaluate(
|
|
781
|
-
id => typeof window.__qaClick === 'function' && window.__qaClick(id) !== false,
|
|
781
|
+
async id => typeof window.__qaClick === 'function' && await window.__qaClick(id) !== false,
|
|
782
782
|
key,
|
|
783
783
|
);
|
|
784
784
|
if (!done) throw new Error(`游戏未暴露 window.__qaClick('${key}') 或该句柄不存在`);
|
|
@@ -793,7 +793,7 @@ export async function invokeQAWarp(frame, target) {
|
|
|
793
793
|
const key = String(target || '').trim();
|
|
794
794
|
if (!key || key === 'none' || key === 'off') return false;
|
|
795
795
|
try {
|
|
796
|
-
return !!(await frame.evaluate(id => {
|
|
796
|
+
return !!(await frame.evaluate(async id => {
|
|
797
797
|
const hide = node => {
|
|
798
798
|
if (!node) return;
|
|
799
799
|
node.style.display = 'none';
|
|
@@ -801,7 +801,7 @@ export async function invokeQAWarp(frame, target) {
|
|
|
801
801
|
};
|
|
802
802
|
hide(document.getElementById('loading'));
|
|
803
803
|
if (typeof window.__qaWarp === 'function') {
|
|
804
|
-
try { if (window.__qaWarp(id) !== false) return true; } catch {}
|
|
804
|
+
try { if (await window.__qaWarp(id) !== false) return true; } catch {}
|
|
805
805
|
}
|
|
806
806
|
const games = [window.__PHASER_GAME__, window.game, window.phaserGame].filter(Boolean);
|
|
807
807
|
const aliases = {
|
|
@@ -818,6 +818,9 @@ export async function invokeQAWarp(frame, target) {
|
|
|
818
818
|
const startKey = wanted.find(k => scenes.includes(k)) || scenes.find(s => String(s).toLowerCase() === id.toLowerCase());
|
|
819
819
|
if (!startKey) continue;
|
|
820
820
|
try {
|
|
821
|
+
// SceneManager.start restarts an active scene. Observing an already
|
|
822
|
+
// reached checkpoint must preserve its state and companion UI scenes.
|
|
823
|
+
if (typeof plugin.isActive === 'function' && plugin.isActive(startKey)) return true;
|
|
821
824
|
for (const s of scenes) { if (s !== startKey) plugin.stop(s); }
|
|
822
825
|
plugin.start(startKey);
|
|
823
826
|
return true;
|
|
@@ -844,6 +847,9 @@ async function performStep(frame, page, step, clickTimeout) {
|
|
|
844
847
|
if (!locator) throw new Error(`未找到可点击元素「${step.target}」`);
|
|
845
848
|
await locator.click({ timeout: clickTimeout });
|
|
846
849
|
}
|
|
850
|
+
// Network/font settling can finish while a game timer or tween is still
|
|
851
|
+
// running. Honor the requested observation delay for every click surface.
|
|
852
|
+
await sleep(ms);
|
|
847
853
|
} else if (step.action === 'press') {
|
|
848
854
|
// Focus the frame without synthesizing an unrelated gameplay click.
|
|
849
855
|
await frame.evaluate(() => window.focus());
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 新项目的平台范围与设计确认
|
|
2
|
+
|
|
3
|
+
本规则在 JS 引擎内同样适用于普通模式与策划专家。新会话直接进入开发引擎、只有空模板,或用户本轮只要求澄清/设计时,都不能假定已经完成上游平台选择。
|
|
4
|
+
|
|
5
|
+
1. 在输出新项目的平台结论、提出范围问题或写游戏设计前,先读 `${CRAFT_CONTEXT_DIR}/knowledge/MobileAdaptation.md`。已有项目按有效设计和本轮明确变更维护,不自动扩大旧项目范围。
|
|
6
|
+
2. 新项目默认开启移动端;明确开启或关闭时直接遵循。“PC 游戏”“以 PC 为主”“其它细节你决定”、实体键盘并发和密集同屏都不等于用户关闭手机。没有具体冲突时不为确认默认值提问。
|
|
7
|
+
3. 有具体核心操作、内容表现或明确交付约束冲突且用户尚未选择时,先说明取舍并展示固定的非必填 `mobile_adaptation` 二选一,推荐开启放首位;不能先推荐仅 PC、用必填平台题替换,或只提供 PC 与手机演示选项。问卷成功展示后跳过才按开启处理;失败不能冒充已跳过。
|
|
8
|
+
4. 开启只确定需求范围,不证明核心约束已同时可满足。必须实体键盘的要求不能被静默替换为十点触控;未经验证的设备触点数、同屏可读性或两端体验不能写成已解决。无可行方案时保留开启范围与核心约束,列出尚未解决的取舍,不能声称手机可玩、退成提示页或再次追问已答开关。
|
|
9
|
+
5. 提交最终设计/开工确认前,核对平台范围、有效答案、附加功能选择与未解决限制;把范围及其来源写进游戏设计。只要求设计时等待确认,不开发、不将 `mobile_adapted` 置为 `true`。
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Craft 引擎上下文
|
|
2
|
+
|
|
3
|
+
## AI IDE 宿主与路径
|
|
4
|
+
|
|
5
|
+
本上下文供支持 stdio MCP 的 AI IDE 使用,包括 Codex、Trae、WorkBuddy 等。AI IDE 负责模型、工具调用和宿主终端;Craft MCP 提供工程、资源、校验、预览及上传发布能力。
|
|
6
|
+
|
|
7
|
+
以下变量是文档中的路径约定,不假设 IDE 已注入环境变量:
|
|
8
|
+
|
|
9
|
+
- `${CRAFT_CONTEXT_DIR}`:`craft_game_info` 返回的 `context.engine.directory`,即当前引擎上下文的真实绝对目录。
|
|
10
|
+
- `${CRAFT_PROJECT_DIR}`:当前游戏工程的真实绝对目录,以工程准备或查询结果为准。
|
|
11
|
+
- `${CRAFT_SKILL_DIR}`:本次已选择技能的真实绝对目录,例如上下文目录下的 `skills/export-config`;不同技能分别解析。
|
|
12
|
+
|
|
13
|
+
读取文档时按这些真实路径解析。执行脚本时按当前宿主终端语法显式传入所需同名环境变量,或将命令中的占位符替换为真实绝对路径;不要直接使用未设置的变量。
|
|
14
|
+
|
|
15
|
+
# 项目
|
|
16
|
+
|
|
17
|
+
## 按需展示总结
|
|
18
|
+
|
|
19
|
+
主 Agent 需要向用户总结阶段成果、交付结果或阻塞情况时,若本轮工具列表提供 `present_summary`,通过该工具展示,只传 `status` 和 `summary`。并非每个 turn 都需要总结:普通问答、澄清提问、等待用户回答和过程播报按原有要求进行,不为调用工具凑总结。`status` 按本次总结覆盖的范围选择 `completed`(已完成)、`partial`(部分完成)或 `blocked`(受阻);`summary` 完整遵循当前上下文已有的语言、格式、交付内容和证据要求,不额外套模板。
|
|
20
|
+
|
|
21
|
+
**展示渠道与回落**:本节决定总结的展示渠道,既有交付规范仍决定 `summary` 的内容与格式,包括当前上下文要求的交付分段。工具成功返回后,该 `summary` 即为本次交付总结,普通正文不再重复;工具不可用或调用失败时,按相同的交付规范在普通正文中输出完整总结,不得静默结束或声称已展示。该工具只负责展示,不结束本轮,也不替代问卷、方案或开工确认;还有工作时继续执行。
|
|
22
|
+
|
|
23
|
+
## 对用户说什么(制作反馈)
|
|
24
|
+
|
|
25
|
+
所有自然语言正文都给用户看,包括工具调用之间、排错时和最终回复。让用户持续了解游戏正在怎样变好:可以详细说明本轮目标、具体变化、已观察到的问题、修复状态、接下来要检查的效果与验证结果。反馈可以充分,不以字数少为目标;但不输出内部推理、排查假设、方案权衡、自我指令或逐步技术操作旁白。
|
|
26
|
+
|
|
27
|
+
1. **先开场,再开发**:授权制作或修改后,先说明本轮游戏目标与要做出的体验,再浏览工程、加载技能或执行开发工具。若当前上下文没有目标,只先静默读取设计文档的需求摘要,读完立即开场;不得等到修改文件、运行命令或派发制作任务后才开场。普通问答直接回答,尚待必要确认时不宣布开工。
|
|
28
|
+
2. **随进展持续反馈**:玩法、画面、资源接入有实际进展,发现影响体验的问题,修复进入复验,或检查获得新结果时,都可以自然播报,不限于几个固定里程碑。说清具体改变、用户能感受到的效果和当前验证状态;进入构建或画面/玩法验收前,若已有改动但还没播报,先说明已实现的内容及接下来要检查的效果。不要只说「核心玩法已写完」「主体已完成」。有新信息就讲充分;同一成果没有变化时不重复播报,也不逐个工具调用报流水账。小改动可直接交付,不凑条数,不编造进度、百分比或剩余时间。
|
|
29
|
+
3. **排错讲现象和进展**:可以说明「移动效果还需要进一步确认」「交战时出现异常中断,正在修复」「已修复,接下来复验重开后是否能继续操作」。已观察到的现象、修复状态与接下来的检查目标都属于可展示反馈;猜测原因、逐步排查路径、内部方案比较与自问自答不属于。读取、写入、加载、定位、重试本身不单独播报,也不复述工具参数或内部技能、调度、命令、文件与函数操作。用户明确询问技术细节时,可解释实现和证据,但仍不输出内部思考。检查失败若影响结论,说明哪些效果尚无法确认及当前处理状态,不反复复述工具报错。
|
|
30
|
+
4. **结论对应证据**:已修改不等于已验证,构建通过不等于玩法通过;资源已提交、已生成、已接入分别说。只把实际检查过的行为列为已验证,不能由方向键通过推断 WASD、Shift 也通过,由截图正常推断交互通过。检查失败或无有效结果时保留未验证;后续改动影响旧结论时标为待复验。截图只支持画面中实际可见的状态;行为结论须有对应操作及结果证据。模型查看截图不叫「人工验收」;没有真实人工参与时不得声称人工核对或用户已确认,也不得用模型自行看图绕过既有 QA 判定规则。
|
|
31
|
+
5. **交付说完整**:总结按上文「按需展示总结」选择展示渠道;`summary` 与回落正文均默认按「本次变化/已验证/未完成或未验证」组织,可展开具体玩法、画面变化和必要操作说明,不设固定字数上限。最后一项只列本轮需求或关键行为中确实未完成、未检查或检查无结论的内容,并写明范围;素材制作方式放变化中,检查报错不能代替未验证项。没有已知遗留可说「本轮范围内无已知遗留」,不凑问题、不宣称全功能通过。不罗列工程文件、重述整段排错经过或复制卡片全文。
|
|
32
|
+
|
|
33
|
+
播报后继续工作,不额外等确认。既有问卷、资产卡、QA、待办及验收条件照常执行;不为播报新增检查、截图或发布,不重复自动发卡,不编造新标签或工具。
|
|
34
|
+
|
|
35
|
+
## 工程约定
|
|
36
|
+
|
|
37
|
+
用户本轮明确只要求需求澄清、编写设计或等待开工设计确认时,先完成该范围并等待确认,不执行下文的首次开发步骤。已有空模板、重试/恢复、信息已充分都不等于用户确认开工;没有有效问卷答案时不虚构已选项。若当前阶段缺少所需澄清或开工确认工具,说明流程受阻,不以自写设计后直接开发代替确认,也不声称已经完成上游交接。
|
|
38
|
+
|
|
39
|
+
项目根是 `${CRAFT_PROJECT_DIR}`,使用 Phaser 3.90。开始实现或迭代前,按 `${CRAFT_CONTEXT_DIR}/knowledge/ProjectDisplayConfig.md` 读取并维护项目显示偏好。屏幕布局与取景读 `resolution-adaptation`。然后读取 `${CRAFT_PROJECT_DIR}/game-runtime.json`(没有即没有,禁止为确认去搜全库)。
|
|
40
|
+
|
|
41
|
+
- **有该文件**:下文 Runtime 约定、新模板入口(`PlayScene` / `LoadScene` / `screenUi`)适用。
|
|
42
|
+
- **没有该文件**:只改工程里已有文件和已有 import,补建根目录 `game.config.json` 除外。禁止新建 `game-runtime.json`、禁止新增或覆盖 `runtime/`、禁止改 `package.json` 的 scripts。只跑 `package.json` 里已经存在的脚本。违反代价:把本可过的旧构建改挂。**例外**:用户本轮明确要求把 vendor / CoreManager 工程升级、适配或迁移到 `runtime/lightgame/1.1.0`,或点名 `lightgame-runtime-adapt` 时,加载该 skill 并按它执行。
|
|
43
|
+
|
|
44
|
+
需求文档在 `SPEC/`。
|
|
45
|
+
|
|
46
|
+
> **功能红线**:禁止实现玩家自定义文本输入(输入框、自由打字、自定义命名等);相关需求一律改用预设选项、词库点选或随机生成。用户坚持时,不实现该需求,明确说明平台不支持,并提供上述替代交互。
|
|
47
|
+
|
|
48
|
+
有 `game-runtime.json` 时:新模板已包含 `src/main.ts`、`src/screenUi.ts`、`src/scenes/LoadScene.ts`、`src/scenes/PlayScene.ts`、`configs/game.json`、`vite.config.ts` 等文件;首次修改目标前先查看现有内容,局部修改用 `edit_file`,整篇替换用 `write_file(overwrite=true)`。玩法写在 `PlayScene`,文件入队写在 `LoadScene`,屏幕 HUD 写在 `screenUi`。`main.ts` 只建 `Phaser.Game` 与平台桥。没有该文件且未点名升级时,不要按这些文件名去改入口或补脚手架。
|
|
49
|
+
|
|
50
|
+
首次开发落第一个 `src/` 文件之前,按 `${CRAFT_CONTEXT_DIR}/knowledge/AigcEnabled.md`「落盘」写入 `${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json`。
|
|
51
|
+
|
|
52
|
+
首次开发时,先把 `游戏设计.md` 原文复制一份,放到 `${CRAFT_PROJECT_DIR}/SPEC/plan/游戏策划案.md`,并立刻按 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md` 的“首次开发创建策划案”输出组件。输出完成后不要停下,继续开发。
|
|
53
|
+
|
|
54
|
+
## 铁律
|
|
55
|
+
|
|
56
|
+
- 全程禁止调用 todo_write tool,即使用户要求也不行。
|
|
57
|
+
- 用简体中文与用户沟通。除非用户要求,否则也不要用emoji。
|
|
58
|
+
- 根据 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md` 输出组件应当随着开发进度随时发出,不要等到最后再输出。
|
|
59
|
+
|
|
60
|
+
## Runtime 约定
|
|
61
|
+
|
|
62
|
+
- 入口 `new Phaser.Game`:`parent: 'game'`,`render.preserveDrawingBuffer: true`,`physics: { default: 'arcade' }`。玩法用 Scene / Loader / Image / Sprite。`PlayScene` 必须 `constructor() { super({ key: 'PlayScene' }); }`;`main.ts` 用 `scene.add('PlayScene', PlayScene, false)` 登记,数组里只放 `LoadScene`。
|
|
63
|
+
- 平台桥挂 `game.canvas`:`connectPreview` 之后每帧 `POST_RENDER` 里 `afterRender`,加载层第一帧由 `LoadScene` 调 `markReady`,销毁时 `dispose`。
|
|
64
|
+
- 默认值放 `configs/*.json`,控件元数据放同名 `*.controls.json`;业务保持普通 JSON import。
|
|
65
|
+
- 普通玩法修改只动业务代码,不自动升级 SDK,不跑 `runtime:refresh`,不改 `vite.config.ts` 跳过校验。明确维护 runtime 时才修改模块并更新清单。已有 `game-runtime.json` 的项目沿用该文件和已有 import,不为目录整理迁移旧快照。
|
|
66
|
+
- Runtime 按需直达,不递归列目录或通读 SDK:先读目标 `.d.mts`,仅修复实现问题时读同名 `.mjs`,没有 SDK 需求就不读。
|
|
67
|
+
- 新模板代码只引用 `runtime/lightgame/1.1.0`。已有旧工程按原有引用使用,不自动升级。
|
|
68
|
+
- 预览/截图/日志/ready/uiTree/runtime-result:`runtime/lightgame/1.1.0/platform/platform.d.mts`。
|
|
69
|
+
- 身份 / 排行榜 / 云存档 / 多人同步:加载 `platform-services`,只安装这次要用的模块到 `src/skill-modules/platform-services/`。`leaderboard`、`save`、`multiplayer` 各自带上身份,互不附带。不要从 `runtime/lightgame/1.0.0/platform/` 引入,也不要装进 `1.1.0` runtime。
|
|
70
|
+
- `tooling/` 保留 `vite`、`project`、校验 CLI、依赖检查与 profile 页面;`release.json` 仅为完整性清单。`game-runtime.json` 的 `cli` 在新版本只提供校验,不再导出配置。
|
|
71
|
+
- 配置能力由 `export-config` 安装到 `scripts/skill-modules/export-config`;默认已预装。`gameConfig()` 与 `lightgame()` 并列启用,`game-runtime.json` 的 `configs`、`cdnBase` 设置目录/CDN,保持普通 JSON import。
|
|
72
|
+
- URL 解析、通用加载和 ASTC 在 `runtime/lightgame/1.1.0/tools/`(`assets.mjs`、`astc.mjs`),先读随包 `.d.mts`。玩法优先 Phaser Loader。素材召回仍走 `asset-search`。
|
|
73
|
+
- 音视频、基础输入/UI、Canvas 效果及 Three 玩法由 Agent 使用引擎/浏览器 API 自行实现,不回引 `1.0.0/tools` 补能力,不创建替代大工具包。
|
|
74
|
+
|
|
75
|
+
## 交付要求
|
|
76
|
+
|
|
77
|
+
交付前通过本批终态的 `npm run build`。有 `game-runtime.json` 时当前模板的 `build` 会先 `config:export` 再做类型检查。旧项目的 `package.json` 若还没把导出放进 `build`,改资源后仍要单独跑 `npm run config:export`。不要跑 `runtime:refresh`,不要改 `vite.config.ts` 去跳过完整性校验,不要把 `release.json` 哈希写进交付说明。没有该文件时只跑已有 `build`,不补 `typecheck` / `config:export` / `runtime:verify`。`game_visual_qa` 已对当前状态构建过则复用,否则在 `${CRAFT_PROJECT_DIR}` 执行。改代码或配置会使旧构建失效,改画面会使旧视觉报告失效。
|
|
78
|
+
|
|
79
|
+
`game_visual_qa` 只在游戏做完后调用:玩法能跑;有文件资产则已把 `aigc_status` 的 `items` 写入 `@slot` 与 `configs/assets.json` 并 export。此前只 `build`。画面只由该工具判读。调用前加载 `visual-qa`:验什么、看图额度、`fail` 处置与交付说明「已验证」的写法只在该 skill。`game_visual_qa` 自动上传并展示 QA 截图;根据验收结果继续修复或交付。成功构建后平台会自动通知预览就绪;不要在正文输出 `preview_ready` 标签。
|
|
80
|
+
|
|
81
|
+
完成召回资产或 AIGC 资产的接线后,遵守 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md`,立刻按“资产展示”执行脚本并输出组件。
|
|
82
|
+
|
|
83
|
+
画面、HUD 或说明里写了哪些按键,就都要绑定:写了 WASD 或方向键时两套都绑。
|
|
84
|
+
|
|
85
|
+
## 移动端适配状态
|
|
86
|
+
|
|
87
|
+
按游戏设计中的平台范围接入移动端:clarifier 新项目默认开启并写入游戏设计,用户明确关闭时遵循,不重新询问。首次开发开工及修改输入、HUD、布局或核心玩法前,按 `${CRAFT_CONTEXT_DIR}/knowledge/MobileAdapted.md` 读取与维护 `${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json` 的 `mobile_adapted`;首次补 `false`,适配与验证完成后才写 `true`。已有 `true` 的项目维护相关能力;旧项目缺少范围或完成状态不自动触发全量适配,普通分辨率适配也不等于移动端接入。
|
|
88
|
+
|
|
89
|
+
## 按需读取
|
|
90
|
+
|
|
91
|
+
- QA 兼容性报告、具体机型黑白屏/遮挡/触控故障或回归修复:加载 `mobile-compat-qa`,区分原始问题、修复状态与回归结果;按当前工程复用布局、输入和预览生命周期,不自动升级 SDK。
|
|
92
|
+
- 屏幕 UI 的通用约束:背景/世界/遮罩与功能 UI 分层;关键图片完整显示,按钮与展示型 HUD 都避开设备与宿主遮挡,布局 safe frame 不代表设备安全区。移动端竖屏避开顶部整带,横屏避开左上、右上宿主区域并保留顶部中间可用;制作或修改相关 UI 时读取 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/device-safe-area.md`。不另加全局缩放或逐控件设备偏移。
|
|
93
|
+
|
|
94
|
+
- 文件资产加载顺序:`${CRAFT_CONTEXT_DIR}/knowledge/Lifecycle.md`。
|
|
95
|
+
- 资源 URL:`${CRAFT_CONTEXT_DIR}/knowledge/AssetUrl.md`。
|
|
96
|
+
- 屏幕按钮 / 对话选项 / 商店面板:有 `game-runtime.json` 时读 `${CRAFT_CONTEXT_DIR}/knowledge/Ui.md`(`src/screenUi.ts`);没有则按工程已有 UI 改。
|
|
97
|
+
- `SPEC/plan/游戏设计.md` 已在、准备写第一局:开关与触发表只在 `${CRAFT_CONTEXT_DIR}/knowledge/AigcEnabled.md`,接线只在 `${CRAFT_CONTEXT_DIR}/knowledge/AigcWiring.md`。必须先提交 AIGC 再写玩法(`${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json` 的 `aigc_enabled === false` 除外,取值规则见 `${CRAFT_CONTEXT_DIR}/knowledge/AigcEnabled.md`)。提示词与画风只读 `游戏设计.md`。已有项目上用户明确要求换图 / 换音乐时走 `aigc-generate`「迭代生成」。漏提交的代价:整轮只有程序直绘,生成要十几分钟,写完再补无法并行。
|
|
98
|
+
- 排行榜、云存档、本机存档或多人同步:有 `game-runtime.json` 时先读 `${CRAFT_CONTEXT_DIR}/knowledge/PlatformServices.md`。没有该文件时按工程已有 import 改,不要读 `PlatformServices.md`。`1.1.0` 按需加载 `platform-services`,只安装 `leaderboard`、`save`、`multiplayer` 里这次要用的那一个,入口在 `markReady()` 前显式 `init()` 同一身份服务;预览桥和 `lightgame()` 不负责身份初始化或销毁。`1.0.0` 旧工程保留原接线,不自动迁移,也不要和 skill 混用;给这类工程新增联机、以及 `src/subsystem/multiplayerManager/` 旧副本的处理,见 `${CRAFT_CONTEXT_DIR}/rules/PlatformBoundaryModules.md`。先画出画面并发 `ready`,再异步读档。`query`:`BOARD_NOT_FOUND` 当空榜;只有 `PLATFORM_UNAVAILABLE` 才显示暂不可用;不要造假在线榜。云存档看 `source`:用户要云端时,`OK` + `local` 不算云端成功。联机用法见 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`。
|
|
99
|
+
- 新增或改写屏幕 UI:先读 `${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json` 的 `ui_editor_compat`,判读与写入规则见 `${CRAFT_CONTEXT_DIR}/knowledge/UiEditorCompat.md`。
|
|
100
|
+
- 新增或改写场景静态数据,或新增 / 替换 / 删除资源(含游戏资源面板交给 Agent 的换图、AIGC / 素材库换图、编辑器新增资源的后续处理),或修改场景实例的运行时状态 / 碰撞 / 交互生命周期:先读同文件 `scene_editor_compat`。为 `true` 时加载 `scene-editor-compat` 并按该 skill 执行,不等用户再次点击适配。未适配项目不因此自动接入。
|
|
101
|
+
- 实时预览由平台根据成功构建自动开启,约束见 `${CRAFT_CONTEXT_DIR}/rules/preview_ready.md`;正文不要输出预览标签。
|
|
102
|
+
|
|
103
|
+
## 技能
|
|
104
|
+
|
|
105
|
+
技能按各自 description 判断是否加载。例外:
|
|
106
|
+
|
|
107
|
+
- `aigc-generate`:按「按需读取」的 AIGC 条加载,执行该 skill 的「首轮直接生成」或「迭代生成」。
|
|
108
|
+
- `asset-search`:仅在以下情况加载:用户明确要求从素材库召回;用户消息带上传附件(`__chat_message__.attachments[]` 中 `type=resource`)或「用户本轮引用了以下资源」块;对话里出现 `https://file.craft.qq.com/...` 或 `Game/...` 资源地址。只回传 path;接线写进 `configs/assets.json` 与 `@slot`,见 `${CRAFT_CONTEXT_DIR}/knowledge/AigcWiring.md`。
|
|
109
|
+
- `optimization-suggestions`:仅在用户本轮明确索要灵感 / 优化建议,或上下文含 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]` 时起 subagent;首轮制作完成不自动出卡。
|
|
110
|
+
- `ui-editor-compat`:仅在 `ui_editor_compat` 为 `true`,或用户明确要求接入界面编辑器时加载;普通 UI 开发不加载。
|
|
111
|
+
- `scene-editor-compat`:已标记 `scene_editor_compat: true` 的项目修改场景或资源时加载,即使本轮只说“换图 / 修改配置”;用户明确要求接入 / 修复场景编辑器时也加载。涉及地形绘制/不生效时读其 `docs/terrain-contract.md`,维护具体地形类型、默认属性与游戏消费,不能只显示颜色或移动原有对象就算通过。未适配项目的普通开发不加载。
|
|
112
|
+
- `lightgame-runtime-adapt`:仅在用户本轮明确要求把 vendor / CoreManager 工程升级到 `runtime/lightgame/1.1.0`,或点名本 skill 时加载。见到 CoreManager、缺少 `game-runtime.json`、普通生成/iterate/出包都不够;未点名不要迁架构。
|