@playdrop/playdrop-cli 0.16.16 → 0.17.1

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 (369) hide show
  1. package/config/client-meta.json +4 -4
  2. package/dist/apiClient.d.ts +1 -2
  3. package/dist/apiClient.js +1 -16
  4. package/dist/appUrls.js +4 -0
  5. package/dist/apps/build.d.ts +12 -4
  6. package/dist/apps/build.js +55 -22
  7. package/dist/apps/index.d.ts +2 -1
  8. package/dist/apps/index.js +4 -1
  9. package/dist/apps/loadCheck.d.ts +5 -1
  10. package/dist/apps/loadCheck.js +52 -18
  11. package/dist/apps/serverBuild.d.ts +17 -0
  12. package/dist/apps/serverBuild.js +155 -0
  13. package/dist/apps/staticHtml.d.ts +1 -0
  14. package/dist/apps/staticHtml.js +19 -10
  15. package/dist/apps/upload.d.ts +12 -2
  16. package/dist/apps/upload.js +127 -46
  17. package/dist/catalogue.d.ts +23 -1
  18. package/dist/catalogue.js +126 -100
  19. package/dist/commandContext.d.ts +6 -3
  20. package/dist/commandContext.js +108 -18
  21. package/dist/commands/build.js +0 -7
  22. package/dist/commands/captureListing.d.ts +3 -0
  23. package/dist/commands/captureListing.js +48 -4
  24. package/dist/commands/chat.d.ts +4 -0
  25. package/dist/commands/chat.js +133 -8
  26. package/dist/commands/check.js +34 -1
  27. package/dist/commands/create.js +30 -263
  28. package/dist/commands/dev.js +37 -3
  29. package/dist/commands/devBrowser.js +2 -2
  30. package/dist/commands/devGameServer.d.ts +16 -0
  31. package/dist/commands/devGameServer.js +237 -0
  32. package/dist/commands/devRuntimeAssets.d.ts +1 -0
  33. package/dist/commands/devRuntimeAssets.js +2 -0
  34. package/dist/commands/devServer.d.ts +3 -0
  35. package/dist/commands/devServer.js +111 -5
  36. package/dist/commands/generation.d.ts +33 -4
  37. package/dist/commands/generation.js +304 -115
  38. package/dist/commands/login.js +23 -7
  39. package/dist/commands/review.d.ts +1 -1
  40. package/dist/commands/review.js +68 -95
  41. package/dist/commands/source.d.ts +19 -0
  42. package/dist/commands/source.js +142 -0
  43. package/dist/commands/tweaks.js +5 -11
  44. package/dist/commands/upload-content.d.ts +1 -1
  45. package/dist/commands/upload-content.js +16 -12
  46. package/dist/commands/upload.d.ts +17 -1
  47. package/dist/commands/upload.js +47 -10
  48. package/dist/commands/worker/archive-staging.d.ts +1 -0
  49. package/dist/commands/worker/archive-staging.js +13 -2
  50. package/dist/commands/worker/e2e-fixtures.d.ts +32 -0
  51. package/dist/commands/worker/e2e-fixtures.js +466 -0
  52. package/dist/commands/worker/game-server-infra.d.ts +80 -0
  53. package/dist/commands/worker/game-server-infra.js +595 -0
  54. package/dist/commands/worker/game-source-git.d.ts +126 -0
  55. package/dist/commands/worker/game-source-git.js +782 -0
  56. package/dist/commands/worker/generation.d.ts +94 -0
  57. package/dist/commands/worker/generation.js +1458 -0
  58. package/dist/commands/worker/runtime.d.ts +8 -10
  59. package/dist/commands/worker/runtime.js +51 -45
  60. package/dist/commands/worker.d.ts +79 -19
  61. package/dist/commands/worker.js +1796 -419
  62. package/dist/config.d.ts +2 -0
  63. package/dist/config.js +16 -3
  64. package/dist/environment.d.ts +0 -1
  65. package/dist/environment.js +0 -8
  66. package/dist/index.js +92 -13
  67. package/dist/workerAppProject.d.ts +1 -1
  68. package/dist/workerAppProject.js +15 -2
  69. package/node_modules/@playdrop/api-client/dist/client.d.ts +72 -25
  70. package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
  71. package/node_modules/@playdrop/api-client/dist/client.js +33 -0
  72. package/node_modules/@playdrop/api-client/dist/core/request.d.ts +1 -0
  73. package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
  74. package/node_modules/@playdrop/api-client/dist/core/request.js +17 -11
  75. package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts +51 -6
  76. package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts.map +1 -1
  77. package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.js +338 -41
  78. package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts +24 -1
  79. package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts.map +1 -1
  80. package/node_modules/@playdrop/api-client/dist/domains/ai.js +20 -0
  81. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +13 -8
  82. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
  83. package/node_modules/@playdrop/api-client/dist/domains/apps.js +158 -90
  84. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +4 -0
  85. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -1
  86. package/node_modules/@playdrop/api-client/dist/domains/assets.js +27 -0
  87. package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +35 -3
  88. package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
  89. package/node_modules/@playdrop/api-client/dist/domains/chat.js +89 -7
  90. package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts +2 -1
  91. package/node_modules/@playdrop/api-client/dist/domains/player-meta.d.ts.map +1 -1
  92. package/node_modules/@playdrop/api-client/dist/domains/player-meta.js +9 -0
  93. package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts +1 -2
  94. package/node_modules/@playdrop/api-client/dist/domains/playtrade.d.ts.map +1 -1
  95. package/node_modules/@playdrop/api-client/dist/domains/playtrade.js +0 -11
  96. package/node_modules/@playdrop/api-client/dist/domains/social.d.ts +29 -0
  97. package/node_modules/@playdrop/api-client/dist/domains/social.d.ts.map +1 -0
  98. package/node_modules/@playdrop/api-client/dist/domains/social.js +79 -0
  99. package/node_modules/@playdrop/api-client/dist/index.d.ts +80 -29
  100. package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
  101. package/node_modules/@playdrop/api-client/dist/index.js +217 -56
  102. package/node_modules/@playdrop/api-client/dist/runtime.d.ts +18 -0
  103. package/node_modules/@playdrop/api-client/dist/runtime.d.ts.map +1 -0
  104. package/node_modules/@playdrop/api-client/dist/runtime.js +54 -0
  105. package/node_modules/@playdrop/api-client/package.json +7 -0
  106. package/node_modules/@playdrop/config/client-meta.json +4 -4
  107. package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts +11 -0
  108. package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts.map +1 -1
  109. package/node_modules/@playdrop/config/dist/src/creator-plans.js +13 -1
  110. package/node_modules/@playdrop/config/dist/src/deployment.d.ts +0 -1
  111. package/node_modules/@playdrop/config/dist/src/deployment.d.ts.map +1 -1
  112. package/node_modules/@playdrop/config/dist/src/deployment.js +0 -8
  113. package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts +0 -1
  114. package/node_modules/@playdrop/config/dist/src/public-deployment.d.ts.map +1 -1
  115. package/node_modules/@playdrop/config/dist/src/public-deployment.js +0 -8
  116. package/node_modules/@playdrop/config/dist/src/runtime-service-origins.d.ts +1 -1
  117. package/node_modules/@playdrop/config/dist/src/runtime-service-origins.js +2 -2
  118. package/node_modules/@playdrop/config/dist/src/server/logging.d.ts.map +1 -1
  119. package/node_modules/@playdrop/config/dist/src/server/logging.js +31 -2
  120. package/node_modules/@playdrop/config/dist/test/creator-plans.test.js +10 -0
  121. package/node_modules/@playdrop/config/dist/test/deployment.test.js +0 -4
  122. package/node_modules/@playdrop/config/dist/test/runtime-service-origins.test.js +2 -0
  123. package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
  124. package/node_modules/@playdrop/config/package.json +6 -0
  125. package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts +9 -0
  126. package/node_modules/@playdrop/game-source-git/dist/src/archive.d.ts.map +1 -0
  127. package/node_modules/@playdrop/game-source-git/dist/src/archive.js +107 -0
  128. package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts +29 -0
  129. package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.d.ts.map +1 -0
  130. package/node_modules/@playdrop/game-source-git/dist/src/bundle-storage.js +64 -0
  131. package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts +8 -0
  132. package/node_modules/@playdrop/game-source-git/dist/src/export.d.ts.map +1 -0
  133. package/node_modules/@playdrop/game-source-git/dist/src/export.js +25 -0
  134. package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts +39 -0
  135. package/node_modules/@playdrop/game-source-git/dist/src/git.d.ts.map +1 -0
  136. package/node_modules/@playdrop/game-source-git/dist/src/git.js +195 -0
  137. package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts +6 -0
  138. package/node_modules/@playdrop/game-source-git/dist/src/ignore.d.ts.map +1 -0
  139. package/node_modules/@playdrop/game-source-git/dist/src/ignore.js +51 -0
  140. package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts +10 -0
  141. package/node_modules/@playdrop/game-source-git/dist/src/index.d.ts.map +1 -0
  142. package/node_modules/@playdrop/{boxel-core/dist/src/humanoid/r15 → game-source-git/dist/src}/index.js +9 -4
  143. package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts +17 -0
  144. package/node_modules/@playdrop/game-source-git/dist/src/lock.d.ts.map +1 -0
  145. package/node_modules/@playdrop/game-source-git/dist/src/lock.js +72 -0
  146. package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts +10 -0
  147. package/node_modules/@playdrop/game-source-git/dist/src/materialize.d.ts.map +1 -0
  148. package/node_modules/@playdrop/game-source-git/dist/src/materialize.js +99 -0
  149. package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts +24 -0
  150. package/node_modules/@playdrop/game-source-git/dist/src/paths.d.ts.map +1 -0
  151. package/node_modules/@playdrop/game-source-git/dist/src/paths.js +207 -0
  152. package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts +66 -0
  153. package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts.map +1 -0
  154. package/node_modules/@playdrop/game-source-git/dist/src/repository.js +213 -0
  155. package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts +2 -0
  156. package/node_modules/@playdrop/game-source-git/dist/test/core.test.d.ts.map +1 -0
  157. package/node_modules/@playdrop/game-source-git/dist/test/core.test.js +441 -0
  158. package/node_modules/@playdrop/game-source-git/dist/tsconfig.tsbuildinfo +1 -0
  159. package/node_modules/@playdrop/game-source-git/package.json +28 -0
  160. package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts +2 -2
  161. package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts.map +1 -1
  162. package/node_modules/@playdrop/types/dist/agent-task-terminal.js +15 -9
  163. package/node_modules/@playdrop/types/dist/api.d.ts +728 -164
  164. package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
  165. package/node_modules/@playdrop/types/dist/api.js +60 -11
  166. package/node_modules/@playdrop/types/dist/asset-pack.d.ts +2 -0
  167. package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -1
  168. package/node_modules/@playdrop/types/dist/asset.d.ts +22 -8
  169. package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -1
  170. package/node_modules/@playdrop/types/dist/asset.js +26 -26
  171. package/node_modules/@playdrop/types/dist/chat.d.ts +107 -3
  172. package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
  173. package/node_modules/@playdrop/types/dist/chat.js +33 -4
  174. package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
  175. package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
  176. package/node_modules/@playdrop/types/dist/index.js +7 -1
  177. package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts +11 -0
  178. package/node_modules/@playdrop/types/dist/public-cache-tags.d.ts.map +1 -0
  179. package/node_modules/@playdrop/types/dist/public-cache-tags.js +78 -0
  180. package/node_modules/@playdrop/types/dist/realtime.d.ts +3 -15
  181. package/node_modules/@playdrop/types/dist/realtime.d.ts.map +1 -1
  182. package/node_modules/@playdrop/types/dist/social.d.ts +64 -0
  183. package/node_modules/@playdrop/types/dist/social.d.ts.map +1 -0
  184. package/node_modules/@playdrop/{boxel-three/dist/src/types.js → types/dist/social.js} +14 -2
  185. package/node_modules/@playdrop/types/dist/spritesheet.d.ts +51 -0
  186. package/node_modules/@playdrop/types/dist/spritesheet.d.ts.map +1 -0
  187. package/node_modules/@playdrop/types/dist/spritesheet.js +73 -0
  188. package/node_modules/@playdrop/types/dist/version.d.ts +86 -58
  189. package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
  190. package/node_modules/@playdrop/types/dist/version.js +111 -0
  191. package/node_modules/@playdrop/types/package.json +14 -0
  192. package/node_modules/@playdrop/vox-three/dist/src/index.d.ts +1 -1
  193. package/node_modules/@playdrop/vox-three/dist/src/index.js +1 -1
  194. package/node_modules/@playdrop/vox-three/dist/src/index.js.map +1 -1
  195. package/node_modules/@playdrop/vox-three/dist/src/vox.d.ts +0 -3
  196. package/node_modules/@playdrop/vox-three/dist/src/vox.js +0 -110
  197. package/node_modules/@playdrop/vox-three/dist/src/vox.js.map +1 -1
  198. package/node_modules/@playdrop/vox-three/dist/test/vox.test.js +0 -18
  199. package/node_modules/@playdrop/vox-three/dist/test/vox.test.js.map +1 -1
  200. package/node_modules/@playdrop/vox-three/package.json +8 -4
  201. package/node_modules/@playwright/mcp/node_modules/fsevents/LICENSE +22 -0
  202. package/node_modules/@playwright/mcp/node_modules/fsevents/README.md +83 -0
  203. package/node_modules/@playwright/mcp/node_modules/fsevents/fsevents.d.ts +46 -0
  204. package/node_modules/@playwright/mcp/node_modules/fsevents/fsevents.js +82 -0
  205. package/node_modules/@playwright/mcp/node_modules/fsevents/fsevents.node +0 -0
  206. package/node_modules/@playwright/mcp/node_modules/fsevents/package.json +62 -0
  207. package/package.json +9 -11
  208. package/dist/assets/model-artifacts.d.ts +0 -8
  209. package/dist/assets/model-artifacts.js +0 -382
  210. package/dist/assets/model-worker.d.ts +0 -22
  211. package/dist/assets/model-worker.js +0 -123
  212. package/node_modules/@playdrop/ai-client/dist/index.d.ts +0 -441
  213. package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +0 -1
  214. package/node_modules/@playdrop/ai-client/dist/index.js +0 -499
  215. package/node_modules/@playdrop/ai-client/package.json +0 -22
  216. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.d.ts +0 -13
  217. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js +0 -141
  218. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js.map +0 -1
  219. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.d.ts +0 -47
  220. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js +0 -313
  221. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js.map +0 -1
  222. package/node_modules/@playdrop/boxel-core/dist/src/format-utils.d.ts +0 -3
  223. package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js +0 -36
  224. package/node_modules/@playdrop/boxel-core/dist/src/format-utils.js.map +0 -1
  225. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.d.ts +0 -23
  226. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js +0 -11
  227. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/geometry.js.map +0 -1
  228. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.d.ts +0 -4
  229. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js +0 -21
  230. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/index.js.map +0 -1
  231. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.d.ts +0 -4
  232. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js +0 -24
  233. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/common.js.map +0 -1
  234. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.d.ts +0 -3
  235. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/index.js.map +0 -1
  236. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.d.ts +0 -3
  237. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js +0 -387
  238. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js.map +0 -1
  239. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.d.ts +0 -6
  240. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js +0 -3
  241. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.js.map +0 -1
  242. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.d.ts +0 -3
  243. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js +0 -373
  244. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js.map +0 -1
  245. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.d.ts +0 -12
  246. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js +0 -215
  247. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js.map +0 -1
  248. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.d.ts +0 -4
  249. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js +0 -18
  250. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/index.js.map +0 -1
  251. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.d.ts +0 -42
  252. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js +0 -145
  253. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/scanner.js.map +0 -1
  254. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.d.ts +0 -26
  255. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js +0 -65
  256. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/artifacts.js.map +0 -1
  257. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.d.ts +0 -33
  258. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js +0 -175
  259. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/textures/face-map.js.map +0 -1
  260. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r15.json +0 -1517
  261. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/humanoid_r6.json +0 -61
  262. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.d.ts +0 -10
  263. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js +0 -23
  264. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js.map +0 -1
  265. package/node_modules/@playdrop/boxel-core/dist/src/index.d.ts +0 -19
  266. package/node_modules/@playdrop/boxel-core/dist/src/index.js +0 -36
  267. package/node_modules/@playdrop/boxel-core/dist/src/index.js.map +0 -1
  268. package/node_modules/@playdrop/boxel-core/dist/src/materials.d.ts +0 -26
  269. package/node_modules/@playdrop/boxel-core/dist/src/materials.js +0 -184
  270. package/node_modules/@playdrop/boxel-core/dist/src/materials.js.map +0 -1
  271. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.d.ts +0 -68
  272. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js +0 -488
  273. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js.map +0 -1
  274. package/node_modules/@playdrop/boxel-core/dist/src/serialization.d.ts +0 -4
  275. package/node_modules/@playdrop/boxel-core/dist/src/serialization.js +0 -380
  276. package/node_modules/@playdrop/boxel-core/dist/src/serialization.js.map +0 -1
  277. package/node_modules/@playdrop/boxel-core/dist/src/textures.d.ts +0 -29
  278. package/node_modules/@playdrop/boxel-core/dist/src/textures.js +0 -208
  279. package/node_modules/@playdrop/boxel-core/dist/src/textures.js.map +0 -1
  280. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.d.ts +0 -9
  281. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js +0 -312
  282. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js.map +0 -1
  283. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.d.ts +0 -9
  284. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js +0 -154
  285. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js.map +0 -1
  286. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +0 -2
  287. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js +0 -121
  288. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +0 -1
  289. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.d.ts +0 -20
  290. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js +0 -389
  291. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js.map +0 -1
  292. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.d.ts +0 -3
  293. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js +0 -206
  294. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.js.map +0 -1
  295. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.d.ts +0 -12
  296. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js +0 -81
  297. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/slice.js.map +0 -1
  298. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.d.ts +0 -12
  299. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js +0 -318
  300. package/node_modules/@playdrop/boxel-core/dist/src/transforms/voxels/textured-to-voxel.js.map +0 -1
  301. package/node_modules/@playdrop/boxel-core/dist/src/types.d.ts +0 -168
  302. package/node_modules/@playdrop/boxel-core/dist/src/types.js +0 -3
  303. package/node_modules/@playdrop/boxel-core/dist/src/types.js.map +0 -1
  304. package/node_modules/@playdrop/boxel-core/dist/src/validation.d.ts +0 -24
  305. package/node_modules/@playdrop/boxel-core/dist/src/validation.js +0 -620
  306. package/node_modules/@playdrop/boxel-core/dist/src/validation.js.map +0 -1
  307. package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.d.ts +0 -11
  308. package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js +0 -135
  309. package/node_modules/@playdrop/boxel-core/dist/src/voxels/greedy-mesher.js.map +0 -1
  310. package/node_modules/@playdrop/boxel-core/dist/src/voxels.d.ts +0 -23
  311. package/node_modules/@playdrop/boxel-core/dist/src/voxels.js +0 -52
  312. package/node_modules/@playdrop/boxel-core/dist/src/voxels.js.map +0 -1
  313. package/node_modules/@playdrop/boxel-core/package.json +0 -19
  314. package/node_modules/@playdrop/boxel-three/dist/src/animations.d.ts +0 -4
  315. package/node_modules/@playdrop/boxel-three/dist/src/animations.js +0 -92
  316. package/node_modules/@playdrop/boxel-three/dist/src/builders.d.ts +0 -8
  317. package/node_modules/@playdrop/boxel-three/dist/src/builders.js +0 -363
  318. package/node_modules/@playdrop/boxel-three/dist/src/context.d.ts +0 -24
  319. package/node_modules/@playdrop/boxel-three/dist/src/context.js +0 -58
  320. package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.d.ts +0 -100
  321. package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.js +0 -927
  322. package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.d.ts +0 -18
  323. package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.js +0 -294
  324. package/node_modules/@playdrop/boxel-three/dist/src/index.d.ts +0 -17
  325. package/node_modules/@playdrop/boxel-three/dist/src/index.js +0 -64
  326. package/node_modules/@playdrop/boxel-three/dist/src/instantiate.d.ts +0 -40
  327. package/node_modules/@playdrop/boxel-three/dist/src/instantiate.js +0 -96
  328. package/node_modules/@playdrop/boxel-three/dist/src/nodes.d.ts +0 -8
  329. package/node_modules/@playdrop/boxel-three/dist/src/nodes.js +0 -88
  330. package/node_modules/@playdrop/boxel-three/dist/src/overlays.d.ts +0 -7
  331. package/node_modules/@playdrop/boxel-three/dist/src/overlays.js +0 -123
  332. package/node_modules/@playdrop/boxel-three/dist/src/primitives.d.ts +0 -4
  333. package/node_modules/@playdrop/boxel-three/dist/src/primitives.js +0 -48
  334. package/node_modules/@playdrop/boxel-three/dist/src/scene.d.ts +0 -3
  335. package/node_modules/@playdrop/boxel-three/dist/src/scene.js +0 -168
  336. package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.d.ts +0 -29
  337. package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.js +0 -623
  338. package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.d.ts +0 -13
  339. package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.js +0 -133
  340. package/node_modules/@playdrop/boxel-three/dist/src/textures.d.ts +0 -17
  341. package/node_modules/@playdrop/boxel-three/dist/src/textures.js +0 -216
  342. package/node_modules/@playdrop/boxel-three/dist/src/types.d.ts +0 -112
  343. package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.d.ts +0 -28
  344. package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.js +0 -344
  345. package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.d.ts +0 -24
  346. package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.js +0 -113
  347. package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.d.ts +0 -1
  348. package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.js +0 -137
  349. package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.d.ts +0 -20
  350. package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.js +0 -85
  351. package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.d.ts +0 -1
  352. package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.js +0 -104
  353. package/node_modules/@playdrop/boxel-three/dist/test/index.test.d.ts +0 -1
  354. package/node_modules/@playdrop/boxel-three/dist/test/index.test.js +0 -30
  355. package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.d.ts +0 -1
  356. package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.js +0 -88
  357. package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.d.ts +0 -1
  358. package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.js +0 -42
  359. package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.d.ts +0 -1
  360. package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.js +0 -73
  361. package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.d.ts +0 -1
  362. package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.js +0 -85
  363. package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.d.ts +0 -1
  364. package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.js +0 -73
  365. package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.d.ts +0 -1
  366. package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.js +0 -136
  367. package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.d.ts +0 -1
  368. package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.js +0 -42
  369. package/node_modules/@playdrop/boxel-three/package.json +0 -28
