@playcraft/cli 0.1.40-beta → 0.1.41-prod

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.
Files changed (368) hide show
  1. package/README.md +3 -58
  2. package/dist/agent/local-backend.js +1 -1
  3. package/dist/cli-root-help.js +0 -2
  4. package/dist/commands/build-all.js +19 -5
  5. package/dist/commands/build.js +28 -15
  6. package/dist/commands/create.js +33 -26
  7. package/dist/commands/image.js +6 -2
  8. package/dist/commands/login.js +42 -84
  9. package/dist/commands/skills.js +0 -4
  10. package/dist/commands/tools-3d.js +0 -11
  11. package/dist/commands/tools-generation.js +137 -69
  12. package/dist/commands/tools-image-context.js +29 -0
  13. package/dist/commands/tools-utils.js +12 -0
  14. package/dist/commands/tools.js +2 -2
  15. package/dist/config.js +4 -59
  16. package/dist/index.js +3 -40
  17. package/dist/remix/clone.js +0 -2
  18. package/dist/remix/init-template.js +0 -2
  19. package/dist/remix/pull.js +0 -2
  20. package/dist/remix/push.js +1 -21
  21. package/dist/utils/agent-api-client.js +30 -185
  22. package/dist/utils/image-asset-context.js +228 -0
  23. package/dist/utils/playcraft-http-client.js +4 -6
  24. package/package.json +3 -13
  25. package/project-template/.claude/agents/refs/ta-image-generation-detail.md +67 -123
  26. package/project-template/.claude/skills/playcraft-image-generation/SKILL.md +135 -63
  27. package/project-template/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +42 -33
  28. package/project-template/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +18 -20
  29. package/project-template/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +6 -7
  30. package/project-template/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +39 -39
  31. package/project-templates/phaser/.claude/agents/refs/ta-image-generation-detail.md +59 -59
  32. package/project-templates/phaser/.claude/skills/playcraft-image-generation/SKILL.md +135 -63
  33. package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +42 -33
  34. package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +18 -20
  35. package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +6 -7
  36. package/project-templates/phaser/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +39 -39
  37. package/project-templates/threejs/.claude/agents/refs/ta-image-generation-detail.md +59 -59
  38. package/project-templates/threejs/.claude/skills/playcraft-image-generation/SKILL.md +135 -63
  39. package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +42 -33
  40. package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +18 -20
  41. package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +6 -7
  42. package/project-templates/threejs/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +39 -39
  43. package/SKILLS_REGISTRY.md +0 -149
  44. package/dist/auth/account-activation.js +0 -157
  45. package/dist/auth/messages.js +0 -30
  46. package/dist/commands/build-temp.js +0 -26
  47. package/dist/commands/platform-skills.generated.js +0 -19
  48. package/dist/commands/playable.js +0 -53
  49. package/dist/commands/tools-batch.js +0 -87
  50. package/dist/commands/video.js +0 -111
  51. package/dist/commands/workspace-runtime.js +0 -54
  52. package/dist/commands/workspace.js +0 -35
  53. package/dist/project-skills/builtin-import.js +0 -225
  54. package/dist/project-skills/commands.js +0 -77
  55. package/dist/project-skills/lifecycle.js +0 -28
  56. package/dist/project-skills/local-run.js +0 -112
  57. package/dist/project-skills/local-store.js +0 -221
  58. package/dist/project-skills/messages.js +0 -80
  59. package/dist/project-skills/reconcile.js +0 -62
  60. package/dist/project-skills/remote-cache.js +0 -51
  61. package/dist/project-skills/validation.js +0 -19
  62. package/dist/recording/messages.js +0 -40
  63. package/dist/recording/project-digest.js +0 -85
  64. package/dist/recording/recorder.js +0 -293
  65. package/dist/recording/scenario.js +0 -50
  66. package/dist/skill-registry/client.js +0 -345
  67. package/dist/skill-registry/commands.js +0 -180
  68. package/dist/skill-registry/evaluation-client.js +0 -156
  69. package/dist/skill-registry/evaluation-commands.js +0 -174
  70. package/dist/skill-registry/messages.js +0 -177
  71. package/dist/skill-registry/package.js +0 -275
  72. package/dist/skill-registry/platform-package.js +0 -100
  73. package/dist/utils/environment-endpoints.js +0 -17
  74. package/dist/utils/tool-operation-journal.js +0 -124
  75. package/dist/utils/video-evidence-git.js +0 -81
  76. package/dist/video-replication/client.js +0 -222
  77. package/dist/video-replication/comparison-evidence.js +0 -149
  78. package/dist/video-replication/comparison-files.js +0 -57
  79. package/dist/video-replication/comparison-log.js +0 -72
  80. package/dist/video-replication/comparison-messages.js +0 -104
  81. package/dist/video-replication/comparison-output.js +0 -63
  82. package/dist/video-replication/comparison-preflight.js +0 -66
  83. package/dist/video-replication/comparison.js +0 -216
  84. package/dist/video-replication/evidence.js +0 -165
  85. package/dist/video-replication/media.js +0 -111
  86. package/dist/video-replication/messages.js +0 -89
  87. package/dist/workspace/messages.js +0 -35
  88. package/dist/workspace/transfer-client.js +0 -174
  89. package/dist/workspace-runtime/codex/app-server.js +0 -1040
  90. package/dist/workspace-runtime/codex/compact.js +0 -46
  91. package/dist/workspace-runtime/codex/config-toml.js +0 -107
  92. package/dist/workspace-runtime/codex/jsonrpc-stdio.js +0 -145
  93. package/dist/workspace-runtime/codex/launcher-client.js +0 -177
  94. package/dist/workspace-runtime/codex/loopback.js +0 -146
  95. package/dist/workspace-runtime/codex/mcp-config.js +0 -39
  96. package/dist/workspace-runtime/codex/model-broker.js +0 -263
  97. package/dist/workspace-runtime/codex/native-adapter.js +0 -9
  98. package/dist/workspace-runtime/codex/permissions.js +0 -70
  99. package/dist/workspace-runtime/codex/thread-image.js +0 -38
  100. package/dist/workspace-runtime/codex/ui-instructions.js +0 -4
  101. package/dist/workspace-runtime/codex/ui-tools.js +0 -183
  102. package/dist/workspace-runtime/codex/work-mode.js +0 -15
  103. package/dist/workspace-runtime/main.js +0 -10
  104. package/dist/workspace-runtime/persistence/journal.js +0 -365
  105. package/dist/workspace-runtime/persistence/native-subagents.js +0 -162
  106. package/dist/workspace-runtime/persistence/sqlite-client.js +0 -77
  107. package/dist/workspace-runtime/persistence/sqlite-worker.js +0 -1161
  108. package/dist/workspace-runtime/persistence/stopped-execution.js +0 -77
  109. package/dist/workspace-runtime/previews/output.js +0 -36
  110. package/dist/workspace-runtime/previews/publish.js +0 -262
  111. package/dist/workspace-runtime/previews/single-file.js +0 -43
  112. package/dist/workspace-runtime/processes/managed-writes.js +0 -69
  113. package/dist/workspace-runtime/production/content-changes.js +0 -36
  114. package/dist/workspace-runtime/production/contracts.js +0 -19
  115. package/dist/workspace-runtime/production/controller.js +0 -218
  116. package/dist/workspace-runtime/production/dependencies.js +0 -60
  117. package/dist/workspace-runtime/production/native.js +0 -212
  118. package/dist/workspace-runtime/production/processes.js +0 -102
  119. package/dist/workspace-runtime/production/save-command.js +0 -35
  120. package/dist/workspace-runtime/production/source-archive.js +0 -137
  121. package/dist/workspace-runtime/production/source-copy.js +0 -91
  122. package/dist/workspace-runtime/production/stages.js +0 -334
  123. package/dist/workspace-runtime/production/storage.js +0 -75
  124. package/dist/workspace-runtime/serve.js +0 -214
  125. package/dist/workspace-runtime/server/auth.js +0 -21
  126. package/dist/workspace-runtime/server/connectivity.js +0 -201
  127. package/dist/workspace-runtime/server/desktop-host.js +0 -429
  128. package/dist/workspace-runtime/server/desktop-preview-config.js +0 -81
  129. package/dist/workspace-runtime/server/desktop-preview-service.js +0 -157
  130. package/dist/workspace-runtime/server/desktop-preview-static.js +0 -53
  131. package/dist/workspace-runtime/server/desktop-preview.js +0 -189
  132. package/dist/workspace-runtime/server/dispatch.js +0 -1217
  133. package/dist/workspace-runtime/server/endpoints.js +0 -21
  134. package/dist/workspace-runtime/server/execution-group.js +0 -90
  135. package/dist/workspace-runtime/server/http.js +0 -1243
  136. package/dist/workspace-runtime/server/lock.js +0 -53
  137. package/dist/workspace-runtime/server/rfb-watch-gate.js +0 -168
  138. package/dist/workspace-runtime/server/source-uploader.js +0 -138
  139. package/dist/workspace-runtime/server/terminal-host.js +0 -366
  140. package/dist/workspace-runtime/server/types.js +0 -1
  141. package/dist/workspace-runtime/server/workspace-transfer.js +0 -99
  142. package/dist/workspace-runtime/workspaces/archive.js +0 -207
  143. package/dist/workspace-runtime/workspaces/artifact-events.js +0 -55
  144. package/dist/workspace-runtime/workspaces/artifact-files.js +0 -197
  145. package/dist/workspace-runtime/workspaces/artifact-receipts.js +0 -89
  146. package/dist/workspace-runtime/workspaces/artifacts.js +0 -282
  147. package/dist/workspace-runtime/workspaces/attachment-content.js +0 -123
  148. package/dist/workspace-runtime/workspaces/attachments.js +0 -185
  149. package/dist/workspace-runtime/workspaces/batch-commit.js +0 -142
  150. package/dist/workspace-runtime/workspaces/cli-context.js +0 -23
  151. package/dist/workspace-runtime/workspaces/cli-credentials.js +0 -111
  152. package/dist/workspace-runtime/workspaces/composer-context.js +0 -147
  153. package/dist/workspace-runtime/workspaces/context-error.js +0 -2
  154. package/dist/workspace-runtime/workspaces/dependencies.js +0 -264
  155. package/dist/workspace-runtime/workspaces/developer-command.js +0 -64
  156. package/dist/workspace-runtime/workspaces/directories.js +0 -133
  157. package/dist/workspace-runtime/workspaces/directory-access.js +0 -37
  158. package/dist/workspace-runtime/workspaces/directory-attachments.js +0 -245
  159. package/dist/workspace-runtime/workspaces/directory-maintenance.js +0 -111
  160. package/dist/workspace-runtime/workspaces/directory-stats.js +0 -49
  161. package/dist/workspace-runtime/workspaces/disk-snapshot.js +0 -31
  162. package/dist/workspace-runtime/workspaces/empty-template.js +0 -42
  163. package/dist/workspace-runtime/workspaces/files-search.js +0 -116
  164. package/dist/workspace-runtime/workspaces/files.js +0 -138
  165. package/dist/workspace-runtime/workspaces/git-credential-broker.js +0 -312
  166. package/dist/workspace-runtime/workspaces/git-credential-helper.js +0 -68
  167. package/dist/workspace-runtime/workspaces/git-direct-store.js +0 -155
  168. package/dist/workspace-runtime/workspaces/git.js +0 -670
  169. package/dist/workspace-runtime/workspaces/instructions.js +0 -56
  170. package/dist/workspace-runtime/workspaces/json5-edit.js +0 -170
  171. package/dist/workspace-runtime/workspaces/library-attachments.js +0 -268
  172. package/dist/workspace-runtime/workspaces/optional-platform-skills.js +0 -14
  173. package/dist/workspace-runtime/workspaces/parameters.js +0 -272
  174. package/dist/workspace-runtime/workspaces/prepare.js +0 -278
  175. package/dist/workspace-runtime/workspaces/registry.js +0 -251
  176. package/dist/workspace-runtime/workspaces/remix-references.js +0 -301
  177. package/dist/workspace-runtime/workspaces/revisions.js +0 -31
  178. package/dist/workspace-runtime/workspaces/session-image.js +0 -104
  179. package/dist/workspace-runtime/workspaces/shared-git.js +0 -40
  180. package/dist/workspace-runtime/workspaces/skill-artifact-loader.js +0 -95
  181. package/dist/workspace-runtime/workspaces/skills.js +0 -191
  182. package/dist/workspace-runtime/workspaces/transfer.js +0 -288
  183. package/dist/workspace-runtime/workspaces/turn-changes.js +0 -75
  184. package/dist/workspace-runtime/workspaces/video-attachments.js +0 -49
  185. package/project-template/.claude/skills/playcraft-replica-validation/SKILL.md +0 -25
  186. package/project-template/.claude/skills/playcraft-replica-validation/references/contracts.md +0 -79
  187. package/project-template/.claude/skills/playcraft-video-understanding/SKILL.md +0 -29
  188. package/project-template/.claude/skills/playcraft-video-understanding/references/contracts.md +0 -37
  189. package/project-template-v2/.claude/agents/artist.md +0 -82
  190. package/project-template-v2/.claude/agents/developer.md +0 -153
  191. package/project-template-v2/.claude/agents/game-designer.md +0 -264
  192. package/project-template-v2/.claude/agents/refs/artist-art-style-catalog.md +0 -533
  193. package/project-template-v2/.claude/agents/refs/artist-color-audio-recipes.md +0 -153
  194. package/project-template-v2/.claude/agents/refs/artist-dimension-axis.md +0 -27
  195. package/project-template-v2/.claude/agents/refs/artist-master-composite-recipes.md +0 -208
  196. package/project-template-v2/.claude/agents/refs/atom-skill-library.md +0 -81
  197. package/project-template-v2/.claude/agents/refs/developer-impl-cookbook.md +0 -432
  198. package/project-template-v2/.claude/agents/refs/framework-5-component-filter.md +0 -252
  199. package/project-template-v2/.claude/agents/refs/framework-game-feel-juice.md +0 -266
  200. package/project-template-v2/.claude/agents/refs/framework-mda.md +0 -147
  201. package/project-template-v2/.claude/agents/refs/game-designer-gameplay-sufficiency.md +0 -123
  202. package/project-template-v2/.claude/agents/refs/ta-3d-flip-recipe.md +0 -88
  203. package/project-template-v2/.claude/agents/refs/ta-atlas-deliverable-standard.md +0 -67
  204. package/project-template-v2/.claude/agents/refs/ta-batch-pipeline-recipes.md +0 -120
  205. package/project-template-v2/.claude/agents/refs/ta-image-generation-detail.md +0 -300
  206. package/project-template-v2/.claude/agents/refs/ta-image-ops-reference.md +0 -495
  207. package/project-template-v2/.claude/agents/refs/ta-pipeline-cookbook.md +0 -1141
  208. package/project-template-v2/.claude/agents/refs/ta-tools-reference.md +0 -111
  209. package/project-template-v2/.claude/agents/refs/ta-vfx-preset-catalog.md +0 -365
  210. package/project-template-v2/.claude/agents/refs/threejs-cannon-pitfalls.md +0 -412
  211. package/project-template-v2/.claude/agents/reviewer.md +0 -75
  212. package/project-template-v2/.claude/agents/technical-artist.md +0 -86
  213. package/project-template-v2/.claude/hooks/snapshot-milestone.mjs +0 -243
  214. package/project-template-v2/.claude/hooks/user-prompt.mjs +0 -133
  215. package/project-template-v2/.claude/settings.json +0 -33
  216. package/project-template-v2/.claude/skills/brainstorming/SKILL.md +0 -161
  217. package/project-template-v2/.claude/skills/brainstorming/scripts/frame-template.html +0 -270
  218. package/project-template-v2/.claude/skills/brainstorming/scripts/helper.js +0 -177
  219. package/project-template-v2/.claude/skills/brainstorming/scripts/server.cjs +0 -354
  220. package/project-template-v2/.claude/skills/brainstorming/scripts/start-server.sh +0 -148
  221. package/project-template-v2/.claude/skills/brainstorming/scripts/stop-server.sh +0 -56
  222. package/project-template-v2/.claude/skills/brainstorming/scripts/wait-for-selection.sh +0 -62
  223. package/project-template-v2/.claude/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  224. package/project-template-v2/.claude/skills/brainstorming/visual-companion.md +0 -309
  225. package/project-template-v2/.claude/skills/playcraft-ad-psychology/SKILL.md +0 -182
  226. package/project-template-v2/.claude/skills/playcraft-art-style-guide/SKILL.md +0 -123
  227. package/project-template-v2/.claude/skills/playcraft-asset-state-sheet/SKILL.md +0 -205
  228. package/project-template-v2/.claude/skills/playcraft-audio-generation/SKILL.md +0 -280
  229. package/project-template-v2/.claude/skills/playcraft-batch-pipeline/SKILL.md +0 -184
  230. package/project-template-v2/.claude/skills/playcraft-build-optimizer/SKILL.md +0 -306
  231. package/project-template-v2/.claude/skills/playcraft-image-generation/SKILL.md +0 -298
  232. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/build-sprite-sheet.template.mjs +0 -123
  233. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/compare-style.template.mjs +0 -254
  234. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/gen-batch-sprite.template.mjs +0 -324
  235. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/gen-batch.template.mjs +0 -97
  236. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/gen-edit-variants.template.mjs +0 -118
  237. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/process-batch.template.mjs +0 -137
  238. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/prompt-cookbook.md +0 -397
  239. package/project-template-v2/.claude/skills/playcraft-image-generation/reference/validate-sprite-sheet.template.mjs +0 -296
  240. package/project-template-v2/.claude/skills/playcraft-image-ops/SKILL.md +0 -122
  241. package/project-template-v2/.claude/skills/playcraft-image-processing/SKILL.md +0 -219
  242. package/project-template-v2/.claude/skills/playcraft-masking/SKILL.md +0 -373
  243. package/project-template-v2/.claude/skills/playcraft-playable-optimization/SKILL.md +0 -161
  244. package/project-template-v2/.claude/skills/playcraft-research/SKILL.md +0 -215
  245. package/project-template-v2/.claude/skills/playcraft-skill-recommender/SKILL.md +0 -382
  246. package/project-template-v2/.claude/skills/playcraft-sprite-generation/SKILL.md +0 -423
  247. package/project-template-v2/.claude/skills/playcraft-sprite-remix/SKILL.md +0 -158
  248. package/project-template-v2/.claude/skills/playcraft-sprite-sheet/SKILL.md +0 -100
  249. package/project-template-v2/.claude/skills/playcraft-storyboard/SKILL.md +0 -167
  250. package/project-template-v2/.claude/skills/playcraft-style-qa/SKILL.md +0 -270
  251. package/project-template-v2/.claude/skills/playcraft-text-rendering/SKILL.md +0 -236
  252. package/project-template-v2/.claude/skills/playcraft-vfx-animation/SKILL.md +0 -130
  253. package/project-template-v2/.claude/skills/playwright-cli/SKILL.md +0 -390
  254. package/project-template-v2/.claude/skills/playwright-cli/references/element-attributes.md +0 -23
  255. package/project-template-v2/.claude/skills/playwright-cli/references/playwright-tests.md +0 -39
  256. package/project-template-v2/.claude/skills/playwright-cli/references/request-mocking.md +0 -87
  257. package/project-template-v2/.claude/skills/playwright-cli/references/running-code.md +0 -240
  258. package/project-template-v2/.claude/skills/playwright-cli/references/session-management.md +0 -226
  259. package/project-template-v2/.claude/skills/playwright-cli/references/spec-driven-testing.md +0 -308
  260. package/project-template-v2/.claude/skills/playwright-cli/references/storage-state.md +0 -275
  261. package/project-template-v2/.claude/skills/playwright-cli/references/test-generation.md +0 -134
  262. package/project-template-v2/.claude/skills/playwright-cli/references/tracing.md +0 -142
  263. package/project-template-v2/.claude/skills/playwright-cli/references/video-recording.md +0 -153
  264. package/project-template-v2/.claude/skills/session-analyzer/SKILL.md +0 -386
  265. package/project-template-v2/.claude/skills/session-analyzer/scripts/execution-breakdown.mjs +0 -182
  266. package/project-template-v2/.claude/skills/session-analyzer/scripts/find-turns.mjs +0 -72
  267. package/project-template-v2/.claude/skills/session-analyzer/scripts/heavy-output.mjs +0 -121
  268. package/project-template-v2/.claude/skills/session-analyzer/scripts/resolve-session.mjs +0 -102
  269. package/project-template-v2/.claude/skills/session-analyzer/scripts/subagent-stats.mjs +0 -127
  270. package/project-template-v2/.claude/skills/session-analyzer/scripts/subagent-tool-timeline.mjs +0 -106
  271. package/project-template-v2/.claude/skills/session-analyzer/scripts/time-gaps.mjs +0 -128
  272. package/project-template-v2/.claude/skills/session-analyzer/scripts/turn-timeline.mjs +0 -67
  273. package/project-template-v2/.claude/snapshot.mjs +0 -263
  274. package/project-template-v2/.playcraft/skills.lock.json +0 -152
  275. package/project-template-v2/CLAUDE.md +0 -146
  276. package/project-template-v2/assets/audio/bgm/.gitkeep +0 -0
  277. package/project-template-v2/assets/audio/sfx/.gitkeep +0 -0
  278. package/project-template-v2/assets/bundles/.gitkeep +0 -0
  279. package/project-template-v2/assets/images/bg/.gitkeep +0 -0
  280. package/project-template-v2/assets/images/reference/.gitkeep +0 -0
  281. package/project-template-v2/assets/images/storyboard/.gitkeep +0 -0
  282. package/project-template-v2/assets/images/tiles/.gitkeep +0 -0
  283. package/project-template-v2/assets/images/ui/.gitkeep +0 -0
  284. package/project-template-v2/assets/images/vfx/.gitkeep +0 -0
  285. package/project-template-v2/assets/models/.gitkeep +0 -0
  286. package/project-template-v2/docs/harness/iteration-1/context-flow.md +0 -254
  287. package/project-template-v2/docs/harness/iteration-1/generate-flow.md +0 -91
  288. package/project-template-v2/docs/harness/iteration-1/ideate-flow.md +0 -214
  289. package/project-template-v2/docs/harness/iteration-1/optimize-flow.md +0 -75
  290. package/project-template-v2/docs/harness/iteration-1/wrapup-flow.md +0 -63
  291. package/project-template-v2/docs/harness/iteration-2/context-flow.md +0 -223
  292. package/project-template-v2/docs/harness/iteration-2/generate-flow.md +0 -129
  293. package/project-template-v2/docs/harness/iteration-2/ideate-flow.md +0 -267
  294. package/project-template-v2/docs/harness/iteration-2/optimize-flow.md +0 -164
  295. package/project-template-v2/docs/harness/iteration-2/wrapup-flow.md +0 -115
  296. package/project-template-v2/docs/harness/orchestrator-flow.md +0 -364
  297. package/project-template-v2/docs/project-state.json +0 -60
  298. package/project-template-v2/docs/project-state.md +0 -72
  299. package/project-template-v2/docs/standards/README.md +0 -225
  300. package/project-template-v2/docs/standards/agent-behavior-standards.md +0 -174
  301. package/project-template-v2/docs/standards/artifacts/design-brief.md +0 -19
  302. package/project-template-v2/docs/standards/artifacts/design.md +0 -22
  303. package/project-template-v2/docs/standards/artifacts/game-code.md +0 -41
  304. package/project-template-v2/docs/standards/artifacts/todo-list.md +0 -41
  305. package/project-template-v2/docs/standards/iter1-agent-behavior-standards.md +0 -343
  306. package/project-template-v2/game/index.ts +0 -18
  307. package/project-template-v2/globals.d.ts +0 -51
  308. package/project-template-v2/index.css +0 -34
  309. package/project-template-v2/index.html +0 -18
  310. package/project-template-v2/main.ts +0 -9
  311. package/project-template-v2/package.json +0 -46
  312. package/project-template-v2/skills/_shared/scripts/dispatch-clear.mjs +0 -31
  313. package/project-template-v2/skills/_shared/scripts/dispatch-set.mjs +0 -86
  314. package/project-template-v2/skills/_shared/scripts/dod-check.mjs +0 -153
  315. package/project-template-v2/skills/_shared/scripts/handoff-append.mjs +0 -70
  316. package/project-template-v2/skills/_shared/scripts/lib/validator-artifacts.mjs +0 -91
  317. package/project-template-v2/skills/_shared/scripts/pipeline/dod-config.mjs +0 -131
  318. package/project-template-v2/skills/_shared/scripts/pipeline/index.mjs +0 -80
  319. package/project-template-v2/skills/_shared/scripts/pipeline/iteration-1-core.mjs +0 -90
  320. package/project-template-v2/skills/_shared/scripts/pipeline/iteration-2-wrap.mjs +0 -93
  321. package/project-template-v2/skills/_shared/scripts/pipeline/iteration-3-visual.mjs +0 -23
  322. package/project-template-v2/skills/_shared/scripts/render-project-state.mjs +0 -230
  323. package/project-template-v2/skills/_shared/scripts/state-advance-stage.mjs +0 -58
  324. package/project-template-v2/skills/_shared/scripts/state-get.mjs +0 -339
  325. package/project-template-v2/skills/_shared/scripts/state-handoff.mjs +0 -39
  326. package/project-template-v2/skills/_shared/scripts/state-set.mjs +0 -94
  327. package/project-template-v2/skills/_shared/scripts/state-store.mjs +0 -783
  328. package/project-template-v2/skills/_shared/scripts/todo-add.mjs +0 -88
  329. package/project-template-v2/skills/_shared/scripts/todo-get.mjs +0 -130
  330. package/project-template-v2/skills/_shared/scripts/todo-remove.mjs +0 -33
  331. package/project-template-v2/skills/_shared/scripts/todo-set.mjs +0 -47
  332. package/project-template-v2/skills/_shared/scripts/verify-asset-code-sync.mjs +0 -268
  333. package/project-template-v2/skills/_shared/scripts/verify-env.mjs +0 -285
  334. package/project-template-v2/skills/_shared/scripts/verify-placeholders.mjs +0 -161
  335. package/project-template-v2/skills/playable-autoplay/SKILL.md +0 -176
  336. package/project-template-v2/skills/playable-autoplay/agents/openai.yaml +0 -4
  337. package/project-template-v2/skills/playable-debug/SKILL.md +0 -116
  338. package/project-template-v2/skills/playable-debug/agents/openai.yaml +0 -4
  339. package/project-template-v2/skills/playable-debug/references/debug-config.md +0 -40
  340. package/project-template-v2/skills/playable-record/SKILL.md +0 -140
  341. package/project-template-v2/skills/playable-record/scripts/lib/dev-server.mjs +0 -104
  342. package/project-template-v2/skills/playable-record/scripts/lib/record-audio-bridge.js +0 -141
  343. package/project-template-v2/skills/playable-record/scripts/record-playable.mjs +0 -425
  344. package/project-template-v2/skills/playable-record/scripts/verify-contract.mjs +0 -261
  345. package/project-template-v2/skills/playable-record/scripts/verify-firstwin.mjs +0 -398
  346. package/project-template-v2/skills/playable-record/scripts/verify-fusion.mjs +0 -322
  347. package/project-template-v2/skills/playable-record/scripts/verify-lifecycle.mjs +0 -105
  348. package/project-template-v2/skills/playable-record/scripts/verify-vlm-video.mjs +0 -230
  349. package/project-template-v2/skills/playable-validate/SKILL.md +0 -61
  350. package/project-template-v2/skills/playable-validate/validation-rules.md +0 -14
  351. package/project-template-v2/skills/playable-verify-ui/SKILL.md +0 -63
  352. package/project-template-v2/skills/playable-verify-ui/scripts/lib/__init__.py +0 -1
  353. package/project-template-v2/skills/playable-verify-ui/scripts/lib/config_expr.js +0 -218
  354. package/project-template-v2/skills/playable-verify-ui/scripts/lib/node_utils.js +0 -51
  355. package/project-template-v2/skills/playable-verify-ui/scripts/lib/profile_loader.py +0 -59
  356. package/project-template-v2/skills/playable-verify-ui/scripts/lib/report.py +0 -106
  357. package/project-template-v2/skills/playable-verify-ui/scripts/lib/runtime_contract.js +0 -116
  358. package/project-template-v2/skills/playable-verify-ui/scripts/verify_fetch_antipatterns.py +0 -59
  359. package/project-template-v2/skills/playable-verify-ui/scripts/verify_hardcoded_layout.js +0 -64
  360. package/project-template-v2/skills/playable-verify-ui/scripts/verify_runtime_contract.js +0 -58
  361. package/project-template-v2/skills/playable-verify-ui/scripts/verify_text_overlap.py +0 -333
  362. package/project-template-v2/ta-workspace/scripts/.gitkeep +0 -0
  363. package/project-template-v2/tsconfig.json +0 -20
  364. package/project-template-v2/vite.config.ts +0 -27
  365. package/project-templates/batch-locks/phaser.yaml +0 -922
  366. package/project-templates/batch-locks/threejs.yaml +0 -978
  367. package/project-templates/empty/AGENTS.md +0 -41
  368. package/project-templates/empty/gitignore +0 -33
