@craft_eco/craft-mcp 0.1.34-beta.1 → 0.1.34-beta.2
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 -8
- package/bin/craft-mcp.mjs +1 -1
- package/dist-server/game-workflow/art-previews.mjs +71 -0
- package/dist-server/game-workflow/bundle-files.mjs +12 -3
- package/dist-server/game-workflow/bundle-template.mjs +37 -37
- package/dist-server/game-workflow/local-context.mjs +2 -0
- package/dist-server/game-workflow/native-context.mjs +18 -5
- package/dist-server/game-workflow/project-art-previews.mjs +63 -0
- package/dist-server/game-workflow/project-bundles.mjs +97 -21
- package/dist-server/game-workflow/project-context.mjs +3 -3
- package/dist-server/game-workflow/projects.mjs +15 -13
- package/dist-server/integrations/files.mjs +3 -1
- package/dist-server/integrations/install-source.mjs +44 -0
- package/dist-server/integrations/install.mjs +87 -23
- package/dist-server/integrations/project-setup.mjs +6 -4
- package/dist-server/integrations/updates.mjs +15 -4
- package/dist-server/mcp/server.mjs +5 -4
- package/dist-server/mcp/update-session.mjs +26 -12
- package/dist-server/upstream/craft-aigc.mjs +11 -2
- package/dist-server/upstream/draft-audit.mjs +52 -6
- package/package.json +1 -1
- package/resources/craft-create/SKILL.md +1 -1
- package/resources/craft-update/SKILL.md +1 -1
- package/resources/targets/claude/js/js/bundle.json +5 -5
- package/resources/targets/claude/js/recovery.md +1 -1
- package/resources/targets/claude/js/target.json +1 -1
- package/resources/targets/claude/js3d/js3d/bundle.json +25 -23
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/claude/js3d/recovery.md +1 -1
- package/resources/targets/claude/js3d/target.json +1 -1
- package/resources/targets/codebuddy/js/js/bundle.json +5 -5
- package/resources/targets/codebuddy/js/recovery.md +1 -1
- package/resources/targets/codebuddy/js/target.json +1 -1
- package/resources/targets/codebuddy/js3d/js3d/bundle.json +25 -23
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/codebuddy/js3d/recovery.md +1 -1
- package/resources/targets/codebuddy/js3d/target.json +1 -1
- package/resources/targets/codex/js/js/bundle.json +5 -5
- package/resources/targets/codex/js/recovery.md +1 -1
- package/resources/targets/codex/js/target.json +1 -1
- package/resources/targets/codex/js3d/js3d/bundle.json +25 -23
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/codex/js3d/recovery.md +1 -1
- package/resources/targets/codex/js3d/target.json +1 -1
- package/resources/targets/comate/js/js/bundle.json +5 -5
- package/resources/targets/comate/js/recovery.md +1 -1
- package/resources/targets/comate/js/target.json +1 -1
- package/resources/targets/comate/js3d/js3d/bundle.json +25 -23
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/comate/js3d/recovery.md +1 -1
- package/resources/targets/comate/js3d/target.json +1 -1
- package/resources/targets/cursor/js/js/bundle.json +5 -5
- package/resources/targets/cursor/js/recovery.md +1 -1
- package/resources/targets/cursor/js/target.json +1 -1
- package/resources/targets/cursor/js3d/js3d/bundle.json +25 -23
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/cursor/js3d/recovery.md +1 -1
- package/resources/targets/cursor/js3d/target.json +1 -1
- package/resources/targets/dsh/js/js/bundle.json +5 -5
- package/resources/targets/dsh/js/recovery.md +1 -1
- package/resources/targets/dsh/js/target.json +1 -1
- package/resources/targets/dsh/js3d/js3d/bundle.json +25 -23
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/dsh/js3d/recovery.md +1 -1
- package/resources/targets/dsh/js3d/target.json +1 -1
- package/resources/targets/index.json +56 -56
- package/resources/targets/kimi/js/js/bundle.json +5 -5
- package/resources/targets/kimi/js/recovery.md +1 -1
- package/resources/targets/kimi/js/target.json +1 -1
- package/resources/targets/kimi/js3d/js3d/bundle.json +25 -23
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/kimi/js3d/recovery.md +1 -1
- package/resources/targets/kimi/js3d/target.json +1 -1
- package/resources/targets/opencode/js/js/bundle.json +5 -5
- package/resources/targets/opencode/js/recovery.md +1 -1
- package/resources/targets/opencode/js/target.json +1 -1
- package/resources/targets/opencode/js3d/js3d/bundle.json +25 -23
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/opencode/js3d/recovery.md +1 -1
- package/resources/targets/opencode/js3d/target.json +1 -1
- package/resources/targets/qoder/js/js/bundle.json +5 -5
- package/resources/targets/qoder/js/recovery.md +1 -1
- package/resources/targets/qoder/js/target.json +1 -1
- package/resources/targets/qoder/js3d/js3d/bundle.json +25 -23
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/qoder/js3d/recovery.md +1 -1
- package/resources/targets/qoder/js3d/target.json +1 -1
- package/resources/targets/qoder-cn/js/js/bundle.json +5 -5
- package/resources/targets/qoder-cn/js/recovery.md +1 -1
- package/resources/targets/qoder-cn/js/target.json +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/bundle.json +25 -23
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/qoder-cn/js3d/recovery.md +1 -1
- package/resources/targets/qoder-cn/js3d/target.json +1 -1
- package/resources/targets/qwen/js/js/bundle.json +5 -5
- package/resources/targets/qwen/js/recovery.md +1 -1
- package/resources/targets/qwen/js/target.json +1 -1
- package/resources/targets/qwen/js3d/js3d/bundle.json +25 -23
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/qwen/js3d/recovery.md +1 -1
- package/resources/targets/qwen/js3d/target.json +1 -1
- package/resources/targets/trae/js/js/bundle.json +5 -5
- package/resources/targets/trae/js/recovery.md +1 -1
- package/resources/targets/trae/js/target.json +1 -1
- package/resources/targets/trae/js3d/js3d/bundle.json +25 -23
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/trae/js3d/recovery.md +1 -1
- package/resources/targets/trae/js3d/target.json +1 -1
- package/resources/targets/workbuddy/js/js/bundle.json +5 -5
- package/resources/targets/workbuddy/js/recovery.md +1 -1
- package/resources/targets/workbuddy/js/target.json +1 -1
- package/resources/targets/workbuddy/js3d/js3d/bundle.json +25 -23
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/workbuddy/js3d/recovery.md +1 -1
- package/resources/targets/workbuddy/js3d/target.json +1 -1
- package/resources/targets/zcode/js/js/bundle.json +5 -5
- package/resources/targets/zcode/js/recovery.md +1 -1
- package/resources/targets/zcode/js/target.json +1 -1
- package/resources/targets/zcode/js3d/js3d/bundle.json +25 -23
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/SKILL.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/sources.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/cartoon.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/comic.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/horror.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/lowpoly.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/paper.md +1 -1
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md +1 -1
- package/resources/targets/zcode/js3d/recovery.md +1 -1
- package/resources/targets/zcode/js3d/target.json +1 -1
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/codex/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/comate/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/cursor/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/dsh/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/kimi/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/opencode/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/qoder/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/qoder-cn/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/qwen/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/trae/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/workbuddy/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp +0 -0
- package/resources/targets/zcode/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/cartoon.webp → shared-art-previews/cartoon-3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/comic.webp → shared-art-previews/comic-77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/cozy.webp → shared-art-previews/cozy-e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/cyber.webp → shared-art-previews/cyber-8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/horror.webp → shared-art-previews/horror-041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/lowpoly.webp → shared-art-previews/lowpoly-206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/paper.webp → shared-art-previews/paper-98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1.webp} +0 -0
- /package/resources/{targets/claude/js3d/js3d/context/skills/game-art-style/assets/previews/voxel.webp → shared-art-previews/voxel-2bbe76b02f1f69059ab676eb6e2f89d0a25dd405dcab80acfc2d96f4e483098d.webp} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthStore } from '../core/auth-store.mjs';
|
|
2
2
|
import { resolveLibraryUrl } from './library-url.mjs';
|
|
3
3
|
import { externalGameUploadRequest, parseExternalGameUploadReceipt } from '#craft-sdk';
|
|
4
|
-
import { parseDraftAudit } from './draft-audit.mjs';
|
|
4
|
+
import { parseDraftAudit, parseDraftScanFailure } from './draft-audit.mjs';
|
|
5
5
|
import { encodeDraftSource, legacySourceFormat } from './draft-source.mjs';
|
|
6
6
|
import { mcpLocationHeader, validMcpProduceLocation } from '../core/production-source.mjs';
|
|
7
7
|
|
|
@@ -91,6 +91,12 @@ export class CraftAigc {
|
|
|
91
91
|
10015:'上传请求与云端版本冲突,请检查上传状态后重试',
|
|
92
92
|
30006:'Craft 账号的项目数量已达上限,无法新建云端项目。请在 Craft 网页的项目列表中删除不再需要的项目,腾出名额后再重试同一次上传。',
|
|
93
93
|
};
|
|
94
|
+
const scanFailure = draft && data?.code === 10017 ? parseDraftScanFailure(data.data) : undefined;
|
|
95
|
+
if (scanFailure) {
|
|
96
|
+
const {message,reason,path} = scanFailure;
|
|
97
|
+
throw new PlatformError(message,{...detail(false,'upload_security'),
|
|
98
|
+
upload_security:{reason,...(path && !path.includes(token) ? {path} : {})}});
|
|
99
|
+
}
|
|
94
100
|
const message = (!draft || sourceLimit) && typeof data?.message === 'string' && data.message ? redact(data.message) : (draft && draftError[data?.code]) || 'Craft 平台请求失败';
|
|
95
101
|
throw new PlatformError(message,detail(mutation && response.status >= 500,'http'));
|
|
96
102
|
}
|
|
@@ -185,7 +191,10 @@ export class CraftAigc {
|
|
|
185
191
|
let result;
|
|
186
192
|
try {
|
|
187
193
|
result=parseExternalGameUploadReceipt(data,{ uploadId:id,requireUploadPath:kind === 'prepare' });
|
|
188
|
-
if (data.audit !== undefined)
|
|
194
|
+
if (data.audit !== undefined) {
|
|
195
|
+
result.audit = parseDraftAudit(data.audit,result.state);
|
|
196
|
+
if (result.audit.findings?.some(finding=>finding.path.includes(token))) throw new Error('Craft 返回的上传检查路径无效');
|
|
197
|
+
}
|
|
189
198
|
if (data.upload_mode !== undefined) {
|
|
190
199
|
if (!['current_project','new_project'].includes(data.upload_mode)) throw new Error('Invalid external game upload mode');
|
|
191
200
|
result.upload_mode = data.upload_mode;
|
|
@@ -1,5 +1,53 @@
|
|
|
1
|
-
const rules =
|
|
2
|
-
'
|
|
1
|
+
const rules = Object.freeze({
|
|
2
|
+
executable_extension:'文件扩展名属于禁止上传的可执行格式',
|
|
3
|
+
executable_content:'文件内容包含本机可执行文件标记',
|
|
4
|
+
image_format:'图片内容与文件格式不匹配',
|
|
5
|
+
audio_format:'音频内容与文件格式不匹配',
|
|
6
|
+
video_format:'视频内容与文件格式不匹配',
|
|
7
|
+
invalid_text_encoding:'文本编码无效或包含空字节',
|
|
8
|
+
invalid_source:'源码文件结构无效',
|
|
9
|
+
invalid_base64:'二进制附件的 Base64 编码无效',
|
|
10
|
+
sensitive_word:'文件命中服务端内容审核规则',
|
|
11
|
+
embedded_private_key:'文件包含私钥,请移除私钥后重新检查',
|
|
12
|
+
process_execution:'代码包含启动系统进程的行为',
|
|
13
|
+
remote_executable_code:'代码加载外部可执行脚本',
|
|
14
|
+
private_network_request:'代码直接请求私网地址',
|
|
15
|
+
unsafe_code_generation:'代码包含执行字符串或动态生成代码的行为',
|
|
16
|
+
unbounded_network_calls:'代码包含循环或极高频网络请求',
|
|
17
|
+
unscannable_code:'代码无法完成静态检查,请检查编码、语法和文件大小',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const scanFailures = Object.freeze({
|
|
21
|
+
scanner_busy:'扫描器繁忙,请稍后重试同一次上传',
|
|
22
|
+
scanner_timeout:'扫描超时,请稍后重试同一次上传',
|
|
23
|
+
scanner_canceled:'扫描已取消,请重试同一次上传',
|
|
24
|
+
worker_unavailable:'服务端扫描程序不可用,请联系平台维护者',
|
|
25
|
+
runtime_unavailable:'服务端扫描运行环境不可用,请联系平台维护者',
|
|
26
|
+
dependency_unavailable:'服务端扫描依赖不可用,请联系平台维护者',
|
|
27
|
+
input_failed:'扫描器读取输入失败,请重试;持续失败时联系平台维护者',
|
|
28
|
+
process_start_failed:'服务端扫描进程启动失败,请联系平台维护者',
|
|
29
|
+
process_failed:'服务端扫描进程异常退出,请重试;持续失败时联系平台维护者',
|
|
30
|
+
output_limit:'扫描结果超过大小限制,请联系平台维护者',
|
|
31
|
+
invalid_report:'服务端扫描报告无效,请联系平台维护者',
|
|
32
|
+
invalid_finding:'服务端扫描返回了无效问题项,请联系平台维护者',
|
|
33
|
+
invalid_receipt:'服务端扫描回执校验失败,请联系平台维护者',
|
|
34
|
+
scan_failed:'文件扫描执行失败,请重试;持续失败时联系平台维护者',
|
|
35
|
+
internal_error:'服务端安全检查发生内部故障,请联系平台维护者',
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
function validAuditPath(value) {
|
|
39
|
+
return typeof value === 'string' && value.length > 0 && value.length <= 1024 &&
|
|
40
|
+
!/[\u0000-\u001f\u007f]/u.test(value) && !value.startsWith('/') && !/^[a-z]:/i.test(value) &&
|
|
41
|
+
!value.includes('\\') && !value.split('/').some(p=>!p || p === '.' || p === '..');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function parseDraftScanFailure(value) {
|
|
45
|
+
if (!value || typeof value !== 'object' || Array.isArray(value) ||
|
|
46
|
+
value.kind !== 'upload_security_unavailable' || typeof value.reason !== 'string' || !Object.hasOwn(scanFailures,value.reason) ||
|
|
47
|
+
(value.path !== undefined && !validAuditPath(value.path))) return;
|
|
48
|
+
return {reason:value.reason,...(value.path ? {path:value.path} : {}),
|
|
49
|
+
message:'Craft 上传安全检查未完成:' + scanFailures[value.reason] + '。'};
|
|
50
|
+
}
|
|
3
51
|
|
|
4
52
|
// Treat the receipt as untrusted data. Return only the public review fields,
|
|
5
53
|
// never upstream messages, source text or the server's internal audit metadata.
|
|
@@ -14,10 +62,8 @@ export function parseDraftAudit(value, uploadState) {
|
|
|
14
62
|
!['uploaded','draft_ready','expired'].includes(uploadState)) throw new Error('Craft 返回的上传检查状态无效');
|
|
15
63
|
const findings = value.findings ?? [];
|
|
16
64
|
if (!Array.isArray(findings) || findings.length > 32 ||
|
|
17
|
-
findings.some(f=>!f ||
|
|
18
|
-
/[\u0000-\u001f\u007f]/u.test(f.path) || f.path.startsWith('/') || f.path.includes('\\') ||
|
|
19
|
-
f.path.split('/').some(p=>!p || p === '.' || p === '..')) ||
|
|
65
|
+
findings.some(f=>!f || typeof f.rule !== 'string' || !Object.hasOwn(rules,f.rule) || !validAuditPath(f.path)) ||
|
|
20
66
|
((value.state === 'rejected') !== (findings.length > 0))) throw new Error('Craft 返回的上传检查结果无效');
|
|
21
67
|
return { state:value.state,policy_version:value.policy_version,total:value.total,completed:value.completed,
|
|
22
|
-
...(findings.length ? {findings:findings.map(({path,rule})=>({path,rule}))} : {}) };
|
|
68
|
+
...(findings.length ? {findings:findings.map(({path,rule})=>({path,rule,message:rules[rule]}))} : {}) };
|
|
23
69
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ description: 使用 Craft 新建 2D、3D 游戏或玩法原型,上传已有本
|
|
|
16
16
|
|
|
17
17
|
返回 pending_reconnect 时,本次准备尚未开始。先完成已有工作、记录进度并 release,按 connection_handoff 提示重连。重连后用当前聊天的 info 核对 version、build_id、active_verified 与宿主范围。沿用原 request_key 和原 mode 重试 prepare:新建使用 create,上传已有工程使用 resume。
|
|
18
18
|
|
|
19
|
-
用 `craft_task_status(task_id)` 轮询准备,完成后保存 work_id/context_revision,打开返回的 project 目录,读取本地入口、工作流和技能索引,再按用户需求操作。制作工具传 work_id,结束后等待后台任务完成并 release。纯查看不 prepare;旧项目使用 prepare(resume)
|
|
19
|
+
用 `craft_task_status(task_id)` 轮询准备,完成后保存 work_id/context_revision,打开返回的 project 目录,读取本地入口、工作流和技能索引,再按用户需求操作。制作工具传 work_id,结束后等待后台任务完成并 release。纯查看不 prepare;旧项目使用 prepare(resume),按项目原引擎同步各已绑定宿主的受管上下文和 Skill,完成后读取本宿主的恢复入口,保留源码与用户进度。
|
|
20
20
|
|
|
21
21
|
只对明确未开始的 prepare 重用 request_key;不重放结果不明的素材生成、上传或发布。update_failed 且 can_continue=true 时,向用户说明更新失败原因及保留的版本,然后继续准备;prepare 返回的 update_warning 也要告知用户。can_continue=false 或不兼容时按诊断处理;离线时说明未确认最新。当前连接缺少 craft_update 时先看 info:已有 pending_reconnect 就等待下次启动或用户重连;尚未安装新版时才运行新版标准安装器,然后重连并确认版本。
|
|
22
22
|
|
|
@@ -14,7 +14,7 @@ description: 检查或更新 Craft MCP,核对当前连接的运行版本,恢
|
|
|
14
14
|
|
|
15
15
|
- 仅检查:`craft_update_check(request_key)`;已有项目传 name。只检查版本与兼容性,不写入安装记录、Skill 或项目。
|
|
16
16
|
- 安装更新:`craft_update(mode:"auto",request_key)`;已有项目传 name 以检查兼容性。更新完整程序包和受管全局 Skill,当前 MCP 进程保持原版本,新版在下次启动或用户重连后加载。
|
|
17
|
-
- 更新项目上下文:新版实际运行后,调用 `craft_game_prepare(name,mode:"resume",request_key)`,轮询完成,保存 work_id/context_revision,重读根 AGENTS.md、当前宿主的 craft-project
|
|
17
|
+
- 更新项目上下文:新版实际运行后,调用 `craft_game_prepare(name,mode:"resume",request_key)`,轮询完成,保存 work_id/context_revision,重读根 AGENTS.md、当前宿主的 craft-project、技能索引及所需正文。恢复只处理这个项目,按原引擎更新所有已绑定宿主有变化的官方文件,撤下退役 Skill,保留用户自建 Skill、源码和进度。完成后 release。
|
|
18
18
|
|
|
19
19
|
pending_reconnect 时明确告知“新版已安装,等待下次 MCP 启动或重连”。不主动重载或结束现有任务;先完成后台任务、保存进度并 release。按 connection_handoff 的本宿主步骤提示重连;无需为程序升级新建聊天。WorkBuddy 重连仍旧时,从托盘完整退出再打开;只有实际出现信任提示时才由用户确认。
|
|
20
20
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schema": 2,
|
|
3
3
|
"engine": "js",
|
|
4
4
|
"host": "claude",
|
|
5
|
-
"version": "1.0.
|
|
6
|
-
"source_revision": "sha256:
|
|
5
|
+
"version": "1.0.15",
|
|
6
|
+
"source_revision": "sha256:749ba73c1e36a65cb9ccfa064c9a298f78bab55e50d63fc03c4e3d69aa13902a",
|
|
7
7
|
"contracts": {
|
|
8
8
|
"export": 1,
|
|
9
9
|
"skills": 1,
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
"js/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
147
147
|
"craft-game-maker/SKILL.md": "99e96199b350ccc0cab2436dde06268f675ed702e7a71aab2792ef60b56324da",
|
|
148
148
|
"craft-game-maker/js.md": "8def56109bf89087e0246b26d9ce9197bc66fc5def9e7d07b3874b11277dc7fa",
|
|
149
|
-
"target.json": "
|
|
149
|
+
"target.json": "706573ee7a52fe080ad3b04e05d7f061bf0eecfd6b280c061e0873ce2e968c48",
|
|
150
150
|
"bootstrap/SKILL.md": "1a5f60e1d53fd95dc4788a19f00fc29a105336b435951c9f0efee5bab49aaaea",
|
|
151
|
-
"recovery.md": "
|
|
151
|
+
"recovery.md": "7cdcbf723f3547612e63b7806d762bb2ac06835ac98aeff02b6d11205e01c3b3"
|
|
152
152
|
},
|
|
153
|
-
"id": "
|
|
153
|
+
"id": "4a8fbc4d50e92a2152f8ef2bc8c94e7d695077126415aeb2e544310ebbde85ea"
|
|
154
154
|
}
|
|
@@ -16,7 +16,7 @@ MCP workspace 是游戏父目录,工程为 <workspace>/<name>,不随宿主
|
|
|
16
16
|
|
|
17
17
|
轮询prepare成功,核对context_sync与context_binding,保存work_id/context_revision。重新读取本次入口、恢复说明与技能索引;同一work和revision已经提供并读过的正文可复用。当前MCP会话已有active work沿用work_id;新会话重新prepare。同work_id的prepare只验证当前结果,重试保留原mode、engine和request_key。制作工具按schema传work_id,context_revision用于核对本次绑定。遇到CRAFT_PROJECT_IN_USE等待原work释放,不绕过占用写文件。
|
|
18
18
|
|
|
19
|
-
确认当前连接后,prepare
|
|
19
|
+
确认当前连接后,prepare 按项目原引擎核对各已绑定宿主,更新变化的官方 Skill,并撤下已退役的条目。完成后重新读取本宿主的正文和技能索引。活动工作继续使用原 work_id/context_revision。版本冲突或同步失败时按回执处理,宿主仍缓存旧列表时刷新或新开会话。
|
|
20
20
|
|
|
21
21
|
## 用户资料与交接
|
|
22
22
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schema": 2,
|
|
3
3
|
"engine": "js3d",
|
|
4
4
|
"host": "claude",
|
|
5
|
-
"version": "1.0.
|
|
6
|
-
"source_revision": "sha256:
|
|
5
|
+
"version": "1.0.17",
|
|
6
|
+
"source_revision": "sha256:6d2cb3085a45633e2f0f197d7706ba057c5db98cffcfc9d1c981b9a0971a4836",
|
|
7
7
|
"contracts": {
|
|
8
8
|
"export": 1,
|
|
9
9
|
"skills": 1,
|
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
"dependency_version": "0.185.1",
|
|
17
17
|
"template_digest": "807f3f225170fa074013ea04c8fce09b1acf74646eb000bc34ea2e7c370c010e"
|
|
18
18
|
},
|
|
19
|
+
"art_previews": [
|
|
20
|
+
"cartoon-3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9.webp",
|
|
21
|
+
"comic-77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63.webp",
|
|
22
|
+
"cozy-e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c.webp",
|
|
23
|
+
"cyber-8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b.webp",
|
|
24
|
+
"horror-041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7.webp",
|
|
25
|
+
"lowpoly-206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08.webp",
|
|
26
|
+
"paper-98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1.webp",
|
|
27
|
+
"voxel-2bbe76b02f1f69059ab676eb6e2f89d0a25dd405dcab80acfc2d96f4e483098d.webp"
|
|
28
|
+
],
|
|
19
29
|
"files": {
|
|
20
30
|
"js3d/context/AGENTS.md": "a9205bc573bf9d72f6cd55583dbdef16aca8a4a517cff50580db2d0aa0c4e878",
|
|
21
31
|
"js3d/context/hooks/hooks.json": "8becc4a05e25996fb079dcac9b7c2f7c79d719ea0d2cf20dc9b8a91a97a3261d",
|
|
@@ -49,28 +59,20 @@
|
|
|
49
59
|
"js3d/context/skills/export-config/scripts/export-config.mjs": "e7f3cff027cf71d90f2d14e983082a658c6100ddf5761d27e0ae7ce4c917344c",
|
|
50
60
|
"js3d/context/skills/export-config/scripts/install.mjs": "ef3e09680d06086b9e21f5665ce05af2962cc65e92a8e26fbac5fdf9723e6eda",
|
|
51
61
|
"js3d/context/skills/export-config/scripts/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
52
|
-
"js3d/context/skills/game-art-style/SKILL.md": "
|
|
53
|
-
"js3d/context/skills/game-art-style/assets/previews/cartoon.webp": "3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9",
|
|
54
|
-
"js3d/context/skills/game-art-style/assets/previews/comic.webp": "77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63",
|
|
55
|
-
"js3d/context/skills/game-art-style/assets/previews/cozy.webp": "e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c",
|
|
56
|
-
"js3d/context/skills/game-art-style/assets/previews/cyber.webp": "8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b",
|
|
57
|
-
"js3d/context/skills/game-art-style/assets/previews/horror.webp": "041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7",
|
|
58
|
-
"js3d/context/skills/game-art-style/assets/previews/lowpoly.webp": "206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08",
|
|
59
|
-
"js3d/context/skills/game-art-style/assets/previews/paper.webp": "98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1",
|
|
60
|
-
"js3d/context/skills/game-art-style/assets/previews/voxel.webp": "2bbe76b02f1f69059ab676eb6e2f89d0a25dd405dcab80acfc2d96f4e483098d",
|
|
62
|
+
"js3d/context/skills/game-art-style/SKILL.md": "1eb429236e2d45bc5517bb141f896d7ecbb299a3bc363d5cf518aa92c5ed1750",
|
|
61
63
|
"js3d/context/skills/game-art-style/references/art-parameters-lite.md": "1038c595d9151f0c36e1d161bf28fd43b5497f3f6fd55a7eb5d5ba7c009cfc8d",
|
|
62
64
|
"js3d/context/skills/game-art-style/references/construction.md": "3eb8f46da22a4c05032bd412fd064bd2baecf1085c30ce6799b676bd36d0bd53",
|
|
63
65
|
"js3d/context/skills/game-art-style/references/materials-textures.md": "865ca5ac2f32f546cd66df107e51765339e5d6f92c49529428e8289182b4e78d",
|
|
64
66
|
"js3d/context/skills/game-art-style/references/rendering-stability.md": "9652d8694656cb9dca5316c29cf57db4e17e85cf6a154843805bb4e8dead55af",
|
|
65
|
-
"js3d/context/skills/game-art-style/references/sources.md": "
|
|
66
|
-
"js3d/context/skills/game-art-style/references/styles/cartoon.md": "
|
|
67
|
-
"js3d/context/skills/game-art-style/references/styles/comic.md": "
|
|
68
|
-
"js3d/context/skills/game-art-style/references/styles/cozy.md": "
|
|
69
|
-
"js3d/context/skills/game-art-style/references/styles/cyber.md": "
|
|
70
|
-
"js3d/context/skills/game-art-style/references/styles/horror.md": "
|
|
71
|
-
"js3d/context/skills/game-art-style/references/styles/lowpoly.md": "
|
|
72
|
-
"js3d/context/skills/game-art-style/references/styles/paper.md": "
|
|
73
|
-
"js3d/context/skills/game-art-style/references/styles/voxel.md": "
|
|
67
|
+
"js3d/context/skills/game-art-style/references/sources.md": "f75ee0f41019c22bad1a52997f9feeb9bd590acb305a0f3628760287c0b794c7",
|
|
68
|
+
"js3d/context/skills/game-art-style/references/styles/cartoon.md": "2ddf830989a67079113a56eda0d652a9285bf595b6e6db1789387658c9da1ff5",
|
|
69
|
+
"js3d/context/skills/game-art-style/references/styles/comic.md": "53ab70a6f76b234f8526b8f50949f6b013e9eb79c89092a400b2a7dd77df11a3",
|
|
70
|
+
"js3d/context/skills/game-art-style/references/styles/cozy.md": "27e52cbddf267ed2c8902334f78485cb4450a250b5ab641bd747a17843f9fe8e",
|
|
71
|
+
"js3d/context/skills/game-art-style/references/styles/cyber.md": "7913d974706f6826e82c246528ce8ed386b9da930ca9071528b42cb1ca06845b",
|
|
72
|
+
"js3d/context/skills/game-art-style/references/styles/horror.md": "114e89b84e1c87112146462ad72f65bbcaa3ff4adad6ab3e0760a2c723f1498a",
|
|
73
|
+
"js3d/context/skills/game-art-style/references/styles/lowpoly.md": "b132c25bf18e1d7787751b886aadb042d9817b6c3c252572fe7669f85d9fffe1",
|
|
74
|
+
"js3d/context/skills/game-art-style/references/styles/paper.md": "2f157a1d610bfdcb729c10f4eaef3318f016af3b1385e94e18ba55da0e51562e",
|
|
75
|
+
"js3d/context/skills/game-art-style/references/styles/voxel.md": "b4cea1532a5354f379107e406ed5128216b5c262b35136a8fa227a2197662d31",
|
|
74
76
|
"js3d/context/skills/game-art-style/references/user-style-document.md": "617b147b3f523b9d938dbb61db45dac91df6e00c91585ab4930c1d92c5499393",
|
|
75
77
|
"js3d/context/skills/index.json": "e4c9550cb87838728535fac91969a5b77031b4d9a30fb50e717a12483afc524d",
|
|
76
78
|
"js3d/context/skills/mobile-adaptation/SKILL.md": "741aa0655bb713f72a73c300540541f0dd6c0acf6e9d9a2e035daabaa8f93a59",
|
|
@@ -181,9 +183,9 @@
|
|
|
181
183
|
"js3d/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
182
184
|
"craft-game-maker/SKILL.md": "99e96199b350ccc0cab2436dde06268f675ed702e7a71aab2792ef60b56324da",
|
|
183
185
|
"craft-game-maker/js3d.md": "ec21d3dd9067adadbe0d381c2011b3bea7d439b83895cdf3134debb13d971c2e",
|
|
184
|
-
"target.json": "
|
|
186
|
+
"target.json": "38af642dd7b7d6578355fef04d74dd33afb96221f78e00324a7999e2333dd94f",
|
|
185
187
|
"bootstrap/SKILL.md": "1a5f60e1d53fd95dc4788a19f00fc29a105336b435951c9f0efee5bab49aaaea",
|
|
186
|
-
"recovery.md": "
|
|
188
|
+
"recovery.md": "a52ed24082021d84d92b9a1bf1e05cf4b59502bccb439f74e8f0c3bedc8917ea"
|
|
187
189
|
},
|
|
188
|
-
"id": "
|
|
190
|
+
"id": "3827cd4dc96e5206ab307fb2d9a6bbe2eeda6466bd60148b548d2336a8832b99"
|
|
189
191
|
}
|
|
@@ -57,4 +57,4 @@ description: 为 JS3D 选择并直接实施画面与 UI 风格。支持首轮及
|
|
|
57
57
|
|
|
58
58
|
按当前问题打开对应参考。选择内置风格时读取命中的一张卡。
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
需要校准复刻程度时,打开所选风格卡片末尾链接的共享预览图,参考造型、材料和光色,不参考其机位、投影或取景;不把图库所有图片加入上下文。来源核对才读 [sources.md](references/sources.md)。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/sources.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## 已核对的证据
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 八张全景为小样实际渲染;每张风格卡片末尾链接到工程共享的对应小样。图只用于比较轮廓、材料、光色和层次,不作为新项目固定题材,也不提供相机、投影、角度或取景依据。游戏相机完全沿用整体框架。
|
|
8
8
|
- 小样的 scenes、lib、app 源文件确认构造、程序纹理与照明机制;其 Three.js 为 r186,原《晴野小岛》说明为 r180,本次 JS3D 模板为 r185.1。
|
|
9
9
|
- 图片观察色、材质输入值、照明参数和本次建议默认在单风格指南中区分。季节未公开时明确为本库默认设定。
|
|
10
10
|
- 本次改造验证技能引用、框架和制作流程;未据此宣称八种新题材的画面都已试作或所有设备表现都已验证。
|
|
@@ -172,4 +172,4 @@ export function softVolume(w, h, d, e = 0.8) {
|
|
|
172
172
|
|
|
173
173
|
交付前检查框架既有游戏画面、目标小屏和至少一个完整交互过程;代表资产的近景与侧面诊断在独立资产检查中完成。检查轮廓、五官与附件遮挡、材质差异、接触影、动作回位以及帧时间;报告真实检查范围。代码无报错不能替代画面验收。需要通用截面、法线与支点实现时按需读 [造型与装配](../construction.md)。
|
|
174
174
|
|
|
175
|
-
需要复核风格时按需查看 [经典卡通参考小样](
|
|
175
|
+
需要复核风格时按需查看 [经典卡通参考小样](../../../../../.craft/art-previews/cartoon-3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/comic.md
CHANGED
|
@@ -165,4 +165,4 @@ UI 可沿用纸色面板、墨色线框和有限强调色,字体先读清;
|
|
|
165
165
|
换成新题材后,至少核对一个生命体和一个结构件是否共享漫画语言,同时保留不同构造。
|
|
166
166
|
可见画面修改后沿项目既有 [现有画面验收](../../../visual-qa/SKILL.md) 与构建流程验证;文档完整或参数一致不能代替渲染结果。
|
|
167
167
|
|
|
168
|
-
可选视觉参照:[美漫小样](
|
|
168
|
+
可选视觉参照:[美漫小样](../../../../../.craft/art-previews/comic-77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63.webp)。只比较主形、外缘、脸型与色阶,不将图中对象数量和布局当成新项目清单。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/cozy.md
CHANGED
|
@@ -188,4 +188,4 @@ Toon 主体只加颜色层面的弱材料信息,不加高频凹凸破坏分档
|
|
|
188
188
|
|
|
189
189
|
先用代表人物/物种、环境大面与一种生活物件验证比例、色阶和材质,再扩展资产。交付前检查框架既有游戏画面、目标小屏与完整动作,并在独立资产检查中诊断细节和侧面;检查冠层空隙、五官遮挡、袖口连接、地形接缝、足底与帧时间。记录实际检查结果,不能用“已采用 Toon”或无报错代替视觉证据。
|
|
190
190
|
|
|
191
|
-
需要复核风格时按需查看 [温馨治愈参考小样](
|
|
191
|
+
需要复核风格时按需查看 [温馨治愈参考小样](../../../../../.craft/art-previews/cozy-e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/cyber.md
CHANGED
|
@@ -162,4 +162,4 @@ UI 用深暗底、浅字和少量霓虹状态色,必要信息不依赖发光
|
|
|
162
162
|
确认一处布、金属和湿面在同一照明下有不同响应,霓虹未洗白面部。
|
|
163
163
|
沿现有构建和 [现有画面验收](../../../visual-qa/SKILL.md) 流程验证当前最终状态;没有测量就不承诺帧率,静态截图不证明动态接地或所有视角已通过。
|
|
164
164
|
|
|
165
|
-
可选视觉参照:[赛博朋克小样](
|
|
165
|
+
可选视觉参照:[赛博朋克小样](../../../../../.craft/art-previews/cyber-8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b.webp)。比较灯源与反光因果、工业大块和主体比例,不复制招牌文案、角色组合或空间坐标。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/horror.md
CHANGED
|
@@ -170,4 +170,4 @@ UI 保持低干扰但有足够对比,文字不一起套暗雾或鬼影效果
|
|
|
170
170
|
先问“能读懂人在何处、空间为何压迫”,再问纹理够不够旧;不把更多噪点当作改进。
|
|
171
171
|
按项目已有构建与 [现有画面验收](../../../visual-qa/SKILL.md) 流程验证,不增设与画面无关的审批文档。未测试的视角、动画状态和性能如实说明。
|
|
172
172
|
|
|
173
|
-
可选视觉参照:[恐怖元素小样](
|
|
173
|
+
可选视觉参照:[恐怖元素小样](../../../../../.craft/art-previews/horror-041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7.webp)。比较脆弱尺度、连续脸面、压迫空间与选择性照明;不要把其极暗区域作为所有设备的最低可见标准。
|
|
@@ -182,4 +182,4 @@ UI 可用简洁实色面、清楚图标和有限状态色,与大色面简化
|
|
|
182
182
|
与体素或圆润卡通并排时,应能由造型与法线辨认,而非只凭颜色和标题。
|
|
183
183
|
沿项目现有构建与 [现有画面验收](../../../visual-qa/SKILL.md) 检查最终状态;静态图不能替代脚底、关节和完整互动验证,不报告未经测量的性能结论。
|
|
184
184
|
|
|
185
|
-
可选视觉参照:[Lowpoly 小样](
|
|
185
|
+
可选视觉参照:[Lowpoly 小样](../../../../../.craft/art-previews/lowpoly-206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08.webp)。重点比较宽脸小眼、连续截面、大切面、草叶深浅与中性日光,不照搬营地和固定动物组合。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/paper.md
CHANGED
|
@@ -178,4 +178,4 @@ export function cutCard(points, frontColor, thickness = 0.03) {
|
|
|
178
178
|
|
|
179
179
|
交付前检查框架既有游戏画面、目标屏幕和完整动作;薄边、折面侧向与必要背面在独立资产检查中核对。验收时不能只看纸纹:必须看真实厚度、装配、层间影、纸芯材质与面部可读性;并检查资源复用和帧时间。报告实际通过与尚未检查的范围,不以标题“纸片”代替视觉验证。
|
|
180
180
|
|
|
181
|
-
需要复核风格时按需查看 [纸片参考小样](
|
|
181
|
+
需要复核风格时按需查看 [纸片参考小样](../../../../../.craft/art-previews/paper-98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
package/resources/targets/claude/js3d/js3d/context/skills/game-art-style/references/styles/voxel.md
CHANGED
|
@@ -186,4 +186,4 @@ export function hingedBlock(parent, material, pivot, size, localCenter) {
|
|
|
186
186
|
|
|
187
187
|
实际检查框架既有游戏画面、目标小屏、静止与完整行动过程;主角细节与侧面诊断仅在独立资产检查中完成;核对耳间/脚间空隙、面部贴合、台阶高度、承重脚、材质区分和帧时间。记录实际通过的视角与状态,不能以方块数量、统一色板或无报错代替视觉验收。
|
|
188
188
|
|
|
189
|
-
需要复核风格时按需查看 [体素参考小样](
|
|
189
|
+
需要复核风格时按需查看 [体素参考小样](../../../../../.craft/art-previews/voxel-2bbe76b02f1f69059ab676eb6e2f89d0a25dd405dcab80acfc2d96f4e483098d.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
|
@@ -16,7 +16,7 @@ MCP workspace 是游戏父目录,工程为 <workspace>/<name>,不随宿主
|
|
|
16
16
|
|
|
17
17
|
轮询prepare成功,核对context_sync与context_binding,保存work_id/context_revision。重新读取本次入口、恢复说明与技能索引;同一work和revision已经提供并读过的正文可复用。当前MCP会话已有active work沿用work_id;新会话重新prepare。同work_id的prepare只验证当前结果,重试保留原mode、engine和request_key。制作工具按schema传work_id,context_revision用于核对本次绑定。遇到CRAFT_PROJECT_IN_USE等待原work释放,不绕过占用写文件。
|
|
18
18
|
|
|
19
|
-
确认当前连接后,prepare
|
|
19
|
+
确认当前连接后,prepare 按项目原引擎核对各已绑定宿主,更新变化的官方 Skill,并撤下已退役的条目。完成后重新读取本宿主的正文和技能索引。活动工作继续使用原 work_id/context_revision。版本冲突或同步失败时按回执处理,宿主仍缓存旧列表时刷新或新开会话。
|
|
20
20
|
|
|
21
21
|
## 用户资料与交接
|
|
22
22
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schema": 2,
|
|
3
3
|
"engine": "js",
|
|
4
4
|
"host": "codebuddy",
|
|
5
|
-
"version": "1.4.
|
|
6
|
-
"source_revision": "sha256:
|
|
5
|
+
"version": "1.4.16",
|
|
6
|
+
"source_revision": "sha256:fdd643cdb5ac9534f7f65f00a5a0be0c5b0fbd17f9d609d37a7eda613ae194e8",
|
|
7
7
|
"contracts": {
|
|
8
8
|
"export": 1,
|
|
9
9
|
"skills": 1,
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
"js/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
147
147
|
"craft-game-maker/SKILL.md": "99e96199b350ccc0cab2436dde06268f675ed702e7a71aab2792ef60b56324da",
|
|
148
148
|
"craft-game-maker/js.md": "8def56109bf89087e0246b26d9ce9197bc66fc5def9e7d07b3874b11277dc7fa",
|
|
149
|
-
"target.json": "
|
|
149
|
+
"target.json": "782cc31cdfb2459feedd57db68aeda944256e2e163e88fe0205a138a955b61f8",
|
|
150
150
|
"bootstrap/SKILL.md": "f811153ac7071e2542612bf01982ca18ad1fa66b248b3fa579f5ab9fa510d498",
|
|
151
|
-
"recovery.md": "
|
|
151
|
+
"recovery.md": "311404f35a72a3dcc8f062d7f9de4177d52a25f3c4990d59cf19e887dc8a38de"
|
|
152
152
|
},
|
|
153
|
-
"id": "
|
|
153
|
+
"id": "85e56579da4971c8af2af6e95749d9740091c5a08eb876d34f3d5ac574833f33"
|
|
154
154
|
}
|
|
@@ -16,7 +16,7 @@ MCP workspace 是游戏父目录,工程为 <workspace>/<name>,不随宿主
|
|
|
16
16
|
|
|
17
17
|
轮询prepare成功,核对context_sync与context_binding,保存work_id/context_revision。重新读取本次入口、恢复说明与技能索引;同一work和revision已经提供并读过的正文可复用。当前MCP会话已有active work沿用work_id;新会话重新prepare。同work_id的prepare只验证当前结果,重试保留原mode、engine和request_key。制作工具按schema传work_id,context_revision用于核对本次绑定。遇到CRAFT_PROJECT_IN_USE等待原work释放,不绕过占用写文件。
|
|
18
18
|
|
|
19
|
-
确认当前连接后,prepare
|
|
19
|
+
确认当前连接后,prepare 按项目原引擎核对各已绑定宿主,更新变化的官方 Skill,并撤下已退役的条目。完成后重新读取本宿主的正文和技能索引。活动工作继续使用原 work_id/context_revision。版本冲突或同步失败时按回执处理,宿主仍缓存旧列表时刷新或新开会话。
|
|
20
20
|
|
|
21
21
|
## 用户资料与交接
|
|
22
22
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schema": 2,
|
|
3
3
|
"engine": "js3d",
|
|
4
4
|
"host": "codebuddy",
|
|
5
|
-
"version": "1.4.
|
|
6
|
-
"source_revision": "sha256:
|
|
5
|
+
"version": "1.4.19",
|
|
6
|
+
"source_revision": "sha256:4eee71e0e9f2f92ccb18b9b57395409894ac7de654dd939d8817e23f695a5879",
|
|
7
7
|
"contracts": {
|
|
8
8
|
"export": 1,
|
|
9
9
|
"skills": 1,
|
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
"dependency_version": "0.185.1",
|
|
17
17
|
"template_digest": "807f3f225170fa074013ea04c8fce09b1acf74646eb000bc34ea2e7c370c010e"
|
|
18
18
|
},
|
|
19
|
+
"art_previews": [
|
|
20
|
+
"cartoon-3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9.webp",
|
|
21
|
+
"comic-77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63.webp",
|
|
22
|
+
"cozy-e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c.webp",
|
|
23
|
+
"cyber-8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b.webp",
|
|
24
|
+
"horror-041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7.webp",
|
|
25
|
+
"lowpoly-206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08.webp",
|
|
26
|
+
"paper-98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1.webp",
|
|
27
|
+
"voxel-2bbe76b02f1f69059ab676eb6e2f89d0a25dd405dcab80acfc2d96f4e483098d.webp"
|
|
28
|
+
],
|
|
19
29
|
"files": {
|
|
20
30
|
"js3d/context/AGENTS.md": "ef93ab07c2863517e9aaf1ab7131b5cac3a1cbbf5f1a66b4739ece8e8689d5b2",
|
|
21
31
|
"js3d/context/hooks/hooks.json": "8becc4a05e25996fb079dcac9b7c2f7c79d719ea0d2cf20dc9b8a91a97a3261d",
|
|
@@ -49,28 +59,20 @@
|
|
|
49
59
|
"js3d/context/skills/export-config/scripts/export-config.mjs": "e7f3cff027cf71d90f2d14e983082a658c6100ddf5761d27e0ae7ce4c917344c",
|
|
50
60
|
"js3d/context/skills/export-config/scripts/install.mjs": "ef3e09680d06086b9e21f5665ce05af2962cc65e92a8e26fbac5fdf9723e6eda",
|
|
51
61
|
"js3d/context/skills/export-config/scripts/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
52
|
-
"js3d/context/skills/game-art-style/SKILL.md": "
|
|
53
|
-
"js3d/context/skills/game-art-style/assets/previews/cartoon.webp": "3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9",
|
|
54
|
-
"js3d/context/skills/game-art-style/assets/previews/comic.webp": "77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63",
|
|
55
|
-
"js3d/context/skills/game-art-style/assets/previews/cozy.webp": "e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c",
|
|
56
|
-
"js3d/context/skills/game-art-style/assets/previews/cyber.webp": "8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b",
|
|
57
|
-
"js3d/context/skills/game-art-style/assets/previews/horror.webp": "041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7",
|
|
58
|
-
"js3d/context/skills/game-art-style/assets/previews/lowpoly.webp": "206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08",
|
|
59
|
-
"js3d/context/skills/game-art-style/assets/previews/paper.webp": "98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1",
|
|
60
|
-
"js3d/context/skills/game-art-style/assets/previews/voxel.webp": "2bbe76b02f1f69059ab676eb6e2f89d0a25dd405dcab80acfc2d96f4e483098d",
|
|
62
|
+
"js3d/context/skills/game-art-style/SKILL.md": "1eb429236e2d45bc5517bb141f896d7ecbb299a3bc363d5cf518aa92c5ed1750",
|
|
61
63
|
"js3d/context/skills/game-art-style/references/art-parameters-lite.md": "1038c595d9151f0c36e1d161bf28fd43b5497f3f6fd55a7eb5d5ba7c009cfc8d",
|
|
62
64
|
"js3d/context/skills/game-art-style/references/construction.md": "3eb8f46da22a4c05032bd412fd064bd2baecf1085c30ce6799b676bd36d0bd53",
|
|
63
65
|
"js3d/context/skills/game-art-style/references/materials-textures.md": "865ca5ac2f32f546cd66df107e51765339e5d6f92c49529428e8289182b4e78d",
|
|
64
66
|
"js3d/context/skills/game-art-style/references/rendering-stability.md": "9652d8694656cb9dca5316c29cf57db4e17e85cf6a154843805bb4e8dead55af",
|
|
65
|
-
"js3d/context/skills/game-art-style/references/sources.md": "
|
|
66
|
-
"js3d/context/skills/game-art-style/references/styles/cartoon.md": "
|
|
67
|
-
"js3d/context/skills/game-art-style/references/styles/comic.md": "
|
|
68
|
-
"js3d/context/skills/game-art-style/references/styles/cozy.md": "
|
|
69
|
-
"js3d/context/skills/game-art-style/references/styles/cyber.md": "
|
|
70
|
-
"js3d/context/skills/game-art-style/references/styles/horror.md": "
|
|
71
|
-
"js3d/context/skills/game-art-style/references/styles/lowpoly.md": "
|
|
72
|
-
"js3d/context/skills/game-art-style/references/styles/paper.md": "
|
|
73
|
-
"js3d/context/skills/game-art-style/references/styles/voxel.md": "
|
|
67
|
+
"js3d/context/skills/game-art-style/references/sources.md": "f75ee0f41019c22bad1a52997f9feeb9bd590acb305a0f3628760287c0b794c7",
|
|
68
|
+
"js3d/context/skills/game-art-style/references/styles/cartoon.md": "2ddf830989a67079113a56eda0d652a9285bf595b6e6db1789387658c9da1ff5",
|
|
69
|
+
"js3d/context/skills/game-art-style/references/styles/comic.md": "53ab70a6f76b234f8526b8f50949f6b013e9eb79c89092a400b2a7dd77df11a3",
|
|
70
|
+
"js3d/context/skills/game-art-style/references/styles/cozy.md": "27e52cbddf267ed2c8902334f78485cb4450a250b5ab641bd747a17843f9fe8e",
|
|
71
|
+
"js3d/context/skills/game-art-style/references/styles/cyber.md": "7913d974706f6826e82c246528ce8ed386b9da930ca9071528b42cb1ca06845b",
|
|
72
|
+
"js3d/context/skills/game-art-style/references/styles/horror.md": "114e89b84e1c87112146462ad72f65bbcaa3ff4adad6ab3e0760a2c723f1498a",
|
|
73
|
+
"js3d/context/skills/game-art-style/references/styles/lowpoly.md": "b132c25bf18e1d7787751b886aadb042d9817b6c3c252572fe7669f85d9fffe1",
|
|
74
|
+
"js3d/context/skills/game-art-style/references/styles/paper.md": "2f157a1d610bfdcb729c10f4eaef3318f016af3b1385e94e18ba55da0e51562e",
|
|
75
|
+
"js3d/context/skills/game-art-style/references/styles/voxel.md": "b4cea1532a5354f379107e406ed5128216b5c262b35136a8fa227a2197662d31",
|
|
74
76
|
"js3d/context/skills/game-art-style/references/user-style-document.md": "617b147b3f523b9d938dbb61db45dac91df6e00c91585ab4930c1d92c5499393",
|
|
75
77
|
"js3d/context/skills/index.json": "e6bcd921e77b51c21206a61d1dde2c6fb22d79ade8892774676d808dc12ed835",
|
|
76
78
|
"js3d/context/skills/mobile-adaptation/SKILL.md": "741aa0655bb713f72a73c300540541f0dd6c0acf6e9d9a2e035daabaa8f93a59",
|
|
@@ -181,9 +183,9 @@
|
|
|
181
183
|
"js3d/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
182
184
|
"craft-game-maker/SKILL.md": "99e96199b350ccc0cab2436dde06268f675ed702e7a71aab2792ef60b56324da",
|
|
183
185
|
"craft-game-maker/js3d.md": "ec21d3dd9067adadbe0d381c2011b3bea7d439b83895cdf3134debb13d971c2e",
|
|
184
|
-
"target.json": "
|
|
186
|
+
"target.json": "6b1835207601d63f8306976430f1f5670a913c493d3d659081168df0456ddbc9",
|
|
185
187
|
"bootstrap/SKILL.md": "f811153ac7071e2542612bf01982ca18ad1fa66b248b3fa579f5ab9fa510d498",
|
|
186
|
-
"recovery.md": "
|
|
188
|
+
"recovery.md": "6264726ad98aa918b50c53338afdbe1013119bbf0b10e6e0319a86a1da21d74a"
|
|
187
189
|
},
|
|
188
|
-
"id": "
|
|
190
|
+
"id": "2964b1bc2f56094400c5175fb0f529fb48596adb273418eda7ccd3673a8e0f3d"
|
|
189
191
|
}
|
|
@@ -57,4 +57,4 @@ description: 为 JS3D 选择并直接实施画面与 UI 风格。支持首轮及
|
|
|
57
57
|
|
|
58
58
|
按当前问题打开对应参考。选择内置风格时读取命中的一张卡。
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
需要校准复刻程度时,打开所选风格卡片末尾链接的共享预览图,参考造型、材料和光色,不参考其机位、投影或取景;不把图库所有图片加入上下文。来源核对才读 [sources.md](references/sources.md)。
|
package/resources/targets/codebuddy/js3d/js3d/context/skills/game-art-style/references/sources.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## 已核对的证据
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 八张全景为小样实际渲染;每张风格卡片末尾链接到工程共享的对应小样。图只用于比较轮廓、材料、光色和层次,不作为新项目固定题材,也不提供相机、投影、角度或取景依据。游戏相机完全沿用整体框架。
|
|
8
8
|
- 小样的 scenes、lib、app 源文件确认构造、程序纹理与照明机制;其 Three.js 为 r186,原《晴野小岛》说明为 r180,本次 JS3D 模板为 r185.1。
|
|
9
9
|
- 图片观察色、材质输入值、照明参数和本次建议默认在单风格指南中区分。季节未公开时明确为本库默认设定。
|
|
10
10
|
- 本次改造验证技能引用、框架和制作流程;未据此宣称八种新题材的画面都已试作或所有设备表现都已验证。
|
|
@@ -172,4 +172,4 @@ export function softVolume(w, h, d, e = 0.8) {
|
|
|
172
172
|
|
|
173
173
|
交付前检查框架既有游戏画面、目标小屏和至少一个完整交互过程;代表资产的近景与侧面诊断在独立资产检查中完成。检查轮廓、五官与附件遮挡、材质差异、接触影、动作回位以及帧时间;报告真实检查范围。代码无报错不能替代画面验收。需要通用截面、法线与支点实现时按需读 [造型与装配](../construction.md)。
|
|
174
174
|
|
|
175
|
-
需要复核风格时按需查看 [经典卡通参考小样](
|
|
175
|
+
需要复核风格时按需查看 [经典卡通参考小样](../../../../../.craft/art-previews/cartoon-3f9e1acaf11be3a7ffdaac90802f591a9563724e742cc5891284ef1ee8b67ee9.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
|
@@ -165,4 +165,4 @@ UI 可沿用纸色面板、墨色线框和有限强调色,字体先读清;
|
|
|
165
165
|
换成新题材后,至少核对一个生命体和一个结构件是否共享漫画语言,同时保留不同构造。
|
|
166
166
|
可见画面修改后沿项目既有 [现有画面验收](../../../visual-qa/SKILL.md) 与构建流程验证;文档完整或参数一致不能代替渲染结果。
|
|
167
167
|
|
|
168
|
-
可选视觉参照:[美漫小样](
|
|
168
|
+
可选视觉参照:[美漫小样](../../../../../.craft/art-previews/comic-77969cf47f2600424b5c64ef20930ba7b7081df3a5640608855913bbb99cea63.webp)。只比较主形、外缘、脸型与色阶,不将图中对象数量和布局当成新项目清单。
|
|
@@ -188,4 +188,4 @@ Toon 主体只加颜色层面的弱材料信息,不加高频凹凸破坏分档
|
|
|
188
188
|
|
|
189
189
|
先用代表人物/物种、环境大面与一种生活物件验证比例、色阶和材质,再扩展资产。交付前检查框架既有游戏画面、目标小屏与完整动作,并在独立资产检查中诊断细节和侧面;检查冠层空隙、五官遮挡、袖口连接、地形接缝、足底与帧时间。记录实际检查结果,不能用“已采用 Toon”或无报错代替视觉证据。
|
|
190
190
|
|
|
191
|
-
需要复核风格时按需查看 [温馨治愈参考小样](
|
|
191
|
+
需要复核风格时按需查看 [温馨治愈参考小样](../../../../../.craft/art-previews/cozy-e5fcba518afcf147c289b58b94a3532b30d96ab48418cc95efc1f28e9f80a90c.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
|
@@ -162,4 +162,4 @@ UI 用深暗底、浅字和少量霓虹状态色,必要信息不依赖发光
|
|
|
162
162
|
确认一处布、金属和湿面在同一照明下有不同响应,霓虹未洗白面部。
|
|
163
163
|
沿现有构建和 [现有画面验收](../../../visual-qa/SKILL.md) 流程验证当前最终状态;没有测量就不承诺帧率,静态截图不证明动态接地或所有视角已通过。
|
|
164
164
|
|
|
165
|
-
可选视觉参照:[赛博朋克小样](
|
|
165
|
+
可选视觉参照:[赛博朋克小样](../../../../../.craft/art-previews/cyber-8e6934fed1a42ed08838ac8bfaaf8f1d9b10c29c23c5843895c0791412ad3d2b.webp)。比较灯源与反光因果、工业大块和主体比例,不复制招牌文案、角色组合或空间坐标。
|
|
@@ -170,4 +170,4 @@ UI 保持低干扰但有足够对比,文字不一起套暗雾或鬼影效果
|
|
|
170
170
|
先问“能读懂人在何处、空间为何压迫”,再问纹理够不够旧;不把更多噪点当作改进。
|
|
171
171
|
按项目已有构建与 [现有画面验收](../../../visual-qa/SKILL.md) 流程验证,不增设与画面无关的审批文档。未测试的视角、动画状态和性能如实说明。
|
|
172
172
|
|
|
173
|
-
可选视觉参照:[恐怖元素小样](
|
|
173
|
+
可选视觉参照:[恐怖元素小样](../../../../../.craft/art-previews/horror-041ee4c51839b38a71517a4608d94fa64b860cd9d8500e5c6fa983bd00a0e7c7.webp)。比较脆弱尺度、连续脸面、压迫空间与选择性照明;不要把其极暗区域作为所有设备的最低可见标准。
|
|
@@ -182,4 +182,4 @@ UI 可用简洁实色面、清楚图标和有限状态色,与大色面简化
|
|
|
182
182
|
与体素或圆润卡通并排时,应能由造型与法线辨认,而非只凭颜色和标题。
|
|
183
183
|
沿项目现有构建与 [现有画面验收](../../../visual-qa/SKILL.md) 检查最终状态;静态图不能替代脚底、关节和完整互动验证,不报告未经测量的性能结论。
|
|
184
184
|
|
|
185
|
-
可选视觉参照:[Lowpoly 小样](
|
|
185
|
+
可选视觉参照:[Lowpoly 小样](../../../../../.craft/art-previews/lowpoly-206f350338c6c1a890981e2e35ee9bc600951701d01f2e823a259c5b5c241a08.webp)。重点比较宽脸小眼、连续截面、大切面、草叶深浅与中性日光,不照搬营地和固定动物组合。
|
|
@@ -178,4 +178,4 @@ export function cutCard(points, frontColor, thickness = 0.03) {
|
|
|
178
178
|
|
|
179
179
|
交付前检查框架既有游戏画面、目标屏幕和完整动作;薄边、折面侧向与必要背面在独立资产检查中核对。验收时不能只看纸纹:必须看真实厚度、装配、层间影、纸芯材质与面部可读性;并检查资源复用和帧时间。报告实际通过与尚未检查的范围,不以标题“纸片”代替视觉验证。
|
|
180
180
|
|
|
181
|
-
需要复核风格时按需查看 [纸片参考小样](
|
|
181
|
+
需要复核风格时按需查看 [纸片参考小样](../../../../../.craft/art-previews/paper-98dff3c4d5d493730af33e38777721c8a6c46c222e8f4d9f3b3c6f0f36fe19d1.webp),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|