@craft_eco/craft-mcp 0.1.25 → 0.1.28
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 +33 -12
- package/bin/craft-mcp.mjs +10 -8
- package/dist-server/game-workflow/bundle-files.mjs +48 -0
- package/dist-server/game-workflow/check.mjs +3 -4
- package/dist-server/game-workflow/engines.mjs +24 -8
- package/dist-server/game-workflow/project-bundles.mjs +129 -0
- package/dist-server/game-workflow/project-context.mjs +97 -0
- package/dist-server/game-workflow/projects.mjs +22 -5
- package/dist-server/game-workflow/publication-materials.mjs +18 -20
- package/dist-server/game-workflow/publications.mjs +15 -17
- package/dist-server/game-workflow/publish-capture.mjs +21 -57
- package/dist-server/integrations/config.mjs +71 -0
- package/dist-server/integrations/files.mjs +54 -0
- package/dist-server/integrations/hosts.mjs +35 -0
- package/dist-server/integrations/install.mjs +86 -0
- package/dist-server/integrations/runtime.mjs +72 -0
- package/dist-server/mcp/publication-page.mjs +18 -50
- package/dist-server/mcp/publish-panel.mjs +28 -35
- package/dist-server/mcp/server.mjs +22 -18
- package/dist-server/mcp/start.mjs +3 -1
- package/dist-server/preview/preview-launcher.mjs +9 -2
- package/dist-server/preview/preview-start.mjs +2 -2
- package/dist-server/upstream/publication-transport.mjs +19 -19
- package/package.json +14 -8
- package/resources/craft-create/SKILL.md +11 -0
- package/resources/craft-game-maker/SKILL.md +77 -71
- package/resources/craft-game-maker/js.md +10 -10
- package/resources/craft-game-maker/js3d.md +13 -13
- package/resources/game_visual_qa.mjs +1149 -1149
- package/resources/js/bundle.json +93 -0
- package/resources/js/context/AGENTS.md +15 -102
- package/resources/js/context/knowledge/AigcWiring.md +5 -196
- package/resources/js/context/knowledge/AssetUrl.md +5 -20
- package/resources/js/context/knowledge/Layout.md +7 -0
- package/resources/js/context/knowledge/Lifecycle.md +6 -27
- package/resources/js/context/skills/aigc-generate/SKILL.md +6 -141
- package/resources/js/context/skills/asset-search/SKILL.md +5 -62
- package/resources/js/context/skills/asset-search/references/resource-config.md +9 -0
- package/resources/js/context/skills/export-config/SKILL.md +7 -19
- package/resources/js/context/skills/export-config/scripts/export-config.mjs +3 -45
- package/resources/js/context/skills/index.json +30 -0
- package/resources/js/context/skills/visual-qa/SKILL.md +6 -28
- package/resources/js/project/README.md +4 -96
- package/resources/js/project/package.json +1 -2
- package/resources/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/js/project/scripts/config-export.mjs +10 -34
- package/resources/js3d/bundle.json +104 -0
- package/resources/js3d/context/AGENTS.md +16 -85
- package/resources/js3d/context/knowledge/AigcWiring.md +9 -0
- package/resources/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +9 -67
- package/resources/js3d/context/knowledge/Layout.md +7 -0
- package/resources/js3d/context/knowledge/Runtime.md +5 -30
- package/resources/js3d/context/skills/aigc-integration/SKILL.md +6 -164
- package/resources/js3d/context/skills/asset-search/SKILL.md +5 -171
- package/resources/js3d/context/skills/asset-search/references/resource-config.md +6 -94
- package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +6 -82
- package/resources/js3d/context/skills/export-config/SKILL.md +7 -11
- package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +3 -55
- package/resources/js3d/context/skills/index.json +42 -0
- package/resources/js3d/context/skills/performance-audit/SKILL.md +8 -153
- package/resources/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/js3d/project/README.md +4 -103
- package/resources/js3d/project/package.json +1 -2
- package/resources/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/js3d/project/scripts/config-export.mjs +12 -34
- package/resources/targets/codebuddy/js/bootstrap/SKILL.md +14 -0
- package/resources/targets/codebuddy/js/craft-game-maker/SKILL.md +77 -0
- package/resources/targets/codebuddy/js/craft-game-maker/js.md +10 -0
- package/resources/targets/codebuddy/js/js/bundle.json +99 -0
- package/resources/targets/codebuddy/js/js/context/AGENTS.md +25 -0
- package/resources/targets/codebuddy/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/codebuddy/js/js/context/knowledge/AigcWiring.md +9 -0
- package/resources/targets/codebuddy/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/codebuddy/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/codebuddy/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/codebuddy/js/js/context/skills/aigc-generate/SKILL.md +14 -0
- package/resources/targets/codebuddy/js/js/context/skills/asset-search/SKILL.md +12 -0
- package/resources/targets/codebuddy/js/js/context/skills/asset-search/references/resource-config.md +9 -0
- package/resources/targets/codebuddy/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/codebuddy/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/codebuddy/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/codebuddy/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/codebuddy/js/js/context/skills/index.json +31 -0
- package/resources/targets/codebuddy/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/codebuddy/js/js/project/README.md +7 -0
- package/resources/targets/codebuddy/js/js/project/configs/assets.json +1 -0
- package/resources/targets/codebuddy/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/codebuddy/js/js/project/configs/game.json +3 -0
- package/resources/targets/codebuddy/js/js/project/game.config.json +7 -0
- package/resources/targets/codebuddy/js/js/project/index.html +20 -0
- package/resources/targets/codebuddy/js/js/project/package.json +22 -0
- package/resources/targets/codebuddy/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/codebuddy/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/codebuddy/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/codebuddy/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/codebuddy/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/codebuddy/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/codebuddy/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/codebuddy/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/codebuddy/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/codebuddy/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/codebuddy/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/codebuddy/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/codebuddy/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/codebuddy/js/recovery.md +7 -0
- package/resources/targets/codebuddy/js/target.json +61 -0
- package/resources/targets/codebuddy/js3d/bootstrap/SKILL.md +14 -0
- package/resources/targets/codebuddy/js3d/craft-game-maker/SKILL.md +77 -0
- package/resources/targets/codebuddy/js3d/craft-game-maker/js3d.md +13 -0
- package/resources/targets/codebuddy/js3d/js3d/bundle.json +110 -0
- package/resources/targets/codebuddy/js3d/js3d/context/AGENTS.md +26 -0
- package/resources/targets/codebuddy/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AigcWiring.md +9 -0
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +14 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-search/SKILL.md +12 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md +11 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/index.json +43 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/codebuddy/js3d/js3d/project/README.md +7 -0
- package/resources/targets/codebuddy/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/codebuddy/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/codebuddy/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/codebuddy/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/codebuddy/js3d/js3d/project/index.html +12 -0
- package/resources/targets/codebuddy/js3d/js3d/project/package.json +23 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/codebuddy/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/codebuddy/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/codebuddy/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/codebuddy/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/codebuddy/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/codebuddy/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/codebuddy/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/codebuddy/js3d/recovery.md +7 -0
- package/resources/targets/codebuddy/js3d/target.json +60 -0
- package/resources/targets/codex/js/bootstrap/SKILL.md +14 -0
- package/resources/targets/codex/js/craft-game-maker/SKILL.md +77 -0
- package/resources/targets/codex/js/craft-game-maker/js.md +10 -0
- package/resources/targets/codex/js/js/bundle.json +99 -0
- package/resources/targets/codex/js/js/context/AGENTS.md +25 -0
- package/resources/targets/codex/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/codex/js/js/context/knowledge/AigcWiring.md +9 -0
- package/resources/targets/codex/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/codex/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/codex/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/codex/js/js/context/skills/aigc-generate/SKILL.md +14 -0
- package/resources/targets/codex/js/js/context/skills/asset-search/SKILL.md +12 -0
- package/resources/targets/codex/js/js/context/skills/asset-search/references/resource-config.md +9 -0
- package/resources/targets/codex/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/codex/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/codex/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/codex/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/codex/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/codex/js/js/context/skills/index.json +31 -0
- package/resources/targets/codex/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/codex/js/js/project/README.md +7 -0
- package/resources/targets/codex/js/js/project/configs/assets.json +1 -0
- package/resources/targets/codex/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/codex/js/js/project/configs/game.json +3 -0
- package/resources/targets/codex/js/js/project/game-runtime.json +7 -0
- package/resources/targets/codex/js/js/project/game.config.json +7 -0
- package/resources/targets/codex/js/js/project/index.html +20 -0
- package/resources/targets/codex/js/js/project/package.json +22 -0
- package/resources/targets/codex/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/codex/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/codex/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/codex/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/codex/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/codex/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/codex/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/codex/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/codex/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/codex/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/codex/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/codex/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/codex/js/js/project/src/main.ts +87 -0
- package/resources/targets/codex/js/js/project/src/platform.ts +2 -0
- package/resources/targets/codex/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/codex/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/codex/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/codex/js/js/project/src/style.css +294 -0
- package/resources/targets/codex/js/js/project/tsconfig.json +20 -0
- package/resources/targets/codex/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/codex/js/js/project/vite.config.ts +5 -0
- package/resources/targets/codex/js/recovery.md +7 -0
- package/resources/targets/codex/js/target.json +61 -0
- package/resources/targets/codex/js3d/bootstrap/SKILL.md +14 -0
- package/resources/targets/codex/js3d/craft-game-maker/SKILL.md +77 -0
- package/resources/targets/codex/js3d/craft-game-maker/js3d.md +13 -0
- package/resources/targets/codex/js3d/js3d/bundle.json +110 -0
- package/resources/targets/codex/js3d/js3d/context/AGENTS.md +26 -0
- package/resources/targets/codex/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/codex/js3d/js3d/context/knowledge/AigcWiring.md +9 -0
- package/resources/targets/codex/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/codex/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/codex/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/codex/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/codex/js3d/js3d/context/skills/aigc-integration/SKILL.md +14 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-search/SKILL.md +12 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-search/references/resource-config.md +11 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/codex/js3d/js3d/context/skills/index.json +43 -0
- package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/codex/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/codex/js3d/js3d/project/README.md +7 -0
- package/resources/targets/codex/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/codex/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/codex/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/codex/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/codex/js3d/js3d/project/index.html +12 -0
- package/resources/targets/codex/js3d/js3d/project/package.json +23 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/codex/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/codex/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/codex/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/codex/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/codex/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/codex/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/codex/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/codex/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/codex/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/codex/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/codex/js3d/recovery.md +7 -0
- package/resources/targets/codex/js3d/target.json +60 -0
- package/resources/targets/index.json +41 -0
- package/resources/targets/workbuddy/js/bootstrap/SKILL.md +14 -0
- package/resources/targets/workbuddy/js/craft-game-maker/SKILL.md +77 -0
- package/resources/targets/workbuddy/js/craft-game-maker/js.md +10 -0
- package/resources/targets/workbuddy/js/js/bundle.json +99 -0
- package/resources/targets/workbuddy/js/js/context/AGENTS.md +25 -0
- package/resources/targets/workbuddy/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/workbuddy/js/js/context/knowledge/AigcWiring.md +9 -0
- package/resources/targets/workbuddy/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/workbuddy/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/workbuddy/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/workbuddy/js/js/context/skills/aigc-generate/SKILL.md +14 -0
- package/resources/targets/workbuddy/js/js/context/skills/asset-search/SKILL.md +12 -0
- package/resources/targets/workbuddy/js/js/context/skills/asset-search/references/resource-config.md +9 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/workbuddy/js/js/context/skills/index.json +31 -0
- package/resources/targets/workbuddy/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/workbuddy/js/js/project/README.md +7 -0
- package/resources/targets/workbuddy/js/js/project/configs/assets.json +1 -0
- package/resources/targets/workbuddy/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/workbuddy/js/js/project/configs/game.json +3 -0
- package/resources/targets/workbuddy/js/js/project/game-runtime.json +7 -0
- package/resources/targets/workbuddy/js/js/project/game.config.json +7 -0
- package/resources/targets/workbuddy/js/js/project/index.html +20 -0
- package/resources/targets/workbuddy/js/js/project/package.json +22 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/workbuddy/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/workbuddy/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/workbuddy/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/workbuddy/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/workbuddy/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/workbuddy/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/workbuddy/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/workbuddy/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/workbuddy/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/workbuddy/js/js/project/src/main.ts +87 -0
- package/resources/targets/workbuddy/js/js/project/src/platform.ts +2 -0
- package/resources/targets/workbuddy/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/workbuddy/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/workbuddy/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/workbuddy/js/js/project/src/style.css +294 -0
- package/resources/targets/workbuddy/js/js/project/tsconfig.json +20 -0
- package/resources/targets/workbuddy/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/workbuddy/js/js/project/vite.config.ts +5 -0
- package/resources/targets/workbuddy/js/recovery.md +7 -0
- package/resources/targets/workbuddy/js/target.json +61 -0
- package/resources/targets/workbuddy/js3d/bootstrap/SKILL.md +14 -0
- package/resources/targets/workbuddy/js3d/craft-game-maker/SKILL.md +77 -0
- package/resources/targets/workbuddy/js3d/craft-game-maker/js3d.md +13 -0
- package/resources/targets/workbuddy/js3d/js3d/bundle.json +110 -0
- package/resources/targets/workbuddy/js3d/js3d/context/AGENTS.md +26 -0
- package/resources/targets/workbuddy/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AigcWiring.md +9 -0
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +14 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-search/SKILL.md +12 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md +11 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/index.json +43 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/workbuddy/js3d/js3d/project/README.md +7 -0
- package/resources/targets/workbuddy/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/workbuddy/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/workbuddy/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/workbuddy/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/workbuddy/js3d/js3d/project/index.html +12 -0
- package/resources/targets/workbuddy/js3d/js3d/project/package.json +23 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/workbuddy/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/workbuddy/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/workbuddy/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/workbuddy/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/workbuddy/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/workbuddy/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/workbuddy/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/workbuddy/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/workbuddy/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/workbuddy/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/workbuddy/js3d/recovery.md +7 -0
- package/resources/targets/workbuddy/js3d/target.json +60 -0
- package/vendor/craft-runtime/NOTICE.md +3 -0
- package/vendor/craft-runtime/SOURCE.json +63 -0
- package/vendor/craft-runtime/index.js +1716 -0
- package/vendor/craft-runtime/isolated-launcher.js +94 -0
- package/vendor/craft-runtime/isolated-preload.js +80 -0
- package/vendor/craft-runtime/package.json +8 -0
- package/resources/js/context/.role/AGENTS_DESIGN.md +0 -9
- package/resources/js/context/agents/aigc-asset.md +0 -168
- package/resources/js/context/knowledge/AigcEnabled.md +0 -49
- package/resources/js/context/knowledge/FrontendComponents.md +0 -17
- package/resources/js/context/knowledge/MobileAdaptation.md +0 -73
- package/resources/js/context/knowledge/MobileAdapted.md +0 -36
- package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
- package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -115
- package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -392
- package/resources/js/context/knowledge/PlatformServices.md +0 -190
- package/resources/js/context/knowledge/ProjectDisplayConfig.md +0 -35
- package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
- package/resources/js/context/knowledge/Ui.md +0 -11
- package/resources/js/context/knowledge/UiEditorCompat.md +0 -21
- package/resources/js/context/rules/MultiplayerCapability.md +0 -23
- package/resources/js/context/rules/MultiplayerRoomEntryUX.md +0 -63
- package/resources/js/context/rules/PlatformBoundaryModules.md +0 -44
- package/resources/js/context/rules/preview_ready.md +0 -8
- package/resources/js/context/skills/aigc-generate/knowledge/audio.md +0 -39
- package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +0 -26
- package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +0 -132
- package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +0 -53
- package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +0 -52
- package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +0 -191
- package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +0 -55
- package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +0 -62
- package/resources/js/context/skills/asset-search/scripts/config.json +0 -5
- package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +0 -125
- package/resources/js/context/skills/asset-search/scripts/search.mjs +0 -760
- package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -657
- package/resources/js/context/skills/asset-search/strategies/anim2d.md +0 -42
- package/resources/js/context/skills/asset-search/strategies/audio.md +0 -34
- package/resources/js/context/skills/asset-search/strategies/effect2d.md +0 -31
- package/resources/js/context/skills/asset-search/strategies/texture-prop.md +0 -22
- package/resources/js/context/skills/asset-search/strategies/ui-common.md +0 -40
- package/resources/js/context/skills/asset-search/strategies/ui-style.md +0 -28
- package/resources/js/context/skills/export-config/scripts/sync-asset-controls.mjs +0 -352
- package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
- package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +0 -93
- package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +0 -22
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +0 -37
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +0 -159
- package/resources/js/context/skills/mobile-adaptation/SKILL.md +0 -277
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -50
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -862
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -135
- package/resources/js/context/skills/mobile-adaptation/references/input-config.md +0 -342
- package/resources/js/context/skills/mobile-adaptation/references/verification.md +0 -140
- package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +0 -11
- package/resources/js/context/skills/mobile-compat-qa/SKILL.md +0 -53
- package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
- package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
- package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
- package/resources/js/context/skills/optimization-suggestions/SKILL.md +0 -89
- package/resources/js/context/skills/platform-services/SKILL.md +0 -101
- package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
- package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/modules/log.ts +0 -35
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
- package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +0 -49
- package/resources/js/context/skills/platform-services/assets/modules/save.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
- package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
- package/resources/js/context/skills/platform-services/references/api_reference.md +0 -18
- package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
- package/resources/js/context/skills/platform-services/scripts/install.mjs +0 -148
- package/resources/js/context/skills/resolution-adaptation/SKILL.md +0 -47
- package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +0 -98
- package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -200
- package/resources/js/context/skills/resolution-adaptation/references/audit.md +0 -31
- package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
- package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
- package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
- package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
- package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
- package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +0 -55
- package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
- package/resources/js/context/skills/scene-editor-compat/SKILL.md +0 -94
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +0 -13
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +0 -6
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +0 -25
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +0 -18
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +0 -42
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +0 -144
- package/resources/js/context/skills/scene-editor-compat/docs/contract.md +0 -330
- package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +0 -64
- package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +0 -28
- package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +0 -47
- package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +0 -64
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +0 -38
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +0 -9
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +0 -59
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +0 -30
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +0 -66
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +0 -20
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +0 -26
- package/resources/js/context/skills/scene-editor-compat/references/contract.md +0 -73
- package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +0 -162
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +0 -853
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +0 -173
- package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -427
- package/resources/js/context/skills/scene-editor-compat/version.json +0 -1
- package/resources/js/context/skills/ui-editor-compat/SKILL.md +0 -48
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -74
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js/context/skills/ui-editor-compat/references/contract.md +0 -132
- package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
- package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
- package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
- package/resources/js/context/skills/version-update/SKILL.md +0 -192
- package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
- package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
- package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
- package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js/context/version/version.json +0 -1
- package/resources/js/project/SPEC/assist/.gitkeep +0 -0
- package/resources/js/project/SPEC/guide/.gitkeep +0 -0
- package/resources/js/project/SPEC/plan/.gitkeep +0 -0
- package/resources/js/project/SPEC/readme.md +0 -6
- package/resources/js/project/SPEC/res/.gitkeep +0 -0
- package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/release.json +0 -37
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js/project/vendor/core-manager-js/package.json +0 -33
- package/resources/js/project/vendor/core-manager-js/src/.versions.json +0 -42
- package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +0 -41
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +0 -93
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +0 -203
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +0 -106
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +0 -25
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +0 -21
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +0 -65
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +0 -340
- package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +0 -87
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +0 -92
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +0 -271
- package/resources/js/project/vendor/core-manager-js/src/index.ts +0 -31
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +0 -81
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +0 -43
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +0 -32
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +0 -141
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +0 -20
- package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +0 -183
- package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +0 -304
- package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +0 -351
- package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +0 -180
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +0 -13
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +0 -14
- package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +0 -68
- package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +0 -433
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +0 -118
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +0 -444
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +0 -485
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +0 -66
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +0 -149
- package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +0 -9
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +0 -29
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +0 -88
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +0 -122
- package/resources/js/project/vendor/core-manager-js/src/runtime.ts +0 -24
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +0 -318
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +0 -151
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +0 -235
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +0 -98
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +0 -94
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +0 -209
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +0 -106
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +0 -341
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +0 -68
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +0 -236
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +0 -22
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +0 -29
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +0 -197
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +0 -9
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +0 -555
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +0 -112
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +0 -178
- package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +0 -246
- package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +0 -139
- package/resources/js/project/vendor/core-manager-js/tsconfig.json +0 -15
- package/resources/js/project/vendor/run.sh +0 -4
- package/resources/js/project/version/craft_feature_version.json +0 -42
- package/resources/js/project/version/project_feature_version.json +0 -11
- package/resources/js3d/context/.role/AGENTS_DESIGN.md +0 -9
- package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +0 -75
- package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +0 -42
- package/resources/js3d/context/knowledge/FrontendComponents.md +0 -19
- package/resources/js3d/context/knowledge/MobileAdaptation.md +0 -73
- package/resources/js3d/context/knowledge/MobileAdapted.md +0 -36
- package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
- package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -117
- package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -430
- package/resources/js3d/context/knowledge/PlatformServices.md +0 -190
- package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +0 -35
- package/resources/js3d/context/knowledge/SceneEditorCompat.md +0 -35
- package/resources/js3d/context/knowledge/StepByStep.md +0 -21
- package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
- package/resources/js3d/context/knowledge/UiEditorCompat.md +0 -21
- package/resources/js3d/context/rules/MultiplayerCapability.md +0 -27
- package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +0 -63
- package/resources/js3d/context/rules/PlatformBoundaryModules.md +0 -44
- package/resources/js3d/context/rules/preview_ready.md +0 -8
- package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +0 -70
- package/resources/js3d/context/skills/aigc-integration/callback.md +0 -77
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +0 -23
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +0 -38
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +0 -72
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +0 -33
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +0 -36
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +0 -37
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +0 -35
- package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +0 -58
- package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +0 -62
- package/resources/js3d/context/skills/asset-search/scripts/config.json +0 -235
- package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +0 -905
- package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +0 -79
- package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +0 -74
- package/resources/js3d/context/skills/asset-search/scripts/search.mjs +0 -637
- package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -667
- package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +0 -42
- package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +0 -31
- package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +0 -89
- package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +0 -143
- package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +0 -90
- package/resources/js3d/context/skills/export-config/scripts/sync-scene-assets.mjs +0 -216
- package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
- package/resources/js3d/context/skills/game-art-style/SKILL.md +0 -60
- package/resources/js3d/context/skills/game-art-style/assets/previews/cartoon.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/comic.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cozy.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cyber.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/horror.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/lowpoly.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/paper.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/voxel.png +0 -0
- package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +0 -38
- package/resources/js3d/context/skills/game-art-style/references/construction.md +0 -111
- package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +0 -105
- package/resources/js3d/context/skills/game-art-style/references/sources.md +0 -25
- package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +0 -175
- package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +0 -168
- package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +0 -191
- package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +0 -165
- package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +0 -173
- package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +0 -185
- package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +0 -181
- package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +0 -189
- package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +0 -88
- package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +0 -301
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -104
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -933
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -257
- package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +0 -342
- package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +0 -140
- package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +0 -11
- package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +0 -53
- package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +0 -10
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
- package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +0 -74
- package/resources/js3d/context/skills/performance-audit/references/case-notes.md +0 -93
- package/resources/js3d/context/skills/performance-audit/references/rules.md +0 -183
- package/resources/js3d/context/skills/platform-services/SKILL.md +0 -101
- package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
- package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
- package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +0 -35
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
- package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +0 -49
- package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +0 -1
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
- package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
- package/resources/js3d/context/skills/platform-services/references/api_reference.md +0 -18
- package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
- package/resources/js3d/context/skills/platform-services/scripts/install.mjs +0 -148
- package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +0 -46
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +0 -129
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -188
- package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +0 -31
- package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
- package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
- package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
- package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
- package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
- package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
- package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +0 -599
- package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +0 -141
- package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +0 -92
- package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +0 -125
- package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +0 -113
- package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -1187
- package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +0 -53
- package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +0 -4
- package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +0 -94
- package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +0 -50
- package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +0 -105
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +0 -147
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +0 -79
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +0 -56
- package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +0 -51
- package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +0 -55
- package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +0 -78
- package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +0 -84
- package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +0 -120
- package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +0 -4
- package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +0 -238
- package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +0 -59
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -61
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +0 -110
- package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
- package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
- package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
- package/resources/js3d/context/skills/version-update/SKILL.md +0 -191
- package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
- package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
- package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
- package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js3d/context/version/version.json +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -30
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +0 -39
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -7
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js3d/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js3d/project/vendor/core-manager-three/package.json +0 -12
- package/resources/js3d/project/vendor/core-manager-three/src/index.ts +0 -2
- package/resources/js3d/project/vendor/run.sh +0 -4
- package/resources/js3d/project/version/craft_feature_version.json +0 -42
- package/resources/js3d/project/version/project_feature_version.json +0 -11
- package/vendor/agent-cli/dist/runtime-tools/registry.json +0 -6
- package/vendor/agent-cli/dist/runtime-tools/tool-bundle-types.d.cts +0 -15
- package/vendor/agent-cli/dist/runtime-tools/tool-bundle.cjs +0 -129
- package/vendor/agent-cli/dist/runtime-tools/ue/blender-cook-assets.cjs +0 -296
- package/vendor/agent-cli/dist/runtime-tools/ue/context-adapter.cjs +0 -48
- package/vendor/agent-cli/dist/runtime-tools/ue/scene-process-lock.cjs +0 -110
- package/vendor/agent-cli/dist/runtime-tools/ue/tool-manifest.json +0 -22
- package/vendor/agent-cli/dist/runtime-tools/ue/ue-asset-references.cjs +0 -305
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts +0 -3
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js +0 -54
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.d.ts +0 -19
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.js +0 -107
- package/vendor/agent-cli/dist/src/artifacts/external-game-archive.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.d.ts +0 -44
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.js +0 -106
- package/vendor/agent-cli/dist/src/artifacts/external-game-upload.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/native-source.d.ts +0 -3
- package/vendor/agent-cli/dist/src/artifacts/native-source.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/native-source.js +0 -13
- package/vendor/agent-cli/dist/src/artifacts/native-source.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts +0 -13
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +0 -364
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +0 -61
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.js +0 -211
- package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +0 -39
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +0 -173
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.d.ts +0 -27
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.js +0 -112
- package/vendor/agent-cli/dist/src/artifacts/restore-permissions.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts +0 -37
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/restore.js +0 -465
- package/vendor/agent-cli/dist/src/artifacts/restore.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +0 -7
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +0 -145
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts +0 -19
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/static.js +0 -224
- package/vendor/agent-cli/dist/src/artifacts/static.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/process.d.ts +0 -4
- package/vendor/agent-cli/dist/src/cli/commands/process.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/process.js +0 -24
- package/vendor/agent-cli/dist/src/cli/commands/process.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.d.ts +0 -23
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.js +0 -62
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.d.ts +0 -9
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.js +0 -15
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/run.d.ts +0 -3
- package/vendor/agent-cli/dist/src/cli/commands/run.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/run.js +0 -284
- package/vendor/agent-cli/dist/src/cli/commands/run.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/setup.d.ts +0 -11
- package/vendor/agent-cli/dist/src/cli/commands/setup.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/commands/setup.js +0 -161
- package/vendor/agent-cli/dist/src/cli/commands/setup.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/options.d.ts +0 -83
- package/vendor/agent-cli/dist/src/cli/options.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/options.js +0 -213
- package/vendor/agent-cli/dist/src/cli/options.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts +0 -5
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/process-protocol.js +0 -279
- package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/registry.d.ts +0 -55
- package/vendor/agent-cli/dist/src/cli/registry.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/registry.js +0 -99
- package/vendor/agent-cli/dist/src/cli/registry.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.d.ts +0 -44
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.js +0 -83
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli/render/text-sink.d.ts +0 -28
- package/vendor/agent-cli/dist/src/cli/render/text-sink.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli/render/text-sink.js +0 -52
- package/vendor/agent-cli/dist/src/cli/render/text-sink.js.map +0 -1
- package/vendor/agent-cli/dist/src/cli.d.ts +0 -9
- package/vendor/agent-cli/dist/src/cli.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/cli.js +0 -54
- package/vendor/agent-cli/dist/src/cli.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/browser-queue.d.ts +0 -55
- package/vendor/agent-cli/dist/src/component/browser-queue.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/browser-queue.js +0 -63
- package/vendor/agent-cli/dist/src/component/browser-queue.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/execution.d.ts +0 -28
- package/vendor/agent-cli/dist/src/component/execution.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/execution.js +0 -143
- package/vendor/agent-cli/dist/src/component/execution.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/isolated-launcher.d.ts +0 -2
- package/vendor/agent-cli/dist/src/component/isolated-launcher.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/isolated-launcher.js +0 -76
- package/vendor/agent-cli/dist/src/component/isolated-launcher.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/isolated-preload.d.ts +0 -2
- package/vendor/agent-cli/dist/src/component/isolated-preload.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/isolated-preload.js +0 -27
- package/vendor/agent-cli/dist/src/component/isolated-preload.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts +0 -19
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/platform-access/server.js +0 -206
- package/vendor/agent-cli/dist/src/component/platform-access/server.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts +0 -31
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js +0 -62
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/preparation.d.ts +0 -10
- package/vendor/agent-cli/dist/src/component/preparation.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/preparation.js +0 -35
- package/vendor/agent-cli/dist/src/component/preparation.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/process-diagnostics.d.ts +0 -25
- package/vendor/agent-cli/dist/src/component/process-diagnostics.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/process-diagnostics.js +0 -137
- package/vendor/agent-cli/dist/src/component/process-diagnostics.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/process-isolation.d.ts +0 -10
- package/vendor/agent-cli/dist/src/component/process-isolation.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/process-isolation.js +0 -59
- package/vendor/agent-cli/dist/src/component/process-isolation.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/proxied-fetch.d.ts +0 -2
- package/vendor/agent-cli/dist/src/component/proxied-fetch.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/proxied-fetch.js +0 -46
- package/vendor/agent-cli/dist/src/component/proxied-fetch.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/public-egress.d.ts +0 -17
- package/vendor/agent-cli/dist/src/component/public-egress.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/public-egress.js +0 -246
- package/vendor/agent-cli/dist/src/component/public-egress.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/runtime-tools.d.ts +0 -15
- package/vendor/agent-cli/dist/src/component/runtime-tools.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/runtime-tools.js +0 -37
- package/vendor/agent-cli/dist/src/component/runtime-tools.js.map +0 -1
- package/vendor/agent-cli/dist/src/component/runtime.d.ts +0 -8
- package/vendor/agent-cli/dist/src/component/runtime.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/component/runtime.js +0 -95
- package/vendor/agent-cli/dist/src/component/runtime.js.map +0 -1
- package/vendor/agent-cli/dist/src/config/config-store.d.ts +0 -50
- package/vendor/agent-cli/dist/src/config/config-store.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/config/config-store.js +0 -117
- package/vendor/agent-cli/dist/src/config/config-store.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-lease.d.ts +0 -17
- package/vendor/agent-cli/dist/src/context/cache-lease.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-lease.js +0 -133
- package/vendor/agent-cli/dist/src/context/cache-lease.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.d.ts +0 -9
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.js +0 -51
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.d.ts +0 -3
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.js +0 -68
- package/vendor/agent-cli/dist/src/context/cache-publication-lock.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts +0 -4
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/cache-publication.js +0 -58
- package/vendor/agent-cli/dist/src/context/cache-publication.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/client-context-view.d.ts +0 -12
- package/vendor/agent-cli/dist/src/context/client-context-view.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/client-context-view.js +0 -100
- package/vendor/agent-cli/dist/src/context/client-context-view.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-budget.d.ts +0 -3
- package/vendor/agent-cli/dist/src/context/context-budget.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-budget.js +0 -10
- package/vendor/agent-cli/dist/src/context/context-budget.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts +0 -108
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-cache.js +0 -360
- package/vendor/agent-cli/dist/src/context/context-cache.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-project.d.ts +0 -67
- package/vendor/agent-cli/dist/src/context/context-project.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-project.js +0 -254
- package/vendor/agent-cli/dist/src/context/context-project.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-resource.d.ts +0 -4
- package/vendor/agent-cli/dist/src/context/context-resource.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-resource.js +0 -11
- package/vendor/agent-cli/dist/src/context/context-resource.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-scoped-source.d.ts +0 -13
- package/vendor/agent-cli/dist/src/context/context-scoped-source.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-scoped-source.js +0 -78
- package/vendor/agent-cli/dist/src/context/context-scoped-source.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts +0 -23
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js +0 -200
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts +0 -6
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/local-skills.js +0 -174
- package/vendor/agent-cli/dist/src/context/local-skills.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-context.d.ts +0 -20
- package/vendor/agent-cli/dist/src/context/member-context.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-context.js +0 -113
- package/vendor/agent-cli/dist/src/context/member-context.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-documents.d.ts +0 -3
- package/vendor/agent-cli/dist/src/context/member-documents.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-documents.js +0 -38
- package/vendor/agent-cli/dist/src/context/member-documents.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-profile-header.d.ts +0 -3
- package/vendor/agent-cli/dist/src/context/member-profile-header.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-profile-header.js +0 -62
- package/vendor/agent-cli/dist/src/context/member-profile-header.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-profile.d.ts +0 -43
- package/vendor/agent-cli/dist/src/context/member-profile.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-profile.js +0 -91
- package/vendor/agent-cli/dist/src/context/member-profile.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-selection.d.ts +0 -7
- package/vendor/agent-cli/dist/src/context/member-selection.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/member-selection.js +0 -58
- package/vendor/agent-cli/dist/src/context/member-selection.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts +0 -14
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/script-dependencies.js +0 -40
- package/vendor/agent-cli/dist/src/context/script-dependencies.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts +0 -3
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js +0 -56
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/team-definition.d.ts +0 -39
- package/vendor/agent-cli/dist/src/context/team-definition.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/team-definition.js +0 -78
- package/vendor/agent-cli/dist/src/context/team-definition.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts +0 -7
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/team-knowledge.js +0 -46
- package/vendor/agent-cli/dist/src/context/team-knowledge.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts +0 -31
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-cache.js +0 -100
- package/vendor/agent-cli/dist/src/context/template-cache.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-refresh.d.ts +0 -6
- package/vendor/agent-cli/dist/src/context/template-refresh.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-refresh.js +0 -45
- package/vendor/agent-cli/dist/src/context/template-refresh.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts +0 -45
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-seed.js +0 -169
- package/vendor/agent-cli/dist/src/context/template-seed.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-sync.d.ts +0 -11
- package/vendor/agent-cli/dist/src/context/template-sync.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/template-sync.js +0 -167
- package/vendor/agent-cli/dist/src/context/template-sync.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.d.ts +0 -19
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +0 -292
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts +0 -15
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/user-skill-context.js +0 -217
- package/vendor/agent-cli/dist/src/context/user-skill-context.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/user-skill-install.d.ts +0 -54
- package/vendor/agent-cli/dist/src/context/user-skill-install.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/user-skill-install.js +0 -184
- package/vendor/agent-cli/dist/src/context/user-skill-install.js.map +0 -1
- package/vendor/agent-cli/dist/src/context/zip-extract.d.ts +0 -14
- package/vendor/agent-cli/dist/src/context/zip-extract.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/context/zip-extract.js +0 -130
- package/vendor/agent-cli/dist/src/context/zip-extract.js.map +0 -1
- package/vendor/agent-cli/dist/src/index.d.ts +0 -62
- package/vendor/agent-cli/dist/src/index.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/index.js +0 -88
- package/vendor/agent-cli/dist/src/index.js.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts +0 -68
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js +0 -244
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.d.ts +0 -40
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js +0 -87
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/registry.d.ts +0 -134
- package/vendor/agent-cli/dist/src/lifecycle/registry.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/registry.js +0 -152
- package/vendor/agent-cli/dist/src/lifecycle/registry.js.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.d.ts +0 -40
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.js +0 -149
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.js.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/client.d.ts +0 -12
- package/vendor/agent-cli/dist/src/mcp/client.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/client.js +0 -95
- package/vendor/agent-cli/dist/src/mcp/client.js.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/connection.d.ts +0 -14
- package/vendor/agent-cli/dist/src/mcp/connection.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/connection.js +0 -115
- package/vendor/agent-cli/dist/src/mcp/connection.js.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/execute.d.ts +0 -5
- package/vendor/agent-cli/dist/src/mcp/execute.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/execute.js +0 -26
- package/vendor/agent-cli/dist/src/mcp/execute.js.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/instance-lock.d.ts +0 -11
- package/vendor/agent-cli/dist/src/mcp/instance-lock.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/instance-lock.js +0 -51
- package/vendor/agent-cli/dist/src/mcp/instance-lock.js.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/types.d.ts +0 -27
- package/vendor/agent-cli/dist/src/mcp/types.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/mcp/types.js +0 -2
- package/vendor/agent-cli/dist/src/mcp/types.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/input.d.ts +0 -21
- package/vendor/agent-cli/dist/src/protocol/input.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/input.js +0 -95
- package/vendor/agent-cli/dist/src/protocol/input.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/channel.d.ts +0 -58
- package/vendor/agent-cli/dist/src/protocol/link/channel.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/channel.js +0 -337
- package/vendor/agent-cli/dist/src/protocol/link/channel.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.d.ts +0 -13
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.js +0 -27
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/envelope.d.ts +0 -57
- package/vendor/agent-cli/dist/src/protocol/link/envelope.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/envelope.js +0 -93
- package/vendor/agent-cli/dist/src/protocol/link/envelope.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/liveness.d.ts +0 -28
- package/vendor/agent-cli/dist/src/protocol/link/liveness.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/liveness.js +0 -86
- package/vendor/agent-cli/dist/src/protocol/link/liveness.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/middleware.d.ts +0 -14
- package/vendor/agent-cli/dist/src/protocol/link/middleware.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/middleware.js +0 -40
- package/vendor/agent-cli/dist/src/protocol/link/middleware.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/rpc.d.ts +0 -31
- package/vendor/agent-cli/dist/src/protocol/link/rpc.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/rpc.js +0 -90
- package/vendor/agent-cli/dist/src/protocol/link/rpc.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.d.ts +0 -32
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.js +0 -106
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts +0 -533
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js +0 -137
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +0 -420
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +0 -116
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.d.ts +0 -9
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.js +0 -58
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/command-parse.d.ts +0 -21
- package/vendor/agent-cli/dist/src/security/command-parse.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/command-parse.js +0 -395
- package/vendor/agent-cli/dist/src/security/command-parse.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts +0 -30
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/command-translate.js +0 -165
- package/vendor/agent-cli/dist/src/security/command-translate.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/context-write-policy.d.ts +0 -18
- package/vendor/agent-cli/dist/src/security/context-write-policy.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/context-write-policy.js +0 -121
- package/vendor/agent-cli/dist/src/security/context-write-policy.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/guard.d.ts +0 -45
- package/vendor/agent-cli/dist/src/security/guard.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/guard.js +0 -166
- package/vendor/agent-cli/dist/src/security/guard.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts +0 -56
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/mount-table.js +0 -251
- package/vendor/agent-cli/dist/src/security/mount-table.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/sandbox-path.d.ts +0 -23
- package/vendor/agent-cli/dist/src/security/sandbox-path.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/sandbox-path.js +0 -110
- package/vendor/agent-cli/dist/src/security/sandbox-path.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/tool-run-owner.d.ts +0 -5
- package/vendor/agent-cli/dist/src/security/tool-run-owner.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/tool-run-owner.js +0 -16
- package/vendor/agent-cli/dist/src/security/tool-run-owner.js.map +0 -1
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts +0 -19
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/security/tool-scope.js +0 -122
- package/vendor/agent-cli/dist/src/security/tool-scope.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/client.d.ts +0 -136
- package/vendor/agent-cli/dist/src/session/client.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/client.js +0 -400
- package/vendor/agent-cli/dist/src/session/client.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts +0 -6
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/custom-context.js +0 -106
- package/vendor/agent-cli/dist/src/session/custom-context.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/engine-decide.d.ts +0 -38
- package/vendor/agent-cli/dist/src/session/engine-decide.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/engine-decide.js +0 -87
- package/vendor/agent-cli/dist/src/session/engine-decide.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/execution-recovery.d.ts +0 -9
- package/vendor/agent-cli/dist/src/session/execution-recovery.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/execution-recovery.js +0 -49
- package/vendor/agent-cli/dist/src/session/execution-recovery.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/execution-settlement.d.ts +0 -4
- package/vendor/agent-cli/dist/src/session/execution-settlement.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/execution-settlement.js +0 -15
- package/vendor/agent-cli/dist/src/session/execution-settlement.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/expert-definition.d.ts +0 -4
- package/vendor/agent-cli/dist/src/session/expert-definition.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/expert-definition.js +0 -20
- package/vendor/agent-cli/dist/src/session/expert-definition.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/link-config.d.ts +0 -13
- package/vendor/agent-cli/dist/src/session/link-config.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/link-config.js +0 -29
- package/vendor/agent-cli/dist/src/session/link-config.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/link-outcome.d.ts +0 -30
- package/vendor/agent-cli/dist/src/session/link-outcome.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/link-outcome.js +0 -67
- package/vendor/agent-cli/dist/src/session/link-outcome.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/link-session.d.ts +0 -77
- package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/link-session.js +0 -432
- package/vendor/agent-cli/dist/src/session/link-session.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/local-execution.d.ts +0 -28
- package/vendor/agent-cli/dist/src/session/local-execution.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/local-execution.js +0 -119
- package/vendor/agent-cli/dist/src/session/local-execution.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/member-tools.d.ts +0 -22
- package/vendor/agent-cli/dist/src/session/member-tools.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/member-tools.js +0 -72
- package/vendor/agent-cli/dist/src/session/member-tools.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.d.ts +0 -7
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.js +0 -30
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts +0 -3
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-environment.js +0 -33
- package/vendor/agent-cli/dist/src/session/process-environment.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-lifecycle.d.ts +0 -5
- package/vendor/agent-cli/dist/src/session/process-lifecycle.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-lifecycle.js +0 -18
- package/vendor/agent-cli/dist/src/session/process-lifecycle.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts +0 -4
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-observability.js +0 -14
- package/vendor/agent-cli/dist/src/session/process-observability.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-request.d.ts +0 -37
- package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-request.js +0 -473
- package/vendor/agent-cli/dist/src/session/process-request.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-restore.d.ts +0 -4
- package/vendor/agent-cli/dist/src/session/process-restore.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-restore.js +0 -21
- package/vendor/agent-cli/dist/src/session/process-restore.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-summary-output.d.ts +0 -15
- package/vendor/agent-cli/dist/src/session/process-summary-output.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-summary-output.js +0 -46
- package/vendor/agent-cli/dist/src/session/process-summary-output.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-workspace.d.ts +0 -3
- package/vendor/agent-cli/dist/src/session/process-workspace.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/process-workspace.js +0 -21
- package/vendor/agent-cli/dist/src/session/process-workspace.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts +0 -8
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/reference-tools.js +0 -35
- package/vendor/agent-cli/dist/src/session/reference-tools.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/run-events.d.ts +0 -81
- package/vendor/agent-cli/dist/src/session/run-events.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/run-events.js +0 -160
- package/vendor/agent-cli/dist/src/session/run-events.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts +0 -78
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/run-setup.js +0 -294
- package/vendor/agent-cli/dist/src/session/run-setup.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +0 -47
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.js +0 -77
- package/vendor/agent-cli/dist/src/session/run-start-body.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/team-persistence.d.ts +0 -17
- package/vendor/agent-cli/dist/src/session/team-persistence.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/team-persistence.js +0 -75
- package/vendor/agent-cli/dist/src/session/team-persistence.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts +0 -37
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js +0 -242
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-choice-policy.d.ts +0 -25
- package/vendor/agent-cli/dist/src/session/user-choice-policy.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-choice-policy.js +0 -70
- package/vendor/agent-cli/dist/src/session/user-choice-policy.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts +0 -6
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-choice.js +0 -101
- package/vendor/agent-cli/dist/src/session/user-choice.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.d.ts +0 -4
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.js +0 -25
- package/vendor/agent-cli/dist/src/session/user-skill-compatibility.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts +0 -31
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js +0 -105
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.d.ts +0 -4
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.js +0 -15
- package/vendor/agent-cli/dist/src/session/user-skill-prompt.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/app-id.d.ts +0 -13
- package/vendor/agent-cli/dist/src/shared/app-id.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/app-id.js +0 -25
- package/vendor/agent-cli/dist/src/shared/app-id.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/auth-headers.d.ts +0 -13
- package/vendor/agent-cli/dist/src/shared/auth-headers.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/auth-headers.js +0 -16
- package/vendor/agent-cli/dist/src/shared/auth-headers.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/cli-version.d.ts +0 -3
- package/vendor/agent-cli/dist/src/shared/cli-version.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/cli-version.js +0 -22
- package/vendor/agent-cli/dist/src/shared/cli-version.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/error-detail.d.ts +0 -14
- package/vendor/agent-cli/dist/src/shared/error-detail.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/error-detail.js +0 -29
- package/vendor/agent-cli/dist/src/shared/error-detail.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/output-guard.d.ts +0 -36
- package/vendor/agent-cli/dist/src/shared/output-guard.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/output-guard.js +0 -94
- package/vendor/agent-cli/dist/src/shared/output-guard.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/process-cwd.d.ts +0 -3
- package/vendor/agent-cli/dist/src/shared/process-cwd.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/process-cwd.js +0 -11
- package/vendor/agent-cli/dist/src/shared/process-cwd.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/process-types.d.ts +0 -60
- package/vendor/agent-cli/dist/src/shared/process-types.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/process-types.js +0 -10
- package/vendor/agent-cli/dist/src/shared/process-types.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/replace-file.d.ts +0 -3
- package/vendor/agent-cli/dist/src/shared/replace-file.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/replace-file.js +0 -34
- package/vendor/agent-cli/dist/src/shared/replace-file.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/server-headers.d.ts +0 -7
- package/vendor/agent-cli/dist/src/shared/server-headers.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/server-headers.js +0 -113
- package/vendor/agent-cli/dist/src/shared/server-headers.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/shell-runtime.d.ts +0 -47
- package/vendor/agent-cli/dist/src/shared/shell-runtime.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/shell-runtime.js +0 -210
- package/vendor/agent-cli/dist/src/shared/shell-runtime.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/types.d.ts +0 -513
- package/vendor/agent-cli/dist/src/shared/types.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/types.js +0 -2
- package/vendor/agent-cli/dist/src/shared/types.js.map +0 -1
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts +0 -41
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/shared/user-choice.js +0 -2
- package/vendor/agent-cli/dist/src/shared/user-choice.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.d.ts +0 -9
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.js +0 -85
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts +0 -33
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/command-executor.js +0 -133
- package/vendor/agent-cli/dist/src/tools/command-executor.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/context-program-publish.d.ts +0 -16
- package/vendor/agent-cli/dist/src/tools/context-program-publish.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/context-program-publish.js +0 -104
- package/vendor/agent-cli/dist/src/tools/context-program-publish.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts +0 -21
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/context-program.js +0 -233
- package/vendor/agent-cli/dist/src/tools/context-program.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts +0 -52
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/file-ops.js +0 -403
- package/vendor/agent-cli/dist/src/tools/file-ops.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/file-search.d.ts +0 -29
- package/vendor/agent-cli/dist/src/tools/file-search.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/file-search.js +0 -98
- package/vendor/agent-cli/dist/src/tools/file-search.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/file-stat.d.ts +0 -9
- package/vendor/agent-cli/dist/src/tools/file-stat.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/file-stat.js +0 -29
- package/vendor/agent-cli/dist/src/tools/file-stat.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts +0 -58
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/local-hands.js +0 -330
- package/vendor/agent-cli/dist/src/tools/local-hands.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.d.ts +0 -24
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.js +0 -160
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts +0 -69
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js +0 -68
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/tool-timeout.d.ts +0 -29
- package/vendor/agent-cli/dist/src/tools/tool-timeout.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/tool-timeout.js +0 -88
- package/vendor/agent-cli/dist/src/tools/tool-timeout.js.map +0 -1
- package/vendor/agent-cli/dist/src/tools/write-guard.d.ts +0 -42
- package/vendor/agent-cli/dist/src/tools/write-guard.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/tools/write-guard.js +0 -34
- package/vendor/agent-cli/dist/src/tools/write-guard.js.map +0 -1
- package/vendor/agent-cli/package.json +0 -29
- /package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
- /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
- /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/cli.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/config.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/config.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/project.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/project.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/vite.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config → targets/codebuddy/js/js/context/skills/export-config/assets/tooling}/vite.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/game-runtime.json +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/platform.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/platform/platform.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/release.json +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tooling/cli.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tooling/project.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tooling/project.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tooling/vite.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tools/assets.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tools/assets.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tools/astc.d.mts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/runtime/lightgame/1.1.0/tools/astc.mjs +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0/platform → targets/codebuddy/js/js/project/scripts/skill-modules/export-config}/config.d.mts +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0/platform → targets/codebuddy/js/js/project/scripts/skill-modules/export-config}/config.mjs +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/scripts/skill-modules/export-config/installed.json +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/src/display/ui-stage.ts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/src/display/viewport.ts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/src/main.ts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/src/platform.ts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/src/screenUi.ts +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/src/style.css +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/tsconfig.json +0 -0
- /package/resources/{js/context/skills/lightgame-runtime-adapt → targets/codebuddy/js/js}/project/vite.config.ts +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0/platform → targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling}/config.d.mts +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0/platform → targets/codebuddy/js3d/js3d/context/skills/export-config/assets/tooling}/config.mjs +0 -0
- /package/resources/{js/context/skills/platform-services/assets/modules → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform}/identity/qq-ai-game-sdk.min.js +0 -0
- /package/resources/{js/context/skills/platform-services/assets/modules → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform}/identity/qq-session.mjs +0 -0
- /package/resources/{js/context/skills/platform-services/assets/modules → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform}/identity/shared.mjs +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/platform/platform-capture-video.mjs +0 -0
- /package/resources/{js/context/skills/platform-services/assets/modules → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform}/platform-service.d.mts +0 -0
- /package/resources/{js/context/skills/platform-services/assets/modules → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0/platform}/platform-service.mjs +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/platform/platform.d.mts +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/tools/assets.d.mts +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/tools/assets.mjs +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/tools/astc.d.mts +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/tools/astc.mjs +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/tools/glb.d.mts +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codebuddy/js3d/js3d/project/runtime/lightgame/1.1.0}/tools/glb.mjs +0 -0
- /package/resources/{js3d/context/skills/resolution-adaptation/assets → targets/codebuddy/js3d/js3d/project/src}/display/ui-stage.ts +0 -0
- /package/resources/{js3d/context/skills/resolution-adaptation/assets → targets/codebuddy/js3d/js3d/project/src}/display/viewport.ts +0 -0
- /package/resources/{js3d/context/skills/platform-services/assets/modules → targets/codex/js/js/project/runtime/lightgame/1.1.0/platform}/identity/qq-ai-game-sdk.min.js +0 -0
- /package/resources/{js3d/context/skills/platform-services/assets/modules → targets/codex/js/js/project/runtime/lightgame/1.1.0/platform}/identity/qq-session.mjs +0 -0
- /package/resources/{js3d/context/skills/platform-services/assets/modules → targets/codex/js/js/project/runtime/lightgame/1.1.0/platform}/identity/shared.mjs +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/platform/platform-capture-video.mjs +0 -0
- /package/resources/{js3d/context/skills/platform-services/assets/modules → targets/codex/js/js/project/runtime/lightgame/1.1.0/platform}/platform-service.d.mts +0 -0
- /package/resources/{js3d/context/skills/platform-services/assets/modules → targets/codex/js/js/project/runtime/lightgame/1.1.0/platform}/platform-service.mjs +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/platform/platform.d.mts +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/platform/platform.mjs +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/tools/assets.d.mts +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/tools/assets.mjs +0 -0
- /package/resources/{js3d/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/tools/astc.d.mts +0 -0
- /package/resources/{js/project/runtime/lightgame/1.0.0 → targets/codex/js/js/project/runtime/lightgame/1.1.0}/tools/astc.mjs +0 -0
- /package/resources/{js/context/skills/resolution-adaptation/assets → targets/codex/js/js/project/src}/display/ui-stage.ts +0 -0
- /package/resources/{js/context/skills/resolution-adaptation/assets → targets/codex/js/js/project/src}/display/viewport.ts +0 -0
|
@@ -1,599 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: scene-editor-compat
|
|
3
|
-
version: 1.7.0
|
|
4
|
-
description: >
|
|
5
|
-
把 JS3D(Three.js)项目写死的静态场景摆位改造成场景编辑器可读写的 scene.ts(items)结构:
|
|
6
|
-
抽取造型与坐标、写 slots.ts / mount.ts、打包 slots.preview.js bundle、对齐云资产六环与通用碰撞桥。
|
|
7
|
-
用户要求「把场景转成可编辑」「接入场景编辑器」「让编辑器能改这个项目的场景」或点名本 skill 时使用。
|
|
8
|
-
普通 3D 场景开发、界面编辑、JS 二维地图不走此流程;已接入项目的日常摆位与造型维护按
|
|
9
|
-
`${CRAFT_CONTEXT_DIR}/knowledge/CodingGuide/SceneEditableGuide.md` 处理,不重复整套转换。
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# JS3D 场景可编辑改造
|
|
13
|
-
|
|
14
|
-
把项目里写死的场景摆位抽成 `scene.ts` 数据,让场景编辑器能读写它。
|
|
15
|
-
|
|
16
|
-
适配状态判定见 `${CRAFT_CONTEXT_DIR}/knowledge/SceneEditorCompat.md`。本 skill 负责实际转换与产物交付;仅改文件命名、补注释或写标记不算接入。
|
|
17
|
-
|
|
18
|
-
## 交付流程
|
|
19
|
-
|
|
20
|
-
转换收尾固定执行,缺一不可:
|
|
21
|
-
|
|
22
|
-
1. 机械校验(含 bundle 三查):
|
|
23
|
-
|
|
24
|
-
```sh
|
|
25
|
-
node "${CRAFT_SKILL_DIR}/scripts/scene-editor.mjs" check --project "${CRAFT_PROJECT_DIR}"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
校验 scene.ts / slots.ts / bundle / projectDisplayInfo 契约与 `slots.preview.js` 三查,不运行游戏,也不等同于实际编辑器。按报告修正真实问题,不要改校验脚本、减少应转物件或补假标记绕过。
|
|
29
|
-
|
|
30
|
-
2. 按 `${CRAFT_CONTEXT_DIR}/AGENTS.md` 的交付要求通过本批改动的构建校验(`npm run build` 已含类型检查;依赖补齐与全量类型检查见第 12 步)。转换不能改变游戏原有玩法与画面,原有可玩闭环同样按 `${CRAFT_CONTEXT_DIR}/AGENTS.md` 的要求复验。
|
|
31
|
-
|
|
32
|
-
3. 检查与验证通过后标记:
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
node "${CRAFT_SKILL_DIR}/scripts/scene-editor.mjs" mark --project "${CRAFT_PROJECT_DIR}"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`mark` 重跑检查后合并 `SPEC/plan/dev-config.json` 的 `scene_editor_compat: true`、`scene_editor_scene` 路径(多关卡项目另写 `scene_editor_scenes` 全部关卡路径数组),保留其他字段。最后按 `version/craft_feature_version.json` 里 `sceneeditor` 的 `currentVersion` 写入 `version/project_feature_version.json`。版本号由开发者在平台清单里手动维护。平台清单在写标记前校验:清单不合法或缺少 `sceneeditor` 时 `mark` 报错,标记也不写;工程没有平台清单时照常写标记,跳过回写并输出 `FEATURE_VERSION_SKIPPED`。`mark` 报错即未标记,按报错首行修正后重跑。它是本地接入记录,不是线上编辑器验收证明,也不能打开未实现的平台功能;不要直接编辑 JSON 代替检查,也不要手改功能版本文件。
|
|
39
|
-
|
|
40
|
-
编辑器不可访问时,交付说明写「本地契约、bundle 三查与游戏行为通过;线上编辑与退出保存待验证」,并列出未验证项。
|
|
41
|
-
|
|
42
|
-
## 版本号
|
|
43
|
-
|
|
44
|
-
已应用的功能版本只写在 `version/project_feature_version.json` 的 `sceneeditor`。数值来自 `version/craft_feature_version.json` 的 `currentVersion`,由开发者手动维护。`mark` 在检查通过后调用回写脚本,不要手改这两份文件。
|
|
45
|
-
|
|
46
|
-
frontmatter 里的 `version` 只在 `check` 时打印,用来识别这份 skill 文本的修订,不写入项目。递增规则:改契约或新增判据(产出可能不同)递 MINOR;纯措辞修正递 PATCH;产出结构不兼容(如 `scene.ts` 形态变化)递 MAJOR。改了约束就同步递增版本号,不要只改内容不升版本。
|
|
47
|
-
|
|
48
|
-
## 设计原则(所有步骤的最高判据)
|
|
49
|
-
|
|
50
|
-
1. **目的**:只做 JS3D 项目内**静态场景**的转换与可编辑。
|
|
51
|
-
2. **允许的改动杠杆只有三个**:优化本 skill、完善场景编辑器功能、完善 JS3D 上下文——其中 JS3D 上下文尽可能不去改动。
|
|
52
|
-
3. **保真要求**:编辑器里看到的场景必须与游戏内场景基本一致。动效、光照等允许些许差异;**物件的位置、形状、部件必须几乎完全一致**。近似/分解方案不得引入「看得见的结构差异」(透空、缺面、轮廓变形)。构造级一致由 `slots.preview.js` bundle 保证(第 12.5 步):编辑器与游戏执行同一份造型代码,多面体、每实例差异参数原样呈现。
|
|
53
|
-
4. **可消费性**:转换后的场景必须能被 Agent 正常消费,支持用户后续用自然语言对话混编、修改场景。
|
|
54
|
-
5. **验证约束**:不允许依赖运行时抽帧/截图自查(环境不可行)。保真验证只能靠静态机械自查(形状计数对源码、封闭性推演、坐标逐位比对)、`check` 的 bundle 三查与人工终审(Verification 8,验收人肉眼比对,agent 不执行任何截图类检查)。能力缺口(不支持的几何、环境项)必须在交付说明中显式声明为警告项,不得静默交付。
|
|
55
|
-
|
|
56
|
-
## When to use
|
|
57
|
-
|
|
58
|
-
- 用户要求把某个 JS3D 项目的场景「转成可编辑」「接入场景编辑器」
|
|
59
|
-
- 用户要求让编辑器支持某个项目的场景格式
|
|
60
|
-
- 平台要对未改造项目启用场景编辑功能
|
|
61
|
-
|
|
62
|
-
**不适用**:真随机生成布局的场景、几乎全是每帧移动物体的场景——见第 1 步判定(固定种子确定性撒点不算随机生成布局,按第 6 步处理)。判定为不能转就停下说明,不硬转。
|
|
63
|
-
|
|
64
|
-
运行时合并网格、参数化整体结构(高度场地形、连续程序化曲面)**不属于拒判理由**:它们只是不能逐实例拆,不是不能转,按第 6 步「整块收编」处理。把它们当拒判理由 = 本 skill 对这类项目零价值,是最需要避免的过度保守。
|
|
65
|
-
|
|
66
|
-
## Steps
|
|
67
|
-
|
|
68
|
-
### 第 0 步:用干净起点
|
|
69
|
-
|
|
70
|
-
项目目录里已有 `levels/` 或 `registry.ts` / `levelRuntime.ts` 时,说明它被旧格式转换过。**找转换前的备份做起点**,不要在旧产物上叠加。
|
|
71
|
-
|
|
72
|
-
用户只给得出旧产物、没有转换前工程时,做**契约兼容迁移**(`sky.stops`、`solid` 通用碰撞桥、bundle 合同修复一类)并在交接说明写明来源与迁移边界;要完整重转就向用户索取干净起点。
|
|
73
|
-
|
|
74
|
-
### 第 1 步:判定能不能转
|
|
75
|
-
|
|
76
|
-
搜这些特征,**逐项按右侧处理,不要直接拒判**:
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
Math.random | makeRng | mulberry32 | lcg | seededRand → 追问种子确定性(见下)
|
|
80
|
-
mergeGeometries | mergeBufferGeometries → 整块收编(第 6 步),不是拒判
|
|
81
|
-
PlaneGeometry 配 setY 顶点位移循环 / 噪声函数直接产出高度 → 参数化地形,整块收编(第 6 步),不是拒判
|
|
82
|
-
update/tick 里大量改 position → 每帧移动;仅当「几乎全是每帧移动」才整体拒判
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**真正的拒判项只有两类**:真随机生成布局(种子来自运行时/`Math.random`)、几乎全是每帧移动物体的场景。其余特征都有收编路径——命中特征先问「能不能整块收编」,能则转,不能才停。宁可多转一块整槽位,不要轻易整项目拒转。
|
|
86
|
-
|
|
87
|
-
**rng 命中后必须追问种子确定性**,两种命运完全不同:
|
|
88
|
-
|
|
89
|
-
- 种子是**写死的字面量**(如 `mulberry32(777001)` 这类固定入参)、生成过程不接任何运行时输入/时间/用户数据 → **确定性程序化摆位**,每次运行位置逐位一致,按第 6 步「确定性撒点收编」烘焙进 items。
|
|
90
|
-
- 使用 `Math.random`、或种子来自运行时输入/时间戳 → **真随机**,代码原样保留、坐标留玩法侧。
|
|
91
|
-
|
|
92
|
-
混合场景(固定摆位 + 真随机撒点各自独立成段)是唯一例外:只收编固定与确定性部分,真随机部分代码原样保留。**禁止因为函数里出现了 rng 就把整个构建函数归入随机段跳过。**
|
|
93
|
-
|
|
94
|
-
### 第 2 步:盘点画面
|
|
95
|
-
|
|
96
|
-
确定要产出几份 `scene.ts`。判据是**有没有自己的一组摆位**——只换相机机位看同一批物件的不算独立场景(相机不进场景数据)。纯 DOM 画面排除。
|
|
97
|
-
|
|
98
|
-
同时列出**主特征件清单**:本项目删掉后用户就认不出它的标识性大件(屋顶、树冠、岛体、招牌之类)。这些件的 build 造型必须与源码轮廓一致、禁用任何近似(见 [references/slots-rules.md](references/slots-rules.md) 主特征件),清单写进交接说明并逐件核对。
|
|
99
|
-
|
|
100
|
-
**多关卡落位约定**(判定为 N 个独立场景时):
|
|
101
|
-
|
|
102
|
-
- 每关一个目录:`src/scenes/<关卡名>/`,各含自己的 `scene.ts` / `slots.ts` / `mount.ts`(`systems/sceneLayout.ts` 等玩法读数通道也按关内聚)。
|
|
103
|
-
- **跨关复用的造型放进公共槽位模块** `src/scenes/shared/slots.ts`:在公共模块里定义一次槽位(键名 → label + build),用到的各关 `slots.ts` 引入并并入自己的 `slots` 导出。编辑器跨关拖入的物件因此在本关键空间内可见,且全项目只有一个定义。
|
|
104
|
-
- `projectDisplayInfo.json` 的 `scene` 字段 = **主关**路径(编辑器打开默认加载的关卡),其余关卡不写该字段。
|
|
105
|
-
- **slots 键全项目唯一**:编辑器槽位注册是全局键空间(`slots.preview.js` 一次注册,同名后到覆盖先到),两个关各自定义同名槽位时先注册的 build 被覆盖、先转的关卡静默渲染错造型。公共槽位模块天然满足这条。
|
|
106
|
-
- **各关装配必须用「全项目槽位并集」**:编辑器槽位面板是全局的(bundle 一次注册全部槽位,用户能看到并拖出**任何一个**),而每关 `scene.ts` 是独立文件。用户把 A 关的专有槽位拖进 B 关时,摆位数据会正常写进 B 关 `scene.ts`——若 B 关装配只认本关槽位表,该 item 会被「未知槽位,跳过」**静默丢掉:编辑器里看得见、游戏里看不见**。做法:建 `src/scenes/allSlots.ts` 做并集 + 跨关重名检查(build / defaultParams / tag / solid **四项全等**才算同一定义、放行,有一项不同就 `throw`),**各关 `mount.ts` 与 bundle 入口都用它**,两端同源、不可能分叉。
|
|
107
|
-
|
|
108
|
-
判据提醒:靠玩法逻辑产出的「关卡」(随机生成布局、每关重建摆位)不算独立场景——按第 6 步跳过白名单或确定性收编处理,转换产物仍是**单个** scene.ts。
|
|
109
|
-
|
|
110
|
-
### 第 3 步:建类型定义
|
|
111
|
-
|
|
112
|
-
`src/scenes/sceneTypes.ts`,内容见 [references/scene-data-format.md](references/scene-data-format.md)。
|
|
113
|
-
|
|
114
|
-
### 第 4 步:抽造型函数
|
|
115
|
-
|
|
116
|
-
对每个静态物件问:有没有「调用一次产出完整物件」的函数?
|
|
117
|
-
|
|
118
|
-
| 情况 | 处理 |
|
|
119
|
-
|---|---|
|
|
120
|
-
| 有,不接位置参数 | 直接登记 |
|
|
121
|
-
| 有,接位置参数 `buildTable(x, z)` | 去掉位置参数 |
|
|
122
|
-
| 有,一次产出多个 | 拆成单物件函数 |
|
|
123
|
-
| 有,直接 add 进 scene | 改为返回 Object3D |
|
|
124
|
-
| 没有,几何裸写 | 提取为函数,**几何语句逐字不变** |
|
|
125
|
-
|
|
126
|
-
最后一类是真实重构,必须记入交接说明并提示用户跑游戏确认画面。
|
|
127
|
-
|
|
128
|
-
**给玩法要用的子节点命名**(`plateAnchor` / `stoveFlame` / `doorLeaf`),装配后用 `getObjectByName` 取,比按子节点顺序或类型猜稳。
|
|
129
|
-
|
|
130
|
-
**「逐字保留」的准确定义**:几何构造语句与材质参数照抄源码,不改写、不降级、不依赖 helper 缺省值。材质参数与阴影标志(`roughness` / `metalness` / `flatShading` / `vertexColors` / `transparent` / `opacity` / `castShadow` / `receiveShadow`)**tsc / vite build / 形状计数三样全都不报**,必须逐个显式传参。细节与形状计数自查方式见 [references/slots-rules.md](references/slots-rules.md)。
|
|
131
|
-
|
|
132
|
-
### 第 5 步:写 slots.ts
|
|
133
|
-
|
|
134
|
-
槽位名 → `label` + `build` 造型函数,**不写 preview**;另有三个可选、但适用时必须发布的字段:`defaultParams`(尺寸参数默认值,编辑器拖入即带)、`tag`(玩法语义标记)、`solid`(该槽位件不挡人时写 `false`)。编辑器拖入新实例时**只有这条通道**能把默认尺寸 / 玩法语义 / 碰撞事实带过去,不发布就三样全空。结构与造型规则见 [references/slots-rules.md](references/slots-rules.md)。
|
|
135
|
-
|
|
136
|
-
**编辑器渲染只走 builder**:bundle(`slots.preview.js`,第 12.5 步)命中时编辑器执行项目的 build 造型代码;未命中(bundle 未交付 / 槽位缺失)直接占位盒显式暴露,**没有字面量渲染路径**。bundle 入口从 slots.ts 生成,编辑器运行时不解析 slots.ts 本体。
|
|
137
|
-
|
|
138
|
-
### 第 5.5 步:场景环境透传与造型准入
|
|
139
|
-
|
|
140
|
-
转换不只转物件,还要尽可能把「氛围」带给编辑器;但 JS3D 项目自由度高,**一切扩展必须过准入定律,不能为单个项目加特例**。
|
|
141
|
-
|
|
142
|
-
**A. 场景环境:`SceneData.env` 是唯一事实源**
|
|
143
|
-
|
|
144
|
-
扫描源码里静态可解析的字面量,直接写进 `scene.ts` 的 `env`;**不使用 `scene_config` 或任何旁路环境文件**:
|
|
145
|
-
|
|
146
|
-
| env 字段 | 来源示例 | 解析不到时 |
|
|
147
|
-
|---|---|---|
|
|
148
|
-
| `background` | `scene.background = new THREE.Color(0x87ceeb)` | 交接说明标 unresolved;不得伪造颜色 |
|
|
149
|
-
| `fog` | `scene.fog = new THREE.Fog(color, near, far)` | 同上 |
|
|
150
|
-
| `sky` | 可静态还原为 flat 或任意数量色标的渐变天空(`stops`) | 同上;动态天空对象保留玩法侧 |
|
|
151
|
-
| `lights` | `DirectionalLight` / `HemisphereLight` / `PointLight` 及 position 字面量 | 逐盏收编(见下) |
|
|
152
|
-
| `exposure` | `renderer.toneMappingExposure = n` | 同上 |
|
|
153
|
-
|
|
154
|
-
- **只透传字面量**。贴图天空盒、程序化生成光照、运行时动态修改解析不到时,显式标 unresolved;**不得用编辑器私有默认天空、默认 IBL 或默认补光替代**。
|
|
155
|
-
- `sky.kind === 'gradient'` 时编辑器必须逐个消费 `stops` 的全部色标并按 `at` 插值渲染,不得截断成三段。仅为兼容既有三段数据可无损映射 `top/middle/bottom` 为 `at = 0 / 0.5 / 1`;**新转换一律写 `stops`**。渐变天空只描述背景视觉,**不隐含**环境贴图、PMREM 或新增灯光。
|
|
156
|
-
- 编辑器读取 `SceneData.env` 必须带字段类型校验 + try/catch 兜底,坏数据不阻断场景打开。
|
|
157
|
-
- 禁止为某个项目的特殊环境写特例代码;支持不了就 unresolved,把能力需求提给 JS3D 迭代池。
|
|
158
|
-
|
|
159
|
-
**灯光收编(`env.lights`,字段集见 [references/scene-data-format.md](references/scene-data-format.md))**:
|
|
160
|
-
|
|
161
|
-
- **静态灯逐盏收编**:字面量可解析的灯提为 `env.lights` 条目,字段集封闭(`SceneLight` 判别联合,见 [references/scene-data-format.md](references/scene-data-format.md)),**禁止私加字段**。directional 必须带 pos(行进方向 = target − pos,target 缺省原点),有阴影的带 `castShadow: true`。
|
|
162
|
-
- **动态灯不提**:每帧移动、条件创建/改强度的灯不进 `env.lights`,场景 env 置 `runtimeControlled: true`。其静态初始值仍可按收编判据收编。
|
|
163
|
-
- **禁止凭空加灯**:`env.lights` 必须与源码灯一一对应,不得为了「好看」增删;解析不到就缺着,编辑器会如实呈现。
|
|
164
|
-
- 编辑器只渲染不编辑 `env.lights`:退出保存时逐字节保真,没有可视编辑入口;要调光照改 `scene.ts` 的 `env`。
|
|
165
|
-
|
|
166
|
-
**B. 造型/材质扩展准入三问(全过才转,任一不过即跳过并记录)**
|
|
167
|
-
|
|
168
|
-
1. **静态可解析**:参数是源码字面量,不依赖运行时状态、不逐帧更新——粒子、动画在此天然出局
|
|
169
|
-
2. **字段白名单**:只转声明过的字段集(材质类当前为 emissive / flatShading / vertexColors / opacity),白名单外一个不碰
|
|
170
|
-
3. **零新增构建面**:编辑器渲染管线已支持该字段,不需要为它改结构;需要改结构的进 JS3D 迭代需求池,不进转换逻辑
|
|
171
|
-
|
|
172
|
-
**C. 粒子与动画:整体搁置**
|
|
173
|
-
|
|
174
|
-
JS3D 无粒子特效格式约束,擅自转换会拉长转换时间并引入不可控 bug。粒子、动画、每帧更新的对象**不转、不做替身**,直接跳过,跳过清单写进交接说明(见第 13 步)。等 JS3D 建立粒子格式规范后,经准入三问重新评估再开白名单。
|
|
175
|
-
|
|
176
|
-
### 第 6 步:抽坐标写 scene.ts
|
|
177
|
-
|
|
178
|
-
**只收「游戏一开始就存在的静态物件」。** 这是收编范围的唯一判据,判错会让编辑器画面与游戏画面对不上,也会让编辑器功能被迫越叠越多。
|
|
179
|
-
|
|
180
|
-
对每个候选物件问一句:**游戏启动后不做任何操作,它在画面里吗?**
|
|
181
|
-
|
|
182
|
-
| 情况 | 收不收 | 跳过必留证据(写进交接说明) |
|
|
183
|
-
|---|---|---|
|
|
184
|
-
| 启动即存在、位置固定 | **收** | — |
|
|
185
|
-
| 要玩法逻辑触发才出现 | **不收** | 文件:行号 + 触发条件 |
|
|
186
|
-
| 启动即存在但每帧移动 | **不收** | 文件:行号 + 每帧更新语句 |
|
|
187
|
-
| 空的「位置锚点」 | **不收** | 文件:行号(那上面初始什么都没有) |
|
|
188
|
-
| 真随机撒点 | **不收** | 文件:行号 + 种子来源说明 |
|
|
189
|
-
|
|
190
|
-
上表即**跳过白名单**,封闭枚举,除这五类任何物件不得跳过。
|
|
191
|
-
|
|
192
|
-
另有四类本就不属于 `items` 的范围,不必逐件判定:物件内部子件相对坐标(属造型,改它是改模型)、玩法规则数据(格子语义、关卡目标、刷怪表;改一格就改玩法)、相机机位(属表现调度,归 `index.ts`)、材质与色板。
|
|
193
|
-
|
|
194
|
-
判定方法:搜运行时有没有对这个物件做 `visible = false`、条件 `add`、或按状态 `rebuild`。有就是逻辑控制的,不收。
|
|
195
|
-
|
|
196
|
-
装饰性豁免只授权**碎小件**(草叶、小石子、碎花一类);树、灌木、建筑等主特征级大件**不允许**以「装饰」「动态感」名义整段豁免——大件不可逐实例拆分时(合并网格、连续程序化几何),按「整块收编」处理为单条 item。逐实例编辑能力需求提给 JS3D 迭代池。
|
|
197
|
-
|
|
198
|
-
**不收的东西,坐标留在玩法侧**(`data.ts` 之类),不要搬进 `scene.ts` 再想办法藏起来——塞进 `items` 会逼编辑器长出「运行时隐藏」这类标记,功能只会越叠越多;编辑器里看到的也会比游戏里多一堆东西,看图对不上。
|
|
199
|
-
|
|
200
|
-
收编的坐标逐个从原代码抄进 `items`,给玩法要查的物件打 `tag`(如 `table` / `stove`)。
|
|
201
|
-
|
|
202
|
-
**父层级—世界坐标审计(强制)**:抽取前必须记录候选对象全部祖先 `Group/Object3D` 的 position / rotation / scale,并以源码运行时的**世界变换**作为 `items` 唯一坐标依据;不能把子节点局部 `pos` 当世界 `pos`。同一语义组内若出现「部分物件在父组局部原点、部分物件直接叠加远端中心坐标」等局部/世界坐标混用,必须登记为 `source-layout anomaly`:附源码文件:行号、所有相关 item id、保留原语义或修正的决策。转换器不得静默修正;未获原项目确认时保留原世界坐标,并在交接说明和人工验收中置顶警告。
|
|
203
|
-
|
|
204
|
-
**solid 落字段规则**:逐件只问一句「**玩家撞上去该不该被挡住**」,按事实落字段——
|
|
205
|
-
|
|
206
|
-
- **该被挡住**(地面、平台、墙体、树干、桌椅、箱子、石头、建筑)→ **不写字段**(缺省 true,由第 7 步通用桥按包围盒建碰撞,编辑器开关可关)
|
|
207
|
-
- **不该被挡住**(水 / 伤害区 / 触发区、贴花与地面纹理层、纯视觉挂件、位置逐帧变化的运动平台)→ **显式写 `solid: false`**
|
|
208
|
-
- 「希望它没碰撞」只用 `solid` 字段表达,`solid` 是唯一通道
|
|
209
|
-
|
|
210
|
-
`solid` 描述**事实**而不是**归属**。按「碰撞归谁管」写字段时,「碰撞由玩法侧代码管理」的物件会被标 `solid: false`——而**地面、平台、墙体恰恰都属于这一类**;这些物件一旦被标 false,玩法侧读 `solid` 时整关瞬间失去碰撞。推论:「玩法侧另有代码在管这个物件」**不是**写 `false` 的理由,也不是保留那套代码的理由——收编后玩法侧的实体碰撞代码要删除,改由桥派生(第 7 步、第 9 步第 5 条)。
|
|
211
|
-
|
|
212
|
-
**确定性撒点收编(固定种子 rng 摆位必须收编,不允许整段跳过)**
|
|
213
|
-
|
|
214
|
-
第 1 步判定为「确定性程序化摆位」的段落(固定种子 rng 撒的树、灌木、石头等),按以下流程收编:
|
|
215
|
-
|
|
216
|
-
1. **离线复算**:把源码里的 rng 及其依赖的纯函数(噪声函数、高度采样等)原样抄进临时 node 脚本,**按源码完全相同的调用顺序**模拟执行,得到每实例的坐标/朝向/尺寸/颜色。
|
|
217
|
-
2. **烘焙字面量**:复算结果写进 `scene.ts` 的 items,数值与源码运行值逐位一致(序列化遵循规范化约定)。
|
|
218
|
-
3. **运行时改按数据构造**:原撒点函数改为遍历 items 逐实例构造(与普通转换同构);rng 及其专属纯函数从运行时代码删除——删除必须引发编译错误以暴露漏改处。
|
|
219
|
-
4. **机械验证**:用同一复算脚本逐项比对烘焙坐标与源码模拟结果,全部一致才算过;这套验证纯静态、不依赖运行时抽帧(符合设计原则 5)。
|
|
220
|
-
|
|
221
|
-
适用判据:种子是字面量、无运行时输入、复算脚本与源码调用顺序一致 ⇒ 复算结果必然等于运行结果。任何一环不满足(种子运行时才定、函数有副作用依赖场景状态),退回第 1 步按真随机处理。玩法侧若需复用这批摆位,走 `systems/sceneLayout.ts` 读取。
|
|
222
|
-
|
|
223
|
-
**整块收编(运行时合并网格 / 参数化地形——形态不可拆成「单件+坐标」时的正解)**
|
|
224
|
-
|
|
225
|
-
源码里出现 `mergeGeometries`、噪声函数直接产出地形高度、沿曲线批量生成立柱等**连续程序化几何**时,它们的共同点是:不存在「一件东西一个坐标」的表达形态。处理方式是**一块 = 一个槽位 = 一条 item**:
|
|
226
|
-
|
|
227
|
-
1. **几何语句逐字保留**——包括 `mergeGeometries` 调用、噪声采样调用、沿曲线布点的循环。merge/噪声是几何语句的一部分,不是「跳过理由」。编辑器与游戏执行同一份造型代码,构造级一致照样成立(设计原则 3)。
|
|
228
|
-
2. **生成参数暴露为 params**:种子、振幅、频率、分段数、实例数等源码字面量(扁平 `number|string|boolean`,符合 scene-data-format.md 契约)。build 内部 `num(params, key, 默认值)` 兜底;运行时输入才确定的参数不暴露,烘焙源码默认值。
|
|
229
|
-
3. **禁止拆成逐顶点/逐碎片 items**——把地形拆成几千个顶点块、把树墙拆回 68 棵再硬塞 items,才是真正的硬转烂尾。
|
|
230
|
-
4. **`solid` 按「事实」定**:地形、地面这类玩家**要站上去**的整块几何 → **不写字段**(缺省 true,第 7 步桥按整块世界包围盒建碰撞),整块盒是近似的已知边界,写进交接说明与人工验收项。**只做视觉的大面积贴附物(贴花、水面装饰层、纯色地面纹理)反过来写 `solid: false`**,别把「大面积」当成「玩家要站上去」。
|
|
231
|
-
5. **玩法贴合采样不受影响**:实体贴地、沿曲线布点等玩法逻辑继续调用原函数(或与 build 共享的同一纯函数),槽位只负责造型,玩法数据留玩法侧(第 9 步)。
|
|
232
|
-
|
|
233
|
-
形状计数的整块口径见 [references/slots-rules.md](references/slots-rules.md)。
|
|
234
|
-
|
|
235
|
-
整块 item 的编辑边界(写进交接说明):可整体选中/移动/旋转/缩放、可调 params 重新生成形状,**不可逐实例编辑**;逐实例编辑需求提给 JS3D 迭代池。
|
|
236
|
-
|
|
237
|
-
**item 切分粒度以「用户想单独选中/移动的物体」为单位,不跟源码函数结构走。** 编辑器的编辑单位是 item:选中、拖拽、删除都只能整条 item 操作,item 内部部件不可单独选择。若照搬源码里的构建函数分组(如「外院函数 = 地坪 + 5 棵树」收成一条 item),用户在编辑器里就分不开树和地坪。切分规则:
|
|
238
|
-
|
|
239
|
-
| 物件类型 | 切法 |
|
|
240
|
-
|---|---|
|
|
241
|
-
| 同类散件(树、石头、路灯、花坛等重复摆放的独立小物件) | 拆成独立槽位 + 每个实例一条 item;大小差异用 `item.scale` 表达(槽位按基准尺寸造型,不把 scale 烘进几何) |
|
|
242
|
-
| 建筑外壳(墙体、地板这类连成整体的结构,含门洞分段) | 保留一个槽位整条 item,避免编辑器物件列表膨胀 |
|
|
243
|
-
| 单件大型结构(招牌、出餐台) | 一件一条 item |
|
|
244
|
-
| 连续程序化几何(merge 树墙/云海/护栏、噪声地形、连续曲面) | 一块 = 一个槽位 = 一条 item,几何语句逐字保留、生成参数进 params(见「整块收编」) |
|
|
245
|
-
|
|
246
|
-
注意:拆散件后游戏运行时行为必须不变——装配侧按 item 逐条 mount,同一几何从「一个 Group 装 N 个」变成「N 个 Group 各装 1 个」,对象总数不变。
|
|
247
|
-
|
|
248
|
-
**导出名必须是 `scene`**:文件必须是 `export const scene: SceneData = { ... }`。编辑器按这个确切名字识别 items 场景,写成 `sceneData` 或其他名字时**静默识别不了**——不报错,编辑器回退去找 JSON 场景,表现为「读不到场景文件」。玩法侧要用别名消解冲突:`import { scene as sceneData } from '...'`,不要反过来改导出名。
|
|
249
|
-
|
|
250
|
-
写完立刻规范化,保证之后编辑器退出保存的 diff 干净。规范化 = 按 [references/scene-data-format.md](references/scene-data-format.md) 的「序列化格式约定」整份重写 scene.ts:数字 3 位小数去尾零、字符串单引号、三元数组紧凑一行、对象逐字段换行缩进 2 空格、缺省值省略。若环境提供编辑器规范化脚本(`normalize-scene.mjs` 一类,支持 `--check` 门禁模式),优先用它。
|
|
251
|
-
|
|
252
|
-
### 第 7 步:写 mount.ts
|
|
253
|
-
|
|
254
|
-
按数据装配 + 导出 `itemsByTag` / `itemById` / `applyEnv` / `buildLights`。签名必须接受 `Scene | Group`(多数项目用单 Scene + Group 显隐),并提供 `applyEnvironment` 开关。
|
|
255
|
-
|
|
256
|
-
**装配是唯一入口:游戏侧要调用各关 `mount.ts` 的 `mountScene`,不要自己再写一遍 items 遍历。**
|
|
257
|
-
|
|
258
|
-
`mountScene` 是装配的唯一实现(glb 分支、跨端同构、通用碰撞桥都在里面)。游戏入口(`main.ts` / `game.ts` / `world.ts`)只决定「装到哪个容器、什么时候重装」,装配细节全部委托给它。入口里另写一个 `for (const item of data.items)` 循环,等于把装配实现复制了一份——而那份副本通常只处理 `source.kind === 'slot'`,编辑器后来拖入的 glb 会连同整套云资产通道一起被跳过。
|
|
259
|
-
|
|
260
|
-
这类断接特别隐蔽:场景照常渲染、只少了云资产,`vite build` 与 `tsc` 全绿,逐条看装配函数也挑不出毛病(函数本身是对的,只是没人调)。判定信号是**调用点**而不是 import——只 `import { glbCache }` 拿缓存变量不算接线。
|
|
261
|
-
|
|
262
|
-
```ts
|
|
263
|
-
// game.ts / world.ts:入口只做「装到哪、何时装」
|
|
264
|
-
import { mountScene } from './scenes/oasis/mount';
|
|
265
|
-
|
|
266
|
-
const result = mountScene(this.staticRoot); // ← 唯一装配路径,slot 与 glb 同分支
|
|
267
|
-
this.colliders = result.boxes; // 派生引用从返回值取,别自己再算一遍
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
`check` 的 `checkAssemblyWiring` 判这一条:项目里定义了 `mountScene` 却没有任何调用点,同时有文件在自建 items 遍历里读 `source.kind` / `.build()` / `source.slot` 时报错。**修法是让入口改走 `mountScene`,不是往装配函数里再补一遍分支**——分支补得再全,函数没人调一样是死代码。
|
|
271
|
-
|
|
272
|
-
**多关卡:入口要对上「每一关的装配函数」,不是一个装配函数装全部关卡。** 各关 `mount.ts` 通常写成「把本关 `slots` 注册表绑进共享装配」的包装(`mountShared(target, data, slots)`),所以它与关卡数据是**一一对应**的。入口只从某一关导入 `mountScene` 去装全部关卡时,其余关卡 `scene.ts` 里的专有槽位会落进那一关的注册表,装配侧按「未知槽位,跳过」处理——**只 warn、不报错**,物件静默消失。
|
|
273
|
-
|
|
274
|
-
```ts
|
|
275
|
-
// game.ts:按关卡分发(别名导入——各关导出同名 mountScene)
|
|
276
|
-
import { mountScene as mountDesert } from '../scenes/desert/mount';
|
|
277
|
-
import { mountScene as mountOasis } from '../scenes/oasis/mount';
|
|
278
|
-
import { mountScene as mountForest } from '../scenes/forest/mount';
|
|
279
|
-
const MOUNTERS = [mountDesert, mountOasis, mountForest];
|
|
280
|
-
|
|
281
|
-
const result = MOUNTERS[levelIndex](this.staticRoot, data);
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
这类错配按关跑的判据发现不了:`scene.ts` 与 `slots.ts` 各自都自洽(本关数据配本关注册表),错配只在**装配时**由「A 关注册表 × B 关数据」产生。`checkLevelSlotCoverage` 判这一条:入口 import 的关卡装配模块少于关卡数、且未接关卡用到的槽位键确实不在已接关卡的注册表里时报错。非主关的画面丢失最容易漏——视觉复验只验了主关就交付,是这条反复漏掉的直接原因。
|
|
285
|
-
|
|
286
|
-
**灯光契约(`buildLights` 消费 `env.lights`)**:
|
|
287
|
-
|
|
288
|
-
- `buildLights(sceneData)` 按数据构灯:directional 读 pos/target/castShadow(target 缺省原点),hemisphere 读 skyColor/groundColor/intensity,point 读 pos/distance。**不要在 `main.ts` 里手写灯**——编辑器按 `env.lights` 渲染,游戏侧再手写灯就会两边对不上。
|
|
289
|
-
- `main.ts` 渲染器约定:`renderer.shadowMap.enabled = true`(编辑器与游戏阴影一致的前提);toneMapping 保留项目原值(NoToneMapping / ACESFilmic 均可,不强行统一);`env.exposure` 存在时 `renderer.toneMappingExposure = env.exposure`。
|
|
290
|
-
- 每帧跟随玩家的 sun、昼夜循环等动态灯光改动留在玩法侧原逻辑里(env 已标 `runtimeControlled: true`),初始状态仍由 `env.lights` 提供。
|
|
291
|
-
|
|
292
|
-
**装配要与编辑器同构(跨端位置一致的前提)**
|
|
293
|
-
|
|
294
|
-
编辑器的装配方式是「外层 container 承载 item 的 `pos/rot/scale`,`build()` 的返回值作为它的**子节点**」,所以造型根节点自带的 transform 在编辑器里被完整保留。游戏侧直挂 build 返回值、把 `item.pos` 写到它身上时,那份自带 transform 会被覆盖——两端就差这一截。
|
|
295
|
-
|
|
296
|
-
```ts
|
|
297
|
-
// 与编辑器同构:载体承载 item 变换,build 结果作子节点
|
|
298
|
-
const root = mountItem(item); // slot 的 build 结果 / glb 的 clone
|
|
299
|
-
if (!root) continue;
|
|
300
|
-
const holder = new THREE.Group();
|
|
301
|
-
holder.position.set(item.pos[0], item.pos[1], item.pos[2]);
|
|
302
|
-
holder.rotation.set(THREE.MathUtils.degToRad(item.rot[0]), THREE.MathUtils.degToRad(item.rot[1]), THREE.MathUtils.degToRad(item.rot[2]));
|
|
303
|
-
holder.scale.set(item.scale[0], item.scale[1], item.scale[2]);
|
|
304
|
-
holder.add(root); // ← 造型自带 transform 原样保留
|
|
305
|
-
target.add(holder);
|
|
306
|
-
nodes.set(item.id, holder); // 玩法侧读摆位的根改用 holder
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
另一条等价路径:造型根节点保持恒等变换(`position` / `rotation` 为零、`scale` 为一),变换写进子节点或几何体本身(见 [references/slots-rules.md](references/slots-rules.md) 造型契约)。**两条路任选**,`checkAssemblyParity` 按任一条放行;两条都不满足时报错,并按分量点名(`ground(rotation)` / `crate(position)`)。实测两类后果:`crate.position.y = size / 2` 使游戏里箱子下沉 `size/2`、埋进檐口只剩半截;`mesh.rotation.x = -Math.PI / 2` 使游戏里地面姿态被清零、立起 90°。
|
|
310
|
-
|
|
311
|
-
**静态摆位挂在独立容器上(预载回补的抓手)**
|
|
312
|
-
|
|
313
|
-
`mountScene` 的目标不要直接是游戏主 `scene`,建一个 `const staticRoot = new THREE.Group()` 承载全部摆位物件,玩法动态物件(玩家、NPC、特效、水体)另挂主 `scene`。这样预载完成后只需清空重挂 `staticRoot`,不必重建整个场景、也不碰玩法状态。摆位与玩法物件混在同一层时,「预载后重建」这条路走不通,只能走待挂补挂(见第 8 步时序要求)。
|
|
314
|
-
|
|
315
|
-
**碰撞通用桥(solid 消费约定)**
|
|
316
|
-
|
|
317
|
-
- **`mountScene` 装配循环内必须有通用碰撞桥,且它是玩家实体碰撞的唯一来源。** `item.solid !== false` 的 item,在 **pos/rot/scale 全部落定且几何已就位之后**,按其根节点世界包围盒建一个静态碰撞盒;`solid: false` 跳过。slot 物件与 glb 物件同走此桥。
|
|
318
|
-
- **判据只有 `item.solid !== false` 一条**:不读 tag、不认槽位名、不查手写常量表。编辑器新放置的物件(无 tag、未写 solid)与收编物件因此同走此桥——编辑器的碰撞开关(写 `item.solid`)全量生效,这是本约定存在的唯一目的。
|
|
319
|
-
- **不允许并存**:玩法侧按 tag / 槽位名 / 手写常量表建静态碰撞盒的分支,**收编时删除**(第 9 步第 5 条)。**只允许保留两类**:① 非阻挡碰撞(伤害区、水面致死区、存档点、终点、交互范围);② 运动平台(位置逐帧变化,按轴每帧更新自身碰撞体)。
|
|
320
|
-
- **必须 warn,不许静默跳过**:装配时 item 找不到根节点(未就位 / 槽位未注册 / glb 未加载完),或算出的盒子为空 / 任一半长为 0(零厚度薄片)时,`console.warn` 点名 item id 与原因。静默 `continue` 会让「少了碰撞」在构建与类型检查里完全隐形。
|
|
321
|
-
- **glb 件的时序**:云资产异步加载,建盒必须发生在**几何就位之后**——要么先把 glb 全部预载完再装配(第 8 步预载环),要么在装配回调里补建。二者必居其一;按「装配那一刻根节点还没子节点」建盒只会得到空盒。
|
|
322
|
-
- **glb 件的盒从哪来**——两条来源,**都要用**:
|
|
323
|
-
1. **转换期读资产表,把尺寸烘焙进 `item.params`**:`cloud_resource_config/JS/StaticMeshConfig.json`(编辑器资产面板的数据源,编辑器仓根 `cloud_resource_config/JS/`,LocalCraft 副本在 `frontend/public/js3d-scene-editor/cloud_resource_config/JS/`)每条记录带 `BoxSize`(尺寸)+ `BoxOrigin`(盒心相对模型原点的偏移),单位米、轴序已转 three。**这张表只在编辑器侧**——工程运行时代码取不到它、也**不该去 fetch**(平台 runtime 没有相关 API,交付工程里也没有这个目录)。所以转换期就要按 Path 查到该条、把值写进 `item.params`(约定键 `boxSize: "x,y,z"`、`boxOrigin: "x,y,z"`)。落进 params 后运行时**不依赖网络与表**,glb 还没加载完也算得出盒。**表里有约 151 条 `BoxSize` 含 `0` 分量**(如 `主题02窗户倒影01 = 30.00,0.00,30.00`)——这类行**不要烘焙进 params**(硬算会得到零厚度盒),一律走 glb 几何兜底。**整批找不到这张表时**:全量走几何兜底,并在交接说明里写明。
|
|
324
|
-
2. **glb 就位后用几何校正**:`new THREE.Box3().setFromObject(root, true)` 的结果与第 1 条比对;表里 `BoxOrigin` 缺失的条目(实测 831/6802)用这一步兜底。**两者不一致时以 `params` 为准**(它是转换期给出的显式意图,几何值只用于比对与兜底),差异明显时记进交接说明。**不要往表里回写**——那是远端只读资源。编辑器新拖入的 glb item **不会有**这对键 → 只能走几何兜底,这是常态、不是异常。
|
|
325
|
-
两条都没有(表里查不到、glb 也没就位)时 `console.warn` 点名 item id,不许静默跳过。
|
|
326
|
-
- **按 Path 一对一定位,不要按 Name**:表里同名多条很常见(实测 80 组;`栏杆01` 就有 4 条,最宽 5.66m、最窄 0.34m),但 **AssetId 与 Path 全局唯一**,而 `scene.ts` 的 `source.url` 存的就是 Path 原样——按 Name 匹配必串。若拿到的是 UE 引用形态的表(`StaticMesh'/Game/x/y.模型'`),先归一化成裸 `/Game/…/模型.glb` 再比(取引号内字符串 → 取 `.` 后一节 → 补 `.glb`,与编辑器 `AssetResolver.normalizeAssetPath` 同款);写进 `scene.ts` 的必须是裸形态(归一化只在第 8 步交给加载函数时做)。
|
|
327
|
-
- **用表里的尺寸要换算到世界,且必须走 `Box3` 变换路径**:`const box = new THREE.Box3().setFromCenterAndSize(center, size).applyMatrix4(worldMatrix);`(`worldMatrix = new THREE.Matrix4().compose(pos, quat, scale)`——**`item.rot` 是度**,别忘了 `degToRad`)。**不要**把 `size` 喂给 `Vector3.applyMatrix4`——那是点变换(含平移),算出来是废值;**负缩放**(实测 glb item 存在 `scale: [-7.25, -7.25, -7.25]`)也只有走 `Box3.applyMatrix4` 才能得到正的半长。另:`BoxOrigin` 缺失时平台 `measureFromManifest` 取 `(0, size.y/2, 0)`(底面中心),**不要自己另发明一套缺省**;`BoxSize` 分量必须严格大于 0,否则该 helper 抛错。
|
|
328
|
-
- **包围盒 ≠ 碰撞盒**:拱门、树冠、镂空栏杆这类空心件的世界包围盒会明显大于实际可撞面。这类件要么用 `params` 覆盖盒尺寸,要么该件本就不该挡人(写 `solid: false`);**不允许**为它另建一套玩法侧碰撞(第 9 步第 5 条)。
|
|
329
|
-
- 参考实现骨架(**只含上面第 2 项的几何路径**,类型名按项目 `sceneTypes.ts` 对齐,放 `src/scenes/systems/collisionBridge.ts`;照抄后必须自己补 `params` 分支):
|
|
330
|
-
|
|
331
|
-
```ts
|
|
332
|
-
/** 通用碰撞桥:玩家实体碰撞的唯一来源。 */
|
|
333
|
-
export function collidersFromItems(
|
|
334
|
-
items: SceneItem[],
|
|
335
|
-
nodes: Map<string, THREE.Object3D>,
|
|
336
|
-
): BoxCollider[] {
|
|
337
|
-
const out: BoxCollider[] = [];
|
|
338
|
-
for (const item of items) {
|
|
339
|
-
if (item.solid === false) continue; // 唯一判据
|
|
340
|
-
const root = nodes.get(item.id);
|
|
341
|
-
if (!root) { console.warn(`[collision] item 未就位,跳过: ${item.id}`); continue; }
|
|
342
|
-
root.updateWorldMatrix(true, true); // 父链变换必须已生效
|
|
343
|
-
const box = new THREE.Box3().setFromObject(root, true); // precise=true:旋转件不高估
|
|
344
|
-
const c = box.getCenter(new THREE.Vector3());
|
|
345
|
-
const s = box.getSize(new THREE.Vector3());
|
|
346
|
-
// 零厚度也算退化:three 的 isEmpty() 是严格小于判据,拦不住 min == max 的薄片盒
|
|
347
|
-
if (box.isEmpty() || s.x <= 0 || s.y <= 0 || s.z <= 0) {
|
|
348
|
-
console.warn(`[collision] 包围盒为空或零厚度,跳过: ${item.id}`);
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
out.push({ cx: c.x, cy: c.y, cz: c.z, hw: s.x / 2, hh: s.y / 2, hd: s.z / 2 });
|
|
352
|
-
}
|
|
353
|
-
return out;
|
|
354
|
-
}
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
这段只覆盖第 2 项(glb 已就位、按几何出盒):`params` 盒不需要 node,装配前用 `Box3.setFromCenterAndSize(...).applyMatrix4(...)` 算好即可——桥里先查 `params`,查不到再回退到几何。整块收编的大几何(merge 地形 / 树墙)逐顶点精算开销可观,这类槽位一律用 `params` 盒——它们是 slot、没有 Path 也查不到资产表,**`params` 盒由转换期跑一次 `build()` 量取包围盒后烘焙**(离线算一次,运行时不再精算)。
|
|
358
|
-
|
|
359
|
-
盒类型统一用 `BoxCollider { cx, cy, cz, hw, hh, hd }`(**中心 + 半长**,不是 three 的 `Box3`)。`1.1.0` 工程的 runtime 不提供碰撞工具:类型在 `collisionBridge.ts` 里导出,由项目自己的实体碰撞(地面解算、实体阻挡、命中判定)消费,不要回引 `1.0.0/tools/three`;已经在用 `runtime/lightgame/1.0.0/tools/three.d.mts` 的旧工程继续交给其 `placeOnSurface` / `resolveGround` / `resolveSolid` / `hitByReach` / `hitByRadius`。`setFromObject` 必须传 `precise = true`——非 precise 路径只把子节点局部 AABB 变换后并集,对**旋转后的非盒状几何**(柱 / 锥 / 球冠)系统性高估。**把桥产出的数组交给谁,就是「这个项目的实体碰撞由哪里派生」的答案**——交接说明必须能回答这句,答案里出现第二处即视为本步未完成。
|
|
360
|
-
|
|
361
|
-
**建桥 ≠ 接通**:常见断法是桥写好了(`boxes` / `colliders` 数组算得出来)但**全工程零消费方**——游戏入口只取 `mountResult.nodes`,把碰撞数组丢掉。此时桥的判据全绿、物件却全无碰撞。判定看消费者:必须有一处把数组交给实体碰撞(项目的地面解算 / 实体阻挡;旧工程是 `placeOnSurface` / `resolveGround` / `resolveSolid` 之类)。
|
|
362
|
-
|
|
363
|
-
- 第一期边界:碰撞盒一律是**盒**近似(尺寸默认取世界包围盒,允许 `params` 覆盖),不做斜坡/复合形状/旋转凸包优化;只有布尔开关,不表达非阻挡碰撞(trigger)、多碰撞层级——相关需求提 JS3D 迭代池。
|
|
364
|
-
|
|
365
|
-
### 第 8 步:场景资产六环对齐(云资产可见性 + 形态一致性的硬前提)
|
|
366
|
-
|
|
367
|
-
编辑器拖进来的云端资产(`source.kind === 'glb'`,`/Game/...` 虚拟路径)要真正在游戏里显示、形态与编辑器一致,靠**六环**:
|
|
368
|
-
|
|
369
|
-
| 环 | 谁做 | 做什么 | 判据 |
|
|
370
|
-
|---|---|---|---|
|
|
371
|
-
| ① 引用 | 编辑器(已保证) | 把 glb item 写进 `scene.ts`,url 保持 `/Game/...` 原样 | — |
|
|
372
|
-
| ② 加载 | **转换侧**(预载) | url 过 `resolveAssetUrl` 后交给游戏已有的模型加载函数 | warn |
|
|
373
|
-
| ③ 装配 | **转换侧**(`mount.ts`) | glb 分支从预载结果取模型 → `clone()` → 落位 | report(分支 + 入口接线) |
|
|
374
|
-
| ④ 预载 | **转换侧**(`main.ts`) | 收集 glb url → 加载 → 落进 `glbMap`/`glbCache` | report |
|
|
375
|
-
| ⑤ 造型 | **转换侧**(第 12.5 步 bundle) | 打包 `slots.preview.js` 供编辑器渲染槽位 | 三查 |
|
|
376
|
-
| ⑥ 清单 | 编辑器 + `export-config` + 宿主 | 每条 `/Game/` 引用登记进 `configs/scene_assets.json` | `check` 报警 |
|
|
377
|
-
|
|
378
|
-
**环的编号是清点用的,不是执行顺序——③ 和 ④ 之间有严格的先后:** ③ 装配发生在启动段的同步流程里,④ 预载是异步的、必然在 ③ 之后完成。所以 ④ 完成时必须**回头补一次 ③**,否则首次装配那一刻 cache 恒空、glb item 被按 miss 跳过,此后无人重读 cache。少了回补这一步,工程看上去六环齐全(有预载入口、结果也确实落进了 map),运行时云资产依然是空的——构建、类型检查、代码审阅全过。
|
|
379
|
-
|
|
380
|
-
**⑥ 清单环:`/Game/` 引用必须登记并导出为资源条目。** 编辑器保存 `configs/scene_assets.json`;`config:export` 增量补齐清单,并自动生成同名 `scene_assets.controls.json`,再导出到 `unified_data_control_config.json`。只存在清单文件不能证明资产已被收录,导出后的资源条目才供平台打包使用;导出脚本会检查漏项。已有清单缺 controls 时也会自动补齐。三条要点:
|
|
381
|
-
|
|
382
|
-
- **不要手写**:编辑器与 `config:export` 按同一套键规则补齐清单,配套 controls 由导出脚本生成,转换侧确认最终快照已含资源条目。
|
|
383
|
-
- **键由资源地址派生,绝不带点号**:`runtime` 的 `assertKey` 遇含点 key 直接中断 vite build;也不能自带 `scene.` 前缀。清单保留 `{ type, asset_type, value }`,controls 声明 `<键>.value`,对应 schema 为 `scene_assets.<键>.value`;兼容裸字符串条目的 schema 为 `scene_assets.<键>`。派生有损(非字母数字/汉字折 `_`),键只作标识、**判等一律比原始 `value`(资源地址)**;不要改写清单里的 `/Game/` 前缀。
|
|
384
|
-
- **清单增量合并、从不删除**:删掉场景里的物件不会删条目(多端写入互不可见,剪枝会剪掉另一端刚登记的条目)。
|
|
385
|
-
|
|
386
|
-
**② glb item 走游戏已有的模型加载函数,不另写一套,也不管打包收录(收录见 ⑥)。** 场景云资产用游戏加载自身模型的同一个函数(当前模板是 runtime 的 `loadGlbModel`,见 `tools/glb.d.mts`;工程有自己的封装就用封装)。`configs/` 的资源字段在构建导入时已做过地址归一化,游戏自身模型拿到的是归一化后的值;`scene.ts` 是源码、不在这条链路里,所以交给加载函数前补同一步 `resolveAssetUrl(url, { cdnBaseUrl: runtime.cdnBase })`(`runtime` 即工程根 `game-runtime.json`,不要另抄 CDN 常量)。只换交给加载函数的地址实参:`scene.ts`、`configs/scene_assets.json` 与 cache 的 key 仍用原始 url,装配侧按原 url 查表;不要自己拼接或改写地址。每个 glb item 的 `source.lod` 是该模型自己的档位(0/1/2),转换时照这个模型原来的加载档位写,0 与缺省省略。预载按 url 加 lod 去重,`loadGlbModel` 传这一条的档位;cache 的 key 是 `url + '\0' + lod`,同一 url 的不同档各存一份,装配按该 item 的 url 与 lod 取。没有 `resolveAssetUrl` 的工程,游戏自身模型路径也是原样交给加载函数,scene url 同样原样传,不补这一步、也不自己写替代。runtime 没有 `tools/glb.mjs` 且游戏自身也没有模型加载函数时,才用 three 的 `GLTFLoader` 加载同一个地址。
|
|
387
|
-
|
|
388
|
-
加载失败要打一条带原 url 的 warn,便于区分「资源不存在 / 路径写错」与其它故障。
|
|
389
|
-
|
|
390
|
-
③④ 判据**不看当前 `scene.ts` 里有没有 glb item**——工程接入场景编辑器后,用户随时会拖云资产进来,转换当时没有不等于可以不带通道。`checkGlbBranch` 的判定顺序是「真消费 → 无分支 → 空实现」,真消费特征优先匹配(取用 `glbMap` / `glbCache` / `getGlb(url)` 一类),所以消费写在 `else` 收尾这类合法写法不会被误判成无分支:
|
|
391
|
-
|
|
392
|
-
| 档 | 形态 | 后果 | 判据 |
|
|
393
|
-
|---|---|---|---|
|
|
394
|
-
| 真消费 | `glbMap.get(url)` / `glbCache` / `getGlb(url)` 后 `clone()` | 正常 | — |
|
|
395
|
-
| 无分支 | 全文无 `'glb'` 字面量 | 静默不可见 | report |
|
|
396
|
-
| **空实现** | 有 `kind === 'glb'` 但短路 `return null` | **同样静默不可见,且骗过字面量检查** | report |
|
|
397
|
-
| **入口未接线** | `mountScene` 写得完整,但游戏入口自建 items 遍历(通常只装 slot) | **装配函数整套是死代码**,云资产不可见 | report(`checkAssemblyWiring`) |
|
|
398
|
-
|
|
399
|
-
**slot 名落在本关键空间内**:`scene.ts` 里每个 `item.source.slot` 取本关 `slots.ts` 的键集合中的值(跨关复用的造型走公共槽位模块,见第 2 步)。写成本关没有的键时,装配侧按「未知槽位 → return null」丢弃。`checkSlots` 覆盖这一条。
|
|
400
|
-
|
|
401
|
-
装配环代码模式(`src/main.ts` 预载动态清单 + `mount.ts` glb 分支):
|
|
402
|
-
|
|
403
|
-
```ts
|
|
404
|
-
// main.ts:预载清单 = 场景全部 glb url(去重);用游戏已有的模型加载函数(下例为模板的 loadGlbModel),cache 的 key 保持原始 scene url
|
|
405
|
-
import { resolveAssetUrl } from '../runtime/lightgame/1.1.0/tools/assets.mjs';
|
|
406
|
-
import { loadGlbModel } from '../runtime/lightgame/1.1.0/tools/glb.mjs';
|
|
407
|
-
import runtime from '../game-runtime.json';
|
|
408
|
-
|
|
409
|
-
const sceneGlbs = [...new Map(sceneData.items.flatMap((it) => (
|
|
410
|
-
it.source.kind === 'glb' ? [[`${it.source.url}\0${it.source.lod ?? 0}`, it.source] as const] : []
|
|
411
|
-
))).values()];
|
|
412
|
-
async function preloadGlbs(sources: { url: string; lod?: 0 | 1 | 2 }[]) {
|
|
413
|
-
await Promise.all(sources.map(async (source) => {
|
|
414
|
-
const lod = source.lod ?? 0;
|
|
415
|
-
try {
|
|
416
|
-
const gltf = await loadGlbModel(THREE, renderer, resolveAssetUrl(source.url, { cdnBaseUrl: runtime.cdnBase }), { lod });
|
|
417
|
-
glbCache.set(`${source.url}\0${lod}`, gltf.scene);
|
|
418
|
-
} catch {
|
|
419
|
-
console.warn(`[场景资产] GLB 加载失败,请核对路径: ${source.url}`);
|
|
420
|
-
}
|
|
421
|
-
}));
|
|
422
|
-
}
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
```ts
|
|
426
|
-
// mount.ts:mountScene 循环内,按该 item 的 url 与 lod 取
|
|
427
|
-
} else if (item.source.kind === 'glb') {
|
|
428
|
-
const proto = glbCache.get(`${item.source.url}\0${item.source.lod ?? 0}`);
|
|
429
|
-
if (!proto) { console.warn(`GLB 未加载,跳过: ${item.source.url}`); continue; }
|
|
430
|
-
root = proto.clone(true);
|
|
431
|
-
}
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
两类来源合流后的落位写法见第 7 步「装配要与编辑器同构」的 holder 段。
|
|
435
|
-
|
|
436
|
-
**时序要求:预载必须回补装配。** 启动段固定三步:**同步装配出首帧 → 异步预载 → 预载完成后回补装配**(先出首帧是为了平台截图不被阻塞)。回补怎么落地看摆位与玩法的耦合度,两档任选:
|
|
437
|
-
|
|
438
|
-
| 档 | 适用 | 形态 |
|
|
439
|
-
|---|---|---|
|
|
440
|
-
| 重建容器 | 静态摆位挂在独立 `Group` 上、重建代价低 | 预载完成后清空该容器重挂 |
|
|
441
|
-
| 待挂补挂 | 摆位与玩法物件混在同一层、重建会重置玩法状态 | 装配时 miss 不丢弃、记进待挂队列,预载到位后补挂 |
|
|
442
|
-
|
|
443
|
-
```ts
|
|
444
|
-
// 档一:main.ts 启动段——静态摆位独立容器,预载后重挂
|
|
445
|
-
const staticRoot = new THREE.Group();
|
|
446
|
-
scene.add(staticRoot);
|
|
447
|
-
mountScene(staticRoot, sceneData);
|
|
448
|
-
render();
|
|
449
|
-
preview.markReady();
|
|
450
|
-
void preloadGlbs(sceneGlbs).then(() => {
|
|
451
|
-
staticRoot.clear();
|
|
452
|
-
mountScene(staticRoot, sceneData); // 预载到位后重挂,glb 才真正出现
|
|
453
|
-
});
|
|
454
|
-
```
|
|
455
|
-
|
|
456
|
-
档二(`mount.ts` 里 miss 不丢弃):`root = new THREE.Group()` 占位并记进 `pendingGlbs`,预载的 onLoad 里 flush。
|
|
457
|
-
|
|
458
|
-
`checkPreloadHints` 判这一条:预载结果必须被消费到装配——`.then` / `await` 回调里有装配动作,或装配侧留了待挂队列(`pending` / `flush` 一类)。`void preloadGlbs(urls);` 这种发起后不管的写法会被当场报出来。
|
|
459
|
-
|
|
460
|
-
**类封装的游戏**(`new Game(...)` → `World` 构造里装配)注意:构造函数不可重入,别试图整体重建 `World`——要么把静态摆位拆到独立容器(档一),要么走待挂补挂(档二)。
|
|
461
|
-
|
|
462
|
-
**档一要把派生引用一起重取。** 重挂会卸载旧装配结果,玩法侧凡是**从装配结果里取出来存下的引用**都会变成孤儿——典型形态是构造时从 `mountResult.nodes.get('river_1')` 拿到 mesh、存下它的 `material`(或整个 mesh / 灯 / 机关)供每帧更新。重挂后那个对象已不在场景里,逐帧写它不报错、画面却静止,属于静默故障。所以「重挂」要写成**一个重建动作**(卸载旧装配 → 重新 mountScene → 重取派生引用),从 `mountResult` 派生的引用有几处就重取几处。预载完成时刻不确定,可能落在玩家已进玩法之后——重建要挑画面与状态的安全点(进玩法前,或顺延到当前战斗/过场结束),别在玩家操作中途清空重挂。
|
|
463
|
-
|
|
464
|
-
预载结果落进哪个容器由项目自定(`glbMap` / `glbCache` / `getGlb(...)` 都认),判据只要求装配分支能从它按 url 取到;预载写在 `main.ts` 或它直接引用的模块里都认。平台 runtime 的 `AssetLoader` 只管图片/音频一类、不含 glb,glb 走游戏已有的模型加载函数(见 ② 环)。
|
|
465
|
-
|
|
466
|
-
### 第 9 步:玩法解耦
|
|
467
|
-
|
|
468
|
-
1. 新建 `systems/sceneLayout.ts` 作为玩法读摆位的唯一通道,**保持原有 API 形状**(同名导出),这样调用方改动最小。
|
|
469
|
-
2. **玩法判定类参数留在 `data.ts`**:入座点的相对偏移(`-0.55`)、交互判定半径、伤害区尺寸。这些是**玩法判定**用的尺寸,**不是玩家实体碰撞体**;玩家实体碰撞盒由第 7 步的桥从 `solid` 派生,不在这里留尺寸——把静态碰撞盒的半宽半深留在 `data.ts` 就是「两套碰撞并存」,第 5 条会把它算作未完成。
|
|
470
|
-
3. **删除 `data.ts` 里的原坐标常量** —— 漏改处会编译不过,比运行时才发现便宜。
|
|
471
|
-
4. 改各处 import 指向 `sceneLayout`。
|
|
472
|
-
5. **删除玩法侧原有的实体碰撞代码**:按 tag / 槽位名 / 手写常量表建静态碰撞盒的分支,全部改为消费第 7 步桥产出的碰撞数组。**只允许保留两类**——非阻挡碰撞(伤害区、水面致死区、存档点、终点、交互范围)与运动平台(按轴每帧更新其碰撞体)。验收口径:全工程搜碰撞数组的赋值点,**玩家实体碰撞数组必须只有桥一个来源**;交接说明必须能回答「这个项目的实体碰撞由哪里派生」,答案里出现第二处即视为本步未完成。
|
|
473
|
-
|
|
474
|
-
### 第 10 步:编辑器侧支持(若尚未支持)
|
|
475
|
-
|
|
476
|
-
平台编辑器已内置 items 格式支持,正常跳过本步。机制与排查要点见 [references/editor-integration.md](references/editor-integration.md);环境与全量灯光的消费契约也在该文件,编辑器不满足时必须先修编辑器,不能靠转换侧绕过。
|
|
477
|
-
|
|
478
|
-
### 第 11 步:多层验证
|
|
479
|
-
|
|
480
|
-
改造完成的验证缺一不可,层层都要过:
|
|
481
|
-
|
|
482
|
-
1. **世界坐标一致性**:改造后玩法读到的坐标必须与改造前对象展开祖先变换后的**世界变换**逐位相同。写临时比对脚本:把改造前坐标常量及父组变换与改造后 `itemsByTag` / `itemById` 的查询结果逐项对比,全部 PASS 才算过;发现 `source-layout anomaly` 时必须有交接说明留证。
|
|
483
|
-
2. **环境合同一致性**:编辑器加载同一 `scene.ts` 后,断言实际背景、雾、曝光、天空类型,以及每一盏 `env.lights` 的 kind / color / intensity / pos / target / castShadow 均与 `env` 一一对应;`runtimeControlled` 只限制编辑,不得使启动时环境或灯光缺失;不得存在未声明默认天空、IBL 或补光。
|
|
484
|
-
3. **往返无损**:scene.ts 解析 → 序列化 → 二次解析必须逐字节一致;在编辑器里做一处改动、退出保存后,diff 必须恰好只有那一行;**不做任何改动直接退出保存,文件必须逐字节不变**。多关卡项目对**每个关卡**各做一次:编辑器切到该关 → 不做任何改动退出保存 → diff 逐字节为零。
|
|
485
|
-
4. **端到端**:起编辑器实测完整链路——打开项目、看到场景与槽位物件、拖拽/移动物件、退出保存回写。注意后台服务随 shell 结束退出:起服务、跑验证、收尾放同一条命令里。游戏运行画面的一致性比对不在本步(属人工终审,见 Verification 8)。**形态一致性比对含逐实例差异**:scene.ts 里同类物件带不同 params 的(如 8 棵树 trunkH 各不同),编辑器里必须各长各样;全部长成一个样或只剩占位盒,说明 bundle 未交付或 builder 未生效(见第 12.5 步三查)。
|
|
486
|
-
|
|
487
|
-
若环境提供编辑器验证脚本(`verify-layout-parity` / `test-items-roundtrip` / `e2e-items` 一类),优先使用;坐标一致性脚本的 OLD 常量段需按目标项目改写。bundle 三查由 `check` 覆盖,无需另写 harness。
|
|
488
|
-
|
|
489
|
-
### 第 12 步:项目全量类型检查
|
|
490
|
-
|
|
491
|
-
项目依赖的 three / @types/three / typescript / vite 可能未随项目交付,检查前先补齐(临时装进项目 `node_modules`,**检查完删掉,别污染交付物**),然后:
|
|
492
|
-
|
|
493
|
-
```bash
|
|
494
|
-
cd "<项目绝对路径>" && npx tsc --noEmit -p tsconfig.json
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
`vite build` 可能因 three 版本与项目锁定版不符跑不完(缺 `three.core.min.js` 之类的产物文件)。只要看到 `✓ N modules transformed` 就说明代码编译通过,收尾插件的文件缺失属环境问题,需在交接说明里讲清。
|
|
498
|
-
|
|
499
|
-
### 第 12.5 步:打包 slots.preview.js(编辑器与游戏形态一致的构造级保证)
|
|
500
|
-
|
|
501
|
-
编辑器执行项目的 build 造型代码渲染槽位物件(bundle 未命中即占位盒,**没有字面量渲染路径**,见第 5 步)。执行机制、入口模板与验收契约见 [references/bundle-contract.md](references/bundle-contract.md)。转换收尾时打一次包、随项目文件一起交付:
|
|
502
|
-
|
|
503
|
-
1. **写入口** `slots_preview_entry.ts`(放项目根)。单场景项目直引本关 `slots`;多关卡项目合并全部关的 `slots`(走第 2 步的 `src/scenes/allSlots.ts` 并集,各关 `mount.ts` 用的是同一份),合并时对**同名但定义不同**的键 `throw`——同名且 build / defaultParams / tag / solid 四项全等才放行。**入口必须逐字段透传 `defaultParams` / `tag` / `solid`**:只传 `label` / `build` 时,编辑器拖入新实例拿不到默认尺寸、玩法语义、碰撞事实,而三查全过、零报错。两套模板见 [references/bundle-contract.md](references/bundle-contract.md)。
|
|
504
|
-
|
|
505
|
-
2. **esbuild 打包**(优先用项目已有依赖;项目 `node_modules/esbuild` 或 vite 自带 esbuild 均可,项目不必自装):
|
|
506
|
-
|
|
507
|
-
```bash
|
|
508
|
-
esbuild slots_preview_entry.ts --bundle --format=cjs --platform=browser \
|
|
509
|
-
--external:three --outfile=slots.preview.js
|
|
510
|
-
```
|
|
511
|
-
|
|
512
|
-
`--external:three` 保证 three 由编辑器自己的实例供给,两端类构造器同源。编辑器 require shim 只认 `three`,造型函数必须保持纯 three——引入状态库、工具包会在槽位渲染时报「无法提供的模块」。
|
|
513
|
-
|
|
514
|
-
3. **机械验证**:由 `check` 完成(与编辑器 `SlotBuilderRegistry.loadSource` 同构执行 bundle):
|
|
515
|
-
|
|
516
|
-
```
|
|
517
|
-
① 槽位覆盖:registerSlotBuilders 收到的键集合 == slots.ts 的槽位键集合
|
|
518
|
-
② 逐槽位 build:默认参数下无异常,并输出各槽位 mesh 数供形状计数核对
|
|
519
|
-
③ per-item params 直通:对带 params 的槽位喂两组不同参数,产出几何必须有差异
|
|
520
|
-
```
|
|
521
|
-
|
|
522
|
-
三查全过才算包好,验证脚本与结果写进交接说明。**改了造型代码必须重打 bundle**,否则编辑器继续渲染旧几何或占位盒。
|
|
523
|
-
|
|
524
|
-
### 第 13 步:写交接说明
|
|
525
|
-
|
|
526
|
-
必含:
|
|
527
|
-
|
|
528
|
-
- 转了哪些场景 / 跳过哪些,**跳过对象清单**(粒子、动画、每帧移动物件,按第 5.5 步 C 搁置;每条附第 6 步要求的文件:行号证据)
|
|
529
|
-
- **关卡清单**(多关卡项目:各关路径 + 主关标记 + 各关槽位归属、跨关共享的造型模块)
|
|
530
|
-
- 文件改动清单、槽位清单(含各槽位 mesh 数与形状计数)
|
|
531
|
-
- **是否做过几何提取**
|
|
532
|
-
- **实体碰撞派生来源**(第 7 步桥是唯一来源,运动平台与非阻挡碰撞分别在哪消费,见第 9 步第 5 条)
|
|
533
|
-
- **整块收编槽位清单**(merge/参数化地形各槽位的 params 暴露项、merge 输出单 mesh 事实、「不可逐实例编辑」边界声明,见第 6 步)
|
|
534
|
-
- 玩法侧改了哪些坐标引用
|
|
535
|
-
- 多层验证结果
|
|
536
|
-
- 要一起传的文件清单(场景文件与 `data.ts`/`sim.ts`/`gameFlow.ts` 是一整套,不能只传部分;**`slots.preview.js` 必须随项目文件一起交付**,缺它对应槽位在编辑器里只显示占位盒、形态完全缺失)
|
|
537
|
-
- **slots.preview.js 三查结果**(槽位覆盖 / mesh 数 / per-item params 直通)
|
|
538
|
-
- **环境合同逐字段结果**(`env.background` / `fog` / `sky` / `exposure` / 每一盏 `env.lights`:源码值、编辑器实际消费值、unresolved 原因;确认无默认天空、IBL 或补光注入)
|
|
539
|
-
- **source-layout anomaly 清单**(父子层级、局部/世界坐标混用的源码行号、相关 item id、保留/修正决策)
|
|
540
|
-
- **主特征件清单及形状自查结果**(见第 2 步与形状计数自查)
|
|
541
|
-
- **人工终审验收项**(编辑器与游戏画面肉眼比对,验收人执行,见 Verification 8)
|
|
542
|
-
|
|
543
|
-
## 已接入项目的维护
|
|
544
|
-
|
|
545
|
-
项目已有 `src/scenes/<场景>/scene.ts`(`export const scene: SceneData`)时,摆位唯一事实源是 scene.ts,不要再把摆位写回硬编码:
|
|
546
|
-
|
|
547
|
-
- 新增/调整静态物件:按 items / params 改 scene.ts,必要时补槽位;编辑器退出保存也走同一份文件。
|
|
548
|
-
- **云资产引用(`kind: 'glb'` + `/Game/...`)改完不用管清单**:编辑器退出保存与 `npm run build` 的 `config:export` 会按资源地址把条目补齐到 `configs/scene_assets.json`;清单是生成物,不要手写、不要删条目(多端写入互相看不见)。要点见第 8 步 ⑥ 环。
|
|
549
|
-
- **手改 scene.ts 必须守序列化规范**(数字 3 位小数去尾零、单引号、三元数组紧凑、2 空格缩进、缺省值省略),否则下次编辑器退出保存产生大坨 diff。转换期要改摆位就改在源码侧重新生成,别手改已有条目——手改会破坏「零改动往返逐字节一致」(Verification 3)。
|
|
550
|
-
- **改了造型代码(`build()` 所在文件)必须重打 `slots.preview.js`**,否则编辑器静默渲染旧几何。
|
|
551
|
-
- 细节与自查方式见 `${CRAFT_CONTEXT_DIR}/knowledge/CodingGuide/SceneEditableGuide.md`;接入状态见 `${CRAFT_CONTEXT_DIR}/knowledge/SceneEditorCompat.md`。
|
|
552
|
-
|
|
553
|
-
## 环境与工具注意事项
|
|
554
|
-
|
|
555
|
-
- **编辑器要把 `scene.ts` / `slots.ts` 排除出程序化脚本**(`isProceduralScript` 一类判据),否则它们会被当程序化脚本执行。
|
|
556
|
-
- **收编完整性从源码侧对账**:`scene.ts` 是转换的输出,「输出里已有的 item 我核对过了」抓不到漏收编。从源码侧全量枚举调用点,`枚举数 == 收编数 + 跳过数`,差集非零即返工。
|
|
557
|
-
- **Bash cwd 可能每条命令重置**:链式命令用 `cd X && ...`,或全部用绝对路径。
|
|
558
|
-
- **Windows 下 node 传路径用 `C:/...` 风格**:写 `/c/...` 会被当相对路径解析成 `c:\c\...`。
|
|
559
|
-
|
|
560
|
-
## Verification
|
|
561
|
-
|
|
562
|
-
改造完成的判据,全部必须通过。判据必须用**独立于转换过程的方法**重新算一遍,不能拿交接说明里的结论充数——已被证明有效的三种手段:① 坐标 PARITY 自己写复算脚本重跑(把源码的生成器逻辑复制一份,不复用转换者留下的任何临时脚本);② 造型保真走机械比对(提取两侧全部 `new THREE.XxxGeometry(...)` 与材质参数做多重集比对,比人工目视可靠);③ bundle 用 node 直接执行并注入收集器,逐字段核对注册内容与 `slots.ts` 是否一致。
|
|
563
|
-
|
|
564
|
-
**门禁全绿 ≠ 交付正确**:材质逐字、跨关槽位并集、碰撞覆盖完整性这三项都没有任何自动门禁能抓。
|
|
565
|
-
|
|
566
|
-
1. 坐标一致性比对 PARITY PASS(与改造前逐位相同)
|
|
567
|
-
2. 往返测试 ROUNDTRIP PASS
|
|
568
|
-
3. 端到端 E2E PASS,其中两条最关键:**不做任何改动直接退出保存,内容逐字节不变**;**只改一个物件,diff 只有 1 行**
|
|
569
|
-
4. 项目全量 `tsc --noEmit` 零错误
|
|
570
|
-
5. **形状计数一致**(口径见 [references/slots-rules.md](references/slots-rules.md)):逐槽位统计源码造型代码的图元出现次数,与 bundle `build()` 默认参数输出的 mesh 形状分布逐一相等;分布对不上 = 造型被降级改写,回查第 4 步并返工。整块收编槽位按「构造语句出现次数」文本级对账,merge 后输出单 mesh 的事实写进交接说明
|
|
571
|
-
6. 全项目搜不到原坐标常量残留
|
|
572
|
-
7. **每个** scene.ts 恰有一条 `export const scene: SceneData =`,导出名不是 `sceneData` 等其他名字;多关卡项目每个关卡文件都能被编辑器单独解析;`projectDisplayInfo.json` 的 `scene` 字段显式指向主关
|
|
573
|
-
8. **人工终审(验收人执行,agent 不跑)**:起游戏与编辑器各开一个窗口肉眼比对——物件种类、数量、位置、朝向、颜色对得上。这条抓的是静态判据覆盖不到的未知问题;agent 交付时把这条写进验收清单,不作为自查项
|
|
574
|
-
9. **场景资产六环齐**(见第 8 步,机械判据已进 `check`,以 `check` 结果为准):
|
|
575
|
-
- 引用环:`scene.ts` 有 `kind: 'glb'` item(编辑器写盘已保证)
|
|
576
|
-
- 加载环:`scene.ts` 保留裸 `/Game/...`;预载用游戏已有的模型加载函数,地址实参是 `resolveAssetUrl(url, { cdnBaseUrl: runtime.cdnBase })`(工程没有 `resolveAssetUrl` 时原样传 url),`lod` 取该 item 的 `source.lod`(缺省 0),cache 的 key 是 url 加 lod
|
|
577
|
-
- 装配环:分支从预载结果取到模型(`glbMap.get(url)` / `glbCache` / `getGlb(url)` 后 `clone()`);多关卡时每关的装配函数都接进了入口
|
|
578
|
-
- 预载环:`main.ts` 或它直接引用的模块有预载入口(`loadGlbModel` / `preloadGlb` / `preloadSceneAssets` / `loadGlbs` / `ResourceManager.load` / `loadAsync` / `GLTFLoader` 任一),且预载结果落进 map 供装配取用
|
|
579
|
-
- 造型环:`slots.preview.js` 在项目文件里且三查 PASS(Verification 11)
|
|
580
|
-
- 清单环:每条 `/Game/...` 引用在 `configs/scene_assets.json` 里有同 `value` 的条目、键不含点号;`config:export` 后配套 controls 已生成,统一快照里对应条目的 `control.type` 为 `resource`;缺任一项必须查清
|
|
581
|
-
- 判据:`check` 零 report、`npm run config:export` 退出码 0,且**实拖一个云资产走端到端**——退出保存 → 游戏运行时该资产可见 → console 无 `GLB 未加载,跳过`
|
|
582
|
-
10. **item 粒度符合编辑粒度**(见第 6 步):同类散件每实例一条独立 item、在编辑器里可单选单挪;散件的 pos+scale 换算回世界坐标后与拆分前烘焙坐标逐位一致
|
|
583
|
-
11. **bundle 三查 PASS**(`check` 已覆盖):槽位集合 == slots.ts 键集合、逐槽位 build 无异常且 mesh 数与形状计数一致、per-item params 直通;bundle 文件在交付清单里
|
|
584
|
-
12. **多面体不降级**:源码 IcosahedronGeometry / PolyhedronGeometry / 低 radialSegments 柱体(六棱柱一类)在编辑器里保持源形状——被渲染成光滑球/圆柱即 bundle 未接管,返工查第 12.5 步
|
|
585
|
-
13. **环境合同 PASS**(见第 5.5 步):编辑器加载后实际背景、雾、曝光、渐变天空和每一盏 `env.lights` 均与 `scene.ts` 一一对应;不存在未声明默认灯、默认天空或 IBL;`runtimeControlled` 不得跳过初始环境渲染
|
|
586
|
-
14. **层级世界坐标 PASS**:每个收编 item 的世界变换与源码对象一致;同语义组发现局部/绝对坐标混用时,交接说明必须有 `source-layout anomaly` 条目及人工确认项
|
|
587
|
-
15. **跨端装配一致**(见第 7 步,`checkAssemblyParity` 已覆盖):编辑器里拖入或移动一个程序化物件,游戏内该物件的世界包围盒与编辑器一致
|
|
588
|
-
16. **碰撞唯一来源 PASS**(见第 7 步、第 9 步第 5 条):
|
|
589
|
-
- **来源唯一**:全工程搜碰撞数组的赋值点,玩家实体碰撞数组只有桥一个来源;按 tag / 槽位名 / 常量表建静态盒的分支已删除(非阻挡碰撞与运动平台两类例外除外)
|
|
590
|
-
- **覆盖完整**:`item.solid !== false` 的 item 全部有盒,判定取**回补完成后的最终态**;启动首帧的 miss warn(glb 尚未预载完,第 8 步的时序使然)不计入,但最终态仍报 `[collision]` 的 warn 必须为 0
|
|
591
|
-
- **落字段抽查**:地面 / 平台 / 墙体 / 树干不写字段,水 / 伤害区 / 触发区 / 贴花 / 运动平台写 `false`;**「该挡人却写了 `false`」必须为 0 条**
|
|
592
|
-
- **编辑器侧三动作人工验收**(验收人执行):拖入一个云资产 → 游戏里撞上去被挡住 → 关掉碰撞开关退出保存 → 再撞能穿过 → 重新打开又挡住
|
|
593
|
-
|
|
594
|
-
## References
|
|
595
|
-
|
|
596
|
-
- [references/scene-data-format.md](references/scene-data-format.md) —— SceneData 类型定义与字段语义
|
|
597
|
-
- [references/slots-rules.md](references/slots-rules.md) —— slots.ts 结构、build 造型契约与形状计数自查
|
|
598
|
-
- [references/bundle-contract.md](references/bundle-contract.md) —— slots.preview.js 的打包契约、入口模板与编辑器执行机制
|
|
599
|
-
- [references/editor-integration.md](references/editor-integration.md) —— 编辑器侧 items 格式支持的机制与排查要点
|