@craft_eco/craft-mcp 0.1.30 → 0.1.32
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 +12 -10
- package/bin/craft-mcp.mjs +6 -3
- package/dist-server/game-workflow/check.mjs +35 -13
- package/dist-server/game-workflow/context-state.mjs +9 -8
- package/dist-server/game-workflow/draft-archive.mjs +14 -5
- package/dist-server/game-workflow/draft-uploads.mjs +22 -9
- package/dist-server/game-workflow/local-context.mjs +62 -62
- package/dist-server/game-workflow/project-context.mjs +49 -11
- package/dist-server/game-workflow/project-install.mjs +81 -0
- package/dist-server/game-workflow/projects.mjs +31 -3
- package/dist-server/game-workflow/upload-security-policy.mjs +241 -0
- package/dist-server/game-workflow/upload-security.mjs +41 -0
- package/dist-server/integrations/config.mjs +20 -3
- package/dist-server/integrations/connect.mjs +15 -3
- package/dist-server/integrations/dsh-config.mjs +2 -2
- package/dist-server/integrations/files.mjs +54 -54
- package/dist-server/integrations/host-config-scope.mjs +16 -0
- package/dist-server/integrations/host-reload.mjs +6 -0
- package/dist-server/integrations/hosts.mjs +44 -6
- package/dist-server/integrations/install.mjs +193 -79
- package/dist-server/integrations/installation-state.mjs +1 -0
- package/dist-server/integrations/installation-transaction.mjs +27 -0
- package/dist-server/integrations/jsonc-config.mjs +56 -0
- package/dist-server/integrations/opencode-config.mjs +94 -0
- package/dist-server/integrations/project-setup.mjs +206 -0
- package/dist-server/integrations/registration-identity.mjs +15 -0
- package/dist-server/integrations/runtime-candidate.mjs +103 -0
- package/dist-server/integrations/runtime-gc.mjs +131 -35
- package/dist-server/integrations/updates.mjs +114 -41
- package/dist-server/launcher.mjs +8 -1
- package/dist-server/mcp/server.mjs +47 -21
- package/dist-server/mcp/update-session.mjs +88 -10
- package/package.json +5 -2
- package/resources/context-filter-report.json +121 -1
- package/resources/craft-create/SKILL.md +2 -0
- package/resources/craft-update/SKILL.md +2 -0
- package/resources/targets/claude/js/context-filter-report.json +1 -1
- package/resources/targets/claude/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/claude/js/js/bundle.json +5 -5
- package/resources/targets/claude/js/target.json +1 -1
- package/resources/targets/claude/js3d/context-filter-report.json +1 -1
- package/resources/targets/claude/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/claude/js3d/js3d/bundle.json +6 -6
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/claude/js3d/target.json +1 -1
- package/resources/targets/codebuddy/js/context-filter-report.json +1 -1
- package/resources/targets/codebuddy/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/codebuddy/js/js/bundle.json +5 -5
- package/resources/targets/codebuddy/js/target.json +1 -1
- package/resources/targets/codebuddy/js3d/context-filter-report.json +1 -1
- package/resources/targets/codebuddy/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/codebuddy/js3d/js3d/bundle.json +6 -6
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/codebuddy/js3d/target.json +1 -1
- package/resources/targets/codex/js/context-filter-report.json +1 -1
- package/resources/targets/codex/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/codex/js/js/bundle.json +5 -5
- package/resources/targets/codex/js/target.json +1 -1
- package/resources/targets/codex/js3d/context-filter-report.json +1 -1
- package/resources/targets/codex/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/codex/js3d/js3d/bundle.json +6 -6
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/codex/js3d/target.json +1 -1
- package/resources/targets/comate/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/comate/js/context-filter-report.json +27 -0
- package/resources/targets/comate/js/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/comate/js/craft-game-maker/js.md +10 -0
- package/resources/targets/comate/js/js/bundle.json +97 -0
- package/resources/targets/comate/js/js/context/AGENTS.md +29 -0
- package/resources/targets/comate/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/comate/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/comate/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/comate/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/comate/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/comate/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/comate/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/comate/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/comate/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/comate/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/comate/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/comate/js/js/context/skills/index.json +19 -0
- package/resources/targets/comate/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/comate/js/js/project/README.md +7 -0
- package/resources/targets/comate/js/js/project/configs/assets.json +1 -0
- package/resources/targets/comate/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/comate/js/js/project/configs/game.json +3 -0
- package/resources/targets/comate/js/js/project/game-runtime.json +7 -0
- package/resources/targets/comate/js/js/project/game.config.json +7 -0
- package/resources/targets/comate/js/js/project/index.html +20 -0
- package/resources/targets/comate/js/js/project/package.json +22 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/comate/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/comate/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/comate/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/comate/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/comate/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/comate/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/comate/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/comate/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/comate/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/comate/js/js/project/src/main.ts +87 -0
- package/resources/targets/comate/js/js/project/src/platform.ts +2 -0
- package/resources/targets/comate/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/comate/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/comate/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/comate/js/js/project/src/style.css +294 -0
- package/resources/targets/comate/js/js/project/tsconfig.json +20 -0
- package/resources/targets/comate/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/comate/js/js/project/vite.config.ts +5 -0
- package/resources/targets/comate/js/recovery.md +17 -0
- package/resources/targets/comate/js/target.json +61 -0
- package/resources/targets/comate/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/comate/js3d/context-filter-report.json +27 -0
- package/resources/targets/comate/js3d/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/comate/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/comate/js3d/js3d/bundle.json +108 -0
- package/resources/targets/comate/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/comate/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/comate/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/comate/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/comate/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/comate/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/comate/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/comate/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/comate/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/comate/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/comate/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/comate/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/comate/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/comate/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/comate/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/comate/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/comate/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/comate/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/comate/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/comate/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/comate/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/comate/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/comate/js3d/js3d/project/README.md +7 -0
- package/resources/targets/comate/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/comate/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/comate/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/comate/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/comate/js3d/js3d/project/index.html +12 -0
- package/resources/targets/comate/js3d/js3d/project/package.json +23 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/comate/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/comate/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/comate/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/comate/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/comate/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/comate/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/comate/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/comate/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/comate/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/comate/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/comate/js3d/recovery.md +17 -0
- package/resources/targets/comate/js3d/target.json +60 -0
- package/resources/targets/cursor/js/context-filter-report.json +1 -1
- package/resources/targets/cursor/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/cursor/js/js/bundle.json +5 -5
- package/resources/targets/cursor/js/target.json +1 -1
- package/resources/targets/cursor/js3d/context-filter-report.json +1 -1
- package/resources/targets/cursor/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/cursor/js3d/js3d/bundle.json +6 -6
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/cursor/js3d/target.json +1 -1
- package/resources/targets/dsh/js/context-filter-report.json +1 -1
- package/resources/targets/dsh/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/dsh/js/js/bundle.json +5 -5
- package/resources/targets/dsh/js/target.json +1 -1
- package/resources/targets/dsh/js3d/context-filter-report.json +1 -1
- package/resources/targets/dsh/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/dsh/js3d/js3d/bundle.json +6 -6
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/dsh/js3d/target.json +1 -1
- package/resources/targets/index.json +104 -32
- package/resources/targets/kimi/js/context-filter-report.json +1 -1
- package/resources/targets/kimi/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/kimi/js/js/bundle.json +5 -5
- package/resources/targets/kimi/js/target.json +1 -1
- package/resources/targets/kimi/js3d/context-filter-report.json +1 -1
- package/resources/targets/kimi/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/kimi/js3d/js3d/bundle.json +6 -6
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/kimi/js3d/target.json +1 -1
- package/resources/targets/opencode/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/opencode/js/context-filter-report.json +27 -0
- package/resources/targets/opencode/js/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/opencode/js/craft-game-maker/js.md +10 -0
- package/resources/targets/opencode/js/js/bundle.json +97 -0
- package/resources/targets/opencode/js/js/context/AGENTS.md +29 -0
- package/resources/targets/opencode/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/opencode/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/opencode/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/opencode/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/opencode/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/opencode/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/opencode/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/opencode/js/js/context/skills/index.json +19 -0
- package/resources/targets/opencode/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/opencode/js/js/project/README.md +7 -0
- package/resources/targets/opencode/js/js/project/configs/assets.json +1 -0
- package/resources/targets/opencode/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/opencode/js/js/project/configs/game.json +3 -0
- package/resources/targets/opencode/js/js/project/game-runtime.json +7 -0
- package/resources/targets/opencode/js/js/project/game.config.json +7 -0
- package/resources/targets/opencode/js/js/project/index.html +20 -0
- package/resources/targets/opencode/js/js/project/package.json +22 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/opencode/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/opencode/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/opencode/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/opencode/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/opencode/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/opencode/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/opencode/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/opencode/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/opencode/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/opencode/js/js/project/src/main.ts +87 -0
- package/resources/targets/opencode/js/js/project/src/platform.ts +2 -0
- package/resources/targets/opencode/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/opencode/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/opencode/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/opencode/js/js/project/src/style.css +294 -0
- package/resources/targets/opencode/js/js/project/tsconfig.json +20 -0
- package/resources/targets/opencode/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/opencode/js/js/project/vite.config.ts +5 -0
- package/resources/targets/opencode/js/recovery.md +17 -0
- package/resources/targets/opencode/js/target.json +61 -0
- package/resources/targets/opencode/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/opencode/js3d/context-filter-report.json +27 -0
- package/resources/targets/opencode/js3d/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/opencode/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/opencode/js3d/js3d/bundle.json +108 -0
- package/resources/targets/opencode/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/opencode/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/opencode/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/opencode/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/opencode/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/opencode/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/opencode/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/opencode/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/opencode/js3d/js3d/project/README.md +7 -0
- package/resources/targets/opencode/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/opencode/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/opencode/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/opencode/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/opencode/js3d/js3d/project/index.html +12 -0
- package/resources/targets/opencode/js3d/js3d/project/package.json +23 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/opencode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/opencode/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/opencode/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/opencode/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/opencode/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/opencode/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/opencode/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/opencode/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/opencode/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/opencode/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/opencode/js3d/recovery.md +17 -0
- package/resources/targets/opencode/js3d/target.json +60 -0
- package/resources/targets/qoder/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/qoder/js/context-filter-report.json +27 -0
- package/resources/targets/qoder/js/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/qoder/js/craft-game-maker/js.md +10 -0
- package/resources/targets/qoder/js/js/bundle.json +97 -0
- package/resources/targets/qoder/js/js/context/AGENTS.md +31 -0
- package/resources/targets/qoder/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/qoder/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/qoder/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/qoder/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/qoder/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/qoder/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/qoder/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder/js/js/context/skills/index.json +19 -0
- package/resources/targets/qoder/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/qoder/js/js/project/README.md +7 -0
- package/resources/targets/qoder/js/js/project/configs/assets.json +1 -0
- package/resources/targets/qoder/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/qoder/js/js/project/configs/game.json +3 -0
- package/resources/targets/qoder/js/js/project/game-runtime.json +7 -0
- package/resources/targets/qoder/js/js/project/game.config.json +7 -0
- package/resources/targets/qoder/js/js/project/index.html +20 -0
- package/resources/targets/qoder/js/js/project/package.json +22 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/qoder/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/qoder/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/qoder/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/qoder/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/qoder/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/qoder/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/qoder/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/qoder/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/qoder/js/js/project/src/main.ts +87 -0
- package/resources/targets/qoder/js/js/project/src/platform.ts +2 -0
- package/resources/targets/qoder/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/qoder/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/qoder/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/qoder/js/js/project/src/style.css +294 -0
- package/resources/targets/qoder/js/js/project/tsconfig.json +20 -0
- package/resources/targets/qoder/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/qoder/js/js/project/vite.config.ts +5 -0
- package/resources/targets/qoder/js/recovery.md +17 -0
- package/resources/targets/qoder/js/target.json +61 -0
- package/resources/targets/qoder/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/qoder/js3d/context-filter-report.json +27 -0
- package/resources/targets/qoder/js3d/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/qoder/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/qoder/js3d/js3d/bundle.json +108 -0
- package/resources/targets/qoder/js3d/js3d/context/AGENTS.md +32 -0
- package/resources/targets/qoder/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/qoder/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/qoder/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/qoder/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/qoder/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/qoder/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/qoder/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/qoder/js3d/js3d/project/README.md +7 -0
- package/resources/targets/qoder/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/qoder/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/qoder/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/qoder/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/qoder/js3d/js3d/project/index.html +12 -0
- package/resources/targets/qoder/js3d/js3d/project/package.json +23 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/qoder/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/qoder/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/qoder/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/qoder/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/qoder/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/qoder/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/qoder/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/qoder/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/qoder/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/qoder/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/qoder/js3d/recovery.md +17 -0
- package/resources/targets/qoder/js3d/target.json +60 -0
- package/resources/targets/qoder-cn/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/qoder-cn/js/context-filter-report.json +27 -0
- package/resources/targets/qoder-cn/js/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/qoder-cn/js/craft-game-maker/js.md +10 -0
- package/resources/targets/qoder-cn/js/js/bundle.json +97 -0
- package/resources/targets/qoder-cn/js/js/context/AGENTS.md +31 -0
- package/resources/targets/qoder-cn/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/qoder-cn/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/qoder-cn/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/qoder-cn/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/qoder-cn/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/qoder-cn/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/qoder-cn/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder-cn/js/js/context/skills/index.json +19 -0
- package/resources/targets/qoder-cn/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/qoder-cn/js/js/project/README.md +7 -0
- package/resources/targets/qoder-cn/js/js/project/configs/assets.json +1 -0
- package/resources/targets/qoder-cn/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/qoder-cn/js/js/project/configs/game.json +3 -0
- package/resources/targets/qoder-cn/js/js/project/game-runtime.json +7 -0
- package/resources/targets/qoder-cn/js/js/project/game.config.json +7 -0
- package/resources/targets/qoder-cn/js/js/project/index.html +20 -0
- package/resources/targets/qoder-cn/js/js/project/package.json +22 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/qoder-cn/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/qoder-cn/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/qoder-cn/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/qoder-cn/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/qoder-cn/js/js/project/src/main.ts +87 -0
- package/resources/targets/qoder-cn/js/js/project/src/platform.ts +2 -0
- package/resources/targets/qoder-cn/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/qoder-cn/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/qoder-cn/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/qoder-cn/js/js/project/src/style.css +294 -0
- package/resources/targets/qoder-cn/js/js/project/tsconfig.json +20 -0
- package/resources/targets/qoder-cn/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/qoder-cn/js/js/project/vite.config.ts +5 -0
- package/resources/targets/qoder-cn/js/recovery.md +17 -0
- package/resources/targets/qoder-cn/js/target.json +61 -0
- package/resources/targets/qoder-cn/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/qoder-cn/js3d/context-filter-report.json +27 -0
- package/resources/targets/qoder-cn/js3d/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/qoder-cn/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/qoder-cn/js3d/js3d/bundle.json +108 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/AGENTS.md +32 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/README.md +7 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/index.html +12 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/package.json +23 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/qoder-cn/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/qoder-cn/js3d/recovery.md +17 -0
- package/resources/targets/qoder-cn/js3d/target.json +60 -0
- package/resources/targets/qwen/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/qwen/js/context-filter-report.json +27 -0
- package/resources/targets/qwen/js/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/qwen/js/craft-game-maker/js.md +10 -0
- package/resources/targets/qwen/js/js/bundle.json +97 -0
- package/resources/targets/qwen/js/js/context/AGENTS.md +29 -0
- package/resources/targets/qwen/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/qwen/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/qwen/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/qwen/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/qwen/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/qwen/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/qwen/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/qwen/js/js/context/skills/index.json +19 -0
- package/resources/targets/qwen/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/qwen/js/js/project/README.md +7 -0
- package/resources/targets/qwen/js/js/project/configs/assets.json +1 -0
- package/resources/targets/qwen/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/qwen/js/js/project/configs/game.json +3 -0
- package/resources/targets/qwen/js/js/project/game-runtime.json +7 -0
- package/resources/targets/qwen/js/js/project/game.config.json +7 -0
- package/resources/targets/qwen/js/js/project/index.html +20 -0
- package/resources/targets/qwen/js/js/project/package.json +22 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/qwen/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/qwen/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/qwen/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/qwen/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/qwen/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/qwen/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/qwen/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/qwen/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/qwen/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/qwen/js/js/project/src/main.ts +87 -0
- package/resources/targets/qwen/js/js/project/src/platform.ts +2 -0
- package/resources/targets/qwen/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/qwen/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/qwen/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/qwen/js/js/project/src/style.css +294 -0
- package/resources/targets/qwen/js/js/project/tsconfig.json +20 -0
- package/resources/targets/qwen/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/qwen/js/js/project/vite.config.ts +5 -0
- package/resources/targets/qwen/js/recovery.md +17 -0
- package/resources/targets/qwen/js/target.json +61 -0
- package/resources/targets/qwen/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/qwen/js3d/context-filter-report.json +27 -0
- package/resources/targets/qwen/js3d/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/qwen/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/qwen/js3d/js3d/bundle.json +108 -0
- package/resources/targets/qwen/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/qwen/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/qwen/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/qwen/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/qwen/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/qwen/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/qwen/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/qwen/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/qwen/js3d/js3d/project/README.md +7 -0
- package/resources/targets/qwen/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/qwen/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/qwen/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/qwen/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/qwen/js3d/js3d/project/index.html +12 -0
- package/resources/targets/qwen/js3d/js3d/project/package.json +23 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/qwen/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/qwen/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/qwen/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/qwen/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/qwen/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/qwen/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/qwen/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/qwen/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/qwen/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/qwen/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/qwen/js3d/recovery.md +17 -0
- package/resources/targets/qwen/js3d/target.json +60 -0
- package/resources/targets/trae/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/trae/js/context-filter-report.json +27 -0
- package/resources/targets/trae/js/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/trae/js/craft-game-maker/js.md +10 -0
- package/resources/targets/trae/js/js/bundle.json +97 -0
- package/resources/targets/trae/js/js/context/AGENTS.md +29 -0
- package/resources/targets/trae/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/trae/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/trae/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/trae/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/trae/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/trae/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/trae/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/trae/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/trae/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/trae/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/trae/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/trae/js/js/context/skills/index.json +19 -0
- package/resources/targets/trae/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/trae/js/js/project/README.md +7 -0
- package/resources/targets/trae/js/js/project/configs/assets.json +1 -0
- package/resources/targets/trae/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/trae/js/js/project/configs/game.json +3 -0
- package/resources/targets/trae/js/js/project/game-runtime.json +7 -0
- package/resources/targets/trae/js/js/project/game.config.json +7 -0
- package/resources/targets/trae/js/js/project/index.html +20 -0
- package/resources/targets/trae/js/js/project/package.json +22 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/trae/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/trae/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/trae/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/trae/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/trae/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/trae/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/trae/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/trae/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/trae/js/js/project/src/main.ts +87 -0
- package/resources/targets/trae/js/js/project/src/platform.ts +2 -0
- package/resources/targets/trae/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/trae/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/trae/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/trae/js/js/project/src/style.css +294 -0
- package/resources/targets/trae/js/js/project/tsconfig.json +20 -0
- package/resources/targets/trae/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/trae/js/js/project/vite.config.ts +5 -0
- package/resources/targets/trae/js/recovery.md +17 -0
- package/resources/targets/trae/js/target.json +61 -0
- package/resources/targets/trae/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/trae/js3d/context-filter-report.json +27 -0
- package/resources/targets/trae/js3d/craft-game-maker/SKILL.md +72 -0
- package/resources/targets/trae/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/trae/js3d/js3d/bundle.json +108 -0
- package/resources/targets/trae/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/trae/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/trae/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/trae/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/trae/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/trae/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/trae/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/trae/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/trae/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/trae/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/trae/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/trae/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/trae/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/trae/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/trae/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/trae/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/trae/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/trae/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/trae/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/trae/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/trae/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/trae/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/trae/js3d/js3d/project/README.md +7 -0
- package/resources/targets/trae/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/trae/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/trae/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/trae/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/trae/js3d/js3d/project/index.html +12 -0
- package/resources/targets/trae/js3d/js3d/project/package.json +23 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/trae/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/trae/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/trae/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/trae/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/trae/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/trae/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/trae/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/trae/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/trae/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/trae/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/trae/js3d/recovery.md +17 -0
- package/resources/targets/trae/js3d/target.json +60 -0
- package/resources/targets/workbuddy/js/context-filter-report.json +1 -1
- package/resources/targets/workbuddy/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/workbuddy/js/js/bundle.json +5 -5
- package/resources/targets/workbuddy/js/target.json +1 -1
- package/resources/targets/workbuddy/js3d/context-filter-report.json +1 -1
- package/resources/targets/workbuddy/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/workbuddy/js3d/js3d/bundle.json +6 -6
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/workbuddy/js3d/target.json +1 -1
- package/resources/targets/zcode/js/context-filter-report.json +1 -1
- package/resources/targets/zcode/js/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/zcode/js/js/bundle.json +5 -5
- package/resources/targets/zcode/js/target.json +1 -1
- package/resources/targets/zcode/js3d/context-filter-report.json +1 -1
- package/resources/targets/zcode/js3d/craft-game-maker/SKILL.md +3 -3
- package/resources/targets/zcode/js3d/js3d/bundle.json +6 -6
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/zcode/js3d/target.json +1 -1
- package/vendor/craft-runtime/SOURCE.json +1 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { apiBase } from './shared.mjs';
|
|
2
|
+
|
|
3
|
+
const EXCHANGE_PATH = '/api/auth/qq-game-session';
|
|
4
|
+
const EXCHANGE_TIMEOUT_MS = 10_000;
|
|
5
|
+
const BRIDGE_WAIT_MS = 10_000;
|
|
6
|
+
const BRIDGE_POLL_MS = 50;
|
|
7
|
+
const DEFAULT_EXPIRES_IN_S = 1800;
|
|
8
|
+
/** session_token cannot be renewed; a fresh login() + exchange runs this long before expiry. */
|
|
9
|
+
const REFRESH_LEAD_MS = 120_000;
|
|
10
|
+
const MIN_REFRESH_DELAY_MS = 30_000;
|
|
11
|
+
/** Stops a burst of 401s from turning into a burst of login() + exchange round trips. */
|
|
12
|
+
const RETRY_COOLDOWN_MS = 5_000;
|
|
13
|
+
|
|
14
|
+
/** `api` comes from the URL, so it is the only thing deciding where game_token is sent. */
|
|
15
|
+
const QQ_API_HOST = /(^|\.)craft\.qq\.com$/;
|
|
16
|
+
const LOOPBACK = new Set(['localhost', '127.0.0.1', '[::1]']);
|
|
17
|
+
|
|
18
|
+
const text = value => (typeof value === 'string' ? value.trim() : '');
|
|
19
|
+
|
|
20
|
+
/** Hosts disagree on naming (`game_token` vs `gameToken`); snake_case wins when both are present. */
|
|
21
|
+
const pick = (source, snake, camel) => {
|
|
22
|
+
const value = source?.[snake];
|
|
23
|
+
return value == null || value === '' ? source?.[camel] : value;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const trustedApi = value => {
|
|
27
|
+
const api = apiBase(value);
|
|
28
|
+
if (!api) return null;
|
|
29
|
+
const { hostname } = new URL(api);
|
|
30
|
+
return QQ_API_HOST.test(hostname) || LOOPBACK.has(hostname) ? api : null;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
class QqSessionError extends Error {
|
|
34
|
+
constructor(reason, { status = 0, permanent = false } = {}) {
|
|
35
|
+
super(reason);
|
|
36
|
+
this.status = status;
|
|
37
|
+
this.permanent = permanent;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Craft appends `api`, `app_id`, `qq_test` to the game URL when syncing to QQ; `qq_test` alone marks the QQ host. */
|
|
42
|
+
export function readQqRuntime(win) {
|
|
43
|
+
const search = win?.location?.search;
|
|
44
|
+
const params = new URLSearchParams(typeof search === 'string' ? search : '');
|
|
45
|
+
if (!params.has('qq_test')) return null;
|
|
46
|
+
const api = trustedApi(text(params.get('api')));
|
|
47
|
+
const appId = text(params.get('app_id'));
|
|
48
|
+
const flag = text(params.get('qq_test'));
|
|
49
|
+
const qqTest = flag === '0' || flag === '1' ? Number(flag) : null;
|
|
50
|
+
if (api && appId && qqTest !== null) return { api, appId, qqTest };
|
|
51
|
+
const problems = [!api && 'api (need https *.craft.qq.com, no query/hash)', !appId && 'app_id', qqTest === null && 'qq_test (need 0 or 1)'].filter(Boolean);
|
|
52
|
+
return { invalid: true, reason: `missing or invalid: ${problems.join(', ')}` };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** The SDK picks bridge or mock once, at evaluation time, so it must load after the host bridge exists. */
|
|
56
|
+
export async function loadQqSdk(win) {
|
|
57
|
+
const deadline = Date.now() + BRIDGE_WAIT_MS;
|
|
58
|
+
while (!win?.qqAiGameSdk && typeof win?.__qqAiGameBridge?.invoke !== 'function') {
|
|
59
|
+
if (Date.now() >= deadline) return null;
|
|
60
|
+
await new Promise(resolve => setTimeout(resolve, BRIDGE_POLL_MS));
|
|
61
|
+
}
|
|
62
|
+
if (!win?.qqAiGameSdk) await import('./qq-ai-game-sdk.min.js');
|
|
63
|
+
return win?.qqAiGameSdk ?? null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const sessionData = payload => {
|
|
67
|
+
if (typeof payload?.session_token === 'string') return payload;
|
|
68
|
+
if (payload?.code === 0 && payload.data && typeof payload.data === 'object') return payload.data;
|
|
69
|
+
return null;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export function createQqSession({ win, runtime, loadSdk = loadQqSdk, log, apply, fail, now = Date.now }) {
|
|
73
|
+
const fetchImpl = win?.fetch ? win.fetch.bind(win) : globalThis.fetch;
|
|
74
|
+
let sdk = null, stopped = false, inflight = null, timer, controller = null, expiresAt = 0, attemptedAt = 0;
|
|
75
|
+
|
|
76
|
+
const resolveSdk = async () => {
|
|
77
|
+
if (!sdk) {
|
|
78
|
+
try {
|
|
79
|
+
sdk = await loadSdk(win);
|
|
80
|
+
} catch {
|
|
81
|
+
throw new QqSessionError('sdk load failed');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (!sdk || typeof sdk.login !== 'function') throw new QqSessionError('sdk unavailable', { permanent: true });
|
|
85
|
+
if (sdk.isMock) throw new QqSessionError('sdk in mock mode', { permanent: true });
|
|
86
|
+
return sdk;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const login = async () => {
|
|
90
|
+
let result;
|
|
91
|
+
const ready = await resolveSdk();
|
|
92
|
+
if (stopped) throw new QqSessionError('disposed');
|
|
93
|
+
try {
|
|
94
|
+
result = await ready.login();
|
|
95
|
+
} catch (error) {
|
|
96
|
+
throw new QqSessionError(`login ${text(error?.code) || 'failed'}`);
|
|
97
|
+
}
|
|
98
|
+
const gopenid = text(result?.gopenid);
|
|
99
|
+
const gameToken = text(pick(result, 'game_token', 'gameToken'));
|
|
100
|
+
if (!gopenid || !gameToken) throw new QqSessionError('login returned no credentials');
|
|
101
|
+
return { gopenid, gameToken };
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const exchange = async () => {
|
|
105
|
+
const { gopenid, gameToken } = await login();
|
|
106
|
+
if (stopped) throw new QqSessionError('disposed');
|
|
107
|
+
const request = new AbortController();
|
|
108
|
+
controller = request;
|
|
109
|
+
const timeout = setTimeout(() => request.abort(), EXCHANGE_TIMEOUT_MS);
|
|
110
|
+
try {
|
|
111
|
+
const response = await fetchImpl(`${runtime.api}${EXCHANGE_PATH}`, {
|
|
112
|
+
method: 'POST',
|
|
113
|
+
headers: { 'Content-Type': 'application/json' },
|
|
114
|
+
body: JSON.stringify({ app_id: runtime.appId, qq_test: runtime.qqTest, game_token: gameToken, gopenid }),
|
|
115
|
+
signal: request.signal,
|
|
116
|
+
redirect: 'error',
|
|
117
|
+
credentials: 'omit',
|
|
118
|
+
});
|
|
119
|
+
if (response.status !== 200) {
|
|
120
|
+
const permanent = response.status === 400 || response.status === 403 || response.status === 503;
|
|
121
|
+
throw new QqSessionError(`exchange http ${response.status}`, { status: response.status, permanent });
|
|
122
|
+
}
|
|
123
|
+
const data = sessionData(await response.json());
|
|
124
|
+
const token = text(data?.session_token);
|
|
125
|
+
const playerId = text(data?.player_id);
|
|
126
|
+
if (!token || !playerId) throw new QqSessionError('exchange response malformed');
|
|
127
|
+
const ttl = Number(pick(data, 'expires_in', 'expiresIn'));
|
|
128
|
+
const expiresIn = ttl > 0 ? ttl : DEFAULT_EXPIRES_IN_S;
|
|
129
|
+
const playerName = text(data.player_name) || `用户${playerId.slice(-6)}`;
|
|
130
|
+
return { identity: { api: runtime.api, token, appId: runtime.appId, playerId, playerName }, expiresIn };
|
|
131
|
+
} catch (error) {
|
|
132
|
+
if (error instanceof QqSessionError) throw error;
|
|
133
|
+
throw new QqSessionError('exchange network error');
|
|
134
|
+
} finally {
|
|
135
|
+
clearTimeout(timeout);
|
|
136
|
+
if (controller === request) controller = null;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
const attempt = async () => {
|
|
141
|
+
try {
|
|
142
|
+
return await exchange();
|
|
143
|
+
} catch (error) {
|
|
144
|
+
if (error.status !== 401 || stopped) throw error;
|
|
145
|
+
return exchange();
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const schedule = expiresIn => {
|
|
150
|
+
expiresAt = now() + expiresIn * 1000;
|
|
151
|
+
clearTimeout(timer);
|
|
152
|
+
const delay = Math.max(expiresIn * 1000 - REFRESH_LEAD_MS, MIN_REFRESH_DELAY_MS);
|
|
153
|
+
timer = setTimeout(() => void refresh(), delay);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const refresh = () => {
|
|
157
|
+
if (stopped) return Promise.resolve(false);
|
|
158
|
+
if (inflight) return inflight;
|
|
159
|
+
inflight = (async () => {
|
|
160
|
+
try {
|
|
161
|
+
const result = await attempt();
|
|
162
|
+
if (stopped) return false;
|
|
163
|
+
schedule(result.expiresIn);
|
|
164
|
+
apply(result.identity);
|
|
165
|
+
return true;
|
|
166
|
+
} catch (error) {
|
|
167
|
+
if (stopped) return false;
|
|
168
|
+
if (error.permanent) stop();
|
|
169
|
+
fail(error.message);
|
|
170
|
+
return false;
|
|
171
|
+
} finally {
|
|
172
|
+
attemptedAt = now();
|
|
173
|
+
inflight = null;
|
|
174
|
+
}
|
|
175
|
+
})();
|
|
176
|
+
return inflight;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const coolingDown = () => attemptedAt > 0 && now() - attemptedAt < RETRY_COOLDOWN_MS;
|
|
180
|
+
|
|
181
|
+
const onVisibility = () => {
|
|
182
|
+
if (stopped || inflight || win?.document?.visibilityState !== 'visible' || coolingDown()) return;
|
|
183
|
+
if (expiresAt && now() < expiresAt - REFRESH_LEAD_MS) return;
|
|
184
|
+
void refresh();
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
function stop() {
|
|
188
|
+
stopped = true;
|
|
189
|
+
clearTimeout(timer);
|
|
190
|
+
controller?.abort();
|
|
191
|
+
win?.document?.removeEventListener?.('visibilitychange', onVisibility);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
start() {
|
|
196
|
+
win?.document?.addEventListener?.('visibilitychange', onVisibility);
|
|
197
|
+
log('qq session exchanging');
|
|
198
|
+
return refresh();
|
|
199
|
+
},
|
|
200
|
+
/** Resolves true once a new session_token is in place; shares an exchange already in flight. */
|
|
201
|
+
reauthenticate() {
|
|
202
|
+
if (inflight) return refresh();
|
|
203
|
+
if (stopped || coolingDown()) return Promise.resolve(false);
|
|
204
|
+
return refresh();
|
|
205
|
+
},
|
|
206
|
+
dispose: stop,
|
|
207
|
+
};
|
|
208
|
+
}
|
package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const unavailable = () => ({ ok: false, code: 'PLATFORM_UNAVAILABLE', message: '当前环境不支持平台服务' });
|
|
2
|
+
|
|
3
|
+
export const failure = (code = 'INTERNAL_ERROR', message = '服务暂不可用,请稍后重试') => ({ ok: false, code, message });
|
|
4
|
+
|
|
5
|
+
export const duration = (value, fallback) => (Number.isFinite(value) && value >= 0 ? Math.min(value, 60_000) : fallback);
|
|
6
|
+
|
|
7
|
+
const httpOrigin = value => {
|
|
8
|
+
try {
|
|
9
|
+
const url = new URL(value);
|
|
10
|
+
return /^https?:$/.test(url.protocol) ? url.origin : null;
|
|
11
|
+
} catch {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function parentOrigin(win, explicit) {
|
|
17
|
+
if (explicit && explicit !== '*') return httpOrigin(explicit);
|
|
18
|
+
const referrer = httpOrigin(win?.document?.referrer);
|
|
19
|
+
if (referrer) return referrer;
|
|
20
|
+
try {
|
|
21
|
+
return httpOrigin(win?.parent?.location?.origin);
|
|
22
|
+
} catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** HTTPS gateway base without trailing slashes; plain HTTP only for loopback hosts. */
|
|
28
|
+
export function apiBase(value) {
|
|
29
|
+
try {
|
|
30
|
+
const url = new URL(value);
|
|
31
|
+
const local = url.protocol === 'http:' && ['localhost', '127.0.0.1', '[::1]'].includes(url.hostname);
|
|
32
|
+
if ((url.protocol !== 'https:' && !local) || url.username || url.password || url.search || url.hash) return null;
|
|
33
|
+
return url.href.replace(/\/+$/, '');
|
|
34
|
+
} catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/** Paint <video> current frames onto a screenshot canvas. SVG foreignObject cannot rasterize video. */
|
|
2
|
+
|
|
3
|
+
const HAVE_CURRENT_DATA = 2;
|
|
4
|
+
|
|
5
|
+
function messageOf(error) {
|
|
6
|
+
try { return error?.message || String(error); } catch { return '[unreadable error]'; }
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function queryVideos(root) {
|
|
10
|
+
if (!root) return [];
|
|
11
|
+
const nested = typeof root.querySelectorAll === 'function' ? [...root.querySelectorAll('video')] : [];
|
|
12
|
+
return root.tagName === 'VIDEO' ? [root, ...nested] : nested;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* VIDEO 不当 DOM 快照根(foreignObject 拷不走当前帧,空壳会盖住 paint 结果)。
|
|
17
|
+
* 除 UI roots 外还扫 canvas 父节点和 document.body,才能画到与 canvas 平级的 overlay。
|
|
18
|
+
*/
|
|
19
|
+
export function collectPaintVideos(canvas, roots) {
|
|
20
|
+
const seen = new Set();
|
|
21
|
+
const videos = [];
|
|
22
|
+
const add = (root) => {
|
|
23
|
+
for (const video of queryVideos(root)) {
|
|
24
|
+
if (seen.has(video)) continue;
|
|
25
|
+
seen.add(video);
|
|
26
|
+
videos.push(video);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
for (const root of roots) add(root);
|
|
30
|
+
add(canvas?.parentElement);
|
|
31
|
+
add(canvas?.ownerDocument?.body);
|
|
32
|
+
return videos;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Map object-fit into a drawImage source crop and dest offset inside the element box.
|
|
37
|
+
* Dest sizes are the element's box in destination pixels; source sizes are videoWidth/Height.
|
|
38
|
+
*/
|
|
39
|
+
export function objectFitDrawRect(videoWidth, videoHeight, destWidth, destHeight, objectFit = 'contain') {
|
|
40
|
+
const vw = videoWidth;
|
|
41
|
+
const vh = videoHeight;
|
|
42
|
+
const dw = destWidth;
|
|
43
|
+
const dh = destHeight;
|
|
44
|
+
if (!(vw > 0 && vh > 0 && dw > 0 && dh > 0)) return null;
|
|
45
|
+
const fit = objectFit || 'contain';
|
|
46
|
+
if (fit === 'fill') return { sx: 0, sy: 0, sw: vw, sh: vh, dx: 0, dy: 0, dw, dh };
|
|
47
|
+
if (fit === 'none' || (fit === 'scale-down' && vw <= dw && vh <= dh)) {
|
|
48
|
+
const sw = Math.min(vw, dw);
|
|
49
|
+
const sh = Math.min(vh, dh);
|
|
50
|
+
return {
|
|
51
|
+
sx: vw > dw ? (vw - dw) / 2 : 0,
|
|
52
|
+
sy: vh > dh ? (vh - dh) / 2 : 0,
|
|
53
|
+
sw, sh,
|
|
54
|
+
dx: vw > dw ? 0 : (dw - vw) / 2,
|
|
55
|
+
dy: vh > dh ? 0 : (dh - vh) / 2,
|
|
56
|
+
dw: sw, dh: sh,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
const videoRatio = vw / vh;
|
|
60
|
+
const destRatio = dw / dh;
|
|
61
|
+
if (fit === 'cover') {
|
|
62
|
+
if (videoRatio > destRatio) {
|
|
63
|
+
const sw = vh * destRatio;
|
|
64
|
+
return { sx: (vw - sw) / 2, sy: 0, sw, sh: vh, dx: 0, dy: 0, dw, dh };
|
|
65
|
+
}
|
|
66
|
+
const sh = vw / destRatio;
|
|
67
|
+
return { sx: 0, sy: (vh - sh) / 2, sw: vw, sh, dx: 0, dy: 0, dw, dh };
|
|
68
|
+
}
|
|
69
|
+
if (videoRatio > destRatio) {
|
|
70
|
+
const usedH = dw / videoRatio;
|
|
71
|
+
return { sx: 0, sy: 0, sw: vw, sh: vh, dx: 0, dy: (dh - usedH) / 2, dw, dh: usedH };
|
|
72
|
+
}
|
|
73
|
+
const usedW = dh * videoRatio;
|
|
74
|
+
return { sx: 0, sy: 0, sw: vw, sh: vh, dx: (dw - usedW) / 2, dy: 0, dw: usedW, dh };
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function unionCaptureRect(canvasRect, roots) {
|
|
78
|
+
let left = canvasRect.left;
|
|
79
|
+
let top = canvasRect.top;
|
|
80
|
+
let right = canvasRect.left + (canvasRect.width || 0);
|
|
81
|
+
let bottom = canvasRect.top + (canvasRect.height || 0);
|
|
82
|
+
for (const root of roots) {
|
|
83
|
+
if (typeof root.getBoundingClientRect !== 'function') continue;
|
|
84
|
+
const rect = root.getBoundingClientRect();
|
|
85
|
+
if (!rect.width || !rect.height) continue;
|
|
86
|
+
left = Math.min(left, rect.left);
|
|
87
|
+
top = Math.min(top, rect.top);
|
|
88
|
+
right = Math.max(right, rect.left + rect.width);
|
|
89
|
+
bottom = Math.max(bottom, rect.top + rect.height);
|
|
90
|
+
}
|
|
91
|
+
return { left, top, width: Math.max(0, right - left), height: Math.max(0, bottom - top) };
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function paintOneVideo(context, video, canvasRect, scaleX, scaleY, win, notes) {
|
|
95
|
+
if (video.hasAttribute?.('data-game-runtime-ignore')) return;
|
|
96
|
+
const style = win.getComputedStyle(video);
|
|
97
|
+
if (style.display === 'none' || style.visibility === 'hidden' || Number(style.opacity) === 0) return;
|
|
98
|
+
if (video.readyState < HAVE_CURRENT_DATA) {
|
|
99
|
+
notes.push('video overlay omitted: no current frame');
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const rect = video.getBoundingClientRect();
|
|
103
|
+
if (!rect.width || !rect.height) return;
|
|
104
|
+
const boxX = (rect.left - canvasRect.left) * scaleX;
|
|
105
|
+
const boxY = (rect.top - canvasRect.top) * scaleY;
|
|
106
|
+
const boxW = rect.width * scaleX;
|
|
107
|
+
const boxH = rect.height * scaleY;
|
|
108
|
+
const fit = objectFitDrawRect(video.videoWidth, video.videoHeight, boxW, boxH, style.objectFit);
|
|
109
|
+
if (!fit) {
|
|
110
|
+
notes.push('video overlay omitted: no current frame');
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
context.drawImage(video, fit.sx, fit.sy, fit.sw, fit.sh, boxX + fit.dx, boxY + fit.dy, fit.dw, fit.dh);
|
|
115
|
+
} catch (error) {
|
|
116
|
+
notes.push(`video overlay omitted: ${messageOf(error)}`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** Draw every visible video under `roots` or beside the canvas onto `copy`. Failures are notes; they must not fail the screenshot. */
|
|
121
|
+
export function paintVideos(copy, canvas, roots, win, notes) {
|
|
122
|
+
const videos = collectPaintVideos(canvas, roots);
|
|
123
|
+
const frame = unionCaptureRect(canvas.getBoundingClientRect(), [...roots, ...videos]);
|
|
124
|
+
const scaleX = copy.width / (frame.width || copy.width);
|
|
125
|
+
const scaleY = copy.height / (frame.height || copy.height);
|
|
126
|
+
const context = copy.getContext('2d');
|
|
127
|
+
if (!context) return;
|
|
128
|
+
for (const video of videos) {
|
|
129
|
+
paintOneVideo(context, video, frame, scaleX, scaleY, win, notes);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function queryCanvases(root) {
|
|
134
|
+
if (!root) return [];
|
|
135
|
+
const nested = typeof root.querySelectorAll === 'function' ? [...root.querySelectorAll('canvas')] : [];
|
|
136
|
+
return root.tagName === 'CANVAS' ? [root, ...nested] : nested;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* CANVAS 不当 DOM 快照根(foreignObject 拷不走像素)。跳过 connectPreview 底图。
|
|
141
|
+
* 除 UI roots 外还扫父节点和 body,才能画到与底图平级的 overlay。
|
|
142
|
+
*/
|
|
143
|
+
export function collectPaintCanvases(canvas, roots) {
|
|
144
|
+
const seen = new Set();
|
|
145
|
+
const canvases = [];
|
|
146
|
+
const add = (root) => {
|
|
147
|
+
for (const node of queryCanvases(root)) {
|
|
148
|
+
if (node === canvas || seen.has(node)) continue;
|
|
149
|
+
seen.add(node);
|
|
150
|
+
canvases.push(node);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
for (const root of roots) add(root);
|
|
154
|
+
add(canvas?.parentElement);
|
|
155
|
+
add(canvas?.ownerDocument?.body);
|
|
156
|
+
return canvases;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function paintOneCanvas(context, node, canvasRect, scaleX, scaleY, win, notes) {
|
|
160
|
+
if (node.hasAttribute?.('data-game-runtime-ignore')) return false;
|
|
161
|
+
const style = win.getComputedStyle(node);
|
|
162
|
+
if (style.display === 'none' || style.visibility === 'hidden' || Number(style.opacity) === 0) return false;
|
|
163
|
+
const rect = node.getBoundingClientRect();
|
|
164
|
+
if (!rect.width || !rect.height) return false;
|
|
165
|
+
const sw = node.width || 0;
|
|
166
|
+
const sh = node.height || 0;
|
|
167
|
+
if (!(sw > 0 && sh > 0)) {
|
|
168
|
+
notes.push('canvas overlay omitted: empty bitmap');
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
const boxX = (rect.left - canvasRect.left) * scaleX;
|
|
172
|
+
const boxY = (rect.top - canvasRect.top) * scaleY;
|
|
173
|
+
const boxW = rect.width * scaleX;
|
|
174
|
+
const boxH = rect.height * scaleY;
|
|
175
|
+
const fit = objectFitDrawRect(sw, sh, boxW, boxH, style.objectFit || 'fill');
|
|
176
|
+
if (!fit) {
|
|
177
|
+
notes.push('canvas overlay omitted: empty bitmap');
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
try {
|
|
181
|
+
context.drawImage(node, fit.sx, fit.sy, fit.sw, fit.sh, boxX + fit.dx, boxY + fit.dy, fit.dw, fit.dh);
|
|
182
|
+
return true;
|
|
183
|
+
} catch (error) {
|
|
184
|
+
notes.push(`canvas overlay omitted: ${messageOf(error)}`);
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Draw every visible extra canvas under `roots` or beside the preview canvas onto `copy`.
|
|
191
|
+
* Positioning uses the same union as the screenshot canvas (roots + videos), otherwise scale drifts.
|
|
192
|
+
*/
|
|
193
|
+
export function paintCanvases(copy, canvas, roots, win, notes) {
|
|
194
|
+
const overlays = collectPaintCanvases(canvas, roots);
|
|
195
|
+
const videos = collectPaintVideos(canvas, roots);
|
|
196
|
+
const frame = unionCaptureRect(canvas.getBoundingClientRect(), [...roots, ...videos]);
|
|
197
|
+
const scaleX = copy.width / (frame.width || copy.width);
|
|
198
|
+
const scaleY = copy.height / (frame.height || copy.height);
|
|
199
|
+
const context = copy.getContext('2d');
|
|
200
|
+
if (!context) return 0;
|
|
201
|
+
let painted = 0;
|
|
202
|
+
for (const node of overlays) {
|
|
203
|
+
if (paintOneCanvas(context, node, frame, scaleX, scaleY, win, notes)) painted += 1;
|
|
204
|
+
}
|
|
205
|
+
return painted;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* foreignObject 合成后再画额外 canvas:同层 CSS 底图仍在克隆里,先画会被盖住。
|
|
210
|
+
* 有实际绘制才重编码,避免无 overlay 时多一次 toDataURL。
|
|
211
|
+
*/
|
|
212
|
+
export function finishCanvasOverlays(copy, canvas, roots, win, notes, composite) {
|
|
213
|
+
let painted = 0;
|
|
214
|
+
try {
|
|
215
|
+
painted = paintCanvases(copy, canvas, roots, win, notes);
|
|
216
|
+
} catch (error) {
|
|
217
|
+
notes.push(`canvas overlay omitted: ${messageOf(error)}`);
|
|
218
|
+
}
|
|
219
|
+
if (!painted) return composite;
|
|
220
|
+
try {
|
|
221
|
+
const data = copy.toDataURL('image/png');
|
|
222
|
+
if (data.startsWith('data:image/')) return { ...composite, data };
|
|
223
|
+
} catch (error) {
|
|
224
|
+
notes.push(`canvas overlay omitted: ${messageOf(error)}`);
|
|
225
|
+
}
|
|
226
|
+
return composite;
|
|
227
|
+
}
|
package/resources/targets/trae/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type PlatformState = 'pending' | 'active' | 'noop';
|
|
2
|
+
export type PlatformEvent = 'state-change' | 'token-refreshed' | 'dispose';
|
|
3
|
+
export interface PlatformServiceOptions { window?: Window; targetOrigin?: string; initTimeoutMs?: number; }
|
|
4
|
+
export interface PlatformRequestOptions {
|
|
5
|
+
path: string; body?: Record<string, unknown>; timeoutMs?: number; headers?: HeadersInit;
|
|
6
|
+
/** Reject if the host identity has changed since this operation was queued. */
|
|
7
|
+
sessionId?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface PlatformResponse<T = Record<string, unknown>> { ok: boolean; code: string; message: string; data?: T; }
|
|
10
|
+
export interface PlatformService {
|
|
11
|
+
readonly disposed: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Installs the listener for the parent's `{ type: 'runtime-init' }`; when the page URL carries
|
|
14
|
+
* `qq_test` (with `api` and `app_id`) it starts QQ login + session exchange instead.
|
|
15
|
+
* Does not post to the parent or wait for host identity.
|
|
16
|
+
*/
|
|
17
|
+
init(): Promise<void>;
|
|
18
|
+
/** Waits at most initTimeoutMs. Never await before sending the game's ready message. */
|
|
19
|
+
whenReady(): Promise<void>;
|
|
20
|
+
getState(): PlatformState; isReady(): boolean;
|
|
21
|
+
/** Gateway base of the active identity (no trailing slash); '' until active. */
|
|
22
|
+
getApi(): string;
|
|
23
|
+
getAppId(): string; getPlayerId(): string; getPlayerName(): string; getSessionId(): number;
|
|
24
|
+
request<T = Record<string, unknown>>(options: PlatformRequestOptions): Promise<PlatformResponse<T>>;
|
|
25
|
+
on(event: PlatformEvent, listener: (...args: any[]) => void): () => void;
|
|
26
|
+
off(event: PlatformEvent, listener: (...args: any[]) => void): void;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
export function createPlatformService(options?: PlatformServiceOptions): PlatformService;
|
|
30
|
+
export function getPlatformService(options?: PlatformServiceOptions): PlatformService;
|
|
31
|
+
export const PlatformServiceManager: Omit<PlatformService, 'disposed'>;
|