@craft_eco/craft-mcp 0.0.0-stage → 0.1.18
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 +32 -2
- package/bin/craft-mcp.mjs +7 -0
- package/dist-server/core/app-paths.mjs +15 -0
- package/dist-server/core/auth-store.mjs +70 -0
- package/dist-server/core/connector-auth.mjs +30 -0
- package/dist-server/core/http-utils.mjs +14 -0
- package/dist-server/game-workflow/asset-formats.mjs +76 -0
- package/dist-server/game-workflow/asset-import.mjs +113 -0
- package/dist-server/game-workflow/asset-inputs.mjs +10 -0
- package/dist-server/game-workflow/assets.mjs +161 -0
- package/dist-server/game-workflow/capture-worker.mjs +14 -0
- package/dist-server/game-workflow/check.mjs +74 -0
- package/dist-server/game-workflow/draft-archive.mjs +53 -0
- package/dist-server/game-workflow/draft-bindings.mjs +35 -0
- package/dist-server/game-workflow/draft-uploads.mjs +207 -0
- package/dist-server/game-workflow/engines.mjs +30 -0
- package/dist-server/game-workflow/library-assets.mjs +77 -0
- package/dist-server/game-workflow/library-candidates.mjs +37 -0
- package/dist-server/game-workflow/library-catalog.mjs +45 -0
- package/dist-server/game-workflow/project-leases.mjs +52 -0
- package/dist-server/game-workflow/projects.mjs +92 -0
- package/dist-server/game-workflow/publication-materials.mjs +67 -0
- package/dist-server/game-workflow/publications.mjs +148 -0
- package/dist-server/game-workflow/publish-capture-worker.mjs +57 -0
- package/dist-server/game-workflow/publish-capture.mjs +75 -0
- package/dist-server/game-workflow/request-store.mjs +52 -0
- package/dist-server/game-workflow/resource-catalog.mjs +97 -0
- package/dist-server/game-workflow/tasks.mjs +93 -0
- package/dist-server/mcp/asset-tools.mjs +42 -0
- package/dist-server/mcp/control-panel.html +17 -0
- package/dist-server/mcp/control-panel.mjs +59 -0
- package/dist-server/mcp/publication-page.html +86 -0
- package/dist-server/mcp/publication-page.mjs +347 -0
- package/dist-server/mcp/publication-preview.mjs +49 -0
- package/dist-server/mcp/publication-tools.mjs +22 -0
- package/dist-server/mcp/publish-panel.mjs +191 -0
- package/dist-server/mcp/server.mjs +312 -0
- package/dist-server/mcp/start.mjs +20 -0
- package/dist-server/preview/local-static-preview.mjs +71 -0
- package/dist-server/preview/preview-control.mjs +35 -0
- package/dist-server/preview/preview-launcher.mjs +26 -0
- package/dist-server/preview/preview-snapshot.mjs +35 -0
- package/dist-server/preview/preview-start.mjs +12 -0
- package/dist-server/preview/preview-worker.mjs +68 -0
- package/dist-server/upstream/craft-aigc.mjs +169 -0
- package/dist-server/upstream/library-url.mjs +14 -0
- package/dist-server/upstream/publication-transport.mjs +81 -0
- package/package.json +33 -4
- package/resources/craft-game-maker/SKILL.md +69 -0
- package/resources/craft-game-maker/js.md +9 -0
- package/resources/craft-game-maker/js3d.md +12 -0
- package/resources/game_visual_qa.mjs +1143 -0
- package/resources/js/context/CLAUDE.md +54 -0
- package/resources/js/context/agents/aigc-manager.md +91 -0
- package/resources/js/context/hooks/hooks.json +20 -0
- package/resources/js/context/knowledge/AigcEnabled.md +41 -0
- package/resources/js/context/knowledge/AigcWiring.md +200 -0
- package/resources/js/context/knowledge/AssetUrl.md +24 -0
- package/resources/js/context/knowledge/FrontendComponents.md +23 -0
- package/resources/js/context/knowledge/GameProbe.md +74 -0
- package/resources/js/context/knowledge/Lifecycle.md +27 -0
- package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -0
- package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +115 -0
- package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +392 -0
- package/resources/js/context/knowledge/PlatformServices.md +184 -0
- package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -0
- package/resources/js/context/knowledge/Ui.md +11 -0
- package/resources/js/context/knowledge/UiEditorCompat.md +21 -0
- package/resources/js/context/rules/MultiplayerCapability.md +23 -0
- package/resources/js/context/rules/MultiplayerRoomEntryUX.md +63 -0
- package/resources/js/context/rules/PlatformBoundaryModules.md +43 -0
- package/resources/js/context/skills/aigc-generate/SKILL.md +301 -0
- package/resources/js/context/skills/aigc-generate/knowledge/audio.md +39 -0
- package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +14 -0
- package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +129 -0
- package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +54 -0
- package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +50 -0
- package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +201 -0
- package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +53 -0
- package/resources/js/context/skills/aigc-generate/scripts/apply-results.mjs +83 -0
- package/resources/js/context/skills/aigc-generate/scripts/config.json +29 -0
- package/resources/js/context/skills/aigc-generate/scripts/generate.mjs +1016 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/client.mjs +228 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/ledger.mjs +119 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/nstep-handoff.mjs +100 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/pipelines.mjs +441 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/queue.mjs +283 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/submit.mjs +122 -0
- package/resources/js/context/skills/aigc-generate/scripts/worker.mjs +171 -0
- package/resources/js/context/skills/asset-search/SKILL.md +73 -0
- package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +62 -0
- package/resources/js/context/skills/asset-search/scripts/config.json +5 -0
- package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +125 -0
- package/resources/js/context/skills/asset-search/scripts/recalled_sprite_paths.mjs +47 -0
- package/resources/js/context/skills/asset-search/scripts/search.mjs +749 -0
- package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +723 -0
- package/resources/js/context/skills/asset-search/strategies/audio.md +34 -0
- package/resources/js/context/skills/asset-search/strategies/character2d.md +33 -0
- package/resources/js/context/skills/asset-search/strategies/effect2d.md +31 -0
- package/resources/js/context/skills/asset-search/strategies/texture-prop.md +22 -0
- package/resources/js/context/skills/asset-search/strategies/texture-ui.md +35 -0
- package/resources/js/context/skills/asset-search/strategies/ui-common.md +40 -0
- package/resources/js/context/skills/asset-search/strategies/ui-style.md +28 -0
- package/resources/js/context/skills/display-info-setup/SKILL.md +32 -0
- package/resources/js/context/skills/display-info-setup/scripts/init_project.mjs +38 -0
- package/resources/js/context/skills/export-config/SKILL.md +20 -0
- package/resources/js/context/skills/export-config/scripts/assert-asset-wiring.mjs +72 -0
- package/resources/js/context/skills/export-config/scripts/export-config.mjs +43 -0
- package/resources/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/js/context/skills/export-config/scripts/sync-asset-controls.mjs +351 -0
- package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +163 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +92 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +7 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +22 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/config.d.mts +19 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/config.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +39 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +25 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform.d.mts +79 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform.mjs +29 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.d.mts +49 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/release.json +37 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/cli.mjs +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.d.mts +8 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.mjs +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +3 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.mjs +8 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/assets.d.mts +24 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/assets.mjs +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/astc.d.mts +10 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/astc.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.d.mts +20 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +21 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.d.mts +17 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.d.mts +40 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.d.mts +10 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.d.mts +8 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +32 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +50 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +121 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +254 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +99 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +14 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +172 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +165 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +20 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +4 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +109 -0
- package/resources/js/context/skills/mobile-adaptation/SKILL.md +260 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +50 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +881 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +134 -0
- package/resources/js/context/skills/mobile-adaptation/references/input-config.md +311 -0
- package/resources/js/context/skills/mobile-adaptation/references/verification.md +106 -0
- package/resources/js/context/skills/optimization-suggestions/SKILL.md +89 -0
- package/resources/js/context/skills/platform-services/SKILL.md +94 -0
- package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +783 -0
- package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +57 -0
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -0
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -0
- package/resources/js/context/skills/platform-services/assets/modules/log.ts +35 -0
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +25 -0
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +1 -0
- package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +49 -0
- package/resources/js/context/skills/platform-services/assets/modules/save.mjs +1 -0
- package/resources/js/context/skills/platform-services/assets/release.json +44 -0
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -0
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -0
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -0
- package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +139 -0
- package/resources/js/context/skills/platform-services/references/api_reference.md +18 -0
- package/resources/js/context/skills/platform-services/scripts/install.mjs +134 -0
- package/resources/js/context/skills/resolution-adaptation/SKILL.md +202 -0
- package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +121 -0
- package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +254 -0
- package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +98 -0
- package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +200 -0
- package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +134 -0
- package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +119 -0
- package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +338 -0
- package/resources/js/context/skills/scene-editor-compat/SKILL.md +94 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +13 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +6 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +25 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +18 -0
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +7 -0
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +42 -0
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +144 -0
- package/resources/js/context/skills/scene-editor-compat/docs/contract.md +330 -0
- package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +64 -0
- package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +28 -0
- package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +47 -0
- package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +64 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +38 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +9 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +59 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +30 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +66 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +20 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +26 -0
- package/resources/js/context/skills/scene-editor-compat/references/contract.md +73 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +162 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +853 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +173 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +427 -0
- package/resources/js/context/skills/scene-editor-compat/version.json +1 -0
- package/resources/js/context/skills/ui-editor-compat/SKILL.md +48 -0
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -0
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +74 -0
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -0
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -0
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -0
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +7 -0
- package/resources/js/context/skills/ui-editor-compat/references/contract.md +132 -0
- package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -0
- package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -0
- package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -0
- package/resources/js/context/skills/version-update/SKILL.md +192 -0
- package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -0
- package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +159 -0
- package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +157 -0
- package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js/context/skills/visual-qa/SKILL.md +36 -0
- package/resources/js/context/version/version.json +1 -0
- package/resources/js/project/.gitattributes +2 -0
- package/resources/js/project/README.md +99 -0
- package/resources/js/project/SPEC/assist/.gitkeep +0 -0
- package/resources/js/project/SPEC/guide/.gitkeep +0 -0
- package/resources/js/project/SPEC/plan/.gitkeep +0 -0
- package/resources/js/project/SPEC/readme.md +6 -0
- package/resources/js/project/SPEC/res/.gitkeep +0 -0
- package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
- package/resources/js/project/configs/assets.json +1 -0
- package/resources/js/project/configs/game.controls.json +3 -0
- package/resources/js/project/configs/game.json +3 -0
- package/resources/js/project/game-runtime.json +7 -0
- package/resources/js/project/gameplay-probe.json +37 -0
- package/resources/js/project/index.html +20 -0
- package/resources/js/project/package-lock.json +1155 -0
- package/resources/js/project/package.json +23 -0
- package/resources/js/project/projectDisplayInfo.json +7 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.d.mts +19 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +39 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +25 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.d.mts +79 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.mjs +29 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +49 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/release.json +37 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +8 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +3 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +8 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.d.mts +24 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.d.mts +10 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +20 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +21 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +17 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +40 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +10 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +8 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +1 -0
- package/resources/js/project/scripts/config-export.mjs +32 -0
- package/resources/js/project/scripts/refresh-runtime.mjs +50 -0
- package/resources/js/project/src/display/ui-stage.ts +121 -0
- package/resources/js/project/src/display/viewport.ts +254 -0
- package/resources/js/project/src/main.ts +99 -0
- package/resources/js/project/src/platform.ts +14 -0
- package/resources/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/js/project/src/screenUi.ts +172 -0
- package/resources/js/project/src/style.css +165 -0
- package/resources/js/project/tsconfig.json +20 -0
- package/resources/js/project/unified_data_control_config.json +20 -0
- package/resources/js/project/vendor/core-manager-js/package.json +33 -0
- package/resources/js/project/vendor/core-manager-js/src/.versions.json +42 -0
- package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +41 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +90 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +203 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +106 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +25 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +21 -0
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +65 -0
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +340 -0
- package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +87 -0
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +92 -0
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +271 -0
- package/resources/js/project/vendor/core-manager-js/src/index.ts +31 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +81 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +43 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +32 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +141 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +20 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +183 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +304 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +351 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +180 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +13 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +14 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +68 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +433 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +118 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +444 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +485 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +66 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +149 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +9 -0
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +29 -0
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +88 -0
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +122 -0
- package/resources/js/project/vendor/core-manager-js/src/runtime.ts +24 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +318 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +151 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +235 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +98 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +94 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +209 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +106 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +341 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +68 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +236 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +22 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +29 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +197 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +9 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +555 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +112 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +178 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +246 -0
- package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +139 -0
- package/resources/js/project/vendor/core-manager-js/tsconfig.json +15 -0
- package/resources/js/project/vendor/run.sh +107 -0
- package/resources/js/project/version/craft_feature_version.json +42 -0
- package/resources/js/project/version/project_feature_version.json +11 -0
- package/resources/js/project/vite.config.ts +4 -0
- package/resources/js3d/context/CLAUDE.md +50 -0
- package/resources/js3d/context/hooks/hooks.json +20 -0
- package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +87 -0
- package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +69 -0
- package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +42 -0
- package/resources/js3d/context/knowledge/FrontendComponents.md +23 -0
- package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -0
- package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +117 -0
- package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +430 -0
- package/resources/js3d/context/knowledge/PlatformServices.md +162 -0
- package/resources/js3d/context/knowledge/Runtime.md +30 -0
- package/resources/js3d/context/knowledge/SceneEditorCompat.md +34 -0
- package/resources/js3d/context/knowledge/StepByStep.md +21 -0
- package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -0
- package/resources/js3d/context/knowledge/UiEditorCompat.md +21 -0
- package/resources/js3d/context/rules/MultiplayerCapability.md +27 -0
- package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +63 -0
- package/resources/js3d/context/rules/PlatformBoundaryModules.md +43 -0
- package/resources/js3d/context/skills/aigc-integration/SKILL.md +176 -0
- package/resources/js3d/context/skills/aigc-integration/callback.md +56 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +22 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +38 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +33 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +36 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +37 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +35 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/config.json +3 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/lib/submit.mjs +344 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/query-music.mjs +53 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/query-results.mjs +53 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-cover.mjs +44 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-image.mjs +48 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-music.mjs +34 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-staticmesh.mjs +39 -0
- package/resources/js3d/context/skills/asset-search/SKILL.md +159 -0
- package/resources/js3d/context/skills/asset-search/references/resource-config.md +56 -0
- package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +62 -0
- package/resources/js3d/context/skills/asset-search/scripts/config.json +213 -0
- package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +885 -0
- package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +79 -0
- package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +74 -0
- package/resources/js3d/context/skills/asset-search/scripts/search.mjs +597 -0
- package/resources/js3d/context/skills/export-config/scripts/assert-asset-wiring.mjs +83 -0
- package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +53 -0
- package/resources/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/js3d/context/skills/export-config/scripts/sync-asset-controls.mjs +325 -0
- package/resources/js3d/context/skills/export-config/scripts/sync-scene-assets.mjs +181 -0
- package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +163 -0
- package/resources/js3d/context/skills/game-art-style/SKILL.md +60 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cartoon.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/comic.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cozy.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cyber.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/horror.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/lowpoly.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/paper.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/voxel.png +0 -0
- package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +38 -0
- package/resources/js3d/context/skills/game-art-style/references/construction.md +111 -0
- package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +105 -0
- package/resources/js3d/context/skills/game-art-style/references/sources.md +25 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +175 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +168 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +191 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +165 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +173 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +185 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +181 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +189 -0
- package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +88 -0
- package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +284 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +104 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +952 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +256 -0
- package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +311 -0
- package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +106 -0
- package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +74 -0
- package/resources/js3d/context/skills/platform-services/SKILL.md +94 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +783 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +57 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +35 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +25 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +1 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +49 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +1 -0
- package/resources/js3d/context/skills/platform-services/assets/release.json +44 -0
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -0
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -0
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -0
- package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +139 -0
- package/resources/js3d/context/skills/platform-services/references/api_reference.md +18 -0
- package/resources/js3d/context/skills/platform-services/scripts/install.mjs +134 -0
- package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +170 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +121 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +244 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +127 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +188 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +124 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +117 -0
- package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +338 -0
- package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +599 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +141 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +92 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +125 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +113 -0
- package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +1187 -0
- package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +52 -0
- package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +4 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +94 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +50 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +105 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +147 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +79 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +56 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +51 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +55 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +78 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +84 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +120 -0
- package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +4 -0
- package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +238 -0
- package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +59 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +61 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +7 -0
- package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +110 -0
- package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -0
- package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -0
- package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -0
- package/resources/js3d/context/skills/version-update/SKILL.md +191 -0
- package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -0
- package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +159 -0
- package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +157 -0
- package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js3d/context/version/version.json +1 -0
- package/resources/js3d/project/.gitattributes +2 -0
- package/resources/js3d/project/README.md +100 -0
- package/resources/js3d/project/configs/game.controls.json +3 -0
- package/resources/js3d/project/configs/game.json +3 -0
- package/resources/js3d/project/game-runtime.json +7 -0
- package/resources/js3d/project/gameplay-probe.json +38 -0
- package/resources/js3d/project/index.html +12 -0
- package/resources/js3d/project/package-lock.json +1204 -0
- package/resources/js3d/project/package.json +24 -0
- package/resources/js3d/project/projectDisplayInfo.json +7 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.d.mts +19 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +39 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +25 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.d.mts +79 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +30 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +49 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +39 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +8 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +3 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +7 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.d.mts +24 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.d.mts +10 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +20 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +21 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +36 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +359 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.test.mjs +25 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +17 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +40 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +10 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +8 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +1 -0
- package/resources/js3d/project/scripts/config-export.mjs +32 -0
- package/resources/js3d/project/scripts/refresh-runtime.mjs +50 -0
- package/resources/js3d/project/src/display/ui-stage.ts +121 -0
- package/resources/js3d/project/src/display/viewport.ts +244 -0
- package/resources/js3d/project/src/main.ts +83 -0
- package/resources/js3d/project/src/platform.ts +14 -0
- package/resources/js3d/project/src/style.css +17 -0
- package/resources/js3d/project/tsconfig.json +20 -0
- package/resources/js3d/project/unified_data_control_config.json +20 -0
- package/resources/js3d/project/vendor/core-manager-three/package.json +12 -0
- package/resources/js3d/project/vendor/core-manager-three/src/index.ts +2 -0
- package/resources/js3d/project/vendor/run.sh +4 -0
- package/resources/js3d/project/version/craft_feature_version.json +42 -0
- package/resources/js3d/project/version/project_feature_version.json +11 -0
- package/resources/js3d/project/vite.config.ts +4 -0
- package/vendor/agent-cli/dist/runtime-tools/registry.json +6 -0
- package/vendor/agent-cli/dist/runtime-tools/tool-bundle-types.d.cts +15 -0
- package/vendor/agent-cli/dist/runtime-tools/tool-bundle.cjs +129 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/blender-cook-assets.cjs +296 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/context-adapter.cjs +48 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/scene-process-lock.cjs +110 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/tool-manifest.json +22 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/ue-asset-references.cjs +305 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts +3 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js +45 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js.map +1 -0
- 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/prepare.d.ts +57 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.js +198 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +32 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +146 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts +28 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.js +384 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts +15 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.js +152 -0
- package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.d.ts +4 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.js +24 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.d.ts +23 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.js +62 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.d.ts +9 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.js +15 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.d.ts +3 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.js +284 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.d.ts +11 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.js +161 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/options.d.ts +83 -0
- package/vendor/agent-cli/dist/src/cli/options.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/options.js +213 -0
- package/vendor/agent-cli/dist/src/cli/options.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts +5 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.js +276 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/registry.d.ts +55 -0
- package/vendor/agent-cli/dist/src/cli/registry.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/registry.js +99 -0
- package/vendor/agent-cli/dist/src/cli/registry.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.d.ts +44 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.js +83 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.d.ts +28 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.js +52 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli.d.ts +9 -0
- package/vendor/agent-cli/dist/src/cli.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli.js +54 -0
- package/vendor/agent-cli/dist/src/cli.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/execution.d.ts +24 -0
- package/vendor/agent-cli/dist/src/component/execution.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/execution.js +131 -0
- package/vendor/agent-cli/dist/src/component/execution.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts +24 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.js +200 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts +31 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js +57 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation.d.ts +10 -0
- package/vendor/agent-cli/dist/src/component/preparation.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation.js +35 -0
- package/vendor/agent-cli/dist/src/component/preparation.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.d.ts +15 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.js +37 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime.d.ts +8 -0
- package/vendor/agent-cli/dist/src/component/runtime.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime.js +95 -0
- package/vendor/agent-cli/dist/src/component/runtime.js.map +1 -0
- package/vendor/agent-cli/dist/src/config/config-store.d.ts +50 -0
- package/vendor/agent-cli/dist/src/config/config-store.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/config/config-store.js +117 -0
- package/vendor/agent-cli/dist/src/config/config-store.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.d.ts +17 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.js +133 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.d.ts +9 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.js +51 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts +4 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.js +54 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.d.ts +12 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.js +100 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-budget.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/context-budget.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-budget.js +10 -0
- package/vendor/agent-cli/dist/src/context/context-budget.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts +108 -0
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-cache.js +357 -0
- package/vendor/agent-cli/dist/src/context/context-cache.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-project.d.ts +26 -0
- package/vendor/agent-cli/dist/src/context/context-project.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-project.js +113 -0
- package/vendor/agent-cli/dist/src/context/context-project.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-resource.d.ts +4 -0
- package/vendor/agent-cli/dist/src/context/context-resource.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-resource.js +11 -0
- package/vendor/agent-cli/dist/src/context/context-resource.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts +9 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js +134 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts +4 -0
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/local-skills.js +157 -0
- package/vendor/agent-cli/dist/src/context/local-skills.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-context.d.ts +19 -0
- package/vendor/agent-cli/dist/src/context/member-context.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-context.js +105 -0
- package/vendor/agent-cli/dist/src/context/member-context.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-documents.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/member-documents.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-documents.js +38 -0
- package/vendor/agent-cli/dist/src/context/member-documents.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.js +62 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile.d.ts +43 -0
- package/vendor/agent-cli/dist/src/context/member-profile.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile.js +91 -0
- package/vendor/agent-cli/dist/src/context/member-profile.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-selection.d.ts +7 -0
- package/vendor/agent-cli/dist/src/context/member-selection.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-selection.js +58 -0
- package/vendor/agent-cli/dist/src/context/member-selection.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts +6 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.js +24 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js +55 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-definition.d.ts +39 -0
- package/vendor/agent-cli/dist/src/context/team-definition.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-definition.js +78 -0
- package/vendor/agent-cli/dist/src/context/team-definition.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts +7 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.js +37 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts +27 -0
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-cache.js +100 -0
- package/vendor/agent-cli/dist/src/context/template-cache.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts +32 -0
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-seed.js +117 -0
- package/vendor/agent-cli/dist/src/context/template-seed.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.d.ts +19 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +292 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts +13 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.js +178 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.d.ts +54 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.js +184 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.d.ts +14 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.js +130 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.js.map +1 -0
- package/vendor/agent-cli/dist/src/index.d.ts +58 -0
- package/vendor/agent-cli/dist/src/index.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/index.js +84 -0
- package/vendor/agent-cli/dist/src/index.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts +68 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js +242 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.d.ts +40 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js +87 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.d.ts +134 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.js +152 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.d.ts +40 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.js +149 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/client.d.ts +12 -0
- package/vendor/agent-cli/dist/src/mcp/client.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/client.js +95 -0
- package/vendor/agent-cli/dist/src/mcp/client.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/connection.d.ts +14 -0
- package/vendor/agent-cli/dist/src/mcp/connection.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/connection.js +115 -0
- package/vendor/agent-cli/dist/src/mcp/connection.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/execute.d.ts +5 -0
- package/vendor/agent-cli/dist/src/mcp/execute.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/execute.js +26 -0
- package/vendor/agent-cli/dist/src/mcp/execute.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.d.ts +11 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.js +51 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/types.d.ts +27 -0
- package/vendor/agent-cli/dist/src/mcp/types.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/types.js +2 -0
- package/vendor/agent-cli/dist/src/mcp/types.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/input.d.ts +21 -0
- package/vendor/agent-cli/dist/src/protocol/input.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/input.js +95 -0
- package/vendor/agent-cli/dist/src/protocol/input.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.d.ts +58 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.js +337 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.d.ts +13 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.js +27 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.d.ts +57 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.js +93 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.d.ts +28 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.js +86 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.d.ts +14 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.js +40 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.d.ts +31 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.js +90 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.d.ts +32 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.js +106 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts +509 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js +131 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +351 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +103 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.d.ts +9 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.js +58 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-parse.d.ts +21 -0
- package/vendor/agent-cli/dist/src/security/command-parse.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-parse.js +395 -0
- package/vendor/agent-cli/dist/src/security/command-parse.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts +30 -0
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-translate.js +161 -0
- package/vendor/agent-cli/dist/src/security/command-translate.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.d.ts +18 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.js +121 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/guard.d.ts +41 -0
- package/vendor/agent-cli/dist/src/security/guard.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/guard.js +154 -0
- package/vendor/agent-cli/dist/src/security/guard.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts +47 -0
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/mount-table.js +164 -0
- package/vendor/agent-cli/dist/src/security/mount-table.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.d.ts +23 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.js +110 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.d.ts +5 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.js +16 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts +16 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.js +88 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts +116 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/client.js +376 -0
- package/vendor/agent-cli/dist/src/session/client.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts +6 -0
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/custom-context.js +100 -0
- package/vendor/agent-cli/dist/src/session/custom-context.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.d.ts +38 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.js +87 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.js +15 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-config.d.ts +13 -0
- package/vendor/agent-cli/dist/src/session/link-config.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-config.js +29 -0
- package/vendor/agent-cli/dist/src/session/link-config.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.d.ts +30 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.js +67 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-session.d.ts +76 -0
- package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-session.js +412 -0
- package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/local-execution.d.ts +28 -0
- package/vendor/agent-cli/dist/src/session/local-execution.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/local-execution.js +119 -0
- package/vendor/agent-cli/dist/src/session/local-execution.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/member-tools.d.ts +22 -0
- package/vendor/agent-cli/dist/src/session/member-tools.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/member-tools.js +72 -0
- package/vendor/agent-cli/dist/src/session/member-tools.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.d.ts +7 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.js +30 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-environment.js +22 -0
- package/vendor/agent-cli/dist/src/session/process-environment.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-request.d.ts +36 -0
- package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-request.js +494 -0
- package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts +8 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.js +34 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-events.d.ts +81 -0
- package/vendor/agent-cli/dist/src/session/run-events.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-events.js +160 -0
- package/vendor/agent-cli/dist/src/session/run-events.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts +76 -0
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-setup.js +273 -0
- package/vendor/agent-cli/dist/src/session/run-setup.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +41 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.js +64 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.d.ts +17 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.js +75 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts +37 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js +232 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts +5 -0
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-choice.js +80 -0
- package/vendor/agent-cli/dist/src/session/user-choice.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts +31 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js +104 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/app-id.d.ts +13 -0
- package/vendor/agent-cli/dist/src/shared/app-id.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/app-id.js +25 -0
- package/vendor/agent-cli/dist/src/shared/app-id.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.d.ts +13 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.js +16 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.d.ts +3 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.js +22 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.d.ts +14 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.js +29 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.d.ts +36 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.js +94 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.d.ts +3 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.js +11 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-types.d.ts +60 -0
- package/vendor/agent-cli/dist/src/shared/process-types.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-types.js +10 -0
- package/vendor/agent-cli/dist/src/shared/process-types.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.d.ts +7 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.js +113 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.d.ts +47 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.js +210 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts +458 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.js +2 -0
- package/vendor/agent-cli/dist/src/shared/types.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts +22 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.js +2 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.d.ts +9 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.js +85 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts +30 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.js +96 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.d.ts +16 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.js +104 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts +21 -0
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program.js +207 -0
- package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts +61 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.js +477 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts +58 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.js +322 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.d.ts +24 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.js +160 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts +66 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js +65 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.d.ts +29 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.js +88 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.d.ts +42 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.js +34 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.js.map +1 -0
- package/vendor/agent-cli/package.json +29 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aigc-generate
|
|
3
|
+
description: AIGC 资产生成执行器。何时提交见 knowledge/AigcEnabled.md。首轮按 non-stepwise-aigc。迭代生成见「迭代生成」。一批只能一种资源类型,上限序列帧 3 / 图片 10 / 音频 7;下一批等上一批终态。音频只生成 BGM,禁止音效。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# AIGC Generate
|
|
7
|
+
|
|
8
|
+
提交前先按批次把本次要生成的资产列给用户(不等确认)。清单格式见 SOP 2,拆批上限见硬约束。
|
|
9
|
+
首轮见「首轮直接生成」。
|
|
10
|
+
首轮与批量用 `--submit-only` 拿 `task_id` 即返回,**不原地阻塞**;收尾拿到 `result_url` 后再接线。
|
|
11
|
+
已 spawn `aigc-manager` 时收尾:`wait_for_tasks` 之后必须 `--ledger`(见「硬约束」)。
|
|
12
|
+
结果确认后,用 `node "${CLAUDE_SKILL_DIR}/scripts/apply-results.mjs" --names slot_a,slot_b` 按槽位名回填通过类型校验的 completed 结果;再导出配置并做视觉检查。
|
|
13
|
+
失败不改工程文件。
|
|
14
|
+
`name` 即实体名(资产身份,全局唯一),`category`(audio 再加 `audio_role`)随调用参数传入,
|
|
15
|
+
本脚本不读取 SPEC;提示词由调用方按 `SPEC/plan/游戏设计.md` 构造。
|
|
16
|
+
|
|
17
|
+
## 支持范围
|
|
18
|
+
|
|
19
|
+
| category | 产物 | 备注 |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `texture-ui` | 单张 2D 图 | 面板/按钮/图标/头像/立绘 |
|
|
22
|
+
| `texture-scene` | 单张 2D 图 | 地块/植被/山石等元素,也可整图背景 / 全景场景图 |
|
|
23
|
+
| `texture-prop` | 单张 2D 图 | 独立物件/道具/可点拾取物/投射物/掉落物(投射物与经验球等同档,显示尺寸见 `AigcWiring.md`「显示尺寸」,禁止套可点拾取物档) |
|
|
24
|
+
| `audio` | 音乐 / BGM | 只接 `audio_role=bgm` / `ambience`。**禁止音效** |
|
|
25
|
+
| `character2d` | 角色动作序列帧 | 仅本轮会切帧播。先立绘再动作。静图立绘走 `texture-ui`。判据见 `non-stepwise-aigc.md` 第 1 步 |
|
|
26
|
+
|
|
27
|
+
上表以外(3D / 骨骼 / 动捕 / 用户说「生成 xx 模型」)不要提交、不要改画成 2D。对用户说「当前是 2D 游戏,不支持生成 xxx」。代价:后端无管线;降级出图用户以为模型已生成。
|
|
28
|
+
|
|
29
|
+
**跳过、不提交:**
|
|
30
|
+
- `effect2d`:程序绘制(`this.tweens.add` / Phaser 粒子)。
|
|
31
|
+
- `audio_role=sfx` 与 `*_sfx` / `win_sfx` / `lose_sfx`:程序合成。脚本对 `sfx` 报 `sfx_disabled`。用户要「AI 生成音效」时说不支持,不要改画成 BGM。
|
|
32
|
+
|
|
33
|
+
默认可文件化实体走 AIGC;血条等实时矢量、特效、音效保持程序。零散装饰可直绘;面积大的装饰必须 AIGC。静态图总量不设上限。序列帧首轮条数见硬约束「首轮序列帧条数」。谁进清单见 `non-stepwise-aigc.md` / `batch-replace.md`。接线见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
34
|
+
|
|
35
|
+
## 硬约束
|
|
36
|
+
|
|
37
|
+
脚本会报:`mixed_kind_batch`、`too_many_tasks`、`previous_batch_not_done`、`code_handed_off`、`nstep_no_tasks`。
|
|
38
|
+
|
|
39
|
+
- **一批一种类型**,一次 `--submit-only`。上限:`character2d` **3**;`texture-*` **10**;`audio` **7**。同类型尽量填满。禁止一次一个(代价:确认轮次翻倍)。只有后一个任务需要前一个 URL 才单独一批——目前只有「后面要交动作」的立绘。
|
|
40
|
+
- **首轮序列帧条数**:`character2d` 最多 **3 条**(正好一批,禁止再开下一批),只做主角,按序取满即停:`idle` → `move`(无则 `run`/`walk` 取一)→ `attack`;没有的跳过,凑不满就少交。主角也必须本轮会切帧播(判据见 `non-stepwise-aigc.md` 第 1 步),否则这 3 条为 0。怪物 / Boss / 大装饰只出立绘,不交 `character2d`。用户点名动作或走迭代不受此限。
|
|
41
|
+
- **谁交下一批**:Code 只交第 1 批后立刻 spawn `aigc-manager`(`run_in_background: true`)。其余由 manager 在上一批终态后交,且必须 `--role manager`。Code 禁止再 `--submit-only` / `--query` / `--tasks`。禁止同一组工具两条 submit(任务中心出现两批待确认 = 分批失败)。不同类型也串行:面板只有一个。
|
|
42
|
+
- **禁止 `--tasks`**,禁止用 `sleep`/`seq`/`for` 包 `--query` 等出图(代价:编码停十几分钟)。manager 用单独的 `--query` 轮询除外(仍禁止 `--tasks`)。收尾已 spawn → `wait_for_tasks` 之后必须 `--ledger`(stdout 原样进工具输出,不要只 Read `results.json`)。禁止 `--query` / `--submit-only`,禁止第二次 spawn。第 1 批交出后无 `--role manager` 再调会 `code_handed_off` / `nstep_no_tasks`。
|
|
43
|
+
- **同一 name 不重交**(重复计费)。`cancelled` / `timeout` 不是 `running`,处置只在「读结果」。用户点名且改过 prompt 的槽可重跑一次。
|
|
44
|
+
- **提交前按批列清单**给用户(格式 SOP 2),不等确认。未进任务中心的批次不要说成在等确认。
|
|
45
|
+
- **接线**:保形 / 铺满 / 序列帧图集只在 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。本轮实际提交并接线后:`npm run config:export` → 调用 `game_visual_qa`。顺序与常驻 `CLAUDE.md` 相同。
|
|
46
|
+
|
|
47
|
+
限流 `queued`、排队超时、失败放行:只看「读结果」。
|
|
48
|
+
|
|
49
|
+
## SOP
|
|
50
|
+
|
|
51
|
+
### 1. 构造提示词
|
|
52
|
+
|
|
53
|
+
按 category 读取对应模板,产出分维度提示词(格式 `【维度名】内容`,每维度一行):
|
|
54
|
+
|
|
55
|
+
| category | 模板 |
|
|
56
|
+
|---|---|
|
|
57
|
+
| `texture-ui` | `${CLAUDE_SKILL_DIR}/knowledge/texture-ui.md` |
|
|
58
|
+
| `texture-scene` | `${CLAUDE_SKILL_DIR}/knowledge/texture-scene.md` |
|
|
59
|
+
| `texture-prop` | `${CLAUDE_SKILL_DIR}/knowledge/texture-prop.md` |
|
|
60
|
+
| `audio` | `${CLAUDE_SKILL_DIR}/knowledge/audio.md` |
|
|
61
|
+
| `character2d` | `${CLAUDE_SKILL_DIR}/knowledge/character2d.md` |
|
|
62
|
+
|
|
63
|
+
只读**本次用到的**那一份,不要全读。
|
|
64
|
+
|
|
65
|
+
要求:
|
|
66
|
+
|
|
67
|
+
- **★ 每个资产构造前先读 `SPEC/plan/游戏设计.md`** 里该实体的外形、配色、动作描述。`尺寸` 不写进提示词,接线尺寸见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`「显示尺寸」。
|
|
68
|
+
角色立绘朝向、`size`、构图见 `knowledge/character2d.md`「默认朝右」与「立绘 prompt」。
|
|
69
|
+
- 图片的 `【不要什么】` 维度按实际需要填写:图标 / 单体物件建议排除「文字、水印、复杂背景」;
|
|
70
|
+
整图背景 / 全景场景图不要排除背景类内容。
|
|
71
|
+
- **除整图背景 / 全景场景图 / 封面图外,一律抠图**:
|
|
72
|
+
角色 / 图标 / 物件 / 特效 / 地块方格 / 地面条带 / 跳跃平台贴进游戏是带透明底叠加的,
|
|
73
|
+
有色底就是色块。脚本对提示词命中 `FULL_CANVAS_HINTS`(含「整图背景」「封面图」)
|
|
74
|
+
的传 `matting: false`,其余默认 `matting: true`。调用方不要传 `matting`。
|
|
75
|
+
需要抠图的:`【风格】` 写「**透明背景**」(单图)或「**纯色背景(非白非黑,如纯青 / 纯品红)便于抠图**」
|
|
76
|
+
(序列帧);`【不要什么】` 加「不要白色背景、不要黑色背景」。
|
|
77
|
+
整图背景 / 封面图写「无透明区域」,不抠图。
|
|
78
|
+
- **cover 铺满类必须声明出血安全区**(整图背景 / 全景场景图 / 封面图):
|
|
79
|
+
方向读 `projectDisplayInfo.json` 的 `orientation`(`landscape-wide` 会原样写入,不要把宽>高都当成 `landscape`)。`【视角】` 抄下表。
|
|
80
|
+
重要内容收进安全框,出血区只放可牺牲氛围。不要另编比例。
|
|
81
|
+
提交 `size` 见「尺寸选择」。接线 `cover` 见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
82
|
+
|
|
83
|
+
| `orientation` | 提示词安全区 |
|
|
84
|
+
|---|---|
|
|
85
|
+
| `landscape` | 不必为 cover 留边 |
|
|
86
|
+
| `landscape-wide` | 上下各留 12% |
|
|
87
|
+
| `portrait` | 左右各留 12% |
|
|
88
|
+
- **整图背景 / 封面:画面要连贯,禁止分区声明式提示词**:
|
|
89
|
+
不要写「画面上 N% 为 X 区域、下 M% 为预留区」——模型会切成纯色块。用近景、远山、光线衰减
|
|
90
|
+
描述暗调;仍须有场景内容,不要纯黑空白。
|
|
91
|
+
玩法整图背景的空间布局见 `knowledge/texture-scene.md`「玩法空间布局」。
|
|
92
|
+
- **音频 prompt** 只写可循环音乐,见 `knowledge/audio.md`。禁止音效见「支持范围」。
|
|
93
|
+
- **图片的 `【风格】` 维度必须落到 `游戏设计.md` 的画风名、色值、边缘与质感**,不能只写「像素风」「卡通风」这类品类词。
|
|
94
|
+
取值来源与禁抄项见各 category 模板的 `【风格】` 段。与用户本轮明确诉求冲突时以用户为准。
|
|
95
|
+
- **同一批资产共用同一个风格锚点串**:先从 `游戏设计.md` 提炼一段固定风格描述(画风名 + 边缘 + 质感 + 主色),本批每张图的 `【风格】` 都原样复制、只追加该资产特有内容。
|
|
96
|
+
- 图标构图见 `knowledge/texture-ui.md`;物件构图见 `knowledge/texture-prop.md`。
|
|
97
|
+
整图背景与图块铺满见 `knowledge/texture-scene.md`。
|
|
98
|
+
- **画面质量词写进 prompt(美感下限)**:每张图的描述带上构图与光影的明确指令——
|
|
99
|
+
主体水平居中且视线有引导(落地角色见 `knowledge/character2d.md`,物件见 `knowledge/texture-prop.md`,不要整图居中),光源方向统一、明暗有层次、
|
|
100
|
+
色彩关系克制。不写这些,文生图默认出「平光 + 居中怼脸」。整图背景类写明地平线与纵深分层即可。
|
|
101
|
+
- 画风描述并入 `prompt` 文本。`style` 参数是后端的固定枚举,默认不传(见下表)。
|
|
102
|
+
|
|
103
|
+
### 2. 列清单并执行
|
|
104
|
+
|
|
105
|
+
先把本次要生成的资产**按批次**列给用户,不带 slot 名、接口名与技术细节。不等确认。
|
|
106
|
+
谁提交:见硬约束(Code 只交第 1 批)。拆批上限见硬约束。
|
|
107
|
+
|
|
108
|
+
格式(一批一行;只写资产名与类型):
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
第 1 批:英雄立绘(图)
|
|
112
|
+
第 2 批:主场景背景、地面、金币(图)
|
|
113
|
+
第 3 批:主题 BGM(音)
|
|
114
|
+
第 4 批:英雄待机、英雄跑动、英雄跳跃(序列帧)
|
|
115
|
+
第 5 批:……
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
第 1 批内容:会出序列帧的角色,立绘单独第 1 批(多角色立绘可同批,不要塞背景)。没有 `character2d` 时立绘进普通图片批。首轮谁会出序列帧见硬约束「首轮序列帧条数」。其余顺序:图片(背景靠前)→ 音频 → 动作(manager 在立绘 URL 之后交)。
|
|
119
|
+
|
|
120
|
+
提交用 `--submit-only`,查询用 `--query`。
|
|
121
|
+
禁止同一条命令里再写另一个旗——后一旗会被当成 JSON,脚本报失败。
|
|
122
|
+
查询 JSON 短,`--query` 仍可跟单引号数组。
|
|
123
|
+
|
|
124
|
+
`--submit-only` 后面只跟文件路径。数组写进命令行脚本报 `invalid_args`。
|
|
125
|
+
|
|
126
|
+
1. `write_file` 把本批数组写到 `${CLAUDE_PROJECT_DIR}/.aigc-queue/submit.json`(会创建父目录)。文件里可以真换行。
|
|
127
|
+
2. 再跑:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
node "${CLAUDE_SKILL_DIR}/scripts/generate.mjs" \
|
|
131
|
+
--interface image_gen --path "英雄头像" \
|
|
132
|
+
--submit-only "${CLAUDE_PROJECT_DIR}/.aigc-queue/submit.json"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
`submit.json` 内容示例(图片一条):
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
[{"name":"hero_avatar","category":"texture-ui","prompt":"【视角】...\n【风格】...\n【物件描述】...\n【不要什么】不要文字,不要水印,不要复杂背景","size":"1024x1024"}]
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
`name` 必须是刚列给用户的那一批实体名,不得另造。另造的 name 一旦交出就写入 `code-handoff`,清单里的实体交不出去且重复计费。
|
|
142
|
+
`invalid_args` / `JSON 解析失败` = 没交出(无 `task_id`、不写 `code-handoff.json`)。把**同一批**再 `write_file` 后交一次。
|
|
143
|
+
|
|
144
|
+
`--interface` / `--path` **必填**。缺了脚本报 `invalid_args`,对话流也没有卡片:
|
|
145
|
+
|
|
146
|
+
- `--interface`:英文枚举——图片与序列帧 `image_gen`,音乐 `audio_gen`。同类型只传一个;多条同类型共用该值。只进卡片,不进 HTTP。
|
|
147
|
+
- `--path`:展示名,**可为中文**(如 `角色立绘`);多条逗号拼接,与 `--submit-only` / `--query` 顺序对齐。写入卡片 `assets[].path`,**同时作为 HTTP `resource_name`**(资源中心展示名)。**不是**实体名。
|
|
148
|
+
|
|
149
|
+
该命令提交成功即返回。一次调用只含一批。下一批由谁交、何时交:见硬约束。
|
|
150
|
+
|
|
151
|
+
每条 task 字段:
|
|
152
|
+
|
|
153
|
+
| 字段 | 必填 | 说明 |
|
|
154
|
+
|---|---|---|
|
|
155
|
+
| `name` | ✅ | 实体名(资产身份,全局唯一),取自本轮清单;后端会回传用于结果对位 |
|
|
156
|
+
| `category` | ✅ | 见「支持范围」,取自本轮清单 |
|
|
157
|
+
| `audio_role` | — | 仅 `audio`:`bgm` / `ambience`,缺省 `bgm`。**禁止 `sfx`**(脚本报 `sfx_disabled`) |
|
|
158
|
+
| `prompt` | ✅ | 上一步产出的分维度提示词 |
|
|
159
|
+
| `size` | — | 仅图片。只准 `1024x1024` / `1024x768` / `768x1024` / `1280x720` / `720x1280`,非法回落 `1024x1024` |
|
|
160
|
+
| `matting` | — | 仅图片,是否抠图。**调用方不要传**(默认行为见「构造提示词」);仅当你明确要改时才传 boolean |
|
|
161
|
+
| `style` | — | 仅图片,后端画风枚举 `pixel`/`cartoon`/`anime`/`cyberpunk`。默认不传——画风已写在 `【风格】` 维度里,再传会让后端叠加一层风格前缀 |
|
|
162
|
+
| `image_url` | 序列帧✅ | **必须是 `*.craft.qq.com`**。`character2d` 必填该角色立绘 URL(见 `character2d.md`「首帧参考图」);不填脚本会为每条动作各出一张首帧。图片类选填,给了就改走图文生图 |
|
|
163
|
+
| `duration` | — | **整数秒**(后端是 int32,小数会被拒;脚本会取整并 warn)。音乐 `[10,240]` 默认 120。**序列帧**:动作时长秒 `[3,5]` 默认 3,越界截断。**只是生成提示,不是精确帧数**——抽帧后以 manifest 的 `frameCount` 为准(实测 3 秒 ≈ 37 帧,即约 12fps,首尾帧独立、不重复);接线时按 manifest 的 `frameCount`/`fps` 播,不要按 duration 反推帧数 |
|
|
164
|
+
| `bpm` | — | 仅音乐,`[40,240]`,默认 120 |
|
|
165
|
+
| `reference_prompt` | — | 仅序列帧。已传 `image_url` 则无效 |
|
|
166
|
+
| `clip_start` / `clip_end` | — | 仅序列帧,抽帧区间(秒,可为小数);同为 0 / 不传表示对整段视频抽帧 |
|
|
167
|
+
|
|
168
|
+
尺寸选择:枚举只在上表。图标/道具 `1024x1024`;立绘只在 `knowledge/character2d.md`「立绘 prompt」;背景/全景/最远层只在 `knowledge/texture-scene.md`「背景 size」。
|
|
169
|
+
|
|
170
|
+
`character2d` 必须带立绘 `image_url`,做法只在 `knowledge/character2d.md`「首帧参考图」。Code 交完立绘批即 spawn manager,不要在本节 `--query` 等图集。
|
|
171
|
+
|
|
172
|
+
序列帧同样先 `write_file` 再交(缺 `image_url` 会各动作各出一张首帧,同一角色会变成几个人)。
|
|
173
|
+
`submit.json` 内容示例:
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
[{"name":"hero_run","category":"character2d","image_url":"https://file.craft.qq.com/.../hero.png","prompt":"【视角】正侧面平视,固定机位...\n【动作描述】原地奔跑循环,首尾衔接可无缝循环\n【风格】像素艺术,纯色背景便于抠图\n【不要什么】不要 3D 渲染,不要写实风格,不要镜头移动,不要角色位移,不要背景元素,不要白色背景,不要黑色背景","duration":3}]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
node "${CLAUDE_SKILL_DIR}/scripts/generate.mjs" \
|
|
181
|
+
--interface image_gen --path "角色跑动" \
|
|
182
|
+
--submit-only "${CLAUDE_PROJECT_DIR}/.aigc-queue/submit.json"
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
> 上例的画风是像素艺术,所以排除「3D 渲染 / 写实风格」。**画风反面词按本项目的画风名取**,
|
|
186
|
+
> 不要照抄——项目画风是写实厚涂时排除写实就否掉了本局画风(见各模板 `【不要什么】`)。
|
|
187
|
+
|
|
188
|
+
### 3. 读结果
|
|
189
|
+
|
|
190
|
+
stdout 被 `<<<AIGC_SUBMIT_REPORT>>>` / `<<<END_AIGC_SUBMIT_REPORT>>>` 包裹。你只解析其中 JSON(`results` 仍是给本 Skill 用的结果列表)来记账和决定下一步。ForgeAgent 从这份工具 stdout 识别对话流卡片。`--ledger` 同样打这一块(另有 `<<<AIGC_LEDGER>>>` 给接线读 `items`)。
|
|
191
|
+
|
|
192
|
+
**stdout 必须原样进入工具输出**:禁止给命令接 `| grep` / `| head` / `| tail` / `| jq` 等管道做过滤或截断。marker 行一旦被滤掉,卡片就拿不到 `assets[].path`。
|
|
193
|
+
|
|
194
|
+
**禁止**把 `<<<AIGC_SUBMIT_REPORT>>>` … `<<<END_AIGC_SUBMIT_REPORT>>>` 整块复制进对用户的回复。卡片不靠正文;贴进去只会在聊天里露出 JSON。对用户口径见「边界」。
|
|
195
|
+
|
|
196
|
+
**① 正常返回**——全部 `completed`,直接带 `result_url`:
|
|
197
|
+
|
|
198
|
+
```json
|
|
199
|
+
{
|
|
200
|
+
"status": "success",
|
|
201
|
+
"total": 2, "succeeded": 2, "running": 0, "failed": 0,
|
|
202
|
+
"assets": [
|
|
203
|
+
{ "slot_id": "hero_avatar", "path": "英雄头像", "interface": "image_gen", "status": "completed", "task_id": 12345, "result_url": "https://..." }
|
|
204
|
+
],
|
|
205
|
+
"results": [
|
|
206
|
+
{ "name": "hero_avatar", "category": "texture-ui", "status": "completed", "task_id": 12345, "result_url": "https://..." },
|
|
207
|
+
{ "name": "battle_theme", "category": "audio", "status": "completed", "task_id": 12346, "result_url": "https://..." }
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**② 超时或失败**——`running` 的留 `task_id` 待补查,`failed` 的读 `error`:
|
|
213
|
+
|
|
214
|
+
```json
|
|
215
|
+
{
|
|
216
|
+
"status": "partial",
|
|
217
|
+
"total": 2, "succeeded": 1, "running": 1, "failed": 0,
|
|
218
|
+
"results": [
|
|
219
|
+
{ "name": "hero_avatar", "category": "texture-ui", "status": "completed", "result_url": "https://...", "task_id": 12345 },
|
|
220
|
+
{ "name": "battle_theme", "category": "audio", "status": "running", "task_id": 12346 }
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
单条 `status` 取值与处置:
|
|
226
|
+
|
|
227
|
+
| 值 | 含义 | 处置 |
|
|
228
|
+
|---|---|---|
|
|
229
|
+
| `completed` | 成功,`result_url` 就绪 | **先做下方「回填前格式自检」**,合格才按 `AigcWiring.md` 接线 |
|
|
230
|
+
| `running` | 超出总时限仍在跑 | 已 spawn → Code `wait_for_tasks` 后 `--ledger`。manager 用 `--query` 按 `task_id` 补查。不要重新提交 |
|
|
231
|
+
| `running` 且 `error` 含「等待用户在任务中心确认」 | 任务在服务端等用户确认积分消耗(`pending_confirm`),**还没开始生成** | **催用户去任务中心确认**。**禁止结束本轮**,禁止让用户「确认后再说继续」来接下一批——本轮一结束仍在跑的 `aigc-manager` 会被杀掉,满 3 分钟任务从中心消失。已 spawn manager → 只 `wait_for_tasks`。未 spawn → 立刻 spawn 再 `wait_for_tasks`。不要 `--query` 查一次 pending 就停。 |
|
|
232
|
+
| `cancelled` | `--query` 按 `task_id` 查不到。查询接口不返回 `cancelled`;`pending_confirm` 满 3 分钟未确认或用户取消后,任务从结果消失 | 旧 `task_id` 作废。本轮该槽位保持直绘。**明确告诉用户**(「这些资产生成已取消,游戏里先用程序直绘;要再生成请再说一声」)。**用户之后要求再生成时提交新任务**,禁止把旧 ID 当成 `running` |
|
|
233
|
+
| `timeout` | 查询接口 `status=failed` 且 `error_message` 含「生成任务已超时」(errcode 80208)。用户已确认后入队,排队过久被结束。此外,DTO 带 `queued_at` 且仍是 `pending`/`input_auditing`、距 `queued_at` 已满 **10 分钟**时脚本也提前标 `timeout`(该字段缺失就跳过这条判断,仍靠上面的 failed 文案兜底)。`processing` 不算排队超时 | **不要重新提交**(再提会再进同一队列、再烧积分)。本轮该槽位保持程序直绘。**明确告诉用户**(「任务中心排队过久,生成已超时,本局先用程序画面;要再出图请再说一声」)。禁止当 `running` 补查、禁止当可重试的 `failed` |
|
|
234
|
+
| `queued` | 提交被后端限流,任务已落盘入队 | **不是失败**。无 worker 则启动 `node "${CLAUDE_SKILL_DIR}/scripts/worker.mjs"`(或 `--once`)。已 spawn 的 Code 不要自己 `--query`。manager 按 `aigc-manager.md` §5。不要循环 sleep。队列在 `${CLAUDE_PROJECT_DIR}/.aigc-queue` |
|
|
235
|
+
| `failed` | 提交失败 / 后端失败(**不含**上表 `timeout`) | 读 `error`。**序列帧(`character2d`)失败 1 次即放行**——保持立绘占位(不进面板),动作槽第三段留空,交付说明写没做成。**图片 / 音频失败 1 次即放行**:**路径/地块/方格/平台不改走程序直绘**(槽位第三段留空,见 `texture-scene.md`);其余放行程序直绘。用户明确要求重试时不受此限 |
|
|
236
|
+
|
|
237
|
+
**回填前格式自检(需要抠图的图片,阻断性)**:`.png` / `.webp` 才有透明通道,`.jpg` / `.jpeg` 没有。
|
|
238
|
+
除整图背景 / 全景场景图 / 封面图 / `audio` 外,从 `result_url` 去掉 query 后
|
|
239
|
+
以 `.jpg` / `.jpeg` 结尾 → **不合格,不得接线**,计入上表 `failed`(1 次即放行,禁止再提)。
|
|
240
|
+
**序列帧(`character2d`)jpeg 不合格也计 1 次即放行、保持立绘。**
|
|
241
|
+
图片 / 音频 jpeg 不合格同样 1 次即放行:处置与上表 `failed` 相同(地块不改走直绘,其余放行直绘)。
|
|
242
|
+
不要用 ImageMagick / 解码四角 alpha 替代本条——本条只查后缀。
|
|
243
|
+
整图背景 / 封面图允许 jpg。
|
|
244
|
+
|
|
245
|
+
### 4. 超时补查
|
|
246
|
+
|
|
247
|
+
Code 已 spawn → 不要 `--query`。manager 的持续轮询只在 `agents/aigc-manager.md` §5
|
|
248
|
+
(单独 `sleep` 与单独 `--query`,禁止同一条 shell 叠在一起)。不要用「查一次就放下轮」替代 manager 轮询。
|
|
249
|
+
|
|
250
|
+
**`task_id` 要立刻记进本轮的思考里,别只留在命令输出上**:一批提交完就把每条的
|
|
251
|
+
`name` 与 `task_id` 复述一遍,后面补查要用它。`task_id` 一丢就只能重新提交、重复计费。
|
|
252
|
+
**它是内部态,不写进给用户的回复**(见下方「对用户口径」)。
|
|
253
|
+
|
|
254
|
+
**别把提交结果重定向到文件再 `cat`**(`> /tmp/xxx.log` 之类):命令本身不会因输出长而被截断,
|
|
255
|
+
重定向只是多一层依赖——一旦这条命令超时,日志文件还可能随临时目录被清空而消失,
|
|
256
|
+
`task_id` 就彻底找不回来了。直接读命令输出。
|
|
257
|
+
|
|
258
|
+
### 5. 完成后的下游
|
|
259
|
+
|
|
260
|
+
把 `result_url` 按 `${CLAUDE_DIR}/knowledge/AigcWiring.md` 接到 Phaser Scene / 音频,写入 `@slot` 第三段与 `configs/assets.json`,再 `npm run config:export`。
|
|
261
|
+
序列帧 `result_url` 是 manifest JSON,按该接线文件「序列帧」播,不要把整张图集当一帧。
|
|
262
|
+
本 skill 自身不落盘、不生成资产文件。接线把 `result_url` 写入 JSON(序列帧是 manifest JSON,透明边见 `AigcWiring.md` 的 `fit.ts`),`npm run config:export` 后按常驻 `CLAUDE.md` 调用 `game_visual_qa`。
|
|
263
|
+
|
|
264
|
+
## 首轮直接生成
|
|
265
|
+
|
|
266
|
+
触发条件见 `${CLAUDE_DIR}/knowledge/AigcEnabled.md`。
|
|
267
|
+
按 `${CLAUDE_SKILL_DIR}/knowledge/non-stepwise-aigc.md` 执行。完整规则只在该文件。
|
|
268
|
+
|
|
269
|
+
## 迭代生成
|
|
270
|
+
|
|
271
|
+
条件见 `${CLAUDE_DIR}/knowledge/AigcEnabled.md`「迭代生成」。按 `batch-replace.md` 过滤槽位,
|
|
272
|
+
第 1 批后立刻 spawn `aigc-manager`。不看 `submitted-names.json`。指定单槽仍 spawn。
|
|
273
|
+
|
|
274
|
+
## 边界
|
|
275
|
+
|
|
276
|
+
- **不改工程资产文件**:成功也只在报告里给 URL。
|
|
277
|
+
- **失败不改**:failed / timeout / `result_url` 为空 / jpeg 自检不合格时工程文件不动。
|
|
278
|
+
放行范围见「读结果」。
|
|
279
|
+
- **实体名只是本轮对位名**(`submit.json` 的 `name`)。提交体 `resource_name` 填 `--path` 展示名,不填实体英文 id。
|
|
280
|
+
- **失败不伪造**:不得编造 `result_url` 或 `task_id`,也不得在 AIGC 失败后自行改走素材召回。
|
|
281
|
+
- **对用户口径**:提交前列清单按批写清资产名与类型(图 / 音乐),生成中说「在帮你生成 XX」,
|
|
282
|
+
完成说「已生成完成」。`cancelled` / `timeout` 的槽位不要说成已生成完成,按「读结果」该行告诉用户。
|
|
283
|
+
**未提交进任务中心的批次,不要说成「在等你确认」或「会随后跟上」**,也不要说
|
|
284
|
+
「你确认后跟我说继续,我再生成其余」(理由见「读结果」的 `pending_confirm` 行)。
|
|
285
|
+
何时能说「初版已完成」见 `knowledge/non-stepwise-aigc.md` 第 5 步。
|
|
286
|
+
不暴露接口、action、task_id、查询过程、后端域名。
|
|
287
|
+
这条对 `task_id` 优先于上文「超时补查」的记账要求——那里要的是**自己记住**,不是告诉用户。
|
|
288
|
+
失败只说结果与建议,不贴后端报文。
|
|
289
|
+
**禁止**把 stdout 的 `<<<AIGC_SUBMIT_REPORT>>>` 报告块写入对用户回复。
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
## Completed results into assets.json
|
|
294
|
+
|
|
295
|
+
`generate.mjs --ledger` remains the read-only handoff report. After reviewing completed slots, explicitly select the names to apply:
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
node "${CLAUDE_SKILL_DIR}/scripts/apply-results.mjs" --names hero_avatar,battle_theme
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
The script updates only `configs/assets.json` slots whose ledger has exactly one completed task and whose resource control type matches its category. It accepts HTTPS result URLs with a type-compatible extension; invalid, duplicate, unfinished, or mismatched entries are reported in `skipped` and left unchanged. Check the JSON result before continuing with `npm run config:export` and `game_visual_qa`.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# 音频 AIGC 生成(仅 BGM / 循环氛围)
|
|
2
|
+
|
|
3
|
+
本模板只服务 `audio_role=bgm` 与 `ambience`。**不要用本模板写音效**:打击、跳跃、收集、
|
|
4
|
+
胜负、点击一律不提交 AIGC,由业务程序合成。
|
|
5
|
+
|
|
6
|
+
## 维度
|
|
7
|
+
|
|
8
|
+
### 【氛围】
|
|
9
|
+
听觉场景、空间感、情绪基调。常用值:
|
|
10
|
+
- 史诗宏大,庄严,管弦乐
|
|
11
|
+
- 神秘探索,空灵,回响
|
|
12
|
+
- 紧张刺激,急促,打击乐
|
|
13
|
+
- 轻松欢快,明亮,跳跃
|
|
14
|
+
- 压抑阴森,低沉,失真
|
|
15
|
+
|
|
16
|
+
### 【风格】
|
|
17
|
+
音乐风格、乐器、音色特征。常用值:
|
|
18
|
+
- 管弦乐,交响,史诗配乐
|
|
19
|
+
- 电子,合成器,8-bit 芯片音乐
|
|
20
|
+
- 民谣,原声吉他,口琴
|
|
21
|
+
- 环境氛围,pad,drone
|
|
22
|
+
|
|
23
|
+
### 【声音描述】
|
|
24
|
+
旋律走向、配器层次、节奏与循环方式。
|
|
25
|
+
尽量具体:主导乐器、鼓点疏密、是否无缝循环、高潮与铺垫如何交替。不要写单次触发的拟音事件。
|
|
26
|
+
|
|
27
|
+
### 【不要什么】
|
|
28
|
+
负面提示词。排除不想要的声音特征。
|
|
29
|
+
|
|
30
|
+
## 最终输出
|
|
31
|
+
|
|
32
|
+
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
33
|
+
|
|
34
|
+
### 示例
|
|
35
|
+
|
|
36
|
+
【氛围】轻松欢快的冒险基调,明亮跳跃,适合长时间循环
|
|
37
|
+
【风格】电子,合成器,8-bit 芯片音乐,主旋律清晰
|
|
38
|
+
【声音描述】轻快的方波主旋律配简单鼓机循环,中段加一层琶音垫底,首尾衔接可无缝循环,约两分钟
|
|
39
|
+
【不要什么】不要人声,不要对白,不要突然静音,不要写成短促音效
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 迭代替换已有槽位
|
|
2
|
+
|
|
3
|
+
> 用户在已有项目上明确要求生成 / 替换图或音乐时执行。首轮不要读本文件。
|
|
4
|
+
> SKILL.md 的「支持范围」「硬约束」「SOP 1–5」已随 SKILL.md 加载。
|
|
5
|
+
|
|
6
|
+
**1. 定位。** 用 `search_files` 在 `src/` 搜索 `@slot`,拿到全部槽位。
|
|
7
|
+
|
|
8
|
+
**2. 过滤。** 取 `texture-ui` / `texture-scene` / `texture-prop` / `audio` / `character2d`。
|
|
9
|
+
`effect2d` 跳过。`audio` 只替换 `bgm` / `ambience`。已经带第三段 URL 的跳过,除非用户点名重做。
|
|
10
|
+
散布类小装饰保持直绘。没有 `character2d` 槽就不要补动作。
|
|
11
|
+
|
|
12
|
+
**3. 生成。** `name` 填 `slot_name`。会出序列帧的角色立绘单独第 1 批。返回后立刻 spawn `aigc-manager`。提交前按 SOP 2 只列第 1 批。立绘作 `image_url` 只在 `character2d.md`「首帧参考图」。
|
|
13
|
+
|
|
14
|
+
**4. 接线。** 见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。失败槽第三段留空。交付说明列出没做的槽位及原因。接线后 `npm run config:export` → 调用 `game_visual_qa`。
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# 角色序列帧 AIGC 生成(character2d)
|
|
2
|
+
|
|
3
|
+
产物是**动作序列帧**(sprite sheet + 帧布局),链路是「首帧参考图 → 图文生视频 → 抽帧」。
|
|
4
|
+
因此提示词实际是**给视频生成模型**的,与单张图的写法有本质差别。
|
|
5
|
+
|
|
6
|
+
适用对象不止角色:**主角 / 怪物 / Boss 的动作**(且本轮会切帧播),以及**面积大、动态复杂到参数动画表达不了的场景装饰**
|
|
7
|
+
(逐帧翻卷的瀑布 / 岩浆、逐帧跳动的火焰、有生物性动作的巨型植被 / 生物等)才走 `character2d`。
|
|
8
|
+
|
|
9
|
+
**不要用本模板**:角色本轮不播逐帧动作(AVG / 视觉小说对白立绘、选项旁半身像、图鉴、只站着说话)。
|
|
10
|
+
那些走 `texture-ui` 单图,立绘就是正式资产。见 `non-stepwise-aigc.md` 第 1 步。
|
|
11
|
+
对这类角色提交 `character2d` 会得到一套跑动图集,和立绘画风对不上。
|
|
12
|
+
首轮交几条、交谁,见 `aigc-generate` SKILL 硬约束「首轮序列帧条数」。
|
|
13
|
+
|
|
14
|
+
**注意:面积大的装饰必须走 AIGC 出图,但不等于必须序列帧**——大装饰的动态**优先用「静态 AIGC 底图 +
|
|
15
|
+
简单参数变化」**实现(对已生成的整图 / 图块做位移、缩放、旋转、透明度、色调、
|
|
16
|
+
`this.tweens.add` 摆动等程序化参数动画),随风摆动的树冠、飘动的大旗、缓慢漂移的云层 / 水面这类
|
|
17
|
+
**能用参数动画表达的一律不做序列帧**(成本低、画风统一、随时可调)。
|
|
18
|
+
判断顺序:先 AIGC 出图 → 能用参数动画就用参数动画 → **只有参数动画表达不了的复杂逐帧形变才升级为 `character2d`**
|
|
19
|
+
(见 `texture-scene.md`「背景图按玩法判定」)。
|
|
20
|
+
下文以「角色」为例,需序列帧的大面积动态装饰同理(把「角色」理解为「这个动态主体」即可)。
|
|
21
|
+
|
|
22
|
+
## 铁律(不遵守会直接拿到不可用的序列帧)
|
|
23
|
+
|
|
24
|
+
- **镜头必须锁死**:写明「固定机位,镜头不移动、不推拉、不旋转」。
|
|
25
|
+
镜头一动,抽出来的每一帧里角色位置都在变,拼成 sprite sheet 后播放会整体漂移,
|
|
26
|
+
这种素材在游戏里无法使用,且抽帧完成前看不出问题。
|
|
27
|
+
- **主体不位移**:角色**水平居中、脚底贴画布底边**,原地做动作(原地跑、原地挥砍),
|
|
28
|
+
不要「从左侧跑到右侧」。位移由游戏代码控制,不能烘进序列帧。
|
|
29
|
+
- **单主体**:画面里只有这一个角色,不要背景元素、不要第二个角色、不要地面阴影投射到别处。
|
|
30
|
+
- **视角要跟游戏画面视角对得上**:按 `游戏设计.md` 的画面视角写,`【视角】` 按下方表抄。
|
|
31
|
+
左右朝向见「默认朝右」。
|
|
32
|
+
写完自检一句:**把这段帧贴进游戏画面,动作方向和场景对得上吗**。
|
|
33
|
+
- **★ 默认朝右(硬约束)**:角色文件资产一律**面向画面右侧**——含 `character2d` 序列帧、
|
|
34
|
+
序列帧参考立绘、只出立绘的敌人 / Boss / AVG 人像(`texture-ui`)。
|
|
35
|
+
反向只在接线翻转,见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
36
|
+
`【视角】` 按下方表对应行抄。`【不要什么】` 加「**不要角色面向左侧**」。
|
|
37
|
+
- **同一角色的所有动作朝同一侧,动作过程中不转身**:反向靠接线 `flipX`,
|
|
38
|
+
见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。各动作朝向不一致时切换会瞬间翻面。
|
|
39
|
+
- **构图与明暗也要对齐场景**:左右和头顶留余量,别顶满画布(挥击/举手才不被裁;
|
|
40
|
+
贴进场景后按 `${CLAUDE_DIR}/knowledge/AigcWiring.md`「显示尺寸」缩放)。**脚底贴画布底边,脚下不要留空**——
|
|
41
|
+
脚下留空人物就会浮空。接线见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
42
|
+
明暗与配色照该角色主色 / 辅色 / 强调,**同一批资产的受光侧统一**
|
|
43
|
+
(本批第一个定了从哪侧受光,后面都照它)——受光乱了摆在一起立刻看出是拼的。
|
|
44
|
+
- **动作可循环**:循环类动作(走/跑/待机)要写明「首尾姿态衔接,可无缝循环」。
|
|
45
|
+
- **动作幅度克制**:抽帧数量有限(通常 8~16 帧),
|
|
46
|
+
动作越复杂每帧差异越大,播起来会跳。一个动作只做一件事。
|
|
47
|
+
- **★ 短动作会被 2x 倍速播放**:后端最短生成时长 3 秒(约 37 帧 @ 12fps),但跑步/攻击/冲刺/
|
|
48
|
+
跳跃等短动作实际只需 0.5~1.5 秒。接线播放帧率见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
49
|
+
提示词按正常速度描述动作即可。动作幅度仍要克制。
|
|
50
|
+
- **序列帧接线**:只在 `${CLAUDE_DIR}/knowledge/AigcWiring.md`「序列帧」。
|
|
51
|
+
本文件只写提示词。
|
|
52
|
+
|
|
53
|
+
## 维度
|
|
54
|
+
|
|
55
|
+
### 【视角】
|
|
56
|
+
摄像机角度、机位约束与角色朝向。按 `游戏设计.md` 的画面视角取对应写法:
|
|
57
|
+
|
|
58
|
+
| 游戏视角 | 这段帧怎么写 |
|
|
59
|
+
|---|---|
|
|
60
|
+
| 侧视角横版 | 正侧面平视,**角色侧身面向画面右侧**(走、跳、挥击都在这个侧面里发生) |
|
|
61
|
+
| 俯视角顶视 | **四分之三俯视站立**(top-down 3/4, standing),头在画布上方、脚在画布下方,面向画面右侧;能看见头顶、脸的侧面(一只眼)和胸前。不要背面 / 后脑勺 |
|
|
62
|
+
| 45° 斜视 | 45 度俯视,**角色朝斜右前方**,能看到正面与侧面各一部分 |
|
|
63
|
+
|
|
64
|
+
**★ 朝向硬约束**:上表所有视角都朝右。接线翻转见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
65
|
+
|
|
66
|
+
必须显式包含「固定机位,镜头不移动」。
|
|
67
|
+
|
|
68
|
+
### 【动作描述】
|
|
69
|
+
角色在做什么动作、动作的起止姿态、是否循环。
|
|
70
|
+
动作清单以 `游戏设计.md` 该实体的动作描述为准,只取「动作名:做什么」的语义,
|
|
71
|
+
不抄「上下浮动 2px」这类像素级实现细节(文生图读不懂)。
|
|
72
|
+
写清:动作名称、身体各部位怎么动、动作节奏、首尾是否衔接。
|
|
73
|
+
|
|
74
|
+
### 【风格】
|
|
75
|
+
本项目取值以 `SPEC/plan/游戏设计.md` 为准,取画风名、该角色主色 / 辅色 / 强调色、边缘与质感。
|
|
76
|
+
写成美术会说的话。像素级实现细节不要写进提示词。
|
|
77
|
+
|
|
78
|
+
同一批的 `【风格】` 必须共用同一个固定风格锚点串(机制见 `aigc-generate/SKILL.md`「构造提示词」);
|
|
79
|
+
同一角色的全部动作尤其必须用同一段锚点串,否则动作之间就换了画风。
|
|
80
|
+
|
|
81
|
+
画风、分辨率、打光、背景。常用值:
|
|
82
|
+
- 像素艺术,16-bit 复古,低分辨率点阵画,清晰像素颗粒感
|
|
83
|
+
- 卡通风格,手绘线稿,扁平上色
|
|
84
|
+
- 单体角色,均匀打光无投影,纯色背景(非白非黑,如纯青 / 纯品红)便于抠图
|
|
85
|
+
|
|
86
|
+
### 【不要什么】
|
|
87
|
+
除通用负面词外,**必须**排除以下三类,缺任一类都会出问题:
|
|
88
|
+
|
|
89
|
+
- **画风漂移**:写一条**与本项目画风相反**的排除词,钉住 `【风格】` 的正面描述。
|
|
90
|
+
正面词压不住模型的默认倾向,物件描述越细(羽毛分叉、皇冠锯齿、明暗层次)越容易偏。
|
|
91
|
+
反面词按 `游戏设计.md` 的画风名取:扁平 / Q 版 / 像素 → 排除「3D 渲染、写实照片」;
|
|
92
|
+
写实厚涂 → 排除「卡通化、扁平色块」;水墨 → 排除「赛璐璐、硬边描线」。
|
|
93
|
+
反面词不要否掉画风名里已有的词。
|
|
94
|
+
- **镜头与位移**:不要镜头移动,不要镜头推拉,不要镜头旋转,不要角色位移,
|
|
95
|
+
不要角色走出画面,不要角色转身,不要中途改变朝向。
|
|
96
|
+
- **朝向约束**:**不要角色面向左侧**。
|
|
97
|
+
- **禁止背面**:不要背对镜头、不要只看到背部/后脑勺。生成后第一眼看脸——只见后脑勺就重做。
|
|
98
|
+
- **背景与数量**:不要背景元素,不要多个角色,不要白色背景,不要黑色背景。
|
|
99
|
+
|
|
100
|
+
## 最终输出
|
|
101
|
+
|
|
102
|
+
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
103
|
+
|
|
104
|
+
### 示例
|
|
105
|
+
|
|
106
|
+
【视角】正侧面平视,固定机位,镜头完全不移动、不推拉、不旋转,角色始终面向画面右侧、水平居中、脚底贴画布底边
|
|
107
|
+
【动作描述】小型森林精灵原地奔跑循环,双腿交替抬起落下,手臂前后摆动,披风随奔跑轻微飘动,身体重心保持在同一水平线上不上下大幅起伏,最后一帧姿态与第一帧衔接,可无缝循环播放
|
|
108
|
+
【风格】像素艺术风格,16-bit 复古游戏角色素材,低分辨率点阵画,清晰像素颗粒感,单体角色,边缘清晰,细描边,扁平均匀打光,无投影,纯青色背景便于抠图
|
|
109
|
+
【不要什么】不要文字,不要水印,不要复杂背景,不要镜头移动,不要镜头推拉,不要镜头旋转,不要角色位移,不要角色走出画面,不要角色转身,不要中途改变朝向,不要角色面向左侧,不要角色背对镜头,不要只看到角色背部,不要脚下留白,不要脚底悬在画面中部,不要背景元素,不要多个角色,不要白色背景,不要黑色背景,不要 3D 渲染,不要写实照片
|
|
110
|
+
|
|
111
|
+
## 首帧参考图
|
|
112
|
+
|
|
113
|
+
每个 `character2d` 必须带该角色立绘的 `image_url`(`*.craft.qq.com`)。
|
|
114
|
+
脚本无 `image_url` 会为**该条动作单独文生一张首帧**——各动作各出一张,同一角色会变成几个人。禁止依赖这条兜底。
|
|
115
|
+
|
|
116
|
+
**谁交:** Code 只交立绘批(`texture-ui` 静站姿)后 spawn manager。manager 等立绘 `completed`,把同一 URL 写入该角色每个动作的 `image_url`。立绘与动作禁止同批。
|
|
117
|
+
|
|
118
|
+
**立绘 prompt:** 只写一张静止站姿。禁止「序列帧、精灵表、sprite sheet、帧、多帧、图集、连续动作、奔跑 / 挥砍」。
|
|
119
|
+
`【视角】` 与动作帧同一套(见【视角】表)。
|
|
120
|
+
`size` 固定 `"1024x1024"`。
|
|
121
|
+
全身含发型、耳朵、脚底、武器、披风都在画布内,四周留透明边,主体不要顶到画布边缘。不要抄序列帧的「脚底贴画布底边」。
|
|
122
|
+
`【不要什么】` 加「不要序列帧,不要精灵表,不要多个分格,不要多个姿势,不要网格排列,不要动作分解,不要角色面向左侧,不要裁切头顶,不要裁切发丝,不要裁切脚底,不要裁切武器,不要半身,不要头像特写」。
|
|
123
|
+
序列帧管线的立绘不进面板;AVG / 对白静图才进面板。
|
|
124
|
+
|
|
125
|
+
**接线:** 立绘先 `this.load.image` 占位,图集齐套后按 `${CLAUDE_DIR}/knowledge/AigcWiring.md`「序列帧」换成 `load.spritesheet` + 一个 `add.sprite`。立绘不进 `configs/assets.json`。
|
|
126
|
+
|
|
127
|
+
**存档:** `// @ref character2d <角色名> <URL>` 写在该角色第一个动作 `@slot` 上方。补做前用 `search_files` 在 `src/` 搜索 `@ref character2d`,命中即复用。
|
|
128
|
+
|
|
129
|
+
已传 `image_url` 则 `reference_prompt` / `style` / `model` 不参与。动作差异只写在 `【动作描述】`。
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# 首轮直接生成
|
|
2
|
+
|
|
3
|
+
> `游戏设计.md` 已在、准备写第一局时,由主 Agent 在**落第一个工程文件之前**执行。
|
|
4
|
+
> 执行前提:SKILL.md 的「支持范围」「硬约束」「SOP 3–5」已随 SKILL.md 加载。
|
|
5
|
+
> `aigc_enabled` 见 `${CLAUDE_DIR}/knowledge/AigcEnabled.md`。
|
|
6
|
+
|
|
7
|
+
代码还没写,清单不能来自 `@slot`。第 1 批返回并 spawn `aigc-manager` 后立即写代码。
|
|
8
|
+
**写完代码才想起本节就来不及了**——生成要十几分钟,代码已收尾无法并行补救。
|
|
9
|
+
`aigc_enabled === false` 时不要执行本文件。
|
|
10
|
+
执行本节前已按 `display-info-setup` 写好 `projectDisplayInfo.json`(cover 的 size 读它)。
|
|
11
|
+
|
|
12
|
+
## 1. 造清单
|
|
13
|
+
|
|
14
|
+
读 `${CLAUDE_PROJECT_DIR}/SPEC/plan/游戏设计.md`。文件缺失 → 不提交。
|
|
15
|
+
画风 / 色值 / 剪影 / 动作语义都从该文档取。本轮范围:文档里的「本版必做 / 首局 / 最小可玩」;明确写在「后续 / 以后再做」里的不进清单。没有这些标题就按全文可玩实体收,不要把未出场的扩充系统算进来。
|
|
16
|
+
|
|
17
|
+
按实体语义提交(`name` 用稳定英文 snake_case,同一实体全程同名):
|
|
18
|
+
|
|
19
|
+
- **玩法背景**:1 张 `texture-scene` 整图(不需要视差就合并一张)。面积大的装饰进清单;零散花草/尘粒可直绘。
|
|
20
|
+
- **角色**:本轮会切帧播跑/走/跳/攻击 → 先交一张该角色 `texture-ui` 立绘,再按硬约束「首轮序列帧条数」交 `character2d`。否则只交一张立绘(对白/展示 `texture-ui`,世界景物 `texture-prop`),**禁止**再交 `character2d`。
|
|
21
|
+
- **道具 / 可点物件**:`texture-prop`。
|
|
22
|
+
- **HUD 数字、血条、暂停/胜负底板**:不进清单,DOM / 直绘。
|
|
23
|
+
- **`effect2d`**:不走 AIGC。
|
|
24
|
+
- **音频**:只交 `theme_bgm`(`audio_role=bgm`)。用户明确静音则整段不提交。禁止 `*_sfx`。
|
|
25
|
+
|
|
26
|
+
不要因为「默认直绘」把角色 / 背景从清单里删掉。漏提交的代价是整轮只有程序画面。
|
|
27
|
+
|
|
28
|
+
## 2. 排第 1 批
|
|
29
|
+
|
|
30
|
+
会出序列帧的角色,立绘必须是清单第 1 批(多角色可同批,不要塞背景)。没有 `character2d` 时立绘进普通图片批。其余批次顺序与上限见 SKILL 硬约束。
|
|
31
|
+
|
|
32
|
+
## 3. 只提交第 1 批,然后 spawn `aigc-manager`
|
|
33
|
+
|
|
34
|
+
写代码前成功的 `--submit-only` 只准一次,只含清单第 1 批。提交方式见 SKILL.md SOP 2。返回后立刻 spawn `aigc-manager`(`run_in_background: true`),不要同一组工具里把提交和 spawn 并列。
|
|
35
|
+
spawn 的 objective **不要自排批次顺序**。manager 按 `aigc-manager.md`:立绘终态后先交非序列帧(背景 / 贴图 / BGM),再交动作。
|
|
36
|
+
**提交完立即提醒用户去任务中心确认积分消耗**。对用户只报**已经提交**的条数。
|
|
37
|
+
|
|
38
|
+
**spawn 返回后的下一组工具**:必须含 `write_file` 写 `src/`。
|
|
39
|
+
不得再出现:`generate.mjs`、`sleep`/`seq`/`for` 等图、第二次 `spawn_agent`。
|
|
40
|
+
不需要 `result_url` 也能写分流(URL 空则直绘)。SKILL「下一批等终态」的执行主体是 manager。
|
|
41
|
+
|
|
42
|
+
脚本闸:第 1 次无 `--role manager` 的 `--submit-only` 一旦交出,写入 `.aigc-queue/code-handoff.json`。此后无 `--role manager` 的 `--submit-only` / `--query` / `--tasks` 一律 `code_handed_off`。`--ledger` 不拦。`--tasks` 直接 `nstep_no_tasks`。主 Agent 禁止带 `--role manager`。
|
|
43
|
+
|
|
44
|
+
## 4. 派发后立刻写代码
|
|
45
|
+
|
|
46
|
+
可文件化实体按「有资产就加载、无则直绘 / 合成兜底」接线,`@slot` 第三段暂空。写法只在 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。入队与加载层只在 `${CLAUDE_DIR}/knowledge/Lifecycle.md`。
|
|
47
|
+
会播序列帧的角色先用立绘占位,齐套后再换成图集。只出立绘的角色不要建动画。
|
|
48
|
+
|
|
49
|
+
## 5. 第一次构建通过后收结果
|
|
50
|
+
|
|
51
|
+
必须 `wait_for_tasks` 等到 `aigc-manager` 返回终态报告。然后必须跑 `generate.mjs --ledger`,按其中 `items` 接线。不要只 Read `results.json`。禁止 `--query` / `--submit-only`,禁止第二次 spawn。缺 `result_url` 的槽保持直绘。
|
|
52
|
+
`pending_confirm` / `running` 不得交付。`cancelled` / `timeout` 处置见 SKILL.md「读结果」。
|
|
53
|
+
全部终态后把 URL 写入 `@slot` 第三段与 `configs/assets.json`,跑 `npm run config:export`,再按常驻「交付要求」调 `game_visual_qa`。
|
|
54
|
+
**首轮已做界面点完或次数用尽之前,禁止交付「初版已完成」。**
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# 物件纹理 AIGC 生成
|
|
2
|
+
|
|
3
|
+
## 维度
|
|
4
|
+
|
|
5
|
+
### 【视角】
|
|
6
|
+
物件呈现角度。常用值:
|
|
7
|
+
- 俯视角(top-down,适合俯视游戏)
|
|
8
|
+
- 轻微俯视的正面视角(45 度,经典 RPG 道具图块)
|
|
9
|
+
- 纯平视角(side view,横版游戏)
|
|
10
|
+
|
|
11
|
+
需说明能看到哪些面。
|
|
12
|
+
|
|
13
|
+
### 【风格】
|
|
14
|
+
本项目取值以 `SPEC/plan/游戏设计.md` 为准,取画风名、该实体主色 / 辅色、边缘与质感。
|
|
15
|
+
写成美术会说的话。像素级实现细节不要写进提示词。
|
|
16
|
+
|
|
17
|
+
同一批的 `【风格】` 必须共用同一个固定风格锚点串(机制见 `aigc-generate/SKILL.md`「构造提示词」)。
|
|
18
|
+
|
|
19
|
+
画风、分辨率、打光、背景等画面指令。常用值:
|
|
20
|
+
- 像素艺术,16-bit 复古,清晰像素颗粒感
|
|
21
|
+
- 卡通,手绘,扁平上色
|
|
22
|
+
- 写实,高细节
|
|
23
|
+
- 单体图标,透明背景,轻微投影
|
|
24
|
+
|
|
25
|
+
**★ 硬约束**:物件/道具全部是单体资产,`【风格】` 必须包含「**透明 PNG,透明背景,主体边缘清晰干净**」
|
|
26
|
+
——三个词缺一不可。不写「透明 PNG」模型可能输出带色背景的图片,贴进游戏是一块色块。
|
|
27
|
+
落地摆放的物件(站在地面/台面上)**主体底边贴画布底边,脚下不要留空**。悬挂/飞行的除外。接线见 `${CLAUDE_DIR}/knowledge/AigcWiring.md`。
|
|
28
|
+
|
|
29
|
+
### 【物件描述】
|
|
30
|
+
物件的材质、结构、颜色、功能细节、装饰、周围小物件。
|
|
31
|
+
以 `游戏设计.md` 该实体的外形与配色为准(见 SKILL.md 构造提示词首条)。
|
|
32
|
+
尽量具体:材质(木/石/金属/布)、形状结构、装饰元素、功能暗示(可交互/纯装饰)、配色方案、整体氛围。
|
|
33
|
+
|
|
34
|
+
### 【不要什么】
|
|
35
|
+
- **画风漂移**:写一条**与本项目画风相反**的排除词,钉住 `【风格】` 的正面描述。
|
|
36
|
+
正面词压不住模型的默认倾向。反面词按 `游戏设计.md` 的画风名取:
|
|
37
|
+
扁平 / Q 版 / 像素 → 排除「3D 渲染、写实风格」;写实厚涂 → 排除「卡通化、扁平色块」;
|
|
38
|
+
水墨 → 排除「赛璐璐、硬边描线」。反面词不要否掉画风名里已有的词。
|
|
39
|
+
- 另必写:不要文字,不要水印,不要复杂背景,不要白色背景,不要黑色背景。
|
|
40
|
+
|
|
41
|
+
## 最终输出
|
|
42
|
+
|
|
43
|
+
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
44
|
+
|
|
45
|
+
### 示例
|
|
46
|
+
|
|
47
|
+
【视角】轻微俯视的正面视角,能看到物件顶面和正面,不显示侧面,经典 2D RPG 道具图块视角
|
|
48
|
+
【风格】像素艺术风格,16-bit 复古游戏物件素材,低分辨率点阵画,清晰像素颗粒感,单体图标,边缘清晰,细描边,扁平均匀打光,透明 PNG,透明背景,主体边缘清晰干净,物件下方轻微投影
|
|
49
|
+
【物件描述】中世纪木质宝箱,矩形箱体由深棕色橡木板拼接,铁质包角和铆钉装饰,前盖有铁锁扣和十字铁带加固,箱盖微开露出内部金色光芒和珠宝轮廓。箱体两侧有铁提手环。主色深棕+暗铁色金属,辅色金色光芒,古朴魔法感,轻微卡通化
|
|
50
|
+
【不要什么】不要 3D 渲染,不要写实照片,不要等距视角,不要 isometric,不要侧面可见,不要人物角色,不要复杂背景,不要现代材质,不要塑料感,不要霓虹色
|