@playdrop/playdrop-cli 0.3.1-build.1 → 0.3.5-build.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 (371) hide show
  1. package/README.md +60 -22
  2. package/config/client-meta.json +5 -5
  3. package/dist/apps/build.js +90 -114
  4. package/dist/apps/upload.js +35 -11
  5. package/dist/apps/validate.js +61 -0
  6. package/dist/assets/model-artifacts.d.ts +8 -0
  7. package/dist/assets/model-artifacts.js +375 -0
  8. package/dist/assets/model-worker.d.ts +22 -0
  9. package/dist/assets/model-worker.js +123 -0
  10. package/dist/catalogue.d.ts +10 -4
  11. package/dist/catalogue.js +272 -45
  12. package/dist/commandContext.d.ts +1 -0
  13. package/dist/commandContext.js +45 -15
  14. package/dist/commands/browse.d.ts +16 -0
  15. package/dist/commands/browse.js +370 -0
  16. package/dist/commands/build.js +12 -4
  17. package/dist/commands/capture.js +24 -24
  18. package/dist/commands/captureRemote.d.ts +11 -0
  19. package/dist/commands/captureRemote.js +90 -0
  20. package/dist/commands/comments.d.ts +14 -0
  21. package/dist/commands/comments.js +189 -0
  22. package/dist/commands/create.js +112 -72
  23. package/dist/commands/creations.d.ts +49 -0
  24. package/dist/commands/creations.js +657 -0
  25. package/dist/commands/credits.d.ts +10 -0
  26. package/dist/commands/credits.js +91 -0
  27. package/dist/commands/detail.d.ts +2 -2
  28. package/dist/commands/detail.js +148 -290
  29. package/dist/commands/dev.js +26 -24
  30. package/dist/commands/devServer.js +88 -9
  31. package/dist/commands/devShared.js +2 -2
  32. package/dist/commands/documentation.d.ts +4 -1
  33. package/dist/commands/documentation.js +79 -104
  34. package/dist/commands/feedback.d.ts +12 -9
  35. package/dist/commands/feedback.js +125 -257
  36. package/dist/commands/format.js +6 -13
  37. package/dist/commands/generation.d.ts +11 -0
  38. package/dist/commands/generation.js +329 -43
  39. package/dist/commands/gettingStarted.d.ts +1 -0
  40. package/dist/commands/gettingStarted.js +26 -0
  41. package/dist/commands/init.js +26 -24
  42. package/dist/commands/login.js +9 -8
  43. package/dist/commands/logout.js +2 -1
  44. package/dist/commands/notifications.d.ts +14 -0
  45. package/dist/commands/notifications.js +179 -0
  46. package/dist/commands/search.d.ts +13 -0
  47. package/dist/commands/search.js +198 -0
  48. package/dist/commands/upload.js +83 -35
  49. package/dist/commands/validate.js +15 -1
  50. package/dist/commands/versionsBrowse.d.ts +7 -0
  51. package/dist/commands/versionsBrowse.js +209 -0
  52. package/dist/commands/whoami.js +9 -8
  53. package/dist/errors.d.ts +9 -0
  54. package/dist/errors.js +52 -0
  55. package/dist/externalAssetPackValidation.d.ts +2 -0
  56. package/dist/externalAssetPackValidation.js +115 -0
  57. package/dist/http.js +1 -1
  58. package/dist/index.js +570 -629
  59. package/dist/messages.js +11 -11
  60. package/dist/output.d.ts +5 -0
  61. package/dist/output.js +45 -0
  62. package/dist/playwright.js +10 -2
  63. package/dist/refs.d.ts +18 -0
  64. package/dist/refs.js +105 -0
  65. package/node_modules/@playdrop/ai-client/dist/index.d.ts +43 -16
  66. package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +1 -1
  67. package/node_modules/@playdrop/ai-client/package.json +1 -0
  68. package/node_modules/@playdrop/api-client/dist/client.d.ts +77 -43
  69. package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
  70. package/node_modules/@playdrop/api-client/dist/client.js +379 -1574
  71. package/node_modules/@playdrop/api-client/dist/core/errors.d.ts +9 -0
  72. package/node_modules/@playdrop/api-client/dist/core/errors.d.ts.map +1 -0
  73. package/node_modules/@playdrop/api-client/dist/core/errors.js +46 -0
  74. package/node_modules/@playdrop/api-client/dist/core/request.d.ts +27 -0
  75. package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -0
  76. package/node_modules/@playdrop/api-client/dist/core/request.js +122 -0
  77. package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts +75 -0
  78. package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts.map +1 -0
  79. package/node_modules/@playdrop/api-client/dist/domains/admin.js +282 -0
  80. package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts +22 -0
  81. package/node_modules/@playdrop/api-client/dist/domains/ai.d.ts.map +1 -0
  82. package/node_modules/@playdrop/api-client/dist/domains/ai.js +15 -0
  83. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +60 -0
  84. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -0
  85. package/node_modules/@playdrop/api-client/dist/domains/apps.js +301 -0
  86. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.d.ts +59 -0
  87. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.d.ts.map +1 -0
  88. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.js +297 -0
  89. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +62 -0
  90. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -0
  91. package/node_modules/@playdrop/api-client/dist/domains/assets.js +297 -0
  92. package/node_modules/@playdrop/api-client/dist/domains/auth.d.ts +28 -0
  93. package/node_modules/@playdrop/api-client/dist/domains/auth.d.ts.map +1 -0
  94. package/node_modules/@playdrop/api-client/dist/domains/auth.js +78 -0
  95. package/node_modules/@playdrop/api-client/dist/domains/comments.d.ts +29 -0
  96. package/node_modules/@playdrop/api-client/dist/domains/comments.d.ts.map +1 -0
  97. package/node_modules/@playdrop/api-client/dist/domains/comments.js +65 -0
  98. package/node_modules/@playdrop/api-client/dist/domains/me.d.ts +24 -0
  99. package/node_modules/@playdrop/api-client/dist/domains/me.d.ts.map +1 -0
  100. package/node_modules/@playdrop/api-client/dist/domains/me.js +35 -0
  101. package/node_modules/@playdrop/api-client/dist/domains/payments.d.ts +37 -0
  102. package/node_modules/@playdrop/api-client/dist/domains/payments.d.ts.map +1 -0
  103. package/node_modules/@playdrop/api-client/dist/domains/payments.js +148 -0
  104. package/node_modules/@playdrop/api-client/dist/domains/search.d.ts +27 -0
  105. package/node_modules/@playdrop/api-client/dist/domains/search.d.ts.map +1 -0
  106. package/node_modules/@playdrop/api-client/dist/domains/search.js +65 -0
  107. package/node_modules/@playdrop/api-client/dist/index.d.ts +59 -60
  108. package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
  109. package/node_modules/@playdrop/api-client/dist/index.js +142 -53
  110. package/node_modules/@playdrop/api-client/package.json +3 -2
  111. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/entity-cleaner.d.ts +3 -3
  112. package/node_modules/@playdrop/boxel-core/dist/src/entity-cleaner.js.map +1 -0
  113. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/entity-utils.d.ts +8 -8
  114. package/node_modules/@playdrop/boxel-core/dist/src/entity-utils.js.map +1 -0
  115. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/common.d.ts +2 -2
  116. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/common.js.map +1 -1
  117. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/textured-builder.d.ts +2 -2
  118. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/textured-builder.js.map +1 -0
  119. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/types.d.ts +6 -0
  120. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/voxel-builder.d.ts +2 -2
  121. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r15/voxel-builder.js.map +1 -0
  122. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/builder.d.ts +3 -3
  123. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/r6/builder.js.map +1 -0
  124. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/templates/index.d.ts +4 -4
  125. package/node_modules/@playdrop/boxel-core/dist/src/humanoid/templates/index.js.map +1 -0
  126. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/palette_tools.d.ts +4 -4
  127. package/node_modules/@playdrop/boxel-core/dist/src/palette_tools.js.map +1 -0
  128. package/node_modules/@playdrop/boxel-core/dist/src/serialization.d.ts +4 -0
  129. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/serialization.js +10 -10
  130. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/serialization.js.map +1 -1
  131. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/textures.d.ts +5 -5
  132. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/textures.js.map +1 -1
  133. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/infer-face.d.ts +2 -2
  134. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/infer-face.js.map +1 -0
  135. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/layer-mode.d.ts +2 -2
  136. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/layer-mode.js +1 -1
  137. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/layer-mode.js.map +1 -0
  138. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +2 -0
  139. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +1 -0
  140. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/slice.d.ts +2 -2
  141. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/slice.js +1 -1
  142. package/node_modules/@playdrop/boxel-core/dist/src/transforms/textured-boxes/slice.js.map +1 -0
  143. package/node_modules/@playdrop/boxel-core/dist/src/transforms/upscale.d.ts +3 -0
  144. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/upscale.js +1 -1
  145. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/upscale.js.map +1 -1
  146. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/voxels/slice.d.ts +2 -2
  147. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/voxels/slice.js.map +1 -1
  148. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/types.d.ts +3 -3
  149. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/validation.d.ts +10 -10
  150. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/validation.js +36 -36
  151. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/validation.js.map +1 -1
  152. package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.js.map +1 -0
  153. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/index.test.js +2 -2
  154. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/index.test.js.map +1 -1
  155. package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.js.map +1 -0
  156. package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.js.map +1 -0
  157. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/serialization.test.js +6 -6
  158. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/serialization.test.js.map +1 -1
  159. package/node_modules/@playdrop/boxel-core/dist/test/textures.test.js.map +1 -0
  160. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/types.test.js +1 -1
  161. package/node_modules/@playdrop/boxel-core/dist/test/types.test.js.map +1 -0
  162. package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.js.map +1 -0
  163. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/validation.test.js +11 -11
  164. package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/validation.test.js.map +1 -1
  165. package/node_modules/@playdrop/{entity-core → boxel-core}/package.json +3 -3
  166. package/node_modules/@playdrop/boxel-three/dist/src/animations.d.ts +4 -0
  167. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/animations.js +1 -1
  168. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/builders.d.ts +1 -1
  169. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/builders.js +3 -3
  170. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/context.d.ts +3 -3
  171. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/exporters/glb.d.ts +9 -9
  172. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/exporters/glb.js +4 -4
  173. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/exporters/image.d.ts +4 -4
  174. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/exporters/image.js +5 -5
  175. package/node_modules/@playdrop/boxel-three/dist/src/index.d.ts +17 -0
  176. package/node_modules/@playdrop/boxel-three/dist/src/index.js +15 -0
  177. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/instantiate.d.ts +4 -4
  178. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/instantiate.js +4 -4
  179. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/nodes.d.ts +1 -1
  180. package/node_modules/@playdrop/boxel-three/dist/src/overlays.d.ts +7 -0
  181. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/overlays.js +1 -1
  182. package/node_modules/@playdrop/boxel-three/dist/src/scene.d.ts +3 -0
  183. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/scene.js +6 -6
  184. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/skinned-mesh.d.ts +2 -2
  185. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/textures.d.ts +1 -1
  186. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/textures.js +2 -2
  187. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/types.d.ts +15 -15
  188. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/voxels/faces.d.ts +1 -1
  189. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/voxels/mesher.d.ts +1 -1
  190. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/voxels/mesher.js +1 -1
  191. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/export-image.playwright.test.js +4 -4
  192. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/fixtures/render-worker.d.ts +3 -3
  193. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/fixtures/render-worker.js +10 -10
  194. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/glb-skinned.test.js +6 -6
  195. package/node_modules/@playdrop/boxel-three/dist/test/index.test.js +8 -0
  196. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/instantiate.test.js +3 -3
  197. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/overlays.test.js +3 -3
  198. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/scene-filter.test.js +5 -5
  199. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/scene-smoke.test.js +3 -3
  200. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/skinned-mesh.test.js +3 -3
  201. package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/textured-overlay.test.js +3 -3
  202. package/node_modules/@playdrop/{entity-three → boxel-three}/package.json +5 -4
  203. package/node_modules/@playdrop/config/client-meta.json +5 -5
  204. package/node_modules/@playdrop/config/dist/src/constants.d.ts +5 -0
  205. package/node_modules/@playdrop/config/dist/src/constants.d.ts.map +1 -1
  206. package/node_modules/@playdrop/config/dist/src/constants.js +5 -1
  207. package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
  208. package/node_modules/@playdrop/config/package.json +1 -1
  209. package/node_modules/@playdrop/types/dist/api.d.ts +326 -62
  210. package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
  211. package/node_modules/@playdrop/types/dist/api.js +56 -0
  212. package/node_modules/@playdrop/types/dist/app.d.ts +0 -14
  213. package/node_modules/@playdrop/types/dist/app.d.ts.map +1 -1
  214. package/node_modules/@playdrop/types/dist/app.js +0 -10
  215. package/node_modules/@playdrop/types/dist/asset-pack.d.ts +12 -1
  216. package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -1
  217. package/node_modules/@playdrop/types/dist/asset.d.ts +85 -4
  218. package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -1
  219. package/node_modules/@playdrop/types/dist/asset.js +43 -37
  220. package/node_modules/@playdrop/types/dist/entity.d.ts +2 -2
  221. package/node_modules/@playdrop/types/dist/entity.d.ts.map +1 -1
  222. package/node_modules/@playdrop/types/dist/entity.js +2 -2
  223. package/node_modules/@playdrop/types/dist/realtime.d.ts +27 -26
  224. package/node_modules/@playdrop/types/dist/realtime.d.ts.map +1 -1
  225. package/node_modules/@playdrop/types/dist/version.d.ts +5 -0
  226. package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
  227. package/package.json +11 -9
  228. package/bin/playdrop-cli +0 -2
  229. package/dist/commands/asset-packs.d.ts +0 -27
  230. package/dist/commands/asset-packs.js +0 -508
  231. package/dist/commands/assets.d.ts +0 -35
  232. package/dist/commands/assets.js +0 -668
  233. package/dist/commands/list.d.ts +0 -7
  234. package/dist/commands/list.js +0 -347
  235. package/dist/commands/migrateCatalogueV2.d.ts +0 -1
  236. package/dist/commands/migrateCatalogueV2.js +0 -142
  237. package/dist/commands/versions.d.ts +0 -17
  238. package/dist/commands/versions.js +0 -384
  239. package/node_modules/@playdrop/entity-core/dist/src/entity-cleaner.js.map +0 -1
  240. package/node_modules/@playdrop/entity-core/dist/src/entity-utils.js.map +0 -1
  241. package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/textured-builder.js.map +0 -1
  242. package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/types.d.ts +0 -6
  243. package/node_modules/@playdrop/entity-core/dist/src/humanoid/r15/voxel-builder.js.map +0 -1
  244. package/node_modules/@playdrop/entity-core/dist/src/humanoid/r6/builder.js.map +0 -1
  245. package/node_modules/@playdrop/entity-core/dist/src/humanoid/templates/index.js.map +0 -1
  246. package/node_modules/@playdrop/entity-core/dist/src/palette_tools.js.map +0 -1
  247. package/node_modules/@playdrop/entity-core/dist/src/serialization.d.ts +0 -4
  248. package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/infer-face.js.map +0 -1
  249. package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/layer-mode.js.map +0 -1
  250. package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/merge-overlay.d.ts +0 -2
  251. package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/merge-overlay.js.map +0 -1
  252. package/node_modules/@playdrop/entity-core/dist/src/transforms/textured-boxes/slice.js.map +0 -1
  253. package/node_modules/@playdrop/entity-core/dist/src/transforms/upscale.d.ts +0 -3
  254. package/node_modules/@playdrop/entity-core/dist/test/entity-utils.test.js.map +0 -1
  255. package/node_modules/@playdrop/entity-core/dist/test/layer-mode.test.js.map +0 -1
  256. package/node_modules/@playdrop/entity-core/dist/test/palette-tools.test.js.map +0 -1
  257. package/node_modules/@playdrop/entity-core/dist/test/textures.test.js.map +0 -1
  258. package/node_modules/@playdrop/entity-core/dist/test/types.test.js.map +0 -1
  259. package/node_modules/@playdrop/entity-core/dist/test/upscale.test.js.map +0 -1
  260. package/node_modules/@playdrop/entity-three/dist/src/animations.d.ts +0 -4
  261. package/node_modules/@playdrop/entity-three/dist/src/index.d.ts +0 -17
  262. package/node_modules/@playdrop/entity-three/dist/src/index.js +0 -15
  263. package/node_modules/@playdrop/entity-three/dist/src/overlays.d.ts +0 -7
  264. package/node_modules/@playdrop/entity-three/dist/src/scene.d.ts +0 -3
  265. package/node_modules/@playdrop/entity-three/dist/test/index.test.js +0 -8
  266. package/node_modules/@playdrop/types/dist/profile-asset-semantics.d.ts +0 -22
  267. package/node_modules/@playdrop/types/dist/profile-asset-semantics.d.ts.map +0 -1
  268. package/node_modules/@playdrop/types/dist/profile-asset-semantics.js +0 -105
  269. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/entity-cleaner.js +0 -0
  270. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/entity-utils.js +0 -0
  271. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/format-utils.d.ts +0 -0
  272. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/format-utils.js +0 -0
  273. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/format-utils.js.map +0 -0
  274. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/geometry.d.ts +0 -0
  275. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/geometry.js +0 -0
  276. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/geometry.js.map +0 -0
  277. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/index.d.ts +0 -0
  278. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/index.js +0 -0
  279. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/index.js.map +0 -0
  280. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/common.js +0 -0
  281. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/index.d.ts +0 -0
  282. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/index.js +0 -0
  283. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/index.js.map +0 -0
  284. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/textured-builder.js +0 -0
  285. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/types.js +0 -0
  286. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/types.js.map +0 -0
  287. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r15/voxel-builder.js +0 -0
  288. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/builder.js +0 -0
  289. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/index.d.ts +0 -0
  290. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/index.js +0 -0
  291. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/index.js.map +0 -0
  292. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/scanner.d.ts +0 -0
  293. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/scanner.js +0 -0
  294. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/scanner.js.map +0 -0
  295. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/textures/artifacts.d.ts +0 -0
  296. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/textures/artifacts.js +0 -0
  297. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/textures/artifacts.js.map +0 -0
  298. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/textures/face-map.d.ts +0 -0
  299. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/textures/face-map.js +0 -0
  300. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/r6/textures/face-map.js.map +0 -0
  301. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/templates/humanoid_r15.json +0 -0
  302. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/templates/humanoid_r6.json +0 -0
  303. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/humanoid/templates/index.js +0 -0
  304. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/index.d.ts +0 -0
  305. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/index.js +0 -0
  306. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/index.js.map +0 -0
  307. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/materials.d.ts +0 -0
  308. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/materials.js +0 -0
  309. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/materials.js.map +0 -0
  310. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/palette_tools.js +0 -0
  311. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/textures.js +0 -0
  312. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/infer-face.js +0 -0
  313. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/textured-boxes/merge-overlay.js +0 -0
  314. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/voxels/slice.js +0 -0
  315. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/voxels/textured-to-voxel.d.ts +0 -0
  316. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/voxels/textured-to-voxel.js +0 -0
  317. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/transforms/voxels/textured-to-voxel.js.map +0 -0
  318. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/types.js +0 -0
  319. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/types.js.map +0 -0
  320. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/voxels/greedy-mesher.d.ts +0 -0
  321. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/voxels/greedy-mesher.js +0 -0
  322. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/voxels/greedy-mesher.js.map +0 -0
  323. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/voxels.d.ts +0 -0
  324. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/voxels.js +0 -0
  325. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/src/voxels.js.map +0 -0
  326. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/entity-utils.test.d.ts +0 -0
  327. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/entity-utils.test.js +0 -0
  328. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/greedy-mesher.test.d.ts +0 -0
  329. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/greedy-mesher.test.js +0 -0
  330. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/greedy-mesher.test.js.map +0 -0
  331. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/humanoid/humanoid-builders.test.d.ts +0 -0
  332. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/humanoid/humanoid-builders.test.js +0 -0
  333. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/humanoid/humanoid-builders.test.js.map +0 -0
  334. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/index.test.d.ts +0 -0
  335. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/layer-mode.test.d.ts +0 -0
  336. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/layer-mode.test.js +0 -0
  337. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/materials.test.d.ts +0 -0
  338. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/materials.test.js +0 -0
  339. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/materials.test.js.map +0 -0
  340. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/palette-tools.test.d.ts +0 -0
  341. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/palette-tools.test.js +0 -0
  342. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/serialization.test.d.ts +0 -0
  343. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/textures.test.d.ts +0 -0
  344. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/textures.test.js +0 -0
  345. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/types.test.d.ts +0 -0
  346. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/upscale.test.d.ts +0 -0
  347. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/upscale.test.js +0 -0
  348. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/validation.test.d.ts +0 -0
  349. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/voxels.test.d.ts +0 -0
  350. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/voxels.test.js +0 -0
  351. /package/node_modules/@playdrop/{entity-core → boxel-core}/dist/test/voxels.test.js.map +0 -0
  352. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/context.js +0 -0
  353. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/nodes.js +0 -0
  354. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/primitives.d.ts +0 -0
  355. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/primitives.js +0 -0
  356. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/skinned-mesh.js +0 -0
  357. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/texture-atlas.d.ts +0 -0
  358. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/texture-atlas.js +0 -0
  359. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/types.js +0 -0
  360. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/src/voxels/faces.js +0 -0
  361. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/export-image.playwright.test.d.ts +0 -0
  362. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/glb-skinned.test.d.ts +0 -0
  363. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/index.test.d.ts +0 -0
  364. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/instantiate.test.d.ts +0 -0
  365. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/overlays.test.d.ts +0 -0
  366. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/scene-filter.test.d.ts +0 -0
  367. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/scene-smoke.test.d.ts +0 -0
  368. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/skinned-mesh.test.d.ts +0 -0
  369. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/textured-overlay.test.d.ts +0 -0
  370. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/voxels.test.d.ts +0 -0
  371. /package/node_modules/@playdrop/{entity-three → boxel-three}/dist/test/voxels.test.js +0 -0