@@ -6,26 +6,32 @@
6
6
  "types": "dist/src/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
+ "development": "./src/index.ts",
9
10
  "types": "./dist/src/index.d.ts",
10
11
  "default": "./dist/src/index.js"
11
12
  },
12
13
  "./runtime-client-meta": {
14
+ "development": "./src/runtime-client-meta.ts",
13
15
  "types": "./dist/src/runtime-client-meta.d.ts",
14
16
  "default": "./dist/src/runtime-client-meta.js"
15
17
  },
16
18
  "./runtime-service-origins": {
19
+ "development": "./src/runtime-service-origins.ts",
17
20
  "types": "./dist/src/runtime-service-origins.d.ts",
18
21
  "default": "./dist/src/runtime-service-origins.js"
19
22
  },
20
23
  "./public-deployment": {
24
+ "development": "./src/public-deployment.ts",
21
25
  "types": "./dist/src/public-deployment.d.ts",
22
26
  "default": "./dist/src/public-deployment.js"
23
27
  },
24
28
  "./game-arena": {
29
+ "development": "./src/game-arena.ts",
25
30
  "types": "./dist/src/game-arena.d.ts",
26
31
  "default": "./dist/src/game-arena.js"
27
32
  },
28
33
  "./creator-plans": {
34
+ "development": "./src/creator-plans.ts",
29
35
  "types": "./dist/src/creator-plans.d.ts",
30
36
  "default": "./dist/src/creator-plans.js"
31
37
  }
