allyhub 0.2.0-next.0 → 0.2.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/LICENSE +241 -0
  2. package/client.d.ts +13 -0
  3. package/dist/commands/add.js +5 -5
  4. package/dist/commands/cloud-tools.js +7 -7
  5. package/dist/help.js +3 -3
  6. package/dist/lent/model.d.ts +2 -0
  7. package/dist/lent/scenery-host-layer.d.ts +2 -0
  8. package/dist/main.js +7 -7
  9. package/dist/works.js +1 -1
  10. package/editor-app/view.html +4 -4
  11. package/editor-web/assets/chevron-left-BWWKfQPt.js +1 -0
  12. package/editor-web/assets/{chevron-up-lWCKw7jZ.js → chevron-up-DdzgESXy.js} +1 -1
  13. package/editor-web/assets/{dist-CmlFikE4.js → dist-CiIDdJZw.js} +1 -1
  14. package/editor-web/assets/{dist-Cf-s-WVX.js → dist-DlzWTZjN.js} +4 -4
  15. package/editor-web/assets/dist-DqFDRJ1S.js +8 -0
  16. package/editor-web/assets/{dist-BcITcjpx.js → dist-ZLZyLIPV.js} +4 -4
  17. package/editor-web/assets/{floating-ui.react-dom-CItxQagi.js → floating-ui.react-dom-BrYYB6DH.js} +1 -1
  18. package/editor-web/assets/index-DRbemuuR.css +2 -0
  19. package/editor-web/assets/index-DYkuF7LX.js +56 -0
  20. package/editor-web/assets/react-DIqYlXoe.js +61 -0
  21. package/editor-web/assets/{undo-2-C7Qog5D_.js → undo-2-oaEQLQ47.js} +1 -1
  22. package/editor-web/index.html +4 -4
  23. package/node_modules/@allyhub-next/audio/LICENSE +241 -0
  24. package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
  25. package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
  26. package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
  27. package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
  28. package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
  29. package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
  30. package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
  31. package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
  32. package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
  33. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
  34. package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
  35. package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
  36. package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
  37. package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
  38. package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
  39. package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
  40. package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
  41. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
  42. package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
  43. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
  44. package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
  45. package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
  46. package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
  47. package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
  48. package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
  49. package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
  50. package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
  51. package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
  52. package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
  53. package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
  54. package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
  55. package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
  56. package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
  57. package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
  58. package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
  59. package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
  60. package/node_modules/@allyhub-next/audio/package.json +1 -1
  61. package/node_modules/@allyhub-next/browser/LICENSE +241 -0
  62. package/node_modules/@allyhub-next/browser/dist/browser.d.ts +24 -0
  63. package/node_modules/@allyhub-next/browser/dist/capture.d.ts +61 -0
  64. package/node_modules/@allyhub-next/browser/dist/cdp.d.ts +51 -0
  65. package/node_modules/@allyhub-next/browser/dist/flags.d.ts +13 -0
  66. package/node_modules/@allyhub-next/browser/dist/frames.d.ts +35 -0
  67. package/node_modules/@allyhub-next/browser/dist/html.d.ts +19 -0
  68. package/node_modules/@allyhub-next/browser/dist/index.d.ts +10 -0
  69. package/node_modules/@allyhub-next/browser/dist/launch.d.ts +35 -0
  70. package/node_modules/@allyhub-next/browser/dist/page.d.ts +67 -0
  71. package/node_modules/@allyhub-next/browser/dist/server.d.ts +26 -0
  72. package/node_modules/@allyhub-next/browser/package.json +1 -1
  73. package/node_modules/@allyhub-next/build/LICENSE +241 -0
  74. package/node_modules/@allyhub-next/build/dist/code.d.ts +26 -0
  75. package/node_modules/@allyhub-next/build/dist/content.d.ts +35 -0
  76. package/node_modules/@allyhub-next/build/dist/data.d.ts +11 -0
  77. package/node_modules/@allyhub-next/build/dist/files.d.ts +2 -0
  78. package/node_modules/@allyhub-next/build/dist/fonts.d.ts +26 -0
  79. package/node_modules/@allyhub-next/build/dist/index.d.ts +20 -0
  80. package/node_modules/@allyhub-next/build/dist/matrix.d.ts +18 -0
  81. package/node_modules/@allyhub-next/build/dist/media.d.ts +10 -0
  82. package/node_modules/@allyhub-next/build/dist/messages.d.ts +48 -0
  83. package/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +33 -0
  84. package/node_modules/@allyhub-next/build/dist/meta.d.ts +24 -0
  85. package/node_modules/@allyhub-next/build/dist/model-info.d.ts +6 -0
  86. package/node_modules/@allyhub-next/build/dist/move-refs.d.ts +16 -0
  87. package/node_modules/@allyhub-next/build/dist/places.d.ts +23 -0
  88. package/node_modules/@allyhub-next/build/dist/plugin.d.ts +31 -0
  89. package/node_modules/@allyhub-next/build/dist/prepare.d.ts +81 -0
  90. package/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
  91. package/node_modules/@allyhub-next/build/dist/scan.d.ts +48 -0
  92. package/node_modules/@allyhub-next/build/dist/scan.js +1 -1
  93. package/node_modules/@allyhub-next/build/dist/takes.d.ts +33 -0
  94. package/node_modules/@allyhub-next/build/dist/types.d.ts +11 -0
  95. package/node_modules/@allyhub-next/build/dist/vite.d.ts +105 -0
  96. package/node_modules/@allyhub-next/build/package.json +1 -1
  97. package/node_modules/@allyhub-next/check/LICENSE +241 -0
  98. package/node_modules/@allyhub-next/check/dist/cache.d.ts +46 -0
  99. package/node_modules/@allyhub-next/check/dist/check.d.ts +142 -0
  100. package/node_modules/@allyhub-next/check/dist/generated.d.ts +22 -0
  101. package/node_modules/@allyhub-next/check/dist/index.d.ts +7 -0
  102. package/node_modules/@allyhub-next/check/dist/plans.d.ts +111 -0
  103. package/node_modules/@allyhub-next/check/dist/result.d.ts +12 -0
  104. package/node_modules/@allyhub-next/check/dist/scenery.d.ts +23 -0
  105. package/node_modules/@allyhub-next/check/package.json +1 -1
  106. package/node_modules/@allyhub-next/cloud/LICENSE +241 -0
  107. package/node_modules/@allyhub-next/cloud/dist/price.js +1 -1
  108. package/node_modules/@allyhub-next/cloud/package.json +1 -1
  109. package/node_modules/@allyhub-next/components/package.json +1 -1
  110. package/node_modules/@allyhub-next/dev-server/LICENSE +241 -0
  111. package/node_modules/@allyhub-next/dev-server/dist/background.d.ts +50 -0
  112. package/node_modules/@allyhub-next/dev-server/dist/card.d.ts +26 -0
  113. package/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +18 -0
  114. package/node_modules/@allyhub-next/dev-server/dist/index.d.ts +11 -0
  115. package/node_modules/@allyhub-next/dev-server/dist/live.d.ts +68 -0
  116. package/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +2 -0
  117. package/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +27 -0
  118. package/node_modules/@allyhub-next/dev-server/dist/project.d.ts +150 -0
  119. package/node_modules/@allyhub-next/dev-server/dist/server.d.ts +47 -0
  120. package/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
  121. package/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +21 -0
  122. package/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +80 -0
  123. package/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +22 -0
  124. package/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +6 -0
  125. package/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +47 -0
  126. package/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +51 -0
  127. package/node_modules/@allyhub-next/dev-server/package.json +1 -1
  128. package/node_modules/@allyhub-next/doc/LICENSE +241 -0
  129. package/node_modules/@allyhub-next/doc/dist/html.d.ts +20 -0
  130. package/node_modules/@allyhub-next/doc/dist/index.d.ts +8 -0
  131. package/node_modules/@allyhub-next/doc/dist/markdown.d.ts +6 -0
  132. package/node_modules/@allyhub-next/doc/dist/model.d.ts +145 -0
  133. package/node_modules/@allyhub-next/doc/dist/parse.d.ts +10 -0
  134. package/node_modules/@allyhub-next/doc/dist/patch.d.ts +8 -0
  135. package/node_modules/@allyhub-next/doc/dist/title.d.ts +23 -0
  136. package/node_modules/@allyhub-next/doc/dist/write.d.ts +10 -0
  137. package/node_modules/@allyhub-next/doc/package.json +1 -1
  138. package/node_modules/@allyhub-next/export/LICENSE +241 -0
  139. package/node_modules/@allyhub-next/export/dist/batch.d.ts +70 -0
  140. package/node_modules/@allyhub-next/export/dist/export.d.ts +107 -0
  141. package/node_modules/@allyhub-next/export/dist/index.d.ts +4 -0
  142. package/node_modules/@allyhub-next/export/dist/names.d.ts +31 -0
  143. package/node_modules/@allyhub-next/export/package.json +1 -1
  144. package/node_modules/@allyhub-next/formats/LICENSE +241 -0
  145. package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
  146. package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
  147. package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
  148. package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
  149. package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
  150. package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
  151. package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
  152. package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
  153. package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
  154. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
  155. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
  156. package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
  157. package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
  158. package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
  159. package/node_modules/@allyhub-next/formats/dist/layout.d.ts +54 -0
  160. package/node_modules/@allyhub-next/formats/dist/layout.js +1 -1
  161. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
  162. package/node_modules/@allyhub-next/formats/package.json +1 -1
  163. package/node_modules/@allyhub-next/measure/LICENSE +241 -0
  164. package/node_modules/@allyhub-next/measure/dist/compare.d.ts +195 -0
  165. package/node_modules/@allyhub-next/measure/dist/contrast.d.ts +14 -0
  166. package/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +90 -0
  167. package/node_modules/@allyhub-next/measure/dist/cuts.d.ts +108 -0
  168. package/node_modules/@allyhub-next/measure/dist/facts.d.ts +60 -0
  169. package/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +40 -0
  170. package/node_modules/@allyhub-next/measure/dist/flat.d.ts +42 -0
  171. package/node_modules/@allyhub-next/measure/dist/index.d.ts +25 -0
  172. package/node_modules/@allyhub-next/measure/dist/loop.d.ts +22 -0
  173. package/node_modules/@allyhub-next/measure/dist/overlay.d.ts +44 -0
  174. package/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +66 -0
  175. package/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +118 -0
  176. package/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +77 -0
  177. package/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +39 -0
  178. package/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +53 -0
  179. package/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +53 -0
  180. package/node_modules/@allyhub-next/measure/dist/reference/served.d.ts +8 -0
  181. package/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +84 -0
  182. package/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +27 -0
  183. package/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +53 -0
  184. package/node_modules/@allyhub-next/measure/dist/seams.d.ts +46 -0
  185. package/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +74 -0
  186. package/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +156 -0
  187. package/node_modules/@allyhub-next/measure/dist/still.d.ts +58 -0
  188. package/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +12 -0
  189. package/node_modules/@allyhub-next/measure/package.json +1 -1
  190. package/node_modules/@allyhub-next/media/LICENSE +241 -0
  191. package/node_modules/@allyhub-next/media/dist/asr/hear.d.ts +41 -0
  192. package/node_modules/@allyhub-next/media/dist/asr/languages.d.ts +9 -0
  193. package/node_modules/@allyhub-next/media/dist/asr/parakeet.d.ts +57 -0
  194. package/node_modules/@allyhub-next/media/dist/asr/protocol.d.ts +20 -0
  195. package/node_modules/@allyhub-next/media/dist/asr/transcribe.d.ts +36 -0
  196. package/node_modules/@allyhub-next/media/dist/asr/windows.d.ts +34 -0
  197. package/node_modules/@allyhub-next/media/dist/asr/words.d.ts +7 -0
  198. package/node_modules/@allyhub-next/media/dist/asr/worker.d.ts +2 -0
  199. package/node_modules/@allyhub-next/media/dist/audio.d.ts +14 -0
  200. package/node_modules/@allyhub-next/media/dist/beats.d.ts +100 -0
  201. package/node_modules/@allyhub-next/media/dist/cache.d.ts +26 -0
  202. package/node_modules/@allyhub-next/media/dist/errors.d.ts +34 -0
  203. package/node_modules/@allyhub-next/media/dist/fetch.d.ts +11 -0
  204. package/node_modules/@allyhub-next/media/dist/grid.d.ts +101 -0
  205. package/node_modules/@allyhub-next/media/dist/index.d.ts +37 -0
  206. package/node_modules/@allyhub-next/media/dist/local.d.ts +36 -0
  207. package/node_modules/@allyhub-next/media/dist/ocr/lines.d.ts +36 -0
  208. package/node_modules/@allyhub-next/media/dist/ocr/tesseract.d.ts +56 -0
  209. package/node_modules/@allyhub-next/media/dist/ocr/text.d.ts +36 -0
  210. package/node_modules/@allyhub-next/media/dist/ocr/worker.d.ts +2 -0
  211. package/node_modules/@allyhub-next/media/dist/picture.d.ts +130 -0
  212. package/node_modules/@allyhub-next/media/dist/probe.d.ts +52 -0
  213. package/node_modules/@allyhub-next/media/dist/progress.d.ts +16 -0
  214. package/node_modules/@allyhub-next/media/dist/run.d.ts +20 -0
  215. package/node_modules/@allyhub-next/media/dist/sheet.d.ts +65 -0
  216. package/node_modules/@allyhub-next/media/dist/shots.d.ts +110 -0
  217. package/node_modules/@allyhub-next/media/dist/sync.d.ts +156 -0
  218. package/node_modules/@allyhub-next/media/dist/tools.d.ts +25 -0
  219. package/node_modules/@allyhub-next/media/dist/video.d.ts +35 -0
  220. package/node_modules/@allyhub-next/media/dist/vision/cache.d.ts +42 -0
  221. package/node_modules/@allyhub-next/media/dist/vision/common.d.ts +32 -0
  222. package/node_modules/@allyhub-next/media/dist/vision/faces.d.ts +18 -0
  223. package/node_modules/@allyhub-next/media/dist/vision/index-media.d.ts +48 -0
  224. package/node_modules/@allyhub-next/media/dist/vision/matte.d.ts +16 -0
  225. package/node_modules/@allyhub-next/media/dist/vision/mattes.d.ts +109 -0
  226. package/node_modules/@allyhub-next/media/dist/vision/models.d.ts +16 -0
  227. package/node_modules/@allyhub-next/media/dist/vision/probe.d.ts +39 -0
  228. package/node_modules/@allyhub-next/media/dist/vision/protocol.d.ts +51 -0
  229. package/node_modules/@allyhub-next/media/dist/vision/run.d.ts +12 -0
  230. package/node_modules/@allyhub-next/media/dist/vision/runtime.d.ts +16 -0
  231. package/node_modules/@allyhub-next/media/dist/vision/status.d.ts +24 -0
  232. package/node_modules/@allyhub-next/media/dist/vision/track.d.ts +54 -0
  233. package/node_modules/@allyhub-next/media/dist/vision/types.d.ts +2 -0
  234. package/node_modules/@allyhub-next/media/dist/vision/worker.d.ts +2 -0
  235. package/node_modules/@allyhub-next/media/dist/vision/yunet.d.ts +35 -0
  236. package/node_modules/@allyhub-next/media/dist/voice-shape.d.ts +51 -0
  237. package/node_modules/@allyhub-next/media/dist/worker-process.d.ts +8 -0
  238. package/node_modules/@allyhub-next/media/package.json +1 -1
  239. package/node_modules/@allyhub-next/model/dist/apply.d.ts +15 -0
  240. package/node_modules/@allyhub-next/model/dist/authoring.d.ts +48 -0
  241. package/node_modules/@allyhub-next/model/dist/bevel-attributes.d.ts +19 -0
  242. package/node_modules/@allyhub-next/model/dist/bevel-collapse.d.ts +12 -0
  243. package/node_modules/@allyhub-next/model/dist/bevel-corner-plan.d.ts +24 -0
  244. package/node_modules/@allyhub-next/model/dist/bevel-deform.d.ts +5 -0
  245. package/node_modules/@allyhub-next/model/dist/bevel-fans.d.ts +12 -0
  246. package/node_modules/@allyhub-next/model/dist/bevel-junction.d.ts +16 -0
  247. package/node_modules/@allyhub-next/model/dist/bevel-marks.d.ts +14 -0
  248. package/node_modules/@allyhub-next/model/dist/bevel-metric.d.ts +4 -0
  249. package/node_modules/@allyhub-next/model/dist/bevel-mixed.d.ts +12 -0
  250. package/node_modules/@allyhub-next/model/dist/bevel-offsets.d.ts +22 -0
  251. package/node_modules/@allyhub-next/model/dist/bevel-patch.d.ts +45 -0
  252. package/node_modules/@allyhub-next/model/dist/bevel-profile.d.ts +13 -0
  253. package/node_modules/@allyhub-next/model/dist/bevel-projection.d.ts +10 -0
  254. package/node_modules/@allyhub-next/model/dist/bevel-reflex.d.ts +10 -0
  255. package/node_modules/@allyhub-next/model/dist/bevel-square-out.d.ts +18 -0
  256. package/node_modules/@allyhub-next/model/dist/bevel-strips.d.ts +8 -0
  257. package/node_modules/@allyhub-next/model/dist/bevel-topology.d.ts +79 -0
  258. package/node_modules/@allyhub-next/model/dist/bevel.d.ts +23 -0
  259. package/node_modules/@allyhub-next/model/dist/bmesh-bevel.d.ts +40 -0
  260. package/node_modules/@allyhub-next/model/dist/bmesh-bridge.d.ts +21 -0
  261. package/node_modules/@allyhub-next/model/dist/bmesh-cycles.d.ts +52 -0
  262. package/node_modules/@allyhub-next/model/dist/bmesh-data.d.ts +227 -0
  263. package/node_modules/@allyhub-next/model/dist/bmesh-dissolve.d.ts +30 -0
  264. package/node_modules/@allyhub-next/model/dist/bmesh-edit.d.ts +54 -0
  265. package/node_modules/@allyhub-next/model/dist/bmesh-inset.d.ts +39 -0
  266. package/node_modules/@allyhub-next/model/dist/bmesh-primitives.d.ts +41 -0
  267. package/node_modules/@allyhub-next/model/dist/bmesh-smooth.d.ts +22 -0
  268. package/node_modules/@allyhub-next/model/dist/bmesh-spin.d.ts +25 -0
  269. package/node_modules/@allyhub-next/model/dist/bmesh-subdivide.d.ts +89 -0
  270. package/node_modules/@allyhub-next/model/dist/bmesh.d.ts +72 -0
  271. package/node_modules/@allyhub-next/model/dist/boolean.d.ts +20 -0
  272. package/node_modules/@allyhub-next/model/dist/build-cache.d.ts +42 -0
  273. package/node_modules/@allyhub-next/model/dist/build-job.d.ts +30 -0
  274. package/node_modules/@allyhub-next/model/dist/build-worker.d.ts +2 -0
  275. package/node_modules/@allyhub-next/model/dist/build.d.ts +57 -0
  276. package/node_modules/@allyhub-next/model/dist/cancel.d.ts +8 -0
  277. package/node_modules/@allyhub-next/model/dist/capabilities.d.ts +22 -0
  278. package/node_modules/@allyhub-next/model/dist/curve-eval.d.ts +66 -0
  279. package/node_modules/@allyhub-next/model/dist/curve-math.d.ts +21 -0
  280. package/node_modules/@allyhub-next/model/dist/curve-mesh.d.ts +30 -0
  281. package/node_modules/@allyhub-next/model/dist/curve.d.ts +149 -0
  282. package/node_modules/@allyhub-next/model/dist/data.d.ts +549 -0
  283. package/node_modules/@allyhub-next/model/dist/evaluate.d.ts +141 -0
  284. package/node_modules/@allyhub-next/model/dist/evaluation-cache.d.ts +55 -0
  285. package/node_modules/@allyhub-next/model/dist/evaluation-guard.d.ts +11 -0
  286. package/node_modules/@allyhub-next/model/dist/evaluation-plan.d.ts +38 -0
  287. package/node_modules/@allyhub-next/model/dist/export.d.ts +12 -0
  288. package/node_modules/@allyhub-next/model/dist/field.d.ts +59 -0
  289. package/node_modules/@allyhub-next/model/dist/generated/opensubdiv.d.mts +25 -0
  290. package/node_modules/@allyhub-next/model/dist/geometry.d.ts +75 -0
  291. package/node_modules/@allyhub-next/model/dist/image.d.ts +77 -0
  292. package/node_modules/@allyhub-next/model/dist/index.d.ts +19 -0
  293. package/node_modules/@allyhub-next/model/dist/instances.d.ts +18 -0
  294. package/node_modules/@allyhub-next/model/dist/material-eval.d.ts +12 -0
  295. package/node_modules/@allyhub-next/model/dist/material-nodes.d.ts +279 -0
  296. package/node_modules/@allyhub-next/model/dist/mesh-attributes.d.ts +27 -0
  297. package/node_modules/@allyhub-next/model/dist/mesh-queries.d.ts +34 -0
  298. package/node_modules/@allyhub-next/model/dist/names.d.ts +9 -0
  299. package/node_modules/@allyhub-next/model/dist/patterns.d.ts +21 -0
  300. package/node_modules/@allyhub-next/model/dist/png.d.ts +12 -0
  301. package/node_modules/@allyhub-next/model/dist/polygon-triangulation.d.ts +4 -0
  302. package/node_modules/@allyhub-next/model/dist/program-location.d.ts +7 -0
  303. package/node_modules/@allyhub-next/model/dist/report.d.ts +70 -0
  304. package/node_modules/@allyhub-next/model/dist/screw.d.ts +38 -0
  305. package/node_modules/@allyhub-next/model/dist/solidify.d.ts +11 -0
  306. package/node_modules/@allyhub-next/model/dist/subdivision.d.ts +21 -0
  307. package/node_modules/@allyhub-next/model/dist/three.d.ts +43 -0
  308. package/node_modules/@allyhub-next/model/dist/uv-project.d.ts +62 -0
  309. package/node_modules/@allyhub-next/model/dist/uv-unwrap.d.ts +40 -0
  310. package/node_modules/@allyhub-next/model/dist/uv.d.ts +16 -0
  311. package/node_modules/@allyhub-next/model/dist/vertex-groups.d.ts +27 -0
  312. package/node_modules/@allyhub-next/model/dist/weighted-normal.d.ts +28 -0
  313. package/node_modules/@allyhub-next/model/package.json +1 -1
  314. package/node_modules/@allyhub-next/project/LICENSE +241 -0
  315. package/node_modules/@allyhub-next/project/dist/console.d.ts +34 -0
  316. package/node_modules/@allyhub-next/project/dist/digest.d.ts +11 -0
  317. package/node_modules/@allyhub-next/project/dist/index.d.ts +11 -0
  318. package/node_modules/@allyhub-next/project/dist/ledger.d.ts +17 -0
  319. package/node_modules/@allyhub-next/project/dist/media-index.d.ts +27 -0
  320. package/node_modules/@allyhub-next/project/dist/page.d.ts +124 -0
  321. package/node_modules/@allyhub-next/project/dist/says.d.ts +15 -0
  322. package/node_modules/@allyhub-next/project/dist/scenery.d.ts +35 -0
  323. package/node_modules/@allyhub-next/project/dist/session.d.ts +37 -0
  324. package/node_modules/@allyhub-next/project/dist/stretch.d.ts +38 -0
  325. package/node_modules/@allyhub-next/project/dist/version.d.ts +114 -0
  326. package/node_modules/@allyhub-next/project/package.json +1 -1
  327. package/node_modules/@allyhub-next/protocol/LICENSE +241 -0
  328. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
  329. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
  330. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
  331. package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +293 -0
  332. package/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  333. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
  334. package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
  335. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
  336. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
  337. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +167 -0
  338. package/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  339. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
  340. package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
  341. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
  342. package/node_modules/@allyhub-next/protocol/package.json +1 -1
  343. package/node_modules/@allyhub-next/registry/LICENSE +241 -0
  344. package/node_modules/@allyhub-next/registry/dist/index.js +1 -1
  345. package/node_modules/@allyhub-next/registry/dist/registry.js +1 -1
  346. package/node_modules/@allyhub-next/registry/package.json +1 -1
  347. package/node_modules/@allyhub-next/render/LICENSE +241 -0
  348. package/node_modules/@allyhub-next/render/dist/cap.d.ts +41 -0
  349. package/node_modules/@allyhub-next/render/dist/capture.d.ts +78 -0
  350. package/node_modules/@allyhub-next/render/dist/clip.d.ts +27 -0
  351. package/node_modules/@allyhub-next/render/dist/composite.d.ts +106 -0
  352. package/node_modules/@allyhub-next/render/dist/delivery.d.ts +18 -0
  353. package/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +3 -0
  354. package/node_modules/@allyhub-next/render/dist/doc/index.d.ts +3 -0
  355. package/node_modules/@allyhub-next/render/dist/doc/print.d.ts +25 -0
  356. package/node_modules/@allyhub-next/render/dist/encode.d.ts +111 -0
  357. package/node_modules/@allyhub-next/render/dist/errors.d.ts +15 -0
  358. package/node_modules/@allyhub-next/render/dist/exports.d.ts +51 -0
  359. package/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +75 -0
  360. package/node_modules/@allyhub-next/render/dist/footage.d.ts +169 -0
  361. package/node_modules/@allyhub-next/render/dist/image.d.ts +16 -0
  362. package/node_modules/@allyhub-next/render/dist/index.d.ts +27 -0
  363. package/node_modules/@allyhub-next/render/dist/junction.d.ts +70 -0
  364. package/node_modules/@allyhub-next/render/dist/look.d.ts +21 -0
  365. package/node_modules/@allyhub-next/render/dist/page.d.ts +176 -0
  366. package/node_modules/@allyhub-next/render/dist/parts.d.ts +140 -0
  367. package/node_modules/@allyhub-next/render/dist/png.d.ts +37 -0
  368. package/node_modules/@allyhub-next/render/dist/pool.d.ts +54 -0
  369. package/node_modules/@allyhub-next/render/dist/post-probe.d.ts +27 -0
  370. package/node_modules/@allyhub-next/render/dist/post.d.ts +27 -0
  371. package/node_modules/@allyhub-next/render/dist/render.d.ts +149 -0
  372. package/node_modules/@allyhub-next/render/dist/segments.d.ts +40 -0
  373. package/node_modules/@allyhub-next/render/dist/served.d.ts +27 -0
  374. package/node_modules/@allyhub-next/render/dist/sound.d.ts +24 -0
  375. package/node_modules/@allyhub-next/render/dist/stills.d.ts +41 -0
  376. package/node_modules/@allyhub-next/render/dist/tools.d.ts +25 -0
  377. package/node_modules/@allyhub-next/render/dist/webp.d.ts +17 -0
  378. package/node_modules/@allyhub-next/render/package.json +1 -1
  379. package/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +201 -0
  380. package/node_modules/@allyhub-next/runtime/dist/captions.d.ts +24 -0
  381. package/node_modules/@allyhub-next/runtime/dist/clock.d.ts +32 -0
  382. package/node_modules/@allyhub-next/runtime/dist/compose.d.ts +149 -0
  383. package/node_modules/@allyhub-next/runtime/dist/console.d.ts +21 -0
  384. package/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +13 -0
  385. package/node_modules/@allyhub-next/runtime/dist/embed.d.ts +50 -0
  386. package/node_modules/@allyhub-next/runtime/dist/env.d.ts +101 -0
  387. package/node_modules/@allyhub-next/runtime/dist/errors.d.ts +21 -0
  388. package/node_modules/@allyhub-next/runtime/dist/facade.d.ts +42 -0
  389. package/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +110 -0
  390. package/node_modules/@allyhub-next/runtime/dist/footage.d.ts +54 -0
  391. package/node_modules/@allyhub-next/runtime/dist/frame.d.ts +61 -0
  392. package/node_modules/@allyhub-next/runtime/dist/guards.d.ts +32 -0
  393. package/node_modules/@allyhub-next/runtime/dist/host.d.ts +22 -0
  394. package/node_modules/@allyhub-next/runtime/dist/index.d.ts +12 -0
  395. package/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +112 -0
  396. package/node_modules/@allyhub-next/runtime/dist/measure.d.ts +40 -0
  397. package/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +42 -0
  398. package/node_modules/@allyhub-next/runtime/dist/music.d.ts +29 -0
  399. package/node_modules/@allyhub-next/runtime/dist/output.d.ts +5 -0
  400. package/node_modules/@allyhub-next/runtime/dist/page.js +1 -1
  401. package/node_modules/@allyhub-next/runtime/dist/paged.d.ts +16 -0
  402. package/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +39 -0
  403. package/node_modules/@allyhub-next/runtime/dist/piece.d.ts +38 -0
  404. package/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +41 -0
  405. package/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +57 -0
  406. package/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +78 -0
  407. package/node_modules/@allyhub-next/runtime/dist/reads.d.ts +130 -0
  408. package/node_modules/@allyhub-next/runtime/dist/sound.d.ts +22 -0
  409. package/node_modules/@allyhub-next/runtime/dist/speech.d.ts +107 -0
  410. package/node_modules/@allyhub-next/runtime/dist/stage.d.ts +34 -0
  411. package/node_modules/@allyhub-next/runtime/dist/styles.d.ts +35 -0
  412. package/node_modules/@allyhub-next/runtime/dist/takes.d.ts +72 -0
  413. package/node_modules/@allyhub-next/runtime/dist/titles.d.ts +10 -0
  414. package/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +26 -0
  415. package/node_modules/@allyhub-next/runtime/package.json +1 -1
  416. package/node_modules/@allyhub-next/runtimes/LICENSE +241 -0
  417. package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
  418. package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
  419. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
  420. package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
  421. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
  422. package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
  423. package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
  424. package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
  425. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  426. package/node_modules/@allyhub-next/runtimes/package.json +1 -1
  427. package/node_modules/@allyhub-next/scenery/LICENSE +241 -0
  428. package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
  429. package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
  430. package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
  431. package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
  432. package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
  433. package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
  434. package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
  435. package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
  436. package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
  437. package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
  438. package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
  439. package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
  440. package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
  441. package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
  442. package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
  443. package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
  444. package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
  445. package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
  446. package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
  447. package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
  448. package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
  449. package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
  450. package/node_modules/@allyhub-next/scenery/package.json +1 -1
  451. package/node_modules/@allyhub-next/scenery-host/LICENSE +241 -0
  452. package/node_modules/@allyhub-next/scenery-host/dist/adapter.d.ts +46 -0
  453. package/node_modules/@allyhub-next/scenery-host/dist/allyhub.d.ts +21 -0
  454. package/node_modules/@allyhub-next/scenery-host/dist/allyhub.js +1 -1
  455. package/node_modules/@allyhub-next/scenery-host/dist/bake/apply.d.ts +59 -0
  456. package/node_modules/@allyhub-next/scenery-host/dist/bake/digest.d.ts +14 -0
  457. package/node_modules/@allyhub-next/scenery-host/dist/bake/envmap.d.ts +21 -0
  458. package/node_modules/@allyhub-next/scenery-host/dist/bake/format.d.ts +63 -0
  459. package/node_modules/@allyhub-next/scenery-host/dist/bake/run.d.ts +63 -0
  460. package/node_modules/@allyhub-next/scenery-host/dist/bake/run.js +15 -13
  461. package/node_modules/@allyhub-next/scenery-host/dist/budget.d.ts +40 -0
  462. package/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +68 -0
  463. package/node_modules/@allyhub-next/scenery-host/dist/clock.d.ts +31 -0
  464. package/node_modules/@allyhub-next/scenery-host/dist/commands.d.ts +54 -0
  465. package/node_modules/@allyhub-next/scenery-host/dist/draw2d.d.ts +47 -0
  466. package/node_modules/@allyhub-next/scenery-host/dist/errors.d.ts +33 -0
  467. package/node_modules/@allyhub-next/scenery-host/dist/fidelity.d.ts +72 -0
  468. package/node_modules/@allyhub-next/scenery-host/dist/focus-pass.d.ts +51 -0
  469. package/node_modules/@allyhub-next/scenery-host/dist/glass.d.ts +39 -0
  470. package/node_modules/@allyhub-next/scenery-host/dist/idbuffer.d.ts +35 -0
  471. package/node_modules/@allyhub-next/scenery-host/dist/index.d.ts +24 -0
  472. package/node_modules/@allyhub-next/scenery-host/dist/inventory.d.ts +18 -0
  473. package/node_modules/@allyhub-next/scenery-host/dist/layer/fidelity.d.ts +70 -0
  474. package/node_modules/@allyhub-next/scenery-host/dist/layer/index.d.ts +51 -0
  475. package/node_modules/@allyhub-next/scenery-host/dist/layer/moire.d.ts +6 -0
  476. package/node_modules/@allyhub-next/scenery-host/dist/layer/queries.d.ts +106 -0
  477. package/node_modules/@allyhub-next/scenery-host/dist/layer/screens.d.ts +58 -0
  478. package/node_modules/@allyhub-next/scenery-host/dist/layer/state.d.ts +110 -0
  479. package/node_modules/@allyhub-next/scenery-host/dist/layer/types.d.ts +239 -0
  480. package/node_modules/@allyhub-next/scenery-host/dist/measure/contacts.d.ts +45 -0
  481. package/node_modules/@allyhub-next/scenery-host/dist/measure/facts.d.ts +86 -0
  482. package/node_modules/@allyhub-next/scenery-host/dist/measure/health.d.ts +10 -0
  483. package/node_modules/@allyhub-next/scenery-host/dist/measure/index.d.ts +110 -0
  484. package/node_modules/@allyhub-next/scenery-host/dist/measure/relations.d.ts +17 -0
  485. package/node_modules/@allyhub-next/scenery-host/dist/measure/screen-readback.d.ts +27 -0
  486. package/node_modules/@allyhub-next/scenery-host/dist/measure/solid.d.ts +32 -0
  487. package/node_modules/@allyhub-next/scenery-host/dist/measure/support.d.ts +11 -0
  488. package/node_modules/@allyhub-next/scenery-host/dist/module.d.ts +5 -0
  489. package/node_modules/@allyhub-next/scenery-host/dist/page/bake.d.ts +53 -0
  490. package/node_modules/@allyhub-next/scenery-host/dist/page/draw.d.ts +42 -0
  491. package/node_modules/@allyhub-next/scenery-host/dist/page/files.d.ts +45 -0
  492. package/node_modules/@allyhub-next/scenery-host/dist/page/page.d.ts +127 -0
  493. package/node_modules/@allyhub-next/scenery-host/dist/page/props.d.ts +23 -0
  494. package/node_modules/@allyhub-next/scenery-host/dist/page/screens.d.ts +147 -0
  495. package/node_modules/@allyhub-next/scenery-host/dist/page/shaders.d.ts +41 -0
  496. package/node_modules/@allyhub-next/scenery-host/dist/queries/inventory.d.ts +5 -0
  497. package/node_modules/@allyhub-next/scenery-host/dist/queries/map.d.ts +5 -0
  498. package/node_modules/@allyhub-next/scenery-host/dist/queries/view.d.ts +10 -0
  499. package/node_modules/@allyhub-next/scenery-host/dist/scene.d.ts +35 -0
  500. package/node_modules/@allyhub-next/scenery-host/dist/screen-dom.d.ts +24 -0
  501. package/node_modules/@allyhub-next/scenery-host/dist/screen-light.d.ts +58 -0
  502. package/node_modules/@allyhub-next/scenery-host/dist/screen-picture.d.ts +123 -0
  503. package/node_modules/@allyhub-next/scenery-host/dist/signature.d.ts +4 -0
  504. package/node_modules/@allyhub-next/scenery-host/dist/steady.d.ts +4 -0
  505. package/node_modules/@allyhub-next/scenery-host/dist/vec.d.ts +19 -0
  506. package/node_modules/@allyhub-next/scenery-host/dist/viewer.d.ts +103 -0
  507. package/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  508. package/node_modules/@allyhub-next/sheet/LICENSE +241 -0
  509. package/node_modules/@allyhub-next/sheet/dist/check.d.ts +26 -0
  510. package/node_modules/@allyhub-next/sheet/dist/csv.d.ts +62 -0
  511. package/node_modules/@allyhub-next/sheet/dist/export.d.ts +15 -0
  512. package/node_modules/@allyhub-next/sheet/dist/import.d.ts +22 -0
  513. package/node_modules/@allyhub-next/sheet/dist/index.d.ts +13 -0
  514. package/node_modules/@allyhub-next/sheet/dist/model.d.ts +133 -0
  515. package/node_modules/@allyhub-next/sheet/dist/patch.d.ts +12 -0
  516. package/node_modules/@allyhub-next/sheet/dist/profile.d.ts +32 -0
  517. package/node_modules/@allyhub-next/sheet/dist/sheet.d.ts +17 -0
  518. package/node_modules/@allyhub-next/sheet/dist/spec-write.d.ts +27 -0
  519. package/node_modules/@allyhub-next/sheet/dist/spec.d.ts +29 -0
  520. package/node_modules/@allyhub-next/sheet/dist/values.d.ts +55 -0
  521. package/node_modules/@allyhub-next/sheet/dist/view.d.ts +26 -0
  522. package/node_modules/@allyhub-next/sheet/dist/xlsx.d.ts +26 -0
  523. package/node_modules/@allyhub-next/sheet/package.json +1 -1
  524. package/node_modules/@allyhub-next/site/LICENSE +241 -0
  525. package/node_modules/@allyhub-next/site/package.json +1 -1
  526. package/node_modules/@allyhub-next/stage/LICENSE +241 -0
  527. package/node_modules/@allyhub-next/stage/dist/bakes.d.ts +42 -0
  528. package/node_modules/@allyhub-next/stage/dist/graphics.d.ts +7 -0
  529. package/node_modules/@allyhub-next/stage/dist/identity.d.ts +2 -0
  530. package/node_modules/@allyhub-next/stage/dist/index.d.ts +9 -0
  531. package/node_modules/@allyhub-next/stage/dist/page.d.ts +78 -0
  532. package/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +69 -0
  533. package/node_modules/@allyhub-next/stage/dist/scenery-page.js +4 -4
  534. package/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +49 -0
  535. package/node_modules/@allyhub-next/stage/dist/scenery.d.ts +8 -0
  536. package/node_modules/@allyhub-next/stage/dist/server.d.ts +21 -0
  537. package/node_modules/@allyhub-next/stage/package.json +1 -1
  538. package/node_modules/@allyhub-next/video-core/LICENSE +241 -0
  539. package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
  540. package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
  541. package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
  542. package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
  543. package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
  544. package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
  545. package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
  546. package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
  547. package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
  548. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
  549. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
  550. package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
  551. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
  552. package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
  553. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
  554. package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
  555. package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
  556. package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
  557. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
  558. package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
  559. package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
  560. package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
  561. package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
  562. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
  563. package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
  564. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
  565. package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
  566. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
  567. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
  568. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
  569. package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
  570. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
  571. package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
  572. package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
  573. package/node_modules/@allyhub-next/video-core/dist/speech.js +1 -1
  574. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
  575. package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
  576. package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
  577. package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
  578. package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
  579. package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
  580. package/node_modules/@allyhub-next/video-core/package.json +1 -1
  581. package/package.json +37 -27
  582. package/editor-web/assets/chevron-left-BmxSmft8.js +0 -1
  583. package/editor-web/assets/dist-CjQKFMhS.js +0 -8
  584. package/editor-web/assets/index-BAvCs2l0.css +0 -2
  585. package/editor-web/assets/index-g9RQlyDb.js +0 -56
  586. package/editor-web/assets/react-ZggY1Y07.js +0 -61
  587. package/node_modules/@allyhub-next/formats/schemas/comments.schema.json +0 -152
  588. package/node_modules/@allyhub-next/formats/schemas/config.schema.json +0 -43
  589. package/node_modules/@allyhub-next/formats/schemas/edits.schema.json +0 -112
  590. package/node_modules/@allyhub-next/formats/schemas/elements.schema.json +0 -33
  591. package/node_modules/@allyhub-next/formats/schemas/gen.schema.json +0 -97
  592. package/node_modules/@allyhub-next/formats/schemas/interpretation.schema.json +0 -125
  593. package/node_modules/@allyhub-next/formats/schemas/items.json +0 -75
  594. package/node_modules/@allyhub-next/formats/schemas/messages.schema.json +0 -11
  595. package/node_modules/@allyhub-next/formats/schemas/script.schema.json +0 -162
  596. package/node_modules/@allyhub-next/formats/schemas/sheet.schema.json +0 -395
  597. package/node_modules/@allyhub-next/formats/schemas/words.schema.json +0 -63
