@craft_eco/craft-mcp 0.1.28 → 0.1.29
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 +23 -17
- package/bin/craft-mcp.mjs +4 -1
- package/dist-server/game-workflow/asset-import.mjs +5 -1
- package/dist-server/game-workflow/assets.mjs +6 -2
- package/dist-server/game-workflow/bundle-files.mjs +9 -6
- package/dist-server/game-workflow/check.mjs +5 -0
- package/dist-server/game-workflow/context-state.mjs +67 -0
- package/dist-server/game-workflow/draft-uploads.mjs +3 -0
- package/dist-server/game-workflow/engines.mjs +3 -3
- package/dist-server/game-workflow/library-assets.mjs +2 -1
- package/dist-server/game-workflow/local-context.mjs +62 -0
- package/dist-server/game-workflow/native-context.mjs +289 -0
- package/dist-server/game-workflow/project-bundles.mjs +246 -129
- package/dist-server/game-workflow/project-context.mjs +183 -45
- package/dist-server/game-workflow/project-leases.mjs +101 -30
- package/dist-server/game-workflow/projects.mjs +86 -10
- package/dist-server/game-workflow/publications.mjs +5 -1
- package/dist-server/game-workflow/tasks.mjs +6 -1
- package/dist-server/game-workflow/work-scope.mjs +7 -0
- package/dist-server/integrations/config.mjs +145 -71
- package/dist-server/integrations/connection-handoff.mjs +42 -0
- package/dist-server/integrations/dsh-config.mjs +182 -0
- package/dist-server/integrations/files.mjs +54 -54
- package/dist-server/integrations/hosts.mjs +55 -35
- package/dist-server/integrations/install.mjs +205 -86
- package/dist-server/integrations/installation-state.mjs +84 -0
- package/dist-server/integrations/runtime-gc.mjs +188 -0
- package/dist-server/integrations/runtime.mjs +126 -72
- package/dist-server/integrations/updates.mjs +225 -0
- package/dist-server/integrations/version-policy.mjs +32 -0
- package/dist-server/mcp/control-panel.mjs +5 -2
- package/dist-server/mcp/publish-panel.mjs +7 -2
- package/dist-server/mcp/server.mjs +134 -26
- package/dist-server/mcp/start.mjs +8 -2
- package/dist-server/mcp/update-session.mjs +92 -0
- package/package.json +2 -2
- package/resources/context-filter-report.json +177 -0
- package/resources/craft-create/SKILL.md +19 -11
- package/resources/craft-update/SKILL.md +25 -0
- package/resources/targets/claude/js/bootstrap/SKILL.md +18 -0
- package/resources/targets/claude/js/context-filter-report.json +27 -0
- package/resources/targets/claude/js/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/claude/js/craft-game-maker/js.md +10 -0
- package/resources/targets/claude/js/js/bundle.json +97 -0
- package/resources/targets/claude/js/js/context/AGENTS.md +29 -0
- package/resources/targets/claude/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/claude/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/claude/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/claude/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/claude/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/claude/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/claude/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/claude/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/claude/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/claude/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/claude/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/claude/js/js/context/skills/index.json +19 -0
- package/resources/targets/claude/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/claude/js/js/project/README.md +7 -0
- package/resources/targets/claude/js/js/project/configs/assets.json +1 -0
- package/resources/targets/claude/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/claude/js/js/project/configs/game.json +3 -0
- package/resources/targets/claude/js/js/project/game-runtime.json +7 -0
- package/resources/targets/claude/js/js/project/game.config.json +7 -0
- package/resources/targets/claude/js/js/project/index.html +20 -0
- package/resources/targets/claude/js/js/project/package.json +22 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/claude/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/claude/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/claude/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/claude/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/claude/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/claude/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/claude/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/claude/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/claude/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/claude/js/js/project/src/main.ts +87 -0
- package/resources/targets/claude/js/js/project/src/platform.ts +2 -0
- package/resources/targets/claude/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/claude/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/claude/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/claude/js/js/project/src/style.css +294 -0
- package/resources/targets/claude/js/js/project/tsconfig.json +20 -0
- package/resources/targets/claude/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/claude/js/js/project/vite.config.ts +5 -0
- package/resources/targets/claude/js/recovery.md +13 -0
- package/resources/targets/claude/js/target.json +61 -0
- package/resources/targets/claude/js3d/bootstrap/SKILL.md +18 -0
- package/resources/targets/claude/js3d/context-filter-report.json +27 -0
- package/resources/targets/claude/js3d/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/claude/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/claude/js3d/js3d/bundle.json +108 -0
- package/resources/targets/claude/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/claude/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/claude/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/claude/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/claude/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/claude/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/{workbuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md → claude/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
- package/resources/targets/claude/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/claude/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/claude/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/claude/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/claude/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/claude/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/claude/js3d/js3d/project/README.md +7 -0
- package/resources/targets/claude/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/claude/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/claude/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/claude/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/claude/js3d/js3d/project/index.html +12 -0
- package/resources/targets/claude/js3d/js3d/project/package.json +23 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/claude/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/claude/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/claude/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/claude/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/claude/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/claude/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/claude/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/claude/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/claude/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/claude/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/claude/js3d/recovery.md +13 -0
- package/resources/targets/claude/js3d/target.json +60 -0
- package/resources/targets/codebuddy/js/bootstrap/SKILL.md +5 -1
- package/resources/targets/codebuddy/js/context-filter-report.json +27 -0
- package/resources/targets/codebuddy/js/craft-game-maker/SKILL.md +18 -19
- package/resources/targets/codebuddy/js/craft-game-maker/js.md +2 -2
- package/resources/targets/codebuddy/js/js/bundle.json +16 -18
- package/resources/targets/codebuddy/js/js/context/AGENTS.md +10 -6
- package/resources/targets/codebuddy/js/js/context/knowledge/AssetUrl.md +4 -4
- package/resources/targets/codebuddy/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/codebuddy/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/codebuddy/js/js/context/skills/export-config/SKILL.md +2 -2
- package/resources/targets/codebuddy/js/js/context/skills/index.json +2 -14
- package/resources/targets/codebuddy/js/js/context/skills/visual-qa/SKILL.md +1 -1
- package/resources/targets/codebuddy/js/recovery.md +10 -4
- package/resources/targets/codebuddy/js/target.json +1 -1
- package/resources/targets/codebuddy/js3d/bootstrap/SKILL.md +5 -1
- package/resources/targets/codebuddy/js3d/context-filter-report.json +27 -0
- package/resources/targets/codebuddy/js3d/craft-game-maker/SKILL.md +18 -19
- package/resources/targets/codebuddy/js3d/craft-game-maker/js3d.md +3 -4
- package/resources/targets/codebuddy/js3d/js3d/bundle.json +19 -21
- package/resources/targets/codebuddy/js3d/js3d/context/AGENTS.md +10 -6
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/{codex/js3d/js3d/context/skills/asset-search/references/resource-config.md → codebuddy/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/codebuddy/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
- package/resources/targets/codebuddy/js3d/js3d/context/skills/index.json +4 -16
- package/resources/targets/codebuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
- package/resources/targets/codebuddy/js3d/recovery.md +10 -4
- package/resources/targets/codebuddy/js3d/target.json +1 -1
- package/resources/targets/codex/js/bootstrap/SKILL.md +9 -1
- package/resources/targets/codex/js/context-filter-report.json +27 -0
- package/resources/targets/codex/js/craft-game-maker/SKILL.md +18 -19
- package/resources/targets/codex/js/craft-game-maker/js.md +2 -2
- package/resources/targets/codex/js/js/bundle.json +16 -18
- package/resources/targets/codex/js/js/context/AGENTS.md +10 -6
- package/resources/targets/codex/js/js/context/knowledge/AssetUrl.md +4 -4
- package/resources/targets/codex/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/codex/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/codex/js/js/context/skills/export-config/SKILL.md +2 -2
- package/resources/targets/codex/js/js/context/skills/index.json +2 -14
- package/resources/targets/codex/js/js/context/skills/visual-qa/SKILL.md +1 -1
- package/resources/targets/codex/js/recovery.md +14 -4
- package/resources/targets/codex/js/target.json +1 -1
- package/resources/targets/codex/js3d/bootstrap/SKILL.md +9 -1
- package/resources/targets/codex/js3d/context-filter-report.json +27 -0
- package/resources/targets/codex/js3d/craft-game-maker/SKILL.md +18 -19
- package/resources/targets/codex/js3d/craft-game-maker/js3d.md +3 -4
- package/resources/targets/codex/js3d/js3d/bundle.json +19 -21
- package/resources/targets/codex/js3d/js3d/context/AGENTS.md +10 -6
- package/resources/targets/codex/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
- package/resources/targets/codex/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/{codebuddy/js3d/js3d/context/skills/asset-search/references/resource-config.md → codex/js3d/js3d/context/knowledge/ResourceLoading.md} +2 -2
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/codex/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
- package/resources/targets/codex/js3d/js3d/context/skills/index.json +4 -16
- package/resources/targets/codex/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
- package/resources/targets/codex/js3d/recovery.md +14 -4
- package/resources/targets/codex/js3d/target.json +1 -1
- package/resources/targets/cursor/js/bootstrap/SKILL.md +18 -0
- package/resources/targets/cursor/js/context-filter-report.json +27 -0
- package/resources/targets/cursor/js/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/cursor/js/craft-game-maker/js.md +10 -0
- package/resources/targets/cursor/js/js/bundle.json +97 -0
- package/resources/targets/cursor/js/js/context/AGENTS.md +29 -0
- package/resources/targets/cursor/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/cursor/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/cursor/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/cursor/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/cursor/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/cursor/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/cursor/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/cursor/js/js/context/skills/index.json +19 -0
- package/resources/targets/cursor/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/cursor/js/js/project/README.md +7 -0
- package/resources/targets/cursor/js/js/project/configs/assets.json +1 -0
- package/resources/targets/cursor/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/cursor/js/js/project/configs/game.json +3 -0
- package/resources/targets/cursor/js/js/project/game-runtime.json +7 -0
- package/resources/targets/cursor/js/js/project/game.config.json +7 -0
- package/resources/targets/cursor/js/js/project/index.html +20 -0
- package/resources/targets/cursor/js/js/project/package.json +22 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/cursor/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/cursor/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/cursor/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/cursor/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/cursor/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/cursor/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/cursor/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/cursor/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/cursor/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/cursor/js/js/project/src/main.ts +87 -0
- package/resources/targets/cursor/js/js/project/src/platform.ts +2 -0
- package/resources/targets/cursor/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/cursor/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/cursor/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/cursor/js/js/project/src/style.css +294 -0
- package/resources/targets/cursor/js/js/project/tsconfig.json +20 -0
- package/resources/targets/cursor/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/cursor/js/js/project/vite.config.ts +5 -0
- package/resources/targets/cursor/js/recovery.md +13 -0
- package/resources/targets/cursor/js/target.json +61 -0
- package/resources/targets/cursor/js3d/bootstrap/SKILL.md +18 -0
- package/resources/targets/cursor/js3d/context-filter-report.json +27 -0
- package/resources/targets/cursor/js3d/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/cursor/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/cursor/js3d/js3d/bundle.json +108 -0
- package/resources/targets/cursor/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/cursor/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/cursor/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/cursor/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/cursor/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/cursor/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/cursor/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/cursor/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/cursor/js3d/js3d/project/README.md +7 -0
- package/resources/targets/cursor/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/cursor/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/cursor/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/cursor/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/cursor/js3d/js3d/project/index.html +12 -0
- package/resources/targets/cursor/js3d/js3d/project/package.json +23 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/cursor/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/cursor/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/cursor/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/cursor/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/cursor/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/cursor/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/cursor/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/cursor/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/cursor/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/cursor/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/cursor/js3d/recovery.md +13 -0
- package/resources/targets/cursor/js3d/target.json +60 -0
- package/resources/targets/dsh/js/bootstrap/SKILL.md +18 -0
- package/resources/targets/dsh/js/context-filter-report.json +27 -0
- package/resources/targets/dsh/js/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/dsh/js/craft-game-maker/js.md +10 -0
- package/resources/targets/dsh/js/js/bundle.json +97 -0
- package/resources/targets/dsh/js/js/context/AGENTS.md +29 -0
- package/resources/targets/dsh/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/dsh/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/dsh/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/dsh/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/dsh/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/dsh/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/dsh/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/dsh/js/js/context/skills/index.json +19 -0
- package/resources/targets/dsh/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/dsh/js/js/project/README.md +7 -0
- package/resources/targets/dsh/js/js/project/configs/assets.json +1 -0
- package/resources/targets/dsh/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/dsh/js/js/project/configs/game.json +3 -0
- package/resources/targets/dsh/js/js/project/game-runtime.json +7 -0
- package/resources/targets/dsh/js/js/project/game.config.json +7 -0
- package/resources/targets/dsh/js/js/project/index.html +20 -0
- package/resources/targets/dsh/js/js/project/package.json +22 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/dsh/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/dsh/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/dsh/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/dsh/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/dsh/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/dsh/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/dsh/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/dsh/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/dsh/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/dsh/js/js/project/src/main.ts +87 -0
- package/resources/targets/dsh/js/js/project/src/platform.ts +2 -0
- package/resources/targets/dsh/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/dsh/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/dsh/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/dsh/js/js/project/src/style.css +294 -0
- package/resources/targets/dsh/js/js/project/tsconfig.json +20 -0
- package/resources/targets/dsh/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/dsh/js/js/project/vite.config.ts +5 -0
- package/resources/targets/dsh/js/recovery.md +13 -0
- package/resources/targets/dsh/js/target.json +61 -0
- package/resources/targets/dsh/js3d/bootstrap/SKILL.md +18 -0
- package/resources/targets/dsh/js3d/context-filter-report.json +27 -0
- package/resources/targets/dsh/js3d/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/dsh/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/dsh/js3d/js3d/bundle.json +108 -0
- package/resources/targets/dsh/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/dsh/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/dsh/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/dsh/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/dsh/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/dsh/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/dsh/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/dsh/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/dsh/js3d/js3d/project/README.md +7 -0
- package/resources/targets/dsh/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/dsh/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/dsh/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/dsh/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/dsh/js3d/js3d/project/index.html +12 -0
- package/resources/targets/dsh/js3d/js3d/project/package.json +23 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/dsh/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/dsh/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/dsh/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/dsh/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/dsh/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/dsh/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/dsh/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/dsh/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/dsh/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/dsh/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/dsh/js3d/recovery.md +13 -0
- package/resources/targets/dsh/js3d/target.json +60 -0
- package/resources/targets/index.json +72 -12
- package/resources/targets/kimi/js/bootstrap/SKILL.md +18 -0
- package/resources/targets/kimi/js/context-filter-report.json +27 -0
- package/resources/targets/kimi/js/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/kimi/js/craft-game-maker/js.md +10 -0
- package/resources/targets/kimi/js/js/bundle.json +97 -0
- package/resources/targets/kimi/js/js/context/AGENTS.md +29 -0
- package/resources/targets/kimi/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/kimi/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/kimi/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/kimi/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/kimi/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/kimi/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/kimi/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/kimi/js/js/context/skills/index.json +19 -0
- package/resources/targets/kimi/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/kimi/js/js/project/README.md +7 -0
- package/resources/targets/kimi/js/js/project/configs/assets.json +1 -0
- package/resources/targets/kimi/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/kimi/js/js/project/configs/game.json +3 -0
- package/resources/targets/kimi/js/js/project/game-runtime.json +7 -0
- package/resources/targets/kimi/js/js/project/game.config.json +7 -0
- package/resources/targets/kimi/js/js/project/index.html +20 -0
- package/resources/targets/kimi/js/js/project/package.json +22 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/kimi/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/kimi/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/kimi/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/kimi/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/kimi/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/kimi/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/kimi/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/kimi/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/kimi/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/kimi/js/js/project/src/main.ts +87 -0
- package/resources/targets/kimi/js/js/project/src/platform.ts +2 -0
- package/resources/targets/kimi/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/kimi/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/kimi/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/kimi/js/js/project/src/style.css +294 -0
- package/resources/targets/kimi/js/js/project/tsconfig.json +20 -0
- package/resources/targets/kimi/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/kimi/js/js/project/vite.config.ts +5 -0
- package/resources/targets/kimi/js/recovery.md +13 -0
- package/resources/targets/kimi/js/target.json +61 -0
- package/resources/targets/kimi/js3d/bootstrap/SKILL.md +18 -0
- package/resources/targets/kimi/js3d/context-filter-report.json +27 -0
- package/resources/targets/kimi/js3d/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/kimi/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/kimi/js3d/js3d/bundle.json +108 -0
- package/resources/targets/kimi/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/kimi/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/kimi/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/kimi/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/kimi/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/kimi/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/kimi/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/kimi/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/kimi/js3d/js3d/project/README.md +7 -0
- package/resources/targets/kimi/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/kimi/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/kimi/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/kimi/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/kimi/js3d/js3d/project/index.html +12 -0
- package/resources/targets/kimi/js3d/js3d/project/package.json +23 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/kimi/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/kimi/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/kimi/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/kimi/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/kimi/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/kimi/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/kimi/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/kimi/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/kimi/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/kimi/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/kimi/js3d/recovery.md +13 -0
- package/resources/targets/kimi/js3d/target.json +60 -0
- package/resources/targets/workbuddy/js/bootstrap/SKILL.md +24 -14
- package/resources/targets/workbuddy/js/context-filter-report.json +27 -0
- package/resources/targets/workbuddy/js/craft-game-maker/SKILL.md +18 -19
- package/resources/targets/workbuddy/js/craft-game-maker/js.md +2 -2
- package/resources/targets/workbuddy/js/js/bundle.json +16 -18
- package/resources/targets/workbuddy/js/js/context/AGENTS.md +29 -25
- package/resources/targets/workbuddy/js/js/context/knowledge/AssetUrl.md +4 -4
- package/resources/targets/workbuddy/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/workbuddy/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/workbuddy/js/js/context/skills/export-config/SKILL.md +2 -2
- package/resources/targets/workbuddy/js/js/context/skills/index.json +2 -14
- package/resources/targets/workbuddy/js/js/context/skills/visual-qa/SKILL.md +1 -1
- package/resources/targets/workbuddy/js/recovery.md +19 -7
- package/resources/targets/workbuddy/js/target.json +1 -1
- package/resources/targets/workbuddy/js3d/bootstrap/SKILL.md +24 -14
- package/resources/targets/workbuddy/js3d/context-filter-report.json +27 -0
- package/resources/targets/workbuddy/js3d/craft-game-maker/SKILL.md +18 -19
- package/resources/targets/workbuddy/js3d/craft-game-maker/js3d.md +3 -4
- package/resources/targets/workbuddy/js3d/js3d/bundle.json +19 -21
- package/resources/targets/workbuddy/js3d/js3d/context/AGENTS.md +30 -26
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetUrl.md +4 -4
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +2 -2
- package/resources/targets/workbuddy/js3d/js3d/context/skills/export-config/SKILL.md +2 -2
- package/resources/targets/workbuddy/js3d/js3d/context/skills/index.json +4 -16
- package/resources/targets/workbuddy/js3d/js3d/context/skills/performance-audit/SKILL.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/visual-qa/SKILL.md +1 -1
- package/resources/targets/workbuddy/js3d/recovery.md +19 -7
- package/resources/targets/workbuddy/js3d/target.json +1 -1
- package/resources/targets/zcode/js/bootstrap/SKILL.md +18 -0
- package/resources/targets/zcode/js/context-filter-report.json +27 -0
- package/resources/targets/zcode/js/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/zcode/js/craft-game-maker/js.md +10 -0
- package/resources/targets/zcode/js/js/bundle.json +97 -0
- package/resources/targets/zcode/js/js/context/AGENTS.md +29 -0
- package/resources/targets/zcode/js/js/context/hooks/hooks.json +14 -0
- package/resources/targets/zcode/js/js/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/zcode/js/js/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/zcode/js/js/context/knowledge/Layout.md +7 -0
- package/resources/targets/zcode/js/js/context/knowledge/Lifecycle.md +11 -0
- package/resources/targets/zcode/js/js/context/knowledge/ResourceLoading.md +9 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/zcode/js/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/zcode/js/js/context/skills/index.json +19 -0
- package/resources/targets/zcode/js/js/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/zcode/js/js/project/README.md +7 -0
- package/resources/targets/zcode/js/js/project/configs/assets.json +1 -0
- package/resources/targets/zcode/js/js/project/configs/game.controls.json +3 -0
- package/resources/targets/zcode/js/js/project/configs/game.json +3 -0
- package/resources/targets/zcode/js/js/project/game-runtime.json +7 -0
- package/resources/targets/zcode/js/js/project/game.config.json +7 -0
- package/resources/targets/zcode/js/js/project/index.html +20 -0
- package/resources/targets/zcode/js/js/project/package.json +22 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/platform/platform.mjs +29 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/release.json +22 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/zcode/js/js/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/zcode/js/js/project/scripts/config-export/assert-asset-wiring.mjs +72 -0
- package/resources/targets/zcode/js/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/zcode/js/js/project/scripts/config-export/sync-asset-controls.mjs +316 -0
- package/resources/targets/zcode/js/js/project/scripts/config-export.mjs +13 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/zcode/js/js/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/zcode/js/js/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/zcode/js/js/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/zcode/js/js/project/src/display/viewport.ts +249 -0
- package/resources/targets/zcode/js/js/project/src/main.ts +87 -0
- package/resources/targets/zcode/js/js/project/src/platform.ts +2 -0
- package/resources/targets/zcode/js/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/targets/zcode/js/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/targets/zcode/js/js/project/src/screenUi.ts +185 -0
- package/resources/targets/zcode/js/js/project/src/style.css +294 -0
- package/resources/targets/zcode/js/js/project/tsconfig.json +20 -0
- package/resources/targets/zcode/js/js/project/unified_data_control_config.json +20 -0
- package/resources/targets/zcode/js/js/project/vite.config.ts +5 -0
- package/resources/targets/zcode/js/recovery.md +13 -0
- package/resources/targets/zcode/js/target.json +61 -0
- package/resources/targets/zcode/js3d/bootstrap/SKILL.md +18 -0
- package/resources/targets/zcode/js3d/context-filter-report.json +27 -0
- package/resources/targets/zcode/js3d/craft-game-maker/SKILL.md +76 -0
- package/resources/targets/zcode/js3d/craft-game-maker/js3d.md +12 -0
- package/resources/targets/zcode/js3d/js3d/bundle.json +108 -0
- package/resources/targets/zcode/js3d/js3d/context/AGENTS.md +30 -0
- package/resources/targets/zcode/js3d/js3d/context/hooks/hooks.json +14 -0
- package/resources/targets/zcode/js3d/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/targets/zcode/js3d/js3d/context/knowledge/AssetWiring.md +7 -0
- package/resources/targets/zcode/js3d/js3d/context/knowledge/CodingGuide/Pitfalls.md +11 -0
- package/resources/targets/zcode/js3d/js3d/context/knowledge/Layout.md +7 -0
- package/resources/targets/zcode/js3d/js3d/context/knowledge/ResourceLoading.md +11 -0
- package/resources/targets/zcode/js3d/js3d/context/knowledge/Runtime.md +9 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/SKILL.md +16 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/compare-animations.mjs +48 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/anim.mjs +266 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/glb.mjs +241 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/lib/scan.mjs +455 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/asset-usage-audit/scripts/scan-assets.mjs +77 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/SKILL.md +16 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/cli.mjs +20 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/config.d.mts +19 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/config.mjs +1 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/project.d.mts +6 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/project.mjs +77 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/vite.d.mts +2 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/assets/tooling/vite.mjs +34 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/export-config.mjs +4 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/install.mjs +89 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/index.json +31 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/SKILL.md +21 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/rules.mjs +470 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/scan.mjs +387 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/lib/source.mjs +398 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/performance-audit/scripts/scan-perf.mjs +130 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/targets/zcode/js3d/js3d/project/README.md +7 -0
- package/resources/targets/zcode/js3d/js3d/project/configs/game.controls.json +3 -0
- package/resources/targets/zcode/js3d/js3d/project/configs/game.json +3 -0
- package/resources/targets/zcode/js3d/js3d/project/game-runtime.json +7 -0
- package/resources/targets/zcode/js3d/js3d/project/game.config.json +7 -0
- package/resources/targets/zcode/js3d/js3d/project/index.html +12 -0
- package/resources/targets/zcode/js3d/js3d/project/package.json +23 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +5 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +208 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +37 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +227 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +31 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +272 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.d.mts +79 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/platform/platform.mjs +30 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/release.json +24 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/cli.mjs +16 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.d.mts +4 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/project.mjs +50 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +3 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tooling/vite.mjs +72 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.d.mts +24 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/assets.mjs +2 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.d.mts +10 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/astc.mjs +1 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.d.mts +26 -0
- package/resources/targets/zcode/js3d/js3d/project/runtime/lightgame/1.1.0/tools/glb.mjs +351 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/assert-asset-wiring.mjs +97 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/sync-asset-controls.mjs +327 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/config-export/sync-scene-assets.mjs +191 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/config-export.mjs +15 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/cli.mjs +20 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/config.d.mts +19 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/config.mjs +1 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/installed.json +6 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/project.d.mts +6 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/project.mjs +77 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/vite.d.mts +2 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/skill-modules/export-config/vite.mjs +34 -0
- package/resources/targets/zcode/js3d/js3d/project/scripts/write-preview-ready.mjs +22 -0
- package/resources/targets/zcode/js3d/js3d/project/src/display/ui-stage.ts +156 -0
- package/resources/targets/zcode/js3d/js3d/project/src/display/viewport.ts +239 -0
- package/resources/targets/zcode/js3d/js3d/project/src/main.ts +85 -0
- package/resources/targets/zcode/js3d/js3d/project/src/platform.ts +2 -0
- package/resources/targets/zcode/js3d/js3d/project/src/style.css +83 -0
- package/resources/targets/zcode/js3d/js3d/project/tsconfig.json +20 -0
- package/resources/targets/zcode/js3d/js3d/project/unified_data_control_config.json +20 -0
- package/resources/targets/zcode/js3d/js3d/project/vite.config.ts +5 -0
- package/resources/targets/zcode/js3d/recovery.md +13 -0
- package/resources/targets/zcode/js3d/target.json +60 -0
- package/vendor/craft-runtime/SOURCE.json +2 -2
- package/resources/targets/codebuddy/js/js/context/knowledge/AigcWiring.md +0 -9
- package/resources/targets/codebuddy/js/js/context/skills/aigc-generate/SKILL.md +0 -14
- package/resources/targets/codebuddy/js/js/context/skills/asset-search/SKILL.md +0 -12
- package/resources/targets/codebuddy/js/js/context/skills/asset-search/references/resource-config.md +0 -9
- package/resources/targets/codebuddy/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
- package/resources/targets/codebuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
- package/resources/targets/codebuddy/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
- package/resources/targets/codex/js/js/context/knowledge/AigcWiring.md +0 -9
- package/resources/targets/codex/js/js/context/skills/aigc-generate/SKILL.md +0 -14
- package/resources/targets/codex/js/js/context/skills/asset-search/SKILL.md +0 -12
- package/resources/targets/codex/js/js/context/skills/asset-search/references/resource-config.md +0 -9
- package/resources/targets/codex/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
- package/resources/targets/codex/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
- package/resources/targets/codex/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
- package/resources/targets/workbuddy/js/js/context/knowledge/AigcWiring.md +0 -9
- package/resources/targets/workbuddy/js/js/context/skills/aigc-generate/SKILL.md +0 -14
- package/resources/targets/workbuddy/js/js/context/skills/asset-search/SKILL.md +0 -12
- package/resources/targets/workbuddy/js/js/context/skills/asset-search/references/resource-config.md +0 -9
- package/resources/targets/workbuddy/js3d/js3d/context/knowledge/AigcWiring.md +0 -9
- package/resources/targets/workbuddy/js3d/js3d/context/skills/aigc-integration/SKILL.md +0 -14
- package/resources/targets/workbuddy/js3d/js3d/context/skills/asset-search/SKILL.md +0 -12
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
# 恢复当前 workbuddy / js3d 游戏
|
|
2
|
+
|
|
3
|
+
新会话首次处理本项目时,先核对 `craft_game_info(name)` 的目录,再调用 `craft_update_check(name,intent:"inspect")` 检查 npm 版本。纯查看仅报告结果,即使发现 pending_reconnect 也不自动重载、同步或改写项目。继续制作前调用 intent=resume 并与 prepare 复用本次 request_key;返回 pending_reconnect 表示新版已安装、当前连接仍旧、本次准备尚未开始。按 connection_handoff 处理,重载前重新查询当前 info 的占用,先等待后台任务结束、记录进度并 release 既有工作;其他会话占用时等待其正常释放。
|
|
4
|
+
|
|
5
|
+
先按 WorkBuddy 可用方式重连 Craft;实际版本仍旧时,提示记录进度后从托盘完整退出 WorkBuddy,再打开并等待 Craft 就绪。仅宿主页面实际提示未信任时,才引导用户在连接器中按提示确认;每次更新不一定需要重新信任。
|
|
6
|
+
|
|
7
|
+
随后必须用当前聊天的 craft_game_info 核对实际 version、build_id 与更新目标一致,记录 instance_id,确认 active_verified,且 host、workspace、platform 保持预期。重载成功响应、实例变化、连接绿灯或独立探测结果不能代替当前连接核验;未确认时报告“新版已安装,当前连接尚未确认”并停止本次准备。只对明确尚未开始的 prepare 复用同一 request_key 重试,不自动重放素材生成、上传或发布。同步成功后重新读取本地入口、技能索引和所需 Skill 正文;工作进行中保持既有 work_id/context_revision。
|
|
8
|
+
|
|
9
|
+
本套资料安装在项目 `.workbuddy/`。使用本宿主目录下的 `AGENTS.md`、`workflow.md`、`guide.md`、`knowledge/` 和 `skills/`,按任务选择领域 Skill,无需从缓存或版本目录查找正文。
|
|
10
|
+
|
|
11
|
+
先调用只读 `craft_game_info(name)` 检查工程、已安装版本和占用。纯查看直接读取现有文件。继续制作时调用 `craft_game_prepare(name,mode:"resume",request_key)` 并轮询成功,保存 work_id/context_revision,再重新读取返回的本地入口、工作流和技能索引;制作工具传入 work_id。读取项目 `SPEC/PROGRESS.md`、已有设计、相关源码,以及存在的 `.craft/user-rules.md`;以文件和实际工具结果恢复进度。
|
|
12
|
+
|
|
13
|
+
项目入口与源码不重建。更新只管理 Craft 清单中的文件,修改过的官方副本先备份;用户规则和进度保留。旧运行时不能降级已更新的上下文,兼容检查失败时按诊断处理。
|
|
14
|
+
|
|
15
|
+
只读恢复不修改游戏代码、进度或设计,不执行构建或导出。进行游戏开发时按本地工作流完成验收并记录真实结果。
|
|
16
|
+
|
|
17
|
+
完成或暂停制作时记录进度,等待后台任务结束并调用 `craft_game_release(name,work_id)`。新的制作任务使用新的 request_key;同次准备的网络重试复用原 key。resume 不重建模板、不安装依赖、不构建或导出。更新只在准备阶段发生,查询不更新文件。
|
|
18
|
+
|
|
19
|
+
打开可信的本地项目时,若 WorkBuddy 提示选择打开方式,由用户选择“正常打开”以加载项目配置。原生 Skill 未发现时,先核对打开方式、实际工作目录和当前宿主的技能目录;可显式读取本地索引继续恢复,但须如实说明原生发现尚未确认,不改宿主信任设置。
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: craft-create
|
|
3
|
+
description: 在 ZCode 中使用 Craft 新建 2D、3D 游戏或玩法原型。Create a new 2D or 3D game with Craft. 当前目录已有 Craft 游戏、需要继续或恢复时使用项目 craft-project Skill 和 AGENTS.md。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- craft-mcp:bootstrap:v1 -->
|
|
7
|
+
# 创建 Craft 游戏
|
|
8
|
+
|
|
9
|
+
创建前调用 `craft_update_check(intent:"create",request_key)`,自动检查已配置的 npm 渠道并安装兼容新版;与本次 prepare 复用 request_key。核对当前连接的实际 runtime 和 activation 状态。返回 pending_reconnect 时,新版已安装但当前连接保持旧版;先结束并 release 既有工作,按宿主可用方式重连,再用当前连接的 craft_game_info 核对版本、build_id 和 active_verified 后重试准备。安装器不保证宿主自动重连,不能用独立探测结果替代当前连接确认。不兼容时按诊断处理;离线时说明未确认最新。没有更新工具的旧连接先完成新版标准安装与连接切换。
|
|
10
|
+
|
|
11
|
+
1. 当前目录已有 Craft 工程时,先读项目 `AGENTS.md` 并恢复该工程。创建新游戏时,调用 `craft_game_info`,核对服务的 workspace 和平台;游戏将创建在 `<workspace>/<name>`,不自动跟随宿主当前目录。
|
|
12
|
+
2. 创建选项只展示 **2D / Phaser**(`js`)和 **3D / Three.js**(`js3d`)。用户已明确选择时直接沿用;尚未明确时结合玩法给出推荐和简短理由,使用宿主可用的提问交互收集选择,不可用时用文字询问。用户让你决定时按需求选择并说明,不重复确认已有选择。选定引擎后,使用英文小写、数字和连字符组成 name,调用 `craft_game_info({"engine":"js"})`(3D 使用 `js3d`)读取对应指南。
|
|
13
|
+
3. 调用 `craft_game_prepare({"name":"项目名","engine":"js","mode":"create","request_key":"create-unique-key"})` 并轮询返回的任务至完成。核对 project、engine、context_binding 和 project_context,将 project 作为当前工作目录。读取返回的 `context.workflow`、`context.engine.entrypoint` 和 `context.engine.skills_index`,按索引 description 选择技能,并相对于 context.engine.directory 读取 entrypoint 与相关引用;上下文已放入项目。保存 work_id 和 context_revision,制作工具传入该 work_id;重试准备复用 request_key,不新建重复任务。
|
|
14
|
+
4. 遵循当前引擎指南和用户需求完成游戏,将设计与实际开发进度保存在项目 SPEC 文件中,更新 `SPEC/PROGRESS.md`。通过 `craft_game_check`、`craft_game_review` 验收,再按 `craft_game_deliver` 返回命令启动并确认预览。
|
|
15
|
+
|
|
16
|
+
完成或暂停制作时,等待后台任务结束,记录进度并调用 `craft_game_release(name,work_id)`;无需关闭 MCP。新一轮制作使用新的 request_key,已结束的请求不可复活。
|
|
17
|
+
|
|
18
|
+
MCP 未连接时,先在当前宿主连接 Craft 服务。新会话从项目 `AGENTS.md` 和 `craft-project` Skill 恢复,资源路径重新通过工具查询。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"config": "context-filters.json",
|
|
4
|
+
"config_sha256": "011ff0085f7c938e65f5cf182c042c2e9b93613b3497210bf24b132400c50b29",
|
|
5
|
+
"exclude": [
|
|
6
|
+
"contexts/*/js/skills/aigc-generate/**",
|
|
7
|
+
"contexts/*/js/skills/asset-search/**",
|
|
8
|
+
"contexts/*/js3d/skills/aigc-integration/**",
|
|
9
|
+
"contexts/*/js3d/skills/asset-search/**"
|
|
10
|
+
],
|
|
11
|
+
"validation": {
|
|
12
|
+
"scope": "all",
|
|
13
|
+
"deferred_patterns": []
|
|
14
|
+
},
|
|
15
|
+
"targets": {
|
|
16
|
+
"zcode/js": {
|
|
17
|
+
"excluded_skills": [
|
|
18
|
+
"aigc-generate",
|
|
19
|
+
"asset-search"
|
|
20
|
+
],
|
|
21
|
+
"excluded_files": [
|
|
22
|
+
"skills/aigc-generate/SKILL.md",
|
|
23
|
+
"skills/asset-search/SKILL.md"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: craft-game-maker
|
|
3
|
+
description: Make or modify local Craft 2D/Phaser and 3D/Three.js games in AI IDEs, including gameplay checks and preview.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Craft 本地小游戏制作
|
|
7
|
+
|
|
8
|
+
Craft MCP 提供工程准备、构建、验收与预览能力。制作流程以用户需求、当前工程及本指南为准。
|
|
9
|
+
|
|
10
|
+
## 默认交互
|
|
11
|
+
|
|
12
|
+
制作前读取当前引擎入口,按实际技能索引选择本次需要的技能。资源使用遵循本工程的配置与加载规范。
|
|
13
|
+
|
|
14
|
+
使用平台能力前调用 `craft_auth_status`。已登录直接继续;仅未登录时展示工具返回的 `user_message`,不自行拼地址。`auth_mode:token` 由用户在 宿主凭证设置或连接器表单更新凭证并重新连接;普通安装由用户在工具返回的本机页面登录。连接后复用原工程和请求继续。网络错误不要求重新登录;服务失败如实报告并保留记录。
|
|
15
|
+
|
|
16
|
+
禁止读取凭据文件、自动填写登录页或连接器凭证表单,或要求用户把 Token 发到聊天、写配置;链接中不得带 Token。
|
|
17
|
+
|
|
18
|
+
后台任务、资源接线、测试、看图和修复持续推进,直到交付或明确受阻;需要用户登录、用户取消时停下说明。交付预览链接、玩法和操作键。
|
|
19
|
+
|
|
20
|
+
## 连续工作流
|
|
21
|
+
|
|
22
|
+
MCP 的 `workspace` 是游戏父目录,实际游戏为 `<workspace>/<name>`,不自动跟随宿主当前工作目录。默认 `~/CraftGames`;可在宿主 MCP 环境配置中显式设置 `CLIENT_WORKSPACE_ROOT`,或用 `craft-mcp --workspace <绝对父目录>` 启动。修改设置后重连并核对 `craft_game_info.workspace`。准备完成后将返回的 `project` 打开为宿主工作目录。
|
|
23
|
+
|
|
24
|
+
prepare 会维护项目根 `AGENTS.md` 的 Craft 段,并为已选择的宿主生成项目恢复 Skill;实际路径以返回的 `project_context.entrypoint` 和 `project_context.skill` 为准。未指定宿主时不生成宿主专用目录。用户已有正文保留,同名用户 Skill 不覆盖,结果会标记 `preserved_user_file`。项目的 `.craft/context-lock.json` 记录已同步版本。查询 `craft_game_info(name)` 只检查版本、占用和恢复状态,不更新文件。新一轮制作调用 `craft_game_prepare(name,mode:"resume",request_key)`,轮询完成并核对 context_sync、work_id、context_revision,再重新读取返回的工作流、引擎入口和技能索引,按 description 选技能。项目自定义规则放 `.craft/user-rules.md` 或根 AGENTS 的用户区域,官方目录由 MCP 管理。同步失败或不兼容时先处理诊断,不读历史目录继续工作;新宿主由 prepare 接入,游戏源码和已有进度保留。
|
|
25
|
+
|
|
26
|
+
项目事实放在 SPEC 设计文档与 `SPEC/PROGRESS.md`;prepare 只在进度文件缺失时建立初始记录,不替换已有内容。开始工作先读取这些记录并核对源码;完成开发、验收或遇到阻塞后更新玩法、操作、已完成/待办、关键文件、验收任务与下一步。新会话据此恢复,不依赖上一轮聊天或宿主个人记忆。只读请求不写进度。
|
|
27
|
+
|
|
28
|
+
1. **先读引擎说明,再制作游戏。** 新建时仅展示 2D / Phaser(js)和 3D / Three.js(js3d)。沿用用户明确选择;尚未明确时按玩法推荐并收集选择,用户授权代选时直接决定并说明。选定后调用 `craft_game_info(engine)`;继续游戏用 `craft_game_info(name)` 获取已保存的引擎,不重新选择。开始设计、编码或修改前完整读取 `context.engine.entrypoint`,其余参考文档按需加载。
|
|
29
|
+
2. 调用 `craft_game_prepare`:新建传 `mode:"create"`、engine 和新的 request_key;继续已有工程传 `mode:"resume"`,沿用 name 和引擎。重试复用同一 request_key,已结束或中断的制作使用新的 key。轮询成功后保存 work_id 和 context_revision,再读取本地上下文并使用宿主文件工具编辑工程。素材、验收、预览、取消及发布工具均传入此 work_id。期间不重新同步上下文;同一 work_id 的 prepare 只验证并复用当前结果。遇到 CRAFT_PROJECT_IN_USE 时可只读查询,须等原任务释放后再制作,不绕过占用锁写文件。保留模板依赖、runtime、Vite、预览接线和配置结构。
|
|
30
|
+
3. 按需求实现场景、玩法和真实输入交互;需要领域操作时,按当前技能索引的 description 选择并读取适用技能。资源地址及可调参数放入项目配置,由实际消费者读取并按引擎规则加载。配置有值不代表资源已被使用,必要资源就绪后再进入玩法。
|
|
31
|
+
4. 调用 `craft_game_check` 执行引擎收尾、构建和浏览器采集。依次提供 `loop`、`settlement`、`restart` 三步,每步包含 action、expected 和真实玩法断言。
|
|
32
|
+
5. gate.passed 后调用 `craft_game_review`,逐一查看初始、主循环、结算、重开四张截图,检查素材、构图、比例、文字、遮挡、透明边缘和玩法反馈;有问题就修复并重验。浏览器或截图不可用时报告未验证。
|
|
33
|
+
6. 玩法和视觉均通过后,调用 `craft_game_deliver(task_id,visual_passed:true,visual_notes)`,填写实际观察。返回 awaiting_host_start 时,由 AI IDE 使用后台终端执行 `start.script` 并保持该任务运行;这是持续服务命令,不等待终端退出才查询状态。Craft 不启动预览。轮询 `craft_game_info(name).preview`,直到 running=true 且 snapshot 与此次交付一致,打开返回 URL 确认画布能启动后才交付链接;直接打开源码 index.html 不能替代预览。预览可能被宿主或系统回收;失效时查看 start.logs,重跑启动命令并验证,用 `craft_preview_stop(name)` 停止。源码或构建产物变化后重新检查、交付。
|
|
34
|
+
|
|
35
|
+
用户要求上传 Craft 私有草稿时,先通过检查与看图,再调用 `craft_game_upload(name,check_task_id)`。同一目录、name、账号和平台自动复用 appid,修改后重新检查上传只新增版本;中断时保留原 check_task_id 重试。发布与本地预览使用相同的资源配置,按引擎规则解析资源地址;同时验证资源在目标浏览器和公开托管中实际可用。用 `craft_task_status` 等待上传,用 `craft_game_publish_status(name,check_task_id)` 查询同一版本。`draft_ready` 表示私有上传完成,交付项目 ID、版本 ID 与摘要,不代表公开发布,也不提供云端预览链接。试玩与交付预览沿用 IDE 本地的 `craft_game_deliver` 启动流程,不以云端试玩作为上传完成条件。
|
|
36
|
+
|
|
37
|
+
用户要求公开发布时,优先调用 `craft_game_publish_open(name,check_task_id)` 并向用户展示返回的本地发布页链接。页面可编辑材料、查看验收冻结版本和最终图片,使用原有 30 秒真实采集;只有用户勾选确认具体 revision 后才上传公开图片并提审。页面不依赖安装桌面客户端;同一 publication_id 可重新打开恢复。发布完成以目标版本审核完成及公开链接为准。
|
|
38
|
+
|
|
39
|
+
需要由工具准备材料时,先完成私有上传,调用 `craft_game_publish_options` 获取当前分类。AI IDE 根据游戏准备名称、简介/操作说明、分类、标签和封面;封面可用工程内 PNG/JPEG,省略时使用真实游戏截图。调用 `craft_game_publish_prepare(name,check_task_id,materials)`,轮询完成;MCP 对同一冻结版本真实试玩至少 30 秒,生成展示图和审核抽帧,不用四张普通验收图冒充完整采集。
|
|
40
|
+
|
|
41
|
+
随后调用 `craft_game_publish_review(name,publication_id)`,向用户展示完整文案、封面、截图、目标版本、是否开放二创,以及图片上传后为公开 URL 的事实。取得用户对本次 `revision` 的明确确认后,才调用 `craft_game_publish_submit(name,publication_id,revision,confirmed:true)`。材料变化须重新准备、看图和确认;准备完成不表示获得了提交授权。
|
|
42
|
+
|
|
43
|
+
提交任务完成只表示已发起审核。用 `craft_game_publish_status(name,publication_id)` 查询,保留原 ID 恢复超时;只有当前版本 `share_completed` 且返回匹配的 `public_url` 才报告发布成功。审核失败展示原因并修改后重新准备;审核未启用、缺材料或仍在等待时不冒充通过。公开发布能力以当前服务返回的开关和审核状态为准。
|
|
44
|
+
|
|
45
|
+
若状态返回 `finalization_retry_required:true`,审核已经通过但最终存储收尾需要重试;复用原 publication_id、revision 和既有确认调用 submit,只恢复同一份已审材料的收尾,不重新准备或另发审核。
|
|
46
|
+
|
|
47
|
+
已公开的同一版本只支持原 publication_id 的幂等重试。修改已公开作品的文案或图片时,重新检查并上传新版本(保留 appid),再准备和确认新材料;旧线上版本在新版本审核期间保持不变。外部包只有 dist,不包含可编辑源码,`open_to_recreate` 必须为 false。
|
|
48
|
+
|
|
49
|
+
## 引擎参考上下文
|
|
50
|
+
|
|
51
|
+
连接时发送通用指南,选定引擎后的 info/prepare 结果附专用指南。`context.workflow` 为通用指南,`context.engine.guide` 为专用指南,`context.engine.directory` 为引擎上下文,`context.references` 为按需文档。
|
|
52
|
+
|
|
53
|
+
引擎 `AGENTS.md`、实际可用技能及用户要求决定实现方式;本指南定义 Craft MCP 的调用流程。`craft_game_check` 包含配置导出、构建和采集;`craft_game_review` 返回实际截图供审阅,检查布局、地面接触、尺寸、裁剪、可读性及所需透明效果。保留模板的渲染、就绪、资源释放和配置导出行为。
|
|
54
|
+
|
|
55
|
+
## 玩法观测
|
|
56
|
+
|
|
57
|
+
验收前必须确保工程已显式安装 `globalThis.__GAME_PROBE__.snapshot()`,不能假设模板自带探针;缺少时先补齐,再调用 `craft_game_check`。旧工程已有探针时保留并扩展。快照返回真实 `engine`、`ready`、`frameCount`,`game` 从实际玩法状态读取,如 `{score,phase,round}`。
|
|
58
|
+
|
|
59
|
+
`frameCount` 只能随真实渲染帧递增。必要资源加载成功且实际场景已渲染后才允许 `ready` 成立:Phaser 结合 `POST_RENDER`、`markPreviewReady` 和活跃的 `PlayScene`,Three.js 结合实际 render 帧与资源加载。保留引擎预览生命周期,不伪造帧数、就绪或玩法状态使检查通过。
|
|
60
|
+
|
|
61
|
+
测试使用真实输入,不直接改分数或强行结算。Canvas 用坐标,DOM 用 target;`qa:` 仅路由到与玩家操作相同的处理函数,每步 ms ≤ 30000。
|
|
62
|
+
|
|
63
|
+
示例(按实际玩法调整):
|
|
64
|
+
```json
|
|
65
|
+
[
|
|
66
|
+
{"phase":"loop","action":"press","key":"Space","ms":300,"expected":"接到一颗星,分数增加","assertions":[{"path":"game.score","operator":"gte","value":1}]},
|
|
67
|
+
{"phase":"settlement","action":"wait","ms":15000,"expected":"倒计时结束显示结算","assertions":[{"path":"game.phase","operator":"eq","value":"over"}]},
|
|
68
|
+
{"phase":"restart","action":"click","target":"再玩一次","expected":"新一局分数归零","assertions":[{"path":"game.phase","operator":"eq","value":"playing"},{"path":"game.score","operator":"eq","value":0}]}
|
|
69
|
+
]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
支持本地 2D/Phaser、3D/Three.js、工程检查、本地预览和平台审核发布。目录校验不构成同 UID 的 OS 沙箱;禁止读取宿主私有状态或修改安装包。
|
|
73
|
+
|
|
74
|
+
## 结束与交接
|
|
75
|
+
|
|
76
|
+
完成或暂停编辑时,等待后台任务结束(取消也须等清理完成),更新 `SPEC/PROGRESS.md`,调用 `craft_game_release(name,work_id)`。释放不关闭 MCP、不停止已有只读预览、不表示游戏已发布。新会话先用 `craft_update_check(intent:"inspect")` 只检查版本;纯查看不安装、不同步上下文、不写进度、不构建。标准安装处于 auto 时,新一轮 create/resume 准备会检查配置的 npm 渠道并自动安装兼容新版;也可先调用相应 intent 的 craft_update_check,与 prepare 复用 request_key。off 或非受管连接不自动安装。返回 pending_reconnect 时,本次准备尚未开始,当前连接保持原版;先结束并 release 既有工作,按宿主可用方式重连,用当前连接的 craft_game_info 核对实际版本、build_id、instance_id 和 active_verified,再以同一 request_key 重试 prepare。确认新连接后,prepare 同步对应宿主及项目原引擎的兼容上下文;既有工作保持原 work_id/context_revision,不在进行中换版。同步后重新读取入口、技能索引和所需 Skill 正文;宿主缓存 Skill 列表时刷新或新开会话。
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# 当前工程:2D / Phaser(engine=js)
|
|
2
|
+
|
|
3
|
+
使用当前工程的 Phaser 模板和本引擎上下文。制作或修改前完整读取 `context.engine.entrypoint` 对应的 `AGENTS.md`,素材来源与流程遵守该引擎的相关技能及用户要求。再读取 `src/main.ts`、`src/scenes/LoadScene.ts`、`src/scenes/PlayScene.ts`、`configs/assets.json`、`configs/game.json`。
|
|
4
|
+
|
|
5
|
+
- `LoadScene` 负责预加载,`PlayScene` 实现玩法。图片、音频及序列帧按引擎 `knowledge/AssetWiring.md` 读取 `configs/assets.json` 的 slot 地址。`slotUrl` 只取配置;加载时按 `knowledge/AssetUrl.md` 使用 `resolveAssetUrl` 和 CDN 配置,在 LoadScene 入队并在 PlayScene 实际使用。
|
|
6
|
+
- 图集 PNG 与 manifest JSON 使用不同加载方式,帧布局取实际资源元数据。按 `knowledge/ResourceLoading.md` 加载图集并创建动画,不把 JSON 当图片或把整张图集当单帧,不凭地址猜测依赖文件。
|
|
7
|
+
- 修改加载场景时按需读取 `context.references.loading`;补充玩法观测时遵守 `context.workflow` 中的玩法观测约定。
|
|
8
|
+
- 验收前按 `context.workflow` 的玩法观测约定显式安装 `globalThis.__GAME_PROBE__.snapshot()`;缺少探针时必须补齐。旧工程已有探针时保留并扩展,`engine` 保持 `js`,在 `snapshot().game` 读取真实分数、阶段、回合等状态。
|
|
9
|
+
- `frameCount` 随真实 Phaser `POST_RENDER` 帧递增;`ready` 仅在必要资源加载成功、`PlayScene` 活跃且已发生真实渲染后成立,并与 `markPreviewReady` 的预览就绪流程一致。保留原有预览生命周期,不用定时器、硬编码分数或伪造帧数使检查通过。
|
|
10
|
+
- 使用 `craft_game_check` 完成配置导出、构建与玩法验证,再通过 `craft_game_review` 查看四张截图并交付。
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 2,
|
|
3
|
+
"engine": "js",
|
|
4
|
+
"host": "zcode",
|
|
5
|
+
"version": "1.0.1",
|
|
6
|
+
"source_revision": "sha256:20330640ccc603b2fb263aaaf11b5cef4623176fa5b9fc97a3e4897230bbaa79",
|
|
7
|
+
"contracts": {
|
|
8
|
+
"export": 1,
|
|
9
|
+
"skills": 1,
|
|
10
|
+
"mcp": 2,
|
|
11
|
+
"sdk_lifecycle": 1
|
|
12
|
+
},
|
|
13
|
+
"compatibility": {
|
|
14
|
+
"runtime_version": "1.1.0",
|
|
15
|
+
"dependency": "phaser",
|
|
16
|
+
"dependency_version": "3.90.0",
|
|
17
|
+
"template_digest": "5fab790d63b9eee2539acb81729cc07da6e3087b9396719482a0e6ac1a4a2d56"
|
|
18
|
+
},
|
|
19
|
+
"files": {
|
|
20
|
+
"js/context/AGENTS.md": "1268cd08939f1483c86c61c70fb2c3feecc0923c183e4837dd42a5c0c7aeacdd",
|
|
21
|
+
"js/context/hooks/hooks.json": "8becc4a05e25996fb079dcac9b7c2f7c79d719ea0d2cf20dc9b8a91a97a3261d",
|
|
22
|
+
"js/context/knowledge/AssetUrl.md": "f5f7a8a4588c1fbb5bd337585d8d586c944a3f44ac7a6b212fac7aedb656b944",
|
|
23
|
+
"js/context/knowledge/AssetWiring.md": "d41652c4f5e6a04bfe8f1c3eb8ab2633a01830b60a8fa88f5e759a801ed36b23",
|
|
24
|
+
"js/context/knowledge/Layout.md": "edb1f698c5dcdeed57d3a06cdff939719abaa754a39e471830eaf74627c8f53f",
|
|
25
|
+
"js/context/knowledge/Lifecycle.md": "47d6cc164953d5bbe3c06efcdad4994fbf89346f4e6c7bf15810555bc3612a18",
|
|
26
|
+
"js/context/knowledge/ResourceLoading.md": "eada6a4a3766772a47274dd7a210aab3ef726c4553150aefc1f047ff0d6fb578",
|
|
27
|
+
"js/context/skills/export-config/SKILL.md": "76a42289e25c89e3a12c8483c7117d7017622effaec214f05534406977f1a0ad",
|
|
28
|
+
"js/context/skills/export-config/assets/tooling/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
|
|
29
|
+
"js/context/skills/export-config/assets/tooling/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
|
|
30
|
+
"js/context/skills/export-config/assets/tooling/config.mjs": "ba99f6f54d0db4fc42d5431d0792c3f5e6981474faef3a0acf924a90b27158f8",
|
|
31
|
+
"js/context/skills/export-config/assets/tooling/project.d.mts": "5cf22fae66b199b92080d07ea45b686502d0605f677504177b029e0d615a5e9b",
|
|
32
|
+
"js/context/skills/export-config/assets/tooling/project.mjs": "f7a1417e019cee8efea68840ca768d414fa8106e67dd60d4f300465c9a58e541",
|
|
33
|
+
"js/context/skills/export-config/assets/tooling/vite.d.mts": "70918eaafd1b4518818533232fb9fa83e7b5df0da14927b5e2ad2288347bca23",
|
|
34
|
+
"js/context/skills/export-config/assets/tooling/vite.mjs": "6da929e7d7d59f928f468a0052e1f970b992032d461968b93b713583fdbbb86a",
|
|
35
|
+
"js/context/skills/export-config/scripts/export-config.mjs": "e7f3cff027cf71d90f2d14e983082a658c6100ddf5761d27e0ae7ce4c917344c",
|
|
36
|
+
"js/context/skills/export-config/scripts/install.mjs": "ef3e09680d06086b9e21f5665ce05af2962cc65e92a8e26fbac5fdf9723e6eda",
|
|
37
|
+
"js/context/skills/export-config/scripts/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
38
|
+
"js/context/skills/index.json": "68e372fa6b819e0b7a7e6aa5b5fead56bdfadb600f4f938d30d9757628935af2",
|
|
39
|
+
"js/context/skills/visual-qa/SKILL.md": "fe01243a7406d12a7be3c3d637cd87b142da77cc0dc16873c0d8cfe28696d2f8",
|
|
40
|
+
"js/project/README.md": "7708ecdf5ff65e5565bb46c98b4388778db0e747c2d9fce778f42f73c78663f5",
|
|
41
|
+
"js/project/configs/assets.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
|
|
42
|
+
"js/project/configs/game.controls.json": "c353f210e7d63c4042cc4a58163e90cc9dc55b3bb5789547dbf913f1e553d2fa",
|
|
43
|
+
"js/project/configs/game.json": "3289dc2a6fb9a75e47e59dd95507a91a5337352a3ae5a0f7dbaf14a2ab16ad88",
|
|
44
|
+
"js/project/game-runtime.json": "9e6d4974f371478ce507ae208de580e248175a0d99941aa0d10465243fd4ad69",
|
|
45
|
+
"js/project/game.config.json": "0d50535f695a1be2c7a1649953fedd112d02a078ceda11c22391b21c05a22c0e",
|
|
46
|
+
"js/project/index.html": "6968aba482c4fb0d2c6bd0e4effe627837c1a83bf16f185c32dd7b351605c6a2",
|
|
47
|
+
"js/project/package.json": "b308908f78564b70471e7c9c762904f497778e2e5dd0512a47e9034ed7c2c8d4",
|
|
48
|
+
"js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js": "2a2ad154f1f300f188e202100d35d866e81cba0ff603cb9abea8ab1b4f2b909a",
|
|
49
|
+
"js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs": "6a2716cdb7393cac0b0b231bf1b5f9886e2c876917c7af17913c57a683df2a8a",
|
|
50
|
+
"js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs": "58855d261455d390e66b8dbfccd6384a3daddcf77615490c744014c695e611b3",
|
|
51
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs": "5137bfd403c8500e1e5b5305ac7f3ca55ee68daaade624333a7c85786077713d",
|
|
52
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts": "1215d08eaa70c412628e6d160e10f3d1b211be8ff66da5d312684d6fe6905f11",
|
|
53
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs": "4c80bd843775d687d6015dcde78c3ea2a354923860d1c5d443a6035fcfce5653",
|
|
54
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform.d.mts": "27819e8b8730a6af9c84aa4b540fef010e51299f32a76739621d340046e12f11",
|
|
55
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform.mjs": "d4848e892f4863003d4022178817cf3c796975f5304bd59530b6574971b4e9c9",
|
|
56
|
+
"js/project/runtime/lightgame/1.1.0/release.json": "ddd0894b196b729b9d1e592f204897655c34dc685c0397a6dee267c47d90c55e",
|
|
57
|
+
"js/project/runtime/lightgame/1.1.0/tooling/cli.mjs": "ff2a614679a8b2fc3847efe6d0d7194e8c87d8100eaff6b9168e4e3d050465c0",
|
|
58
|
+
"js/project/runtime/lightgame/1.1.0/tooling/project.d.mts": "d8272a81789094fed7090ae0cd07f597f62b2dca16834fd6b6e9ccea81968ec8",
|
|
59
|
+
"js/project/runtime/lightgame/1.1.0/tooling/project.mjs": "d1600f6a294fe0399d9d45d20cffb7416318b2bbff497c08142ce1a568c59db2",
|
|
60
|
+
"js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts": "667e46bd016ef8ba368e53564b49b3fd571786c1672b3dbb14dc24833e0c293c",
|
|
61
|
+
"js/project/runtime/lightgame/1.1.0/tooling/vite.mjs": "58edccd64f94c442a313ce51f0698c081fa829ce18ed3173a6694c2a8619cd65",
|
|
62
|
+
"js/project/runtime/lightgame/1.1.0/tools/assets.d.mts": "50111c87e3c639383df7900c88540e91b564e560c4411b9d0292712de3712628",
|
|
63
|
+
"js/project/runtime/lightgame/1.1.0/tools/assets.mjs": "7608d8e7f0e7491bdd5b32581db77d7a622e08ee32a5cfb9ff992be252b32eda",
|
|
64
|
+
"js/project/runtime/lightgame/1.1.0/tools/astc.d.mts": "24416261df0bbfc9a22ec010eb6857bea6ee39703e6e62caf183c2adbe45cd86",
|
|
65
|
+
"js/project/runtime/lightgame/1.1.0/tools/astc.mjs": "661576a1d5e65d6079328c0e00348d2eeeae123b0310a8110edac4de92745a2f",
|
|
66
|
+
"js/project/scripts/config-export/assert-asset-wiring.mjs": "2d4903626e75b699e8ea9a53449f99498ae20d58f3132db9e0055eab514dee01",
|
|
67
|
+
"js/project/scripts/config-export/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
68
|
+
"js/project/scripts/config-export/sync-asset-controls.mjs": "ac2c05d52d34ff3f63cd61892db23c5ae3c622d5e6023d9a4b6f221bc4b8bc67",
|
|
69
|
+
"js/project/scripts/config-export.mjs": "2b36636fda0dac316129c354134a77e18d60a940210d870ae5ba18697c347d49",
|
|
70
|
+
"js/project/scripts/skill-modules/export-config/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
|
|
71
|
+
"js/project/scripts/skill-modules/export-config/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
|
|
72
|
+
"js/project/scripts/skill-modules/export-config/config.mjs": "ba99f6f54d0db4fc42d5431d0792c3f5e6981474faef3a0acf924a90b27158f8",
|
|
73
|
+
"js/project/scripts/skill-modules/export-config/installed.json": "fec5c3035b0e153b78765f7d97f27acded592d8fccd07cb728fe59d3559bcc94",
|
|
74
|
+
"js/project/scripts/skill-modules/export-config/project.d.mts": "5cf22fae66b199b92080d07ea45b686502d0605f677504177b029e0d615a5e9b",
|
|
75
|
+
"js/project/scripts/skill-modules/export-config/project.mjs": "f7a1417e019cee8efea68840ca768d414fa8106e67dd60d4f300465c9a58e541",
|
|
76
|
+
"js/project/scripts/skill-modules/export-config/vite.d.mts": "70918eaafd1b4518818533232fb9fa83e7b5df0da14927b5e2ad2288347bca23",
|
|
77
|
+
"js/project/scripts/skill-modules/export-config/vite.mjs": "6da929e7d7d59f928f468a0052e1f970b992032d461968b93b713583fdbbb86a",
|
|
78
|
+
"js/project/scripts/write-preview-ready.mjs": "9ceeb1ba6b4a686b633c5ad78db6422f38603e86d502b85281e4344bd39ce978",
|
|
79
|
+
"js/project/src/display/ui-stage.ts": "c0cfd56a244cc50fb82dc4ec013e12db45840150eef85b764a412ac1f25c7913",
|
|
80
|
+
"js/project/src/display/viewport.ts": "7b335bc6789a3f9bace1e55ff75849ca553da02414045bbbe646f42700f26653",
|
|
81
|
+
"js/project/src/main.ts": "95c615c4f8296b4c5c822e32be90888586051f99bf7b68ed79941bf4cefab454",
|
|
82
|
+
"js/project/src/platform.ts": "5b3d3d1132d25d1f8f08eb1edcc6719bc5f9737c75bd3050ef09dddd1e117ad9",
|
|
83
|
+
"js/project/src/scenes/LoadScene.ts": "6a5dfef1a33275e617983ec801a55875b09837824a9791567c42278eefe73929",
|
|
84
|
+
"js/project/src/scenes/PlayScene.ts": "9a31c41b3390420bd7ac732bd6a5624a82f37219f1b95ff1b23c4add627e0b4c",
|
|
85
|
+
"js/project/src/screenUi.ts": "f2493a628630c5649a48011ef33c72c62b50780697428c98b24e6a10f8b59bc3",
|
|
86
|
+
"js/project/src/style.css": "23c2ee94511737469d5645fdcee4fd177f92589ff6415ac5776bbe9bfc2dad70",
|
|
87
|
+
"js/project/tsconfig.json": "ff460bbe00552390594da800297aa4d1bcd0c21e07ebe2794d7fc94cf5debd58",
|
|
88
|
+
"js/project/unified_data_control_config.json": "713e928403c10e069dc2d43b74da0a5ca4323f616ee84917d7df8f2e9bc48b21",
|
|
89
|
+
"js/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
90
|
+
"craft-game-maker/SKILL.md": "6763b0b82cc354bdbe22943b393dde9a216d2c0c646b994b1012acd1fb6ab691",
|
|
91
|
+
"craft-game-maker/js.md": "d69b3635771045ab232fffe001652348046e54484e21ba4babcdb65cf9395f69",
|
|
92
|
+
"target.json": "afcfcc6fd7bc30c6ad8ff2d07f1ccfa0803a56dd31a95a76df21bf2ad0500450",
|
|
93
|
+
"bootstrap/SKILL.md": "78034b6fc8b607ad76fe2f167b7ab439d4c73c2668e5a95bfa54a85763c3beb5",
|
|
94
|
+
"recovery.md": "0946acb5fab40a2ae712052577a4edb0a922dd3cf6b0eaf63202135406bd685e"
|
|
95
|
+
},
|
|
96
|
+
"id": "d943dd47201e364836c00105623d71285fbcc3c630455c4215049b9c0634af2e"
|
|
97
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# 2D / Phaser
|
|
2
|
+
|
|
3
|
+
本上下文用于当前 Craft 本地游戏,Phaser 版本由项目 package.json 固定。需求、编码与工具调度由 ZCode 承担。
|
|
4
|
+
|
|
5
|
+
## 开始与恢复
|
|
6
|
+
|
|
7
|
+
先用 craft_game_info(name) 只读核对项目、引擎、版本和占用;需要制作时 prepare(mode=resume,request_key),轮询成功后再读取本地最新上下文并保留 work_id。读取项目 AGENTS.md、SPEC/PROGRESS.md、本次相关源码及存在的 .craft/user-rules.md;新项目由 craft_game_prepare 创建,已有项目保留源码和进度。
|
|
8
|
+
|
|
9
|
+
完整上下文就在项目 `.zcode/`:本文件为引擎入口,`knowledge/` 是引擎资料,`skills/` 是宿主可发现的领域 Skill,`skills/index.json` 是技能索引。索引按 description 选择本次所需技能,再读取 entrypoint;不要一次加载全部技能。文档中的 `${CRAFT_CONTEXT_DIR}`、`${CRAFT_PROJECT_DIR}`、`${CRAFT_SKILL_DIR}` 分别代表返回的上下文、工程和已选技能绝对路径;执行脚本时显式替换或传入,不假设终端已设置变量。
|
|
10
|
+
|
|
11
|
+
## 开发
|
|
12
|
+
|
|
13
|
+
- 玩法写入 src/scenes/PlayScene.ts,资源预加载放入 src/scenes/LoadScene.ts。src/main.ts 负责 Phaser 初始化、尺寸同步和预览桥;屏幕 UI 沿用 src/screenUi.ts 与 src/display/。
|
|
14
|
+
- 保留 game-runtime.json、Vite 插件和项目内配置导出模块。普通玩法修改不升级 runtime,不重写完整性清单。
|
|
15
|
+
- 玩法、胜负、操作和素材方案以用户要求为准。需求不明确时只澄清影响实现的部分;先形成最小可玩循环,再扩展。素材可用代码图形、用户提供或工程已有资源,按实际需求选用。
|
|
16
|
+
- 修改加载或预览接线时读 [生命周期](knowledge/Lifecycle.md);接入素材时读 [资源接线](knowledge/AssetWiring.md) 和 [地址规则](knowledge/AssetUrl.md)。配置与资源导出使用 export-config 技能。
|
|
17
|
+
- 屏幕布局按当前容器尺寸适配;坐标与 HUD 同步,保留已有输入,不把某种设备范围作为隐含需求。见 [布局与输入](knowledge/Layout.md)。
|
|
18
|
+
|
|
19
|
+
## 验收与交接
|
|
20
|
+
|
|
21
|
+
完整流程读取本目录的 `workflow.md`。实现真实的 `globalThis.__GAME_PROBE__.snapshot()`,从 Phaser 渲染帧与玩法状态返回 ready、frameCount、game;不得用定时器或固定值替代实际状态。
|
|
22
|
+
|
|
23
|
+
craft_game_check 验证最终构建和真实输入,craft_game_review 提供截图审阅,craft_game_deliver 返回同一验收快照的预览启动命令。将命令放在宿主后台任务中运行,再查询 running/snapshot 并打开 URL 核实。检查成功不等于预览已经运行。
|
|
24
|
+
|
|
25
|
+
在 SPEC/PROGRESS.md 记录已完成玩法、操作、关键文件、实际验收结果和下一步。恢复时由 MCP 自动同步官方上下文;只读恢复不改游戏内容和进度,不执行构建或导出。
|
|
26
|
+
|
|
27
|
+
## 制作任务边界
|
|
28
|
+
|
|
29
|
+
只读查看使用 `craft_game_info(name)`,不会更新项目。执行开发或可写 Skill 前,先按项目恢复入口准备本次 work(已有工程 mode=resume),轮询完成后读取本宿主的最新入口和工作流;已有 active work 沿用其 work_id,不重复准备。制作工具传入 work_id,结束后 release。详见项目宿主目录内的 recovery.md。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 资源地址
|
|
2
|
+
|
|
3
|
+
资源地址保存在对应配置 slot 中,保留已有资源的原始 URL 或相对 Path。核对实际消费字段,不把资源标识符当作可加载地址。
|
|
4
|
+
|
|
5
|
+
运行时从配置读取值,使用项目 runtime/lightgame/1.1.0/tools/assets.mjs 的 resolveAssetUrl(path, { cdnBaseUrl }) 解析相对资源;cdnBaseUrl 取 game-runtime.json 的 cdnBase。保留 HTTP、data 或 blob 地址的语义,不能把远端资源路径当成本机文件路径。
|
|
6
|
+
|
|
7
|
+
配置导出可能将同一官方地址的百分号编码解回原字符,并规范资源路径。保留导出器的结果,不能为迎合旧文本重新写回等价但冲突的路径。模型依赖由模型加载管线解析,不手动拼接压缩档位或重写模型依赖 URL。
|
|
8
|
+
|
|
9
|
+
用户提供的本地素材可作为项目资源使用;远端素材保留其有效地址,不为远端资源另造本地副本。验证资源真实加载、用途匹配、跨域与浏览器可用性。
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# 2D / Phaser 资源接线
|
|
2
|
+
|
|
3
|
+
先确认资源实际可用,定位消费者和稳定的配置 slot,再将地址与参数写入对应配置。配置更新不代表素材已被游戏使用。
|
|
4
|
+
|
|
5
|
+
按照 [地址规则](AssetUrl.md) 加载资源。核对实际类型、透明背景、比例、模型朝向与骨骼兼容性;在游戏中实际展示或播放,再验证结算和重开时的行为。加载失败保留错误和原因,不用不存在的文件或硬编码成功状态掩盖错误。
|
|
6
|
+
|
|
7
|
+
具体加载方式见 [资源加载](ResourceLoading.md)。资源修改后使用 export-config 技能,构建并在真实截图中检查结果。资源配置与画面均正确后才将本项记为完成。
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# 容器布局与输入
|
|
2
|
+
|
|
3
|
+
模板已提供 src/display/viewport.ts 与 ui-stage.ts。容器尺寸变化时同时同步画布、UI 和相机/世界取景,避免只改变 CSS 拉伸画布。初始零尺寸保留上一有效状态;避免重复初始化 ResizeObserver。
|
|
4
|
+
|
|
5
|
+
玩法范围由用户需求决定。保留已有键鼠或触摸操作,只在需求涉及相应输入时增加适配;创建引导只选择引擎。检查按钮命中区域、滚动行为、文字可读性和 HUD 遮挡,不把浏览器窗口大小当成固定分辨率。
|
|
6
|
+
|
|
7
|
+
画面提示的每个操作都应有实际事件绑定。游戏重开和场景销毁时清理监听,避免一次输入触发多次。将实际操作方式记录在 SPEC/PROGRESS.md。
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Phaser 加载与预览生命周期
|
|
2
|
+
|
|
3
|
+
模板在 main.ts 注册 PlayScene,启动 LoadScene,并将 connectPreview 挂到 Phaser canvas。保留 POST_RENDER 中的 afterRender 和销毁时的 dispose。
|
|
4
|
+
|
|
5
|
+
LoadScene 先显示可绘制的加载层,再按 configs/assets.json 的实际资源入队。图片使用 Phaser Loader image,音频用 audio,图集用 spritesheet 并提供真实帧尺寸。必要资源成功后进入 PlayScene;失败时报告具体资源,避免永久等待或将失败资源判定为可用。
|
|
6
|
+
|
|
7
|
+
预览桥 markReady 表示预览可展示首帧,可能仍处于加载画面。玩法验收探针的 ready 则必须等必要资源已加载、PlayScene 活跃并完成实际渲染;两者不能混为同一时刻。
|
|
8
|
+
|
|
9
|
+
场景切换或重开应注销旧计时器和事件、重置玩法状态,复用可复用的纹理。不能在每帧重复注册输入或加载素材。尺寸变化按模板 ResizeObserver 更新 Phaser 和 UI。
|
|
10
|
+
|
|
11
|
+
调用具体 Runtime API 前,读项目 runtime/lightgame/1.1.0/platform/platform.d.mts;资源工具读同版 tools/assets.d.mts。仅定位实现问题时再读对应 .mjs。
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Phaser 素材使用
|
|
2
|
+
|
|
3
|
+
从 configs/assets.json 取 slot 地址,按 [地址规则](AssetUrl.md) 解析后在 LoadScene 中入队。图片用 this.load.image,音频用 this.load.audio。PlayScene 实际通过 texture key 创建对象或播放音频,重开时复用已经加载的资源。
|
|
4
|
+
|
|
5
|
+
图集使用实际资源的 sheetPath、rows、cols、frameCount、loop;配置保留图集 PNG 原始 Path。加载后按真实图像和布局计算帧尺寸,不能将整张图集作为单帧。
|
|
6
|
+
|
|
7
|
+
使用 manifest JSON 的序列帧保留清单原始 URL,读取真实清单和帧布局后加载对应图集。模板 sheetUrl helper 仅适用于已经核实清单与同名 PNG 的契约,不能对任意 JSON 地址猜测图片。检查动画帧范围、透明边缘与碰撞体。
|
|
8
|
+
|
|
9
|
+
有多个依赖时,必要资源全部就绪后才进入实际玩法 ready。一次失败不能通过伪造纹理键略过。
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: export-config
|
|
3
|
+
description: Craft ZCode 项目专用;导出当前 2D / Phaser 工程的资源与可调参数配置;新增资源槽、修改配置、构建或上传前排查时使用。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 2D / Phaser 配置导出
|
|
7
|
+
|
|
8
|
+
模板已自带 scripts/skill-modules/export-config,Vite 中 gameConfig() 与 lightgame() 并列。默认值写 configs/*.json,控件元数据写同名 *.controls.json;保持业务普通 JSON import。
|
|
9
|
+
|
|
10
|
+
在项目目录执行 `node "${CRAFT_SKILL_DIR}/scripts/export-config.mjs"`。MCP 的工程检查也通过 SDK hook 调用本工程已同步版本的本地技能入口;技能与普通 `npm run config:export` 共用项目内导出流程,不查找相邻工程的上下文。
|
|
11
|
+
|
|
12
|
+
脚本同步 @slot、assets.json 与资源控件,再导出 unified_data_control_config.json,保留已有有效覆盖值。导出后核实资源 slot 有真实消费者,参数修改能改变游戏,必要加载已成功。地址规则见 [AssetUrl](../../knowledge/AssetUrl.md)。
|
|
13
|
+
|
|
14
|
+
只有配置模块确实缺失或明确升级时,才执行 `node "${CRAFT_SKILL_DIR}/scripts/install.mjs" --project "${CRAFT_PROJECT_DIR}"`;它会覆盖该模块,先检查已有改动。API 以随技能 assets/tooling/*.d.mts 为准。
|
|
15
|
+
|
|
16
|
+
导出成功不等于玩法或画面通过。继续使用 craft_game_check 与 craft_game_review 验证本次最终状态。
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { pathToFileURL } from 'node:url';
|
|
3
|
+
import { exportProjectConfig } from './project.mjs';
|
|
4
|
+
|
|
5
|
+
export async function runCli(args = process.argv.slice(2)) {
|
|
6
|
+
if ((args[0] ?? 'export-config') !== 'export-config') throw new Error('Usage: cli.mjs export-config [--project <directory>] [--check]');
|
|
7
|
+
let project = process.cwd(), check = false;
|
|
8
|
+
for (let index = 1; index < args.length; index++) {
|
|
9
|
+
if (args[index] === '--check') check = true;
|
|
10
|
+
else if (args[index] === '--project' && args[index + 1] && !args[index + 1].startsWith('--')) project = args[++index];
|
|
11
|
+
else throw new Error(`Invalid export-config option: ${args[index]}`);
|
|
12
|
+
}
|
|
13
|
+
const result = await exportProjectConfig(resolve(project), { check, onWarn: message => console.warn(`[LightGame config] ${message}`) });
|
|
14
|
+
console.log(`[LightGame] ${result.entries.length} controls ${result.changed ? 'exported' : 'unchanged'}`);
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
|
|
19
|
+
runCli().catch(error => { console.error(`[LightGame config] ${error.message}`); process.exitCode = 1; });
|
|
20
|
+
}
|
package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/config.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ControlMetadata {
|
|
2
|
+
type?: 'int' | 'float' | 'number' | 'num_slider' | 'bool' | 'boolean' | 'switch' | 'enum' | 'dropdown' | 'string' | 'text' | 'color' | 'resource';
|
|
3
|
+
enabled?: boolean; expose?: boolean; title?: string; description?: string;
|
|
4
|
+
min?: number; max?: number; step?: number; unit?: string; alpha?: boolean;
|
|
5
|
+
options?: Array<string | number | {value: string | number; label?: string}>;
|
|
6
|
+
tab?: string; group?: string; priority?: number;
|
|
7
|
+
category?: string; subcategory?: string; asset_type?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ConfigEntry {
|
|
10
|
+
schema: string; enabled: boolean; title: string; description: string;
|
|
11
|
+
locator: { tab: string; group: string; priority: number };
|
|
12
|
+
control: Record<string, unknown> & { type: string; default: unknown; value?: unknown; origin?: unknown };
|
|
13
|
+
}
|
|
14
|
+
export interface ConfigOptions { onWarn?: (message: string) => void; cdnBase?: string }
|
|
15
|
+
export function normalizeAssetUrl(value: unknown, cdnBase?: string): string;
|
|
16
|
+
export function inferControl(value: unknown, metadata?: ControlMetadata): ConfigEntry['control'] | null;
|
|
17
|
+
export function validateControlValue(control: ConfigEntry['control'], value: unknown): boolean;
|
|
18
|
+
export function createConfigEntries(owner: string, data: object, metadata?: Record<string, ControlMetadata>, previous?: ConfigEntry[], options?: ConfigOptions): ConfigEntry[];
|
|
19
|
+
export function resolveConfig<T extends object>(owner: string, data: T, metadata?: Record<string, ControlMetadata>, entries?: ConfigEntry[], options?: ConfigOptions): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:true});function resolveAssetUrl(path,{cdnBaseUrl="",baseUrl}={}){const value=String(path??"").trim();if(!value)throw new TypeError("Asset path must not be empty");if(/^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(value))return value;const encoded=encodeURI(value).replace(/%25([\da-f]{2})/gi,"%$1");const localPrefix=/^(?:assets|game|res|cfg|fonts)\//.test(value);if(cdnBaseUrl&&!localPrefix&&(value.startsWith("/Game/")||!/^(?:\/|\.\.?\/)/.test(value))){return`${cdnBaseUrl.replace(/\/+$/,"")}/${encoded.replace(/^\/+/,"")}`}return baseUrl?new URL(encoded,baseUrl).href:encoded}__name(resolveAssetUrl,"resolveAssetUrl");var has=__name((value,key)=>Object.prototype.hasOwnProperty.call(value,key),"has");var record=__name(value=>value!==null&&typeof value==="object"&&!Array.isArray(value),"record");var equal=__name((a,b)=>typeof a===typeof b&&(typeof a==="number"?Math.abs(a-b)<1e-9:a===b),"equal");var colorPattern=/^#(?:[a-f\d]{3}|[a-f\d]{4}|[a-f\d]{6}|[a-f\d]{8})$/i;var reserved=new Set(["__proto__","prototype","constructor"]);function assertKey(key,label){if(!key||key.includes(".")||reserved.has(key))throw new TypeError(`${label}: config keys must be nonempty, safe and contain no dots (${key})`)}__name(assertKey,"assertKey");function normalizeAssetUrl(value,cdnBase="https://file.craft.qq.com"){const path=String(value??"").trim().replaceAll("\\","/");return path?resolveAssetUrl(path,{cdnBaseUrl:cdnBase}):""}__name(normalizeAssetUrl,"normalizeAssetUrl");function inferControl(value,metadata={}){if(metadata.enabled===false||metadata.expose===false)return null;const kind=metadata.type??(typeof value==="number"?"number":typeof value==="boolean"?"boolean":typeof value==="string"&&colorPattern.test(value)?"color":void 0);if(!kind)return null;let control;switch(kind){case"int":case"float":case"number":case"num_slider":{if(typeof value!=="number"||!Number.isFinite(value))throw new TypeError("numeric controls require a finite numeric default");const span=Math.max(1,Math.abs(value)*2);const min=metadata.min??Math.min(0,value-span);const max=metadata.max??Math.max(1,value+span);const step=metadata.step??(kind==="int"||kind!=="float"&&Number.isInteger(value)?1:.01);if(![min,max,step].every(Number.isFinite)||min>max||step<=0||value<min||value>max)throw new TypeError("numeric min/max/step must be finite, contain the default, and step must be positive");control={type:"num_slider",default:value,min,max,step,unit:metadata.unit??""};if(kind==="int")control.integer=true;break}case"bool":case"boolean":case"switch":if(typeof value!=="boolean")throw new TypeError("switch controls require a boolean default");control={type:"switch",default:value};break;case"enum":case"dropdown":{const options=metadata.options?.map(option=>record(option)?{value:option.value,label:String(option.label??option.value)}:{value:option,label:String(option)});if(!options?.length||options.some(option=>!["string","number"].includes(typeof option.value))||new Set(options.map(option=>`${typeof option.value}:${option.value}`)).size!==options.length||!options.some(option=>equal(option.value,value)))throw new TypeError("dropdown options must be unique scalar values and contain the default");control={type:"dropdown",default:value,options};break}case"string":case"text":if(typeof value!=="string")throw new TypeError("text controls require a string default");control={type:"text",default:value};break;case"color":if(typeof value!=="string"||!colorPattern.test(value))throw new TypeError("color controls require a hexadecimal color default");control={type:"color",default:value,alpha:metadata.alpha??(value.length===5||value.length===9)};break;case"resource":if(typeof value!=="string")throw new TypeError("resource controls require a string default");control={type:"resource",default:value};for(const key of["category","subcategory","asset_type"])if(metadata[key]!==void 0)control[key]=metadata[key];break;default:throw new TypeError(`unsupported control type: ${kind}`)}return control}__name(inferControl,"inferControl");function validateControlValue(control,value){switch(control.type){case"num_slider":return typeof value==="number"&&Number.isFinite(value)&&value>=control.min&&value<=control.max&&(!control.integer||Number.isInteger(value));case"switch":return typeof value==="boolean";case"color":return typeof value==="string"&&colorPattern.test(value);case"dropdown":return control.options.some(option=>equal(option.value,value));case"text":case"resource":return typeof value==="string";default:return false}}__name(validateControlValue,"validateControlValue");function leaves(data,metadata,owner){if(!record(data)||!record(metadata))throw new TypeError(`${owner}: config and controls must be JSON objects`);const output=[];const seen=new Set;function walk(value,parts){if(Array.isArray(value))return;if(record(value)){for(const[key,child]of Object.entries(value)){assertKey(key,owner);walk(child,[...parts,key])}return}const path=parts.join(".");const meta=metadata[path]??{};if(!record(meta))throw new TypeError(`${owner}.${path}: controls metadata must be an object`);seen.add(path);try{const control=inferControl(value,meta);if(control)output.push({path,parts,control,meta,value})}catch(error){throw new TypeError(`${owner}.${path}: ${error.message}`)}}__name(walk,"walk");walk(data,[]);for(const key of Object.keys(metadata))if(!seen.has(key))throw new TypeError(`${owner}.${key}: control refers to a missing scalar field (arrays are not exposed)`);return output}__name(leaves,"leaves");function createConfigEntries(owner,data,metadata={},previous=[],options={}){assertKey(owner,"config filename");const oldBySchema=new Map((Array.isArray(previous)?previous:[]).map(item=>[item.schema,item]));return leaves(data,metadata,owner).map(({path,control,meta,value})=>{const schema=`${owner}.${path}`;const old=oldBySchema.get(schema);const oldControl=old?.control;let selected=value;let stale=oldControl?.previous_value;if(oldControl){const candidate=has(oldControl,"change_value")?oldControl.change_value:has(oldControl,"value")?oldControl.value:oldControl.default;const origin=has(oldControl,"origin")?oldControl.origin:oldControl.default;if(!equal(origin,value)&&equal(candidate,origin)){selected=value;stale=void 0}else if((control.type==="resource"||equal(origin,value))&&validateControlValue(control,candidate)){selected=candidate;if(!equal(candidate,value))stale=void 0}else if(!equal(candidate,value)){stale=candidate;options.onWarn?.(`${schema}: saved override is incompatible with the current default or constraints; using code default`)}}return{schema,enabled:old?.enabled!==false,title:meta.title??old?.title??path,description:meta.description??old?.description??"",locator:{tab:meta.tab??owner,group:meta.group??path.split(".")[0],priority:meta.priority??0},control:{...control,...control.type==="resource"?Object.fromEntries(["category","subcategory","asset_type"].filter(key=>control[key]===void 0&&oldControl?.[key]!==void 0).map(key=>[key,oldControl[key]])):{},origin:value,value:selected,...stale!==void 0?{previous_value:stale}:{}}}})}__name(createConfigEntries,"createConfigEntries");function resolveConfig(owner,data,metadata={},entries=[],options={}){const result=JSON.parse(JSON.stringify(data));const index=new Map((Array.isArray(entries)?entries:[]).map(item=>[item.schema,item]));for(const{path,parts,control,value}of leaves(data,metadata,owner)){const item=index.get(`${owner}.${path}`);let selected=value;if(item?.enabled!==false&&item?.control){const stored=item.control;const candidate=has(stored,"change_value")?stored.change_value:has(stored,"value")?stored.value:stored.default;const origin=has(stored,"origin")?stored.origin:stored.default;if(!equal(origin,value)&&equal(candidate,origin))selected=value;else if((control.type==="resource"||equal(origin,value))&&validateControlValue(control,candidate))selected=candidate;else options.onWarn?.(`${owner}.${path}: ignored incompatible saved override`)}if(control.type==="resource")selected=normalizeAssetUrl(selected,options.cdnBase);let parent=result;for(const key of parts.slice(0,-1))parent=parent[key];parent[parts.at(-1)]=selected}return result}__name(resolveConfig,"resolveConfig");export{createConfigEntries,inferControl,normalizeAssetUrl,resolveConfig,validateControlValue};
|
package/resources/targets/zcode/js/js/context/skills/export-config/assets/tooling/project.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConfigEntry, ControlMetadata } from './config.mjs';
|
|
2
|
+
export interface ConfigManifest { configs: string; cdnBase?: string; projectRoot: string }
|
|
3
|
+
export function projectPath(root: string, path: string): string;
|
|
4
|
+
export function readProjectConfigs(root: string): Promise<{ manifest: ConfigManifest; configs: Array<{ name: string; path: string; metadataPath: string; data: object; metadata: Record<string, ControlMetadata> }>; snapshotPath: string; snapshot: ConfigEntry[] }>;
|
|
5
|
+
export function exportProjectConfig(root: string, options?: { check?: boolean; onWarn?: (message: string) => void }): Promise<{ entries: ConfigEntry[]; warnings: string[]; changed: boolean }>;
|
|
6
|
+
export function resolvedProjectConfigs(root: string): Promise<Awaited<ReturnType<typeof readProjectConfigs>> & { resolved: Map<string, object> }>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { readFile, readdir, writeFile, rename, unlink } from 'node:fs/promises';
|
|
2
|
+
import { resolve, relative, isAbsolute, join, basename } from 'node:path';
|
|
3
|
+
import { randomUUID } from 'node:crypto';
|
|
4
|
+
import { createConfigEntries, resolveConfig } from './config.mjs';
|
|
5
|
+
|
|
6
|
+
export function projectPath(root, path) {
|
|
7
|
+
const target = resolve(root, path);
|
|
8
|
+
const rel = relative(resolve(root), target);
|
|
9
|
+
if (rel === '..' || rel.startsWith('../') || rel.startsWith('..\\') || isAbsolute(rel)) throw new Error(`Path escapes project: ${path}`);
|
|
10
|
+
return target;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async function readJson(path, fallback) {
|
|
14
|
+
try { return JSON.parse(await readFile(path, 'utf8')); }
|
|
15
|
+
catch (error) {
|
|
16
|
+
if (error.code === 'ENOENT' && fallback !== undefined) return fallback;
|
|
17
|
+
throw new Error(`${path}: ${error.message}`, { cause: error });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export async function readProjectConfigs(projectRoot) {
|
|
22
|
+
const root = resolve(projectRoot);
|
|
23
|
+
const manifest = { configs: 'configs', ...await readJson(join(root, 'game-runtime.json'), {}), projectRoot: root };
|
|
24
|
+
const configRoot = projectPath(root, manifest.configs);
|
|
25
|
+
let files;
|
|
26
|
+
try { files = await readdir(configRoot, { withFileTypes: true }); }
|
|
27
|
+
catch (error) {
|
|
28
|
+
if (error.code === 'ENOENT') throw new Error(`Configured directory is missing: ${configRoot}. Existing panel values were not changed.`);
|
|
29
|
+
throw error;
|
|
30
|
+
}
|
|
31
|
+
const configs = [];
|
|
32
|
+
for (const file of files.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
33
|
+
if (!file.isFile() || !file.name.endsWith('.json') || file.name.endsWith('.controls.json')) continue;
|
|
34
|
+
const name = basename(file.name, '.json');
|
|
35
|
+
const path = join(configRoot, file.name);
|
|
36
|
+
const metadataPath = join(configRoot, `${name}.controls.json`);
|
|
37
|
+
configs.push({ name, path, metadataPath, data: await readJson(path), metadata: await readJson(metadataPath, {}) });
|
|
38
|
+
}
|
|
39
|
+
const snapshotPath = join(root, 'unified_data_control_config.json');
|
|
40
|
+
const snapshot = await readJson(snapshotPath, []);
|
|
41
|
+
if (!Array.isArray(snapshot) && !(snapshot && typeof snapshot === 'object' && Object.keys(snapshot).length === 0)) {
|
|
42
|
+
throw new Error(`${snapshotPath}: expected a ConfigItem array`);
|
|
43
|
+
}
|
|
44
|
+
return { manifest, configs, snapshotPath, snapshot: Array.isArray(snapshot) ? snapshot : [] };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const exportQueues = new Map();
|
|
48
|
+
export function exportProjectConfig(projectRoot, options = {}) {
|
|
49
|
+
const key = resolve(projectRoot);
|
|
50
|
+
const previous = exportQueues.get(key) ?? Promise.resolve();
|
|
51
|
+
const next = previous.catch(() => {}).then(() => writeProjectConfig(key, options));
|
|
52
|
+
exportQueues.set(key, next);
|
|
53
|
+
return next.finally(() => { if (exportQueues.get(key) === next) exportQueues.delete(key); });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function writeProjectConfig(projectRoot, options) {
|
|
57
|
+
const state = await readProjectConfigs(projectRoot);
|
|
58
|
+
const warnings = [];
|
|
59
|
+
const entries = state.configs.flatMap(config => createConfigEntries(config.name, config.data, config.metadata, state.snapshot, { onWarn: warning => warnings.push(warning) }));
|
|
60
|
+
const output = `${JSON.stringify(entries, null, 2)}\n`;
|
|
61
|
+
let current = '';
|
|
62
|
+
try { current = await readFile(state.snapshotPath, 'utf8'); }
|
|
63
|
+
catch (error) { if (error.code !== 'ENOENT') throw error; }
|
|
64
|
+
if (current !== output) {
|
|
65
|
+
if (options.check) throw new Error('Configuration snapshot is stale. Run the export-config command before collecting the upload snapshot.');
|
|
66
|
+
const temporary = `${state.snapshotPath}.${process.pid}.${randomUUID()}.tmp`;
|
|
67
|
+
try { await writeFile(temporary, output, 'utf8'); await rename(temporary, state.snapshotPath); }
|
|
68
|
+
finally { await unlink(temporary).catch(error => { if (error.code !== 'ENOENT') throw error; }); }
|
|
69
|
+
}
|
|
70
|
+
for (const warning of warnings) options.onWarn?.(warning);
|
|
71
|
+
return { entries, warnings, changed: current !== output };
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export async function resolvedProjectConfigs(projectRoot) {
|
|
75
|
+
const state = await readProjectConfigs(projectRoot);
|
|
76
|
+
return { ...state, resolved: new Map(state.configs.map(config => [resolve(config.path), resolveConfig(config.name, config.data, config.metadata, state.snapshot, { cdnBase: state.manifest.cdnBase })])) };
|
|
77
|
+
}
|