@craft_eco/craft-mcp 0.1.28 → 0.1.30
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 +21 -60
- package/bin/craft-mcp.mjs +7 -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 +8 -2
- package/dist-server/game-workflow/context-state.mjs +67 -0
- package/dist-server/game-workflow/draft-archive.mjs +147 -2
- package/dist-server/game-workflow/draft-upload-identity.mjs +11 -0
- package/dist-server/game-workflow/draft-uploads.mjs +108 -60
- 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 +121 -4
- 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 +92 -14
- package/dist-server/game-workflow/tasks.mjs +7 -2
- package/dist-server/game-workflow/work-scope.mjs +7 -0
- package/dist-server/integrations/config.mjs +90 -16
- package/dist-server/integrations/connect.mjs +36 -0
- package/dist-server/integrations/connection-handoff.mjs +36 -0
- package/dist-server/integrations/dsh-config.mjs +182 -0
- package/dist-server/integrations/fixed-launcher.mjs +31 -0
- package/dist-server/integrations/host-reload.mjs +19 -0
- package/dist-server/integrations/hosts.mjs +27 -7
- package/dist-server/integrations/install.mjs +168 -31
- package/dist-server/integrations/installation-state.mjs +84 -0
- package/dist-server/integrations/launcher-start.mjs +52 -0
- package/dist-server/integrations/npm-diagnostics.mjs +32 -0
- package/dist-server/integrations/runtime-gc.mjs +191 -0
- package/dist-server/integrations/runtime-identity.mjs +22 -0
- package/dist-server/integrations/runtime.mjs +64 -25
- package/dist-server/integrations/updates.mjs +258 -0
- package/dist-server/integrations/version-policy.mjs +32 -0
- package/dist-server/launcher.mjs +1845 -0
- package/dist-server/mcp/control-panel.mjs +12 -24
- package/dist-server/mcp/server.mjs +150 -91
- package/dist-server/mcp/start.mjs +8 -2
- package/dist-server/mcp/update-session.mjs +107 -0
- package/dist-server/upstream/craft-aigc.mjs +43 -16
- package/dist-server/upstream/draft-source.mjs +29 -0
- package/package.json +4 -3
- package/resources/context-filter-report.json +177 -0
- package/resources/craft-create/SKILL.md +10 -2
- package/resources/craft-update/SKILL.md +23 -0
- package/resources/targets/claude/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/claude/js/context-filter-report.json +27 -0
- package/resources/targets/claude/js/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/claude/js/target.json +61 -0
- package/resources/targets/claude/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/claude/js3d/context-filter-report.json +27 -0
- package/resources/targets/claude/js3d/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/claude/js3d/target.json +60 -0
- package/resources/targets/codebuddy/js/bootstrap/SKILL.md +7 -1
- package/resources/targets/codebuddy/js/context-filter-report.json +27 -0
- package/resources/targets/codebuddy/js/craft-game-maker/SKILL.md +24 -29
- 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 +14 -4
- package/resources/targets/codebuddy/js/target.json +1 -1
- package/resources/targets/codebuddy/js3d/bootstrap/SKILL.md +7 -1
- package/resources/targets/codebuddy/js3d/context-filter-report.json +27 -0
- package/resources/targets/codebuddy/js3d/craft-game-maker/SKILL.md +24 -29
- 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 +14 -4
- package/resources/targets/codebuddy/js3d/target.json +1 -1
- package/resources/targets/codex/js/bootstrap/SKILL.md +7 -1
- package/resources/targets/codex/js/context-filter-report.json +27 -0
- package/resources/targets/codex/js/craft-game-maker/SKILL.md +24 -29
- 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 +7 -1
- package/resources/targets/codex/js3d/context-filter-report.json +27 -0
- package/resources/targets/codex/js3d/craft-game-maker/SKILL.md +24 -29
- 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 +20 -0
- package/resources/targets/cursor/js/context-filter-report.json +27 -0
- package/resources/targets/cursor/js/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/cursor/js/target.json +61 -0
- package/resources/targets/cursor/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/cursor/js3d/context-filter-report.json +27 -0
- package/resources/targets/cursor/js3d/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/cursor/js3d/target.json +60 -0
- package/resources/targets/dsh/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/dsh/js/context-filter-report.json +27 -0
- package/resources/targets/dsh/js/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/dsh/js/target.json +61 -0
- package/resources/targets/dsh/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/dsh/js3d/context-filter-report.json +27 -0
- package/resources/targets/dsh/js3d/craft-game-maker/SKILL.md +72 -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 +17 -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 +20 -0
- package/resources/targets/kimi/js/context-filter-report.json +27 -0
- package/resources/targets/kimi/js/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/kimi/js/target.json +61 -0
- package/resources/targets/kimi/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/kimi/js3d/context-filter-report.json +27 -0
- package/resources/targets/kimi/js3d/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/kimi/js3d/target.json +60 -0
- package/resources/targets/workbuddy/js/bootstrap/SKILL.md +9 -1
- package/resources/targets/workbuddy/js/context-filter-report.json +27 -0
- package/resources/targets/workbuddy/js/craft-game-maker/SKILL.md +24 -29
- 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 +10 -6
- 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 +16 -4
- package/resources/targets/workbuddy/js/target.json +1 -1
- package/resources/targets/workbuddy/js3d/bootstrap/SKILL.md +9 -1
- package/resources/targets/workbuddy/js3d/context-filter-report.json +27 -0
- package/resources/targets/workbuddy/js3d/craft-game-maker/SKILL.md +24 -29
- 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 +10 -6
- 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 +16 -4
- package/resources/targets/workbuddy/js3d/target.json +1 -1
- package/resources/targets/zcode/js/bootstrap/SKILL.md +20 -0
- package/resources/targets/zcode/js/context-filter-report.json +27 -0
- package/resources/targets/zcode/js/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/zcode/js/target.json +61 -0
- package/resources/targets/zcode/js3d/bootstrap/SKILL.md +20 -0
- package/resources/targets/zcode/js3d/context-filter-report.json +27 -0
- package/resources/targets/zcode/js3d/craft-game-maker/SKILL.md +72 -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 +17 -0
- package/resources/targets/zcode/js3d/target.json +60 -0
- package/vendor/craft-runtime/SOURCE.json +3 -3
- package/vendor/craft-runtime/package.json +1 -1
- package/dist-server/game-workflow/publication-materials.mjs +0 -92
- package/dist-server/game-workflow/publications.mjs +0 -164
- package/dist-server/game-workflow/publish-capture-worker.mjs +0 -57
- package/dist-server/game-workflow/publish-capture.mjs +0 -75
- package/dist-server/mcp/publication-page.html +0 -86
- package/dist-server/mcp/publication-page.mjs +0 -375
- package/dist-server/mcp/publication-preview.mjs +0 -63
- package/dist-server/mcp/publication-tools.mjs +0 -22
- package/dist-server/mcp/publish-panel.mjs +0 -205
- package/dist-server/upstream/publication-transport.mjs +0 -101
- 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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
html, body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background: #000;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* 容器必须是定位上下文:canvas 与 #ui-root 都以它为基准铺满 */
|
|
10
|
+
#game {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#game > canvas {
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ── 适配层骨架(尺寸与 transform 由 src/display/ui-stage.ts 逐次同步) ── */
|
|
22
|
+
|
|
23
|
+
#ui-root {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* #ui-stage 的逻辑尺寸与 transform 由 ui-stage.ts 每次 resize 重设。
|
|
33
|
+
* 禁止给它写 transform(含 transition / animation 里的 transform):
|
|
34
|
+
* 它的 transform 是「居中 + 缩放」的唯一承载,被覆盖后整层 UI 会偏移或失去缩放。
|
|
35
|
+
* overflow: hidden 是 runtime 内联样式没有的,必须由这里补上。
|
|
36
|
+
*/
|
|
37
|
+
#ui-stage {
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 50%;
|
|
40
|
+
top: 50%;
|
|
41
|
+
transform-origin: center center;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* ── 设计令牌(单位均为设计像素,实际显示尺寸 = 设计像素 × --ui-scale) ── */
|
|
47
|
+
|
|
48
|
+
:root {
|
|
49
|
+
--ui-primary: #4aa3ff;
|
|
50
|
+
--ui-primary-strong: #2f7fe0;
|
|
51
|
+
--ui-accent: #ffc247;
|
|
52
|
+
--ui-danger: #ff5a5a;
|
|
53
|
+
--ui-success: #48d597;
|
|
54
|
+
--ui-text: #f2f7ff;
|
|
55
|
+
--ui-text-dim: #c3cede;
|
|
56
|
+
--ui-text-dark: #1b2230;
|
|
57
|
+
--ui-panel-bg: rgba(16, 22, 34, 0.82);
|
|
58
|
+
--ui-panel-border: rgba(255, 255, 255, 0.16);
|
|
59
|
+
--ui-scrim: rgba(0, 0, 0, 0.55);
|
|
60
|
+
|
|
61
|
+
/* 默认字号示例,业务按实际可读性调整 */
|
|
62
|
+
--ui-font-xl: 64px;
|
|
63
|
+
--ui-font-lg: 44px;
|
|
64
|
+
--ui-font-md: 32px;
|
|
65
|
+
--ui-font-sm: 24px;
|
|
66
|
+
|
|
67
|
+
--ui-gap-xs: 8px;
|
|
68
|
+
--ui-gap-sm: 16px;
|
|
69
|
+
--ui-gap-md: 28px;
|
|
70
|
+
--ui-gap-lg: 48px;
|
|
71
|
+
|
|
72
|
+
--ui-radius-sm: 8px;
|
|
73
|
+
--ui-radius-md: 16px;
|
|
74
|
+
--ui-radius-lg: 28px;
|
|
75
|
+
--ui-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
|
|
76
|
+
--ui-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
77
|
+
--ui-shadow-text: 0 2px 6px rgba(0, 0, 0, 0.75);
|
|
78
|
+
|
|
79
|
+
/* 贴边控件的最小留白,替代「贴 0」 */
|
|
80
|
+
--ui-page-margin: 32px;
|
|
81
|
+
|
|
82
|
+
--ui-font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
83
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
+
"types": ["vite/client"],
|
|
8
|
+
|
|
9
|
+
"strict": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"useDefineForClassFields": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["src"],
|
|
19
|
+
"exclude": ["node_modules", "dist", "src/**/*.test.ts"]
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"schema": "game.background",
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"title": "背景颜色",
|
|
6
|
+
"description": "",
|
|
7
|
+
"locator": {
|
|
8
|
+
"tab": "场景",
|
|
9
|
+
"group": "画面",
|
|
10
|
+
"priority": 0
|
|
11
|
+
},
|
|
12
|
+
"control": {
|
|
13
|
+
"type": "color",
|
|
14
|
+
"default": "#222222",
|
|
15
|
+
"alpha": false,
|
|
16
|
+
"origin": "#222222",
|
|
17
|
+
"value": "#222222"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import { lightgame } from './runtime/lightgame/1.1.0/tooling/vite.mjs';
|
|
3
|
+
import { gameConfig } from './scripts/skill-modules/export-config/vite.mjs';
|
|
4
|
+
|
|
5
|
+
export default defineConfig({ base: './', plugins: [lightgame(), gameConfig()] });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 恢复当前 Kimi Code CLI / 3D / Three.js 游戏
|
|
2
|
+
|
|
3
|
+
新会话首次处理本项目时,用 `craft_game_info(name)` 核对目录,再自动调用只读 `craft_update_check(name,request_key)`。继续制作且 update_available=true、automatic_update_enabled=true 时,调用 `craft_update(name,mode:"auto",request_key)` 安装兼容新版。纯查看不安装;检查、安装及 prepare 复用同一 request_key,prepare 也会兜底检查。
|
|
4
|
+
|
|
5
|
+
新版安装后,当前 MCP 进程继续使用原版本;在下次启动或用户重连后加载新版,不主动重载或结束工作。重连前完成后台任务、记录进度并 release。重连后用当前聊天的 craft_game_info 核对实际 version、build_id、active_verified 和 host/workspace/platform;安装回执或独立探测不能代替核验。只对明确未开始的 prepare 复用 request_key,不重放结果不明的操作。
|
|
6
|
+
|
|
7
|
+
新版确认后调用 `craft_game_prepare(name,mode:"resume",request_key)`,更新当前宿主、原引擎的上下文正文、技能索引、受管 Skill 和恢复入口。轮询完成后重新读取入口、索引和所需正文;磁盘更新不代表模型已采用新内容。
|
|
8
|
+
|
|
9
|
+
本套资料安装在项目 `.kimi-code/`。请在该游戏项目目录开启会话,从 `.kimi-code/AGENTS.md` 和项目 `craft-project` Skill 恢复。使用本宿主目录下的 `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 不重建模板、不安装依赖、不构建或导出。更新只在准备阶段发生,查询不更新文件。
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"host": "kimi",
|
|
4
|
+
"engine": "js3d",
|
|
5
|
+
"version": "1.0.6",
|
|
6
|
+
"template": {
|
|
7
|
+
"path": "engines/js3d/project",
|
|
8
|
+
"files": {
|
|
9
|
+
"configs/game.controls.json": "c353f210e7d63c4042cc4a58163e90cc9dc55b3bb5789547dbf913f1e553d2fa",
|
|
10
|
+
"configs/game.json": "3289dc2a6fb9a75e47e59dd95507a91a5337352a3ae5a0f7dbaf14a2ab16ad88",
|
|
11
|
+
"game-runtime.json": "9e6d4974f371478ce507ae208de580e248175a0d99941aa0d10465243fd4ad69",
|
|
12
|
+
"game.config.json": "0d50535f695a1be2c7a1649953fedd112d02a078ceda11c22391b21c05a22c0e",
|
|
13
|
+
"index.html": "a25f8666871ce75e8fdeb61a594e85157ce64cded229a86169c2ba041f5d8e0a",
|
|
14
|
+
"package.json": "684facc1618eb21e1265b5446f73601766b1c6654f861dd4c8060b49b2a6f2da",
|
|
15
|
+
"README.md": "32891670b2233abae4e6bf9b01b90a4fc10f005c4eaa9cec2359f0f984e2e495",
|
|
16
|
+
"runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js": "2a2ad154f1f300f188e202100d35d866e81cba0ff603cb9abea8ab1b4f2b909a",
|
|
17
|
+
"runtime/lightgame/1.1.0/platform/identity/qq-session.mjs": "6a2716cdb7393cac0b0b231bf1b5f9886e2c876917c7af17913c57a683df2a8a",
|
|
18
|
+
"runtime/lightgame/1.1.0/platform/identity/shared.mjs": "58855d261455d390e66b8dbfccd6384a3daddcf77615490c744014c695e611b3",
|
|
19
|
+
"runtime/lightgame/1.1.0/platform/platform-capture-video.mjs": "5137bfd403c8500e1e5b5305ac7f3ca55ee68daaade624333a7c85786077713d",
|
|
20
|
+
"runtime/lightgame/1.1.0/platform/platform-service.d.mts": "1215d08eaa70c412628e6d160e10f3d1b211be8ff66da5d312684d6fe6905f11",
|
|
21
|
+
"runtime/lightgame/1.1.0/platform/platform-service.mjs": "4c80bd843775d687d6015dcde78c3ea2a354923860d1c5d443a6035fcfce5653",
|
|
22
|
+
"runtime/lightgame/1.1.0/platform/platform.d.mts": "d3a4542667006d41bc6d7f96ba3d662757b20a89f54f3f341459d89bc4b5194d",
|
|
23
|
+
"runtime/lightgame/1.1.0/platform/platform.mjs": "3cf41a5f98b43bd58bc6d3c16ee8375496aea6bf1b588fca9c369c88cbc96a78",
|
|
24
|
+
"runtime/lightgame/1.1.0/release.json": "d3d3775587d61ee5d3e677100a451a5dde38bdfeac14af237011e31496c9f4f9",
|
|
25
|
+
"runtime/lightgame/1.1.0/tooling/cli.mjs": "ff2a614679a8b2fc3847efe6d0d7194e8c87d8100eaff6b9168e4e3d050465c0",
|
|
26
|
+
"runtime/lightgame/1.1.0/tooling/project.d.mts": "d8272a81789094fed7090ae0cd07f597f62b2dca16834fd6b6e9ccea81968ec8",
|
|
27
|
+
"runtime/lightgame/1.1.0/tooling/project.mjs": "d1600f6a294fe0399d9d45d20cffb7416318b2bbff497c08142ce1a568c59db2",
|
|
28
|
+
"runtime/lightgame/1.1.0/tooling/vite.d.mts": "667e46bd016ef8ba368e53564b49b3fd571786c1672b3dbb14dc24833e0c293c",
|
|
29
|
+
"runtime/lightgame/1.1.0/tooling/vite.mjs": "58edccd64f94c442a313ce51f0698c081fa829ce18ed3173a6694c2a8619cd65",
|
|
30
|
+
"runtime/lightgame/1.1.0/tools/assets.d.mts": "50111c87e3c639383df7900c88540e91b564e560c4411b9d0292712de3712628",
|
|
31
|
+
"runtime/lightgame/1.1.0/tools/assets.mjs": "2f49509e8ea4414be53e4103668b34d14f189e11b011a804e75dc8f323cdd8c4",
|
|
32
|
+
"runtime/lightgame/1.1.0/tools/astc.d.mts": "24416261df0bbfc9a22ec010eb6857bea6ee39703e6e62caf183c2adbe45cd86",
|
|
33
|
+
"runtime/lightgame/1.1.0/tools/astc.mjs": "f95d04d42d7dc4d838ef1ca785f116901219f6bbd9e14a762d81b0c494091720",
|
|
34
|
+
"runtime/lightgame/1.1.0/tools/glb.d.mts": "9c221722bb9464da819d0967774e0bea2dd5d1520fad2c11532f0c71939fec47",
|
|
35
|
+
"runtime/lightgame/1.1.0/tools/glb.mjs": "4e4386543ca125b78b63ec0bb0bea667d08428edcfa16ea6e07a110b61642b47",
|
|
36
|
+
"scripts/config-export/assert-asset-wiring.mjs": "3748ded336470b9c54c749b55c29e227800caa7a693af748a3820c4e56228e0a",
|
|
37
|
+
"scripts/config-export/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
38
|
+
"scripts/config-export/sync-asset-controls.mjs": "f1976a108d006545f89aef15610fdc14867d1f01db7e365d8d8101442bfe0514",
|
|
39
|
+
"scripts/config-export/sync-scene-assets.mjs": "d6c467a909edf775f3cfdab0b4746a3a5b4a0d96f6b257d5dabc0ac8107bd3a8",
|
|
40
|
+
"scripts/config-export.mjs": "cdd80708113dbe807365c1189a14da572ecab76c9fac0505138eb964635c2184",
|
|
41
|
+
"scripts/skill-modules/export-config/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
|
|
42
|
+
"scripts/skill-modules/export-config/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
|
|
43
|
+
"scripts/skill-modules/export-config/config.mjs": "29b7b5242900f505f6cf5cf2c09f598e02413a657b37b4561086d464d637ba6c",
|
|
44
|
+
"scripts/skill-modules/export-config/installed.json": "fec5c3035b0e153b78765f7d97f27acded592d8fccd07cb728fe59d3559bcc94",
|
|
45
|
+
"scripts/skill-modules/export-config/project.d.mts": "5cf22fae66b199b92080d07ea45b686502d0605f677504177b029e0d615a5e9b",
|
|
46
|
+
"scripts/skill-modules/export-config/project.mjs": "f7a1417e019cee8efea68840ca768d414fa8106e67dd60d4f300465c9a58e541",
|
|
47
|
+
"scripts/skill-modules/export-config/vite.d.mts": "70918eaafd1b4518818533232fb9fa83e7b5df0da14927b5e2ad2288347bca23",
|
|
48
|
+
"scripts/skill-modules/export-config/vite.mjs": "6da929e7d7d59f928f468a0052e1f970b992032d461968b93b713583fdbbb86a",
|
|
49
|
+
"scripts/write-preview-ready.mjs": "9ceeb1ba6b4a686b633c5ad78db6422f38603e86d502b85281e4344bd39ce978",
|
|
50
|
+
"src/display/ui-stage.ts": "c52c1559f0a76192a3f8f1eb7f661670e1e1ef30430a581bf4925d77dac3664b",
|
|
51
|
+
"src/display/viewport.ts": "89f112cf0ba8fc2227b4c95d3bc9adf942eac71697ea49a5be20e2aa9286160c",
|
|
52
|
+
"src/main.ts": "4a6a46e91f5cde9ec63db81c1a48b528c54be750565905a4d67f757f1067e393",
|
|
53
|
+
"src/platform.ts": "3d27435150d9fc6b959e702862cf3dee31b593e2fbaddece23dddaa70363fa45",
|
|
54
|
+
"src/style.css": "06f6bbfabd6fd0301b494b86a4800c870965a7887628bba76afc982872dd687e",
|
|
55
|
+
"tsconfig.json": "ff460bbe00552390594da800297aa4d1bcd0c21e07ebe2794d7fc94cf5debd58",
|
|
56
|
+
"unified_data_control_config.json": "713e928403c10e069dc2d43b74da0a5ca4323f616ee84917d7df8f2e9bc48b21",
|
|
57
|
+
"vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -6,9 +6,17 @@ description: 使用 Craft 新建 2D、3D 游戏或玩法原型。Create a new 2D
|
|
|
6
6
|
<!-- craft-mcp:bootstrap:v1 -->
|
|
7
7
|
# 创建 Craft 游戏
|
|
8
8
|
|
|
9
|
+
新会话首次处理 Craft 创建请求时,自动调用只读 `craft_update_check(request_key)`。若 update_available=true 且 automatic_update_enabled=true,调用 `craft_update(mode:"auto",request_key)` 安装兼容新版;两个工具与 prepare 复用同一 request_key。有既有工作时先完成并 release,再开始新的准备。pending_reconnect 表示新版已安装、本次准备未开始,等待下次启动或用户重连;查询不写安装记录或项目。prepare 仍会兜底检查与更新。
|
|
10
|
+
|
|
11
|
+
新版安装后,当前 MCP 进程继续使用原版本;在下次启动或用户重连后加载新版,不主动重载或结束工作。重连前完成后台任务、记录进度并 release。重连后用当前聊天的 craft_game_info 核对实际 version、build_id、active_verified 和 host/workspace/platform;安装回执或独立探测不能代替核验。只对明确未开始的 prepare 复用 request_key,不重放结果不明的操作。 WorkBuddy 重连仍旧时,从 Windows 托盘完整退出再打开;只有宿主实际提示信任时才由用户确认。
|
|
12
|
+
|
|
9
13
|
1. 当前目录已有 Craft 工程时,先读项目 `AGENTS.md` 并恢复该工程。创建新游戏时,调用 `craft_game_info`,核对服务的 workspace 和平台;游戏将创建在 `<workspace>/<name>`,不自动跟随宿主当前目录。
|
|
10
14
|
2. 创建选项只展示 **2D / Phaser**(`js`)和 **3D / Three.js**(`js3d`)。用户已明确选择时直接沿用;尚未明确时结合玩法给出推荐和简短理由,使用宿主可用的提问交互收集选择,不可用时用文字询问。用户让你决定时按需求选择并说明,不重复确认已有选择。选定引擎后,使用英文小写、数字和连字符组成 name,调用 `craft_game_info({"engine":"js"})`(3D 使用 `js3d`)读取对应指南。
|
|
11
|
-
3. 调用 `craft_game_prepare({"name":"项目名","engine":"js"})` 并轮询返回的任务至完成。核对 project、engine、context_binding 和 project_context,将 project 作为当前工作目录。读取返回的 `context.workflow`、`context.engine.entrypoint` 和 `context.engine.skills_index`,按索引 description 选择技能,并相对于 context.engine.directory 读取 entrypoint
|
|
15
|
+
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,不新建重复任务。
|
|
12
16
|
4. 遵循当前引擎指南和用户需求完成游戏,将设计与实际开发进度保存在项目 SPEC 文件中,更新 `SPEC/PROGRESS.md`。通过 `craft_game_check`、`craft_game_review` 验收,再按 `craft_game_deliver` 返回命令启动并确认预览。
|
|
13
17
|
|
|
18
|
+
完成或暂停制作时,等待后台任务结束,记录进度并调用 `craft_game_release(name,work_id)`;无需关闭 MCP。新一轮制作使用新的 request_key,已结束的请求不可复活。
|
|
19
|
+
|
|
14
20
|
MCP 未连接时,先在当前宿主连接 Craft 服务。新会话从项目 `AGENTS.md` 和 `craft-project` Skill 恢复,资源路径重新通过工具查询。
|
|
21
|
+
|
|
22
|
+
在 WorkBuddy 打开实际游戏子目录;遇到打开方式提示时,由用户确认可信项目并选择“正常打开”。项目 Skill 位于 `.workbuddy/skills`,新会话通过 `craft-project` 恢复。没有原生加载回执时,不把文件存在或主动读取正文当作自动发现成功。
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"config": "context-filters.json",
|
|
4
|
+
"config_sha256": "8eeef2b88f93dbf9ce4f1c7229bd01fdd93d76c75dce43f03b2649d418084763",
|
|
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
|
+
"workbuddy/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
|
+
}
|
|
@@ -1,61 +1,48 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: craft-game-maker
|
|
3
|
-
description: Make or modify local Craft 2D/Phaser and 3D/Three.js games in AI IDEs, including
|
|
3
|
+
description: Make or modify local Craft 2D/Phaser and 3D/Three.js games in AI IDEs, including gameplay checks and preview.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Craft 本地小游戏制作
|
|
7
7
|
|
|
8
|
-
Craft MCP
|
|
8
|
+
Craft MCP 提供工程准备、构建、验收与预览能力。制作流程以用户需求、当前工程及本指南为准。
|
|
9
9
|
|
|
10
10
|
## 默认交互
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
制作前读取当前引擎入口,按实际技能索引选择本次需要的技能。资源使用遵循本工程的配置与加载规范。
|
|
13
13
|
|
|
14
|
-
使用平台能力前调用 `craft_auth_status`。已登录直接继续;仅未登录时展示工具返回的 `user_message`,不自行拼地址。`auth_mode:token` 由用户在
|
|
14
|
+
使用平台能力前调用 `craft_auth_status`。已登录直接继续;仅未登录时展示工具返回的 `user_message`,不自行拼地址。`auth_mode:token` 由用户在 宿主凭证设置或连接器表单更新凭证并重新连接;普通安装由用户在工具返回的本机页面登录。连接后复用原工程和请求继续。网络错误不要求重新登录;服务失败如实报告并保留记录。
|
|
15
15
|
|
|
16
16
|
禁止读取凭据文件、自动填写登录页或连接器凭证表单,或要求用户把 Token 发到聊天、写配置;链接中不得带 Token。
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
使用召回时,按工程引擎提交 1~8 个 slot/category/query,轮询后检查候选、score、metadata 和错误。选中后用 `craft_assets_import` 传 `source:"library"`、search_id、candidate_id、slot、request_key;一批只含一种来源。AssetId 不当作 AIGC resource_id,不手填或猜测候选外的资源地址。搜索操作本身不生成素材;后续素材决策遵守当前引擎上下文与用户要求,不因错误换 key 盲重试,也不把召回素材冒充 AI 产物。
|
|
18
|
+
后台任务、资源接线、测试、看图和修复持续推进,直到交付或明确受阻;需要用户登录、用户取消时停下说明。交付预览链接、玩法和操作键。
|
|
21
19
|
|
|
22
20
|
## 连续工作流
|
|
23
21
|
|
|
24
22
|
MCP 的 `workspace` 是游戏父目录,实际游戏为 `<workspace>/<name>`,不自动跟随宿主当前工作目录。默认 `~/CraftGames`;可在宿主 MCP 环境配置中显式设置 `CLIENT_WORKSPACE_ROOT`,或用 `craft-mcp --workspace <绝对父目录>` 启动。修改设置后重连并核对 `craft_game_info.workspace`。准备完成后将返回的 `project` 打开为宿主工作目录。
|
|
25
23
|
|
|
26
|
-
prepare 会维护项目根 `AGENTS.md` 的 Craft 段,并为已选择的宿主生成项目恢复 Skill;实际路径以返回的 `project_context.entrypoint` 和 `project_context.skill` 为准。未指定宿主时不生成宿主专用目录。用户已有正文保留,同名用户 Skill 不覆盖,结果会标记 `preserved_user_file`。项目的 `.craft/context-lock.json`
|
|
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 接入,游戏源码和已有进度保留。
|
|
27
25
|
|
|
28
26
|
项目事实放在 SPEC 设计文档与 `SPEC/PROGRESS.md`;prepare 只在进度文件缺失时建立初始记录,不替换已有内容。开始工作先读取这些记录并核对源码;完成开发、验收或遇到阻塞后更新玩法、操作、已完成/待办、关键文件、验收任务与下一步。新会话据此恢复,不依赖上一轮聊天或宿主个人记忆。只读请求不写进度。
|
|
29
27
|
|
|
30
28
|
1. **先读引擎说明,再制作游戏。** 新建时仅展示 2D / Phaser(js)和 3D / Three.js(js3d)。沿用用户明确选择;尚未明确时按玩法推荐并收集选择,用户授权代选时直接决定并说明。选定后调用 `craft_game_info(engine)`;继续游戏用 `craft_game_info(name)` 获取已保存的引擎,不重新选择。开始设计、编码或修改前完整读取 `context.engine.entrypoint`,其余参考文档按需加载。
|
|
31
|
-
2. 调用 `craft_game_prepare
|
|
32
|
-
3.
|
|
33
|
-
4.
|
|
34
|
-
5.
|
|
35
|
-
6.
|
|
36
|
-
7. 调用 `craft_game_check` 执行引擎收尾、构建和浏览器采集。依次提供 `loop`、`settlement`、`restart` 三步,每步包含 action、expected 和真实玩法断言。
|
|
37
|
-
8. gate.passed 后调用 `craft_game_review`,逐一查看初始、主循环、结算、重开四张截图,检查素材、构图、比例、文字、遮挡、透明边缘和玩法反馈;有问题就修复并重验。浏览器或截图不可用时报告未验证。
|
|
38
|
-
9. 玩法和视觉均通过后,调用 `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)` 停止。源码或构建产物变化后重新检查、交付。
|
|
39
|
-
|
|
40
|
-
用户要求上传 Craft 私有草稿时,先通过检查与看图,再调用 `craft_game_upload(name,check_task_id)`。同一目录、name、账号和平台自动复用 appid,修改后重新检查上传只新增版本;中断时保留原 check_task_id 重试。发布与本地预览使用相同的资源配置:保留 AIGC 原始 URL、召回原始相对路径,按引擎配置解析 CDN;同时验证远端资源在目标浏览器和公开托管中实际可用。用 `craft_task_status` 等待上传,用 `craft_game_publish_status(name,check_task_id)` 查询同一版本。`draft_ready` 表示私有上传完成,交付项目 ID、版本 ID 与摘要,不代表公开发布,也不提供云端预览链接。试玩与交付预览沿用 IDE 本地的 `craft_game_deliver` 启动流程,不以云端试玩作为上传完成条件。
|
|
41
|
-
|
|
42
|
-
用户要求公开发布时,优先调用 `craft_game_publish_open(name,check_task_id)` 并向用户展示返回的本地发布页链接。页面可编辑材料、查看验收冻结版本和最终图片,使用原有 30 秒真实采集;只有用户勾选确认具体 revision 后才上传公开图片并提审。页面不依赖安装桌面客户端;同一 publication_id 可重新打开恢复。发布完成以目标版本审核完成及公开链接为准。
|
|
43
|
-
|
|
44
|
-
需要由工具准备材料时,先完成私有上传,调用 `craft_game_publish_options` 获取当前分类。AI IDE 根据游戏准备名称、简介/操作说明、分类、标签和封面;封面可用工程内 PNG/JPEG,省略时使用真实游戏截图。调用 `craft_game_publish_prepare(name,check_task_id,materials)`,轮询完成;MCP 对同一冻结版本真实试玩至少 30 秒,生成展示图和审核抽帧,不用四张普通验收图冒充完整采集。
|
|
45
|
-
|
|
46
|
-
随后调用 `craft_game_publish_review(name,publication_id)`,向用户展示完整文案、封面、截图、目标版本、是否开放二创,以及图片上传后为公开 URL 的事实。取得用户对本次 `revision` 的明确确认后,才调用 `craft_game_publish_submit(name,publication_id,revision,confirmed:true)`。材料变化须重新准备、看图和确认;准备完成不表示获得了提交授权。
|
|
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,work_id)`,填写实际观察。返回 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,work_id)` 停止。源码或构建产物变化后重新检查、交付。
|
|
47
34
|
|
|
48
|
-
|
|
35
|
+
用户要求上传或发布时,先完成本地检查与看图。上传前明确告知用户:“本次上传会以本地源码和 dist 新增云端版本,并将它设为当前版本;不会合并或保留 Web 侧尚未同步到本地的修改。原有历史版本仍保留,可在 Web 回退。”默认调用 `craft_game_upload(name,check_task_id,work_id,upload_mode:"current_project")`,同一工程、账号和平台沿用绑定的 appid,首次未绑定时创建项目。
|
|
49
36
|
|
|
50
|
-
|
|
37
|
+
仅当用户明确要求“新建项目”或“上传为新项目”时,传 `upload_mode:"new_project"`,并为这次操作生成唯一 `request_key`。这会创建新 appid,成功后自动切换本地绑定;后续默认上传进入新项目,原项目及其历史保留。新建云端项目不需要重建本地工程。
|
|
51
38
|
|
|
52
|
-
|
|
39
|
+
使用 `craft_task_status` 等待,或用 `craft_game_upload_status` 查询;中断、重试和状态查询必须复用原 `check_task_id`、`upload_mode` 和 `request_key`,不能为重试生成新 key。修改源码后重新检查;同一检查结果再次新建项目时,仅在用户明确提出新操作后使用新 key。收到 `draft_ready` 后,向用户报告后端实际返回的版本号 `v{version_number}`、appid 和可点击的 `project_url`,不要推算版本号或将上传说成已发布。源码和 dist 分别上传并绑定同一版本,源码保持私有;用户在 Craft 网页试玩、填写材料并提交发布。
|
|
53
40
|
|
|
54
41
|
## 引擎参考上下文
|
|
55
42
|
|
|
56
43
|
连接时发送通用指南,选定引擎后的 info/prepare 结果附专用指南。`context.workflow` 为通用指南,`context.engine.guide` 为专用指南,`context.engine.directory` 为引擎上下文,`context.references` 为按需文档。
|
|
57
44
|
|
|
58
|
-
引擎 `AGENTS.md
|
|
45
|
+
引擎 `AGENTS.md`、实际可用技能及用户要求决定实现方式;本指南定义 Craft MCP 的调用流程。`craft_game_check` 包含配置导出、构建和采集;`craft_game_review` 返回实际截图供审阅,检查布局、地面接触、尺寸、裁剪、可读性及所需透明效果。保留模板的渲染、就绪、资源释放和配置导出行为。
|
|
59
46
|
|
|
60
47
|
## 玩法观测
|
|
61
48
|
|
|
@@ -74,4 +61,12 @@ prepare 会维护项目根 `AGENTS.md` 的 Craft 段,并为已选择的宿主
|
|
|
74
61
|
]
|
|
75
62
|
```
|
|
76
63
|
|
|
77
|
-
支持本地 2D/Phaser、3D/Three.js
|
|
64
|
+
支持本地 2D/Phaser、3D/Three.js、工程检查、本地预览和私有版本上传。目录校验不构成同 UID 的 OS 沙箱;禁止读取宿主私有状态或修改安装包。
|
|
65
|
+
|
|
66
|
+
## 结束与交接
|
|
67
|
+
|
|
68
|
+
完成或暂停编辑时,等待后台任务结束,更新 `SPEC/PROGRESS.md` 并调用 `craft_game_release(name,work_id)`;释放不关闭 MCP、不停止只读预览。新会话先 info 核对项目,再 craft_update_check(name,request_key) 只读检查版本。继续制作前发现 update_available=true 且 automatic_update_enabled=true 时,自动 craft_update(name,mode=auto,request_key) 安装兼容新版;prepare 自身也检查,与前置检查复用 request_key。
|
|
69
|
+
|
|
70
|
+
新版安装后,当前 MCP 进程继续使用原版本;在下次启动或用户重连后加载新版,不主动重载或结束工作。重连前完成后台任务、记录进度并 release。重连后用当前聊天的 craft_game_info 核对实际 version、build_id、active_verified 和 host/workspace/platform;安装回执或独立探测不能代替核验。只对明确未开始的 prepare 复用 request_key,不重放结果不明的操作。
|
|
71
|
+
|
|
72
|
+
新版运行后,prepare(resume) 同步当前宿主及原引擎的兼容上下文和 Skill,保留源码、用户规则与进度。当前 work 内保持原版本和 context_revision,更新只在准备阶段发生。同步后重读入口、技能索引和所需正文;原生 Skill 发现结果单独核对。纯查看不 prepare、不更新项目。
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
-
- `LoadScene` 负责预加载,`PlayScene` 实现玩法。图片、音频及序列帧按引擎 `knowledge/
|
|
6
|
-
-
|
|
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
7
|
- 修改加载场景时按需读取 `context.references.loading`;补充玩法观测时遵守 `context.workflow` 中的玩法观测约定。
|
|
8
8
|
- 验收前按 `context.workflow` 的玩法观测约定显式安装 `globalThis.__GAME_PROBE__.snapshot()`;缺少探针时必须补齐。旧工程已有探针时保留并扩展,`engine` 保持 `js`,在 `snapshot().game` 读取真实分数、阶段、回合等状态。
|
|
9
9
|
- `frameCount` 随真实 Phaser `POST_RENDER` 帧递增;`ready` 仅在必要资源加载成功、`PlayScene` 活跃且已发生真实渲染后成立,并与 `markPreviewReady` 的预览就绪流程一致。保留原有预览生命周期,不用定时器、硬编码分数或伪造帧数使检查通过。
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"schema": 2,
|
|
3
3
|
"engine": "js",
|
|
4
4
|
"host": "workbuddy",
|
|
5
|
-
"version": "1.
|
|
6
|
-
"source_revision": "sha256:
|
|
5
|
+
"version": "1.4.10",
|
|
6
|
+
"source_revision": "sha256:478f3cdf7433c2abfa863e664728821aa0f4d16f07049e8b88d333825f39a3f5",
|
|
7
7
|
"contracts": {
|
|
8
8
|
"export": 1,
|
|
9
9
|
"skills": 1,
|
|
10
|
-
"mcp":
|
|
10
|
+
"mcp": 2,
|
|
11
11
|
"sdk_lifecycle": 1
|
|
12
12
|
},
|
|
13
13
|
"compatibility": {
|
|
@@ -17,16 +17,14 @@
|
|
|
17
17
|
"template_digest": "5fab790d63b9eee2539acb81729cc07da6e3087b9396719482a0e6ac1a4a2d56"
|
|
18
18
|
},
|
|
19
19
|
"files": {
|
|
20
|
-
"js/context/AGENTS.md": "
|
|
20
|
+
"js/context/AGENTS.md": "fc2e6ccac87a4e6d47ab87f62944d10647790e1d33d3af9dc4419a4f9fe68ca8",
|
|
21
21
|
"js/context/hooks/hooks.json": "8becc4a05e25996fb079dcac9b7c2f7c79d719ea0d2cf20dc9b8a91a97a3261d",
|
|
22
|
-
"js/context/knowledge/
|
|
23
|
-
"js/context/knowledge/
|
|
22
|
+
"js/context/knowledge/AssetUrl.md": "f5f7a8a4588c1fbb5bd337585d8d586c944a3f44ac7a6b212fac7aedb656b944",
|
|
23
|
+
"js/context/knowledge/AssetWiring.md": "d41652c4f5e6a04bfe8f1c3eb8ab2633a01830b60a8fa88f5e759a801ed36b23",
|
|
24
24
|
"js/context/knowledge/Layout.md": "edb1f698c5dcdeed57d3a06cdff939719abaa754a39e471830eaf74627c8f53f",
|
|
25
25
|
"js/context/knowledge/Lifecycle.md": "47d6cc164953d5bbe3c06efcdad4994fbf89346f4e6c7bf15810555bc3612a18",
|
|
26
|
-
"js/context/
|
|
27
|
-
"js/context/skills/
|
|
28
|
-
"js/context/skills/asset-search/references/resource-config.md": "206b3792b5c182bb5f2becf4d9c2e777b37fc5f7db220b4df9ce71530ba77642",
|
|
29
|
-
"js/context/skills/export-config/SKILL.md": "b417da9177403e3424bc4e5905537ca6401e20c9e0e734d353fe0fd0a4dc6935",
|
|
26
|
+
"js/context/knowledge/ResourceLoading.md": "eada6a4a3766772a47274dd7a210aab3ef726c4553150aefc1f047ff0d6fb578",
|
|
27
|
+
"js/context/skills/export-config/SKILL.md": "bf614afcb6593b818ea84d2f89a4c5ed1481c35d41d9f4a013b6f1dc08fe2877",
|
|
30
28
|
"js/context/skills/export-config/assets/tooling/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
|
|
31
29
|
"js/context/skills/export-config/assets/tooling/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
|
|
32
30
|
"js/context/skills/export-config/assets/tooling/config.mjs": "ba99f6f54d0db4fc42d5431d0792c3f5e6981474faef3a0acf924a90b27158f8",
|
|
@@ -37,8 +35,8 @@
|
|
|
37
35
|
"js/context/skills/export-config/scripts/export-config.mjs": "e7f3cff027cf71d90f2d14e983082a658c6100ddf5761d27e0ae7ce4c917344c",
|
|
38
36
|
"js/context/skills/export-config/scripts/install.mjs": "ef3e09680d06086b9e21f5665ce05af2962cc65e92a8e26fbac5fdf9723e6eda",
|
|
39
37
|
"js/context/skills/export-config/scripts/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
40
|
-
"js/context/skills/index.json": "
|
|
41
|
-
"js/context/skills/visual-qa/SKILL.md": "
|
|
38
|
+
"js/context/skills/index.json": "bf62381acc40d768ce5089adca432382ea48781a6840c8f32faabf7ef2c71df6",
|
|
39
|
+
"js/context/skills/visual-qa/SKILL.md": "8221b404d8229d07864b19305260488750c9ab885292f2645e0675ef3cd7c6d6",
|
|
42
40
|
"js/project/README.md": "7708ecdf5ff65e5565bb46c98b4388778db0e747c2d9fce778f42f73c78663f5",
|
|
43
41
|
"js/project/configs/assets.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
|
|
44
42
|
"js/project/configs/game.controls.json": "c353f210e7d63c4042cc4a58163e90cc9dc55b3bb5789547dbf913f1e553d2fa",
|
|
@@ -89,11 +87,11 @@
|
|
|
89
87
|
"js/project/tsconfig.json": "ff460bbe00552390594da800297aa4d1bcd0c21e07ebe2794d7fc94cf5debd58",
|
|
90
88
|
"js/project/unified_data_control_config.json": "713e928403c10e069dc2d43b74da0a5ca4323f616ee84917d7df8f2e9bc48b21",
|
|
91
89
|
"js/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
92
|
-
"craft-game-maker/SKILL.md": "
|
|
93
|
-
"craft-game-maker/js.md": "
|
|
94
|
-
"target.json": "
|
|
95
|
-
"bootstrap/SKILL.md": "
|
|
96
|
-
"recovery.md": "
|
|
90
|
+
"craft-game-maker/SKILL.md": "e6c425a7747d809da53c4be8720fbb5b4bebe704ad891565edfa4968128ac83b",
|
|
91
|
+
"craft-game-maker/js.md": "d69b3635771045ab232fffe001652348046e54484e21ba4babcdb65cf9395f69",
|
|
92
|
+
"target.json": "4b22cdfefb54a9f99a0569e99954076cf2fd1f32c01c8a66a7345913d4026912",
|
|
93
|
+
"bootstrap/SKILL.md": "c55accfa88547cb6f966d666f36235ccc72ed2d9b91079aa370e7c96d4ab6a68",
|
|
94
|
+
"recovery.md": "0bcb3766513b1d34b625000c6b4bd3bb966b9987f8d17848395b43489497428e"
|
|
97
95
|
},
|
|
98
|
-
"id": "
|
|
96
|
+
"id": "2d5fc2566d46ce59c28396b6dd3cc37a1dfb70f695a0c8b38eb7985ceb2015ff"
|
|
99
97
|
}
|
|
@@ -4,22 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
## 开始与恢复
|
|
6
6
|
|
|
7
|
-
|
|
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
8
|
|
|
9
|
-
|
|
9
|
+
完整上下文就在项目 `.workbuddy/`:本文件为引擎入口,`knowledge/` 是引擎资料,`skills/` 是宿主可发现的领域 Skill,`skills/index.json` 是技能索引。索引按 description 选择本次所需技能,再读取 entrypoint;不要一次加载全部技能。文档中的 `${CRAFT_CONTEXT_DIR}`、`${CRAFT_PROJECT_DIR}`、`${CRAFT_SKILL_DIR}` 分别代表返回的上下文、工程和已选技能绝对路径;执行脚本时显式替换或传入,不假设终端已设置变量。
|
|
10
10
|
|
|
11
11
|
## 开发
|
|
12
12
|
|
|
13
13
|
- 玩法写入 src/scenes/PlayScene.ts,资源预加载放入 src/scenes/LoadScene.ts。src/main.ts 负责 Phaser 初始化、尺寸同步和预览桥;屏幕 UI 沿用 src/screenUi.ts 与 src/display/。
|
|
14
14
|
- 保留 game-runtime.json、Vite 插件和项目内配置导出模块。普通玩法修改不升级 runtime,不重写完整性清单。
|
|
15
|
-
-
|
|
16
|
-
- 修改加载或预览接线时读 [生命周期](knowledge/Lifecycle.md);接入素材时读 [资源接线](knowledge/
|
|
15
|
+
- 玩法、胜负、操作和素材方案以用户要求为准。需求不明确时只澄清影响实现的部分;先形成最小可玩循环,再扩展。素材可用代码图形、用户提供或工程已有资源,按实际需求选用。
|
|
16
|
+
- 修改加载或预览接线时读 [生命周期](knowledge/Lifecycle.md);接入素材时读 [资源接线](knowledge/AssetWiring.md) 和 [地址规则](knowledge/AssetUrl.md)。配置与资源导出使用 export-config 技能。
|
|
17
17
|
- 屏幕布局按当前容器尺寸适配;坐标与 HUD 同步,保留已有输入,不把某种设备范围作为隐含需求。见 [布局与输入](knowledge/Layout.md)。
|
|
18
18
|
|
|
19
19
|
## 验收与交接
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
完整流程读取本目录的 `workflow.md`。实现真实的 `globalThis.__GAME_PROBE__.snapshot()`,从 Phaser 渲染帧与玩法状态返回 ready、frameCount、game;不得用定时器或固定值替代实际状态。
|
|
22
22
|
|
|
23
23
|
craft_game_check 验证最终构建和真实输入,craft_game_review 提供截图审阅,craft_game_deliver 返回同一验收快照的预览启动命令。将命令放在宿主后台任务中运行,再查询 running/snapshot 并打开 URL 核实。检查成功不等于预览已经运行。
|
|
24
24
|
|
|
25
|
-
在 SPEC/PROGRESS.md
|
|
25
|
+
在 SPEC/PROGRESS.md 记录已完成玩法、操作、关键文件、实际验收结果和下一步。恢复时由 MCP 自动同步官方上下文;只读恢复不改游戏内容和进度,不执行构建或导出。
|
|
26
|
+
|
|
27
|
+
## 制作任务边界
|
|
28
|
+
|
|
29
|
+
只读查看使用 `craft_game_info(name)`,不会更新项目。执行开发或可写 Skill 前,先按根 AGENTS.md 准备本次 work(已有工程 mode=resume),轮询完成后读取本宿主的最新入口和工作流;已有 active work 沿用其 work_id,不重复准备。制作工具传入 work_id,结束后 release。详见项目宿主目录内的 recovery.md。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# 资源地址
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
资源地址保存在对应配置 slot 中,保留已有资源的原始 URL 或相对 Path。核对实际消费字段,不把资源标识符当作可加载地址。
|
|
4
4
|
|
|
5
|
-
运行时从配置读取值,使用项目 runtime/lightgame/1.1.0/tools/assets.mjs 的 resolveAssetUrl(path, { cdnBaseUrl }) 解析相对资源;cdnBaseUrl 取 game-runtime.json 的 cdnBase。保留 HTTP、data 或 blob
|
|
5
|
+
运行时从配置读取值,使用项目 runtime/lightgame/1.1.0/tools/assets.mjs 的 resolveAssetUrl(path, { cdnBaseUrl }) 解析相对资源;cdnBaseUrl 取 game-runtime.json 的 cdnBase。保留 HTTP、data 或 blob 地址的语义,不能把远端资源路径当成本机文件路径。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
配置导出可能将同一官方地址的百分号编码解回原字符,并规范资源路径。保留导出器的结果,不能为迎合旧文本重新写回等价但冲突的路径。模型依赖由模型加载管线解析,不手动拼接压缩档位或重写模型依赖 URL。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
用户提供的本地素材可作为项目资源使用;远端素材保留其有效地址,不为远端资源另造本地副本。验证资源真实加载、用途匹配、跨域与浏览器可用性。
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# 2D / Phaser 资源接线
|
|
2
|
+
|
|
3
|
+
先确认资源实际可用,定位消费者和稳定的配置 slot,再将地址与参数写入对应配置。配置更新不代表素材已被游戏使用。
|
|
4
|
+
|
|
5
|
+
按照 [地址规则](AssetUrl.md) 加载资源。核对实际类型、透明背景、比例、模型朝向与骨骼兼容性;在游戏中实际展示或播放,再验证结算和重开时的行为。加载失败保留错误和原因,不用不存在的文件或硬编码成功状态掩盖错误。
|
|
6
|
+
|
|
7
|
+
具体加载方式见 [资源加载](ResourceLoading.md)。资源修改后使用 export-config 技能,构建并在真实截图中检查结果。资源配置与画面均正确后才将本项记为完成。
|
|
@@ -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。一次失败不能通过伪造纹理键略过。
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: export-config
|
|
3
|
-
description:
|
|
3
|
+
description: Craft WorkBuddy 项目专用;导出当前 2D / Phaser 工程的资源与可调参数配置;新增资源槽、修改配置、构建或上传前排查时使用。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# 2D / Phaser 配置导出
|
|
7
7
|
|
|
8
8
|
模板已自带 scripts/skill-modules/export-config,Vite 中 gameConfig() 与 lightgame() 并列。默认值写 configs/*.json,控件元数据写同名 *.controls.json;保持业务普通 JSON import。
|
|
9
9
|
|
|
10
|
-
在项目目录执行 `node "${CRAFT_SKILL_DIR}/scripts/export-config.mjs"`。MCP 的工程检查也通过 SDK hook
|
|
10
|
+
在项目目录执行 `node "${CRAFT_SKILL_DIR}/scripts/export-config.mjs"`。MCP 的工程检查也通过 SDK hook 调用本工程已同步版本的本地技能入口;技能与普通 `npm run config:export` 共用项目内导出流程,不查找相邻工程的上下文。
|
|
11
11
|
|
|
12
12
|
脚本同步 @slot、assets.json 与资源控件,再导出 unified_data_control_config.json,保留已有有效覆盖值。导出后核实资源 slot 有真实消费者,参数修改能改变游戏,必要加载已成功。地址规则见 [AssetUrl](../../knowledge/AssetUrl.md)。
|
|
13
13
|
|
|
@@ -3,28 +3,16 @@
|
|
|
3
3
|
"engine": "js",
|
|
4
4
|
"host": "workbuddy",
|
|
5
5
|
"skills": [
|
|
6
|
-
{
|
|
7
|
-
"id": "workbuddy:js:aigc-generate",
|
|
8
|
-
"name": "aigc-generate",
|
|
9
|
-
"description": "为 2D / Phaser 游戏生成并接入图片、音乐或角色序列帧;用户需要生成素材时使用。",
|
|
10
|
-
"entrypoint": "skills/aigc-generate/SKILL.md"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"id": "workbuddy:js:asset-search",
|
|
14
|
-
"name": "asset-search",
|
|
15
|
-
"description": "为当前 2D / Phaser 游戏检索并导入 Craft 素材库资源;需要现有图片、音频或图集。",
|
|
16
|
-
"entrypoint": "skills/asset-search/SKILL.md"
|
|
17
|
-
},
|
|
18
6
|
{
|
|
19
7
|
"id": "workbuddy:js:export-config",
|
|
20
8
|
"name": "export-config",
|
|
21
|
-
"description": "
|
|
9
|
+
"description": "Craft WorkBuddy 项目专用;导出当前 2D / Phaser 工程的资源与可调参数配置;新增资源槽、修改配置、构建或上传前排查时使用。",
|
|
22
10
|
"entrypoint": "skills/export-config/SKILL.md"
|
|
23
11
|
},
|
|
24
12
|
{
|
|
25
13
|
"id": "workbuddy:js:visual-qa",
|
|
26
14
|
"name": "visual-qa",
|
|
27
|
-
"description": "
|
|
15
|
+
"description": "Craft WorkBuddy 项目专用;验收 2D / Phaser 游戏的真实输入、玩法闭环与截图;在交付预览或验证修复时使用。",
|
|
28
16
|
"entrypoint": "skills/visual-qa/SKILL.md"
|
|
29
17
|
}
|
|
30
18
|
]
|