@@ -0,0 +1,9 @@
1
+ export interface SplitSourceArchive {
2
+ gitFiles: Map<string, Buffer>;
3
+ materialFiles: Map<string, Buffer>;
4
+ transcriptFiles: Map<string, Buffer>;
5
+ excludedPaths: string[];
6
+ }
7
+ export declare function splitSourceArchive(sourceZip: Buffer): Promise<SplitSourceArchive>;
8
+ export declare function createDeterministicSourceZip(files: ReadonlyMap<string, Buffer>): Buffer;
9
+ //# sourceMappingURL=archive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../src/archive.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,wBAAsB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA0BvF;AAkBD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAiDvF"}
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.splitSourceArchive = splitSourceArchive;
7
+ exports.createDeterministicSourceZip = createDeterministicSourceZip;
8
+ const node_zlib_1 = require("node:zlib");
9
+ const jszip_1 = __importDefault(require("jszip"));
10
+ const paths_js_1 = require("./paths.js");
11
+ async function splitSourceArchive(sourceZip) {
12
+ let zip;
13
+ try {
14
+ zip = await jszip_1.default.loadAsync(sourceZip);
15
+ }
16
+ catch {
17
+ throw new Error("invalid_game_source_zip");
18
+ }
19
+ const result = {
20
+ gitFiles: new Map(),
21
+ materialFiles: new Map(),
22
+ transcriptFiles: new Map(),
23
+ excludedPaths: [],
24
+ };
25
+ const entries = Object.values(zip.files)
26
+ .filter((entry) => !entry.dir)
27
+ .sort((left, right) => left.name.localeCompare(right.name));
28
+ for (const entry of entries) {
29
+ const filePath = (0, paths_js_1.normalizeSourcePath)(entry.name);
30
+ const content = await entry.async("nodebuffer");
31
+ const classification = (0, paths_js_1.classifyGameSourceFile)(filePath, content);
32
+ if (classification === "git")
33
+ result.gitFiles.set(filePath, content);
34
+ else if (classification === "material")
35
+ result.materialFiles.set(filePath, content);
36
+ else if (classification === "transcript")
37
+ result.transcriptFiles.set(filePath, content);
38
+ else
39
+ result.excludedPaths.push(filePath);
40
+ }
41
+ return result;
42
+ }
43
+ const CRC32_TABLE = (() => {
44
+ const table = new Uint32Array(256);
45
+ for (let index = 0; index < 256; index += 1) {
46
+ let crc = index;
47
+ for (let bit = 0; bit < 8; bit += 1)
48
+ crc = (crc & 1) !== 0 ? (crc >>> 1) ^ 0xedb88320 : crc >>> 1;
49
+ table[index] = crc >>> 0;
50
+ }
51
+ return table;
52
+ })();
53
+ function crc32(buffer) {
54
+ let crc = -1;
55
+ for (const byte of buffer)
56
+ crc = (crc >>> 8) ^ (CRC32_TABLE[(crc ^ byte) & 0xff] ?? 0);
57
+ return (crc ^ -1) >>> 0;
58
+ }
59
+ function createDeterministicSourceZip(files) {
60
+ const chunks = [];
61
+ const centralRecords = [];
62
+ let offset = 0;
63
+ for (const [rawPath, data] of [...files.entries()].sort(([left], [right]) => left.localeCompare(right))) {
64
+ const filePath = (0, paths_js_1.normalizeSourcePath)(rawPath);
65
+ const fileName = Buffer.from(filePath, "utf8");
66
+ const compressed = (0, node_zlib_1.deflateRawSync)(data);
67
+ const checksum = crc32(data);
68
+ const local = Buffer.alloc(30);
69
+ local.writeUInt32LE(0x04034b50, 0);
70
+ local.writeUInt16LE(20, 4);
71
+ local.writeUInt16LE(0x0800, 6);
72
+ local.writeUInt16LE(8, 8);
73
+ local.writeUInt16LE(0, 10);
74
+ local.writeUInt16LE(0x0021, 12);
75
+ local.writeUInt32LE(checksum, 14);
76
+ local.writeUInt32LE(compressed.length, 18);
77
+ local.writeUInt32LE(data.length, 22);
78
+ local.writeUInt16LE(fileName.length, 26);
79
+ chunks.push(local, fileName, compressed);
80
+ const central = Buffer.alloc(46);
81
+ central.writeUInt32LE(0x02014b50, 0);
82
+ central.writeUInt16LE(0x031e, 4);
83
+ central.writeUInt16LE(20, 6);
84
+ central.writeUInt16LE(0x0800, 8);
85
+ central.writeUInt16LE(8, 10);
86
+ central.writeUInt16LE(0, 12);
87
+ central.writeUInt16LE(0x0021, 14);
88
+ central.writeUInt32LE(checksum, 16);
89
+ central.writeUInt32LE(compressed.length, 20);
90
+ central.writeUInt32LE(data.length, 24);
91
+ central.writeUInt16LE(fileName.length, 28);
92
+ central.writeUInt32LE((0o100644 << 16) >>> 0, 38);
93
+ central.writeUInt32LE(offset, 42);
94
+ centralRecords.push(Buffer.concat([central, fileName]));
95
+ offset += local.length + fileName.length + compressed.length;
96
+ }
97
+ const centralDirectory = Buffer.concat(centralRecords);
98
+ chunks.push(centralDirectory);
99
+ const end = Buffer.alloc(22);
100
+ end.writeUInt32LE(0x06054b50, 0);
101
+ end.writeUInt16LE(files.size, 8);
102
+ end.writeUInt16LE(files.size, 10);
103
+ end.writeUInt32LE(centralDirectory.length, 12);
104
+ end.writeUInt32LE(offset, 16);
105
+ chunks.push(end);
106
+ return Buffer.concat(chunks);
107
+ }
@@ -0,0 +1,29 @@
1
+ export interface CanonicalBundleObjectMetadata {
2
+ generation: string;
3
+ sizeBytes: number;
4
+ contentType: string | null;
5
+ customMetadata: Record<string, string>;
6
+ }
7
+ export interface CanonicalBundleStorage {
8
+ getPrivateObjectMetadata(key: string): Promise<CanonicalBundleObjectMetadata | null>;
9
+ putPrivateObject(key: string, content: Buffer, options: {
10
+ contentType: string;
11
+ ifGenerationMatch: string;
12
+ sha256: string;
13
+ metadata?: Record<string, string>;
14
+ }): Promise<CanonicalBundleObjectMetadata>;
15
+ copyPrivateObject(sourceKey: string, destinationKey: string, options: {
16
+ sourceGeneration: string;
17
+ ifGenerationMatch: string;
18
+ metadata?: Record<string, string>;
19
+ }): Promise<CanonicalBundleObjectMetadata>;
20
+ }
21
+ export declare function persistCanonicalBundle(input: {
22
+ storage: CanonicalBundleStorage;
23
+ currentKey: string;
24
+ previousKey: string;
25
+ bundle: Buffer;
26
+ baseGeneration: string | null;
27
+ metadata: Record<string, string>;
28
+ }): Promise<CanonicalBundleObjectMetadata>;
29
+ //# sourceMappingURL=bundle-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle-storage.d.ts","sourceRoot":"","sources":["../../src/bundle-storage.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,sBAAsB;IACrC,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAAC;IACrF,gBAAgB,CACd,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACnC,GACA,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC1C,iBAAiB,CACf,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GAClG,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC3C;AAiBD,wBAAsB,sBAAsB,CAAC,KAAK,EAAE;IAClD,OAAO,EAAE,sBAAsB,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAmDzC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.persistCanonicalBundle = persistCanonicalBundle;
4
+ const paths_js_1 = require("./paths.js");
5
+ const BUNDLE_CONTENT_TYPE = "application/x-git-bundle";
6
+ function assertStoredBundle(metadata, expected) {
7
+ if (metadata.sizeBytes !== expected.bytes ||
8
+ metadata.customMetadata["sha256"] !== expected.sha256 ||
9
+ Object.entries(expected.customMetadata).some(([key, value]) => metadata.customMetadata[key] !== value)) {
10
+ throw new Error("canonical_bundle_metadata_mismatch");
11
+ }
12
+ }
13
+ async function persistCanonicalBundle(input) {
14
+ const bundleSha = (0, paths_js_1.sha256)(input.bundle);
15
+ const customMetadata = { ...input.metadata, sha256: bundleSha };
16
+ const currentMetadata = await input.storage.getPrivateObjectMetadata(input.currentKey);
17
+ const previousMetadata = await input.storage.getPrivateObjectMetadata(input.previousKey);
18
+ if (input.baseGeneration === null) {
19
+ if (currentMetadata) {
20
+ assertStoredBundle(currentMetadata, { sha256: bundleSha, bytes: input.bundle.length, customMetadata });
21
+ }
22
+ const current = currentMetadata ?? await input.storage.putPrivateObject(input.currentKey, input.bundle, {
23
+ contentType: BUNDLE_CONTENT_TYPE,
24
+ ifGenerationMatch: "0",
25
+ sha256: bundleSha,
26
+ metadata: customMetadata,
27
+ });
28
+ assertStoredBundle(current, { sha256: bundleSha, bytes: input.bundle.length, customMetadata });
29
+ const initialPreviousMetadata = { ...customMetadata, copy: "initial" };
30
+ const previous = previousMetadata ?? await input.storage.putPrivateObject(input.previousKey, input.bundle, {
31
+ contentType: BUNDLE_CONTENT_TYPE,
32
+ ifGenerationMatch: "0",
33
+ sha256: bundleSha,
34
+ metadata: initialPreviousMetadata,
35
+ });
36
+ assertStoredBundle(previous, {
37
+ sha256: bundleSha,
38
+ bytes: input.bundle.length,
39
+ customMetadata: initialPreviousMetadata,
40
+ });
41
+ return current;
42
+ }
43
+ if (!currentMetadata || currentMetadata.generation !== input.baseGeneration || !previousMetadata) {
44
+ throw new Error("canonical_bundle_generation_mismatch");
45
+ }
46
+ const rotated = await input.storage.copyPrivateObject(input.currentKey, input.previousKey, {
47
+ sourceGeneration: currentMetadata.generation,
48
+ ifGenerationMatch: previousMetadata.generation,
49
+ metadata: { ...currentMetadata.customMetadata, copy: "rotation" },
50
+ });
51
+ assertStoredBundle(rotated, {
52
+ sha256: currentMetadata.customMetadata["sha256"] ?? "",
53
+ bytes: currentMetadata.sizeBytes,
54
+ customMetadata: { ...currentMetadata.customMetadata, copy: "rotation" },
55
+ });
56
+ const current = await input.storage.putPrivateObject(input.currentKey, input.bundle, {
57
+ contentType: BUNDLE_CONTENT_TYPE,
58
+ ifGenerationMatch: currentMetadata.generation,
59
+ sha256: bundleSha,
60
+ metadata: customMetadata,
61
+ });
62
+ assertStoredBundle(current, { sha256: bundleSha, bytes: input.bundle.length, customMetadata });
63
+ return current;
64
+ }
@@ -0,0 +1,8 @@
1
+ import { type GitRunner } from "./git.js";
2
+ export declare function exportGameSourceZip(input: {
3
+ repoPath: string;
4
+ commitSha: string;
5
+ loadMaterial: (key: string) => Promise<Buffer>;
6
+ runner?: GitRunner;
7
+ }): Promise<Buffer>;
8
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/export.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAI3D,wBAAsB,mBAAmB,CAAC,KAAK,EAAE;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBlB"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.exportGameSourceZip = exportGameSourceZip;
4
+ const archive_js_1 = require("./archive.js");
5
+ const git_js_1 = require("./git.js");
6
+ const paths_js_1 = require("./paths.js");
7
+ const lock_js_1 = require("./lock.js");
8
+ async function exportGameSourceZip(input) {
9
+ const files = await (0, git_js_1.readCommitFiles)(input.repoPath, input.commitSha, input.runner);
10
+ const lockContent = files.get(paths_js_1.GAME_SOURCE_LOCK_PATH);
11
+ if (!lockContent)
12
+ throw new Error("game_source_lock_missing");
13
+ const lock = (0, lock_js_1.parseGameSourceLock)(lockContent);
14
+ for (const [filePath, entry] of Object.entries(lock.files)) {
15
+ const content = await input.loadMaterial(entry.key);
16
+ (0, lock_js_1.verifyLockedFile)(filePath, content, entry);
17
+ files.set(filePath, content);
18
+ }
19
+ for (const filePath of [...files.keys()]) {
20
+ if (filePath === paths_js_1.GAME_SOURCE_LOCK_PATH || filePath.startsWith("tasks/") || (0, paths_js_1.isTranscriptPath)(filePath)) {
21
+ files.delete(filePath);
22
+ }
23
+ }
24
+ return (0, archive_js_1.createDeterministicSourceZip)(files);
25
+ }
@@ -0,0 +1,39 @@
1
+ export interface GitRunner {
2
+ run(args: readonly string[], cwd?: string): Promise<Buffer>;
3
+ }
4
+ export declare function createGitRunner(): GitRunner;
5
+ export interface AuthoritativeVersionRef {
6
+ version: {
7
+ major: number;
8
+ minor: number;
9
+ patch: number;
10
+ };
11
+ commitSha: string;
12
+ }
13
+ export declare function versionTagRef(version: {
14
+ major: number;
15
+ minor: number;
16
+ patch: number;
17
+ }): string;
18
+ export declare function deriveCanonicalRefs(versions: readonly AuthoritativeVersionRef[]): string[];
19
+ export interface ExpectedCanonicalRefs {
20
+ headSha: string;
21
+ versions: readonly AuthoritativeVersionRef[];
22
+ }
23
+ export declare function readRefs(repoPath: string, refs: readonly string[], runner?: GitRunner): Promise<Map<string, string>>;
24
+ export declare function validateCanonicalRefTargets(repoPath: string, expected: ExpectedCanonicalRefs, runner?: GitRunner): Promise<void>;
25
+ export declare function createCanonicalBundle(input: {
26
+ repoPath: string;
27
+ outputPath: string;
28
+ expected: ExpectedCanonicalRefs;
29
+ }, runner?: GitRunner): Promise<void>;
30
+ export declare function validateBundleHeads(bundlePath: string, expected: ExpectedCanonicalRefs, runner?: GitRunner): Promise<void>;
31
+ export declare function validateBundleHeadsForSelfHeal(bundlePath: string, expected: ExpectedCanonicalRefs, runner?: GitRunner): Promise<void>;
32
+ export declare function scanOutgoingObjects(input: {
33
+ repoPath: string;
34
+ proposedRefs: readonly string[];
35
+ previousTargets?: readonly string[];
36
+ maxBlobBytes?: number;
37
+ }, runner?: GitRunner): Promise<void>;
38
+ export declare function readCommitFiles(repoPath: string, commitSha: string, runner?: GitRunner): Promise<Map<string, Buffer>>;
39
+ //# sourceMappingURL=git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/git.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D;AAED,wBAAgB,eAAe,IAAI,SAAS,CAiB3C;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACzD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAK9F;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,GAAG,MAAM,EAAE,CAM1F;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC9C;AAED,wBAAsB,QAAQ,CAC5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAa9B;AAED,wBAAsB,2BAA2B,CAC/C,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAsB,qBAAqB,CACzC,KAAK,EAAE;IACL,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,qBAAqB,CAAC;CACjC,EACD,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAmBf;AAyBD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE;IACL,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,EACD,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,IAAI,CAAC,CAiCf;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,SAA6B,GACpC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAU9B"}
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createGitRunner = createGitRunner;
4
+ exports.versionTagRef = versionTagRef;
5
+ exports.deriveCanonicalRefs = deriveCanonicalRefs;
6
+ exports.readRefs = readRefs;
7
+ exports.validateCanonicalRefTargets = validateCanonicalRefTargets;
8
+ exports.createCanonicalBundle = createCanonicalBundle;
9
+ exports.validateBundleHeads = validateBundleHeads;
10
+ exports.validateBundleHeadsForSelfHeal = validateBundleHeadsForSelfHeal;
11
+ exports.scanOutgoingObjects = scanOutgoingObjects;
12
+ exports.readCommitFiles = readCommitFiles;
13
+ const node_child_process_1 = require("node:child_process");
14
+ const node_util_1 = require("node:util");
15
+ const paths_js_1 = require("./paths.js");
16
+ const execFileAsync = (0, node_util_1.promisify)(node_child_process_1.execFile);
17
+ const GIT_MAX_BUFFER = 64 * 1024 * 1024;
18
+ function createGitRunner() {
19
+ return {
20
+ async run(args, cwd) {
21
+ const result = await execFileAsync("git", [...args], {
22
+ cwd,
23
+ encoding: "buffer",
24
+ maxBuffer: GIT_MAX_BUFFER,
25
+ env: {
26
+ ...process.env,
27
+ GIT_CONFIG_NOSYSTEM: "1",
28
+ GIT_TERMINAL_PROMPT: "0",
29
+ LC_ALL: "C",
30
+ },
31
+ });
32
+ return Buffer.from(result.stdout);
33
+ },
34
+ };
35
+ }
36
+ function versionTagRef(version) {
37
+ for (const [label, value] of Object.entries(version)) {
38
+ if (!Number.isSafeInteger(value) || value < 0)
39
+ throw new Error(`invalid_version_${label}`);
40
+ }
41
+ return `refs/tags/v${version.major}.${version.minor}.${version.patch}`;
42
+ }
43
+ function deriveCanonicalRefs(versions) {
44
+ const tags = versions
45
+ .map((version) => versionTagRef(version.version))
46
+ .sort((left, right) => left.localeCompare(right));
47
+ if (new Set(tags).size !== tags.length)
48
+ throw new Error("duplicate_game_source_version_tag");
49
+ return ["refs/heads/main", ...tags];
50
+ }
51
+ async function readRefs(repoPath, refs, runner = createGitRunner()) {
52
+ if (refs.length === 0)
53
+ return new Map();
54
+ const output = await runner.run(["show-ref", "--verify", ...refs], repoPath);
55
+ const actual = new Map();
56
+ for (const line of output.toString("utf8").trim().split("\n").filter(Boolean)) {
57
+ const separator = line.indexOf(" ");
58
+ if (separator <= 0)
59
+ throw new Error("invalid_game_source_ref");
60
+ actual.set(line.slice(separator + 1), (0, paths_js_1.assertSha1)(line.slice(0, separator), "ref_sha"));
61
+ }
62
+ if (actual.size !== refs.length || refs.some((ref) => !actual.has(ref))) {
63
+ throw new Error("game_source_ref_count_mismatch");
64
+ }
65
+ return actual;
66
+ }
67
+ async function validateCanonicalRefTargets(repoPath, expected, runner = createGitRunner()) {
68
+ const refs = deriveCanonicalRefs(expected.versions);
69
+ const actual = await readRefs(repoPath, refs, runner);
70
+ const targets = new Map([["refs/heads/main", (0, paths_js_1.assertSha1)(expected.headSha, "head_sha")]]);
71
+ for (const version of expected.versions) {
72
+ targets.set(versionTagRef(version.version), (0, paths_js_1.assertSha1)(version.commitSha, "commit_sha"));
73
+ }
74
+ for (const ref of refs) {
75
+ if (actual.get(ref) !== targets.get(ref))
76
+ throw new Error(`game_source_ref_target_mismatch:${ref}`);
77
+ }
78
+ }
79
+ async function createCanonicalBundle(input, runner = createGitRunner()) {
80
+ await validateCanonicalRefTargets(input.repoPath, input.expected, runner);
81
+ const refs = deriveCanonicalRefs(input.expected.versions);
82
+ await runner.run(["bundle", "create", "--version=2", input.outputPath, ...refs], input.repoPath);
83
+ await validateBundleHeads(input.outputPath, input.expected, runner);
84
+ }
85
+ async function validateBundleHeads(bundlePath, expected, runner = createGitRunner()) {
86
+ const output = await runner.run(["bundle", "list-heads", bundlePath]);
87
+ const actual = new Map();
88
+ for (const line of output.toString("utf8").trim().split("\n").filter(Boolean)) {
89
+ const separator = line.indexOf(" ");
90
+ if (separator <= 0)
91
+ throw new Error("invalid_game_source_bundle_head");
92
+ actual.set(line.slice(separator + 1), (0, paths_js_1.assertSha1)(line.slice(0, separator), "bundle_sha"));
93
+ }
94
+ const refs = deriveCanonicalRefs(expected.versions);
95
+ if (actual.size !== refs.length || refs.some((ref) => !actual.has(ref))) {
96
+ throw new Error("game_source_bundle_refs_mismatch");
97
+ }
98
+ const expectedTargets = new Map([["refs/heads/main", (0, paths_js_1.assertSha1)(expected.headSha, "head_sha")]]);
99
+ for (const version of expected.versions)
100
+ expectedTargets.set(versionTagRef(version.version), version.commitSha);
101
+ for (const ref of refs) {
102
+ if (actual.get(ref) !== expectedTargets.get(ref))
103
+ throw new Error(`game_source_bundle_target_mismatch:${ref}`);
104
+ }
105
+ }
106
+ async function validateBundleHeadsForSelfHeal(bundlePath, expected, runner = createGitRunner()) {
107
+ const output = await runner.run(["bundle", "list-heads", bundlePath]);
108
+ const actual = new Map();
109
+ for (const line of output.toString("utf8").trim().split("\n").filter(Boolean)) {
110
+ const separator = line.indexOf(" ");
111
+ if (separator <= 0)
112
+ throw new Error("invalid_game_source_bundle_head");
113
+ const ref = line.slice(separator + 1);
114
+ if (ref !== "refs/heads/main" && !/^refs\/tags\/v(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/.test(ref)) {
115
+ throw new Error(`game_source_bundle_unexpected_ref:${ref}`);
116
+ }
117
+ actual.set(ref, (0, paths_js_1.assertSha1)(line.slice(0, separator), "bundle_sha"));
118
+ }
119
+ const expectedTargets = new Map([["refs/heads/main", (0, paths_js_1.assertSha1)(expected.headSha, "head_sha")]]);
120
+ for (const version of expected.versions) {
121
+ expectedTargets.set(versionTagRef(version.version), (0, paths_js_1.assertSha1)(version.commitSha, "commit_sha"));
122
+ }
123
+ for (const [ref, target] of expectedTargets) {
124
+ if (actual.get(ref) !== target)
125
+ throw new Error(`game_source_bundle_target_mismatch:${ref}`);
126
+ }
127
+ }
128
+ function parseLsTree(output) {
129
+ return output
130
+ .toString("utf8")
131
+ .split("\0")
132
+ .filter(Boolean)
133
+ .map((record) => {
134
+ const tab = record.indexOf("\t");
135
+ const metadata = record.slice(0, tab).split(" ");
136
+ return {
137
+ mode: metadata[0] ?? "",
138
+ type: metadata[1] ?? "",
139
+ sha: metadata[2] ?? "",
140
+ path: (0, paths_js_1.normalizeSourcePath)(record.slice(tab + 1)),
141
+ };
142
+ });
143
+ }
144
+ async function scanOutgoingObjects(input, runner = createGitRunner()) {
145
+ if (input.proposedRefs.length === 0)
146
+ throw new Error("game_source_scan_refs_required");
147
+ const previousTargets = (input.previousTargets ?? []).map((sha) => (0, paths_js_1.assertSha1)(sha, "previous_sha"));
148
+ const commitOutput = await runner.run(["rev-list", ...input.proposedRefs, ...(previousTargets.length > 0 ? ["--not", ...previousTargets] : [])], input.repoPath);
149
+ const commits = commitOutput.toString("utf8").trim().split("\n").filter(Boolean).map((sha) => (0, paths_js_1.assertSha1)(sha));
150
+ const blobs = new Map();
151
+ for (const commit of commits) {
152
+ const tree = parseLsTree(await runner.run(["ls-tree", "-r", "-z", "--long", commit], input.repoPath));
153
+ for (const entry of tree) {
154
+ if (entry.mode === "160000" || entry.type === "commit")
155
+ throw new Error(`game_source_gitlink_rejected:${entry.path}`);
156
+ if (entry.type !== "blob")
157
+ continue;
158
+ const sizeOutput = await runner.run(["cat-file", "-s", entry.sha], input.repoPath);
159
+ const size = Number(sizeOutput.toString("utf8").trim());
160
+ const uses = blobs.get(entry.sha) ?? [];
161
+ uses.push({ sha: entry.sha, path: entry.path, size });
162
+ blobs.set(entry.sha, uses);
163
+ }
164
+ }
165
+ const maxBlobBytes = input.maxBlobBytes ?? paths_js_1.MAX_GIT_SOURCE_FILE_BYTES;
166
+ for (const uses of blobs.values()) {
167
+ for (const blob of uses) {
168
+ if ((0, paths_js_1.isSourceExcludedGeneratedPath)(blob.path))
169
+ throw new Error(`game_source_generated_path_rejected:${blob.path}`);
170
+ if ((0, paths_js_1.isMediaOrBinaryPath)(blob.path))
171
+ throw new Error(`game_source_binary_path_rejected:${blob.path}`);
172
+ if (blob.size > maxBlobBytes)
173
+ throw new Error(`game_source_blob_too_large:${blob.path}`);
174
+ }
175
+ const representative = uses[0];
176
+ if (!representative)
177
+ continue;
178
+ const content = await runner.run(["cat-file", "blob", representative.sha], input.repoPath);
179
+ if (content.includes(0))
180
+ throw new Error(`game_source_binary_blob_rejected:${representative.path}`);
181
+ }
182
+ }
183
+ async function readCommitFiles(repoPath, commitSha, runner = createGitRunner()) {
184
+ const commit = (0, paths_js_1.assertSha1)(commitSha, "commit_sha");
185
+ const tree = parseLsTree(await runner.run(["ls-tree", "-r", "-z", commit], repoPath));
186
+ const files = new Map();
187
+ for (const entry of tree) {
188
+ if (entry.mode === "160000" || entry.type === "commit")
189
+ throw new Error(`game_source_gitlink_rejected:${entry.path}`);
190
+ if (entry.type !== "blob")
191
+ continue;
192
+ files.set(entry.path, await runner.run(["cat-file", "blob", entry.sha], repoPath));
193
+ }
194
+ return files;
195
+ }
@@ -0,0 +1,6 @@
1
+ export declare function updateManagedGitignore(existing: string): string;
2
+ export declare const PLAYDROP_GITIGNORE_MARKERS: {
3
+ readonly start: "# >>> PLAYDROP MANAGED GAME SOURCE >>>";
4
+ readonly end: "# <<< PLAYDROP MANAGED GAME SOURCE <<<";
5
+ };
6
+ //# sourceMappingURL=ignore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../src/ignore.ts"],"names":[],"mappings":"AAiCA,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAc/D;AAED,eAAO,MAAM,0BAA0B;;;CAAoD,CAAC"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PLAYDROP_GITIGNORE_MARKERS = void 0;
4
+ exports.updateManagedGitignore = updateManagedGitignore;
5
+ const paths_js_1 = require("./paths.js");
6
+ const START_MARKER = "# >>> PLAYDROP MANAGED GAME SOURCE >>>";
7
+ const END_MARKER = "# <<< PLAYDROP MANAGED GAME SOURCE <<<";
8
+ const MANAGED_RULES = [
9
+ ".next/",
10
+ ".art-*",
11
+ ".playdrop-task-events/",
12
+ ".playdrop/",
13
+ ".playdrop.json",
14
+ ".scratch/",
15
+ "AGENTS.md",
16
+ "CLAUDE.md",
17
+ "PLAYDROP_TASK.md",
18
+ "assets/",
19
+ "bin/playdrop",
20
+ "build/",
21
+ "coverage/",
22
+ "dist/",
23
+ "evidence/",
24
+ "listing/",
25
+ "next-steps.json",
26
+ "node_modules/",
27
+ "output/",
28
+ "player-feedback.md",
29
+ "platform-feedback.md",
30
+ "remix-source/",
31
+ "source.zip",
32
+ "tmp/",
33
+ "transcripts/",
34
+ ...(0, paths_js_1.gameSourceBinaryIgnoreRules)(),
35
+ ];
36
+ function updateManagedGitignore(existing) {
37
+ const normalized = existing.replace(/\r\n/g, "\n");
38
+ const startIndex = normalized.indexOf(START_MARKER);
39
+ const endIndex = normalized.indexOf(END_MARKER);
40
+ if ((startIndex >= 0) !== (endIndex >= 0) || (startIndex >= 0 && endIndex < startIndex)) {
41
+ throw new Error("invalid_playdrop_gitignore_block");
42
+ }
43
+ let creatorRules = normalized;
44
+ if (startIndex >= 0 && endIndex >= 0) {
45
+ creatorRules = `${normalized.slice(0, startIndex)}${normalized.slice(endIndex + END_MARKER.length)}`;
46
+ }
47
+ creatorRules = creatorRules.replace(/^\n+|\n+$/g, "");
48
+ const managed = [START_MARKER, ...MANAGED_RULES, END_MARKER].join("\n");
49
+ return creatorRules.length > 0 ? `${creatorRules}\n\n${managed}\n` : `${managed}\n`;
50
+ }
51
+ exports.PLAYDROP_GITIGNORE_MARKERS = { start: START_MARKER, end: END_MARKER };
@@ -0,0 +1,10 @@
1
+ export * from "./archive.js";
2
+ export * from "./bundle-storage.js";
3
+ export * from "./export.js";
4
+ export * from "./git.js";
5
+ export * from "./ignore.js";
6
+ export * from "./lock.js";
7
+ export * from "./materialize.js";
8
+ export * from "./paths.js";
9
+ export * from "./repository.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
@@ -14,7 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./textured-builder"), exports);
19
- __exportStar(require("./voxel-builder"), exports);
20
- //# sourceMappingURL=index.js.map
17
+ __exportStar(require("./archive.js"), exports);
18
+ __exportStar(require("./bundle-storage.js"), exports);
19
+ __exportStar(require("./export.js"), exports);
20
+ __exportStar(require("./git.js"), exports);
21
+ __exportStar(require("./ignore.js"), exports);
22
+ __exportStar(require("./lock.js"), exports);
23
+ __exportStar(require("./materialize.js"), exports);
24
+ __exportStar(require("./paths.js"), exports);
25
+ __exportStar(require("./repository.js"), exports);
@@ -0,0 +1,17 @@
1
+ import { GAME_SOURCE_STORE } from "./paths.js";
2
+ export interface GameSourceLockEntry {
3
+ sha256: string;
4
+ bytes: number;
5
+ store: typeof GAME_SOURCE_STORE;
6
+ key: string;
7
+ }
8
+ export interface GameSourceLockV1 {
9
+ version: 1;
10
+ files: Record<string, GameSourceLockEntry>;
11
+ }
12
+ export declare function normalizeGameSourceLock(input: GameSourceLockV1): GameSourceLockV1;
13
+ export declare function parseGameSourceLock(content: Buffer | string): GameSourceLockV1;
14
+ export declare function serializeGameSourceLock(input: GameSourceLockV1): Buffer;
15
+ export declare function createGameSourceLock(materialFiles: ReadonlyMap<string, Buffer>): GameSourceLockV1;
16
+ export declare function verifyLockedFile(filePath: string, content: Buffer, entry: GameSourceLockEntry): void;
17
+ //# sourceMappingURL=lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../src/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAGlB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,iBAAiB,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,CAAC,CAAC;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CAC5C;AAsBD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAWjF;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAQ9E;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEvE;AAED,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,gBAAgB,CAajG;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAIpG"}