@@ -0,0 +1,90 @@
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.buildCaptureRemoteCommandArgs = buildCaptureRemoteCommandArgs;
7
+ exports.captureRemote = captureRemote;
8
+ const node_child_process_1 = require("node:child_process");
9
+ const node_path_1 = __importDefault(require("node:path"));
10
+ const messages_1 = require("../messages");
11
+ function parseTimeout(raw) {
12
+ if (raw === undefined) {
13
+ return null;
14
+ }
15
+ const parsed = typeof raw === 'number' ? raw : Number.parseFloat(String(raw));
16
+ if (!Number.isFinite(parsed) || parsed <= 0 || parsed > 600) {
17
+ return null;
18
+ }
19
+ return String(parsed);
20
+ }
21
+ function buildCaptureRemoteCommandArgs(url, options = {}) {
22
+ const trimmedUrl = typeof url === 'string' ? url.trim() : '';
23
+ if (!trimmedUrl) {
24
+ return null;
25
+ }
26
+ const args = [
27
+ node_path_1.default.resolve(__dirname, '../../scripts/capture-url.mjs'),
28
+ '--url',
29
+ trimmedUrl,
30
+ ];
31
+ const timeout = parseTimeout(options.timeout);
32
+ if (options.timeout !== undefined && timeout === null) {
33
+ throw new Error('invalid_timeout');
34
+ }
35
+ if (timeout) {
36
+ args.push('--timeout', timeout);
37
+ }
38
+ if (options.screenshot) {
39
+ args.push('--screenshot', options.screenshot);
40
+ }
41
+ if (options.log) {
42
+ args.push('--log', options.log);
43
+ }
44
+ const username = options.username?.trim() || '';
45
+ const password = options.password || '';
46
+ if ((username && !password) || (!username && password)) {
47
+ throw new Error('invalid_credentials_pair');
48
+ }
49
+ if (username) {
50
+ args.push('--username', username, '--password', password);
51
+ }
52
+ if (options.loginUrl) {
53
+ args.push('--login-url', options.loginUrl);
54
+ }
55
+ return args;
56
+ }
57
+ async function captureRemote(url, options = {}) {
58
+ let args;
59
+ try {
60
+ args = buildCaptureRemoteCommandArgs(url ?? '', options);
61
+ }
62
+ catch (error) {
63
+ if (error instanceof Error && error.message === 'invalid_timeout') {
64
+ (0, messages_1.printErrorWithHelp)('The --timeout value must be a number between 0 and 600 seconds.', [], { command: 'project capture remote' });
65
+ process.exitCode = 1;
66
+ return;
67
+ }
68
+ if (error instanceof Error && error.message === 'invalid_credentials_pair') {
69
+ (0, messages_1.printErrorWithHelp)('Use --username and --password together.', [], { command: 'project capture remote' });
70
+ process.exitCode = 1;
71
+ return;
72
+ }
73
+ throw error;
74
+ }
75
+ if (!args) {
76
+ (0, messages_1.printErrorWithHelp)('A URL is required.', ['Example: playdrop project capture remote https://www.playdrop.ai/creators/playdrop/apps/game/hangingout'], { command: 'project capture remote' });
77
+ process.exitCode = 1;
78
+ return;
79
+ }
80
+ const result = (0, node_child_process_1.spawnSync)(process.execPath, args, {
81
+ stdio: 'inherit',
82
+ });
83
+ if (typeof result.status === 'number' && result.status !== 0) {
84
+ process.exitCode = result.status;
85
+ return;
86
+ }
87
+ if (result.error) {
88
+ throw result.error;
89
+ }
90
+ }
@@ -0,0 +1,14 @@
1
+ type BrowseCommentsOptions = {
2
+ json?: boolean;
3
+ };
4
+ type AddCommentOptions = {
5
+ body?: string;
6
+ replyTo?: string | number;
7
+ json?: boolean;
8
+ };
9
+ export declare function browseComments(rawRef: string | undefined, options?: BrowseCommentsOptions): Promise<void>;
10
+ export declare function addComment(rawRef: string | undefined, options?: AddCommentOptions): Promise<void>;
11
+ export declare function deleteComment(commentId: string | undefined, options?: {
12
+ json?: boolean;
13
+ }): Promise<void>;
14
+ export {};
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.browseComments = browseComments;
4
+ exports.addComment = addComment;
5
+ exports.deleteComment = deleteComment;
6
+ const commandContext_1 = require("../commandContext");
7
+ const errors_1 = require("../errors");
8
+ const messages_1 = require("../messages");
9
+ const output_1 = require("../output");
10
+ const refs_1 = require("../refs");
11
+ function parsePositiveInteger(raw, label, command) {
12
+ if (raw === undefined) {
13
+ return null;
14
+ }
15
+ const parsed = typeof raw === 'number' ? raw : Number.parseInt(String(raw), 10);
16
+ if (!Number.isInteger(parsed) || parsed <= 0) {
17
+ (0, messages_1.printErrorWithHelp)(`${label} must be a positive integer.`, [], { command });
18
+ process.exitCode = 1;
19
+ return null;
20
+ }
21
+ return parsed;
22
+ }
23
+ function printComments(nodes, depth = 0) {
24
+ const indent = ' '.repeat(depth);
25
+ for (const node of nodes) {
26
+ const author = node.author?.displayName || node.author?.username || 'unknown';
27
+ const creatorBadge = node.authorIsCreator ? ' [creator]' : '';
28
+ const body = node.isDeleted ? '[deleted]' : node.body;
29
+ console.log(`${indent}- #${node.id} ${author}${creatorBadge} | ${(0, output_1.formatTimestamp)(node.createdAt)}`);
30
+ console.log(`${indent} ${body}`);
31
+ if (Array.isArray(node.replies) && node.replies.length > 0) {
32
+ printComments(node.replies, depth + 1);
33
+ }
34
+ }
35
+ }
36
+ async function browseComments(rawRef, options = {}) {
37
+ let ref;
38
+ try {
39
+ ref = (0, refs_1.parseContentRef)(rawRef ?? '');
40
+ }
41
+ catch {
42
+ (0, messages_1.printErrorWithHelp)('A canonical ref is required.', ['Use the format <creator>/<kind>/<name>.', 'Example: playdrop comments browse playdrop/app/hangingout'], { command: 'comments browse' });
43
+ process.exitCode = 1;
44
+ return;
45
+ }
46
+ await (0, commandContext_1.withPublicEnvironment)('comments browse', async ({ client }) => {
47
+ try {
48
+ const response = await client.fetchContentComments((0, refs_1.contentKindToSavedItemKind)(ref.kind), ref.creator, ref.name);
49
+ const items = response.comments ?? [];
50
+ if (options.json) {
51
+ (0, output_1.printJson)({ items });
52
+ return;
53
+ }
54
+ if (items.length === 0) {
55
+ console.log(`No comments found for "${ref.ref}".`);
56
+ console.log('Next: run "playdrop comments add <ref> --body <text>" to start the conversation.');
57
+ return;
58
+ }
59
+ console.log(`Comments for ${ref.ref}:\n`);
60
+ printComments(items);
61
+ console.log('\nNext: run "playdrop comments add <ref> --body <text>" to reply.');
62
+ }
63
+ catch (error) {
64
+ const handled = (0, errors_1.handleCommandFailure)(error, 'comments browse', 'Comment lookup', {
65
+ apiMessage: (apiError) => {
66
+ if (apiError.status === 404) {
67
+ return {
68
+ problem: `No item was found for "${ref.ref}".`,
69
+ suggestions: ['Check the ref and retry.', 'Run "playdrop browse" to explore available content.'],
70
+ };
71
+ }
72
+ if (apiError.status === 401 || apiError.status === 403) {
73
+ return {
74
+ problem: `You do not have access to comments for "${ref.ref}".`,
75
+ suggestions: ['Run "playdrop auth login" if this is private content you own.'],
76
+ };
77
+ }
78
+ return {
79
+ problem: `Comment lookup failed with status ${apiError.status}.`,
80
+ suggestions: ['Retry in a moment.'],
81
+ };
82
+ },
83
+ });
84
+ if (!handled) {
85
+ throw error;
86
+ }
87
+ }
88
+ });
89
+ }
90
+ async function addComment(rawRef, options = {}) {
91
+ let ref;
92
+ try {
93
+ ref = (0, refs_1.parseContentRef)(rawRef ?? '');
94
+ }
95
+ catch {
96
+ (0, messages_1.printErrorWithHelp)('A canonical ref is required.', ['Use the format <creator>/<kind>/<name>.', 'Example: playdrop comments add playdrop/app/hangingout --body "Nice work"'], { command: 'comments add' });
97
+ process.exitCode = 1;
98
+ return;
99
+ }
100
+ const body = typeof options.body === 'string' ? options.body.trim() : '';
101
+ if (!body) {
102
+ (0, messages_1.printErrorWithHelp)('Comment body is required.', ['Use --body <text>.'], { command: 'comments add' });
103
+ process.exitCode = 1;
104
+ return;
105
+ }
106
+ const replyTo = parsePositiveInteger(options.replyTo, '--reply-to', 'comments add');
107
+ if (options.replyTo !== undefined && replyTo === null) {
108
+ return;
109
+ }
110
+ await (0, commandContext_1.withEnvironment)('comments add', 'Adding a comment', async ({ client }) => {
111
+ try {
112
+ const response = await client.createContentComment((0, refs_1.contentKindToSavedItemKind)(ref.kind), ref.creator, ref.name, {
113
+ body,
114
+ parentCommentId: replyTo ?? undefined,
115
+ });
116
+ if (options.json) {
117
+ (0, output_1.printJson)({ comment: response.comment });
118
+ return;
119
+ }
120
+ (0, output_1.printSuccess)(`Comment added to ${ref.ref}.`, ['Next: run "playdrop comments browse ' + ref.ref + '" to review the thread.']);
121
+ }
122
+ catch (error) {
123
+ const handled = (0, errors_1.handleCommandFailure)(error, 'comments add', 'Add comment', {
124
+ apiMessage: (apiError) => {
125
+ if (apiError.status === 401 || apiError.status === 403) {
126
+ return {
127
+ problem: 'Adding a comment requires you to be logged in.',
128
+ suggestions: ['Run "playdrop auth login" and retry.'],
129
+ };
130
+ }
131
+ if (apiError.status === 404) {
132
+ return {
133
+ problem: `No item was found for "${ref.ref}".`,
134
+ suggestions: ['Check the ref and retry.'],
135
+ };
136
+ }
137
+ return {
138
+ problem: `Adding a comment failed with status ${apiError.status}.`,
139
+ suggestions: ['Retry in a moment.'],
140
+ };
141
+ },
142
+ });
143
+ if (!handled) {
144
+ throw error;
145
+ }
146
+ }
147
+ });
148
+ }
149
+ async function deleteComment(commentId, options = {}) {
150
+ const numericId = parsePositiveInteger(commentId, 'Comment id', 'comments delete');
151
+ if (numericId === null) {
152
+ return;
153
+ }
154
+ await (0, commandContext_1.withEnvironment)('comments delete', 'Deleting a comment', async ({ client }) => {
155
+ try {
156
+ const response = await client.deleteContentComment(numericId);
157
+ if (options.json) {
158
+ (0, output_1.printJson)({ success: Boolean(response.success), commentId: numericId });
159
+ return;
160
+ }
161
+ (0, output_1.printSuccess)(`Comment #${numericId} deleted.`, ['Next: run "playdrop comments browse <ref>" to confirm the thread state.']);
162
+ }
163
+ catch (error) {
164
+ const handled = (0, errors_1.handleCommandFailure)(error, 'comments delete', 'Delete comment', {
165
+ apiMessage: (apiError) => {
166
+ if (apiError.status === 401 || apiError.status === 403) {
167
+ return {
168
+ problem: 'Deleting a comment requires a valid login with permission to manage it.',
169
+ suggestions: ['Run "playdrop auth login" and retry.'],
170
+ };
171
+ }
172
+ if (apiError.status === 404) {
173
+ return {
174
+ problem: `Comment #${numericId} was not found.`,
175
+ suggestions: ['Check the id and retry.'],
176
+ };
177
+ }
178
+ return {
179
+ problem: `Deleting a comment failed with status ${apiError.status}.`,
180
+ suggestions: ['Retry in a moment.'],
181
+ };
182
+ },
183
+ });
184
+ if (!handled) {
185
+ throw error;
186
+ }
187
+ }
188
+ });
189
+ }