package/LICENSE ADDED
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
package/client.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ // Types of the packages AllyHub's build lends a project by name
2
+ // (packages/video/sdk/docs/scenery.md, modeling.md), from this install. Add
3
+ // "allyhub/client" to `types` in tsconfig.json, beside "@allyhub/sdk/client".
4
+ // Each points at `allyhub/lent/*`, the bundled package's own declarations,
5
+ // written into the npm package when it is packed
6
+ // (apps/create-allyhub/scripts/npm-packages.ts).
7
+
8
+ declare module "@allyhub-next/scenery-host/layer" {
9
+ export * from "allyhub/lent/scenery-host/layer";
10
+ }
11
+ declare module "@allyhub-next/model" {
12
+ export * from "allyhub/lent/model";
13
+ }
@@ -1,6 +1,6 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as j}from"node:fs/promises";import{join as w,posix as L,relative as O}from"node:path";import{fileURLToPath as T}from"node:url";import{z as l}from"zod";import{modelInfo as k}from"@allyhub-next/build";import{COMPONENTS_DIR as S}from"@allyhub-next/formats";import{EXIT as u}from"@allyhub-next/protocol";import{ASSET_DEFAULTS as C,ASSET_TYPES as _,PolyHaven as N,PolyHavenError as z,RegistryError as F,applyAdd as D,folderRegistry as x,planAdd as U,searchIndex as M}from"@allyhub-next/registry";import{cacheHome as Y}from"@allyhub-next/runtimes";import{CommandError as A,defineCommand as H}from"../command.js";import{projectRoot as V}from"../project.js";import{dir as B}from"../fields.js";const W=JSON.parse(await j(new URL("../../package.json",import.meta.url),"utf8")).version,P=T(new URL(".",import.meta.resolve("@allyhub-next/components/registry.json"))),b=Object.keys(_),E=20,q=e=>e.replace(/\.(?:ts|js)$/u,"").replaceAll(/[A-Z]/gu,t=>`-${t.toLowerCase()}`).replace(/^-/u,"");function I(e){return e instanceof F?new A(e.code,e.message,{exit:e.code==="conflict"?u.conflict:e.code==="no-item"?u.notFound:u.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof z?new A(e.code,e.message,{exit:e.code==="network"?u.platform:e.code==="not-found"?u.notFound:e.code==="bad-choice"?u.usage:u.failed,...e.hint===void 0?{}:{hint:e.hint}}):e}const R=e=>new N({userAgent:`AllyHub/${W} (+https://allyhub.com)`,cacheDir:w(Y(e.env),"polyhaven"),...e.env.ALLYHUB_POLYHAVEN_API?{api:e.env.ALLYHUB_POLYHAVEN_API}:{}}),g=e=>`${e.toFixed(3)} m`;function J(e){const t=[e.type,e.category,e.size?`${g(e.size.width)} wide, ${g(e.size.depth)} deep, ${g(e.size.height)} tall`:void 0,e.covers?`one tile covers ${e.covers.map(g).join(" × ")}`:void 0,e.polycount!==void 0?`${e.polycount.toLocaleString("en")} polygons`:void 0,e.maxResolution?`up to ${String(e.maxResolution[0])} px`:void 0,e.authors.length>0?`by ${e.authors.join(", ")}`:void 0].filter(n=>n!==void 0);return` ${e.id}: ${e.name} (${t.join("; ")})
3
- found in ${e.matchedIn.join(", ")||"everything"}; tags ${e.tags.join(", ")}`}async function K(e,t){const n=[`${t.name} from Poly Haven (CC0, by ${t.source.authors.join(", ")||"its authors"}): ${String(t.files.length)} files in ${t.dir}/, ${t.fetched>0?`${String(t.fetched)} fetched`:"all already there"}. Records: ${t.records.join(", ")}.`];if(t.type==="model"){const a=t.main[0]??"",d=await k(e,a,await j(w(e,a))),i=d.bounds;return n.push(i?`Measured: ${i.size.map(c=>c.toFixed(3)).join(" × ")} m along x, y (up), z; from ${i.min.map(c=>c.toFixed(3)).join(", ")} to ${i.max.map(c=>c.toFixed(3)).join(", ")}.`:`Not measured: ${d.contentsMissing??"no contents"}.`,...d.missing.length>0?[`Missing: ${d.missing.join(", ")}.`]:[],`In a scenery: const m = await w.load("${a}");`),{lines:n,model:d}}if(t.type==="hdri")return n.push(`In a scenery: await w.environment("${t.main[0]??""}", { background: true });`),{lines:n};const o=t.covers;return n.push(o&&o.length>=2?`One tile covers ${g(o[0]??0)} × ${g(o[1]??0)} (Poly Haven's dimensions): a surface's repeat is its size over that.`:"Poly Haven gives no size for one tile.",...t.main.map((a,d)=>{const i=t.maps?.[d]??"";return` ${i}: await w.texture("${a}"${i==="diffuse"?"":', { colorSpace: "linear" }'})`})),{lines:n}}export const add=H({name:"add",summary:"Adds what the registry has to the project: a starter component, or a CC0 model, HDRI or texture from Poly Haven; alone it lists the components",input:l.strictObject({name:l.array(l.string()).optional().describe("What to add: a starter component (caption-line, or captionLine), or a Poly Haven asset's id (as allyhub add search prints it)"),to:l.string().optional().describe(`The folder the files go in, from the project (default ${S} for a component; for an asset, its kind's folder under assets/media/ and its id)`),force:l.boolean().default(!1).describe("Replace a component's copy the project changed (its changes are lost)"),res:l.string().optional().describe(`An asset's resolution, of its textures or of the HDRI (default ${C.resolution})`),dir:B}),positional:["name"],output:l.looseObject({}),examples:["allyhub add","allyhub add caption-line","allyhub add metal_office_desk --res 2k"]},async(e,t)=>{const n=x(P);try{const o=await n.index();if(!e.name||e.name.length===0){const h=Math.max(...o.items.map(s=>s.name.length));return{value:{components:o.items},text:["Starter components (allyhub add <name> copies one into components/; allyhub add search <words> finds Poly Haven's models, HDRIs and textures too):",...o.items.map(s=>` ${s.name.padEnd(h)} ${s.description}`)].join(`
4
- `)}}const a=await V(t.cwd,e.dir),d=new Set(o.items.map(h=>h.name)),i=e.name.map(q),c=i.filter(h=>d.has(h)),p=e.name.filter((h,s)=>!d.has(i[s]??"")),m=[],$={};if(c.length>0){const h=e.to??S,s=await U(n,c,{root:a,dir:h,force:e.force});await D(a,s);const v=r=>r==="up to date"?"Up to date":r==="added"?"Added":"Replaced";m.push(...s.files.map(r=>`${v(r.status)} ${r.path}`));const f=s.items.find(r=>r.name===c[0]),y=f?.files[0]?.target.replaceAll("{dir}",h);if(f&&y){const r=O(w(a,"name"),w(a,y)).split("\\").join("/").replace(/\.ts$/u,".js");m.push(`Import it from an item's entry file (<name>/video.ts): import { ${f.title} } from "${r.startsWith(".")?r:`./${r}`}"; one "../" more for each folder the item is deeper.`,"The file is the project's: change it as you like. allyhub add <name> --force puts the registry's back.")}s.missing.length>0&&m.push(`It needs packages the project does not declare: ${s.missing.join(", ")}.`),$.components=s.files.map(r=>({item:r.item,path:r.path,status:r.status})),$.missing=s.missing}if(p.length>0){const h=R(t),s=[];for(const v of p){const f=await h.add(v,{root:a,...e.to===void 0||c.length>0?{}:{to:L.normalize(e.to)},...e.res===void 0?{}:{resolution:e.res}}),y=await K(a,f);m.length>0&&m.push(""),m.push(...y.lines),s.push({...f,...y.model===void 0?{}:{model:y.model}})}$.assets=s}return{value:$,text:m.join(`
5
- `)}}catch(o){throw I(o)}}),addSearch=H({name:"add search",summary:"Finds the starter components and Poly Haven's CC0 models, HDRIs and textures whose names, tags, categories or descriptions hold every word, each with where its words were found",input:l.strictObject({words:l.array(l.string()).min(1).describe("The words to find (a word may start one of theirs)"),type:l.array(l.enum(["component",...b])).optional().describe("Only these kinds (default all)"),all:l.boolean().default(!1).describe(`Every match, not only the first ${String(E)} Poly Haven assets`)}),positional:["words"],output:l.looseObject({}),examples:['allyhub add search "office desk" --type model',"allyhub add search caption"]},async(e,t)=>{const n=e.words.join(" ").trim();try{const o=e.type??["component",...b],a=o.includes("component")?M(await x(P).index(),n):[],d=b.filter(m=>o.includes(m)),{found:i,total:c}=d.length>0?await R(t).search(n,d):{found:[],total:0},p=e.all?i:i.slice(0,E);return{value:{query:n,components:a,assets:{total:c,matches:i.length,found:p}},text:[...o.includes("component")?[`Starter components: ${String(a.length)} hold "${n}".`,...a.map(m=>` ${m.name} (${m.title}): ${m.description}`)]:[],...d.length>0?[`From Poly Haven (CC0): ${String(i.length)} of ${String(c)} assets hold "${n}"${p.length<i.length?`; the first ${String(p.length)} (--all for every one)`:""}.`,...p.map(J)]:[],"","Add one: allyhub add <name or id>"].join(`
6
- `)}}catch(o){throw I(o)}});
2
+ import{createHash as z}from"node:crypto";import{mkdir as M,readFile as x,writeFile as Y}from"node:fs/promises";import{join as S,posix as B,relative as J}from"node:path";import{fileURLToPath as V}from"node:url";import{z as u}from"zod";import{modelInfo as W}from"@allyhub-next/build";import{COMPONENTS_DIR as E}from"@allyhub-next/formats";import{EXIT as b,RegistryIndexSchema as X}from"@allyhub-next/protocol";import{ASSET_DEFAULTS as q,ASSET_TYPES as G,PolyHaven as K,PolyHavenError as Z,RegistryError as Q,applyAdd as R,fetchBakes as ee,folderRegistry as I,planAdd as P,registryAt as te,searchIndex as L}from"@allyhub-next/registry";import{cacheHome as O}from"@allyhub-next/runtimes";import{CommandError as T,defineCommand as _}from"../command.js";import{projectRoot as se}from"../project.js";import{dir as ne}from"../fields.js";const oe=JSON.parse(await x(new URL("../../package.json",import.meta.url),"utf8")).version,C=V(new URL(".",import.meta.resolve("@allyhub-next/components/registry.json"))),j=Object.keys(G),ae="https://allyhub.com/r",ie=3600*1e3;async function H(e){const t=e.env.ALLYHUB_REGISTRY??ae,s=te(t),i=S(O(e.env),"registry",`${z("sha256").update(t).digest("hex").slice(0,16)}.json`),n=await x(i,"utf8").then(o=>{const d=JSON.parse(o),l=X.parse(d.index);return{read:d.read,index:l}}).catch(()=>{});if(n&&Date.now()-n.read<ie)return{source:s,index:n.index,from:"kept"};try{const o=await s.index();return await M(S(i,".."),{recursive:!0}),await Y(i,JSON.stringify({read:Date.now(),index:o})),{source:s,index:o,from:"read"}}catch{return n?{source:s,index:n.index,from:"stale"}:{source:s,from:"none"}}}async function re(e){const{source:t,index:s}=await H(e);return{source:t,names:new Set(s?.items.map(i=>i.name))}}const de={"allyhub:scenery":"Sceneries and settings","allyhub:model":"Models","allyhub:component":"Components","allyhub:template":"Templates","allyhub:skill":"Skills"};function N(e,t){if(e.from==="none")return["AllyHub's resources (models, sceneries) could not be read: check the connection."];const s=t??e.index?.items??[],i=Math.max(0,...s.map(o=>o.name.length)),n=[`AllyHub's resources (allyhub add <name> copies one with what it needs, its Poly Haven assets and its baked light)${e.from==="stale"?", as last read (the registry cannot be read now)":""}:`];for(const[o,d]of Object.entries(de)){const l=s.filter(h=>h.type===o);l.length!==0&&n.push(` ${d}:`,...l.map(h=>` ${h.name.padEnd(i)} ${h.description}`))}return n}const D=20,le=e=>e.replace(/\.(?:ts|js)$/u,"").replaceAll(/[A-Z]/gu,t=>`-${t.toLowerCase()}`).replace(/^-/u,"");function F(e){return e instanceof Q?new T(e.code,e.message,{exit:e.code==="conflict"?b.conflict:e.code==="no-item"?b.notFound:b.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof Z?new T(e.code,e.message,{exit:e.code==="network"?b.platform:e.code==="not-found"?b.notFound:e.code==="bad-choice"?b.usage:b.failed,...e.hint===void 0?{}:{hint:e.hint}}):e}const A=e=>new K({userAgent:`AllyHub/${oe} (+https://allyhub.com)`,cacheDir:S(O(e.env),"polyhaven"),...e.env.ALLYHUB_POLYHAVEN_API?{api:e.env.ALLYHUB_POLYHAVEN_API}:{}}),v=e=>`${e.toFixed(3)} m`;function ce(e){const t=[e.type,e.category,e.size?`${v(e.size.width)} wide, ${v(e.size.depth)} deep, ${v(e.size.height)} tall`:void 0,e.covers?`one tile covers ${e.covers.map(v).join(" × ")}`:void 0,e.polycount!==void 0?`${e.polycount.toLocaleString("en")} polygons`:void 0,e.maxResolution?`up to ${String(e.maxResolution[0])} px`:void 0,e.authors.length>0?`by ${e.authors.join(", ")}`:void 0].filter(s=>s!==void 0);return` ${e.id}: ${e.name} (${t.join("; ")})
3
+ found in ${e.matchedIn.join(", ")||"everything"}; tags ${e.tags.join(", ")}`}async function U(e,t){const s=[`${t.name} from Poly Haven (CC0, by ${t.source.authors.join(", ")||"its authors"}): ${String(t.files.length)} files in ${t.dir}/, ${t.fetched>0?`${String(t.fetched)} fetched`:"all already there"}. Records: ${t.records.join(", ")}.`];if(t.type==="model"){const n=t.main[0]??"",o=await W(e,n,await x(S(e,n))),d=o.bounds;return s.push(d?`Measured: ${d.size.map(l=>l.toFixed(3)).join(" × ")} m along x, y (up), z; from ${d.min.map(l=>l.toFixed(3)).join(", ")} to ${d.max.map(l=>l.toFixed(3)).join(", ")}.`:`Not measured: ${o.contentsMissing??"no contents"}.`,...o.missing.length>0?[`Missing: ${o.missing.join(", ")}.`]:[],`In a scenery: const m = await w.load("${n}");`),{lines:s,model:o}}if(t.type==="hdri")return s.push(`In a scenery: await w.environment("${t.main[0]??""}", { background: true });`),{lines:s};const i=t.covers;return s.push(i&&i.length>=2?`One tile covers ${v(i[0]??0)} × ${v(i[1]??0)} (Poly Haven's dimensions): a surface's repeat is its size over that.`:"Poly Haven gives no size for one tile.",...t.main.map((n,o)=>{const d=t.maps?.[o]??"";return` ${d}: await w.texture("${n}"${d==="diffuse"?"":', { colorSpace: "linear" }'})`})),{lines:s}}export const add=_({name:"add",summary:"Adds what the registry has to the project: a starter component, a resource from AllyHub's registry (a model, a scenery, a skill), or a CC0 model, HDRI or texture from Poly Haven; alone it lists the components",input:u.strictObject({name:u.array(u.string()).optional().describe("What to add: a starter component (caption-line, or captionLine), a resource from AllyHub's registry (a model, a scenery or a skill: home-desk-demo-day, product-demos; a skill goes in .agents/skills, linked from .claude/skills), or a Poly Haven asset's id (as allyhub add search prints it)"),to:u.string().optional().describe(`The folder the files go in, from the project (default ${E} for a component; for an asset, its kind's folder under assets/media/ and its id)`),force:u.boolean().default(!1).describe("Replace a component's copy the project changed (its changes are lost)"),res:u.string().optional().describe(`An asset's resolution, of its textures or of the HDRI (default ${q.resolution})`),dir:ne}),positional:["name"],output:u.looseObject({}),examples:["allyhub add","allyhub add caption-line","allyhub add metal_office_desk --res 2k"]},async(e,t)=>{const s=I(C);try{const i=await s.index();if(!e.name||e.name.length===0){const r=Math.max(...i.items.map(y=>y.name.length)),c=await H(t);return{value:{components:i.items,resources:c.index?.items??[]},text:["Starter components (allyhub add <name> copies one into components/; allyhub add search <words> finds resources and Poly Haven's models, HDRIs and textures too):",...i.items.map(y=>` ${y.name.padEnd(r)} ${y.description}`),"",...N(c,void 0)].join(`
4
+ `)}}const n=await se(t.cwd,e.dir),o=new Set(i.items.map(r=>r.name)),d=e.name.map(le),l=d.filter(r=>o.has(r)),h=d.filter(r=>!o.has(r)),$=h.length>0?await re(t):void 0,w=h.filter(r=>$?.names.has(r)),p=e.name.filter((r,c)=>!o.has(d[c]??"")&&!($?.names.has(d[c]??"")??!1)),f=[],k={};if(l.length>0){const r=e.to??E,c=await P(s,l,{root:n,dir:r,force:e.force});await R(n,c);const y=m=>m==="up to date"?"Up to date":m==="added"?"Added":"Replaced";f.push(...c.files.map(m=>`${y(m.status)} ${m.path}`));const a=c.items.find(m=>m.name===l[0]),g=a?.files[0]?.target.replaceAll("{dir}",r);if(a&&g){const m=J(S(n,"name"),S(n,g)).split("\\").join("/").replace(/\.ts$/u,".js");f.push(`Import it from an item's entry file (<name>/video.ts): import { ${a.title} } from "${m.startsWith(".")?m:`./${m}`}"; one "../" more for each folder the item is deeper.`,"The file is the project's: change it as you like. allyhub add <name> --force puts the registry's back.")}c.missing.length>0&&f.push(`It needs packages the project does not declare: ${c.missing.join(", ")}.`),k.components=c.files.map(m=>({item:m.item,path:m.path,status:m.status})),k.missing=c.missing}if($&&w.length>0){const r=await P($.source,w,{root:n,dir:".",force:e.force});await R(n,r),f.length>0&&f.push(""),f.push(...r.files.map(a=>`${a.status==="up to date"?"Up to date":a.status==="added"?"Added":"Replaced"} ${a.path}`));const c=A(t);for(const a of r.assets){const g=await c.add(a.id,{root:n,...a.resolution===void 0?{}:{resolution:a.resolution},...a.maps===void 0?{}:{maps:a.maps}});f.push(...(await U(n,g)).lines)}const y=await ee(n,r.bakes);f.push(...y.map(a=>`${a.status==="added"?"Downloaded":"Up to date"} the baked light for ${a.bake.scenery}: ${a.path}`),"The files are the project's: change them as you like (a changed scenery is drawn unbaked until allyhub scenery bake bakes it again). allyhub add <name> --force puts the registry's back."),k.resources={files:r.files.map(a=>({item:a.item,path:a.path,status:a.status})),assets:r.assets,bakes:y.map(a=>({path:a.path,status:a.status}))}}if(p.length>0){const r=A(t),c=[];for(const y of p){const a=await r.add(y,{root:n,...e.to===void 0||l.length>0?{}:{to:B.normalize(e.to)},...e.res===void 0?{}:{resolution:e.res}}),g=await U(n,a);f.length>0&&f.push(""),f.push(...g.lines),c.push({...a,...g.model===void 0?{}:{model:g.model}})}k.assets=c}return{value:k,text:f.join(`
5
+ `)}}catch(i){throw F(i)}}),addSearch=_({name:"add search",summary:"Finds the starter components, AllyHub's resources (models, sceneries) and Poly Haven's CC0 models, HDRIs and textures whose names, tags, categories or descriptions hold every word, each with where its words were found",input:u.strictObject({words:u.array(u.string()).min(1).describe("The words to find (a word may start one of theirs)"),type:u.array(u.enum(["component","resource",...j])).optional().describe("Only these kinds (default all): component, resource (AllyHub's models and sceneries), or a Poly Haven kind"),all:u.boolean().default(!1).describe(`Every match, not only the first ${String(D)} Poly Haven assets`)}),positional:["words"],output:u.looseObject({}),examples:['allyhub add search "office desk" --type model',"allyhub add search caption"]},async(e,t)=>{const s=e.words.join(" ").trim();try{const i=e.type??["component","resource",...j],n=i.includes("component")?L(await I(C).index(),s):[],o=i.includes("resource")?await H(t):void 0,d=o?.index?L(o.index,s):[],l=j.filter(p=>i.includes(p)),{found:h,total:$}=l.length>0?await A(t).search(s,l):{found:[],total:0},w=e.all?h:h.slice(0,D);return{value:{query:s,components:n,resources:d,assets:{total:$,matches:h.length,found:w}},text:[...i.includes("component")?[`Starter components: ${String(n.length)} hold "${s}".`,...n.map(p=>` ${p.name} (${p.title}): ${p.description}`)]:[],...o?o.from==="none"?N(o,[]):[`AllyHub's resources: ${String(d.length)} hold "${s}"${o.from==="stale"?" (as last read)":""}.`,...d.map(p=>` ${p.name} (${p.title}): ${p.description}`)]:[],...l.length>0?[`From Poly Haven (CC0): ${String(h.length)} of ${String($)} assets hold "${s}"${w.length<h.length?`; the first ${String(w.length)} (--all for every one)`:""}.`,...w.map(ce)]:[],"","Add one: allyhub add <name or id>"].join(`
6
+ `)}}catch(i){throw F(i)}});
@@ -1,12 +1,12 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as D}from"node:fs/promises";import{join as J,resolve as q}from"node:path";import{z as n}from"zod";import{callTool as E,findTool as T,loadCatalog as w,priceCalls as L,priceText as j,resumeJob as M,uploadFiles as H}from"@allyhub-next/cloud";import{WORK_DIR as U}from"@allyhub-next/formats";import{EXIT as g}from"@allyhub-next/protocol";import{CommandError as $,defineCommand as h}from"../command.js";import{optionName as B}from"../args.js";import{commandHelp as K}from"../help.js";import{requiredMissing as _,toolInput as G,toolOptions as z}from"../tool-options.js";import{cloudOf as p,cloudWork as f,placeFrom as P,plural as b}from"./cloud.js";const X=8e3,d={input:n.string().optional().describe("The input as JSON, or a file of it: the whole of it, or the fields no option gives; an option given beside it wins"),quote:n.boolean().default(!1).describe("Say what a call with this input would cost, calling nothing and charging nothing"),file:n.string().optional().describe("The path of the file it makes (without an extension it takes the result's); the same call with the same input then keeps it, calling nothing; default a folder under .allyhub/work/"),force:n.boolean().default(!1).describe("With --file: call even when the file was made from this input, and replace a file that has no record"),wait:n.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:n.string().optional().describe("Wait for a call of this tool this computer made (from --no-wait, or a call that stopped waiting), and download its file")},y=(t,a)=>new $("usage",t,{exit:g.usage,...a===void 0?{}:{hint:a}}),C=t=>{const a=t.reduce((e,r)=>r.map((s,i)=>Math.max(e[i]??0,s.length)),[]);return t.map(e=>` ${e.map((r,s)=>s===e.length-1?r:r.padEnd(a[s]??0)).join(" ")}`.trimEnd())};function F(t){return h({name:t.id,summary:`${t.title}: ${t.description} Lists the tools, each a command`,input:n.strictObject({fresh:n.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:n.looseObject({work:n.string(),tools:n.array(n.looseObject({name:n.string()}))}),examples:[`allyhub ${t.id}`,`allyhub ${t.id} --json`]},(a,e)=>f(async()=>{const s=(await w(p(e),{refresh:a.fresh})).tools.filter(i=>i.work===t.id).sort((i,o)=>i.name.localeCompare(o.name));return{value:{work:t.id,title:t.title,tools:s.map(i=>({name:i.name,title:i.title,description:i.description,price:j(i.price),long:i.long}))},text:[`${t.title} (${b(s.length,"tool")}):`,...C(s.map(i=>[i.name,i.title,j(i.price)])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${t.id} <tool> shows a tool's options; --quote prices a call first.`].join(`
3
- `)}}))}const k=t=>new Intl.NumberFormat("en-US",{maximumFractionDigits:4}).format(t),Q=t=>`${t.estimated?`about ${new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(t.credits)}`:k(t.credits)} credits`;function V(t){return t.lines.map(a=>{if(a.unknown)return` ${a.what.replace(/^0 /u,"")}: ${k(a.rate)} each, counted by the call (not in the total)`;const e=a.what==="per call"?"":` (${k(a.rate)} each)`;return` ${a.what}: ${k(a.credits)}${e}${a.estimated?", estimated":""}`})}function Y(t,a=5,e=160){const r=i=>{const o=i===void 0?"undefined":JSON.stringify(i);return o.length>e?`${o.slice(0,e-1)}…`:o},s=(i,o)=>[`${i?`${i}: `:""}${b(o.length,"item")}${o.length>a?`, the first ${String(a)}:`:":"}`,...o.slice(0,a).map((l,c)=>` [${String(c)}] ${r(l)}`)];return Array.isArray(t)?s("",t):typeof t!="object"||t===null?[r(t)]:Object.entries(t).flatMap(([i,o])=>Array.isArray(o)?s(i,o):[`${i}: ${r(o)}`])}function R(t,a){if("jobId"in t)return[`${t.tool} is still working (call ${t.jobId}).`,`Wait for it: allyhub ${a} --resume ${t.jobId}`].join(`
2
+ import{readFile as W}from"node:fs/promises";import{join as D,resolve as q}from"node:path";import{z as n}from"zod";import{callTool as J,findTool as T,loadCatalog as h,priceCalls as E,priceText as j,resumeJob as L,uploadFiles as M}from"@allyhub-next/cloud";import{WORK_DIR as H}from"@allyhub-next/formats";import{EXIT as g}from"@allyhub-next/protocol";import{CommandError as $,defineCommand as w}from"../command.js";import{optionName as U}from"../args.js";import{commandHelp as B}from"../help.js";import{requiredMissing as K,toolInput as _,toolOptions as G}from"../tool-options.js";import{cloudOf as p,cloudWork as f,placeFrom as z,plural as b}from"./cloud.js";const P=8e3,d={input:n.string().optional().describe("The input as JSON, or a file of it: the whole of it, or the fields no option gives; an option given beside it wins"),quote:n.boolean().default(!1).describe("Say what a call with this input would cost, calling nothing and charging nothing"),file:n.string().optional().describe("The path of the file it makes (without an extension it takes the result's); the same call with the same input then keeps it, calling nothing; default a folder under .allyhub/work/"),force:n.boolean().default(!1).describe("With --file: call even when the file was made from this input, and replace a file that has no record"),wait:n.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:n.string().optional().describe("Wait for a call of this tool this computer made (from --no-wait, or a call that stopped waiting), and download its file")},y=(t,a)=>new $("usage",t,{exit:g.usage,...a===void 0?{}:{hint:a}}),C=t=>{const a=t.reduce((e,r)=>r.map((s,i)=>Math.max(e[i]??0,s.length)),[]);return t.map(e=>` ${e.map((r,s)=>s===e.length-1?r:r.padEnd(a[s]??0)).join(" ")}`.trimEnd())};function F(t){return w({name:t.id,summary:`${t.title}: ${t.description} Lists the tools, each a command`,input:n.strictObject({fresh:n.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:n.looseObject({work:n.string(),tools:n.array(n.looseObject({name:n.string()}))}),examples:[`allyhub ${t.id}`,`allyhub ${t.id} --json`]},(a,e)=>f(async()=>{const s=(await h(p(e),{refresh:a.fresh})).tools.filter(i=>i.work===t.id).sort((i,o)=>i.name.localeCompare(o.name));return{value:{work:t.id,title:t.title,tools:s.map(i=>({name:i.name,title:i.title,description:i.description,price:j(i.price),long:i.long}))},text:[`${t.title} (${b(s.length,"tool")}):`,...C(s.map(i=>[i.name,i.title,j(i.price)])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${t.id} <tool> shows a tool's options; --quote prices a call first.`].join(`
3
+ `)}}))}const k=t=>new Intl.NumberFormat("en-US",{maximumFractionDigits:4}).format(t),X=t=>`${t.estimated?`about ${new Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(t.credits)}`:k(t.credits)} credits`;function Q(t){return t.lines.map(a=>{if(a.unknown)return` ${a.what.replace(/^0 /u,"")}: ${k(a.rate)} each, counted by the call (not in the total)`;const e=a.what==="per call"?"":` (${k(a.rate)} each)`;return` ${a.what}: ${k(a.credits)}${e}${a.estimated?", estimated":""}`})}function V(t,a=5,e=160){const r=i=>{const o=i===void 0?"undefined":JSON.stringify(i);return o.length>e?`${o.slice(0,e-1)}…`:o},s=(i,o)=>[`${i?`${i}: `:""}${b(o.length,"item")}${o.length>a?`, the first ${String(a)}:`:":"}`,...o.slice(0,a).map((l,c)=>` [${String(c)}] ${r(l)}`)];return Array.isArray(t)?s("",t):typeof t!="object"||t===null?[r(t)]:Object.entries(t).flatMap(([i,o])=>Array.isArray(o)?s(i,o):[`${i}: ${r(o)}`])}function R(t,a){if("jobId"in t)return[`${t.tool} is still working (call ${t.jobId}).`,`Wait for it: allyhub ${a} --resume ${t.jobId}`].join(`
4
4
  `);if(t.kept)return[`Kept ${t.file??""}: ${t.tool} made it from this same input on ${t.kept.at} (${t.gen??""}).`,"Nothing was called or charged. --force makes it again."].join(`
5
- `);const e=JSON.stringify(t.output,null,2);return[e.length<=X?e:[`Output: ${String(Math.round(Buffer.byteLength(e)/1024))} KB of JSON, in short (--json prints it whole):`,...Y(t.output)].join(`
5
+ `);const e=JSON.stringify(t.output,null,2);return[e.length<=P?e:[`Output: ${String(Math.round(Buffer.byteLength(e)/1024))} KB of JSON, in short (--json prints it whole):`,...V(t.output)].join(`
6
6
  `),...t.file?[`File: ${t.file}${t.replaced?" (replaced: it was made from another input)":""}`]:[],...t.words?[`Words: ${t.words} (when each word is said: a part can say a stretch of the file)`]:[],...t.gen?[`Record: ${t.gen} (move it with the file)`]:[],`Credits used: ${t.credits===void 0?"not reported":String(t.credits)}`].join(`
7
- `)}const Z=t=>{const a=Math.max(0,Math.round(t));return`${String(Math.floor(a/60))}:${String(a%60).padStart(2,"0")}`},tt=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);async function et(t,a){const e=t.trim().startsWith("{"),r=e?t:await D(q(a.cwd,t),"utf8").catch(i=>{throw new $("not-found",`--input: cannot read ${t}: ${i.message}`,{exit:g.notFound,hint:"Give a JSON object, or a file of one."})});let s;try{s=JSON.parse(r)}catch{s=void 0}if(!tt(s))throw y(`--input: ${e?"the text":t} is not a JSON object.`,`Give '{"field": …}', or a file of it.`);return s}export function toolCommand(t){const a=`${t.work} ${t.name}`,e=z(t.input,Object.keys(d)),r=n.strictObject({...e.shape,...d,input:d.input.describe(e.inputOnly.length?`${d.input.description??""}. Fields only it gives: ${e.inputOnly.join(", ")}`:d.input.description??"")}),s=j(t.price),i=[...e.fields].filter(([,o])=>e.required.includes(o)).map(([o,l])=>`--${B(o)} <${l}>`);return{spec:{name:a,summary:t.description,input:r,output:n.looseObject({tool:n.string(),output:n.record(n.string(),n.unknown()).optional(),credits:n.number().optional(),file:n.string().optional(),gen:n.string().optional(),words:n.string().optional(),jobId:n.string().optional(),quote:n.looseObject({credits:n.number()}).nullable().optional()}),examples:[`allyhub ${[a,...i,"--quote"].join(" ")}`,`allyhub ${[a,...i].join(" ")}`]},about:{lines:[t.title,"",`Costs credits: ${s}. A call is charged once, when it worked; a failed call is free. --quote prices an input first, charging nothing.`,...t.long?["A long tool: the command waits for it (--no-wait returns its call, --resume waits again)."]:[]],value:{work:t.work,title:t.title,price:s,priceRule:t.price,long:t.long,inputSchema:t.input,outputSchema:t.output}},run:(o,l)=>f(async()=>{const c=o,W=o,O=p(l),S=await P(l),m=G(e,W,c.input===void 0?{}:await et(c.input,l));let v=0;const A={base:S,signal:l.signal,onRunning:u=>{Date.now()-v<3e4||(v=Date.now(),l.progress(`${t.name}: working · ${Z((Date.now()-Date.parse(u.createdAt))/1e3)} (call ${u.id})`))}};if(c.resume!==void 0){if(Object.keys(m).length>0||c.quote||c.file!==void 0)throw y("--resume waits for a call as it was made: give it no input, --quote or --file.");const u=await M(O,c.resume,{...A,tool:t.name});return{value:{...u},text:R(u,a)}}if(c.quote){const u=L(t.price,t.input,[m]).calls[0];if(!u)throw new Error("No quote.");return{value:{tool:t.name,quote:u},text:[`A call${Object.keys(m).length===0?" with the defaults":""}: ${Q(u)}`,...V(u),...u.estimated?["Estimated parts are charged by what the call returns."]:[],"A call is charged once, when it worked; a failed call is free."].join(`
8
- `)}}const x=_(e,m);if(x.length>0)throw y(`${t.name} needs ${x.join(", ")}.`,`allyhub help ${a} shows its options.`);const N=await E(O,t.name,m,{...A,outDir:J(S,U,t.work,t.name),...c.file===void 0?{}:{file:q(l.cwd,c.file)},force:c.force,wait:c.wait});return{value:{...N},text:R(N,a)}})}}const I=t=>w(p(t)).catch(()=>{});export const CLOUD_SOURCE={entries:[{name:"<work>",summary:"List a work's cloud tools (AllyHub's catalog), a line each with its price; allyhub help lists the works"},{name:"<work> <tool>",summary:"Run a cloud tool with the account's credits, its input as options (allyhub help <work> <tool>); --quote prices it first"}],async nouns(t){return((await I(t))?.works??[]).map(e=>({name:e.id,summary:`${e.title}: ${e.description}`}))},resolve:(t,a)=>f(async()=>{const[e,r]=t;if(e===void 0||e.startsWith("-"))return;let s=await I(a),i=s?.works.find(l=>l.id===e);if(i||(s=await w(p(a),{refresh:!0}).catch(()=>s),i=s?.works.find(l=>l.id===e)),!s||!i)return;if(r===void 0||r.startsWith("-"))return{command:F(i),rest:t.slice(1),list:!0};const o=s.tools.find(l=>l.name===r);if(o?.work!==i.id)throw new $("unknown-tool",o?`${r} is not a ${i.id} tool: it is in allyhub ${o.work}.`:`No ${i.id} tool ${r}.`,{exit:g.notFound,hint:o?`allyhub ${o.work} ${r}`:`allyhub ${i.id} lists its tools.`});return{command:toolCommand(o),rest:t.slice(2),list:!1}})},upload=h({name:"upload",summary:"Upload files from this computer for a cloud tool whose input takes a URL (a presenter photo, speech audio, a reference clip), and print a signed URL for each, which works for a few hours",input:n.strictObject({files:n.array(n.string()).min(1).describe("The files: images (.jpg, .png, .webp, .gif), sound (.mp3, .wav, .m4a, .aac, .ogg, .flac) or video (.mp4, .mov, .webm), 50 MB at most")}),positional:["files"],output:n.looseObject({files:n.array(n.looseObject({file:n.string(),ok:n.boolean(),url:n.string().optional()}))}),examples:["allyhub upload assets/media/presenter.jpg"]},(t,a)=>f(async()=>{const e=await H(p(a),t.files,{base:a.cwd}),r=e.filter(o=>!o.ok),s=e.map(o=>o.ok?`${o.file}
7
+ `)}const Y=t=>{const a=Math.max(0,Math.round(t));return`${String(Math.floor(a/60))}:${String(a%60).padStart(2,"0")}`},Z=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);async function tt(t,a){const e=t.trim().startsWith("{"),r=e?t:await W(q(a.cwd,t),"utf8").catch(i=>{throw new $("not-found",`--input: cannot read ${t}: ${i.message}`,{exit:g.notFound,hint:"Give a JSON object, or a file of one."})});let s;try{s=JSON.parse(r)}catch{s=void 0}if(!Z(s))throw y(`--input: ${e?"the text":t} is not a JSON object.`,`Give '{"field": …}', or a file of it.`);return s}export function toolCommand(t){const a=`${t.work} ${t.name}`,e=G(t.input,Object.keys(d)),r=n.strictObject({...e.shape,...d,input:d.input.describe(e.inputOnly.length?`${d.input.description??""}. Fields only it gives: ${e.inputOnly.join(", ")}`:d.input.description??"")}),s=j(t.price),i=[...e.fields].filter(([,o])=>e.required.includes(o)).map(([o,l])=>`--${U(o)} <${l}>`);return{spec:{name:a,summary:t.description,input:r,output:n.looseObject({tool:n.string(),output:n.record(n.string(),n.unknown()).optional(),credits:n.number().optional(),file:n.string().optional(),gen:n.string().optional(),words:n.string().optional(),jobId:n.string().optional(),quote:n.looseObject({credits:n.number()}).nullable().optional()}),examples:[`allyhub ${[a,...i,"--quote"].join(" ")}`,`allyhub ${[a,...i].join(" ")}`]},about:{lines:[t.title,"",`Costs credits: ${s}. A call is charged once, when it worked; a failed call is free. --quote prices an input first, charging nothing.`,...t.long?["A long tool: the command waits for it (--no-wait returns its call, --resume waits again)."]:[]],value:{work:t.work,title:t.title,price:s,priceRule:t.price,long:t.long,inputSchema:t.input,outputSchema:t.output}},run:(o,l)=>f(async()=>{const c=o,I=o,O=p(l),S=await z(l),m=_(e,I,c.input===void 0?{}:await tt(c.input,l));let v=0;const A={base:S,signal:l.signal,onRunning:u=>{Date.now()-v<3e4||(v=Date.now(),l.progress(`${t.name}: working · ${Y((Date.now()-Date.parse(u.createdAt))/1e3)} (call ${u.id})`))}};if(c.resume!==void 0){if(Object.keys(m).length>0||c.quote||c.file!==void 0)throw y("--resume waits for a call as it was made: give it no input, --quote or --file.");const u=await L(O,c.resume,{...A,tool:t.name});return{value:{...u},text:R(u,a)}}if(c.quote){const u=E(t.price,t.input,[m]).calls[0];if(!u)throw new Error("No quote.");return{value:{tool:t.name,quote:u},text:[`A call${Object.keys(m).length===0?" with the defaults":""}: ${X(u)}`,...Q(u),...u.estimated?["Estimated parts are charged by what the call returns."]:[],"A call is charged once, when it worked; a failed call is free."].join(`
8
+ `)}}const x=K(e,m);if(x.length>0)throw y(`${t.name} needs ${x.join(", ")}.`,`allyhub help ${a} shows its options.`);const N=await J(O,t.name,m,{...A,outDir:D(S,H,t.work,t.name),...c.file===void 0?{}:{file:q(l.cwd,c.file)},force:c.force,wait:c.wait});return{value:{...N},text:R(N,a)}})}}const et=t=>h(p(t)).catch(()=>{});export const CLOUD_SOURCE={entries:[{name:"<work>",summary:"List a work's cloud tools (AllyHub's catalog), a line each with its price; allyhub help lists the works"},{name:"<work> <tool>",summary:"Run a cloud tool with the account's credits, its input as options (allyhub help <work> <tool>); --quote prices it first"}],async nouns(t){return(await h(p(t))).works.map(e=>({name:e.id,summary:`${e.title}: ${e.description}`}))},resolve:(t,a)=>f(async()=>{const[e,r]=t;if(e===void 0||e.startsWith("-"))return;let s=await et(a),i=s?.works.find(l=>l.id===e);if(i||(s=await h(p(a),{refresh:!0}).catch(()=>s),i=s?.works.find(l=>l.id===e)),!s||!i)return;if(r===void 0||r.startsWith("-"))return{command:F(i),rest:t.slice(1),list:!0};const o=s.tools.find(l=>l.name===r);if(o?.work!==i.id)throw new $("unknown-tool",o?`${r} is not a ${i.id} tool: it is in allyhub ${o.work}.`:`No ${i.id} tool ${r}.`,{exit:g.notFound,hint:o?`allyhub ${o.work} ${r}`:`allyhub ${i.id} lists its tools.`});return{command:toolCommand(o),rest:t.slice(2),list:!1}})},upload=w({name:"upload",summary:"Upload files from this computer for a cloud tool whose input takes a URL (a presenter photo, speech audio, a reference clip), and print a signed URL for each, which works for a few hours",input:n.strictObject({files:n.array(n.string()).min(1).describe("The files: images (.jpg, .png, .webp, .gif), sound (.mp3, .wav, .m4a, .aac, .ogg, .flac) or video (.mp4, .mov, .webm), 50 MB at most")}),positional:["files"],output:n.looseObject({files:n.array(n.looseObject({file:n.string(),ok:n.boolean(),url:n.string().optional()}))}),examples:["allyhub upload assets/media/presenter.jpg"]},(t,a)=>f(async()=>{const e=await M(p(a),t.files,{base:a.cwd}),r=e.filter(o=>!o.ok),s=e.map(o=>o.ok?`${o.file}
9
9
  ${o.url}${o.expiresAt===void 0?"":` (works until ${o.expiresAt})`}`:`${o.file}
10
10
  failed: ${o.error.message}${o.error.hint?` ${o.error.hint}`:""}`);e.length>1&&s.push(r.length===0?`${b(e.length,"file")} uploaded.`:`${String(e.length-r.length)} of ${b(e.length,"file")} uploaded; ${String(r.length)} failed.`);const i=r[0];return{value:{files:e.map(o=>o.ok?{...o}:{file:o.file,ok:!1,error:{code:o.error.code,message:o.error.message,...o.error.hint?{hint:o.error.hint}:{}}})},text:s.join(`
11
- `),...i?{exit:i.error.exit}:{}}})),cloudList=h({name:"cloud list",summary:"List AllyHub's cloud works, or one work's tools, a line each with its price",input:n.strictObject({work:n.string().optional().describe("The work whose tools to list; none lists the works")}),output:n.looseObject({})},(t,a)=>f(async()=>{const e=await w(p(a));if(t.work===void 0)return{value:{works:e.works},text:["AllyHub's cloud works:",...C(e.works.map(i=>[i.id,i.description]))].join(`
12
- `)};const r=e.works.find(i=>i.id===t.work);if(!r)throw new $("unknown-work",`No work ${t.work}.`,{exit:g.notFound,hint:`The works are ${e.works.map(i=>i.id).join(", ")}.`});const s=await F(r).run({fresh:!1},a);return{value:s.value,text:s.text}})),cloudTool=h({name:"cloud tool",summary:"Show a cloud tool: what it does, its input (as cloud call's input takes it) and its price",input:n.strictObject({tool:n.string().describe("The tool's name, as cloud list lists it")}),output:n.looseObject({name:n.string()})},(t,a)=>f(async()=>{const e=toolCommand(await T(p(a),t.tool));return{value:{name:t.tool,summary:e.spec.summary,about:e.about?.lines??[],...e.about?.value},text:K(e.spec,e.about?.lines)}})),cloudCall=h({name:"cloud call",summary:"Run a cloud tool with the account's credits: its output, the credits used, and the file it makes with its record; waits for a long one",input:n.strictObject({tool:n.string().describe("The tool's name, as cloud list lists it"),input:n.record(n.string(),n.unknown()).default({}).describe("Its input, by its input schema (cloud tool)"),quote:d.quote,file:d.file,force:d.force,wait:d.wait,resume:d.resume}),output:n.looseObject({tool:n.string()})},(t,a)=>f(async()=>{const{tool:e,input:r,...s}=t,i=toolCommand(await T(p(a),e)),o=i.spec.input.safeParse({...s,...Object.keys(r).length?{input:JSON.stringify(r)}:{}});if(!o.success)throw y(o.error.message);const l=await i.run(o.data,a);return{...l,value:{tool:e,...l.value}}}));
11
+ `),...i?{exit:i.error.exit}:{}}})),cloudList=w({name:"cloud list",summary:"List AllyHub's cloud works, or one work's tools, a line each with its price",input:n.strictObject({work:n.string().optional().describe("The work whose tools to list; none lists the works")}),output:n.looseObject({})},(t,a)=>f(async()=>{const e=await h(p(a));if(t.work===void 0)return{value:{works:e.works},text:["AllyHub's cloud works:",...C(e.works.map(i=>[i.id,i.description]))].join(`
12
+ `)};const r=e.works.find(i=>i.id===t.work);if(!r)throw new $("unknown-work",`No work ${t.work}.`,{exit:g.notFound,hint:`The works are ${e.works.map(i=>i.id).join(", ")}.`});const s=await F(r).run({fresh:!1},a);return{value:s.value,text:s.text}})),cloudTool=w({name:"cloud tool",summary:"Show a cloud tool: what it does, its input (as cloud call's input takes it) and its price",input:n.strictObject({tool:n.string().describe("The tool's name, as cloud list lists it")}),output:n.looseObject({name:n.string()})},(t,a)=>f(async()=>{const e=toolCommand(await T(p(a),t.tool));return{value:{name:t.tool,summary:e.spec.summary,about:e.about?.lines??[],...e.about?.value},text:B(e.spec,e.about?.lines)}})),cloudCall=w({name:"cloud call",summary:"Run a cloud tool with the account's credits: its output, the credits used, and the file it makes with its record; waits for a long one",input:n.strictObject({tool:n.string().describe("The tool's name, as cloud list lists it"),input:n.record(n.string(),n.unknown()).default({}).describe("Its input, by its input schema (cloud tool)"),quote:d.quote,file:d.file,force:d.force,wait:d.wait,resume:d.resume}),output:n.looseObject({tool:n.string()})},(t,a)=>f(async()=>{const{tool:e,input:r,...s}=t,i=toolCommand(await T(p(a),e)),o=i.spec.input.safeParse({...s,...Object.keys(r).length?{input:JSON.stringify(r)}:{}});if(!o.success)throw y(o.error.message);const l=await i.run(o.data,a);return{...l,value:{tool:e,...l.value}}}));
package/dist/help.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{join as k}from"node:path";import{z as y}from"zod";import{optionName as $,paramsOf as O,shapeOf as u}from"./args.js";import{GLOBAL as E,isGlobal as w,isHidden as D}from"./fields.js";import{WORKS as x}from"./works.js";const b=t=>t.description??"";function g(t,h){const a=u(h);return a.kind==="boolean"&&!a.list?`--${$(t)}`:`--${$(t)} <${a.kind==="number"?"n":"value"}${a.list?",…":""}>`}function M(t){return t===void 0?["The SDK's docs: none here. This project declares the SDK and has not installed it: run npm install.",""]:[`The SDK's docs, for the version this project builds with (read the ones a piece needs before writing it; README.md lists them): ${t}`,""]}export function listHelp(t,h=[],a=[],p){const r=["allyhub: check, render, measure and look at a project's content.","",...M(p),"Works (allyhub help <work> lists a work's commands in the order it uses them):"],m=Math.max(...x.map(n=>n.name.length));for(const n of x)r.push(` ${n.name.padEnd(m)} ${n.title}`);r.push("","Commands:");const i=[...t.map(n=>({noun:n.name.split(" ")[0]??"",name:n.name,summary:n.summary})),...h.flatMap(n=>n.entries.map(o=>({noun:"<made>",...o}))),...a.map(n=>({noun:"<nouns>",...n}))],c=Math.max(...i.map(n=>n.name.length));let s="";for(const n of i)s!==""&&n.noun!==s&&r.push(""),s=n.noun,r.push(` ${n.name.padEnd(c)} ${n.summary}`);r.push("","Global options (each command lists those it takes):");const e=Object.entries(E).map(([n,o])=>[g(n,o),o.description??""]);e.push(["--json","Print the result as JSON (any command)"]);const l=Math.max(...e.map(([n])=>n.length));for(const[n,o]of e)r.push(` ${n.padEnd(l)} ${o}`);return r.push("","Environment:"," ALLYHUB_GPU=0|1 Draw on the CPU (the same pixels on every computer) or the GPU; default the GPU on a Mac"," ALLYHUB_NO_INDEX=1 Do not make face tracks and person mattes first: those layers are drawn their fallback way","","allyhub help <command> says what one does and every option it takes."),r.join(`
3
- `)}export function workHelp(t,h,a=[],p){const r=Math.max(...t.commands.map(i=>i.length)),m=[`${t.title}: the commands, in the order the work uses them.`,""];t.docs!==void 0&&t.docs.length>0&&m.push(p===void 0?`How it is written: the SDK's ${t.docs.join(", ")} (no SDK docs for this project: it declares the SDK and has not installed it; run npm install).`:`How it is written, read before writing it: ${t.docs.map(i=>k(p,i)).join(", ")}`,"");for(const i of t.commands){const c=h.find(s=>s.name===i)??a.flatMap(s=>s.entries).find(s=>s.name===i);m.push(` ${i.padEnd(r)} ${c?.summary??""}`)}return m.push("","allyhub help <command> says what one does and every option it takes."),m.join(`
4
- `)}export function commandHelp(t,h=[]){const a=t.input.shape,p=[...t.positional??[]],r=p.map(e=>{const l=u(a[e]??y.string()),n=a[e]?.safeParse(void 0).success??!1,o=`<${e}>${l.list?"…":""}`;return n?`[${o}]`:o}),m=O(a.params),i=Object.entries(a).filter(([e,l])=>!p.includes(e)&&!(m&&e==="params")&&!w(l)&&!D(l)),c=Object.entries(a).filter(([,e])=>w(e)).map(([e,l])=>g(e,l).split(" ")[0]??""),s=[`allyhub ${[t.name,...r,i.length>0?"[options]":""].filter(Boolean).join(" ")}`,"",t.summary];if(h.length>0&&s.push("",...h),p.length>0){s.push("","Arguments:");for(const e of p)s.push(` <${e}> ${b(a[e]??y.string())}`)}if(i.length>0){s.push("","Options:");const e=i.map(([n,o])=>{const d=u(o),f=g(n,o),j=d.fallback===void 0||d.fallback===!1?"":` (default ${JSON.stringify(d.fallback)})`;return[f,`${b(o)}${j}`]}),l=Math.max(...e.map(([n])=>n.length));for(const[n,o]of e)s.push(` ${n.padEnd(l)} ${o}`)}if(m){s.push("","Parameters (--param name=value):");const e=Object.entries(m).map(([n,o])=>{const d=u(o),f=d.fallback===void 0?"":` (default ${JSON.stringify(d.fallback)})`;return[$(n),`${b(o)}${f}`]}),l=Math.max(...e.map(([n])=>n.length));for(const[n,o]of e)s.push(` ${n.padEnd(l)} ${o}`)}if(c.length>0&&s.push("",`Global options: ${c.join(", ")} (allyhub help)`),t.examples&&t.examples.length>0){s.push("","Examples:");for(const e of t.examples)s.push(` ${e}`)}return s.join(`
2
+ import{join as j}from"node:path";import{z as y}from"zod";import{optionName as $,paramsOf as O,shapeOf as u}from"./args.js";import{GLOBAL as E,isGlobal as w,isHidden as M}from"./fields.js";import{WORKS as k,cloudNouns as D,workTitle as S}from"./works.js";const g=e=>e.description??"";function b(e,p){const a=u(p);return a.kind==="boolean"&&!a.list?`--${$(e)}`:`--${$(e)} <${a.kind==="number"?"n":"value"}${a.list?",…":""}>`}function v(e){return e===void 0?["The SDK's docs: none here. This project declares the SDK and has not installed it: run npm install.",""]:[`The SDK's docs, for the version this project builds with (read the ones a piece needs before writing it; README.md lists them): ${e}`,""]}export function listHelp(e,p,a,h){const r=["allyhub: check, render, measure and look at a project's content.","",...v(h),"Works (allyhub help <work> lists a work's commands in the order it uses them):"],d=Math.max(...k.map(n=>n.name.length));for(const n of k)r.push(` ${n.name.padEnd(d)} ${S(n,a)}`);r.push("","Commands:");const i=[...e.map(n=>({noun:n.name.split(" ")[0]??"",name:n.name,summary:n.summary})),...p.flatMap(n=>n.entries.map(s=>({noun:"<made>",...s}))),...(a??[]).map(n=>({noun:"<nouns>",...n}))],l=Math.max(...i.map(n=>n.name.length));let o="";for(const n of i)o!==""&&n.noun!==o&&r.push(""),o=n.noun,r.push(` ${n.name.padEnd(l)} ${n.summary}`);r.push("","Global options (each command lists those it takes):");const t=Object.entries(E).map(([n,s])=>[b(n,s),s.description??""]);t.push(["--json","Print the result as JSON (any command)"]);const m=Math.max(...t.map(([n])=>n.length));for(const[n,s]of t)r.push(` ${n.padEnd(m)} ${s}`);return r.push("","Environment:"," ALLYHUB_GPU=0|1 Draw on the CPU (the same pixels on every computer) or the GPU; default the GPU on a Mac"," ALLYHUB_NO_INDEX=1 Do not make face tracks and person mattes first: those layers are drawn their fallback way","","allyhub help <command> says what one does and every option it takes."),r.join(`
3
+ `)}export function workHelp(e,p,a=[],h,r){const d=Math.max(...e.commands.map(l=>l.length)),i=[`${e.title}: the commands, in the order the work uses them.`,""];if(e.cloud!==void 0){const l=r===void 0?[]:D(e,r);if(r===void 0)i.push("The cloud catalog could not be read: its works are not listed.");else if(l.length===0)i.push("The cloud catalog has no tools for this work yet.");else{const o=Math.max(...l.map(t=>t.name.length));i.push("The cloud catalog's works for it (allyhub <work> lists one's tools):");for(const t of l)i.push(` ${t.name.padEnd(o)} ${t.summary}`)}i.push("")}e.docs!==void 0&&e.docs.length>0&&i.push(h===void 0?`How it is written: the SDK's ${e.docs.join(", ")} (no SDK docs for this project: it declares the SDK and has not installed it; run npm install).`:`How it is written, read before writing it: ${e.docs.map(l=>j(h,l)).join(", ")}`,"");for(const l of e.commands){const o=p.find(t=>t.name===l)??a.flatMap(t=>t.entries).find(t=>t.name===l);i.push(` ${l.padEnd(d)} ${o?.summary??""}`)}return i.push("","allyhub help <command> says what one does and every option it takes."),i.join(`
4
+ `)}export function commandHelp(e,p=[]){const a=e.input.shape,h=[...e.positional??[]],r=h.map(t=>{const m=u(a[t]??y.string()),n=a[t]?.safeParse(void 0).success??!1,s=`<${t}>${m.list?"…":""}`;return n?`[${s}]`:s}),d=O(a.params),i=Object.entries(a).filter(([t,m])=>!h.includes(t)&&!(d&&t==="params")&&!w(m)&&!M(m)),l=Object.entries(a).filter(([,t])=>w(t)).map(([t,m])=>b(t,m).split(" ")[0]??""),o=[`allyhub ${[e.name,...r,i.length>0?"[options]":""].filter(Boolean).join(" ")}`,"",e.summary];if(p.length>0&&o.push("",...p),h.length>0){o.push("","Arguments:");for(const t of h)o.push(` <${t}> ${g(a[t]??y.string())}`)}if(i.length>0){o.push("","Options:");const t=i.map(([n,s])=>{const c=u(s),f=b(n,s),x=c.fallback===void 0||c.fallback===!1?"":` (default ${JSON.stringify(c.fallback)})`;return[f,`${g(s)}${x}`]}),m=Math.max(...t.map(([n])=>n.length));for(const[n,s]of t)o.push(` ${n.padEnd(m)} ${s}`)}if(d){o.push("","Parameters (--param name=value):");const t=Object.entries(d).map(([n,s])=>{const c=u(s),f=c.fallback===void 0?"":` (default ${JSON.stringify(c.fallback)})`;return[$(n),`${g(s)}${f}`]}),m=Math.max(...t.map(([n])=>n.length));for(const[n,s]of t)o.push(` ${n.padEnd(m)} ${s}`)}if(l.length>0&&o.push("",`Global options: ${l.join(", ")} (allyhub help)`),e.examples&&e.examples.length>0){o.push("","Examples:");for(const t of e.examples)o.push(` ${t}`)}return o.join(`
5
5
  `)}
@@ -0,0 +1,2 @@
1
+ // The types of @allyhub-next/model, which allyhub's build lends a project by that name.
2
+ export * from "../../node_modules/@allyhub-next/model/dist/index.js";
@@ -0,0 +1,2 @@
1
+ // The types of @allyhub-next/scenery-host/layer, which allyhub's build lends a project by that name.
2
+ export * from "../../node_modules/@allyhub-next/scenery-host/dist/layer/index.js";
package/dist/main.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFileSync as M}from"node:fs";import{EXIT as d,describeCommand as O}from"@allyhub-next/protocol";import{readArgs as A}from"./args.js";import{CommandError as p}from"./command.js";import{COMMAND_SOURCES as I,COMMANDS as v}from"./commands/index.js";import{commandHelp as j,listHelp as D,workHelp as R}from"./help.js";import{sdkDocs as H}from"./sdk-docs.js";import{WORKS as J,workNamed as T}from"./works.js";const x=JSON.parse(M(new URL("../package.json",import.meta.url),"utf8")).version,G={stdout:e=>process.stdout.write(e),stderr:e=>process.stderr.write(e),cwd:process.cwd(),env:process.env};export function findCommand(e,o=v){let s;for(const i of o){const a=i.spec.name.split(" ");a.every((r,c)=>e[c]===r)&&a.length>(s?.length??0)&&(s={command:i,length:a.length})}return s?{command:s.command,rest:e.slice(s.length)}:{rest:[...e]}}export async function resolveCommand(e,o,s=v,i=I){const a=findCommand(e,s);if(a.command)return a;for(const r of i){const c=await r.resolve(e,o);if(c)return c}return a}const E=e=>({...O(e.spec),...e.about?.value});export async function main(e,o=G,s=v,i=I){const a=e.includes("--json"),r=e.filter(t=>t!=="--json"),c=(t,n)=>{o.stdout(a?`${JSON.stringify(t,null,2)}
3
- `:`${n}
4
- `)},k=s.map(t=>t.spec),y=new AbortController,w={cwd:o.cwd,env:o.env,progress:t=>{o.stderr(`${t}
5
- `)},signal:y.signal};if(r[0]==="--version"||r[0]==="-v")return c({version:x},x),d.ok;if(r.length===0||r[0]==="help"||r[0]==="--help"||r[0]==="-h"){const t=r.slice(1),n=await H(o.cwd).catch(()=>{});if(t.length===0){const g=(await Promise.all(i.map(b=>b.nouns(w).catch(()=>[])))).flat();return c({version:x,docs:n?.dir,works:J,commands:k.map(O),made:[...i.flatMap(b=>b.entries),...g]},D(k,i,g,n?.dir)),d.ok}const m=t.length===1?T(t[0]??""):void 0;if(m)return c({...m,docsDir:n?.dir},R(m,k,i,n?.dir)),d.ok;let u;try{u=await resolveCommand(t,w,s,i)}catch(g){return h(g)}const{command:l,rest:C}=u;return l&&u.list===!0?await $(l,C):!l||C.length>0?h(new p("unknown-command",`allyhub has no command "${t.join(" ")}".`,{exit:d.usage,hint:"allyhub help lists them and the works."})):(c(E(l),j(l.spec,l.about?.lines)),d.ok)}let N;try{N=await resolveCommand(r,w,s,i)}catch(t){return h(t)}const{command:f,rest:S}=N;if(!f)return h(new p("unknown-command",`allyhub has no command "${r[0]??""}".`,{exit:d.usage,hint:"allyhub help lists them."}));if(S.includes("--help")||S.includes("-h"))return c(E(f),j(f.spec,f.about?.lines)),d.ok;return await $(f,S);async function $(t,n){const m=()=>{y.abort(new p("interrupted","Stopped.",{exit:d.interrupted}))};process.once("SIGINT",m);try{const u=A(t.spec,n),l=await t.run(u,w);return c(l.value,l.text),l.exit??d.ok}catch(u){return h(u)}finally{process.off("SIGINT",m)}}function h(t){const n=t instanceof p?t:y.signal.aborted?new p("interrupted","Stopped.",{exit:d.interrupted}):new p("failed",t instanceof Error?t.message:String(t));return a?o.stdout(`${JSON.stringify({error:{code:n.code,message:n.message,...n.hint?{hint:n.hint}:{}}},null,2)}
6
- `):o.stderr(`${n.message}${n.hint?`
7
- ${n.hint}`:""}
8
- `),n.exit}}
2
+ import{readFileSync as D}from"node:fs";import{EXIT as m,describeCommand as I}from"@allyhub-next/protocol";import{readArgs as R}from"./args.js";import{CommandError as h}from"./command.js";import{COMMAND_SOURCES as M,COMMANDS as x}from"./commands/index.js";import{commandHelp as j,listHelp as T,workHelp as H}from"./help.js";import{sdkDocs as J}from"./sdk-docs.js";import{WORKS as G,cloudNouns as U,workNamed as W,workTitle as E}from"./works.js";const N=JSON.parse(D(new URL("../package.json",import.meta.url),"utf8")).version,F={stdout:t=>process.stdout.write(t),stderr:t=>process.stderr.write(t),cwd:process.cwd(),env:process.env};export function findCommand(t,s=x){let i;for(const c of s){const l=c.spec.name.split(" ");l.every((o,a)=>t[a]===o)&&l.length>(i?.length??0)&&(i={command:c,length:l.length})}return i?{command:i.command,rest:t.slice(i.length)}:{rest:[...t]}}export async function resolveCommand(t,s,i=x,c=M){const l=findCommand(t,i);if(l.command)return l;for(const o of c){const a=await o.resolve(t,s);if(a)return a}return l}const A=t=>({...I(t.spec),...t.about?.value});export async function main(t,s=F,i=x,c=M){const l=t.includes("--json"),o=t.filter(n=>n!=="--json"),a=(n,e)=>{s.stdout(l?`${JSON.stringify(n,null,2)}
3
+ `:`${e}
4
+ `)},S=i.map(n=>n.spec),b=new AbortController,y={cwd:s.cwd,env:s.env,progress:n=>{s.stderr(`${n}
5
+ `)},signal:b.signal};if(o[0]==="--version"||o[0]==="-v")return a({version:N},N),m.ok;if(o.length===0||o[0]==="help"||o[0]==="--help"||o[0]==="-h"){const n=o.slice(1),e=await J(s.cwd).catch(()=>{}),k=async()=>{const r=await Promise.all(c.map(u=>u.nouns(y).catch(()=>{})));return r.some(u=>u===void 0)?void 0:r.flatMap(u=>u??[])};if(n.length===0){const r=await k();return a({version:N,docs:e?.dir,works:G.map(u=>({...u,title:E(u,r)})),commands:S.map(I),made:[...c.flatMap(u=>u.entries),...r??[]]},T(S,c,r,e?.dir)),m.ok}const d=n.length===1?W(n[0]??""):void 0;if(d){const r=d.cloud===void 0?[]:await k();return a({...d,title:E(d,r),...d.cloud===void 0?{}:{cloudWorks:r&&U(d,r)},docsDir:e?.dir},H(d,S,c,e?.dir,r)),m.ok}let p;try{p=await resolveCommand(n,y,i,c)}catch(r){return g(r)}const{command:f,rest:O}=p;return f&&p.list===!0?await C(f,O):!f||O.length>0?g(new h("unknown-command",`allyhub has no command "${n.join(" ")}".`,{exit:m.usage,hint:"allyhub help lists them and the works."})):(a(A(f),j(f.spec,f.about?.lines)),m.ok)}let $;try{$=await resolveCommand(o,y,i,c)}catch(n){return g(n)}const{command:w,rest:v}=$;if(!w)return g(new h("unknown-command",`allyhub has no command "${o[0]??""}".`,{exit:m.usage,hint:"allyhub help lists them."}));if(v.includes("--help")||v.includes("-h"))return a(A(w),j(w.spec,w.about?.lines)),m.ok;return await C(w,v);async function C(n,e){const k=()=>{b.abort(new h("interrupted","Stopped.",{exit:m.interrupted}))};process.once("SIGINT",k);try{const d=R(n.spec,e),p=await n.run(d,y);return a(p.value,p.text),p.exit??m.ok}catch(d){return g(d)}finally{process.off("SIGINT",k)}}function g(n){const e=n instanceof h?n:b.signal.aborted?new h("interrupted","Stopped.",{exit:m.interrupted}):new h("failed",n instanceof Error?n.message:String(n));return l?s.stdout(`${JSON.stringify({error:{code:e.code,message:e.message,...e.hint?{hint:e.hint}:{}}},null,2)}
6
+ `):s.stderr(`${e.message}${e.hint?`
7
+ ${e.hint}`:""}
8
+ `),e.exit}}
package/dist/works.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","audio","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"slides",title:"Making a deck",commands:["check","frames","inspect layout","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["check","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet import","sheet","check","dev","render"],docs:["sheets.md"]},{name:"websites",title:"Showing a project's videos in a website (an Astro project)",commands:["site media","render"],docs:["project.md"]},{name:"generating",title:"Making media with AI models: pictures, video, voice, music",commands:["<work>","<work> <tool>","upload","voice"]},{name:"researching",title:"Researching a market online: social media, ad libraries, SEO, web search, e-commerce, app stores, companies",commands:["<work>","<work> <tool>","frames web"]},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference served","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add","model","model capabilities"],docs:["modeling.md","scenery.md"]},{name:"setup",title:"This computer and the account",commands:["auth login","auth status","auth logout","auth token","orgs list","orgs switch","doctor","mcp"]}],workNamed=e=>WORKS.find(s=>s.name===e);
2
+ export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","audio","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"slides",title:"Making a deck",commands:["check","frames","inspect layout","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["check","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet import","sheet","check","dev","render"],docs:["sheets.md"]},{name:"websites",title:"Showing a project's videos in a website (an Astro project)",commands:["site media","render"],docs:["project.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload","voice"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference served","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add","model","model capabilities"],docs:["modeling.md","scenery.md"]},{name:"setup",title:"This computer and the account",commands:["auth login","auth status","auth logout","auth token","orgs list","orgs switch","doctor","mcp"]}],workNamed=e=>WORKS.find(n=>n.name===e);export function cloudNouns(e,n){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(s=>s.cloud?.works??[])),o=e.cloud.works;return n.filter(s=>o===void 0?!t.has(s.name):o.includes(s.name))}export function workTitle(e,n){if(e.cloud===void 0)return e.title;if(n===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,n);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(o=>o.name).join(", ")}`}