@@ -1,263 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * snapshot.mjs — Archive current project state + all AI sessions as a git commit + tag
4
- *
5
- * Usage:
6
- * node snapshot.mjs # snapshot cwd project
7
- * node snapshot.mjs <project-path> # snapshot a specific project
8
- * node snapshot.mjs --project <path> # same as above, explicit flag
9
- * node snapshot.mjs --name <label> # custom label for the snapshot commit
10
- * node snapshot.mjs --force # skip active-CLI check
11
- *
12
- * What gets archived:
13
- * All tracked project files (git add -A)
14
- * .playcraft/sessions/ — session JSONL files (main + subagents) from all three stores
15
- * (Claude Code / Claude Internal / CodeBuddy) matching the project path
16
- *
17
- * Output: git commit snapshot: {label} ({MMDD_HHmm})
18
- */
19
-
20
- import { spawnSync } from 'child_process';
21
- import { existsSync, readdirSync, statSync, mkdirSync, writeFileSync, rmSync, cpSync } from 'fs';
22
- import { join, basename, resolve } from 'path';
23
- import { homedir } from 'os';
24
-
25
- // ── helpers ──────────────────────────────────────────────────────────────────
26
-
27
- function parseArgs() {
28
- const args = process.argv.slice(2);
29
- const opts = { project: null, name: null, force: false };
30
- for (let i = 0; i < args.length; i++) {
31
- if (args[i] === '--project' && args[i + 1]) opts.project = args[++i];
32
- else if (args[i] === '--name' && args[i + 1]) opts.name = args[++i];
33
- else if (args[i] === '--force') opts.force = true;
34
- else if (!args[i].startsWith('--') && !opts.project) opts.project = args[i];
35
- }
36
- return opts;
37
- }
38
-
39
- function timestamp() {
40
- const d = new Date();
41
- const pad = n => String(n).padStart(2, '0');
42
- return `${pad(d.getMonth() + 1)}${pad(d.getDate())}_${pad(d.getHours())}${pad(d.getMinutes())}`;
43
- }
44
-
45
- function isoNow() {
46
- return new Date().toISOString();
47
- }
48
-
49
- // ── active CLI detection ─────────────────────────────────────────────────────
50
-
51
- // ── session collection ───────────────────────────────────────────────────────
52
-
53
- function findSessions(projectCwd) {
54
- const home = homedir();
55
- const stores = [
56
- { name: 'claude-code', path: join(home, '.claude', 'projects') },
57
- { name: 'codebuddy', path: join(home, '.codebuddy', 'projects') },
58
- ];
59
-
60
- const normalizedCwd = resolve(projectCwd).replace(/\\/g, '/');
61
- const slugVariants = [
62
- normalizedCwd.replace(/[:/]/g, '-').replace(/\//g, '-'),
63
- normalizedCwd.replace(/\\/g, '-').replace(/:/g, '-'),
64
- ];
65
- const projectName = basename(normalizedCwd);
66
-
67
- const found = [];
68
-
69
- for (const store of stores) {
70
- if (!existsSync(store.path)) continue;
71
- let projects;
72
- try { projects = readdirSync(store.path); } catch { continue; }
73
-
74
- for (const proj of projects) {
75
- const projLower = proj.toLowerCase();
76
- const matches =
77
- projLower.includes(projectName.toLowerCase()) ||
78
- slugVariants.some(s => projLower.includes(s.toLowerCase().slice(-30)));
79
-
80
- if (!matches) continue;
81
-
82
- const projPath = join(store.path, proj);
83
- let stat;
84
- try { stat = statSync(projPath); } catch { continue; }
85
- if (!stat.isDirectory()) continue;
86
-
87
- let files;
88
- try { files = readdirSync(projPath).filter(f => f.endsWith('.jsonl')); } catch { continue; }
89
-
90
- for (const f of files) {
91
- const sessionId = f.replace('.jsonl', '');
92
- const sessionFile = join(projPath, f);
93
- const subagentsDir = join(projPath, sessionId, 'subagents');
94
- found.push({
95
- store: store.name,
96
- project: proj,
97
- sessionId,
98
- sessionFile,
99
- subagentsDir: existsSync(subagentsDir) ? subagentsDir : null,
100
- });
101
- }
102
- }
103
- }
104
-
105
- return found;
106
- }
107
-
108
- function waitForStable(sessionFile, maxRetries = 3, intervalMs = 500) {
109
- let lastSize;
110
- try { lastSize = statSync(sessionFile).size; } catch { return false; }
111
-
112
- for (let i = 0; i < maxRetries; i++) {
113
- const waitUntil = Date.now() + intervalMs;
114
- while (Date.now() < waitUntil) { /* spin */ }
115
-
116
- let newSize;
117
- try { newSize = statSync(sessionFile).size; } catch { return false; }
118
-
119
- if (newSize === lastSize) return true;
120
- lastSize = newSize;
121
- }
122
-
123
- return false;
124
- }
125
-
126
- // ── git operations ───────────────────────────────────────────────────────────
127
-
128
- function gitExec(cwd, args, env = {}) {
129
- const result = spawnSync('git', ['-C', cwd, ...args], {
130
- encoding: 'utf8',
131
- env: { ...process.env, ...env },
132
- stdio: ['ignore', 'pipe', 'pipe'],
133
- });
134
- if (result.status !== 0) {
135
- const errMsg = result.stderr?.trim() || result.stdout?.trim() || 'unknown error';
136
- throw new Error(`git ${args[0]} failed: ${errMsg}`);
137
- }
138
- return result.stdout?.trim() || '';
139
- }
140
-
141
- function gitExecWithRetries(cwd, args, env = {}, maxRetries = 3) {
142
- for (let attempt = 1; attempt <= maxRetries; attempt++) {
143
- try {
144
- return gitExec(cwd, args, env);
145
- } catch (err) {
146
- if (attempt < maxRetries && err.message.includes('.git/index.lock')) {
147
- console.warn(` ⚠ git index locked, retrying (${attempt}/${maxRetries})...`);
148
- const waitUntil = Date.now() + 1000;
149
- while (Date.now() < waitUntil) { /* spin */ }
150
- continue;
151
- }
152
- throw err;
153
- }
154
- }
155
- }
156
-
157
- // ── main ─────────────────────────────────────────────────────────────────────
158
-
159
- const opts = parseArgs();
160
-
161
- // ── snapshot creation ─────────────────────────────────────────────────────────
162
-
163
- const executionCwd = process.cwd();
164
- const projectDir = opts.project ? resolve(executionCwd, opts.project) : executionCwd;
165
- const projectName = basename(projectDir);
166
- const ts = timestamp();
167
- const label = opts.name || `manual`;
168
-
169
- console.log(`\n📦 Snapshotting project: ${projectName}`);
170
- console.log(` Source: ${projectDir}\n`);
171
-
172
- // 1. Verify .git/ exists
173
- const gitDir = join(projectDir, '.git');
174
- if (!existsSync(gitDir)) {
175
- console.error(`❌ No .git directory found at ${projectDir}`);
176
- console.error(' Snapshot requires a git repository. Use "git init" first.');
177
- process.exit(1);
178
- }
179
-
180
- // 2. Active CLI check
181
- if (!opts.force) {
182
- console.warn(' ⚠ Use --force to skip active-CLI check.\n');
183
- }
184
-
185
- // 3. Collect sessions with write stability detection
186
- console.log('🗂 Finding sessions...');
187
- const sessions = findSessions(projectDir);
188
-
189
- const sessionsDir = join(projectDir, '.playcraft', 'sessions');
190
- if (existsSync(sessionsDir)) {
191
- rmSync(sessionsDir, { recursive: true, force: true });
192
- }
193
- mkdirSync(sessionsDir, { recursive: true });
194
-
195
- if (sessions.length === 0) {
196
- console.log(' ⚠ No sessions found for this project path');
197
- } else {
198
- console.log(` Found ${sessions.length} session(s):`);
199
- for (const s of sessions) {
200
- const stable = waitForStable(s.sessionFile);
201
- if (!stable) {
202
- console.warn(` ⚠ Session file still being written: ${s.sessionId.slice(0, 8)}… — copying anyway`);
203
- }
204
-
205
- const sessionDestDir = join(sessionsDir, s.store, s.project);
206
- mkdirSync(sessionDestDir, { recursive: true });
207
- cpSync(s.sessionFile, join(sessionDestDir, `${s.sessionId}.jsonl`));
208
-
209
- let subCount = 0;
210
- if (s.subagentsDir) {
211
- const subDest = join(sessionDestDir, s.sessionId, 'subagents');
212
- mkdirSync(subDest, { recursive: true });
213
- const subFiles = readdirSync(s.subagentsDir).filter(f => f.endsWith('.jsonl'));
214
- for (const sf of subFiles) {
215
- cpSync(join(s.subagentsDir, sf), join(subDest, sf));
216
- subCount++;
217
- }
218
- }
219
-
220
- const sizeMB = (statSync(s.sessionFile).size / 1024 / 1024).toFixed(2);
221
- console.log(` ✓ [${s.store}] ${s.sessionId.slice(0, 8)}… (${sizeMB}MB, ${subCount} subagents)`);
222
- }
223
- }
224
-
225
- // 4. Write manifest
226
- const manifest = {
227
- createdAt: isoNow(),
228
- projectName,
229
- projectPath: projectDir,
230
- label: opts.name || 'manual',
231
- sessionCount: sessions.length,
232
- sessions: sessions.map(s => ({
233
- store: s.store,
234
- project: s.project,
235
- sessionId: s.sessionId,
236
- hasSubagents: !!s.subagentsDir,
237
- })),
238
- };
239
- writeFileSync(join(sessionsDir, 'manifest.json'), JSON.stringify(manifest, null, 2));
240
-
241
- // 5. Git add all changes (including sessions)
242
- console.log('\n📝 Staging changes...');
243
- const GIT_ENV = {
244
- GIT_AUTHOR_NAME: 'PlayCraft Snapshot',
245
- GIT_AUTHOR_EMAIL: 'snapshot@playcraft.local',
246
- GIT_COMMITTER_NAME: 'PlayCraft Snapshot',
247
- GIT_COMMITTER_EMAIL: 'snapshot@playcraft.local',
248
- };
249
-
250
- gitExecWithRetries(projectDir, ['add', '-A'], GIT_ENV);
251
- console.log(' ✓ Staged');
252
-
253
- // 6. Commit
254
- console.log('\n💾 Committing snapshot...');
255
- const commitMsg = `snapshot: ${label} (${ts})`;
256
- gitExecWithRetries(projectDir, ['commit', '--allow-empty', '-m', commitMsg], GIT_ENV);
257
- const commitHash = gitExec(projectDir, ['rev-parse', '--short', 'HEAD']);
258
- console.log(` ✓ Commit: ${commitHash}`);
259
-
260
- // 7. Summary
261
- console.log(`\n✅ Snapshot complete!`);
262
- console.log(` Hash: ${commitHash}`);
263
- console.log(` Sessions archived: ${sessions.length}\n`);
@@ -1,152 +0,0 @@
1
- {
2
- "lockVersion": 2,
3
- "entries": [
4
- {
5
- "skillRef": "platform/playcraft-3d-flip-sprite",
6
- "version": "1.0.0",
7
- "artifactHash": "95183007861a4dae5b67440ea9beed1c360eb616d17e4aa04b97383cc2b63516",
8
- "surface": "portal-agent",
9
- "mountPath": ".playcraft/skills/platform__playcraft-3d-flip-sprite"
10
- },
11
- {
12
- "skillRef": "platform/playcraft-asset-management",
13
- "version": "1.0.0",
14
- "artifactHash": "27209dba24f6e1851dc83682fbd24165894c802794c797cac32d8871f740cf14",
15
- "surface": "portal-agent",
16
- "mountPath": ".playcraft/skills/platform__playcraft-asset-management"
17
- },
18
- {
19
- "skillRef": "platform/playcraft-build",
20
- "version": "1.0.0",
21
- "artifactHash": "2ca96916041bcc04ee48e827599dd819072e67a626bf59a1c20281f337e4063a",
22
- "surface": "portal-agent",
23
- "mountPath": ".playcraft/skills/platform__playcraft-build"
24
- },
25
- {
26
- "skillRef": "platform/playcraft-code-editor",
27
- "version": "1.0.0",
28
- "artifactHash": "abcc9aafe2b15adb8de62eb89921dbcb35c7dc634055b937fe34bdf83ca6685d",
29
- "surface": "portal-agent",
30
- "mountPath": ".playcraft/skills/platform__playcraft-code-editor"
31
- },
32
- {
33
- "skillRef": "platform/playcraft-create-remix",
34
- "version": "1.0.0",
35
- "artifactHash": "8d2a4d4d096433ccec090f1003c050471ddfbc50d69c1c0c66f88424b52bacf6",
36
- "surface": "portal-agent",
37
- "mountPath": ".playcraft/skills/platform__playcraft-create-remix"
38
- },
39
- {
40
- "skillRef": "platform/playcraft-deploy",
41
- "version": "1.0.1",
42
- "artifactHash": "31ac7f90d93606eb40c2113d56204e09b97ecd9e49b910b2ce05445b824ccfdc",
43
- "surface": "portal-agent",
44
- "mountPath": ".playcraft/skills/platform__playcraft-deploy"
45
- },
46
- {
47
- "skillRef": "platform/playcraft-iteration-methodology",
48
- "version": "1.1.0",
49
- "artifactHash": "f67a2f1806e08a48a903408383a06802622da3760d24d72a0dcbbea202349be2",
50
- "surface": "portal-agent",
51
- "mountPath": ".playcraft/skills/platform__playcraft-iteration-methodology"
52
- },
53
- {
54
- "skillRef": "platform/playcraft-platform-intro",
55
- "version": "1.0.0",
56
- "artifactHash": "b37f6b0515a79822f5f69519fcddd1182d420b90eb9ba40298bb1ed73eced281",
57
- "surface": "portal-agent",
58
- "mountPath": ".playcraft/skills/platform__playcraft-platform-intro"
59
- },
60
- {
61
- "skillRef": "platform/playcraft-prefab",
62
- "version": "1.0.0",
63
- "artifactHash": "a4a991302922d6846a2e313dc4cd4514f54820040dc2166ccc864803053c1ea5",
64
- "surface": "portal-agent",
65
- "mountPath": ".playcraft/skills/platform__playcraft-prefab"
66
- },
67
- {
68
- "skillRef": "platform/playcraft-project-management",
69
- "version": "1.0.0",
70
- "artifactHash": "e7e4bffe80e0737362a5cac4234056a7d7fb048f0c8b5e41041e61ee914495e3",
71
- "surface": "portal-agent",
72
- "mountPath": ".playcraft/skills/platform__playcraft-project-management"
73
- },
74
- {
75
- "skillRef": "platform/playcraft-remix-workflow",
76
- "version": "1.0.1",
77
- "artifactHash": "23807ff591b4bd08c87daa4e9b2c9900b0505e4f2f601c47de51a96d6ebbed19",
78
- "surface": "portal-agent",
79
- "mountPath": ".playcraft/skills/platform__playcraft-remix-workflow"
80
- },
81
- {
82
- "skillRef": "platform/playcraft-save",
83
- "version": "1.0.1",
84
- "artifactHash": "6d42c681f91f849603bf3c4f235411ea05189a0d5e3ca1d3a8f92b69e536bdd1",
85
- "surface": "portal-agent",
86
- "mountPath": ".playcraft/skills/platform__playcraft-save"
87
- },
88
- {
89
- "skillRef": "platform/playcraft-template-upgrade-merge",
90
- "version": "1.0.0",
91
- "artifactHash": "354da60f395f3eb7a267db667783344f54567e12abcfec454b269193a5af1cb6",
92
- "surface": "portal-agent",
93
- "mountPath": ".playcraft/skills/platform__playcraft-template-upgrade-merge"
94
- },
95
- {
96
- "skillRef": "platform/sound-effects",
97
- "version": "1.0.0",
98
- "artifactHash": "a6ba7ea91ddbf4f5a04ae8340a69c3725c5d97b239e8636bf64886928e8dd1da",
99
- "surface": "portal-agent",
100
- "mountPath": ".playcraft/skills/platform__sound-effects"
101
- },
102
- {
103
- "skillRef": "remix/playcraft-adsdk",
104
- "version": "1.0.0",
105
- "artifactHash": "0de877b122246ed5c665a893f8dc408282007d0950b0f6c44876f87ceddb519f",
106
- "surface": "sandbox-agent",
107
- "mountPath": ".playcraft/skills/remix__playcraft-adsdk"
108
- },
109
- {
110
- "skillRef": "remix/playcraft-audio-generation",
111
- "version": "1.0.0",
112
- "artifactHash": "8d1b035b289545ca8fd6c247b9417bf34bddf5a26b31e114c35d001aa3a9ebf0",
113
- "surface": "sandbox-agent",
114
- "mountPath": ".playcraft/skills/remix__playcraft-audio-generation"
115
- },
116
- {
117
- "skillRef": "remix/playcraft-dist-publish",
118
- "version": "1.0.0",
119
- "artifactHash": "9a00acc9b3b6f140f276032b722bbe7bbf3a9b1fa61fe71cb65913ebcd118772",
120
- "surface": "sandbox-agent",
121
- "mountPath": ".playcraft/skills/remix__playcraft-dist-publish"
122
- },
123
- {
124
- "skillRef": "remix/playcraft-image-generation",
125
- "version": "1.0.0",
126
- "artifactHash": "91bec2422c750d9d47d5be2796ec5aaffb48de561f2c2d8b92112f37d576f489",
127
- "surface": "sandbox-agent",
128
- "mountPath": ".playcraft/skills/remix__playcraft-image-generation"
129
- },
130
- {
131
- "skillRef": "remix/playcraft-image-processing",
132
- "version": "1.0.0",
133
- "artifactHash": "d845c067bed103c3d1d3f145b1cb8246ffbd6a9ae91efcfbce2eae456819212d",
134
- "surface": "sandbox-agent",
135
- "mountPath": ".playcraft/skills/remix__playcraft-image-processing"
136
- },
137
- {
138
- "skillRef": "remix/playcraft-prefab",
139
- "version": "1.0.0",
140
- "artifactHash": "3cce28f5b67398fffaaa6295d27cf514c8e1e1e998d142524facaff7d2c25561",
141
- "surface": "sandbox-agent",
142
- "mountPath": ".playcraft/skills/remix__playcraft-prefab"
143
- },
144
- {
145
- "skillRef": "remix/playcraft-remix-workflow",
146
- "version": "1.0.0",
147
- "artifactHash": "e2a59c61ef5b094a821fbbab3b0f65f906bfc0dfda6f3d8c0b33a6f460dd0963",
148
- "surface": "sandbox-agent",
149
- "mountPath": ".playcraft/skills/remix__playcraft-remix-workflow"
150
- }
151
- ]
152
- }
@@ -1,146 +0,0 @@
1
- # PlayCraft Playable Ad Project
2
-
3
- 这是一个正在制作中的 PlayCraft playable ad 工程,由模板 `project-template-v2` 生成。当前目录不是通用代码库,而是一个会随多 agent 制作流程逐步长出的 playable 项目。
4
-
5
- 本文件是项目速览:帮助任何 agent 快速理解当前工程形态、入口文件、状态来源和安全边界。它不是调度剧本,也不是状态真源。
6
-
7
- ## Current Snapshot
8
-
9
- - Package: `playcraft-game`, template version `0.4.0-alpha.0`.
10
- - Runtime stack: Vite + TypeScript.
11
- - Current pipeline: iteration 1, stage `ideate`, status `pending`.
12
- - Locked decisions: engine `unset`, coreAction `unset`.
13
- - Runtime code: `game/index.ts` is still an engine placeholder. Engine scaffold has not been applied yet.
14
- - Design artifacts are not created yet: `docs/design.md`, `docs/design-brief.md`, `docs/atom-tree.json`, and `docs/todo_list.md` will appear during iteration 1.
15
- - Optimize verification currently includes `playable-record`, `playable-debug`, and `playable-validate`.
16
-
17
- ## State Sources
18
-
19
- - State command: `npm run state:get` is the normal read entry for current workflow state.
20
- - Process backing file: `docs/project-state.json` (JSON, JavaScript Object Notation, JavaScript 对象表示法); do not read it directly unless debugging the state scripts.
21
- - Human view: `docs/project-state.md`, generated from the process backing file.
22
- - Pipeline specification: `skills/_shared/scripts/pipeline/`.
23
- - Orchestrator flow: `docs/harness/orchestrator-flow.md`.
24
- - Stage flow notes: `docs/harness/iteration-1/`.
25
- - Do not hand-edit `docs/project-state.md`; update state through scripts.
26
-
27
- State describes current work; it does not by itself prove which process you are. Use your entry context first, then state.
28
-
29
- Main agent entry:
30
-
31
- Read `docs/harness/orchestrator-flow.md`.
32
-
33
- Named role subagent entry:
34
-
35
- ```bash
36
- npm run state:get -- --json dispatch
37
- ```
38
-
39
- If `dispatch.role` is not your role, stop and report that no workticket is assigned to you.
40
-
41
- ## Project Map
42
-
43
- ### Runtime
44
-
45
- - `index.html` - browser document entry (HTML, HyperText Markup Language, 超文本标记语言).
46
- - `main.ts` - TypeScript entry; imports styles and mounts `startGame("game-container")`.
47
- - `game/index.ts` - current playable entry. At bootstrap it only displays the engine-not-scaffolded message.
48
- - `index.css` - global page layout and styling (CSS, Cascading Style Sheets, 层叠样式表).
49
- - `globals.d.ts` - asset module declarations and `__DEV__` global.
50
- - `vite.config.ts` - dev/build configuration, asset alias, port preference.
51
-
52
- ### Assets
53
-
54
- - `assets/images/bg/` - background image candidates.
55
- - `assets/images/ui/` - user interface image candidates.
56
- - `assets/images/tiles/` - tile or board image candidates.
57
- - `assets/images/vfx/` - visual effect images.
58
- - `assets/images/storyboard/` and `assets/images/reference/` - ideation and reference images.
59
- - `assets/audio/bgm/` and `assets/audio/sfx/` - music and sound effects.
60
- - `assets/models/` - 3D (Three-Dimensional, 三维) model assets.
61
- - `assets/bundles/` - generated or packaged asset bundles.
62
-
63
- ### Project State And Design
64
-
65
- - `docs/project-state.json` - process backing file for workflow state; normally read via `npm run state:get`.
66
- - `docs/project-state.md` - generated state view.
67
- - `docs/harness/pipeline-design.md` - pipeline v2 design and TODO backlog.
68
- - `docs/harness/orchestrator-flow.md` - orchestrator runtime loop and dispatch rules.
69
- - `docs/harness/iteration-1/ideate-flow.md` - design discovery and `docs/design.md` rules.
70
- - `docs/harness/iteration-1/context-flow.md` - atom-tree and plan-equivalent todo task-card seeding rules.
71
- - `docs/harness/iteration-1/generate-flow.md` - todo-driven implementation loop.
72
- - `docs/harness/iteration-1/optimize-flow.md` - build/autoplay/record target and verification skill usage.
73
- - `docs/harness/iteration-1/wrapup-flow.md` - cleanup and this file refresh rules.
74
-
75
- Expected iteration-1 artifacts:
76
-
77
- - `docs/design-brief.md` - discovery and brainstorming log.
78
- - `docs/design.md` - core gameplay design.
79
- - `docs/atom-tree.json` - selected atom and skills match source.
80
- - `docs/todo_list.md` - human-readable todo index and cross-todo ref/gap overview.
81
-
82
- ### Workflow Scripts
83
-
84
- - `skills/_shared/scripts/state-get.mjs` - read orchestrator or dispatch state.
85
- - `skills/_shared/scripts/state-set.mjs` - update state fields.
86
- - `skills/_shared/scripts/state-advance-stage.mjs` - advance the pipeline stage.
87
- - `skills/_shared/scripts/todo-add.mjs` / `todo-set.mjs` / `todo-remove.mjs` - manage todo pool.
88
- - `skills/_shared/scripts/handoff-append.mjs` - append role handoff records.
89
- - `skills/_shared/scripts/dod-check.mjs` - run DoD (Definition of Done, 完成定义) checks for the current stage.
90
- - `skills/_shared/scripts/render-project-state.mjs` - render `docs/project-state.md` from JSON state.
91
-
92
- ### Agent And Skill Context
93
-
94
- - `.claude/agents/` - role cards for game-designer, developer, artist, technical-artist, and reviewer.
95
- - `.claude/agents/refs/` - role reference material.
96
- - `.claude/skills/` - local skills visible to agents.
97
- - `.claude/hooks/` - Claude hook scripts.
98
- - `.claude/settings.json` - hook registration and agent-team environment.
99
-
100
- ## Common Commands
101
-
102
- ```bash
103
- npm run dev
104
- npm run build
105
- npm run typecheck
106
- npm run state:get
107
- npm run state:get -- --json dispatch
108
- npm run dispatch:set -- id=<id> role=<role> goal="..."
109
- npm run dispatch:clear
110
- npm run todo:add -- id=<id> role=<role> title="..." goal="..." context="..." acceptance="..."
111
- npm run todo:get -- id=<id>
112
- npm run todo:set -- id=<id> status=<pending|in_progress|done|failed>
113
- npm run handoff:append -- role=<role> summary="..." artifactRefs="<files>"
114
- npm run dod:check
115
- npm run verify:contract
116
- npm run verify:firstwin
117
- npm run verify:fusion
118
- npm run record:mp4
119
- npm run verify:vlm-video
120
- ```
121
-
122
- Notes:
123
-
124
- - `npm run typecheck` requires dependencies to be installed first.
125
- - `record:mp4` requires Playwright Chromium to be installed; run `npm run record:mp4:install` if the local browser binary is missing.
126
-
127
- ## Agent Boundaries
128
-
129
- - This file is injected into every agent, so keep it as project context only.
130
- - Main agent reads `npm run state:get` and remains orchestrator.
131
- - Subagents read `npm run state:get -- --json dispatch`, work within `allowedFiles`, satisfy `acceptance`, then append handoff.
132
- - Todo status is updated by the orchestrator after reading handoff; subagents do not mark their own todo done.
133
- - Do not put `stageExit`, `dispatchableRoles`, full todo pools, handoff history, or future-stage plans in this file.
134
- - Do not infer workflow progress from file presence alone; use `npm run state:get` for workflow state.
135
-
136
- ## Refresh Policy
137
-
138
- Refresh this file during wrapup when the project shape changes. Update:
139
-
140
- - current snapshot;
141
- - runtime entry status;
142
- - key artifact existence;
143
- - directory map changes;
144
- - high-impact known gaps.
145
-
146
- Do not copy dynamic workflow history into this file. Detailed process rules belong in `docs/harness/` and `skills/_shared/scripts/pipeline/`.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes