@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,392 +0,0 @@
|
|
|
1
|
-
# 联网状态、同步与权威边界
|
|
2
|
-
|
|
3
|
-
> 仅在设计联网契约或排查“一端更新、另一端不一致”时读取。
|
|
4
|
-
> 本文提供跨玩法的判断方法,不提供任何具体游戏的字段、事件或服务端实现。
|
|
5
|
-
|
|
6
|
-
## 先确定 owner,再选通道
|
|
7
|
-
|
|
8
|
-
不要从“发什么消息”开始设计。先判断状态由谁拥有、丢失后是否必须恢复,再选择传输通道。
|
|
9
|
-
|
|
10
|
-
| 数据性质 | owner | 传输位置 | 客户端收口 | 典型特征 |
|
|
11
|
-
|---|---|---|---|---|
|
|
12
|
-
| 本机即时状态 | 玩法 System | 不需要绕 DS 回传 | System getter / 本机事件 | 本机已经知道,等待网络回声反而增加延迟 |
|
|
13
|
-
| 每名玩家各自的连续态 | 对应玩家上报,DS 存槽位 | `players[sessionId].data` | `mp-peer-pose` | 高频、每人一份、偶尔丢一帧仍可继续 |
|
|
14
|
-
| 房间唯一且必须恢复的权威状态 | DS | state 根字段 | `onStateField` / `mp-state-field` | 阶段、行动权、局面、比分、胜负等全房唯一事实 |
|
|
15
|
-
| 一次性表现通知 | DS 或玩家事件经 DS 转发 | `evt` | `onEvent` / `mp-event` | 错过不影响当前局面,可由现有状态重新渲染 |
|
|
16
|
-
|
|
17
|
-
关键事实:
|
|
18
|
-
|
|
19
|
-
- state 根字段在连接时携带当前值,适合后加入与重连恢复。
|
|
20
|
-
- `evt` 只投递发生时在线的连接。必须恢复的数据若使用 `evt`,DS 必须在 `onJoin` 定向补当前快照;能放根字段时优先放根字段。
|
|
21
|
-
- `players[sessionId].data` 不回推给发送者自己。本机状态由玩法 System 自己保存。
|
|
22
|
-
- `sessionId` 是一条 DS 连接内的实体 key;不要用 `player_id` 替代,同账号双开是两个实体。
|
|
23
|
-
- ⚠️ **根字段有两种形态,客户端收口不同**:上表把 root → `onStateField` 一概而论,**仅对标量根字段**(string/number/boolean)成立——`onStateField` 底层是 `$(room.state).listen(field)`,对 **MapSchema / ArraySchema 容器**只在整个引用被替换时触发,**收不到条目增删与嵌套字段变化**。容器型根字段要么在 `src/skill-modules/platform-services/MultiplayerManager.ts` 的 `_attachRoom()` 里补容器监听(写法见 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`「`onStateField` 订阅跨连接保留」),要么就别用容器(默认建议标量 JSON 字符串,见下「重连保席位」)。完整对照表 + 三问判据见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/SERVER_GUIDE.md`「三条路怎么选」。
|
|
24
|
-
|
|
25
|
-
## 客户端提交意图,DS 产生结果
|
|
26
|
-
|
|
27
|
-
客户端输入不能直接成为权威结果。DS 收到 `pub` 后至少按实际玩法检查:
|
|
28
|
-
|
|
29
|
-
1. **发送者归属**:操作对象是否属于 `client.sessionId`,禁止相信 payload 自报的 player/session id。
|
|
30
|
-
2. **阶段与顺序**:当前阶段是否允许该操作,是否轮到该玩家。
|
|
31
|
-
3. **对象存在性**:目标、道具、格子或实体是否仍存在且可操作。
|
|
32
|
-
4. **空间与数值合法性**:位置、距离、速度、资源消耗和取值范围是否合理。
|
|
33
|
-
5. **幂等与竞态**:重复消息、同时争抢或迟到消息只能产生一次结果。
|
|
34
|
-
6. **频率与体积**:拒绝异常高频和超预算的**上行** payload(4KB 上限只卡上行,见「频率与包体」节)。拒绝时要打日志说明原因,不要静默丢弃;此检查仅针对客户端上行,**不要挪用到 DS 的下行发送路径**。
|
|
35
|
-
|
|
36
|
-
DS 校验后再修改根状态或广播事件。不得直接采信客户端提交的得分、奖励、胜负、死亡、命中、资源生成等结果。
|
|
37
|
-
|
|
38
|
-
不是所有实时玩法都要做完整服务端模拟,但应明确“客户端预测什么、DS 最终裁决什么”。无法权威模拟时,也要对结果做最小可验证约束,并在架构文档声明风险边界。
|
|
39
|
-
|
|
40
|
-
### 抢唯一资源用乐观并发(CAS)
|
|
41
|
-
|
|
42
|
-
多个客户端同时争抢**唯一资源**(首杀奖励、唯一道具、唯一座位、唯一击杀判定)时,用「期望值匹配才更新」的乐观并发,避免加锁:
|
|
43
|
-
|
|
44
|
-
- DS 是唯一写入者,天然是校验点。收到抢占意图时:读当前根状态字段 → 检查是否仍为期望值(尚未被占)→ 是才写入占有者并广播、否则拒绝并回一条失败事件。
|
|
45
|
-
- 客户端提交的是「我想抢,我看到的当前值是 X」,不是「我已经抢到了」;是否成功由 DS 依据它自己 state 的**当前**值裁定,迟到的第二个请求读到的已是被占值,自然失败。
|
|
46
|
-
- 这套判定只在 DS 里做,客户端不做本地占有假设(可做乐观 UI,但以 DS 结果为准回滚)。
|
|
47
|
-
|
|
48
|
-
## 私密态:按角色定向下发,禁进根字段
|
|
49
|
-
|
|
50
|
-
有些状态只该给**部分玩家**看。这类**私密态**的传输规则和公开态相反,单独一节。
|
|
51
|
-
|
|
52
|
-
**举例(帮助理解,非规则规定)**:狼人杀里各人的身份、军棋的暗子、你画我猜发给画者的题目、只发给本人的手牌——都是「每人看到的内容不同、且不能让别人看到」的私密态。这些例子**只用于说明「什么是私密态」**,不代表本引擎固化了某一款玩法的具体规则链;具体怎么分配、何时揭示、揭示给谁,由各项目的策划案和玩法 System 自己定,本节只给通用机制。
|
|
53
|
-
|
|
54
|
-
### 铁律:私密态禁放 state 根字段
|
|
55
|
-
|
|
56
|
-
根字段是**全房广播**的——任何客户端都能在本地读到完整 state,哪怕 UI 不渲染它。把私密内容(如身份)写进根字段,等于把答案发给了所有人,改 UI 藏不住,**必然泄漏**。私密态一律不进根字段。
|
|
57
|
-
|
|
58
|
-
判断口径:一份数据**是否对全房所有人是同一份**。是 → 根字段(棋盘、比分、阶段);否(每人内容不同、或只给本人)→ 私密态,走定向 `evt`。
|
|
59
|
-
|
|
60
|
-
### 通道:DS 侧按 sessionId 定向 send
|
|
61
|
-
|
|
62
|
-
私密态走**定向事件**——DS 只对目标那一条连接发,不广播:
|
|
63
|
-
|
|
64
|
-
```js
|
|
65
|
-
// DS 侧:只发给某一个玩家(client 是该玩家的连接)
|
|
66
|
-
client.send("evt", { type: "secret_state", data: { /* 该玩家专属内容 */ } });
|
|
67
|
-
|
|
68
|
-
// 对照:room.broadcast 是全房,私密态绝不能用它
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
- 发给谁由 DS 决定,接收方从 `onEvent`(`mp-event`)收,和公开事件同一个收口,靠 `type` 区分。
|
|
72
|
-
- 客户端**不自报私密内容**:发什么由 DS 裁定并只发给本人;客户端收到什么就是什么。
|
|
73
|
-
|
|
74
|
-
### 安全口径:目标身份以 DS 侧绑定为准,不信客户端自报
|
|
75
|
-
|
|
76
|
-
`player_id` 是**进房时由 DS 分配、并锁定到该条 sessionId** 的。私密下发要发给谁、重连认领谁的席位,**目标一律以 DS 侧的这份绑定为准**,不能每次从客户端 `options` 里读它自报的 id——否则 A 只要在自报里填 B 的 id,就能冒领 B 的暗子 / 席位。
|
|
77
|
-
|
|
78
|
-
```js
|
|
79
|
-
// DS 侧:进房时分配并锁定绑定,后续只认这份绑定
|
|
80
|
-
onJoin(client, options) {
|
|
81
|
-
// player_id 由 DS 分配 / 校验后锁定到 sessionId,不直接采信 options 里的自报值
|
|
82
|
-
const playerId = this._bindPlayer(client.sessionId, options);
|
|
83
|
-
// ...后续私密下发、席位认领都用 playerId(来自绑定表),不用 options.player_id
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
> 这条①②共用:凡「发给某人」「认领某人的东西」,目标都从 DS 绑定表取,不从客户端当次自报取。①违背它 → 冒领暗子;②违背它 → 冒领席位。
|
|
88
|
-
|
|
89
|
-
### 私密态在后进房 / 重连必须 onJoin 定向重发
|
|
90
|
-
|
|
91
|
-
`evt` 是一次性的、**只投递发送时在线的连接**。私密态若只在开局广播一次,**后进房或断线重连的玩家永远收不到自己的那份**——它不像根字段会在握手时自动携带当前值。
|
|
92
|
-
|
|
93
|
-
所以私密态由 DS **同时**维护在**服务端内存**(不是根字段,客户端读不到),并在 `onJoin` 里对刚进来的这条 client 按其绑定的 `playerId` 定向重发一次:
|
|
94
|
-
|
|
95
|
-
```js
|
|
96
|
-
// DS 侧 Room
|
|
97
|
-
onCreate() {
|
|
98
|
-
this._secrets = new Map(); // playerId -> 私密内容,仅存 DS 内存,不进 state
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// 某时机把私密内容分配给某人(playerId 来自 DS 绑定,不来自客户端自报)
|
|
102
|
-
setSecret(playerId, client, content) {
|
|
103
|
-
this._secrets.set(playerId, content);
|
|
104
|
-
client.send("evt", { type: "secret_state", data: content });
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// 后进房 / 重连:按绑定表取 playerId,把这条 client 的私密态定向补一次
|
|
108
|
-
onJoin(client, options) {
|
|
109
|
-
const playerId = this._bindPlayer(client.sessionId, options);
|
|
110
|
-
const secret = this._secrets.get(playerId);
|
|
111
|
-
if (secret) client.send("evt", { type: "secret_state", data: secret });
|
|
112
|
-
}
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
> 私密态存 DS 内存 + onJoin 定向重发,是「私密」和「可恢复」的唯一并存方式:放根字段可恢复但泄漏,只广播一次不泄漏但重连即丢。二者都不行。
|
|
116
|
-
|
|
117
|
-
### 私密 → 公开的单向转换(通用机制)
|
|
118
|
-
|
|
119
|
-
原本只发给某人的私密态,可能在**某个时机**变成「对某人 / 对所有人公开」。本节只给**通用机制**,不写任何具体玩法的转换规则:
|
|
120
|
-
|
|
121
|
-
- **由 DS 判定转换时机**:何时从私密转公开,由服务端按玩法裁决触发,客户端不自行揭示。
|
|
122
|
-
- **按目标定向「提升」下发**:转换是 DS 主动向**指定目标**(某个人、某几个人、或全房)重新下发这份内容。⚠️ 注意:即便揭示给多人,**这仍是「对特定目标定向提升」,不是把它写进根字段做全房广播**——目标集合由 DS 决定并逐一 `client.send`。
|
|
123
|
-
- **转换前存 DS 内存**:未转换时内容始终只在 DS 内存的私密表里,不进根字段;转换只改变 DS「发给谁」,不改变「私密态不落根字段」这条铁律。
|
|
124
|
-
- ⚠️ **转换那一刻下行包会明显变大,这是正常的、且不受上行 4KB 限制**:原本只发给 1 人的一小份私密态,转换后要向指定目标(某人 / 某几人 / 全房逐一)重新下发,内容可能是**一整个局面级**的大对象;这是 **DS→客户端的下行**,浏览器端不设 4KB 接收上限,不会触发 code 1009。**绝不要在这条下发路径上套上行的包体预算检查**(如 `if (overBudget(data)) return`)——那属于把「上行 4KB」误当成全局规则,会把这份本该送达的大包**静默吞掉**(下行不受限的完整说明见「频率与包体」节)。此处下发只管发全、发对目标,不做体积裁切。
|
|
125
|
-
|
|
126
|
-
可举一例帮助理解(**仅示意,非规则**):棋类玩法中「一方出局后,向其揭示全场剩余局面」即属此类——出局那一刻由 DS 判定,把原先各自私密的局面定向提升下发给该玩家。它仍是定向提升,不是全房广播;这份「全场剩余局面」下发时体积会陡增,属上面说的正常情形,不要在此处拦截。
|
|
127
|
-
|
|
128
|
-
### 本地标注不属于状态同步范畴
|
|
129
|
-
|
|
130
|
-
玩家给己方 / 对方棋子贴的本地便签、标记、备注,是**纯客户端本地**的辅助显示:不上报 DS、不进任何同步通道、对手不可见、断线重连也不需要恢复。它属于 UI 层,**不属于状态同步范畴**,本上下文不展开。
|
|
131
|
-
|
|
132
|
-
### 完成检查(私密态)
|
|
133
|
-
|
|
134
|
-
- 私密态**不在**任何 state 根字段里;grep 根字段 Schema 确认无身份 / 暗子 / 手牌等私密字段。
|
|
135
|
-
- 私密态走 `client.send`(定向),不走 `room.broadcast`(全房);私密→公开转换后**仍是定向提升**,未退化成根字段广播。
|
|
136
|
-
- 私密→公开转换的**下行发送路径上没有任何包体预算检查 / 裸 `return`**:转换时下行包变大是正常的、且不受 4KB 限制,不得在此静默拦截(4KB 只卡上行)。
|
|
137
|
-
- 私密下发 / 重连认领的目标**取自 DS 绑定表**,不取自客户端 `options` 自报的 id。
|
|
138
|
-
- DS 在内存保有私密态,`onJoin` 对新连接 / 重连按绑定 `playerId` 定向重发;后进房玩家能拿到自己的那份。
|
|
139
|
-
- 本地标注类数据未进任何同步通道。
|
|
140
|
-
|
|
141
|
-
## 后加入与重连
|
|
142
|
-
|
|
143
|
-
对每类数据回答:“错过此前全部消息,只看当前 state,能否继续?”
|
|
144
|
-
|
|
145
|
-
- 能:当前状态足以恢复,事件只用于表现。
|
|
146
|
-
- 不能:把必要事实移到根状态,或在 `onJoin` 定向发送一份完整快照。
|
|
147
|
-
- 玩家连续态:新连接通过当前 `players` Map 获得;不要依赖历史 pose。
|
|
148
|
-
- 断线重连会得到新的 `sessionId`。需要跨连接保留的业务身份只能由玩法明确映射,不能默认沿用旧 session。
|
|
149
|
-
|
|
150
|
-
三种结束路径必须分开:
|
|
151
|
-
|
|
152
|
-
- `mp-disconnect`:网络异常,用事件里的 `roomId` 或 `getLastRoomId()` 重走 `joinRoom()`。禁止在 detach 之后读 `getRoomId()`。
|
|
153
|
-
- `mp-room-closed`:本局已结束或进程回收,不重连。
|
|
154
|
-
- 主动 `leaveRoom()`:正常退出,不触发自动重连。
|
|
155
|
-
|
|
156
|
-
### 权威恒在 DS,不存在客户端切主
|
|
157
|
-
|
|
158
|
-
本子系统是**服务端权威**:权威逻辑跑在 DS,不跑在任何客户端。房主玩家掉线只是少一名玩家,DS 进程还在、裁决照常,**不存在“主逻辑无人计算”,因此不需要、也不实现“切主 / MasterClient 切换”**。遇到房主制、客户端权威、MasterClient 那套资料(房主端算逻辑、掉线抢切网络最好的玩家)不要套用——那是没有权威服务端的架构的补救,与本架构无关。我们对应的机制只是**某玩家断线后按原 `roomId` 重连**(重连得到新 `sessionId`,业务身份靠玩法自己映射),这与“切主”是两码事。
|
|
159
|
-
|
|
160
|
-
### 重连保席位:DS 用席位表认领旧 slot
|
|
161
|
-
|
|
162
|
-
上面说的「业务身份靠玩法自己映射」,落地范式是 **DS 在根字段维护一张席位表**,把「对局里的槽位」和「玩家身份」绑定,断线重连能认回原 slot。
|
|
163
|
-
|
|
164
|
-
- **根字段维护 `seats`**:`seats: { player_id -> { slot, hp, score, alive, ... } }`。这是全房可读的权威(谁占几号位、血量分、存活),不是私密态。
|
|
165
|
-
- **onJoin 用 DS 绑定后的 `playerId` 查表**:命中的 = 重连认领原席位,把**新 sessionId 绑回旧 slot**(旧 session 已失效,按新连接重建该 slot 的 `players[sessionId].data` 连续态);未命中 = 新玩家,占下一个新 slot。⚠️ `playerId` 取自 DS 侧绑定表(见上面「安全口径」),**不是每次从客户端 `options` 读自报值**。
|
|
166
|
-
|
|
167
|
-
> **⚠️ 席位表是容器,别用下标 / 别用 `{}`**:`seats` 是「按 player_id 索引的映射」。**绝不能写成 `this.state.seats = {}`**(普通对象不能当 Colyseus 根字段,`seats` 从未在 `defineTypes` 里声明的话,这行是往 Schema 实例挂未声明字段——不报错、能跑,但 `seats` **从头到尾不进编码**,客户端 `state` 里根本没这个字段,100% 不同步);也**不能对容器用下标读写**(`state.seats[k] = v` / `state.seats[k]` / `delete state.seats[k]` 在 `@colyseus/schema@4.0.30` 下**静默失效**:名下标只挂一个普通 JS 属性,**读得回来**所以按 key 取的路径全正常,但 `.size` 恒 0、`.forEach`/`for...of` 遍历不到、**完全不进编码,客户端永远收不到**——「一半路径能跑、一半静默空」是双端不同步里最难定位的形态)。详见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/SERVER_GUIDE.md`「硬约束」节的 `MapSchema / ArraySchema 只能用方法访问`。
|
|
168
|
-
|
|
169
|
-
**席位表有两种合法形态,按下面判据选,不能只写一种**:
|
|
170
|
-
|
|
171
|
-
| 形态 | 声明 | 客户端收口 | 适用 |
|
|
172
|
-
|---|---|---|---|
|
|
173
|
-
| **JSON 字符串根字段**(默认推荐) | `seats: "string"` | 现成 `onStateField('seats')`,握手自带当前值,零客户端改动 | 整表 ≤ 约 1KB,且**低频**写(回合结算、偶发扣血)。席位表天然低频,默认走这个 |
|
|
174
|
-
| **MapSchema 根字段** | `seats: { map: SeatState }` | `onStateField` **收不到条目增删与嵌套字段变化**,须在 `MultiplayerManager.ts` 的 `_attachRoom()` 补容器监听(见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/SERVER_GUIDE.md`「根字段有两种形态」) | 整表 ≥ 几 KB / 条目上百 / 需要「只有某个字段变化才更新」的字段级增量 |
|
|
175
|
-
|
|
176
|
-
> **判据优先级**(不能只看高频低频):① **owner**——DS 裁决的 → 根字段(高低频都一样);玩家自报的连续态 → `players[sid].data`(那是客户端上报通道、DS 只存不改,且**不回推给发起者自己**,把 DS 裁决的`hp` 塞进去会让本机另存一份、两份必分叉)。② **整表全量多大**——`patchRate` 已把下发频率锁在 20Hz,成本上限 = 全量 × 20Hz,与写入频率无关;≤ 约 1KB 字符串够用,≥ 几 KB 用 MapSchema。③ **客户端要什么粒度**——整表刷新即可 → 字符串;「只有 hp 变了才更新这一个血条」→ MapSchema。**默认走 JSON 字符串根字段**;确需字段级增量才扩到 MapSchema。
|
|
177
|
-
|
|
178
|
-
```js
|
|
179
|
-
// ds/rooms/xxxSchema.mjs —— 席位表作为 JSON 字符串根字段(默认形态)
|
|
180
|
-
defineTypes(RoomState, {
|
|
181
|
-
players: { map: PlayerState }, // 连续态槽位,模板已有,勿改
|
|
182
|
-
phase: "string",
|
|
183
|
-
seats: "string", // player_id -> { slot, hp, score, alive } 的 JSON
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
// ds/rooms/xxxRoom.mjs
|
|
187
|
-
onCreate() {
|
|
188
|
-
this._bindings = new Map(); // sessionId -> player_id(DS 分配的锁定绑定,JS 原生 Map)
|
|
189
|
-
this._nextSlot = 1;
|
|
190
|
-
}
|
|
191
|
-
_seats() { try { return JSON.parse(this.state.seats || "{}"); } catch { return {}; } }
|
|
192
|
-
_writeSeats(o) { this.state.seats = JSON.stringify(o); } // 必须整体赋值才触发同步
|
|
193
|
-
|
|
194
|
-
onJoin(client, options) {
|
|
195
|
-
// _bindPlayer 意图:首次进房由 DS 分配一个 player_id 并锁定到该 sessionId(存 _bindings),
|
|
196
|
-
// 之后"认领谁的席位 / 私密发给谁"都从 _bindings 取,不读客户端 options 里的自报 id ——
|
|
197
|
-
// 否则 A 在自报里填 B 的 id 就能冒领 B 的席位(见"安全口径"节)。
|
|
198
|
-
// ⚠️ player_id 是认领 key;sessionId 才是权限校验对象,两者别混用。
|
|
199
|
-
const playerId = this._bindPlayer(client, options);
|
|
200
|
-
const seats = this._seats();
|
|
201
|
-
if (seats[playerId]) {
|
|
202
|
-
// 重连:认回旧 slot,把新 sessionId 绑回旧席位
|
|
203
|
-
seats[playerId].sessionId = client.sessionId;
|
|
204
|
-
this._restoreContinuousState(seats[playerId]); // 重建该 slot 的 players[sid].data
|
|
205
|
-
} else {
|
|
206
|
-
// 新玩家:占新 slot
|
|
207
|
-
seats[playerId] = { slot: this._nextSlot++, hp: 100, score: 0, alive: true, sessionId: client.sessionId };
|
|
208
|
-
}
|
|
209
|
-
this._writeSeats(seats); // 改完必须整体写回,只改 seats 对象本身不会同步
|
|
210
|
-
}
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
- **字符串形态唯一的坑**:`_seats()` 返回的是**快照副本**,直接改它不会同步,**必须 `_writeSeats()` 整体写回**。
|
|
214
|
-
- **`player_id` 的权威在 DS 侧绑定**:首次进房由 DS 分配并锁定到该 sessionId(`_bindings`),后续认领 / 下发一律从绑定表取。客户端若把 id 带回 `options`,只当**定位 key** 用(DS 查绑定表能否命中),不当授权凭证;「这条消息是不是本人发的」仍由 sessionId 判定(见「客户端提交意图」节)。要更硬可叠加平台下发可信身份,但「主管目标以 DS 绑定为准」这条不变。
|
|
215
|
-
- 和传输层**不矛盾**:传输层**禁用 `allowReconnection`**(见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/SERVER_GUIDE.md`,DS 壳不保留旧连接),重连必然是**新 sessionId 的新连接**——所以「跨连接记住席位」只能靠上层的席位表,不能靠协议层的自动重连。这两件事一个管传输、一个管业务映射,方向不同、缺一不可。
|
|
216
|
-
|
|
217
|
-
#### 最小骨架
|
|
218
|
-
|
|
219
|
-
**回合制桌牌**:`seats.pid` 存槽位 + 当前积分;玩家掉线,`mp-disconnect` 后业务按其 `player_id` 等待若干秒;重连 `joinRoom` 时 `onJoin` 命中即认回槽位、积分、当前手牌(手牌若私密则按上面私密态节补发)。超时未回则标记 `alive=false` 或让席位进入托管/弃权。
|
|
220
|
-
|
|
221
|
-
**实时对战**:`seats.pid` 存 `{ slot, hp, alive, score }`;掉线者角色保留原地(位姿停更),重连认回后在宽限期内恢复原血量/比分。宽限期结束仍未回,服务端判定出局或由 AI 托管(取决于玩法策略),并广播事件。
|
|
222
|
-
|
|
223
|
-
#### 完成检查(重连保席位)
|
|
224
|
-
|
|
225
|
-
- 席位表在**根字段**,全房可读、DS 单点写;不依赖客户端各自记忆。
|
|
226
|
-
- `onJoin` 用 **DS 绑定后的 `playerId`** 查表:命中 → 认回原 slot 并重建连续态;未命中 → 新玩家占新 slot;**不从 `options` 直接读自报 id 作主管目标**(防冒领席位,见「安全口径」)。
|
|
227
|
-
- 明确区分:`player_id` 是认领 key、`sessionId` 是权限校验对象;二者不被混用。
|
|
228
|
-
- 和「禁用 `allowReconnection`」不冲突:传输层新建连接,业务层靠席位表跨连接认回——写清二者分工。
|
|
229
|
-
- **可机检**:`ds/` 全文 grep 不到 `this.state.<字段>[` 形式的下标访问;所有 **MapSchema / ArraySchema** 容器走 `.set/.get/.has/.delete/.forEach`(JS 原生 `Map`、JSON 解析出的普通对象用下标/方法访问是正常的,不要误伤——只查 `state.` 开的容器字段)。每个 state 根字段都能说出它是**标量还是容器**,以及**客户端从哪个收口拿到它**(标量 → `onStateField`;容器 → `MultiplayerManager.ts` 的 `_attachRoom()` 里补的容器监听,见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/SERVER_GUIDE.md`「根字段有两种形态」)。
|
|
230
|
-
|
|
231
|
-
## 阶段 / 回合状态机:根字段单点迁移,客户端只读
|
|
232
|
-
|
|
233
|
-
回合制与阶段驱动玩法(轮流出手、出题→作答→投票→揭晓)需要**阶段状态机**。它也是**全房唯一权威事实**,归 DS 单点迁移。
|
|
234
|
-
|
|
235
|
-
### 哪些放根字段
|
|
236
|
-
|
|
237
|
-
- **阶段**(`phase`: `prepare/playing/voting/reveal`…)、**当前行动者**(`turn_player` 或 `turn_sessionId`)、**回合序号**(`round`)——三者**都放根字段**。
|
|
238
|
-
- 客户端**只读根字段渲染**当前阶段,**只发意图**(落子、提交答案、投票),不自行推进阶段。
|
|
239
|
-
|
|
240
|
-
### DS 单点迁移
|
|
241
|
-
|
|
242
|
-
阶段迁移、行动权轮换**只在 DS 里算**,DS 改根字段后全房经 `onStateField` 自动同步。客户端无权改阶段、也无权广播「轮到我了」:
|
|
243
|
-
|
|
244
|
-
```js
|
|
245
|
-
// DS 侧:轮转到下一个玩家(回合制)
|
|
246
|
-
nextTurn() {
|
|
247
|
-
const next = this._players[(this._turnIndex + 1) % this._players.length];
|
|
248
|
-
this.state.phase = "playing";
|
|
249
|
-
this.state.turn_sessionId = next.sessionId;
|
|
250
|
-
this.state.round += 1;
|
|
251
|
-
// 改根字段后,全房客户端经 onStateField 自动收到
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// 多阶段机:出题 -> 作答 -> 投票 -> 揭晓
|
|
255
|
-
advancePhase() {
|
|
256
|
-
const order = ["pitch", "answer", "vote", "reveal"];
|
|
257
|
-
this.state.phase = order[(order.indexOf(this.state.phase) + 1) % order.length];
|
|
258
|
-
}
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
### 倒计时用 DS 时间戳,不用客户端各自计
|
|
262
|
-
|
|
263
|
-
- 倒计时起始/截止**时间戳放根字段**(如 `phase_deadline: <ds 时间戳 ms>`),客户端用它**算剩余**——不是每个客户端各自开 `setInterval` 计一段本地时长。
|
|
264
|
-
- 客户端本地计时的起点误差会累积、掉帧会漂移;极端情况各端看到的「还剩 3 秒、2 秒、1 秒」不一致,导致不同玩家同时看到不同阶段。
|
|
265
|
-
- DS 是唯一时钟源:到 `phase_deadline` 后由 DS 触发迁移(轮转或进下一阶段),不是靠某客户端喊「时间到了」。
|
|
266
|
-
|
|
267
|
-
### 最小骨架
|
|
268
|
-
|
|
269
|
-
**回合轮转(切下一个 sessionId)**:根字段 `turn_sessionId` + `round`;DS 在收到当前行动者有效落子 / 或用尽时限后 `advancePhase` 切下家;客户端只读 `turn_sessionId` 判断「现在轮到我发意图」,不发「我来切轮次」的消息。
|
|
270
|
-
|
|
271
|
-
**多阶段机(出题→作答→投票→揭晓)**:根字段 `phase` + `phase_deadline`;DS 依次迁移;每个阶段客户端只发对应阶段允许的意图(作答期才收答案、投票期才收投票),DS 校验「当前 phase 是否允许此操作」(见「客户端提交意图」节的阶段与顺序检查)。私密部分(如画者的题)按上面私密态节单独收发。
|
|
272
|
-
|
|
273
|
-
### 完成检查(状态机)
|
|
274
|
-
|
|
275
|
-
- 阶段 / 行动者 / 回合序号都在**根字段**,DS 单点迁移;客户端只读渲染、只发意图。
|
|
276
|
-
- 倒计时用 DS 时间戳派生剩余,不在客户端各自本地计时。
|
|
277
|
-
- DS 校验「当前阶段是否允许该操作」,防止客户端跨阶段发指令。
|
|
278
|
-
- 私密阶段的内容(身份/题)不走根字段,按私密态节定向下发。
|
|
279
|
-
|
|
280
|
-
## 频率与包体
|
|
281
|
-
|
|
282
|
-
- 上行连续态不超过 20Hz;更高频率不会提高服务端 patch 频率。
|
|
283
|
-
- **单包 4KB 上限只约束上行(客户端 → DS),下行(DS → 客户端)不受此限**:
|
|
284
|
-
- **上行**:客户端发给 DS 的单包 ≤ 4KB UTF-8 字节,发送前用 `TextEncoder` 计算。这个 4KB 来自传输层 `@colyseus/ws-transport` 的默认 `maxPayload`(`4 * 1024`),且默认**无压缩**(`perMessageDeflate = false`)。它是 **DS 作为接收方**能收下的最大消息字节——所以只卡「客户端往 DS 发」这一向。超限的代价是**连接以 code 1009 被断开、`onMessage` 根本不执行**(是断连,不是丢这一包),所以有效检查必须在**客户端发送前**做。
|
|
285
|
-
- **下行**:DS 发给客户端的包**没有对应的 4KB 大小上限**——浏览器端不设等价的接收字节限制,下行大包不会触发 1009、不会被断连。**因此绝不要把上行那套「超预算就裁 / 就 return」的逻辑套到下行发送路径上**:下行包该多大就多大(onJoin 定向补全整局面、把某份大内容定向下发给指定玩家等场景,下行本就会明显偏大),在下行处做体积拦截会**静默吞掉本应送达的消息**。
|
|
286
|
-
- ⚠️ **下行「没有大小上限」不等于「怎么发都行」——它仍受带宽与延迟约束**:下行大包**必须是低频、事件驱动的**(`onJoin` 补全、私密→公开转换、阶段切换等**一次性时机**)。**不要**因为「下行不受 4KB 限制」就在**每帧 / 定时器 / `setSimulationInterval` 路径**上 `broadcast` 全量局面——大包不会断连,但会在 WebSocket 上**队头阻塞**后续消息,DS 又是一局一进程、按容量调度,结果是延迟飙升、甚至心跳超时被强杀、整房掉线。持续态仍走 **state 增量**(`patchRate` 默认 50ms / 20Hz,框架自动 diff),不要用整包广播替代增量。**判据**:这条下发属于「一次性时机」还是「周期性」?后者不该发全量。
|
|
287
|
-
- 优先减少字段、降低精度、发送头部或关键采样点;不要用拆包规避单个逻辑状态过大。**(此条针对上行——下行不受包体大小预算约束,无需为下行拆包或裁字段;下行的约束是「低频事件驱动」,见上。)**
|
|
288
|
-
- **禁止静默丢弃消息**:任何方向的消息,凡因预算 / 校验被拒绝,**必须打日志**(方向 + 字节数 + 拒绝原因),**绝不裸 `return`**。静默丢弃会伪装成「消息发了但对方没收到」,是排查成本最高的一类故障;尤其下行本就不该做体积拦截,若真在下行处写了 `if (over) return` 之类,等于凭空丢包且无任何痕迹。
|
|
289
|
-
- 一次性事件只带裁决所需的最小意图,当前完整局面放 state。
|
|
290
|
-
- `max_players`、DS `maxClients`、玩法人数三者必须相同。
|
|
291
|
-
|
|
292
|
-
### 表现层与同步频率解耦(有连续运动实体的实时联机必做)
|
|
293
|
-
|
|
294
|
-
限频只解决了「网上发多少」,没解决「收端怎么把它变成画面」——这两件事分开写,正是最常漏掉的一环。核心命题一句话:
|
|
295
|
-
|
|
296
|
-
> **表现层的更新节奏,不得由同步 / 帧到达的节奏决定。** 同步是 10~20Hz 的离散输入,渲染是 60fps 的连续输出;收端必须自己把离散的同步输入摊成连续的表现,绝不能「收到一次同步才动一次」。
|
|
297
|
-
|
|
298
|
-
判据不按品类,按**「是否有连续运动的实体」**:io / 射击 / 竞速 / 体育这类有连续运动的都必做;纯回合 / 棋牌 / 桌游没有连续运动,不涉及。
|
|
299
|
-
|
|
300
|
-
要覆盖**三种收端形态**,别只想到第一种(这三种形态与维度无关,2D3D 通用;此处按 2D 体例写,3D 的对等内容见 js3d 引擎「## 3D 位姿与朝向同步」→「### 二、收端基本必须插值」,形态一一对应):
|
|
301
|
-
|
|
302
|
-
- **形态 A · 状态复制型**(收到远端 pose 直接 set):不能硬 set,必须**插值逼近目标**——每个渲染帧朝最新目标 pose 平滑靠近一点。2D 位置用 `lerp`;带朝向的用角度插值。代价是画面比真实晚约 50~100ms,可接受。(3D 的位置 `lerp` + 四元数 `slerp` 完整方法论在 js3d 引擎侧,2D 除少了 z 与四元数外同理。)
|
|
303
|
-
- **形态 B · 确定性帧同步 / 锁步型**(收到一帧携带 N 步输入):**绝不能在一次调用里把 N 步跑完再渲染**——那等于每个同步周期瞬移一次。必须把这 N 步**入队**,由渲染循环按**固定步长**逐步消费(定步长累加器)。**队列空时保持当前状态、不外推**:确定性模拟下本地猜测会立刻与权威分叉,宁可短暂停顿也不要猜。
|
|
304
|
-
|
|
305
|
-
```js
|
|
306
|
-
// ❌ 收到帧就把一批 step 跑完,渲染看到的是每 50ms 一次的跳变
|
|
307
|
-
onFrame(inputs) { for (let i = 0; i < 3; i++) step(state, inputs); render(); }
|
|
308
|
-
|
|
309
|
-
// ✅ 入队,渲染循环按固定步长消费(与单机的定步长累加器同一套)
|
|
310
|
-
onFrame(inputs) { for (let i = 0; i < 3; i++) queue.push(inputs); }
|
|
311
|
-
update(delta) {
|
|
312
|
-
acc += delta;
|
|
313
|
-
while (acc >= STEP && queue.length) { step(state, queue.shift()); acc -= STEP; }
|
|
314
|
-
// 队列空 → 不 step、不外推,画面停在当前帧等下一批权威输入
|
|
315
|
-
}
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
> **最隐蔽的坑**:同一份工程的单机分支往往已经写对了定步长累加器(每个渲染帧推进一步,60fps 平滑),联机分支却只「设置输入、一步都不推进」,完全依赖 20Hz 的批量状态替换 → 所有物体每 50ms 瞬移一次。**联机分支同样需要定步长消费**,别以为「联网了就交给同步」。
|
|
319
|
-
|
|
320
|
-
- **形态 C · 本地权威同款模拟 + 快照纠偏**(收端本地跑一套与 DS 相同的物理模拟,权威快照到达时向它收敛):适用于**本地能自己算出下一刻在哪**的连续运动——球类、弹道、载具惯性等。与形态 A 的本质区别是**渲染时刻**:A 渲染在过去(比真实晚 50~100ms 换平滑),C 渲染在**当下**(本地模拟一直往前跑,快照只用来纠偏),所以 C **必须处理「收到的权威态本身是旧的」**这件事。四条铁律,缺一条就是越纠越飘:
|
|
321
|
-
|
|
322
|
-
1. **纠偏比较前,必须先把权威态外推到当前时刻**,再和本地当前值比。快照带的是「服务端 t 时刻的位置」,到你手里已经旧了 ≈70~110ms(一个 RTT 的一半 + patchRate 半窗口);直接拿快照原始位置减本地当前位置,会把「物体本该前进的那段距离」当成偏差纠掉,累积成每秒往回瞬移十几二十次。**机检判据**:凡出现「`阈值判断(快照字段 − 本地当前字段)` 且这两者之间没有任何按时间推进的步骤」= 不合格。
|
|
323
|
-
2. **外推要用「标定过的时钟」,不能用到达时刻。** age = `getServerNow() − snap.t`(`snap.t` 是 DS 写快照时的服务端单调时钟,作为两端契约的一部分随快照下发;`getServerNow()` 见 `MultiplayerManager` 模板,客户端按最小 RTT 标定出本机与 DS 的时钟偏移——设施与用法见 `../Subsystems/Optional/MultiplayerManagerKnowledge.md`)。**用「到达时刻 − snap.t」当 age 是错的**:那把单向网络延迟当成了 0。⚠️ **这条与本文件「倒计时用 DS 时间戳」节是两码事,别混**:倒计时是**秒级**、直接拿 `deadline − now` 相减就够,几十毫秒的时钟差看不出来;纠偏是 **50~100ms 级**、时钟差直接顶破阈值,**必须先标定偏移**。同一个「DS 时间戳」,一个能裸用一个必须标定,尺度不同。
|
|
324
|
-
3. **外推公式 / 本地模拟 / DS 模拟三者同源。** DS 大步长欧拉、客户端每帧一步、纠偏又用解析解,三套积分各算各的 → 半隐式欧拉**对加速运动不是步长无关的**(大 dt 跑一步 ≠ 小 dt 跑多步),会积出稳定漂移直接顶破阈值。**要么统一固定步长**(三处都用同一个 STEP 累加器),**要么统一改成闭式** `pos += v·dt + 0.5·a·dt²; v += a·dt`(**先算位置后更新速度**,这样大 dt 一步严格等于小 dt 多步;2D 就是 `x/y` 两个分量各算一遍,没有 z 与四元数)。做对之后,本地与权威的残差**只应来自反弹 / 限速这类离散事件**,且有界。
|
|
325
|
-
4. **阈值只在前三条都做对之后才有意义。** 阈值是**死区**,用来吸收离散事件带来的那点有界残差(第 3 条尾),**不是用来吸收系统误差**的。前三条没做对时,阈值调大只是「飘得慢一点」、调小只是「抖得勤一点」,都治不了根——先把外推、时钟、同源做对,阈值才是在做它该做的事。
|
|
326
|
-
|
|
327
|
-
**术语澄清(别把两件事混成一件)**:有人会说「本引擎不做延迟补偿,那权威态到了直接拿原始值比就行」——**这是两件不同的事混成了一件**。所谓「延迟补偿」通常指**服务端回溯历史帧、还原『打中那一刻』**(DS 无法回溯历史帧,这条本引擎确实不做);而形态 C 要做的是**客户端把权威态外推到当前时刻**(连续运动玩法**必做**)。前者是服务端的历史重建,后者是客户端的当下推算,**别把「不做服务端回溯」泛化成「任何时间补偿都不做」**——那正是第 1 条禁止的。
|
|
328
|
-
|
|
329
|
-
- 插值 / 预测 / 回滚(含形态 C 的本地模拟与纠偏)由**玩法层**做,**不进 `MultiplayerManager` 模板**(模板只收发 `unknown`;模板暴露的 `getServerNow()`/`getClockOffset()` 是**时钟测量设施**、不是纠偏本身,辨析见 `../Subsystems/Optional/MultiplayerManagerKnowledge.md`)。
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
### 逼近 4KB 的上行取舍顺序(多实体压包)
|
|
333
|
-
|
|
334
|
-
几十个动态实体同时上行时,单包(上行,见上)会逼近 4KB 上限。**按下面顺序逐级降**,每一步都先保「权威裁决 + 对局可玩性」,最后才动实体数:
|
|
335
|
-
|
|
336
|
-
1. **先降上报频率**:20Hz → 10Hz。减一半包量,代价是收端插值(见「表现层与同步频率解耦」节)跨度更远、稍显迟钝,但最不伤对局。**首选。**
|
|
337
|
-
2. **再减字段**:静止/不动的物体**不发朝向**(`rot` 可省几字节/个);无移动的帧只发位置。**掉的都是次要维度,不伤权威。**
|
|
338
|
-
3. **再降精度**:位置两位小数 → 一位小数(省几字节/数)。**牺牲平滑度换空间。**
|
|
339
|
-
4. **最后只发关键实体**:玩家必发;次要装饰/非关键道具降到低频(如 2~5Hz)或只发事件不发连续态。**这是最后手段。**
|
|
340
|
-
|
|
341
|
-
(此取舍顺序只针对**上行**;下行不受 4KB 大小限制,无需按此压缩,但仍须遵守「低频事件驱动」,见上。)
|
|
342
|
-
|
|
343
|
-
#### 上行算例(2D 连续态)
|
|
344
|
-
|
|
345
|
-
2D 单个实体的连续态通常是 `{ x, y, rot }`(位置 + 平面旋转,无 z 轴、无四元数):
|
|
346
|
-
|
|
347
|
-
- 位置 `{x, y}` 各取 2 位小数:约 `2*6 + 8`(含键名 `"x":"y":` 与逗号)≈ 20 字节
|
|
348
|
-
- 朝向 `rot` 取 2 位小数:约 `6 + 6` ≈ 12 字节
|
|
349
|
-
- 合计约 **30~40 字节/实体**(含 JSON 键名与标点,取 ~35)
|
|
350
|
-
|
|
351
|
-
4KB = 4096 字节。纯连续态可装 **~100 个实体**(远比 3D 的 ~64 宽松,因为 2D 每实体少了 z 轴与四元数三数)。但**根字段 + 事件 + 状态开销都会挤占同一个 4KB 上行包**,实际可用的连续态实体数更少;即便如此,2D 的实体上限一般不是瓶颈——真触顶时按上面 1→4 压缩。项目契约记录格式里应写清「该玩法预计实体数 × 频率 × 每实体字节」的预算,上线前先在文档层面算一遍。
|
|
352
|
-
|
|
353
|
-
## 回放边界:局末一次性落盘,不进状态同步
|
|
354
|
-
|
|
355
|
-
状态同步**不承载回放 / 历史留存**:各通道只保「当前值」,不保「过去发生了什么」。回放不是状态同步的职责,是另一条独立路径。
|
|
356
|
-
|
|
357
|
-
- **根字段只保当前值**:`phase`、`score`、棋盘都是「此刻是什么」,没有历史数组、没有操作日志、没有上一帧的副本。
|
|
358
|
-
- **回放的独立路径**(只写方向,不写完整 DS-log 实现):DS 在对局过程中**累积全知动作日志**(谁在何时做了什么、DS 的裁决结果)→ **局末一次性写入已有的云存储**(局外数据,不走同步通道;2D 的 `saveManager` 模板含 CloudSaveAdapter,落盘路径是通的)→ **回放时前端读这条日志重演**,按日志逐条重建局面。
|
|
359
|
-
- **禁止用状态同步 / 根字段存历史**:不要把操作序列、撤销栈、每回合快照放进根字段或 `evt`。根字段体积按字节受控(见「频率与包体」),塞历史会直接挤压当前态的可用空间;且根字段是实时权威态,不是存档。
|
|
360
|
-
- **对局内的「上一动作」**(如「最后一步棋」「上一个喊话」)若玩法需要展示,属**当前值**而非历史:作为当前状态的一个字段随根字段同步,不进回放日志。
|
|
361
|
-
|
|
362
|
-
## 项目契约记录格式
|
|
363
|
-
|
|
364
|
-
每个联网玩法在架构文档的模块与耦合表中记录 owner 和依赖;精确线上字段在玩法 System / Room 的契约注释中维护,避免架构文档膨胀为 API 手册。
|
|
365
|
-
|
|
366
|
-
每类数据至少记录:
|
|
367
|
-
|
|
368
|
-
- 语义与 owner;
|
|
369
|
-
- 使用的通道及字段/事件名;
|
|
370
|
-
- 客户端上报内容与 DS 校验;
|
|
371
|
-
- 后加入/重连恢复方式;
|
|
372
|
-
- 更新频率与最大体积;
|
|
373
|
-
- 本机状态是否需要本地镜像。
|
|
374
|
-
|
|
375
|
-
字段和事件只属于当前项目,不得因某个实现成功或失败而写入全局 Knowledge。
|
|
376
|
-
|
|
377
|
-
## 完成检查
|
|
378
|
-
|
|
379
|
-
- 全房唯一事实只有一个 DS owner,不依赖多客户端各自推演后“碰巧一致”。
|
|
380
|
-
- 必须恢复的数据不只存在于历史 `evt`。
|
|
381
|
-
- 客户端只提交意图或自身连续态,DS 不信任自报结果和身份。
|
|
382
|
-
- 抢唯一资源用 DS 侧 CAS(期望值匹配才写),迟到请求自然失败。
|
|
383
|
-
- 每个消息都能解释发送者、接收者、迟到、重复、断线和后加入行为。
|
|
384
|
-
- **上行**包体按字节受控(4KB 上限只卡上行),连续态频率不超过 20Hz;**下行不受 4KB 大小限制,但下行大包只在一次性时机发、未在每帧/定时路径整包广播**;未在任何下行发送路径上做体积拦截 / 裸 `return` 静默丢包。
|
|
385
|
-
- **表现层与同步频率解耦**(有连续运动实体时必查):表现层每帧更新的数据,是否只在收到同步消息时才变化?**是则不合格**——收端必须按渲染帧插值 / 逐步消费,把离散同步摊成连续表现。
|
|
386
|
-
- **无「一次调用连跑多步再渲染」**:是否存在收到一帧就在同一次调用里连续执行多个模拟步、然后整体替换 state 的路径?**有则不合格**——N 步必须入队、由渲染循环按固定步长逐步消费,队列空时保持当前状态不外推。
|
|
387
|
-
- **本地模拟 + 快照纠偏(形态 C)四问**:① 阈值比较前,是否先把权威态**按快照年龄外推到当前时刻**(凡「阈值判断(快照字段 − 本地当前字段)」中间无按时间推进的步骤 = 不合格)?② 外推所用的 age 是否来自**标定过的时钟**(`getServerNow() − snap.t`),而不是到达时刻?③ 外推公式 / 本地模拟 / DS 模拟**三处积分是否同源**(统一固定步长或统一闭式 `pos += v·dt + 0.5·a·dt²`)?④ 阈值是否只在前三条做对后才用来吸收离散事件残差(而非拿它掩盖系统漂移)?
|
|
388
|
-
- 私密态不进根字段、走 `client.send` 定向;DS 内存保有并在 `onJoin` 对后进房/重连补发;私密→公开转换后仍是定向提升、下发路径无体积拦截。
|
|
389
|
-
- 重连保席位靠根字段席位表 + `onJoin` 用 `player_id` 认领旧 slot;与禁用 `allowReconnection` 分工明确。
|
|
390
|
-
- 阶段/行动者/回合序号在根字段、DS 单点迁移;倒计时从 DS 时间戳派生,客户端只读只发意图。
|
|
391
|
-
- 回放/历史不在状态同步里:根字段只保当前值;DS 日志局末落云存储、前端读日志重演,未用同步通道存历史。
|
|
392
|
-
- 客户端与 `ds/` 的字段和消息名逐项一致,但没有跨目录 import。
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
# 平台云服务(JS / JS3D 共用)
|
|
2
|
-
|
|
3
|
-
仅当项目根有 `game-runtime.json` 时使用本文路径。没有该文件时按工程已有 import 改,不要新增 `runtime/lightgame/` 引用。
|
|
4
|
-
|
|
5
|
-
新增的身份、排行榜、云存档、多人同步由 `platform-services` Skill 按需安装到 `src/skill-modules/platform-services/`。一次只装要用的那一个:
|
|
6
|
-
|
|
7
|
-
- `identity`:身份。不传 `--modules` 时只装这个
|
|
8
|
-
- `leaderboard`:排行榜,附带身份文件,不含云存档和联机
|
|
9
|
-
- `save`:云存档,附带身份文件,不含排行榜和联机
|
|
10
|
-
- `multiplayer`:`MultiplayerManager.ts`、`log.ts`、`eventBus.ts` 和 `multiplayer/`,附带身份文件,不含排行榜和云存档
|
|
11
|
-
|
|
12
|
-
身份、排行榜、云存档先读安装后的 `.d.mts`,联机读 `MultiplayerManager.ts`。有 Runtime 标记不代表已安装服务。已经在用 `runtime/lightgame/1.0.0/platform/` 的旧工程,保持原 import 和初始化,不自动迁移,也不要和 skill 混用。给这类工程新增联机、以及 `src/subsystem/multiplayerManager/` 旧副本的处理,见 `${CRAFT_CONTEXT_DIR}/rules/PlatformBoundaryModules.md`。
|
|
13
|
-
|
|
14
|
-
## 接入与启动
|
|
15
|
-
|
|
16
|
-
`init()` 只挂身份监听,不向父页面发送消息。预览桥发出 `ready` 后,父页面回复带 `data` 的 `runtime-init`。**身份监听必须在 `preview.markReady()` 之前挂上**,否则会错过回复。
|
|
17
|
-
|
|
18
|
-
这条身份通道是页面单例,不只给排行榜用。漏挂时下面几项一起坏,不是各自再写一套启动:
|
|
19
|
-
|
|
20
|
-
| 能力 | 漏挂后的现象 |
|
|
21
|
-
|------|----------------|
|
|
22
|
-
| `LeaderboardManager` `query` / `report` / `reportBatch` / `updateDisplay` / `clear` | `PLATFORM_UNAVAILABLE`;面板应写暂不可用,不要造假在线榜 |
|
|
23
|
-
| `SaveManager` `load` / `save` / `list` / `delete` / `flush` | 默认回退本机:`result` 仍可能是 `OK`,但 `source` 是 `'local'`。看起来像存档成功,其实跨设备不同步。`SaveManager.cloud` 才会明显失败 |
|
|
24
|
-
| `PlatformServiceManager.request()`、`getPlayerId()` / `getPlayerName()` / `getAppId()` | 请求失败或空身份 |
|
|
25
|
-
| `MultiplayerManager` 建房 / 加入(仅安装了 `multiplayer` 时) | 约 5 秒后「联机服务暂时不可用」 |
|
|
26
|
-
| 宿主后续的 `session-token-refresh` | 同一监听没收,换票也接不到 |
|
|
27
|
-
|
|
28
|
-
当前模板的预览桥是 `runtime/lightgame/1.1.0/platform/platform.mjs`。`src/platform.ts` 只 re-export 这一预览桥,不要改回 `1.0.0`。`lightgame()` 和 `connectPreview` 不初始化身份。安装了需要身份的模块后,在项目入口、任何可能发 ready 的调用(含 `connectPreview` 与 `preview.markReady()`)之前显式执行 `void PlatformServiceManager.init()`;需要指定来源时先调用 `getPlatformService({ targetOrigin })`。这次装上的排行榜、云存档或联机共用这一次身份初始化,不另写身份通道,也不要 `import` `runtime/lightgame/1.0.0/platform/platform-service.mjs`。`init()` 幂等。漏挂时联机会在约 5 秒后报「联机服务暂时不可用」。已经在用 `1.0.0` 身份模块的旧工程保留既有启动方式,不自动迁移。
|
|
29
|
-
|
|
30
|
-
业务场景里 `import` `LeaderboardManager` 或 `SaveManager` **都不会**自动挂监听。游戏正常绘制首帧并调用 `preview.markReady()`;**不要等待云端身份或存档加载完成才发 `ready`**,否则会阻塞握手。先显示可渲染的加载界面或本地默认状态,再异步应用读档结果。
|
|
31
|
-
|
|
32
|
-
不走这条身份通道、不要按排行榜那套去改的:
|
|
33
|
-
|
|
34
|
-
- 预览截图、调试日志、`ready` / `onloadend` / `runtime-result`:`platform.mjs`
|
|
35
|
-
- 参数面板 / `unified_data_control_config.json`:`config.mjs` + Vite,文件导出,不读 `runtime-init`
|
|
36
|
-
- 宿主 `preview-config`:2D / 3D 游戏 runtime 都不消费;编辑态资源库走独立盒子
|
|
37
|
-
|
|
38
|
-
```ts
|
|
39
|
-
import { PlatformServiceManager } from './skill-modules/platform-services/platform-service.mjs';
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
只在安装了对应模块时再加:
|
|
43
|
-
|
|
44
|
-
```ts
|
|
45
|
-
import { LeaderboardManager } from './skill-modules/platform-services/leaderboard.mjs';
|
|
46
|
-
import { SaveManager } from './skill-modules/platform-services/save.mjs';
|
|
47
|
-
import { MultiplayerManager } from './skill-modules/platform-services/MultiplayerManager';
|
|
48
|
-
import { bus } from './skill-modules/platform-services/eventBus';
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
以上路径相对于项目 `src/`,嵌套目录需调整相对路径。只 import 已安装的文件。`LeaderboardManager`、`SaveManager` 按首次使用创建;已安装的模块共享身份单例,与预览桥单例相互独立。业务按需使用公开 API,无需直接发 HTTP。联机调用见 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`。
|
|
52
|
-
|
|
53
|
-
使用服务时,在入口尽早调用身份 `init()`(安装监听后立即返回)。**装了 `leaderboard` 或 `save` 时**用 `getPlatformService({ initTimeoutMs: 20000 }).init()`:SDK 默认只等 5 秒,手 Q 的 login + 换票经常不够。无宿主、无法确认父页面来源或超时后进入 `noop`,游戏继续运行。迟到的合法 `runtime-init` / QQ 换票成功可恢复 `active`。只有可信父窗口的消息被接收;默认从 referrer / 同源父窗口确认来源,也可在首次 `getPlatformService({ targetOrigin })` 时明确指定。面板开着时可用 `PlatformServiceManager.on('state-change', …)`,在变为 `active` 后再查一次榜。
|
|
54
|
-
|
|
55
|
-
信封:
|
|
56
|
-
|
|
57
|
-
```ts
|
|
58
|
-
// 父页面 → 游戏。init() 只监听,不发送。ready 由预览桥发送。
|
|
59
|
-
{ type: 'runtime-init', data: { api, token, app_id, player_id, player_name } }
|
|
60
|
-
{ type: 'session-token-refresh', data: { token } }
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
`api` 为 HTTPS 网关地址(本机开发允许 localhost / 127.0.0.1 / ::1 的 HTTP),不硬编码业务服务域名。凭证只保留内存,POST 使用 Bearer,禁止写入日志、URL、本地存储。通信状态打到 `console.info`,前缀 `[platform-service]`:是否挂上监听、父页面是否回复、超时或无法确认来源、`state pending -> active/noop`。日志不含 token、app_id、player_id。宿主刷新凭证后后续请求自动使用新凭证;只有一次请求遇到鉴权失败且期间已收到新凭证时才重试一次。
|
|
64
|
-
|
|
65
|
-
QQ 轻游:Craft 同步到 QQ 时在游戏 URL 上追加 `api`、`app_id`、`qq_test`;URL 带 `qq_test` 时,`init()` 不等 `runtime-init`,从 URL 读这三项,改为按需加载随包的 QQ SDK(构建时单独成 chunk,Craft 预览不加载),用 `login()` 的 `game_token` 换平台 session,过期前自动重新换票。业务接线不变:不在 `index.html` 写运行时配置、不加 SDK `<script>`、不装 npm 包、不自己调 `qqAiGameSdk.login()` 或换票接口。QQ 下 `getPlayerId()` 是 gopenid,昵称默认 `用户` + gopenid 后 6 位;有游戏内昵称时作为 `report` 的第二个参数传入。SDK 处于 mock、配置缺失或换票被拒时进入 `noop`。该路径只能在手 Q 容器里验证,本地标记「未验证」。
|
|
66
|
-
|
|
67
|
-
## 排行榜
|
|
68
|
-
|
|
69
|
-
```ts
|
|
70
|
-
LeaderboardManager.configure('desc', 'BEST', [0, 999999], 'score');
|
|
71
|
-
const reported = await LeaderboardManager.report(1234, undefined, undefined, { boardKey: 'score' });
|
|
72
|
-
const ranking = await LeaderboardManager.query(undefined, { boardKey: 'score', limit: 50, includeSelf: true });
|
|
73
|
-
if (ranking.result === 'OK' || ranking.result === 'BOARD_NOT_FOUND') {
|
|
74
|
-
const items = ranking.items ?? [];
|
|
75
|
-
// 空数组就画「暂无数据」,不要写成暂不可用。名字用 textContent 渲染。
|
|
76
|
-
} else if (ranking.result === 'PLATFORM_UNAVAILABLE') {
|
|
77
|
-
// 无宿主身份:只提示暂不可用,不造假在线榜。
|
|
78
|
-
} else {
|
|
79
|
-
// 其它失败:提示加载失败。
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// 周榜:period 在 configure 里设一次,后续调用自动带上
|
|
83
|
-
LeaderboardManager.configure('desc', 'BEST', [0, 999999], 'weekly_score', { period: 'weekly' });
|
|
84
|
-
await LeaderboardManager.report(1234, undefined, undefined, { boardKey: 'weekly_score' });
|
|
85
|
-
await LeaderboardManager.query(undefined, { boardKey: 'weekly_score', seasonNumber: 12 }); // 不传即本周
|
|
86
|
-
|
|
87
|
-
// 赛季榜(period: 'season')暂未开放,服务端会拒绝,不要生成。
|
|
88
|
-
|
|
89
|
-
// 一局上多个榜:合并成一次,逐榜看结果,部分成功是正常的
|
|
90
|
-
const batch = await LeaderboardManager.reportBatch([
|
|
91
|
-
{ boardKey: 'score', score: 1234 },
|
|
92
|
-
{ boardKey: 'weekly_score', score: 1234 },
|
|
93
|
-
]);
|
|
94
|
-
for (const b of batch.boards ?? []) {
|
|
95
|
-
if (b.result !== 'OK') console.warn(b.board_key, b.message);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// 我的排名 ±N:用 player_id 比对高亮自己,别用 player_name
|
|
99
|
-
const around = await LeaderboardManager.query(undefined, { boardKey: 'score', aroundSelf: 5 });
|
|
100
|
-
const me = PlatformServiceManager.getPlayerId();
|
|
101
|
-
|
|
102
|
-
// 改名不重报分数;没上过榜会回 NOT_ON_BOARD
|
|
103
|
-
await LeaderboardManager.updateDisplay('新名字', undefined, undefined, { boardKey: 'score' });
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
`configure(sortOrder, updatePolicy, scoreRange, boardKey?, opts?)` 暂存该榜的建榜参数**和周期**,`opts` 为 `{ type?, subType?, period?, periodConfig? }`;排序支持 `asc/desc`,更新策略支持 `BEST/OVERWRITE/ACCUMULATE`。`report` 名字省略或为空时使用平台昵称,`extra` 可通过末尾选项传入。请求分别为 `/api/leaderboard/report|report-batch|query|update-display-data|clear`;分数范围和其他业务限制由服务端判定。
|
|
107
|
-
|
|
108
|
-
**`boardKey` 不会被记住。** `configure` 按 `boardKey` 分别暂存参数,不把它设成默认榜。`report` / `reportBatch` 每一项 / `query` / `updateDisplay` **每次都要显式传同一个 `boardKey`**(写成常量)。漏传会落到 `default` 榜:该榜没 `configure` 过时,首次上报回 `INVALID_BOARD_CONFIG`(日志 `configured=no`,文案指向 `sort_order`),查榜回 `BOARD_NOT_FOUND`,玩家看到的是「没上榜」。即使只有一个榜,也推荐始终传同一个 key;省略仅兼容旧代码,新代码不要省略。
|
|
109
|
-
|
|
110
|
-
**打开排行面板**:先 loading,再 `await PlatformServiceManager.whenReady()`;`isReady()` 为真才 `query`。身份未就绪时显示「平台连接失败」并提供【重新加载游戏】(点击后 `window.location.reload()`);身份仍就绪而查榜失败时允许重新查榜。`PLATFORM_UNAVAILABLE` 后先重查身份状态,再选择恢复方式。`noop` 下重复 `whenReady()` / `init()` 不会重新换票。完整清单见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/leaderboard_playbook.md`。
|
|
111
|
-
|
|
112
|
-
**周期榜靠 `configure` 记住 `period`。** `period` 决定这次读写落到哪个物理榜,不是只在建榜时用一次。在 `configure` 里设一次,之后 `report` / `query` / `updateDisplay` 会自动带上;单次调用也能用 `opts.period` 覆盖。漏设会静默落回 `all_time` 榜,分数进错榜且不报错。`weekly` / `monthly` 由服务端按自然周期分桶。**`season` 暂未开放**:服务端拒绝它并回 `INVALID_BOARD_CONFIG`,文案指向 `sort_order` / `update_policy` / `score_range`,与赛季配置无关、作者无法自查——有周期需求一律用 `weekly` / `monthly`,不要传 `periodConfig`。
|
|
113
|
-
|
|
114
|
-
**上报永远不能挑周期。** `report` / `reportBatch` 的选项里没有 `seasonNumber`(类型层面就没这个字段),服务端按当前时间落桶,杜绝往已结束的周期补分。只有 `query` / `updateDisplay` 能传 `seasonNumber` 查历史周期,不传即当前周期。
|
|
115
|
-
|
|
116
|
-
`type` 是平台三选一枚举 `comprehensive` / `periodic` / `test`,不传时按 period 自动推;自定义文字标签走 `subType`,平台只存不解析、仅供作者后台展示,别把 boardKey 塞进这两个字段。旧代码第 5 个参数直接传字符串仍兼容(枚举值当 `type`,其余当 `subType`),新代码统一传 `opts` 对象。
|
|
117
|
-
|
|
118
|
-
`reportBatch(boards, callback?)` 一次上报多个榜(服务端上限 10),逐榜独立执行、部分成功、不回滚——外层 `result === 'OK'` 只代表这次调用通过了,必须遍历 `boards[i].result`。一局要上多个榜时用它,别循环单发 `report`。
|
|
119
|
-
|
|
120
|
-
`updateDisplay(playerName?, extra?, callback?, opts?)` 只改展示数据、不动分数和名次,玩家改名换头像时用。要求该榜已有成绩,否则回 `NOT_ON_BOARD`,先 `report` 一次即可,不必提示玩家。
|
|
121
|
-
|
|
122
|
-
`query` 的 `aroundSelf: N` 取自己前后各 N 名(含自己共 2N+1 条),SDK 本地钳到 25。`items` 每行都带 `player_id`,拿它和 `PlatformServiceManager.getPlayerId()` 比对来高亮"我",别拿 `player_name` 比,会重名。
|
|
123
|
-
|
|
124
|
-
`BOARD_NOT_FOUND` 和 `ARCHIVED`(榜被作者在后台归档)都保留结果码,同时补 `items: []`、`self: null`、`total: 0`,按空榜展示、不当报错重试。无平台时返回 `PLATFORM_UNAVAILABLE`,不生成假在线排行。不要把所有非 `OK` 都显示成「暂不可用」。服务端的 `INVALID_PARAM` 表示请求已到服务端被拒,SDK 本地校验失败回的是 `INVALID_ARGUMENT`(请求没发出去),两个码不要混用。`clear(callback?, { boardKey?, allBoards? })` 仅供作者管理使用,会清掉该榜所有周期的成绩但保留榜配置,权限由服务端验证,不挂到普通玩家 UI。
|
|
125
|
-
|
|
126
|
-
## 云存档
|
|
127
|
-
|
|
128
|
-
```ts
|
|
129
|
-
// ready 已发出后读取;所有方法也保留旧式回调参数。
|
|
130
|
-
const loaded = await SaveManager.load();
|
|
131
|
-
if (loaded.result === 'OK') {
|
|
132
|
-
const coins = Number(loaded.fields?.coins ?? 0);
|
|
133
|
-
} else if (loaded.result === 'NOT_FOUND') {
|
|
134
|
-
// 首次进入,使用新档默认值。
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// 同槽字段写默认 800ms 防抖合并。无需等待每次高频更新,检查点主动 flush。
|
|
138
|
-
const pending = SaveManager.setFields({ coins: 120, level: 3 });
|
|
139
|
-
await SaveManager.flush();
|
|
140
|
-
const saved = await pending;
|
|
141
|
-
// result === 'OK' 才算保存成功;source 标明 cloud 或 local。
|
|
142
|
-
|
|
143
|
-
await SaveManager.save({ coins: 120 }, null); // 整体替换 fields 并清空 blob
|
|
144
|
-
await SaveManager.setBlob(new Uint8Array([1, 2, 3]));
|
|
145
|
-
await SaveManager.list();
|
|
146
|
-
await SaveManager.delete(undefined, { fieldKeys: ['coins'] });
|
|
147
|
-
await SaveManager.delete(undefined, { slotKey: 'chapter2', dropSlot: true });
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
**读档回调里不能只更新文字。** 所有由存档驱动的界面都要用恢复后的数据重建:关卡按钮的可点性、星级、数值、「继续游戏」入口。只刷新文案、不重设按钮状态,会出现「文字显示已解锁第 2 关、按钮却还是灰的」——读取明明成功,玩家却只能从头玩。菜单已经显示出来后才拿到存档是正常时序,读完重新生成一次菜单即可。读取期间给一个「正在恢复进度」的态,别让玩家在默认值上先操作、回头被覆盖。
|
|
151
|
-
|
|
152
|
-
按 `slotKey` 区分存档槽,默认 `default`。每槽支持标量字段 `fields` 与一块二进制 `blob`;同一份数据只存一处。字段只接受有限数字和字符串,不安全整数改用字符串,布尔转 `0/1`;复杂数据由业务决定编码,不能直接把对象传入 `fields`。槽位和字段名为 `[A-Za-z0-9._-]{1,64}`。
|
|
153
|
-
|
|
154
|
-
单玩家单游戏最多 **32 个槽**,只有**新建**第 33 个槽才会返回 `QUOTA_EXCEEDED_SLOT_COUNT`,往已有槽里写不受限。做多存档位时先 `list()` 看已有槽,复用或让玩家删旧的,别无脑新建。
|
|
155
|
-
|
|
156
|
-
存档结构版本号 `schema_version` 就是 `fields` 里的一个普通 int key,`setFields` 写进去、`load` 原样读回来,平台不校验也不迁移。**只能放 fields,不要塞进 blob**——塞进去平台读不到,而且早晚出现两个版本号打架。读档时先比版本:低了走迁移函数补结构,高了(存档比当前客户端还新)就明确提示不兼容并给重开/放弃的出口,别带着不认识的结构往下跑;每次写档都把当前版本号一并写上。
|
|
157
|
-
|
|
158
|
-
| 方法 | 行为 |
|
|
159
|
-
|---|---|
|
|
160
|
-
| `setFields(fields, callback?, options?)` | 部分更新,自动合并;不接受空字段对象 |
|
|
161
|
-
| `setBlob(bytes, callback?, options?)` | 整体替换二进制;null 清空 |
|
|
162
|
-
| `save(fields, bytes, callback?, options?)` | 整体替换字段和二进制,未列出的字段删除 |
|
|
163
|
-
| `load(callback?, { slotKey?, includeBlob? })` | 默认读取二进制,可传 false 仅取字段 |
|
|
164
|
-
| `list(callback?)` | 列出槽位元信息,先发出已排队写入 |
|
|
165
|
-
| `delete(callback?, options)` | 删指定字段、二进制或整槽;至少指定一种 |
|
|
166
|
-
| `flush(callback?, slotKey?)` | 立即发出待合并字段,并等待当前同槽操作;返回最后一次操作结果 |
|
|
167
|
-
|
|
168
|
-
写选项为 `{ slotKey?, label?, ifMatchTimestamp?, conflictIncludeBlob? }`,label 最长 200 字符;删除选项为 `{ slotKey?, fieldKeys?, clearBlob?, dropSlot?, ifMatchTimestamp? }`。所有异步方法都返回 Promise,也可传回调;回调异常不会阻塞后续存档。
|
|
169
|
-
|
|
170
|
-
同槽 `setFields/setBlob/save/load/delete/flush` 按调用顺序执行,不同槽可并行。`load` 会先提交该槽待合并字段;后续写在执行时读取最新 `updated_at`,自动带乐观锁。传 `ifMatchTimestamp: 0` 或 `null` 可明确关闭,传具体值可覆盖缓存。
|
|
171
|
-
|
|
172
|
-
`CONFLICT` 时服务端会把它那份一起回来,供游戏侧比对:`updated_at`(服务端当前令牌)、`fields`(服务端现有标量,槽不存在则为 `{}`)、`blob_size`。`blob` 默认不回,单 blob 上限 2 MiB、每次冲突都传太重;确实要做 blob 三方合并才在写选项里带 `conflictIncludeBlob: true`,拿到的是已解码的 `Uint8Array`。
|
|
173
|
-
|
|
174
|
-
**SDK 收到 `CONFLICT` 不会刷新缓存的令牌**,所以直接重试还会撞同一个冲突——这是故意的,盲目重试等于把另一台设备的进度静默覆盖。要真的写下去只有两条路:把冲突里的 `updated_at` 当 `ifMatchTimestamp` 传回去,或者先 `load()` 一次刷新令牌再写。处置权交玩家:拿本地和云端两份各自算出可读摘要(「第 5 关 · 金币 500 · 3 小时前」这种,摘要一律游戏侧生成,平台不返回语义字段),并列展示 + 各自更新时间,给「用本地 / 用云端 / 取消」三个选项,代码不许自动决定、更不许静默丢档。
|
|
175
|
-
|
|
176
|
-
云端成功读档(含二进制)、写档和删档默认更新本地副本,可用 `setMirrorEnabled(false)` 关闭。只有 `PLATFORM_UNAVAILABLE` / `INTERNAL_ERROR` 触发本地回退;`NOT_FOUND`、鉴权失败、冲突、限频与配额错误保留云端语义。云端返回 `NOT_FOUND` 时不读取旧本地副本。`SaveManager.cloud` 提供同名方法,显式禁用本地回退。
|
|
177
|
-
|
|
178
|
-
用户要的是**云存档**时:`result === 'OK'` 且 `source === 'local'` 只说明本机写下了,**不能**当成云端已通。这是身份没挂上时最容易误判的地方——排行榜会显示暂不可用,存档会假装成功。独立运行、未登录访客本来就会走本机,那种情况才是预期的 `local`。
|
|
179
|
-
|
|
180
|
-
**手 Q / 慢身份与云存档:** 身份与排行共用同一套 `init()`。`load`/`save` 会等待身份初始化,等待结束仍未就绪时会走本地回退(`OK` + `local`),看起来像云同步成功。因此:① 装了 `save` 同样用 `initTimeoutMs: 20000`;② 首次云读档在 `whenReady()` 后确认 `isReady()` 为真再执行,或监听 `state-change` 变为 `active` 后再 `load` 一次并重建界面;③ 写入后检查 `source === 'cloud'`,不是就提示「仅保存在本机」,不要当云成功。重试云读写前先确认身份就绪;仍为 `noop` 时等待迟到的 `active` 或由玩家重新加载游戏,重复 `whenReady()` 不会重新换票。离线写入不会因此自动上传。
|
|
181
|
-
|
|
182
|
-
本地存储按游戏与玩家隔离;独立运行按游戏 URL 目录隔离,也可通过 `createSaveManager({ localNamespace })` 指定。匿名独立存档不自动并入后来登录的账号,离线写入不会在恢复网络时自动上传。`source: 'local'` 表示只保存在本机;localStorage 被禁用、损坏或空间不足时返回失败,不以临时内存冒充持久化成功。
|
|
183
|
-
|
|
184
|
-
## 生命周期与排错
|
|
185
|
-
|
|
186
|
-
在关卡结束、存档按钮、返回菜单等页面仍存活的检查点调用并等待 `flush()`。页面卸载不能保证 HTTP 完成,不依赖 `beforeunload` 抢救写入。项目入口独立管理服务的 HMR 清理,服务 `dispose()` / pagehide 取消身份监听、请求和关联存档计时器;预览桥 `dispose()` 不负责服务;身份切换时旧队列结果为 `PLATFORM_UNAVAILABLE`,不会写入新账号。
|
|
187
|
-
|
|
188
|
-
完整类型见固定版本的 `platform-service.d.mts`、`leaderboard.d.mts`、`save.d.mts`。需要独立实例或测试注入时使用 `createPlatformService`、`createLeaderboard`、`createSaveManager`;默认游戏使用上述单例即可。
|
|
189
|
-
|
|
190
|
-
实现对齐 Web 仓库的 `docs/leaderboard-skill-protocol.md`、`docs/cloud-save-skill-protocol.md` 与 `GamePage.vue` / `RightPanel.vue` 的宿主消息。仓库测试使用模拟网关验证协议,不等同于生产账号联调;真实在线功能仍需要宿主下发有效身份且对应后端服务可用。
|