allyhub 0.18.0 → 0.20.0

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 (1050) hide show
  1. package/bin/allyhub.js +10 -0
  2. package/dist/args.js +1 -1
  3. package/dist/command.js +1 -1
  4. package/dist/commands/add.js +1 -1
  5. package/dist/commands/align.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/check.js +1 -1
  8. package/dist/commands/cloud-tools.js +2 -2
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/contributed.js +1 -1
  11. package/dist/commands/dev.js +5 -5
  12. package/dist/commands/export.js +3 -0
  13. package/dist/commands/found-extensions.js +2 -0
  14. package/dist/commands/frames/common.js +1 -1
  15. package/dist/commands/frames/doc.js +1 -1
  16. package/dist/commands/frames/piece.js +1 -1
  17. package/dist/commands/frames/sheet.js +1 -1
  18. package/dist/commands/frames.js +9 -9
  19. package/dist/commands/index.js +1 -1
  20. package/dist/commands/inspect/combos.js +1 -1
  21. package/dist/commands/inspect/common.js +3 -3
  22. package/dist/commands/inspect/facts.js +2 -2
  23. package/dist/commands/inspect/index.js +1 -1
  24. package/dist/commands/inspect/layout.js +1 -1
  25. package/dist/commands/inspect/views.js +1 -1
  26. package/dist/commands/list.js +2 -0
  27. package/dist/commands/mail.js +1 -1
  28. package/dist/commands/migrate.js +3 -0
  29. package/dist/commands/run-context.js +2 -0
  30. package/dist/commands/skills.js +3 -3
  31. package/dist/commands/upgrade.js +5 -0
  32. package/dist/commands.json +1 -0
  33. package/dist/fields.js +1 -1
  34. package/dist/help.js +3 -3
  35. package/dist/main.js +8 -7
  36. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  37. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  38. package/dist/node_modules/@allyhub/3d-extension/package.json +4 -3
  39. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  40. package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
  41. package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
  42. package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
  43. package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
  44. package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
  45. package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
  46. package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
  47. package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
  48. package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
  49. package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
  50. package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
  51. package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
  52. package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
  53. package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
  54. package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
  55. package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
  56. package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
  57. package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
  58. package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
  59. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
  60. package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
  61. package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
  62. package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
  63. package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
  64. package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
  65. package/dist/node_modules/@allyhub/blocks/package.json +19 -0
  66. package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
  67. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  68. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  69. package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
  70. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  71. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  72. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  73. package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
  74. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  75. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  76. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  77. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  78. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  79. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  80. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  81. package/dist/node_modules/@allyhub/build/package.json +13 -1
  82. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  83. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  84. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
  85. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
  86. package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
  87. package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
  88. package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
  89. package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
  90. package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
  91. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  92. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  93. package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
  94. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  95. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  96. package/dist/node_modules/@allyhub/check/package.json +1 -1
  97. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  98. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  99. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  100. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  101. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  102. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  103. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  104. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  105. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  106. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  107. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  108. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  109. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  110. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  111. package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
  112. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  113. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  114. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  115. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  116. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  117. package/dist/node_modules/@allyhub/components/package.json +1 -1
  118. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  119. package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
  120. package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
  121. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  122. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
  123. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  124. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  125. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  126. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  127. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  128. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
  129. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  130. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
  131. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  132. package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
  133. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  134. package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
  135. package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
  136. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
  137. package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
  138. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  139. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  140. package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
  141. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  142. package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
  143. package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
  144. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
  145. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  146. package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
  147. package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
  148. package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
  149. package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
  150. package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
  151. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  152. package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
  153. package/dist/node_modules/@allyhub/doc/package.json +5 -1
  154. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  155. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  156. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
  157. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
  158. package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
  159. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  160. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  161. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
  162. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
  163. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  164. package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
  165. package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
  166. package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
  167. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
  168. package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
  169. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  170. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  171. package/dist/node_modules/@allyhub/export/package.json +1 -1
  172. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  173. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  174. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  175. package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
  176. package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
  177. package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
  178. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
  179. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
  180. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
  181. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  182. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
  183. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
  184. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
  185. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
  186. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
  187. package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
  188. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
  189. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
  190. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
  191. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
  192. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  193. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
  194. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  195. package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
  196. package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
  197. package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
  198. package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
  199. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  200. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  201. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
  202. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  203. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +36 -10
  204. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  205. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  206. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
  207. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  208. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
  209. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
  210. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  211. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
  212. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
  213. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  214. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
  215. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
  216. package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
  217. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  218. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
  219. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
  220. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  221. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
  222. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
  223. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  224. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
  225. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
  226. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  227. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  228. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  229. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  230. package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
  231. package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
  232. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
  233. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  234. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  235. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
  236. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
  237. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  238. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  239. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  240. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  241. package/dist/node_modules/@allyhub/media/package.json +5 -1
  242. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
  243. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  244. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
  245. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
  246. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  247. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
  248. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  249. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  250. package/dist/node_modules/@allyhub/model/package.json +1 -1
  251. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  252. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
  253. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  254. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  255. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  256. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
  257. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  258. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  259. package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
  260. package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
  261. package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
  262. package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
  263. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  264. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
  265. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  266. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
  268. package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
  269. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +9 -3
  270. package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
  271. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +5 -2
  272. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  273. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  274. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  275. package/dist/node_modules/@allyhub/project/package.json +1 -1
  276. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  277. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  278. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  279. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  280. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  281. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  282. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  283. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  284. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  285. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  286. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  287. package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
  288. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  289. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  290. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  291. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  292. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  293. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  294. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  295. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  296. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  297. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  298. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  299. package/dist/node_modules/@allyhub/render/package.json +9 -1
  300. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  301. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  302. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  303. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  304. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  305. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  306. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
  307. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
  308. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  309. package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
  310. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  311. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  312. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  313. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  314. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  315. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  317. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  322. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  323. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  324. package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
  325. package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
  326. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  327. package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
  328. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  329. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  330. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  331. package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
  332. package/dist/node_modules/@allyhub/sheet/dist/html.js +9 -9
  333. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  334. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  335. package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
  336. package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
  337. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
  338. package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
  339. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  340. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  341. package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
  342. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
  343. package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
  344. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  345. package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
  346. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  347. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  348. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  349. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  350. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
  351. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  352. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  353. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  354. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  355. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
  356. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  357. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
  358. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  359. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
  360. package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
  361. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
  362. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
  363. package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
  364. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  365. package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
  366. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  367. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  368. package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
  369. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  370. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  371. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  372. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  373. package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
  374. package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
  375. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  376. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  377. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  378. package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
  379. package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
  380. package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
  381. package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
  382. package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
  383. package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
  384. package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
  385. package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
  386. package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
  387. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  388. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  389. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
  390. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  391. package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
  392. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
  393. package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
  394. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  395. package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
  396. package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
  397. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  398. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
  399. package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
  400. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  401. package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
  402. package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
  403. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
  404. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
  405. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  406. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  407. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  408. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  409. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  410. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  411. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  412. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  413. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  414. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
  415. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  416. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  417. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
  418. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  419. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  420. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
  421. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
  422. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
  423. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
  424. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
  425. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
  426. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
  427. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
  428. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
  429. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
  430. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
  431. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
  432. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
  433. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
  434. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
  435. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
  436. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
  437. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
  438. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
  439. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
  440. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
  441. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
  442. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  443. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  444. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  445. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  446. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  447. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  448. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  449. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  450. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  451. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  452. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  453. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  454. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  455. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  456. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  457. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  458. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  459. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  460. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  461. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  462. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
  463. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
  464. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  465. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
  466. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
  467. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
  468. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  469. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
  470. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
  471. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
  472. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
  473. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
  474. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
  475. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
  476. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
  477. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
  478. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
  479. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
  480. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
  481. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
  482. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
  483. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
  484. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
  485. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
  486. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
  487. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
  488. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
  489. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
  490. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
  491. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
  492. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
  493. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
  494. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
  495. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
  496. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
  497. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
  498. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
  499. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
  500. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
  501. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
  502. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
  503. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
  504. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
  505. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
  506. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
  507. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
  508. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
  509. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
  510. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
  511. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
  512. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
  513. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  514. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  515. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  516. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  517. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
  518. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
  519. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  520. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
  521. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  522. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
  523. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  524. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
  525. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  526. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
  527. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
  528. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
  529. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
  530. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
  531. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
  532. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
  533. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
  534. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  535. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  536. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  537. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  538. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  539. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  540. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
  541. package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
  542. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  543. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
  544. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  545. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  546. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  547. package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
  548. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  549. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  550. package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
  551. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  552. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  553. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  554. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
  555. package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
  556. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  557. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  558. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
  559. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
  560. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
  561. package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
  562. package/dist/node_modules/@allyhub/video-extension/package.json +7 -26
  563. package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
  564. package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
  565. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  566. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  567. package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
  568. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  569. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  570. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  571. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
  572. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  573. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  574. package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
  575. package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
  576. package/dist/node_modules/@allyhub/website/package.json +1 -1
  577. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  578. package/dist/node_modules/@allyhub/website-extension/package.json +6 -6
  579. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  580. package/dist/node_modules/@allyhub/x-extension/package.json +8 -4
  581. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
  582. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  583. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  584. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  585. package/dist/package.json +14 -14
  586. package/dist/project.js +1 -1
  587. package/dist/resources.js +1 -1
  588. package/dist/sdk-docs.js +1 -1
  589. package/dist/self-upgrade.js +2 -0
  590. package/dist/slot.js +4 -0
  591. package/dist/telemetry.js +1 -1
  592. package/dist/text/batch-text.js +1 -1
  593. package/dist/text/facts-text.js +5 -5
  594. package/dist/text/format.js +2 -2
  595. package/dist/update-notice.js +3 -0
  596. package/dist/version.js +1 -1
  597. package/dist/works.js +1 -1
  598. package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
  599. package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
  600. package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
  601. package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
  602. package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
  603. package/editor-web/assets/article-DHf6mOY_.js +7 -0
  604. package/editor-web/assets/article-Dns1-Xh-.js +3 -0
  605. package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
  606. package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
  607. package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
  608. package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
  609. package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
  610. package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
  611. package/editor-web/assets/channel-CVWSV3su.js +1 -0
  612. package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
  613. package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
  614. package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
  615. package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
  616. package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
  617. package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
  618. package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
  619. package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
  620. package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
  621. package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
  622. package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
  623. package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
  624. package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
  625. package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
  626. package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
  627. package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
  628. package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
  629. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
  630. package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
  631. package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
  632. package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
  633. package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
  634. package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
  635. package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
  636. package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
  637. package/editor-web/assets/deck-DQpNIS2p.js +1 -0
  638. package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
  639. package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
  640. package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
  641. package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
  642. package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
  643. package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
  644. package/editor-web/assets/dist--z0ZHp4T.js +16 -0
  645. package/editor-web/assets/dist-9kuRjUTN.js +41 -0
  646. package/editor-web/assets/dist-B3rd02Cg.js +6 -0
  647. package/editor-web/assets/dist-B5GOGGEe.js +1 -0
  648. package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
  649. package/editor-web/assets/dist-C4hHtrJr.js +1 -0
  650. package/editor-web/assets/dist-CCXJewsi.js +19 -0
  651. package/editor-web/assets/dist-CfK2BLl8.js +4 -0
  652. package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
  653. package/editor-web/assets/dist-Cspf85KV.js +6 -0
  654. package/editor-web/assets/dist-DA72-4WB.js +82 -0
  655. package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
  656. package/editor-web/assets/dist-DIJnhQFK.js +9 -0
  657. package/editor-web/assets/dist-DOrGo1GD.js +19 -0
  658. package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
  659. package/editor-web/assets/dist-DjiCHlSu.js +35 -0
  660. package/editor-web/assets/dist-Do4a40Wn.js +19 -0
  661. package/editor-web/assets/dist-FKEWS3Co.js +547 -0
  662. package/editor-web/assets/dist-QKd2i6kG.js +5 -0
  663. package/editor-web/assets/dist-SGnOfLhx.js +24 -0
  664. package/editor-web/assets/dist-VmVB7tl4.js +3 -0
  665. package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-L54blreB.js} +1 -1
  666. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
  667. package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
  668. package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
  669. package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
  670. package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
  671. package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
  672. package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
  673. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
  674. package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
  675. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
  676. package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
  677. package/editor-web/assets/hint-CbwoSBMw.js +1 -0
  678. package/editor-web/assets/index-CXisi0Cj.css +2 -0
  679. package/editor-web/assets/index-wMlfx8aT.js +28 -0
  680. package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-CdPrqere.js} +1 -1
  681. package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
  682. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
  683. package/editor-web/assets/iso-UwGLGD3F.js +1 -0
  684. package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
  685. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
  686. package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
  687. package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
  688. package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
  689. package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-BOln9YdH.js} +4 -4
  690. package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
  691. package/editor-web/assets/minus-ngE8owxs.js +1 -0
  692. package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
  693. package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
  694. package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
  695. package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
  696. package/editor-web/assets/progress-DZQTiRLv.js +6 -0
  697. package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
  698. package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
  699. package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
  700. package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
  701. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
  702. package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
  703. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
  704. package/editor-web/assets/react-Byupo4pA.js +1 -0
  705. package/editor-web/assets/replace-CLLMtF4e.js +1 -0
  706. package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
  707. package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
  708. package/editor-web/assets/row-Bei9HNEe.js +1 -0
  709. package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
  710. package/editor-web/assets/schemas-C21MyseF.js +1 -0
  711. package/editor-web/assets/{iso-ahTwmFwH.js → schemas-DlRAoVtq.js} +1 -1
  712. package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
  713. package/editor-web/assets/search-D75Bi2GU.js +1 -0
  714. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
  715. package/editor-web/assets/{session-Beijw9EK.js → session-BhClkDyr.js} +1 -1
  716. package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
  717. package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
  718. package/editor-web/assets/sound-DkR3qxSt.js +1 -0
  719. package/editor-web/assets/split-DBAbwPZ5.js +3 -0
  720. package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
  721. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
  722. package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
  723. package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
  724. package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
  725. package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
  726. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
  727. package/editor-web/assets/switch-DrZxoPQS.js +1 -0
  728. package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
  729. package/editor-web/assets/table-BW43XXVd.js +1 -0
  730. package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
  731. package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
  732. package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
  733. package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
  734. package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
  735. package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
  736. package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
  737. package/editor-web/assets/type-CvZ0HZsV.js +41 -0
  738. package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
  739. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
  740. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
  741. package/editor-web/assets/video-SJvDRCJK.js +1 -0
  742. package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
  743. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
  744. package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
  745. package/editor-web/assets/{words-0Ww2RyT4.js → words-BUlNNuH2.js} +3 -3
  746. package/editor-web/assets/words-zMedmPWc.js +3 -0
  747. package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
  748. package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
  749. package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
  750. package/editor-web/index.html +9 -8
  751. package/package.json +3 -3
  752. package/CHANGELOG.md +0 -243
  753. package/dist/commands/render.js +0 -3
  754. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  755. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  756. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  757. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  758. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  759. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  760. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  761. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  762. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  763. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  764. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  765. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  766. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  767. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  768. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  769. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  770. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  771. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  772. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  773. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  774. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  775. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  776. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  777. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  778. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  779. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  780. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  781. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  782. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  783. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  784. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  785. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  786. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  787. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  788. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  789. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  790. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  791. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  792. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
  793. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  794. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  795. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  796. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  797. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  798. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  799. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  800. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  801. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  802. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
  803. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  804. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  805. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  806. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  807. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  808. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  809. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  810. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  811. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  812. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  813. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  814. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  815. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  816. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  817. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  818. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  819. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  820. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  821. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  822. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  823. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  824. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  825. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  826. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  827. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  828. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  829. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  830. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  831. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  832. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  833. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  834. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  835. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  836. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  837. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  838. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  839. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  840. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  841. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  842. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  843. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  844. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  845. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  846. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  847. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  848. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  849. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  850. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  851. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  852. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  853. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  854. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  855. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  856. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  857. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  858. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  859. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  860. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  861. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  862. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  863. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  864. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  865. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  866. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  867. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  868. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  869. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  870. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  871. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  872. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  873. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  874. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  875. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  876. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  877. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  878. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  879. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  880. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  881. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  882. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  883. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  884. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  885. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  886. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  887. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  888. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  889. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  890. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  891. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  892. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  893. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  894. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  895. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  896. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  897. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  898. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  899. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  900. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  901. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  902. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  903. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  904. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  905. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  906. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
  907. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  908. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  909. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  910. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  911. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  912. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  913. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  914. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  915. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  916. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  917. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  918. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  919. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  920. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  921. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  922. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  923. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  924. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  925. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  926. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  927. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
  928. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  929. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  930. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  931. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  932. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  933. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  934. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  935. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
  936. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  937. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  938. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  939. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  940. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  941. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  942. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  943. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  944. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  945. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  946. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  947. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  948. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  949. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  950. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  951. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  952. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  953. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  954. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  955. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  956. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  957. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  958. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  959. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  960. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  961. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  962. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  963. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  964. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  965. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  966. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  967. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  968. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  969. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  970. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  971. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  972. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  973. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  974. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  975. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  976. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  977. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  978. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  979. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  980. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  981. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  982. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  983. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  984. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  985. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  986. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
  987. package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
  988. package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
  989. package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
  990. package/editor-web/assets/article-CS48wwvk.js +0 -3
  991. package/editor-web/assets/article-Cyle57uq.js +0 -7
  992. package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
  993. package/editor-web/assets/calc-worker-BdHh5LXM.js +0 -45
  994. package/editor-web/assets/channel-HUlo15J7.js +0 -1
  995. package/editor-web/assets/chart-amT4lgX3.js +0 -2
  996. package/editor-web/assets/chart-file-CfbWK9l1.js +0 -1
  997. package/editor-web/assets/code-CD-CbJG9.js +0 -1
  998. package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
  999. package/editor-web/assets/deck-CtEtDHo2.js +0 -1
  1000. package/editor-web/assets/dist-BBshIz1Q.js +0 -5
  1001. package/editor-web/assets/dist-BI8QjOsV.js +0 -1
  1002. package/editor-web/assets/dist-BajH5QfK.js +0 -24
  1003. package/editor-web/assets/dist-Bl74xqMW.js +0 -19
  1004. package/editor-web/assets/dist-BrUtQth3.js +0 -18
  1005. package/editor-web/assets/dist-CN5A7Au2.js +0 -1
  1006. package/editor-web/assets/dist-CcL6r6l3.js +0 -1
  1007. package/editor-web/assets/dist-D2E3cgRP.js +0 -4
  1008. package/editor-web/assets/dist-D3C6FyrO.js +0 -82
  1009. package/editor-web/assets/dist-DGKjn59H.js +0 -16
  1010. package/editor-web/assets/dist-NQNQ5HqZ.js +0 -17
  1011. package/editor-web/assets/dist-SV0sOVIC.js +0 -43
  1012. package/editor-web/assets/dist-YW8hS4IM.js +0 -9
  1013. package/editor-web/assets/dist-Y_XZZa8q.js +0 -531
  1014. package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
  1015. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  1016. package/editor-web/assets/dist-elglzHMT.js +0 -6
  1017. package/editor-web/assets/dist-hHcrvNn9.js +0 -1
  1018. package/editor-web/assets/esm-DzxAod8Q.js +0 -21
  1019. package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
  1020. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
  1021. package/editor-web/assets/hint-rlht0uxG.js +0 -1
  1022. package/editor-web/assets/index-Dvh1t1om.css +0 -2
  1023. package/editor-web/assets/index-q7X6hdHp.js +0 -28
  1024. package/editor-web/assets/minus-CbPnUIOy.js +0 -1
  1025. package/editor-web/assets/progress-CwKcXARv.js +0 -6
  1026. package/editor-web/assets/props-form-DUFxM5eb.js +0 -1
  1027. package/editor-web/assets/react-Edyoga_4.js +0 -1
  1028. package/editor-web/assets/row-C_svyL8o.js +0 -1
  1029. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  1030. package/editor-web/assets/search-Ba2BbT6T.js +0 -1
  1031. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  1032. package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
  1033. package/editor-web/assets/sound-bTlco_K3.js +0 -1
  1034. package/editor-web/assets/split-zARio3J8.js +0 -3
  1035. package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
  1036. package/editor-web/assets/surface-DtCjIlrq.js +0 -1
  1037. package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
  1038. package/editor-web/assets/swatch-DhztHwPU.js +0 -1
  1039. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
  1040. package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
  1041. package/editor-web/assets/table-DRbddzx0.js +0 -1
  1042. package/editor-web/assets/tabs-BHBvbekZ.js +0 -1
  1043. package/editor-web/assets/tag-CIfWT8B_.js +0 -1
  1044. package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
  1045. package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
  1046. package/editor-web/assets/video-oJ3qa1Qv.js +0 -1
  1047. package/editor-web/assets/words-XlXG79Ur.js +0 -3
  1048. package/editor-web/assets/workbook-DznVDqoE.js +0 -45
  1049. package/editor-web/assets/x-DlhyIKuu.js +0 -41
  1050. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
package/bin/allyhub.js CHANGED
@@ -30,6 +30,15 @@ function local() {
30
30
  const versionOf = (dir) =>
31
31
  JSON.parse(readFileSync(join(dir, "package.json"), "utf8")).version;
32
32
 
33
+ // Run by an agent in Studio, a command waits for one of the machine's
34
+ // slots before it loads anything more (src/slot.ts); what it hands the run
35
+ // to, or starts, runs in the same slot.
36
+ const { SLOT_HELD, takeSlot } = await import("../dist/slot.js");
37
+ const slot = await takeSlot(process.env, process.argv.slice(2), (line) =>
38
+ process.stderr.write(`${line}\n`),
39
+ );
40
+ if (slot.held) process.env[SLOT_HELD] = "1";
41
+
33
42
  const theirs = local();
34
43
  if (theirs !== undefined) {
35
44
  const [mine, project] = [versionOf(own), versionOf(theirs)];
@@ -41,4 +50,5 @@ if (theirs !== undefined) {
41
50
  } else {
42
51
  const { run } = await import("../dist/main.js");
43
52
  process.exitCode = await run(process.argv.slice(2));
53
+ slot.release();
44
54
  }
package/dist/args.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{parseArgs as T}from"node:util";import{z as x}from"zod";import{EXIT as z}from"@allyhub/protocol";import{CommandError as E}from"./command.js";const k=s=>s._zod.def;export function shapeOf(s){let r=s,a;for(;;){const n=k(r);if((n.type==="default"||n.type==="prefault")&&(a=typeof n.defaultValue=="function"?n.defaultValue():n.defaultValue),(n.type==="optional"||n.type==="default"||n.type==="prefault"||n.type==="nullable")&&n.innerType){r=n.innerType;continue}const l=f=>{const o=k(f).type;if(o==="boolean")return"boolean";if(o==="number"||o==="int")return"number";if(o==="union"){const m=new Set((k(f).options??[]).map(l));return m.size===1?[...m][0]??"string":"string"}return"string"};return n.type==="array"&&n.element?{kind:l(n.element),list:!0,...a===void 0?{}:{fallback:a}}:{kind:l(r),list:!1,...a===void 0?{}:{fallback:a}}}}export function paramsOf(s){let r=s;for(;r;){const a=k(r);if(a.type==="object")return r.shape;r=a.innerType}}export const optionName=s=>s.replaceAll(/[A-Z]/gu,r=>`-${r.toLowerCase()}`);export function splitList(s){const r=[];let a=0,n=!1,l=0;for(let f=0;f<s.length;f++){const o=s[f];n?o==="\\"?f++:o==='"'&&(n=!1):o==='"'&&a>0?n=!0:o==="["||o==="{"?a++:(o==="]"||o==="}")&&a>0?a--:o===","&&a===0&&(r.push(s.slice(l,f)),l=f+1)}return r.push(s.slice(l)),r}const g=(s,r)=>new E("usage",s,{exit:z.usage,...r===void 0?{}:{hint:r}});function M(s,r){const a=[];for(let n=0;n<s.length;n++){const l=s[n]??"",f=s[n+1],o=l.startsWith("--")&&!l.includes("=")?l.slice(2):"";o!==""&&r(o)&&f!==void 0&&/^-\.?\d/u.test(f)?(a.push(`${l}=${f}`),n++):a.push(l)}return a}export function readArgs(s,r){const a=s.input.shape,n=Object.entries(a),l=[...s.positional??[]],f=new Map(n.map(([t,e])=>[t,shapeOf(e)])),o={},m=new Map,h=paramsOf(a.params);h&&(o.param={type:"string",multiple:!0});for(const[t]of n){if(l.includes(t)||h&&t==="params")continue;const e=f.get(t);if(!e)continue;const i=optionName(t);m.set(i,t),o[i]={type:e.kind==="boolean"&&!e.list?"boolean":"string",...e.list?{multiple:!0}:{}},e.kind==="boolean"&&!e.list&&(o[`no-${i}`]={type:"boolean"})}let $;try{$=T({args:M(r,t=>o[t]?.type==="string"),options:o,allowPositionals:!0,strict:!0})}catch(t){const e=[...m.keys()].map(i=>`--${i}`).join(", ");throw g(t.message,e?`${s.name} takes ${e}.`:`${s.name} takes no options.`)}const d={},y=(t,e)=>{if(f.get(t)?.kind!=="number")return e;const p=Number(e);if(e.trim()===""||!Number.isFinite(p))throw g(`--${optionName(t)} is a number, not "${e}".`);return p};if(h){const t={};for(const e of $.values.param??[]){const i=e.indexOf("="),p=i<0?e:e.slice(0,i),u=Object.keys(h).find(c=>optionName(c)===p||c===p);if(u===void 0||i<0)throw g(i<0?`--param ${e}: write it as name=value.`:`--param: ${s.name} has no parameter "${p}".`,`Its parameters: ${Object.keys(h).map(optionName).join(", ")}.`);const w=e.slice(i+1),{kind:O,list:A}=shapeOf(h[u]??x.string()),v=c=>{if(O==="number"){const N=Number(c);if(c.trim()===""||!Number.isFinite(N))throw g(`--param ${p} is a number, not "${c}".`);return N}return O==="boolean"?c==="true"||c==="1"||c==="yes":c};t[u]=A?splitList(w).filter(c=>c!=="").map(v):v(w)}d.params=t}for(const[t,e]of Object.entries($.values)){if(t==="param"&&h)continue;if(t.startsWith("no-")&&m.has(t.slice(3))){const u=m.get(t.slice(3))??"";e===!0&&(d[u]=!1);continue}const i=m.get(t);if(i===void 0)continue;const p=f.get(i);Array.isArray(e)?d[i]=e.flatMap(u=>splitList(String(u))).filter(u=>u!=="").map(u=>y(i,u)):typeof e=="boolean"?d[i]=e:typeof e=="string"&&(d[i]=p?.list?splitList(e).map(u=>y(i,u)):y(i,e))}const b=[...$.positionals];if(l.forEach((t,e)=>{const i=f.get(t),p=e===l.length-1;if(i?.list&&p){b.length>0&&(d[t]=b.splice(0).map(w=>y(t,w)));return}const u=b.shift();u!==void 0&&(d[t]=y(t,u))}),b.length>0)throw g(`${s.name} does not take "${b.join(" ")}".`);const j=s.input.safeParse(d);if(!j.success){const t=j.error.issues[0],e=String(t?.path[0]??""),i=l.includes(e)?`<${e}>`:e?`--${optionName(e)}`:s.name;throw g(`${i}: ${t?.message??"not valid"}.`)}return j.data}
2
+ import{parseArgs as T}from"node:util";import{z as x}from"zod";import{EXIT as z}from"@allyhub/protocol/cli";import{CommandError as E}from"./command.js";const k=s=>s._zod.def;export function shapeOf(s){let r=s,a;for(;;){const n=k(r);if((n.type==="default"||n.type==="prefault")&&(a=typeof n.defaultValue=="function"?n.defaultValue():n.defaultValue),(n.type==="optional"||n.type==="default"||n.type==="prefault"||n.type==="nullable")&&n.innerType){r=n.innerType;continue}const l=f=>{const o=k(f).type;if(o==="boolean")return"boolean";if(o==="number"||o==="int")return"number";if(o==="union"){const m=new Set((k(f).options??[]).map(l));return m.size===1?[...m][0]??"string":"string"}return"string"};return n.type==="array"&&n.element?{kind:l(n.element),list:!0,...a===void 0?{}:{fallback:a}}:{kind:l(r),list:!1,...a===void 0?{}:{fallback:a}}}}export function paramsOf(s){let r=s;for(;r;){const a=k(r);if(a.type==="object")return r.shape;r=a.innerType}}export const optionName=s=>s.replaceAll(/[A-Z]/gu,r=>`-${r.toLowerCase()}`);export function splitList(s){const r=[];let a=0,n=!1,l=0;for(let f=0;f<s.length;f++){const o=s[f];n?o==="\\"?f++:o==='"'&&(n=!1):o==='"'&&a>0?n=!0:o==="["||o==="{"?a++:(o==="]"||o==="}")&&a>0?a--:o===","&&a===0&&(r.push(s.slice(l,f)),l=f+1)}return r.push(s.slice(l)),r}const g=(s,r)=>new E("usage",s,{exit:z.usage,...r===void 0?{}:{hint:r}});function M(s,r){const a=[];for(let n=0;n<s.length;n++){const l=s[n]??"",f=s[n+1],o=l.startsWith("--")&&!l.includes("=")?l.slice(2):"";o!==""&&r(o)&&f!==void 0&&/^-\.?\d/u.test(f)?(a.push(`${l}=${f}`),n++):a.push(l)}return a}export function readArgs(s,r){const a=s.input.shape,n=Object.entries(a),l=[...s.positional??[]],f=new Map(n.map(([t,e])=>[t,shapeOf(e)])),o={},m=new Map,h=paramsOf(a.params);h&&(o.param={type:"string",multiple:!0});for(const[t]of n){if(l.includes(t)||h&&t==="params")continue;const e=f.get(t);if(!e)continue;const i=optionName(t);m.set(i,t),o[i]={type:e.kind==="boolean"&&!e.list?"boolean":"string",...e.list?{multiple:!0}:{}},e.kind==="boolean"&&!e.list&&(o[`no-${i}`]={type:"boolean"})}let $;try{$=T({args:M(r,t=>o[t]?.type==="string"),options:o,allowPositionals:!0,strict:!0})}catch(t){const e=[...m.keys()].map(i=>`--${i}`).join(", ");throw g(t.message,e?`${s.name} takes ${e}.`:`${s.name} takes no options.`)}const d={},y=(t,e)=>{if(f.get(t)?.kind!=="number")return e;const p=Number(e);if(e.trim()===""||!Number.isFinite(p))throw g(`--${optionName(t)} is a number, not "${e}".`);return p};if(h){const t={};for(const e of $.values.param??[]){const i=e.indexOf("="),p=i<0?e:e.slice(0,i),u=Object.keys(h).find(c=>optionName(c)===p||c===p);if(u===void 0||i<0)throw g(i<0?`--param ${e}: write it as name=value.`:`--param: ${s.name} has no parameter "${p}".`,`Its parameters: ${Object.keys(h).map(optionName).join(", ")}.`);const w=e.slice(i+1),{kind:O,list:A}=shapeOf(h[u]??x.string()),v=c=>{if(O==="number"){const N=Number(c);if(c.trim()===""||!Number.isFinite(N))throw g(`--param ${p} is a number, not "${c}".`);return N}return O==="boolean"?c==="true"||c==="1"||c==="yes":c};t[u]=A?splitList(w).filter(c=>c!=="").map(v):v(w)}d.params=t}for(const[t,e]of Object.entries($.values)){if(t==="param"&&h)continue;if(t.startsWith("no-")&&m.has(t.slice(3))){const u=m.get(t.slice(3))??"";e===!0&&(d[u]=!1);continue}const i=m.get(t);if(i===void 0)continue;const p=f.get(i);Array.isArray(e)?d[i]=e.flatMap(u=>splitList(String(u))).filter(u=>u!=="").map(u=>y(i,u)):typeof e=="boolean"?d[i]=e:typeof e=="string"&&(d[i]=p?.list?splitList(e).map(u=>y(i,u)):y(i,e))}const b=[...$.positionals];if(l.forEach((t,e)=>{const i=f.get(t),p=e===l.length-1;if(i?.list&&p){b.length>0&&(d[t]=b.splice(0).map(w=>y(t,w)));return}const u=b.shift();u!==void 0&&(d[t]=y(t,u))}),b.length>0)throw g(`${s.name} does not take "${b.join(" ")}".`);const j=s.input.safeParse(d);if(!j.success){const t=j.error.issues[0],e=String(t?.path[0]??""),i=l.includes(e)?`<${e}>`:e?`--${optionName(e)}`:s.name;throw g(`${i}: ${t?.message??"not valid"}.`)}return j.data}
package/dist/command.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CommandError as m,command as n}from"@allyhub/protocol";export function defineCommand(o,r){return{spec:n(o),run:r}}export{m as CommandError};
2
+ import{CommandError as m,command as n}from"@allyhub/protocol/cli";export function defineCommand(o,r){return{spec:n(o),run:r}}export{m as CommandError};
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as Y}from"node:fs/promises";import{join as x,posix as B,relative as V}from"node:path";import{fileURLToPath as W}from"node:url";import{z as h}from"zod";import{modelInfo as q}from"@allyhub/build";import{COMPONENTS_DIR as I}from"@allyhub/formats";import{EXIT as f}from"@allyhub/protocol";import{ASSET_DEFAULTS as G,ASSET_TYPES as K,PolyHaven as X,PolyHavenError as Z,RegistryError as J,applyAdd as T,fetchBakes as Q,folderRegistry as D,planAdd as L,searchIndex as O}from"@allyhub/registry";import{cacheHome as ee}from"@allyhub/runtimes";import{CLI_VERSION as te}from"../cli-version.js";import{CommandError as S,defineCommand as C}from"../command.js";import{projectRoot as ne}from"../project.js";import{dir as oe}from"../fields.js";import{resourcesIndex as R}from"../resources.js";const _=W(new URL(".",import.meta.resolve("@allyhub/components/registry.json"))),se=Object.keys(K),A=["component","3d-model","scenery","skill","template","lib","@polyhaven"],ae={"allyhub:component":"component","allyhub:model":"3d-model","allyhub:scenery":"scenery","allyhub:skill":"skill","allyhub:template":"template","allyhub:lib":"lib"},H=e=>ae[e]??e.replace(/^allyhub:/u,""),E=e=>`${H(e.type)}/${e.name}`;function ie(e){const n=/^(@?[a-z0-9-]+)\/(.+)$/u.exec(e),i=A.find(d=>d===n?.[1]);if(i===void 0||n?.[2]===void 0)throw new S("usage",n===null?`Name what to add as <type>/<name>: ${e} has no type.`:`${n[1]??""} is not a type: name what to add as <type>/<name>.`,{exit:f.usage,hint:`Types: ${A.join(", ")} (3d-model/monitor, scenery/home-desk-demo-day, skill/web-product-demos, component/caption-line, @polyhaven/<id>). allyhub add lists every one.`});return{type:i,name:n[2]}}const le={"allyhub:model":"3D models","allyhub:scenery":"3D sceneries","allyhub:skill":"Skills","allyhub:template":"Templates","allyhub:component":"Components","allyhub:lib":"Libs (added with what uses them)"};function F(e,n){if(e.from==="none")return["AllyHub's resources (models, sceneries) could not be read: check the connection."];const i=n??e.index?.items??[],d=Math.max(0,...i.map(s=>E(s).length)),r=[`AllyHub's resources (allyhub add <type>/<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[s,p]of Object.entries(le)){const c=i.filter(u=>u.type===s);c.length!==0&&r.push(` ${p}:`,...c.map(u=>` ${E(u).padEnd(d)} ${u.description}`))}return r}const N=20,z=e=>e.replace(/\.(?:ts|js)$/u,"").replaceAll(/[A-Z]/gu,n=>`-${n.toLowerCase()}`).replace(/^-/u,"");function M(e){return e instanceof J?new S(e.code,e.message,{exit:e.code==="conflict"?f.conflict:e.code==="no-item"?f.notFound:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof Z?new S(e.code,e.message,{exit:e.code==="network"?f.platform:e.code==="not-found"?f.notFound:e.code==="bad-choice"?f.usage:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e}const P=e=>new X({userAgent:`AllyHub/${te} (+https://allyhub.com)`,cacheDir:x(ee(e.env),"polyhaven"),...e.env.ALLYHUB_POLYHAVEN_API?{api:e.env.ALLYHUB_POLYHAVEN_API}:{}}),k=e=>`${e.toFixed(3)} m`;function de(e){const n=[e.type,e.category,e.size?`${k(e.size.width)} wide, ${k(e.size.depth)} deep, ${k(e.size.height)} tall`:void 0,e.covers?`one tile covers ${e.covers.map(k).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(i=>i!==void 0);return` @polyhaven/${e.id}: ${e.name} (${n.join("; ")})
2
+ import{readFile as Y}from"node:fs/promises";import{join as x,posix as B,relative as V}from"node:path";import{fileURLToPath as W}from"node:url";import{z as h}from"zod";import{modelInfo as q}from"@allyhub/build";import{COMPONENTS_DIR as I}from"@allyhub/formats";import{EXIT as f}from"@allyhub/protocol";import{ASSET_DEFAULTS as G,ASSET_TYPES as K,PolyHaven as X,PolyHavenError as Z,RegistryError as J,applyAdd as T,fetchBakes as Q,folderRegistry as D,planAdd as L,searchIndex as O}from"@allyhub/registry";import{cacheHome as ee}from"@allyhub/runtimes/home";import{CLI_VERSION as te}from"../cli-version.js";import{CommandError as S,defineCommand as C}from"../command.js";import{projectRoot as ne}from"../project.js";import{dir as oe}from"../fields.js";import{resourcesIndex as R}from"../resources.js";const _=W(new URL(".",import.meta.resolve("@allyhub/components/registry.json"))),se=Object.keys(K),A=["component","3d-model","scenery","skill","template","lib","@polyhaven"],ae={"allyhub:component":"component","allyhub:model":"3d-model","allyhub:scenery":"scenery","allyhub:skill":"skill","allyhub:template":"template","allyhub:lib":"lib"},H=e=>ae[e]??e.replace(/^allyhub:/u,""),E=e=>`${H(e.type)}/${e.name}`;function ie(e){const n=/^(@?[a-z0-9-]+)\/(.+)$/u.exec(e),i=A.find(d=>d===n?.[1]);if(i===void 0||n?.[2]===void 0)throw new S("usage",n===null?`Name what to add as <type>/<name>: ${e} has no type.`:`${n[1]??""} is not a type: name what to add as <type>/<name>.`,{exit:f.usage,hint:`Types: ${A.join(", ")} (3d-model/monitor, scenery/home-desk-demo-day, skill/web-product-demos, component/caption-line, @polyhaven/<id>). allyhub add lists every one.`});return{type:i,name:n[2]}}const le={"allyhub:model":"3D models","allyhub:scenery":"3D sceneries","allyhub:skill":"Skills","allyhub:template":"Templates","allyhub:component":"Components","allyhub:lib":"Libs (added with what uses them)"};function F(e,n){if(e.from==="none")return["AllyHub's resources (models, sceneries) could not be read: check the connection."];const i=n??e.index?.items??[],d=Math.max(0,...i.map(s=>E(s).length)),r=[`AllyHub's resources (allyhub add <type>/<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[s,p]of Object.entries(le)){const c=i.filter(u=>u.type===s);c.length!==0&&r.push(` ${p}:`,...c.map(u=>` ${E(u).padEnd(d)} ${u.description}`))}return r}const N=20,z=e=>e.replace(/\.(?:ts|js)$/u,"").replaceAll(/[A-Z]/gu,n=>`-${n.toLowerCase()}`).replace(/^-/u,"");function M(e){return e instanceof J?new S(e.code,e.message,{exit:e.code==="conflict"?f.conflict:e.code==="no-item"?f.notFound:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof Z?new S(e.code,e.message,{exit:e.code==="network"?f.platform:e.code==="not-found"?f.notFound:e.code==="bad-choice"?f.usage:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e}const P=e=>new X({userAgent:`AllyHub/${te} (+https://allyhub.com)`,cacheDir:x(ee(e.env),"polyhaven"),...e.env.ALLYHUB_POLYHAVEN_API?{api:e.env.ALLYHUB_POLYHAVEN_API}:{}}),k=e=>`${e.toFixed(3)} m`;function de(e){const n=[e.type,e.category,e.size?`${k(e.size.width)} wide, ${k(e.size.depth)} deep, ${k(e.size.height)} tall`:void 0,e.covers?`one tile covers ${e.covers.map(k).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(i=>i!==void 0);return` @polyhaven/${e.id}: ${e.name} (${n.join("; ")})
3
3
  found in ${e.matchedIn.join(", ")||"everything"}; tags ${e.tags.join(", ")}`}async function U(e,n){const i=[`${n.name} from Poly Haven (CC0, by ${n.source.authors.join(", ")||"its authors"}): ${String(n.files.length)} files in ${n.dir}/, ${n.fetched>0?`${String(n.fetched)} fetched`:"all already there"}. Records: ${n.records.join(", ")}.`];if(n.type==="model"){const r=n.main[0]??"",s=await q(e,r,await Y(x(e,r))),p=s.bounds;return i.push(p?`Measured: ${p.size.map(c=>c.toFixed(3)).join(" × ")} m along x, y (up), z; from ${p.min.map(c=>c.toFixed(3)).join(", ")} to ${p.max.map(c=>c.toFixed(3)).join(", ")}.`:`Not measured: ${s.contentsMissing??"no contents"}.`,...s.missing.length>0?[`Missing: ${s.missing.join(", ")}.`]:[],`In a scenery: const m = await w.load("${r}");`),{lines:i,model:s}}if(n.type==="hdri")return i.push(`In a scenery: await w.environment("${n.main[0]??""}", { background: true });`),{lines:i};const d=n.covers;return i.push(d&&d.length>=2?`One tile covers ${k(d[0]??0)} × ${k(d[1]??0)} (Poly Haven's dimensions): a surface's repeat is its size over that.`:"Poly Haven gives no size for one tile.",...n.main.map((r,s)=>{const p=n.maps?.[s]??"";return` ${p}: await w.texture("${r}"${p==="diffuse"?"":', { colorSpace: "linear" }'})`})),{lines:i}}export const add=C({name:"add",summary:"Adds to the project what AllyHub and Poly Haven have, each named <type>/<name>: a starter component, a 3D model, a 3D scenery, a skill or a template from AllyHub's registry, or a CC0 model, HDRI or texture from Poly Haven; alone it lists everything AllyHub has, by type",input:h.strictObject({name:h.array(h.string()).optional().describe("What to add, each <type>/<name>: component/caption-line, 3d-model/monitor, scenery/home-desk-demo-day, skill/web-product-demos (a skill goes in .agents/skills, linked from .claude/skills), template/<name>, lib/<name>, or @polyhaven/<id> (as allyhub add search prints it)"),to:h.string().optional().describe(`The folder the files go in, from the project (default ${I} for a component; for an asset, its kind's folder under assets/media/ and its id)`),force:h.boolean().default(!1).describe("Replace a component's copy the project changed (its changes are lost)"),res:h.string().optional().describe(`An asset's resolution, of its textures or of the HDRI (default ${G.resolution})`),dir:oe}),positional:["name"],output:h.looseObject({}),examples:["allyhub add","allyhub add component/caption-line","allyhub add 3d-model/monitor scenery/home-desk-demo-day","allyhub add @polyhaven/metal_office_desk --res 2k"]},async(e,n)=>{const i=D(_);try{const d=await i.index();if(!e.name||e.name.length===0){const t=Math.max(...d.items.map(y=>`component/${y.name}`.length)),l=await R(n);return{value:{components:d.items,resources:l.index?.items??[]},text:["Starter components (allyhub add component/<name> copies one into components/; allyhub add search <words> finds among everything, Poly Haven's models, HDRIs and textures too):",...d.items.map(y=>` ${`component/${y.name}`.padEnd(t)} ${y.description}`),"",...F(l,void 0)].join(`
4
4
  `)}}const r=e.name.map(ie),s=await ne(n.cwd,e.dir),p=new Set(d.items.map(t=>t.name)),c=t=>t.type==="component"&&p.has(z(t.name)),u=r.filter(c).map(t=>z(t.name)),v=r.filter(t=>t.type==="@polyhaven").map(t=>t.name),g=r.filter(t=>t.type!=="@polyhaven"&&!c(t)),b=g.length>0?await R(n):void 0;for(const t of g){const l=b?.index?.items.find(y=>y.name===t.name);if(!l)throw new S("no-item",`There is no ${t.type}/${t.name}.`,{exit:f.notFound,hint:b?.from==="none"?"AllyHub's registry could not be read: check the connection.":`allyhub add search --type ${t.type} lists them.`});if(H(l.type)!==t.type)throw new S("usage",`${t.name} is a ${H(l.type)}, not a ${t.type}.`,{exit:f.usage,hint:`allyhub add ${E(l)}`})}const w=g.map(t=>t.name),a=[],j={};if(u.length>0){const t=e.to??I,l=await L(i,u,{root:s,dir:t,force:e.force});await T(s,l);const y=m=>m==="up to date"?"Up to date":m==="added"?"Added":"Replaced";a.push(...l.files.map(m=>`${y(m.status)} ${m.path}`));const $=l.items.find(m=>m.name===u[0]),o=$?.files[0]?.target.replaceAll("{dir}",t);if($&&o){const m=V(x(s,"name"),x(s,o)).split("\\").join("/").replace(/\.ts$/u,".js");a.push(`Import it from a piece's file one folder down (<folder>/<file>.ts): import { ${$.title} } from "${m.startsWith(".")?m:`./${m}`}"; one "../" more for each folder the file is deeper.`,"The file is the project's: change it as you like. allyhub add component/<name> --force puts the registry's back.")}l.missing.length>0&&a.push(`It needs packages the project does not declare: ${l.missing.join(", ")}.`),j.components=l.files.map(m=>({item:m.item,path:m.path,status:m.status})),j.missing=l.missing}if(b&&w.length>0){const t=await L(b.source,w,{root:s,dir:".",force:e.force});await T(s,t),a.length>0&&a.push(""),a.push(...t.files.map(o=>`${o.status==="up to date"?"Up to date":o.status==="added"?"Added":"Replaced"} ${o.path}`));const l=P(n);for(const o of t.assets){const m=await l.add(o.id,{root:s,...o.resolution===void 0?{}:{resolution:o.resolution},...o.maps===void 0?{}:{maps:o.maps}});a.push(...(await U(s,m)).lines)}const y=await Q(s,t.bakes);a.push(...y.map(o=>`${o.status==="added"?"Downloaded":"Up to date"} the baked light for ${o.bake.scenery}: ${o.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 <type>/<name> --force puts the registry's back.");const $=t.files.filter(o=>o.path.endsWith("/README.md"));$.length>0&&a.push(`Read first, for its screens and cameras: ${$.map(o=>o.path).join(", ")}`),j.resources={files:t.files.map(o=>({item:o.item,path:o.path,status:o.status})),assets:t.assets,bakes:y.map(o=>({path:o.path,status:o.status}))}}if(v.length>0){const t=P(n),l=[];for(const y of v){const $=await t.add(y,{root:s,...e.to===void 0||u.length>0?{}:{to:B.normalize(e.to)},...e.res===void 0?{}:{resolution:e.res}}),o=await U(s,$);a.length>0&&a.push(""),a.push(...o.lines),l.push({...$,...o.model===void 0?{}:{model:o.model}})}j.assets=l}return{value:j,text:a.join(`
5
5
  `)}}catch(d){throw M(d)}}),addSearch=C({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; with no words, lists every one",input:h.strictObject({words:h.array(h.string()).default([]).describe("The words to find (a word may start one of theirs); none lists every one"),type:h.array(h.enum(A)).optional().describe(`Only these types (default all): ${A.join(", ")} (@polyhaven: Poly Haven's models, HDRIs and textures)`),all:h.boolean().default(!1).describe(`Every match; default the first ${String(N)} Poly Haven assets`)}),positional:["words"],output:h.looseObject({}),examples:["allyhub add search --type 3d-model",'allyhub add search "office desk" --type @polyhaven',"allyhub add search caption --type component"]},async(e,n)=>{const i=e.words.join(" ").trim(),d=i===""?"":` hold "${i}"`;try{const r=e.type??A,s=r.includes("component")?O(await D(_).index(),i):[],p=r.filter(a=>a!=="@polyhaven"),c=p.length>0?await R(n):void 0,u=c?.index?O(c.index,i).filter(a=>p.includes(H(a.type))):[],v=r.includes("@polyhaven")?se:[],{found:g,total:b}=v.length>0?await P(n).search(i,v):{found:[],total:0},w=e.all?g:g.slice(0,N);return{value:{query:i,components:s,resources:u,assets:{total:b,matches:g.length,found:w}},text:[...r.includes("component")?[`Starter components: ${String(s.length)}${d}.`,...s.map(a=>` component/${a.name} (${a.title}): ${a.description}`)]:[],...c?c.from==="none"?F(c,[]):[`AllyHub's resources: ${String(u.length)}${d}${c.from==="stale"?" (as last read)":""}.`,...u.map(a=>` ${E(a)} (${a.title}): ${a.description}`)]:[],...v.length>0?[`From Poly Haven (CC0): ${String(g.length)} of ${String(b)} assets${d}${w.length<g.length?`; the first ${String(w.length)} (--all for every one)`:""}.`,...w.map(de)]:[],"","Add one: allyhub add <type>/<name>"].join(`
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{relative as h}from"node:path";import{z as s}from"zod";import{parameters as p}from"../parameters.js";import{SECOND_PEAK_GUARD as u,syncOffset as $}from"@allyhub/media";import{defineCommand as g}from"../command.js";import{existingFile as c,media as w,progressLines as b}from"../media.js";import{projectOfFile as x}from"../project.js";const d=(e,t)=>`${e<0?"−":"+"}${Math.abs(e).toFixed(t)}`,l=e=>e<0?`−${(-e).toFixed(1)}`:e.toFixed(1);function F(e){const t=Object.fromEntries(Object.entries(e).filter(([r])=>r!=="reference"&&r!=="rate"&&r!=="other")),o=e.other;return{...o,...t,offset:e.offset,pictureOffset:e.offset===null||o.soundStart===null?null:Math.round((e.offset+o.soundStart)*1e6)/1e6}}function S(e,t){const o=t(e.reference.file),r=t(e.other.file),f=` Sound: ${o} ${l(e.level.reference.rms)} dBFS RMS, ${e.reference.duration.toFixed(2)} s; ${r} ${l(e.level.other.rms)} dBFS RMS, ${e.other.duration.toFixed(2)} s${e.other.soundStart?`; its sound starts ${String(e.other.soundStart)} s into its own clock`:""}.`;if(e.offset===null)return[`${r} against ${o}: not measured: ${e.why??"no offset found"}.`,f];const n=[`${r} against ${o}: offset ${d(e.offset,6)} s: a moment at t s of ${o} is at t ${e.offset<0?"−":"+"} ${Math.abs(e.offset).toFixed(6)} s of ${r}.`];return e.peak&&n.push(` Peak ${e.peak.confidence.toFixed(1)} × the correlation's RMS; ${e.second?`the next peak more than ${String(u)} s away ${e.second.ratio.toFixed(2)} × lower, at ${d(e.second.offset,3)} s`:"no other peak"}; polarity ${e.peak.inverted?"inverted":"the same"}; ${String(e.common??0)} s of common sound.`),e.windows.length&&n.push(` Windows (${String(e.windows[0]?.dur??0)} s each): where, offset, peak, width, correlation:`,...e.windows.map(a=>a.offset===null?` at ${a.at.toFixed(2).padStart(8)} s not measured: no sound on a side`:` at ${a.at.toFixed(2).padStart(8)} s ${d(a.offset,6)} s ${(a.confidence??0).toFixed(1)} × ${((a.width??0)*1e3).toFixed(3)} ms ${(a.correlation??0).toFixed(3)}`)),n.push(e.drift?` Drift ${d(e.drift.ppm,2)} ppm over ${String(e.drift.span)} s: offset(t) = ${e.drift.at0.toFixed(6)} ${e.drift.slope<0?"−":"+"} ${Math.abs(e.drift.slope).toExponential(4)} × t; speed ${(1+e.drift.slope).toFixed(8)} keeps step.`:` Drift not measured: ${e.driftWhy??"no line"}.`,f),n}const y={max:s.number().positive().optional().describe("The largest offset looked for either way, seconds (default any that leaves common sound)")};export const align=g({name:"align",summary:"The offset between recordings of the same moment, from their sound, with how sharply they match and how it drifts",input:s.strictObject({reference:s.string().describe("The recording the others are measured against"),others:s.array(s.string()).min(1).describe("The recordings to measure: other = reference + offset"),dir:s.string().optional().describe("The project whose media index keeps the result (default the nearest above the reference)"),params:p(y)}),positional:["reference","others"],output:s.looseObject({reference:s.unknown(),files:s.array(s.looseObject({offset:s.number().nullable()}))}),examples:["allyhub align assets/media/mic.wav assets/media/cam.mp4","allyhub align mic.wav cam.mp4 --param max=10"]},async(e,t)=>{const o=await c(t.cwd,e.reference),r=await Promise.all(e.others.map(i=>c(t.cwd,i))),f=await x(e.reference,t.cwd,e.dir);f.warning!==void 0&&t.progress(f.warning);const n=[];for(const i of r)n.push(await w(()=>$(o,i,{root:f.root,...e.params.max===void 0?{}:{max:e.params.max},onProgress:b(t),signal:t.signal})));const a=i=>{const m=h(t.cwd,i);return m===""||m.startsWith("..")?i:m};return{value:{project:f.root,reference:n[0]?.reference??{file:o},rate:n[0]?.rate??null,files:n.map(F)},text:n.flatMap(i=>S(i,a)).join(`
2
+ import{relative as h}from"node:path";import{z as s}from"zod";import{parameters as p}from"../parameters.js";import{SECOND_PEAK_GUARD as u,syncOffset as $}from"@allyhub/media";import{defineCommand as g}from"../command.js";import{existingFile as m,media as w,progressLines as b}from"../media.js";import{projectOfFile as x}from"../project.js";const d=(e,t)=>`${e<0?"−":"+"}${Math.abs(e).toFixed(t)}`,l=e=>e<0?`−${(-e).toFixed(1)}`:e.toFixed(1);function F(e){const t=Object.fromEntries(Object.entries(e).filter(([r])=>r!=="reference"&&r!=="rate"&&r!=="other")),o=e.other;return{...o,...t,offset:e.offset,pictureOffset:e.offset===null||o.soundStart===null?null:Math.round((e.offset+o.soundStart)*1e6)/1e6}}function S(e,t){const o=t(e.reference.file),r=t(e.other.file),f=` Sound: ${o} ${l(e.level.reference.rms)} dBFS RMS, ${e.reference.duration.toFixed(2)} s; ${r} ${l(e.level.other.rms)} dBFS RMS, ${e.other.duration.toFixed(2)} s${e.other.soundStart?`; its sound starts ${String(e.other.soundStart)} s into its own clock`:""}.`;if(e.offset===null)return[`${r} against ${o}: not measured: ${e.why??"no offset found"}.`,f];const n=[`${r} against ${o}: offset ${d(e.offset,6)} s: a moment at t s of ${o} is at t ${e.offset<0?"−":"+"} ${Math.abs(e.offset).toFixed(6)} s of ${r}.`];return e.peak&&n.push(` Peak ${e.peak.confidence.toFixed(1)} × the correlation's RMS; ${e.second?`the next peak more than ${String(u)} s away ${e.second.ratio.toFixed(2)} × lower, at ${d(e.second.offset,3)} s`:"no other peak"}; polarity ${e.peak.inverted?"inverted":"the same"}; ${String(e.common??0)} s of common sound.`),e.windows.length&&n.push(` Windows (${String(e.windows[0]?.dur??0)} s each): where, offset, peak, width, correlation:`,...e.windows.map(a=>a.offset===null?` at ${a.at.toFixed(2).padStart(8)} s not measured: no sound on a side`:` at ${a.at.toFixed(2).padStart(8)} s ${d(a.offset,6)} s ${(a.confidence??0).toFixed(1)} × ${((a.width??0)*1e3).toFixed(3)} ms ${(a.correlation??0).toFixed(3)}`)),n.push(e.drift?` Drift ${d(e.drift.ppm,2)} ppm over ${String(e.drift.span)} s: offset(t) = ${e.drift.at0.toFixed(6)} ${e.drift.slope<0?"−":"+"} ${Math.abs(e.drift.slope).toExponential(4)} × t; speed ${(1+e.drift.slope).toFixed(8)} keeps step.`:` Drift not measured: ${e.driftWhy??"no line"}.`,f),n}const y={max:s.number().positive().optional().describe("The largest offset looked for either way, seconds (default any that leaves common sound)")};export const align=g({name:"align",summary:"The offset between recordings of the same moment, from their sound, with how sharply they match and how it drifts; in --json, pictureOffset: a camera's picture offset when its file's sound starts later on its own clock",input:s.strictObject({reference:s.string().describe("The recording the others are measured against"),others:s.array(s.string()).min(1).describe("The recordings to measure: other = reference + offset"),dir:s.string().optional().describe("The project whose media index keeps the result (default the nearest above the reference)"),params:p(y)}),positional:["reference","others"],output:s.looseObject({reference:s.unknown(),files:s.array(s.looseObject({offset:s.number().nullable()}))}),examples:["allyhub align assets/media/mic.wav assets/media/cam.mp4","allyhub align mic.wav cam.mp4 --param max=10"]},async(e,t)=>{const o=await m(t.cwd,e.reference),r=await Promise.all(e.others.map(i=>m(t.cwd,i))),f=await x(e.reference,t.cwd,e.dir);f.warning!==void 0&&t.progress(f.warning);const n=[];for(const i of r)n.push(await w(()=>$(o,i,{root:f.root,...e.params.max===void 0?{}:{max:e.params.max},onProgress:b(t),signal:t.signal})));const a=i=>{const c=h(t.cwd,i);return c===""||c.startsWith("..")?i:c};return{value:{project:f.root,reference:n[0]?.reference??{file:o},rate:n[0]?.rate??null,files:n.map(F)},text:n.flatMap(i=>S(i,a)).join(`
3
3
  `)}});
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{billingSummary as b,hostsText as y,openBrowser as $,organizations as v,readCredentials as I,signIn as S,signInDevice as k,signInInBackground as _,signedInAs as A,SIGN_IN_WAIT_MS as m}from"@allyhub/cloud";import{API_KEY_ENV as x,EXIT as z}from"@allyhub/protocol";import{defineCommand as f}from"../command.js";import{cloudOf as w,cloudWork as p}from"./cloud.js";const O=e.looseObject({url:e.string()});export const authLogin=f({name:"auth login",summary:"Sign this computer in to AllyHub, for the cloud tools; once per computer, shared with AllyHub Studio",input:e.strictObject({wait:e.boolean().optional().describe(`Wait here for the browser (default in a terminal); --no-wait waits ${String(m/6e4)} minutes in the background and returns at once (default for an agent), then allyhub auth status says when it is done`),browser:e.boolean().default(!0).describe("Open the browser; --no-browser only prints the address"),device:e.boolean().default(!1).describe("Sign in with a code entered in a browser elsewhere (RFC 8628's device flow), for a computer with no browser of its own")}),output:e.looseObject({status:e.enum(["signed-in","waiting"]),email:e.string().optional(),url:e.string().optional(),hosts:O}),examples:["allyhub auth login","allyhub auth login --no-wait --no-browser","allyhub auth login --device"]},(d,u)=>p(async()=>{const n=w(u),t={url:n.url,from:n.config.from},l=`Signing in to AllyHub: ${y(n.config)}.`,o=await A(n);if(o)return{value:{status:"signed-in",email:o.email,hosts:t},text:`This computer is signed in to AllyHub as ${o.email}.`};if(d.device){const i=await k(n,s=>{u.progress(`${l}
2
+ import{z as e}from"zod";import{billingSummary as b,hostsText as y,openBrowser as $,organizations as v,readCredentials as I,signIn as S,signInDevice as k,signInInBackground as _,signedInAs as A,SIGN_IN_WAIT_MS as m}from"@allyhub/cloud";import{API_KEY_ENV as x}from"@allyhub/protocol/cloud";import{EXIT as z}from"@allyhub/protocol/cli";import{defineCommand as f}from"../command.js";import{cloudOf as w,cloudWork as p}from"./cloud.js";const O=e.looseObject({url:e.string()});export const authLogin=f({name:"auth login",summary:"Sign this computer in to AllyHub, for the cloud tools; once per computer, shared with AllyHub Studio",input:e.strictObject({wait:e.boolean().optional().describe(`Wait here for the browser (default in a terminal); --no-wait waits ${String(m/6e4)} minutes in the background and returns at once (default for an agent), then allyhub auth status says when it is done`),browser:e.boolean().default(!0).describe("Open the browser; --no-browser only prints the address"),device:e.boolean().default(!1).describe("Sign in with a code entered in a browser elsewhere (RFC 8628's device flow), for a computer with no browser of its own")}),output:e.looseObject({status:e.enum(["signed-in","waiting"]),email:e.string().optional(),url:e.string().optional(),hosts:O}),examples:["allyhub auth login","allyhub auth login --no-wait --no-browser","allyhub auth login --device"]},(d,u)=>p(async()=>{const n=w(u),t={url:n.url,from:n.config.from},l=`Signing in to AllyHub: ${y(n.config)}.`,o=await A(n);if(o)return{value:{status:"signed-in",email:o.email,hosts:t},text:`This computer is signed in to AllyHub as ${o.email}.`};if(d.device){const i=await k(n,s=>{u.progress(`${l}
3
3
  On any computer, open ${s.verification_uri} and enter ${s.user_code}${s.verification_uri_complete===void 0?"":` (or open ${s.verification_uri_complete})`}.`)});return{value:{status:"signed-in",email:i.email,hosts:t},text:`Signed in as ${i.email}.`}}const a=i=>{d.browser&&$(i,u.env)};if(d.wait===!1||d.wait===void 0&&!process.stdout.isTTY){const i=await _(n,u.env);return a(i),{value:{status:"waiting",url:i,hosts:t},text:[l,"Sign in in the browser (opened, or open this address):",` ${i}`,`It waits ${String(m/6e4)} minutes in the background; allyhub auth status says when it is done.`].join(`
4
4
  `)}}const r=await S(n,i=>{u.progress(`${l}
5
5
  Sign in in your browser. If it did not open:
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as o}from"zod";import{EXIT as s}from"@allyhub/protocol";import{formatCheck as c}from"../text/index.js";import{defineCommand as m}from"../command.js";import{projectRoot as l}from"../project.js";import{dir as a}from"../fields.js";import{checkIndexed as n}from"../version.js";export const check=m({name:"check",summary:"Problems: objective errors in the project's items, by rule; exits 1 when one must be fixed",input:o.strictObject({item:o.string().optional().describe("Only this item: its id (its file without its extension) or its file, or a folder of items"),dir:a,fresh:o.boolean().default(!1).describe("Load every version again, not the last check's results")}),positional:["item"],output:o.looseObject({}),examples:["allyhub check","allyhub check launch/film","allyhub check --json"]},async(t,r)=>{const i=await l(r.cwd,t.dir),e=await n({dir:i,fresh:t.fresh,...t.item===void 0?{}:{piece:t.item}},r);return{value:{check:e.check,problems:e.problems,stats:e.stats,facts:e.facts.length,console:e.console},text:c(e),exit:e.check.errors>0?s.failed:s.ok}});
2
+ import{z as o}from"zod";import{EXIT as r}from"@allyhub/protocol";import{formatCheck as c}from"../text/index.js";import{defineCommand as m}from"../command.js";import{projectRoot as a}from"../project.js";import{dir as l}from"../fields.js";import{checkProject as n}from"../version.js";export const check=m({name:"check",summary:"Problems: objective errors in the project's items, by rule; exits 1 when there is an error",input:o.strictObject({item:o.string().optional().describe("Only this item: its id (its file without its extension) or its file, or a folder of items"),dir:l,fresh:o.boolean().default(!1).describe("Load every version again, not the last check's results")}),positional:["item"],output:o.looseObject({}),examples:["allyhub check","allyhub check launch/film","allyhub check --json"]},async(t,s)=>{const i=await a(s.cwd,t.dir),e=await n({dir:i,fresh:t.fresh,...t.item===void 0?{}:{piece:t.item}});return{value:{check:e.check,problems:e.problems,stats:e.stats,facts:e.facts.length,console:e.console},text:c(e),exit:e.check.errors>0?r.failed:r.ok}});
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as L}from"node:fs/promises";import{join as D,resolve as W}from"node:path";import{z as s}from"zod";import{callTool as M,loadCatalog as h,resumeJob as H,uploadFiles as T}from"@allyhub/cloud";import{WORK_DIR as U}from"@allyhub/formats";import{EXIT as m}from"@allyhub/protocol";import{CommandError as g,defineCommand as F}from"../command.js";import{optionName as _}from"../args.js";import{requiredMissing as q,toolInput as B,toolOptions as K,exampleArgs as G,fieldLines as R}from"../tool-options.js";import{cloudOf as p,cloudWork as w,placeFrom as z,plural as $}from"./cloud.js";const j=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),X=8e3,f={input:s.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"),file:s.string().optional().describe("The path of the file it makes, or for a tool that returns data, of its output as JSON (without an extension it takes the result's, or .json); the same call with the same input then keeps it, calling nothing, and while its call works waits for that call; default a folder under .allyhub/work/"),force:s.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:s.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:s.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")},k=(e,a)=>new g("usage",e,{exit:m.usage,...a===void 0?{}:{hint:a}}),P=e=>{const a=e.reduce((n,o)=>o.map((r,i)=>Math.max(n[i]??0,r.length)),[]);return e.map(n=>` ${n.map((o,r)=>r===n.length-1?o:o.padEnd(a[r]??0)).join(" ")}`.trimEnd())};export const wordOf=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/g,"");function Q(e){return F({name:e.id,summary:`${e.title}: ${e.description} Lists the tools, each a command`,input:s.strictObject({fresh:s.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:s.looseObject({work:s.string(),tools:s.array(s.looseObject({name:s.string()}))}),examples:[`allyhub ${e.id}`,`allyhub ${e.id} --json`]},(a,n)=>w(async()=>{const r=(await h(p(n),{refresh:a.fresh})).tools.filter(i=>i.work===e.id).sort((i,t)=>i.name.localeCompare(t.name));return{value:{work:e.id,title:e.title,tools:r.map(i=>({name:i.name,title:i.title,...i.shown?{shown:i.shown.name}:{},description:i.description,long:i.long}))},text:[`${e.title} (${$(r.length,"tool")}):`,...P(r.map(i=>[i.name,i.shown?`${i.title} (${i.shown.name} in AllyHub)`:i.title])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${e.id} <tool> shows a tool's options and how its credits are counted.`].join(`
2
+ import{readFile as L}from"node:fs/promises";import{join as D,resolve as W}from"node:path";import{z as s}from"zod";import{callTool as M,loadCatalog as h,resumeJob as H,uploadFiles as T}from"@allyhub/cloud/tools";import{WORK_DIR as U}from"@allyhub/formats/layout";import{EXIT as m}from"@allyhub/protocol/cli";import{CommandError as g,defineCommand as F}from"../command.js";import{optionName as _}from"../args.js";import{requiredMissing as q,toolInput as B,toolOptions as K,exampleArgs as G,fieldLines as R}from"../tool-options.js";import{cloudOf as p,cloudWork as w,placeFrom as z,plural as $}from"./cloud.js";const j=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),X=8e3,f={input:s.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"),file:s.string().optional().describe("The path of the file it makes, or for a tool that returns data, of its output as JSON (without an extension it takes the result's, or .json); the same call with the same input then keeps it, calling nothing, and while its call works waits for that call; default a folder under .allyhub/work/"),force:s.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:s.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:s.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")},k=(e,a)=>new g("usage",e,{exit:m.usage,...a===void 0?{}:{hint:a}}),P=e=>{const a=e.reduce((n,o)=>o.map((r,i)=>Math.max(n[i]??0,r.length)),[]);return e.map(n=>` ${n.map((o,r)=>r===n.length-1?o:o.padEnd(a[r]??0)).join(" ")}`.trimEnd())};export const wordOf=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/g,"");function Q(e){return F({name:e.id,summary:`${e.title}: ${e.description} Lists the tools, each a command`,input:s.strictObject({fresh:s.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:s.looseObject({work:s.string(),tools:s.array(s.looseObject({name:s.string()}))}),examples:[`allyhub ${e.id}`,`allyhub ${e.id} --json`]},(a,n)=>w(async()=>{const r=(await h(p(n),{refresh:a.fresh})).tools.filter(i=>i.work===e.id).sort((i,t)=>i.name.localeCompare(t.name));return{value:{work:e.id,title:e.title,tools:r.map(i=>({name:i.name,title:i.title,...i.shown?{shown:i.shown.name}:{},description:i.description,long:i.long}))},text:[`${e.title} (${$(r.length,"tool")}):`,...P(r.map(i=>[i.name,i.shown?`${i.title} (${i.shown.name} in AllyHub)`:i.title])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${e.id} <tool> shows a tool's options and how its credits are counted.`].join(`
3
3
  `)}}))}const v=(e,a)=>a.length>0?["",`${e}:`,...a]:[],V=100;export function readableJson(e,a=""){const n=o=>o===null||typeof o!="object";if(Array.isArray(e)){if(e.length===0)return"[]";if(e.every(n))return`[${e.map(r=>JSON.stringify(r)).join(", ")}]`;const o=`${a} `;return`[
4
4
  ${e.map(r=>o+readableJson(r,o)).join(`,
5
5
  `)}
@@ -10,7 +10,7 @@ ${a}}`}return JSON.stringify(e)}function Y(e,a=5,n=160){const o=i=>{const t=i===
10
10
  `);if(e.kept)return[`Kept ${e.file??""}: ${e.tool} made it from this same input on ${e.kept.at} (${e.gen??""}).`,"Nothing was called or charged. --force makes it again."].join(`
11
11
  `);const n=readableJson(e.output),o=n.length<=X;return[o?n:[`Output: ${String(Math.round(Buffer.byteLength(n)/1024))} KB of JSON, in short:`,...Y(e.output)].join(`
12
12
  `),...!o&&e.outputFile&&e.outputFile!==e.file?[`Whole output: ${e.outputFile}`]:[],...e.file?[`File: ${e.file}${e.replaced?" (replaced: it was made from another input)":""}`]:[],...e.more?Object.entries(e.more).map(([r,i])=>`Also: ${i} (${r} in the output)`):[],...e.words?[`Words: ${e.words} (when each word is said: a part can say a stretch of the file)`]:[],...e.gen?[`Record: ${e.gen} (move it with the file)`]:[],`Credits used: ${e.credits===void 0?"not reported":String(e.credits)}`].join(`
13
- `)}const Z=e=>{const a=Math.max(0,Math.round(e));return`${String(Math.floor(a/60))}:${String(a%60).padStart(2,"0")}`};async function ee(e,a){const n=e.trim().startsWith("{"),o=n?e:await L(W(a.cwd,e),"utf8").catch(i=>{throw new g("not-found",`--input: cannot read ${e}: ${i.message}`,{exit:m.notFound,hint:"Give a JSON object, or a file of one."})});let r;try{r=JSON.parse(o)}catch{r=void 0}if(!j(r))throw k(`--input: ${n?"the text":e} is not a JSON object.`,`Give '{"field": …}', or a file of it.`);return r}export function toolCommand(e){const a=`${e.work} ${e.name}`,n=K(e.input,Object.keys(f)),o=s.strictObject({...n.shape,...f,input:f.input.describe(n.inputOnly.length?`${f.input.description??""}. Fields only it gives: ${n.inputOnly.join(", ")}`:f.input.description??"")}),r=new Set(n.fields.values()),i=Object.keys(j(e.input.properties)?e.input.properties:{}).filter(l=>!r.has(l)),t=[...n.fields].filter(([,l])=>n.required.includes(l)).map(([l,c])=>`--${_(l)} <${c}>`);return{spec:{name:a,summary:e.description,input:o,output:s.looseObject({tool:s.string(),output:s.record(s.string(),s.unknown()).optional(),outputFile:s.string().optional(),credits:s.number().optional(),file:s.string().optional(),gen:s.string().optional(),more:s.record(s.string(),s.string()).optional(),words:s.string().optional(),jobId:s.string().optional()}),examples:[`allyhub ${[a,...e.example?G(n,e.example):t].join(" ")}`]},about:{lines:[e.title,...e.shown?[wordOf(e.shown.name)===e.name?`Shown to people in AllyHub as "${e.shown.name}".`:`Shown to people in AllyHub as "${e.shown.name}": allyhub ${e.work} ${wordOf(e.shown.name)} finds it too.`]:[],"","A call is charged once, when it worked, as the description says; a failed call is free.",...e.long?["A long tool: the command waits for it (--no-wait returns its call, --resume waits again)."]:[],...v("In --input",R(e.input,{only:i,required:!0})),...v("Output",R(e.output,{depth:3}))],value:{work:e.work,title:e.title,...e.shown?{shown:e.shown.name}:{},long:e.long,inputSchema:e.input,outputSchema:e.output}},run:(l,c)=>w(async()=>{const u=l,b=l,O=p(c),S=await z(c),y=B(n,b,u.input===void 0?{}:await ee(u.input,c));let A=0;const N={base:S,signal:c.signal,onRunning:d=>{Date.now()-A<3e4||(A=Date.now(),c.progress(`${e.name}: working · ${Z((Date.now()-Date.parse(d.createdAt))/1e3)} (call ${d.id})`))},onRetry:(d,E,I)=>{c.progress(`${e.name}: ${E.message}; reading call ${d} again in ${String(I)} s`)}};if(u.resume!==void 0){if(Object.keys(y).length>0||u.file!==void 0)throw k("--resume waits for a call as it was made: give it no input or --file.");const d=await H(O,u.resume,{...N,tool:e.name});return{value:{...d},text:C(d,a)}}const J=q(n,y);if(J.length>0)throw k(`${e.name} needs ${J.join(", ")}.`,`allyhub help ${a} shows its options.`);const x=await M(O,e.name,y,{...N,outDir:D(S,U,e.work,e.name),...u.file===void 0?{}:{file:W(c.cwd,u.file)},force:u.force,wait:u.wait});return{value:{...x},text:C(x,a)}})}}export const CLOUD_SOURCE={entries:[{name:"<work>",summary:"List a work's cloud tools (AllyHub's catalog), a line each; 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>, which says how its credits are counted)"}],async nouns(e){return(await h(p(e))).works.map(n=>({name:n.id,summary:`${n.title}: ${n.description}`}))},resolve:(e,a)=>w(async()=>{const[n,o]=e;if(n===void 0||n.startsWith("-"))return;let r;const i=(u,b)=>(r=u,b);let t=await h(p(a)).catch(i),l=t?.works.find(u=>u.id===n);if(l||(t=await h(p(a),{refresh:!0}).catch(u=>i(u,t)),l=t?.works.find(u=>u.id===n)),!t)throw new g("catalog-unreachable",`"${n}" is none of allyhub's own commands, and its cloud tools could not be read: ${r instanceof Error?r.message:String(r)}.`,{exit:m.failed,hint:"They need the network: run allyhub outside a sandbox that blocks it."});if(!l)return;if(o===void 0||o.startsWith("-"))return{command:Q(l),rest:e.slice(1),list:!0};const c=t.tools.find(u=>u.name===o)??t.tools.find(u=>u.work===l.id&&u.shown!==void 0&&wordOf(u.shown.name)===wordOf(o));if(c?.work!==l.id)throw new g("unknown-tool",c?`${o} is not a ${l.id} tool: it is in allyhub ${c.work}.`:`No ${l.id} tool ${o}.`,{exit:m.notFound,hint:c?`allyhub ${c.work} ${o}`:`allyhub ${l.id} lists its tools.`});return{command:toolCommand(c),rest:e.slice(2),list:!1}})},upload=F({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:s.strictObject({files:s.array(s.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:s.looseObject({files:s.array(s.looseObject({file:s.string(),ok:s.boolean(),url:s.string().optional()}))}),examples:["allyhub upload assets/media/presenter.jpg"]},(e,a)=>w(async()=>{const n=await T(p(a),e.files,{base:a.cwd}),o=n.filter(t=>!t.ok),r=n.map(t=>t.ok?`${t.file}
13
+ `)}const Z=e=>{const a=Math.max(0,Math.round(e));return`${String(Math.floor(a/60))}:${String(a%60).padStart(2,"0")}`};async function ee(e,a){const n=e.trim().startsWith("{"),o=n?e:await L(W(a.cwd,e),"utf8").catch(i=>{throw new g("not-found",`--input: cannot read ${e}: ${i.message}`,{exit:m.notFound,hint:"Give a JSON object, or a file of one."})});let r;try{r=JSON.parse(o)}catch{r=void 0}if(!j(r))throw k(`--input: ${n?"the text":e} is not a JSON object.`,`Give '{"field": …}', or a file of it.`);return r}export function toolCommand(e){const a=`${e.work} ${e.name}`,n=K(e.input,Object.keys(f)),o=s.strictObject({...n.shape,...f,input:f.input.describe(n.inputOnly.length?`${f.input.description??""}. Fields only it gives: ${n.inputOnly.join(", ")}`:f.input.description??"")}),r=new Set(n.fields.values()),i=Object.keys(j(e.input.properties)?e.input.properties:{}).filter(l=>!r.has(l)),t=[...n.fields].filter(([,l])=>n.required.includes(l)).map(([l,c])=>`--${_(l)} <${c}>`);return{spec:{name:a,summary:e.description,input:o,output:s.looseObject({tool:s.string(),output:s.record(s.string(),s.unknown()).optional(),outputFile:s.string().optional(),credits:s.number().optional(),file:s.string().optional(),gen:s.string().optional(),more:s.record(s.string(),s.string()).optional(),words:s.string().optional(),jobId:s.string().optional()}),examples:[`allyhub ${[a,...e.example?G(n,e.example):t].join(" ")}`]},about:{lines:[e.title,...e.shown?[wordOf(e.shown.name)===e.name?`Shown to people in AllyHub as "${e.shown.name}".`:`Shown to people in AllyHub as "${e.shown.name}": allyhub ${e.work} ${wordOf(e.shown.name)} finds it too.`]:[],"","A call is charged once, when it worked, as the description says; a failed call is free.",...e.long?["A long tool: the command waits for it (--no-wait returns its call, --resume waits again)."]:[],...v("In --input",R(e.input,{only:i,required:!0})),...v("Output",R(e.output,{depth:3}))],value:{work:e.work,title:e.title,...e.shown?{shown:e.shown.name}:{},long:e.long,inputSchema:e.input,outputSchema:e.output}},run:(l,c)=>w(async()=>{const u=l,b=l,O=p(c),S=await z(c),y=B(n,b,u.input===void 0?{}:await ee(u.input,c));let A=0;const N={base:S,signal:c.signal,onRunning:d=>{Date.now()-A<3e4||(A=Date.now(),c.progress(`${e.name}: working · ${Z((Date.now()-Date.parse(d.createdAt))/1e3)} (call ${d.id})`))},onRetry:(d,E,I)=>{c.progress(`${e.name}: ${E.message}; reading call ${d} again in ${String(I)} s`)}};if(u.resume!==void 0){if(Object.keys(y).length>0||u.file!==void 0)throw k("--resume waits for a call as it was made: give it no input or --file.");const d=await H(O,u.resume,{...N,tool:e.name});return{value:{...d},text:C(d,a)}}const J=q(n,y);if(J.length>0)throw k(`${e.name} needs ${J.join(", ")}.`,`allyhub help ${a} shows its options.`);const x=await M(O,e.name,y,{...N,outDir:D(S,U,e.work,e.name),...u.file===void 0?{}:{file:W(c.cwd,u.file)},force:u.force,wait:u.wait});return{value:{...x},text:C(x,a)}})}}export const CLOUD_SOURCE={entries:[{name:"<work>",summary:"List a work's cloud tools (AllyHub's catalog), a line each; 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>, which says how its credits are counted)"}],async nouns(e){return(await h(p(e))).works.map(n=>({name:n.id,summary:`${n.title}: ${n.description}`}))},resolve:(e,a)=>w(async()=>{const[n,o]=e;if(n===void 0||n.startsWith("-"))return;let r;const i=(u,b)=>(r=u,b);let t=await h(p(a)).catch(i),l=t?.works.find(u=>u.id===n);if(l||(t=await h(p(a),{refresh:!0}).catch(u=>i(u,t)),l=t?.works.find(u=>u.id===n)),!t)throw new g("catalog-unreachable",`"${n}" is none of allyhub's own commands, and its cloud tools could not be read: ${r instanceof Error?r.message:String(r)}.`,{exit:m.failed,hint:"They need the network: run allyhub outside a sandbox that blocks it."});if(!l)return;if(o===void 0||o.startsWith("-"))return{command:Q(l),rest:e.slice(1),list:!0};const c=t.tools.find(u=>u.name===o)??t.tools.find(u=>u.work===l.id&&u.shown!==void 0&&wordOf(u.shown.name)===wordOf(o));if(c?.work!==l.id)throw new g("unknown-tool",c?`${o} is not a ${l.id} tool: it is in allyhub ${c.work}.`:`No ${l.id} tool ${o}.`,{exit:m.notFound,hint:c?`allyhub ${c.work} ${o}`:`allyhub ${l.id} lists its tools.`});return{command:toolCommand(c),rest:e.slice(2),list:!1}})},upload=F({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 24 hours",input:s.strictObject({files:s.array(s.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:s.looseObject({files:s.array(s.looseObject({file:s.string(),ok:s.boolean(),url:s.string().optional()}))}),examples:["allyhub upload assets/media/presenter.jpg"]},(e,a)=>w(async()=>{const n=await T(p(a),e.files,{base:a.cwd}),o=n.filter(t=>!t.ok),r=n.map(t=>t.ok?`${t.file}
14
14
  ${t.url}${t.expiresAt===void 0?"":` (works until ${t.expiresAt})`}`:`${t.file}
15
15
  failed: ${t.error.message}${t.error.hint?` ${t.error.hint}`:""}`);n.length>1&&r.push(o.length===0?`${$(n.length,"file")} uploaded.`:`${String(n.length-o.length)} of ${$(n.length,"file")} uploaded; ${String(o.length)} failed.`);const i=o[0];return{value:{files:n.map(t=>t.ok?{...t}:{file:t.file,ok:!1,error:{code:t.error.code,message:t.error.message,...t.error.hint?{hint:t.error.hint}:{}}})},text:r.join(`
16
16
  `),...i?{exit:i.error.exit,code:i.error.code}:{}}}));
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{Cloud as t,cloudConfig as p,cloudWork as l}from"@allyhub/cloud";import{projectRoot as d}from"../project.js";export const cloudOf=o=>new t(p(o.env));export{l as cloudWork};export const placeFrom=o=>d(o.cwd).catch(()=>o.cwd),plural=(o,r,c=`${r}s`)=>`${String(o)} ${o===1?r:c}`;
2
+ import{Cloud as p,cloudConfig as c,cloudWork as e}from"@allyhub/cloud/tools";import{CLI_VERSION as m}from"../cli-version.js";import{projectRoot as d}from"../project.js";import{startUpdateCheck as l}from"../update-notice.js";export const cloudOf=o=>(l(o.env,m),new p(c(o.env)));export{e as cloudWork};export const placeFrom=o=>d(o.cwd).catch(()=>o.cwd),plural=(o,r,t=`${r}s`)=>`${String(o)} ${o===1?r:t}`;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{pathToFileURL as c}from"node:url";import{consoleJson as s}from"@allyhub/project";import{defineCommand as p}from"../command.js";import{formatConsole as b,formatProblem as w}from"../text/index.js";import{commandError as h}from"../version.js";import{builtInExtensions as r,projectExtensions as x}from"./extensions.js";import{viewContext as C}from"./inspect/views.js";const u=new Map;function y(n){let o=u.get(n.module);return o||(o=import(c(n.module).href).then(t=>{if(typeof t.default!="object"||t.default===null)throw new Error(`${n.extension}'s CLI commands (${n.module}) have no default export.`);return t.default}),u.set(n.module,o)),o}function $(n){return{...C(n),error:h,problemLines:o=>o.map(w),consoleLines:o=>b(s(o)),consoleJson:o=>({...s(o)})}}async function l(n){const t=(await y(n))[n.name];if(!t)throw new Error(`${n.extension} contributes the CLI command "${n.name}" but its module (${n.module}) has none of that name.`);const e=p({name:n.name,summary:n.summary,input:t.input,...t.positional?{positional:[...t.positional]}:{},output:t.output,examples:[...t.examples]},(m,a)=>t.run(m,$(a)));return t.about===void 0?e:{...e,about:{lines:t.about.lines,...t.about.value===void 0?{}:{value:t.about.value}}}}const E=n=>Promise.all(n.cliCommands().map(l));let f;export function builtInCommands(){return f??=E(r()),f}async function i(n){const o=new Set(r().cliCommands().map(e=>e.name));return((await x(n).catch(()=>{}))?.cliCommands()??[]).filter(e=>!o.has(e.name))}export async function contributedSpecs(n){return[...r().cliCommands(),...(await i(n)).map(o=>({...o,summary:`${o.summary} (${o.extension})`}))]}export const EXTENSIONS_SOURCE={works:!1,entries:[],async nouns(n){return(await i(n)).map(o=>({name:o.name,summary:`${o.summary} (${o.extension})`}))},async resolve(n,o){const t=await i(o);for(const e of[3,2,1]){if(n.length<e)continue;const m=n.slice(0,e).join(" "),a=t.find(d=>d.name===m);if(a)return{command:await l(a),rest:n.slice(e),list:!1}}}};
2
+ import{pathToFileURL as f}from"node:url";import{defineCommand as c}from"../command.js";import{extensions as s,projectHost as p}from"./found-extensions.js";const l=new Map;function w(n){let e=l.get(n.module);return e||(e=import(f(n.module).href).then(t=>{if(typeof t.default!="object"||t.default===null)throw new Error(`${n.extension}'s CLI commands (${n.module}) have no default export.`);return t.default}),l.set(n.module,e)),e}async function u(n){const t=(await w(n))[n.name];if(!t)throw new Error(`${n.extension} contributes the CLI command "${n.name}" but its module (${n.module}) has none of that name.`);const o=c({name:n.name,summary:n.summary,input:t.input,...t.positional?{positional:[...t.positional]}:{},output:t.output,examples:[...t.examples]},async(i,a)=>{const{commandContext:m}=await import("./run-context.js");return t.run(i,m(a))});return t.about===void 0?o:{...o,about:{lines:t.about.lines,...t.about.value===void 0?{}:{value:t.about.value}}}}const b=n=>Promise.all(n.cliCommands().map(u));let d;export function builtInCommands(){return d??=s().then(n=>b(n.builtInExtensions())),d}export async function builtInSpecs(){return(await s()).builtInExtensions().cliCommands()}export async function builtInCommand(n){const e=(await builtInSpecs()).find(t=>t.name===n);return e===void 0?void 0:u(e)}async function r(n){const e=await p(n);if(e===void 0)return[];const t=new Set((await builtInSpecs()).map(o=>o.name));return e.cliCommands().filter(o=>!t.has(o.name))}export async function contributedSpecs(n,e){return[...e,...(await r(n)).map(t=>({name:t.name,summary:`${t.summary} (${t.extension})`,...t.work===void 0?{}:{work:t.work}}))]}export const EXTENSIONS_SOURCE={works:!1,entries:[],async nouns(n){return(await r(n)).map(e=>({name:e.name,summary:`${e.summary} (${e.extension})`}))},async resolve(n,e){const t=await r(e);for(const o of[3,2,1]){if(n.length<o)continue;const i=n.slice(0,o).join(" "),a=t.find(m=>m.name===i);if(a)return{command:await u(a),rest:n.slice(o),list:!1}}}};
@@ -1,7 +1,7 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{spawn as A}from"node:child_process";import{mkdir as T,open as C,readFile as v,rm as L,writeFile as P}from"node:fs/promises";import{dirname as w,join as f,resolve as _}from"node:path";import{fileURLToPath as $}from"node:url";import{z as l}from"zod";import{projectItems as N}from"@allyhub/build";import{openBrowser as b}from"@allyhub/cloud";import{startDevServer as y}from"@allyhub/dev-server";import{DEV_FILE as E}from"@allyhub/formats";import{EXIT as x}from"@allyhub/protocol";import{nodeCommand as G}from"@allyhub/runtimes/node";import{CommandError as c,defineCommand as M}from"../command.js";import{dir as F,indexing as U}from"../fields.js";import{itemNamed as B,projectRoot as H}from"../project.js";import{extensionsAt as J,fileEditorsAt as V,kindsAt as R}from"./extensions.js";export const PAGE=f(w($(import.meta.url)),"../../editor-web");const h=".allyhub/dev.log",Y=f(w($(import.meta.url)),"../../bin/allyhub.js"),j=12e4,k=1e4,g=4340,z=20;export async function start(t,e,n,s){const a={root:t,kinds:R(t),extensions:J(t),ui:PAGE,...s===void 0?{}:{exportsTo:()=>s},index:n};if(e!==void 0)return y({...a,port:e}).catch(r=>{throw r.code==="EADDRINUSE"?new c("port-in-use",`Port ${String(e)} is in use.`,{hint:"Choose another with --port, or leave it out."}):r});for(let r=g;r<g+z;r++)try{return await y({...a,port:r})}catch(o){if(o.code!=="EADDRINUSE")throw o}return y(a)}const D="allyhub dev";async function S(t){try{const e=JSON.parse(await v(f(t,E),"utf8"));return typeof e.url!="string"||typeof e.pid!="number"?void 0:(process.kill(e.pid,0),(await fetch(e.url,{signal:AbortSignal.timeout(2e3)})).ok?{url:e.url,pid:e.pid,mine:e.by===D}:void 0)}catch{return}}async function W(t){return(await S(t))?.url}function X(t){try{return process.kill(t,0),!0}catch{return!1}}const I=t=>new Promise(e=>setTimeout(e,t));async function q(t){return(await v(f(t,h),"utf8").catch(()=>"")).trim().split(`
2
+ import{spawn as A}from"node:child_process";import{mkdir as T,open as C,readFile as v,rm as L,writeFile as P}from"node:fs/promises";import{dirname as w,join as f,resolve as _}from"node:path";import{fileURLToPath as $}from"node:url";import{z as l}from"zod";import{projectItems as N}from"@allyhub/build";import{openBrowser as b}from"@allyhub/cloud";import{startDevServer as y}from"@allyhub/dev-server";import{DEV_FILE as E}from"@allyhub/formats";import{EXIT as x}from"@allyhub/protocol";import{nodeCommand as G}from"@allyhub/runtimes/node";import{CommandError as c,defineCommand as M}from"../command.js";import{dir as F}from"../fields.js";import{itemNamed as U,projectRoot as B}from"../project.js";import{extensionsAt as H,fileEditorsAt as J,kindsAt as R}from"./extensions.js";export const PAGE=f(w($(import.meta.url)),"../../editor-web");const h=".allyhub/dev.log",V=f(w($(import.meta.url)),"../../bin/allyhub.js"),j=12e4,k=1e4,g=4340,Y=20;export async function start(t,e,n){const s={root:t,kinds:R(t),extensions:H(t),ui:PAGE,...n===void 0?{}:{exportsTo:()=>n}};if(e!==void 0)return y({...s,port:e}).catch(r=>{throw r.code==="EADDRINUSE"?new c("port-in-use",`Port ${String(e)} is in use.`,{hint:"Choose another with --port, or leave it out."}):r});for(let r=g;r<g+Y;r++)try{return await y({...s,port:r})}catch(o){if(o.code!=="EADDRINUSE")throw o}return y(s)}const D="allyhub dev";async function S(t){try{const e=JSON.parse(await v(f(t,E),"utf8"));return typeof e.url!="string"||typeof e.pid!="number"?void 0:(process.kill(e.pid,0),(await fetch(e.url,{signal:AbortSignal.timeout(2e3)})).ok?{url:e.url,pid:e.pid,mine:e.by===D}:void 0)}catch{return}}async function z(t){return(await S(t))?.url}function W(t){try{return process.kill(t,0),!0}catch{return!1}}const I=t=>new Promise(e=>setTimeout(e,t));async function X(t){return(await v(f(t,h),"utf8").catch(()=>"")).trim().split(`
3
3
  `).slice(-20).join(`
4
- `)}async function K(t,e,n,s,a){const r=f(t,h);await T(w(r),{recursive:!0});const o=await C(r,"w");let i,d;try{const u=A(G(n),[Y,"dev","--foreground","--no-open","--dir",t,...s===void 0?[]:["--port",String(s)],...a===void 0?[]:["--exports",a]],{cwd:e,env:{...n,ALLYHUB_NO_LOCAL:"1"},detached:!0,stdio:["ignore",o.fd,o.fd],windowsHide:!0});u.once("error",m=>{i=m.message}),u.once("exit",(m,O)=>{i=O??`exit code ${String(m)}`}),u.unref(),d=u.pid}finally{await o.close()}const p=Date.now()+j;for(;Date.now()<p&&i===void 0;){const u=await S(t);if(u!==void 0&&u.pid===d)return u.url;await I(150)}throw i===void 0&&d!==void 0&&process.kill(d,"SIGTERM"),new c("dev-failed",i===void 0?`allyhub dev did not answer within ${String(j/1e3)} s.`:`allyhub dev stopped as it started (${i}).`,{hint:`What it said, in ${h}:
5
- ${await q(t)||"(nothing)"}`})}async function Q(t){const e=await S(t);if(e===void 0)return;if(!e.mine)throw new c("not-dev",`The server at ${e.url} is not one this allyhub dev started (it is AllyHub Studio's, or an older allyhub's), so it is left running.`,{hint:"Studio's stops with its project; an older allyhub dev stops with Ctrl+C where it runs."});process.kill(e.pid,"SIGTERM");const n=Date.now()+k;for(;X(e.pid);){if(Date.now()>n)throw new c("dev-stuck",`allyhub dev (process ${String(e.pid)}) did not stop within ${String(k/1e3)} s.`,{hint:`Stop it with: kill -9 ${String(e.pid)}`});await I(100)}return e.url}export async function pageOn(t,e,n,s){if(s===void 0)return n;const{listed:a}=await N(t,R(t),void 0,V(t)),r=B(a,t,e,s);if(!r)throw new c("not-found",`There is no item ${s} in the project's list.`,{exit:x.notFound,hint:`Its items: ${a.map(o=>o.id).join(", ")||"none"} (allyhub.yaml lists them).`});return`${n}?${new URLSearchParams({item:r.id}).toString()}`}export const dev=M({name:"dev",summary:"The project's items in the browser, each in its editor (docs, sheets, videos, 3D sceneries; websites listed), as their files change; serves from a process of its own until --stop, which outlives the shell that started it, and run again while it runs, opens its page and ends",input:l.strictObject({item:l.string().optional().describe("Open the page on this item: its id (its file without its extension) or its file; or on a file the list names with no kind, which an editor opens by its name (a canvas)"),dir:F,port:l.number().int().min(1).max(65535).optional().describe(`The port; default the first free one from ${String(g)}`),open:l.boolean().default(!0).describe("Open the page in the browser; --no-open only prints it"),foreground:l.boolean().default(!1).describe(`Serve from this process until Ctrl+C; default a detached process of its own, its output in ${h}`),stop:l.boolean().default(!1).describe("Stop the project's running allyhub dev"),exports:l.string().min(1).optional().describe("The folder an export from the page is saved in; default ~/Downloads (each file is made in .allyhub/out/ first)")}),positional:["item"],output:l.strictObject({url:l.string().optional().describe("The page; with --stop, the one stopped, none when none ran")}),examples:["allyhub dev","allyhub dev launch/plan","allyhub dev --port 4400 --no-open","allyhub dev --stop"]},async(t,e)=>{const n=await H(e.cwd,t.dir);if(t.stop){const i=await Q(n);return e.progress(i===void 0?"No allyhub dev runs for this project.":`Stopped allyhub dev at ${i}`),{value:i===void 0?{}:{url:i},text:""}}const s=t.port===void 0?await W(n):void 0;if(s!==void 0){const i=await pageOn(n,e.cwd,s,t.item);return e.progress(`allyhub dev is already running at ${i}`),t.open&&b(i,e.env),{value:{url:i},text:""}}const a=t.exports===void 0?void 0:_(e.cwd,t.exports);if(!t.foreground){const i=await K(n,e.cwd,e.env,t.port,a),d=await pageOn(n,e.cwd,i,t.item);return e.progress(`allyhub dev is at ${d}
6
- It runs until allyhub dev --stop; what it says is in ${h}.`),t.open&&b(d,e.env),{value:{url:d},text:""}}const r=await start(n,t.port,U(e.env),a),o=f(n,E);try{const i=await pageOn(n,e.cwd,r.url,t.item);return await T(w(o),{recursive:!0}),await P(o,JSON.stringify({url:r.url,pid:process.pid,token:r.token,by:D})),e.progress(`allyhub dev is at ${i}
7
- Press Ctrl+C to stop.`),t.open&&b(i,e.env),await new Promise(d=>{const p=()=>{process.off("SIGTERM",p),e.signal.removeEventListener("abort",p),d()};e.signal.aborted&&d(),e.signal.addEventListener("abort",p),process.once("SIGTERM",p)}),{value:{url:i},text:""}}finally{(await v(o,"utf8").catch(()=>"")).includes(`"pid":${String(process.pid)}`)&&await L(o,{force:!0}),await r.close(),await r.project.extensions?.deactivate()}});
4
+ `)}async function q(t,e,n,s,r){const o=f(t,h);await T(w(o),{recursive:!0});const d=await C(o,"w");let i,a;try{const u=A(G(n),[V,"dev","--foreground","--no-open","--dir",t,...s===void 0?[]:["--port",String(s)],...r===void 0?[]:["--exports",r]],{cwd:e,env:{...n,ALLYHUB_NO_LOCAL:"1"},detached:!0,stdio:["ignore",d.fd,d.fd],windowsHide:!0});u.once("error",m=>{i=m.message}),u.once("exit",(m,O)=>{i=O??`exit code ${String(m)}`}),u.unref(),a=u.pid}finally{await d.close()}const p=Date.now()+j;for(;Date.now()<p&&i===void 0;){const u=await S(t);if(u!==void 0&&u.pid===a)return u.url;await I(150)}throw i===void 0&&a!==void 0&&process.kill(a,"SIGTERM"),new c("dev-failed",i===void 0?`allyhub dev did not answer within ${String(j/1e3)} s.`:`allyhub dev stopped as it started (${i}).`,{hint:`What it said, in ${h}:
5
+ ${await X(t)||"(nothing)"}`})}async function K(t){const e=await S(t);if(e===void 0)return;if(!e.mine)throw new c("not-dev",`The server at ${e.url} is not one this allyhub dev started (it is AllyHub Studio's, or an older allyhub's), so it is left running.`,{hint:"Studio's stops with its project; an older allyhub dev stops with Ctrl+C where it runs."});process.kill(e.pid,"SIGTERM");const n=Date.now()+k;for(;W(e.pid);){if(Date.now()>n)throw new c("dev-stuck",`allyhub dev (process ${String(e.pid)}) did not stop within ${String(k/1e3)} s.`,{hint:`Stop it with: kill -9 ${String(e.pid)}`});await I(100)}return e.url}export async function pageOn(t,e,n,s){if(s===void 0)return n;const{listed:r}=await N(t,R(t),void 0,J(t)),o=U(r,t,e,s);if(!o)throw new c("not-found",`There is no item ${s} in the project's list.`,{exit:x.notFound,hint:`Its items: ${r.map(d=>d.id).join(", ")||"none"} (allyhub.yaml lists them).`});return`${n}?${new URLSearchParams({item:o.id}).toString()}`}export const dev=M({name:"dev",summary:"The project's items in the browser, each in its editor (docs, sheets, videos, 3D sceneries; websites listed), as their files change; serves from a process of its own until --stop, which outlives the shell that started it, and run again while it runs, opens its page and ends",input:l.strictObject({item:l.string().optional().describe("Open the page on this item: its id (its file without its extension) or its file; or on a file the list names with no kind, which an editor opens by its name (a canvas)"),dir:F,port:l.number().int().min(1).max(65535).optional().describe(`The port; default the first free one from ${String(g)}`),open:l.boolean().default(!0).describe("Open the page in the browser; --no-open only prints it"),foreground:l.boolean().default(!1).describe(`Serve from this process until Ctrl+C; default a detached process of its own, its output in ${h}`),stop:l.boolean().default(!1).describe("Stop the project's running allyhub dev"),exports:l.string().min(1).optional().describe("The folder an export from the page is saved in; default ~/Downloads (each file is made in .allyhub/out/ first)")}),positional:["item"],output:l.strictObject({url:l.string().optional().describe("The page; with --stop, the one stopped, none when none ran")}),examples:["allyhub dev","allyhub dev launch/plan","allyhub dev --port 4400 --no-open","allyhub dev --stop"]},async(t,e)=>{const n=await B(e.cwd,t.dir);if(t.stop){const i=await K(n);return e.progress(i===void 0?"No allyhub dev runs for this project.":`Stopped allyhub dev at ${i}`),{value:i===void 0?{}:{url:i},text:""}}const s=t.port===void 0?await z(n):void 0;if(s!==void 0){const i=await pageOn(n,e.cwd,s,t.item);return e.progress(`allyhub dev is already running at ${i}`),t.open&&b(i,e.env),{value:{url:i},text:""}}const r=t.exports===void 0?void 0:_(e.cwd,t.exports);if(!t.foreground){const i=await q(n,e.cwd,e.env,t.port,r),a=await pageOn(n,e.cwd,i,t.item);return e.progress(`allyhub dev is at ${a}
6
+ It runs until allyhub dev --stop; what it says is in ${h}.`),t.open&&b(a,e.env),{value:{url:a},text:""}}const o=await start(n,t.port,r),d=f(n,E);try{const i=await pageOn(n,e.cwd,o.url,t.item);return await T(w(d),{recursive:!0}),await P(d,JSON.stringify({url:o.url,pid:process.pid,token:o.token,by:D})),e.progress(`allyhub dev is at ${i}
7
+ Press Ctrl+C to stop.`),t.open&&b(i,e.env),await new Promise(a=>{const p=()=>{process.off("SIGTERM",p),e.signal.removeEventListener("abort",p),a()};e.signal.aborted&&a(),e.signal.addEventListener("abort",p),process.once("SIGTERM",p)}),{value:{url:i},text:""}}finally{(await v(d,"utf8").catch(()=>"")).includes(`"pid":${String(process.pid)}`)&&await L(d,{force:!0}),await o.close(),await o.project.extensions?.deactivate()}});
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{join as y,resolve as w}from"node:path";import{z as e}from"zod";import{formatConsole as v,formatProblem as k}from"../text/index.js";import{exportProject as P}from"@allyhub/export";import{GIF_ENCODE as p,SHARE_ENCODE as n}from"@allyhub/render/encode";import{consoleJson as m}from"@allyhub/project";import{OUT_DIR as A}from"@allyhub/formats";import{EXIT as c}from"@allyhub/protocol";import{madeNotes as j}from"@allyhub/build";import{defineCommand as $}from"../command.js";import{parameters as O}from"../parameters.js";import{projectRoot as D}from"../project.js";import{combosOf as F,commandError as S}from"../version.js";import{dir as C,indexing as E}from"../fields.js";import{extensionsAt as h,kindsAt as T}from"./extensions.js";const N={codec:e.enum(["h264","h265"]).default("h264").describe("The mp4's video codec; h265 is smaller"),crf:e.number().int().min(0).max(63).optional().describe(`Constant rate factor, lower keeping more detail in a larger file: default ${String(n.crf)} for an mp4, 30 for a webm`),maxBitrate:e.number().int().min(0).max(5e5).optional().describe(`An mp4's most video bitrate, kbit/s, 0 for none: default ${String(n.maxKbps)} at 1080p ${String(n.fps)} fps, scaled by the frame's pixels and the frames a second (16000 at 1080p 60, 32000 at 4K 30)`),audioBitrate:e.number().int().min(32).max(512).optional().describe("The sound's bitrate, kbit/s: default 192 (AAC in an mp4), 160 (Opus in a webm); a mov keeps PCM"),gifWidth:e.number().int().min(0).max(16384).optional().describe(`A gif's width in pixels, its height in proportion, up to the video's: default ${String(p.width)}; 0 for the video's own`),gifFps:e.number().min(0).max(120).optional().describe(`A gif's frames a second, up to the video's: default ${String(p.fps)}; 0 for the video's own`),steps:e.boolean().default(!1).describe("A deck's pdf, png and pptx: a page, a file or a slide per step of each page (default each page's last step)"),values:e.enum(["data","shown"]).optional().describe("A sheet's csv, json and md: each value as data (a date 2026-01-15, a time 09:30, a duration 36:00, a number to 15 digits; csv's and json's default) or as its format shows it (15 Jan 2026, $1,200.00; md's default)"),bom:e.boolean().default(!0).describe("A sheet's csv starts with a UTF-8 byte-order mark, by which Excel reads its letters right (é, €, 中文); false for a tool that reads plain UTF-8"),quality:e.number().int().min(0).max(100).optional().describe("An image's jpeg and webp, 0–100: default 90 for a jpeg, a webp lossless"),scale:e.number().min(.25).max(4).optional().describe("An image's png, jpeg, webp and zip: each board's picture this many times its size, its layout kept (type and shapes drawn sharp, a picture as many pixels as its file has); default 1"),width:e.number().int().min(1).optional().describe("An image's pictures each this many pixels wide, the height in proportion: a scale for each board"),height:e.number().int().min(1).optional().describe("An image's pictures each this many pixels high, the width in proportion: a scale for each board"),maxKb:e.number().min(1).optional().describe("An image's jpeg and webp: each board's file at most this many KB, at the best quality under it (said); a png is made when it fits under it"),psd:e.enum(["psd","psb"]).default("psd").describe("An image's psd: psd, or psb (Photoshop's large document format); a board is at most 16384 pixels a side, which a psd holds. Each layer a Photoshop layer by its key: a picture a pixel layer, a text layer a type layer Photoshop redraws on opening, a shape a shape layer, a fill a fill layer, an adjustment an adjustment layer, a component a smart object of its pixels, a group a group; Photoshop draws blends, masks, effects and text by its own formulas"),since:e.string().optional().describe("A doc's docx: what changed since this file (another doc's .mdx, or the Word file it came from, from the project's root) written as Word's revisions, Track Changes, as Word's Compare Documents sets them: words put in and taken out, whole blocks put in or taken out"),changes:e.boolean().default(!1).describe("A doc's docx: what changed since the Word file allyhub doc import kept beside it (<name>.original.docx), as --since does; the editor's Download offers it"),author:e.string().optional().describe("Whose revisions --since writes, as Word names them: default AllyHub"),alike:e.number().min(0).max(1).optional().describe("With --since: the share of their words two blocks of a type must share to be compared word by word, 0–1, default 0.4; under it the one is taken out and the other put in"),pptx:e.enum(["native","picture"]).default("native").describe("A deck's pptx: native, PowerPoint's own model, editable there (the deck's masters, layouts, placeholders, shapes, text, pictures, videos and notes, a component as its picture); or picture, each slide a picture of the page")},z=(s,o)=>`${String(s)} ${o}${s===1?"":"s"}`;export const exportFiles=$({name:"export",summary:"The files: a video, its frames, subtitles, cover and mastered mix; a batch's table of ads; a deck's PDF, PPTX and PNGs; a doc's PDF and Markdown; a sheet's Excel workbook with live formulas, PDF, PNG, CSV, Markdown and JSON; an image's pictures, PDF and layered PSDs; a 3D model's GLB",input:e.strictObject({items:e.array(e.string()).optional().describe("Only these items: each an id (its file without its extension) or its file, or a folder of items; default every one"),combo:e.array(e.string()).optional().describe("Only the combos matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03)"),type:e.array(e.string()).optional().describe("File types: mp4, mov, webm, gif, png, srt, vtt (cues cut as the piece's captions layer cuts them, else by default), cover, wav (the mix, mastered as the export masters it: 48 kHz, 16 bits, the film's length); csv for a piece with slots, its table of ads (<piece>.ads.csv: a row per ad with its combo, picks, length, file, name and generated media); a doc's pdf, docx, png; a sheet's xlsx (every sheet, formulas live with their values cached), pdf, png, csv (a file a sheet); an image's png, jpeg, webp (a file a board), pdf, zip and psd (a layered Photoshop file a board: each layer of its kind, its pixels drawn by Chrome); a deck's pdf, png, pptx; a LinkedIn or X post's linkedin-post or x-post (its API request, its media beside), txt (its text as written, its media and their alt text beside), png; an article's linkedin-article or x-article, png; a 3D model's glb. Default mp4 for a video, pdf for a deck and a doc, xlsx for a sheet, png for an image, glb for a model; each item makes the types it has"),out:e.string().optional().describe("The folder the files go in; default .allyhub/out"),name:e.string().optional().describe("Name a video's or deck's files <name>.<ext> in its folder of the output, with what tells its versions apart before the extension when there are several (<name>.zh-cn.mp4, <name>.c03.mp4); default <output>.<combo>.<ext>"),params:O(N),dir:C}),positional:["items"],output:e.looseObject({out:e.string(),files:e.array(e.looseObject({name:e.string(),path:e.string(),type:e.string()})),failed:e.array(e.looseObject({name:e.string(),code:e.string()}))}),examples:["allyhub export","allyhub export launch/film --type mp4,srt","allyhub export launch/film --type wav","allyhub export ads/tidyform --type csv","allyhub export launch/plan --type pdf,md","allyhub export legal/contract --type docx --param since=legal/contract.original.mdx --param author=Legal","allyhub export finance/budget --type xlsx,pdf","allyhub export finance/budget --type csv --param bom=false","allyhub export launch/deck --type pptx --param pptx=picture","allyhub export launch/poster --type psd","allyhub export launch/poster --type jpeg --param scale=2 --param max-kb=2000","allyhub export --combo lang=zh-cn --param crf=16","allyhub export launch/film --name launch-film --param max-bitrate=0"]},async(s,o)=>{const r=await D(o.cwd,s.dir),f=w(o.cwd,s.out??y(r,A)),u=Object.fromEntries(Object.entries(s.params).filter(([,a])=>a!==void 0));let l=0,t;try{t=await P({root:r,kinds:T(r),out:f,...s.items===void 0?{}:{items:s.items},combos:F(s),...s.type===void 0?{}:{types:s.type},...s.name===void 0?{}:{name:s.name},params:u,index:E(o.env),analyses:h(r).mediaAnalyses(),env:o.env,processors:h(r).exportProcessors(),log:a=>{o.progress(a)},onProgress:a=>{const i=Math.floor(a*10);i<=l||i>=10||(l=i,o.progress(`${String(i*10)}%`))},signal:o.signal})}catch(a){throw S(a)}const b=a=>a?` (${a.integrated.toFixed(1)} LUFS, true peak ${a.truePeak===void 0?"–":a.truePeak.toFixed(1)} dBTP)`:"",g=t.problems.filter(a=>a.level==="error"),d=t.files.flatMap(a=>a.files.length>1?a.files.map(i=>` ${i}`):[` ${a.path}${b(a.loudness)}`]),x=[`${z(d.length,"file")} in ${t.out}:`,...d,...t.failed.length>0?["Not made:",...t.failed.map(a=>` ${a.name}: ${a.message}${a.hint?` ${a.hint}`:""}`)]:[],...t.unindexed.map(a=>`Not indexed, drawn the fallback way: ${a.file} (${a.error})`),...j(t.files),...g.map(k),...v(m(t.console))];return{value:{out:t.out,files:t.files.map(a=>({...a})),failed:t.failed.map(a=>({...a})),problems:t.problems,...t.unindexed.length>0?{unindexed:t.unindexed}:{},...m(t.console)},text:x.join(`
3
+ `),exit:t.failed.length>0?c.failed:c.ok}});
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{access as o}from"node:fs/promises";import{join as r}from"node:path";import{PACKAGE_FILE as i}from"@allyhub/formats/layout";import{projectRoot as c}from"../project.js";export const extensions=()=>import("./extensions.js");export async function projectHost(e){const t=await c(e.cwd).catch(()=>{});if(t===void 0||!await o(r(t,i)).then(()=>!0,()=>!1))return;const{extensionsAt:n}=await extensions();try{return n(t)}catch{return}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{mkdir as c,readFile as u,stat as p,writeFile as d}from"node:fs/promises";import{dirname as f,extname as a,join as w,resolve as g}from"node:path";import{drawHtml as h}from"@allyhub/browser";import{WORK_DIR as x}from"@allyhub/formats";import{GridError as l}from"@allyhub/media";import{EXIT as o}from"@allyhub/protocol";import{readPng as b,videoFrame as $}from"@allyhub/render";import{lookFormat as y,webpPath as v}from"@allyhub/image-render/webp";import{comboKey as F}from"@allyhub/piece";import{CommandError as i}from"../../command.js";export function momentOf(e){const t=e.trim();if(/^@\/?[^@\s]+$/u.test(t))return t;const r=t===""?NaN:Number(t.replace(/s$/u,""));if(!Number.isFinite(r))throw new i("bad-time",`Cannot read the moment "${e}".`,{exit:o.usage,hint:"Write seconds or anchors joined with commas: --at 0.5,3,7.25 or --at @press,@/map (allyhub inspect timeline lists each part's anchors)."});return r}export function secondsOf(e){return e.map(t=>{const r=momentOf(t);if(typeof r=="string")throw new i("bad-time",`${r} is an anchor: a video file's moments are seconds.`,{exit:o.usage});return r})}export const usage=(e,t,r)=>new i(e,t,{exit:o.usage,...r===void 0?{}:{hint:r}});export function gridError(e){return e instanceof l?new i(`grid-${e.code}`,e.message,{exit:o.usage,...e.hint===void 0?{}:{hint:e.hint}}):e}export const comboName=e=>{if(e.id!==void 0)return e.id;const t=F(e.combo);return t==="default"?"":t},withCombo=(e,t)=>{const r=comboName(t);return r===""?e:`${e}.${r}`},secondsName=e=>`${e.toFixed(2)}s`;export function picturePath(e,t,r){return v(t===void 0?r:g(e,t))}export async function save(e,t){return await c(f(e),{recursive:!0}),await d(e,t),e}export const looks=()=>y();export async function drawPage(e,t){const r=(t.pictures??[]).map((s,m)=>({at:pictureUrl(m),body:s,type:P(s)})),n=looks();return h(e,{html:t.html,width:t.width,...t.height===void 0?{}:{height:t.height},format:n,...n==="webp"?{quality:90}:{},mounts:r})}export const pictureUrl=e=>`/pictures/${String(e)}`;const P=e=>e[0]===137&&e[1]===80?"image/png":e.toString("ascii",8,12)==="WEBP"?"image/webp":"image/jpeg";export const isFile=async e=>(await p(e).catch(()=>{}))?.isFile()===!0;export async function readPicture(e){let t;try{t=await u(e)}catch{throw new i("not-found",`Cannot read ${e}.`,{exit:o.notFound})}try{return b(t.toString("ascii",1,4)==="PNG"?t:await $(e,0,1))}catch(r){throw new i("bad-picture",`${e} is not a picture ffmpeg reads: ${r.message}`,{exit:o.usage})}}export const isPicture=e=>[".png",".jpg",".jpeg",".webp",".bmp",".tif",".tiff"].includes(a(e).toLowerCase());const N=new Set(["mp4","mov","webm","m4v","qt","mkv","avi"]);export const isVideo=e=>N.has(a(e).slice(1).toLowerCase()),workPath=(e,...t)=>w(e,x,...t);
2
+ import{mkdir as c,readFile as u,stat as p,writeFile as d}from"node:fs/promises";import{dirname as f,extname as s,join as w,resolve as g}from"node:path";import{drawHtml as h}from"@allyhub/browser";import{WORK_DIR as x}from"@allyhub/formats";import{GridError as l}from"@allyhub/media";import{EXIT as o}from"@allyhub/protocol";import{lookFormat as b,webpPath as $}from"@allyhub/image-render/webp";import{comboKey as y}from"@allyhub/piece";import{CommandError as i}from"../../command.js";export function momentOf(e){const t=e.trim();if(/^@\/?[^@\s]+$/u.test(t))return t;const r=t===""?NaN:Number(t.replace(/s$/u,""));if(!Number.isFinite(r))throw new i("bad-time",`Cannot read the moment "${e}".`,{exit:o.usage,hint:"Write seconds or anchors joined with commas: --at 0.5,3,7.25 or --at @press,@/map (allyhub inspect timeline lists each part's anchors)."});return r}export function secondsOf(e){return e.map(t=>{const r=momentOf(t);if(typeof r=="string")throw new i("bad-time",`${r} is an anchor: a video file's moments are seconds.`,{exit:o.usage});return r})}export const usage=(e,t,r)=>new i(e,t,{exit:o.usage,...r===void 0?{}:{hint:r}});export function gridError(e){return e instanceof l?new i(`grid-${e.code}`,e.message,{exit:o.usage,...e.hint===void 0?{}:{hint:e.hint}}):e}export const comboName=e=>{if(e.id!==void 0)return e.id;const t=y(e.combo);return t==="default"?"":t},withCombo=(e,t)=>{const r=comboName(t);return r===""?e:`${e}.${r}`},secondsName=e=>`${e.toFixed(2)}s`;export function picturePath(e,t,r){return $(t===void 0?r:g(e,t))}export async function save(e,t){return await c(f(e),{recursive:!0}),await d(e,t),e}export const looks=()=>b();export async function drawPage(e,t){const r=(t.pictures??[]).map((a,m)=>({at:pictureUrl(m),body:a,type:v(a)})),n=looks();return h(e,{html:t.html,width:t.width,...t.height===void 0?{}:{height:t.height},format:n,...n==="webp"?{quality:90}:{},mounts:r})}export const pictureUrl=e=>`/pictures/${String(e)}`;const v=e=>e[0]===137&&e[1]===80?"image/png":e.toString("ascii",8,12)==="WEBP"?"image/webp":"image/jpeg";export const isFile=async e=>(await p(e).catch(()=>{}))?.isFile()===!0;export async function readPicture(e){let t;try{t=await u(e)}catch{throw new i("not-found",`Cannot read ${e}.`,{exit:o.notFound})}const{readPng:r,videoFrame:n}=await import("@allyhub/render");try{return r(t.toString("ascii",1,4)==="PNG"?t:await n(e,0,1))}catch(a){throw new i("bad-picture",`${e} is not a picture ffmpeg reads: ${a.message}`,{exit:o.usage})}}export const isPicture=e=>[".png",".jpg",".jpeg",".webp",".bmp",".tif",".tiff"].includes(s(e).toLowerCase());const F=new Set(["mp4","mov","webm","m4v","qt","mkv","avi"]);export const isVideo=e=>F.has(s(e).slice(1).toLowerCase()),workPath=(e,...t)=>w(e,x,...t);
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{dirname as m,join as u,relative as a,sep as g}from"node:path";import{fromBuild as l,pagesOf as w}from"@allyhub/doc-extension/cli";import{itemIdOf as h}from"@allyhub/formats";import{EXIT as P}from"@allyhub/protocol";import{DocPageError as j,docPages as k}from"@allyhub/doc-print";import{CommandError as E}from"../../command.js";import{projectSession as $}from"../inspect/views.js";import{looks as v,picturePath as x,save as y,workPath as F}from"./common.js";export async function docPicture(e){const t=a(e.root,m(e.file)),i=e.page===void 0?void 0:w(e.page),s=h(a(e.root,e.file).split(g).join("/")),{stills:p,data:n,sources:c}=await l(e.file,s,o=>$(e.root,o));let r;try{r=await k({root:e.root,doc:{file:a(e.root,e.file),dir:t,path:t,...n===void 0?{}:{data:n},sources:c},pages:i,stills:p,format:v(),onFetch:()=>{e.progress?.("Getting pdf.js, once, to draw a doc's pages…")}})}catch(o){throw o instanceof j?new E("not-found",o.message,{exit:P.notFound,hint:`Pages are 1 to ${String(o.count)}.`}):o}const d=i===void 0?"pages":`page-${e.page?.replace(/[^\d]+/gu,"-")??""}`,f=await y(x(e.cwd,e.out,u(F(e.root,"frames",t),`${d}.png`)),r.picture);return{mode:"frame",source:"doc",doc:t,out:f,pages:r.count,paper:r.paper,drawn:r.drawn}}
2
+ import{dirname as m,join as u,relative as a,sep as g}from"node:path";import{fromBuild as l,pagesOf as w}from"@allyhub/doc-extension/cli";import{itemIdOf as h}from"@allyhub/formats";import{EXIT as P}from"@allyhub/protocol";import{DocPageError as j,docPages as k}from"@allyhub/doc-print";import{CommandError as E}from"../../command.js";import{projectSession as $}from"../run-context.js";import{looks as v,picturePath as x,save as y,workPath as F}from"./common.js";export async function docPicture(e){const t=a(e.root,m(e.file)),i=e.page===void 0?void 0:w(e.page),n=h(a(e.root,e.file).split(g).join("/")),{stills:p,data:s,sources:c}=await l(e.file,n,o=>$(e.root,o));let r;try{r=await k({root:e.root,doc:{file:a(e.root,e.file),dir:t,path:t,...s===void 0?{}:{data:s},sources:c},pages:i,stills:p,format:v(),onFetch:()=>{e.progress?.("Getting pdf.js, once, to draw a doc's pages…")}})}catch(o){throw o instanceof j?new E("not-found",o.message,{exit:P.notFound,hint:`Pages are 1 to ${String(o.count)}.`}):o}const d=i===void 0?"pages":`page-${e.page?.replace(/[^\d]+/gu,"-")??""}`,f=await y(x(e.cwd,e.out,u(F(e.root,"frames",n),`${d}.png`)),r.picture);return{mode:"frame",source:"doc",doc:t,out:f,pages:r.count,paper:r.paper,drawn:r.drawn}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{basename as J,resolve as S}from"node:path";import{DECK_OVERLAY_KEY as Q,OVERLAY_KEY as Z,frameOverlay as v,overlaySvg as tt}from"./overlay.js";import{Mattes as et}from"@allyhub/video-measure";import{filmTimes as it,partOf as nt}from"@allyhub/video-measure";import{GRID_WIDTH as st,MAX_TILES as W,defaultCols as ot,gridHtml as rt,gridLayout as at,labelSize as dt,probeVideo as ct,sheetHtml as pt,sheetTile as ft,stretchFrames as lt}from"@allyhub/media";import{clipTypeOf as ht,ffmpegOf as mt,hasFinalLook as ut,videoFrame as wt,writeClip as gt}from"@allyhub/render";import{inTime as K}from"@allyhub/build";import{EXIT as $t}from"@allyhub/protocol";import{CommandError as yt}from"../../command.js";import{drawPage as j,gridError as z,isFile as bt,looks as kt,momentOf as xt,pictureUrl as G,picturePath as P,save as Y,secondsName as D,usage as M,withCombo as H,workPath as Ft}from"./common.js";const A=t=>Math.round(t*1e3)/1e3,X=t=>({source:"piece",piece:t.target.piece,combo:t.target.combo,...t.target.id===void 0?{}:{id:t.target.id},format:t.target.format}),R=(t,e)=>Ft(e,"frames",t.target.piece);function L(t,e){const i=t.at(-1);return t.find(r=>e>=r.start&&e<r.end)??(i&&e>=i.end?i:void 0)}export async function stillsSheet(t,e){const i=t.timeline,r=t.version.summary?.text??[],h=i.parts.flatMap((n,a)=>{const y=n.steps??[n.still];return y.map((m,x)=>({p:n,t:m,slide:a,step:x,of:y.length}))}),p=i.parts.flatMap(n=>n.frame?[n.frame]:[]),u=p.length>0,E=new Set(p.map(n=>(n.width/n.height).toFixed(3))),d=u&&p[0]?E.size===1?p[0].width/p[0].height:1:i.width/i.height,w=h.length===1?1:d<1?4:3,o=d<1?1320:1600,g=!K(t.piece,t.prepared.kinds),$=t.prepared.kinds.find(n=>n.id===t.piece.kind)?.part??{noun:"part",plural:"parts"},C=[];if(g||u){const n=ft({width:o,cols:w});C.push(...await t.partStills(h.map(a=>({part:a.p.key,step:a.step,width:n,format:"webp"}))))}else for(const n of h)C.push(await t.still(n.t));const k=[];for(let n=0;n<h.length;n+=w)k.push({cells:h.slice(n,n+w).map(({p:a,slide:y,step:m,of:x},_)=>{const b=r.find(I=>I.key===a.key);return{image:C[n+_]??Buffer.alloc(0),label:g?`${String(y+1)}${x>1?`.${String(m)}`:""} · ${a.key}${a.hidden?" · hidden":""}`:a.frame?`${a.key} · ${String(a.frame.width)}×${String(a.frame.height)}`:`${a.key} · ${a.still.toFixed(2)} s`,text:b?.notes??b?.spoken??b?.onScreen.join(" · ")??""}})});const T=await j(t.opened.session.browser,{html:pt({title:g?`${t.target.piece} · ${i.parts.length===1?"1 slide":`${String(i.parts.length)} slides`}`:`${t.target.piece} · ${i.parts.length===1?`1 ${$.noun}`:`${String(i.parts.length)} ${$.plural}`}${u?"":` · ${i.duration.toFixed(2)} s`}`,rows:k,cols:w,width:o,aspect:d}),width:o}),O=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H("sheet",t.target)}.png`)),T);return{mode:"sheet",...g?{slides:!0}:{},unit:$,...X(t),out:O,parts:i.parts.map(n=>({key:n.key,t:A(n.still)}))}}export function clipKind(t){const e=ht(t);if(!e)throw M("bad-clip",`Cannot tell what kind of video ${t} is.`,"End --clip with .gif, .mp4 or .webm.");return e}async function St(t,e){if(!await bt(t))throw new yt("not-found",`There is no file ${t} (--beside).`,{exit:$t.notFound});const i=await ct(t),r=Math.max(1,Math.round(i.duration*i.fps)),h=[];for(const p of e){const u=Math.round(p*i.fps);h.push(p<0||u>r-1?void 0:await wt(t,u,i.fps))}return{info:i,shots:h}}export async function pieceMoments(t,e){const i=t.timeline,r=e.part===void 0?void 0:nt(i,e.part),h=r?.start??0,p=e.from!==void 0||e.to!==void 0;if(p&&e.at!==void 0)throw M("bad-option","Give --at or --from and --to, not both.");if(p&&(e.from===void 0||e.to===void 0))throw M("bad-option","A stretch needs --from and --to.");if(e.clip!==void 0&&!p)throw M("bad-option","--clip needs --from and --to.","For example --from 3.2 --to 4.4 --clip move.gif.");const u=e.clip===void 0?void 0:clipKind(e.clip),E=e.clip===void 0||e.out!==void 0;let d;try{d=e.from!==void 0&&e.to!==void 0?lt({from:h+e.from,to:h+e.to},{fps:i.fps,duration:i.duration,grid:E}):void 0}catch(s){throw z(s)}const w=(e.at??[]).map(xt),o=d?d.times:w.length===0&&r?[r.still]:it(w,i.parts,r);if(o.length>W&&E)throw M("bad-time",`${String(o.length)} moments; one picture holds at most ${String(W)}.`);for(const s of o)if(s<0||s>i.duration+1/i.fps)throw M("bad-time",`${s.toFixed(2)} s is outside ${t.target.piece}, which is ${i.duration.toFixed(2)} s long.`,r?`With --part, --at counts from the part's start; ${r.key} runs ${r.start.toFixed(2)}–${r.end.toFixed(2)} s.`:`Parts: ${i.parts.map(c=>`${c.key} ${c.start.toFixed(2)}–${c.end.toFixed(2)}`).join(", ")}.`);const g=s=>Math.min(s,i.duration),$={...X(t),final:ut(t.look,i),...d?{stretch:{from:d.from,to:d.to,every:d.every,frames:d.times.length}}:{}};if(o.length===1&&!d&&!e.overlay&&e.beside===void 0){const s=o[0]??0,c=r??L(i.parts,s),f=c?.key??"",l=c?.frame??{width:i.width,height:i.height},F=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H(e.at===void 0&&r?r.key:D(s),t.target)}.png`)),await t.still(g(s),{format:kt()}));return{mode:"frame",...$,out:F,t:A(s),part:f,width:l.width,height:l.height}}const k=[];for(const s of o)k.push(await t.still(g(s)));const T=e.clip!==void 0&&u?await gt(k,{file:S(e.cwd,e.clip),type:u,fps:i.fps/(d?.every??1)}):void 0;if(!E)return{mode:"clip",...$,clip:T};const O=[];if(e.overlay){const s=i.duration-1/i.fps,c=await t.version.measure(o.map(l=>Math.min(l,s))),f=new et({root:t.prepared.root,media:t.prepared.media,ffmpeg:await mt()});for(const l of o)O.push(await v(Math.min(l,s),i,c,t.prepared.media,f))}const n=e.beside===void 0?void 0:await St(S(e.cwd,e.beside),o),a=n?2:1,y=i.width/i.height;let m;try{m=at({count:o.length,cols:ot(o.length,y*a),width:st,aspect:y*a})}catch(s){throw z(s)}const x=(m.tiles[0]?.width??i.width)/a,_=Math.max(11,dt(x)-4),b=[...k],I=n?J(e.beside??""):"",B=o.map((s,c)=>{const f=O[c],l={src:G(c),label:K(t.piece,t.prepared.kinds)?`${s.toFixed(d?3:2)} s · ${L(i.parts,s)?.key??""}`:L(i.parts,s)?.key??"",...f?{over:tt(f,i.width,i.height,x/i.width,_)}:{}};if(!n)return{pictures:[l]};const F=n.shots[c];return F&&b.push(F),{pictures:[{src:F?G(b.length-1):void 0,label:`${I} · ${s.toFixed(2)} s${F?"":" · past its end"}`},l]}}),N=await j(t.opened.session.browser,{html:rt({layout:m,cells:B,...e.overlay?{legend:K(t.piece,t.prepared.kinds)?Z:Q}:{}}),width:m.width,pictures:b}),V=o[0]??0,U=o.at(-1)??V,q=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H(`${d?"stretch":"moments"}-${D(V)}-${D(U)}`,t.target)}.png`)),N);return{mode:"grid",...$,out:q,cols:m.cols,tiles:o.map((s,c)=>{const f=m.tiles[c],l=O[c];return{t:A(s),part:L(i.parts,s)?.key??"",...f?{box:[f.x,f.y,f.width,f.height]}:{},...l?{overlay:l}:{},...n?{beside:{t:A(s),shown:n.shots[c]!==void 0}}:{}}}),...n?{beside:{file:S(e.cwd,e.beside??""),video:{duration:n.info.duration,width:n.info.width,height:n.info.height,fps:n.info.fps}}}:{},...T?{clip:T}:{}}}
2
+ import{basename as et,resolve as E}from"node:path";import{DECK_OVERLAY_KEY as nt,OVERLAY_KEY as it,frameOverlay as rt,overlaySvg as st}from"./overlay.js";import{Mattes as ot}from"@allyhub/video-measure";import{filmTimes as at,partOf as dt}from"@allyhub/video-measure";import{GRID_WIDTH as ct,MAX_TILES as N,defaultCols as ft,gridHtml as pt,gridLayout as lt,labelSize as ht,probeVideo as ut,sheetHtml as mt,sheetTile as q,stretchFrames as wt}from"@allyhub/media";import{clipTypeOf as gt,ffmpegOf as $t,hasFinalLook as yt,videoFrame as bt,writeClip as kt}from"@allyhub/render";import{inTime as D}from"@allyhub/build";import{webp as xt}from"@allyhub/image-render/webp";import{EXIT as Mt}from"@allyhub/protocol";import{CommandError as St}from"../../command.js";import{drawPage as J,gridError as Q,isFile as Ft,looks as Z,momentOf as Et,pictureUrl as v,picturePath as H,save as V,secondsName as U,usage as T,withCombo as K,workPath as Tt}from"./common.js";const W=t=>Math.round(t*1e3)/1e3,X=t=>Math.round(t*100)/100,Ot=t=>`${String(X(t))}×`,j=4,B=t=>({source:"piece",piece:t.target.piece,combo:t.target.combo,...t.target.id===void 0?{}:{id:t.target.id},format:t.target.format}),z=(t,e)=>Tt(e,"frames",t.target.piece);function L(t,e){const n=t.at(-1);return t.find(s=>e>=s.start&&e<s.end)??(n&&e>=n.end?n:void 0)}export async function stillsSheet(t,e){const n=t.timeline,s=t.version.summary?.text??[],f=n.parts.flatMap((i,c)=>{const k=i.steps??[i.still];return k.map((I,_)=>({p:i,t:I,slide:c,step:_,of:k.length}))}),l=n.parts.flatMap(i=>i.frame?[i.frame]:[]),a=l.length>0,g=new Set(l.map(i=>(i.width/i.height).toFixed(3))),d=a&&l[0]?g.size===1?l[0].width/l[0].height:1:n.width/n.height,x=!D(t.piece,t.prepared.kinds),o=f.length===1?1:d<1?4:2,M=2e3,P=j,R=t.prepared.kinds.find(i=>i.id===t.piece.kind)?.part??{noun:"part",plural:"parts"},S=[];if(x||a){const i=q({width:M,cols:o});S.push(...await t.partStills(f.map(c=>({part:c.p.key,step:c.step,width:i,format:"webp"}))))}else for(const i of f)S.push(await t.still(i.t));const F=[];for(let i=0;i<f.length;i+=o)F.push({cells:f.slice(i,i+o).map(({p:c,slide:k,step:I,of:_},Y)=>{const A=s.find(G=>G.key===c.key);return{image:S[i+Y]??Buffer.alloc(0),label:x?`${String(k+1)}${_>1?`.${String(I)}`:""} · ${c.key}${c.hidden?" · hidden":""}`:c.frame?`${c.key} · ${String(c.frame.width)}×${String(c.frame.height)}`:`${c.key} · ${c.still.toFixed(2)} s`,text:A?.notes??A?.spoken??A?.onScreen.join(" · ")??""}})});const b=a?void 0:q({width:M,cols:o})/n.width,h=`${x?`${t.target.piece} · ${n.parts.length===1?"1 slide":`${String(n.parts.length)} slides`}`:`${t.target.piece} · ${n.parts.length===1?`1 ${R.noun}`:`${String(n.parts.length)} ${R.plural}`}${a?"":` · ${n.duration.toFixed(2)} s`}`}${b===void 0?"":` · ${Ot(b)}`}`,$=Math.max(1,Math.ceil(P/o)),y=[],u=Math.max(1,Math.ceil(F.length/$));for(let i=0;i<u;i++){const c=await J(t.opened.session.browser,{html:mt({title:u===1?h:`${h} · ${String(i+1)} of ${String(u)}`,rows:F.slice(i*$,(i+1)*$),cols:o,width:M,aspect:d}),width:M}),k=u===1?K("sheet",t.target):`${K("sheet",t.target)}-${String(i+1)}`;y.push(await V(H(e.cwd,u===1?e.out:void 0,E(z(t,e.root),`${k}.png`)),c))}const C=y[0]??"";return{mode:"sheet",...x?{slides:!0}:{},unit:R,...B(t),out:C,...y.length>1?{outs:y}:{},...b===void 0?{}:{scale:X(b)},parts:n.parts.map(i=>({key:i.key,t:W(i.still)}))}}export function clipKind(t){const e=gt(t);if(!e)throw T("bad-clip",`Cannot tell what kind of video ${t} is.`,"End --clip with .gif, .mp4 or .webm.");return e}async function Pt(t,e){if(!await Ft(t))throw new St("not-found",`There is no file ${t} (--beside).`,{exit:Mt.notFound});const n=await ut(t),s=Math.max(1,Math.round(n.duration*n.fps)),f=[];for(const l of e){const a=Math.round(l*n.fps);f.push(l<0||a>s-1?void 0:await bt(t,a,n.fps))}return{info:n,shots:f}}async function Ct(t,e,n){if(n.at!==void 0||n.from!==void 0||n.to!==void 0||n.clip!==void 0||n.overlay||n.beside!==void 0)throw T("bad-option",`${e} is a cover: it has its still alone.`);const s=await t.cover(e),f=await V(H(n.cwd,n.out,E(z(t,n.root),`${K(e,t.target)}.png`)),Z()==="webp"?await xt(s):s);return{mode:"cover",...B(t),out:f,cover:e,width:t.timeline.width,height:t.timeline.height}}export async function pieceMoments(t,e){if(e.at!==void 0&&e.at.length>j&&e.clip===void 0){const n=e.at,s=Math.ceil(n.length/j),f=[];for(let a=0;a<s;a++){const g=await tt(t,{...e,at:n.slice(Math.round(a*n.length/s),Math.round((a+1)*n.length/s)),out:e.out===void 0?void 0:e.out.replace(/(\.[^./]*)?$/u,d=>`-${String(a+1)}${d}`)});if(g.mode!=="grid")throw new Error(`Moments drew a ${g.mode}.`);f.push(g)}const[l]=f;if(l)return{...l,outs:f.map(a=>a.out),tiles:f.flatMap((a,g)=>a.tiles.map(d=>({...d,picture:g})))}}return tt(t,e)}async function tt(t,e){const n=t.timeline;if(e.part!==void 0&&!n.parts.some(r=>r.key===e.part)&&t.coverKeys().includes(e.part))return Ct(t,e.part,e);const s=e.part===void 0?void 0:dt(n,e.part),f=s?.start??0,l=e.from!==void 0||e.to!==void 0;if(l&&e.at!==void 0)throw T("bad-option","Give --at or --from and --to, not both.");if(l&&(e.from===void 0||e.to===void 0))throw T("bad-option","A stretch needs --from and --to.");if(e.clip!==void 0&&!l)throw T("bad-option","--clip needs --from and --to.","For example --from 3.2 --to 4.4 --clip move.gif.");const a=e.clip===void 0?void 0:clipKind(e.clip),g=e.clip===void 0||e.out!==void 0;let d;try{d=e.from!==void 0&&e.to!==void 0?wt({from:f+e.from,to:f+e.to},{fps:n.fps,duration:n.duration,grid:g}):void 0}catch(r){throw Q(r)}const x=(e.at??[]).map(Et),o=d?d.times:x.length===0&&s?[s.still]:at(x,n.parts,s);if(o.length>N&&g)throw T("bad-time",`${String(o.length)} moments; one picture holds at most ${String(N)}.`);for(const r of o)if(r<0||r>n.duration+1/n.fps)throw T("bad-time",`${r.toFixed(2)} s is outside ${t.target.piece}, which is ${n.duration.toFixed(2)} s long.`,s?`With --part, --at counts from the part's start; ${s.key} runs ${s.start.toFixed(2)}–${s.end.toFixed(2)} s.`:`Parts: ${n.parts.map(p=>`${p.key} ${p.start.toFixed(2)}–${p.end.toFixed(2)}`).join(", ")}.`);const M=r=>Math.min(r,n.duration),P={...B(t),final:yt(t.look,n),...d?{stretch:{from:d.from,to:d.to,every:d.every,frames:d.times.length}}:{}};if(o.length===1&&!d&&!e.overlay&&e.beside===void 0){const r=o[0]??0,p=s??L(n.parts,r),m=p?.key??"",w=p?.frame??{width:n.width,height:n.height},O=await V(H(e.cwd,e.out,E(z(t,e.root),`${K(e.at===void 0&&s?s.key:U(r),t.target)}.png`)),await t.still(M(r),{format:Z()}));return{mode:"frame",...P,out:O,t:W(r),timed:D(t.piece,t.prepared.kinds),part:m,width:w.width,height:w.height}}const S=[];for(const r of o)S.push(await t.still(M(r)));const F=e.clip!==void 0&&a?await kt(S,{file:E(e.cwd,e.clip),type:a,fps:n.fps/(d?.every??1)}):void 0;if(!g)return{mode:"clip",...P,clip:F};const b=[];if(e.overlay){const r=n.duration-1/n.fps,p=await t.version.measure(o.map(w=>Math.min(w,r))),m=new ot({root:t.prepared.root,media:t.prepared.media,ffmpeg:await $t()});for(const w of o)b.push(await rt(Math.min(w,r),n,p,t.prepared.media,m))}const h=e.beside===void 0?void 0:await Pt(E(e.cwd,e.beside),o),$=h?2:1,y=n.width/n.height;let u;try{u=lt({count:o.length,cols:d?ft(o.length,y*$):y*$>=2?1:y*$>=1?2:j,width:ct,aspect:y*$})}catch(r){throw Q(r)}const C=(u.tiles[0]?.width??n.width)/$,i=Math.max(11,ht(C)-4),c=[...S],k=h?et(e.beside??""):"",I=o.map((r,p)=>{const m=b[p],w={src:v(p),label:D(t.piece,t.prepared.kinds)?`${r.toFixed(d?3:2)} s · ${L(n.parts,r)?.key??""}`:L(n.parts,r)?.key??"",...m?{over:st(m,n.width,n.height,C/n.width,i)}:{}};if(!h)return{pictures:[w]};const O=h.shots[p];return O&&c.push(O),{pictures:[{src:O?v(c.length-1):void 0,label:`${k} · ${r.toFixed(2)} s${O?"":" · past its end"}`},w]}}),_=await J(t.opened.session.browser,{html:pt({layout:u,cells:I,...e.overlay?{legend:D(t.piece,t.prepared.kinds)?it:nt}:{}}),width:u.width,pictures:c}),Y=o[0]??0,A=o.at(-1)??Y,G=await V(H(e.cwd,e.out,E(z(t,e.root),`${K(`${d?"stretch":"moments"}-${U(Y)}-${U(A)}`,t.target)}.png`)),_);return{mode:"grid",...P,out:G,cols:u.cols,scale:X(C/(L(n.parts,o[0]??0)?.frame?.width??n.width)),tiles:o.map((r,p)=>{const m=u.tiles[p],w=b[p];return{t:W(r),part:L(n.parts,r)?.key??"",...m?{box:[m.x,m.y,m.width,m.height]}:{},...w?{overlay:w}:{},...h?{beside:{t:W(r),shown:h.shots[p]!==void 0}}:{}}}),...h?{beside:{file:E(e.cwd,e.beside??""),video:{duration:h.info.duration,width:h.info.width,height:h.info.height,fps:h.info.fps}}}:{},...F?{clip:F}:{}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFileSync as w}from"node:fs";import{dirname as $,join as l}from"node:path";import{startBrowser as x}from"@allyhub/browser";import{EXIT as b}from"@allyhub/protocol";import{SHEET_FONT as y,sheetFontsCss as S}from"@allyhub/doc-print";import{columnIndex as p,rangeName as A,readArea as E,sheetHtml as k}from"@allyhub/sheet";import{CommandError as N}from"../../command.js";import{openSheet as M}from"@allyhub/sheet-extension/cli";import{kindsAt as I}from"../extensions.js";import{drawPage as T,picturePath as C,save as F,workPath as H}from"./common.js";export const SHEET_ROWS=200,SHEET_COLUMNS=60;const g=12;function O(e,o){const c=e.used;if(!c)return;const m=/^\$?([A-Za-z]{1,3}):\$?([A-Za-z]{1,3})$/u.exec(o);if(m){const t=p(m[1]??""),r=p(m[2]??"");return t===void 0||r===void 0?void 0:{...c,left:Math.min(t,r),right:Math.max(t,r)}}const s=/^\$?(\d+):\$?(\d+)$/u.exec(o);if(!s)return;const u=Number(s[1])-1,n=Number(s[2])-1;return{...c,top:Math.min(u,n),bottom:Math.max(u,n)}}const P=e=>e.replace(/^'|'$/gu,"").replaceAll("''","'");export async function sheetPicture(e){const{workbook:o,calc:c,file:m}=await M(e.root,{cwd:e.cwd,kinds:I},e.item),s=$(m),u=a=>{throw new N("not-found",`${a} is not a sheet or a range of this workbook.`,{exit:b.notFound,hint:`Sheets: ${o.sheets.map(i=>i.name).join(", ")}. A range is Summary!B3:D9, or B3:D9 on the first sheet.`})};let n,t;if(e.range!==void 0){const a=o.sheet(e.range);if(a)n=[a];else{const i=e.range.lastIndexOf("!"),d=i<0?o.sheets[0]:o.sheet(P(e.range.slice(0,i))),h=e.range.slice(i+1);if(!d||(t=E(h)??O(d,h),!t))return u(e.range);n=[d]}}const r=k(c,{...n?{sheets:n}:{},...t?{area:t}:{rows:SHEET_ROWS,columns:SHEET_COLUMNS},headings:!0,css:`body{padding:${String(g)}px}`,font:y,file:a=>{try{return new Uint8Array(w(l(e.root,s,a)))}catch{return}}}),f=await x({gpu:!1,htmlInCanvas:!1});try{const a=await T(f,{html:r.html.replace("<style>",`<style>${await S(r.html)}`),width:r.width+2*g}),i=e.range===void 0?"sheet":e.range.replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/gu,""),d=await F(C(e.cwd,e.out,l(H(e.root,"frames",s),`${i||"sheet"}.png`)),a);return{mode:"frame",source:"sheet",sheet:s,out:d,...e.range===void 0?{}:{range:e.range},cut:r.cut,at:{...n?.[0]?{sheet:n[0].name}:{},...t?{range:A(t)}:{}}}}finally{await f.close()}}
2
+ import{itemIdOf as y}from"@allyhub/formats";import{readFileSync as S}from"node:fs";import{dirname as A,join as p}from"node:path";import{startBrowser as E}from"@allyhub/browser";import{EXIT as N}from"@allyhub/protocol";import{SHEET_FONT as k,sheetFontsCss as M}from"@allyhub/doc-print";import{columnIndex as g,rangeName as I,readArea as O,sheetHtml as T}from"@allyhub/sheet";import{CommandError as C}from"../../command.js";import{openSheet as F}from"@allyhub/sheet-extension/cli";import{kindsAt as H}from"../extensions.js";import{drawPage as P,picturePath as B,save as _,workPath as j}from"./common.js";export const SHEET_ROWS=80,SHEET_COLUMNS=30;const w=12;function v(e,r){const f=e.used;if(!f)return;const c=/^\$?([A-Za-z]{1,3}):\$?([A-Za-z]{1,3})$/u.exec(r);if(c){const n=g(c[1]??""),m=g(c[2]??"");return n===void 0||m===void 0?void 0:{...f,left:Math.min(n,m),right:Math.max(n,m)}}const u=/^\$?(\d+):\$?(\d+)$/u.exec(r);if(!u)return;const h=Number(u[1])-1,a=Number(u[2])-1;return{...f,top:Math.min(h,a),bottom:Math.max(h,a)}}const z=e=>e.replace(/^'|'$/gu,"").replaceAll("''","'");export async function sheetPicture(e){const{workbook:r,calc:f,file:c}=await F(e.root,{cwd:e.cwd,kinds:H},e.item),u=A(c),h=i=>{throw new C("not-found",`${i} is not a sheet or a range of this workbook.`,{exit:N.notFound,hint:`Sheets: ${r.sheets.map(s=>s.name).join(", ")}. A range is Summary!B3:D9, or B3:D9 on the first sheet.`})};let a,n;if(e.range!==void 0){const i=r.sheet(e.range);if(i)a=[i];else{const s=e.range.lastIndexOf("!"),d=s<0?r.sheets[0]:r.sheet(z(e.range.slice(0,s))),o=e.range.slice(s+1);if(!d||(n=O(o)??v(d,o),!n))return h(e.range);a=[d]}}const m=await E({gpu:!1,htmlInCanvas:!1});try{const i=async(t,$)=>{const l=T(f,{...t?{sheets:t}:{},...n?{area:n}:{rows:SHEET_ROWS,columns:SHEET_COLUMNS},headings:!0,css:`body{padding:${String(w)}px}`,font:k,file:b=>{try{return new Uint8Array(S(p(e.root,u,b)))}catch{return}}}),x=await P(m,{html:l.html.replace("<style>",`<style>${await M(l.html)}`),width:l.width+2*w});return{out:await _(B(e.cwd,e.out,p(j(e.root,"frames",y(c)),`${$||"sheet"}.png`)),x),cut:l.cut}},s=t=>t.replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/gu,""),d=e.range===void 0&&e.out===void 0&&r.sheets.length>1?r.sheets:void 0,o=[];if(d)for(const t of d)o.push(await i([t],s(t.name)));else o.push(await i(a,e.range===void 0?"sheet":s(e.range)));return{mode:"frame",source:"sheet",sheet:u,out:o[0]?.out??"",outs:o.map(t=>t.out),...e.range===void 0?{}:{range:e.range},cut:o.flatMap(t=>t.cut),at:{...a?.[0]?{sheet:a[0].name}:{},...n?{range:I(n)}:{}}}}finally{await m.close()}}
@@ -1,10 +1,10 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{relative as _,sep as G}from"node:path";import{z as t}from"zod";import{formatConsole as N,formatProblem as R}from"../text/index.js";import{sizeOf as B}from"@allyhub/build";import{COMPARE_DEFAULTS as H}from"@allyhub/measure";import{CUT_REVIEW_DEFAULTS as U,cutLine as J,dbText as S,silenceText as V}from"@allyhub/video-measure";import{consoleJson as T}from"@allyhub/project";import{PAGE_CAPTURE_DEFAULTS as x}from"@allyhub/browser";import{itemIdOf as q}from"@allyhub/formats";import{EXIT as A}from"@allyhub/protocol";import{defineCommand as b}from"../command.js";import{dir as O}from"../fields.js";import{parameters as C}from"../parameters.js";import{tellPresence as D}from"../presence.js";import{projectRoot as w}from"../project.js";import{VERSION_FIELDS as j,commandError as E,withVersion as $}from"../version.js";import{compareText as P,comparePictures as W}from"./frames/compare.js";import{isPicture as k,isVideo as z,usage as f}from"./frames/common.js";import{cutSheets as X}from"./frames/cuts.js";import{fileFrames as K}from"./frames/file.js";import{pageShot as Q}from"./frames/page.js";import{pieceMoments as Y,stillsSheet as Z}from"./frames/piece.js";import{docPicture as ee}from"./frames/doc.js";import{findDoc as te}from"@allyhub/doc-extension/cli";import{sheetPicture as re}from"./frames/sheet.js";import{findSheet as M}from"@allyhub/sheet-extension/cli";function y(e){return[...e.problems.filter(a=>a.level==="error").map(R),...N(T(e.console))]}const v=e=>({problems:e.problems,...T(e.console)}),F=(e,s)=>w(e,s),oe=t.strictObject({...j,item:t.string().optional().describe("The piece (its id, its file without its extension, or its file; default the project's only one), a sheet, a doc, or a video file: a path ending in .mp4, .mov, .webm, .m4v, .qt, .mkv or .avi is a file"),range:t.string().optional().describe("A sheet's: what to draw, a sheet (Summary), a range (Summary!B3:D9, or B3:D9 on the first sheet), columns (A:C) or rows (1:20); default its sheets, from A1"),page:t.string().optional().describe("A doc's: the pages to draw large, counted from 1 (2, 2-4, 1,5); default every page, small, tiled"),at:t.array(t.string()).optional().describe("Moments: seconds (from the start of --part when given) or anchors (@press, @/map a stretch's end, @press+0.2); a video file's are seconds. One is written as the frame itself, several are tiled. Without it, --part's still, or every part's still on one sheet."),part:t.string().optional().describe("The part --at, --from and --to count from; alone, its still"),from:t.number().optional().describe("A stretch of consecutive frames from this second (with --to), instead of --at"),to:t.number().optional().describe("The stretch's last second"),clip:t.string().optional().describe("Write the stretch as a small silent video, .gif, .mp4 or .webm by its extension; with --out, the grid too"),overlay:t.boolean().default(!1).describe("Draw over each tile the face boxes with ids, the person matte's outline, the covered areas and the text boxes (a deck's: each shape's box and name, and the lines nearly in line); places nothing. Alone, over every part's still"),beside:t.string().optional().describe("Another video file (a reference) whose frame at the same time goes on each tile's left"),grid:t.number().int().min(4).optional().describe("A video file at one --at: the frame at its own size with numbered lines every this many pixels"),out:t.string().optional().describe("Where the picture goes, always a WebP whatever the extension; default under .allyhub/work/frames/")});function ae(e){const s=[["--combo",e.combo!==void 0],["--part",e.part!==void 0],["--beside",e.beside!==void 0],["--overlay",e.overlay]].filter(([,a])=>a).map(([a])=>a);if(s.length>0)throw f("bad-option",`${s.join(" and ")} ${s.length===1?"is":"are"} a piece's: a video file has no combos or parts.`)}function ne(e){const s=[["--at",e.at!==void 0],["--part",e.part!==void 0],["--from",e.from!==void 0],["--to",e.to!==void 0],["--clip",e.clip!==void 0],["--overlay",e.overlay],["--beside",e.beside!==void 0],["--range",e.range!==void 0],["--combo",e.combo!==void 0]].filter(([,a])=>a).map(([a])=>a);if(s.length>0)throw f("bad-option",`${s.join(" and ")} ${s.length===1?"is":"are"} not a doc's: a doc has pages (--page), not moments.`)}export const frames=b({name:"frames",summary:"Pictures of a piece over time, drawn as the render draws them: every part's still on a sheet (default), a moment, a stretch tiled or as a clip, overlays; a sheet's cells, or a range of them; a doc's pages as they print, with how many; or any video file's frames",input:oe,positional:["item"],output:t.looseObject({mode:t.enum(["sheet","frame","grid","clip"])}),examples:["allyhub frames launch/film","allyhub frames launch/film --at 2.5","allyhub frames launch/film --part hook --from 0 --to 1 --clip hook.gif","allyhub frames launch/film --at 1,2,3 --overlay","allyhub frames reference.mp4 --at 0,1,2","allyhub frames reference.mp4 --at 3 --grid 50","allyhub frames finance/budget --range 'Summary!A1:F20'","allyhub frames launch/plan","allyhub frames launch/plan --page 2-3"]},async(e,s)=>{const a=s.cwd;if(e.item!==void 0&&z(e.item)){ae(e);const r=await K({cwd:a,root:await F(a,e.dir),file:e.item,at:e.at,from:e.from,to:e.to,clip:e.clip,out:e.out,grid:e.grid}).catch(g=>{throw E(g)}),n=r.video,p=`${r.file} · ${n.duration.toFixed(2)} s · ${String(n.width)}×${String(n.height)} · ${String(n.fps)} fps`,u="clip"in r&&r.clip?`${r.clip.out} (${r.clip.type}, ${String(r.clip.frames)} frames at ${String(r.clip.fps)} fps, no sound)`:void 0;return{value:r,text:[p,..."out"in r?[`${r.out}${"tiles"in r?` (${String(r.tiles.length)} moments in ${String(r.cols)} columns)`:""}`]:[],...u?[u]:[]].join(`
3
- `)}}if(e.grid!==void 0)throw f("bad-option","--grid draws a video file's frame at its own size: give the file.");const d=await w(a,e.dir);if(e.item!==void 0&&await M(d,a,e.item)!==void 0){const r=await re({cwd:a,root:d,item:e.item,range:e.range,out:e.out}),n=await M(d,a,e.item);return n!==void 0&&Object.keys(r.at).length>0&&await D(d,{doing:"looking",item:q(_(d,n).split(G).join("/")),place:r.at}),{value:r,text:[r.out,...r.cut].join(`
4
- `)}}const c=e.item===void 0?void 0:await te(d,a,e.item);if(c!==void 0){ne(e);const r=await ee({cwd:a,root:d,file:c,page:e.page,out:e.out,progress:p=>{s.progress(p)}}),n=r.drawn.length===r.pages?"every page":`page${r.drawn.length===1?"":"s"} ${r.drawn.join(", ")}`;return{value:r,text:[r.out,`${r.doc}: ${String(r.pages)} page${r.pages===1?"":"s"} on ${String(r.paper.width)} × ${String(r.paper.height)} mm paper; ${n} drawn`].join(`
5
- `)}}if(e.page!==void 0)throw f("bad-option","--page is a doc's: name the doc.");if(e.range!==void 0)throw f("bad-option","--range is a sheet's: name the sheet.");const l=e.at!==void 0||e.part!==void 0||e.from!==void 0||e.to!==void 0;if(!l&&(e.clip!==void 0||e.beside!==void 0))throw f("bad-option","--clip and --beside draw moments: give --at, --part, or --from and --to.");if(!l&&!e.overlay){const{result:r,...n}=await $(e,s,"render",g=>Z(g,{cwd:a,root:d,out:e.out})),{unit:p,...u}=r;return{value:{...u,...v(n)},text:[`${r.out} (${r.piece} · ${r.format} · ${String(r.parts.length)} ${r.parts.length===1?p.noun:p.plural})`,...y(n)].join(`
6
- `)}}const h=!l&&e.overlay,{result:o,...i}=await $(e,s,"render",async r=>{const n=await Y(r,{cwd:a,root:d,at:h?r.timeline.parts.map(L=>String(L.still)):e.at,part:e.part,from:e.from,to:e.to,clip:e.clip,out:e.out,overlay:e.overlay,beside:e.beside}),p="tiles"in n?n.tiles[0]:void 0,u=n.mode==="frame"?n.t:n.stretch?.from??p?.t,g=n.mode==="frame"?n.part:p?.part;return u!==void 0&&!h&&await D(d,{doing:"looking",item:r.piece.place,place:{t:u,...g===void 0?{}:{part:g}}}),n}),m=[];if(o.mode==="frame"&&m.push(`${o.out} (${o.piece} · ${o.format} · ${o.part} · ${o.t.toFixed(2)} s)`),o.mode==="grid"){m.push(`${o.out} (${o.piece} · ${String(o.tiles.length)} moments in ${String(o.cols)} columns)`,` ${o.tiles.map(n=>`${n.t.toFixed(o.stretch?3:2)} ${n.part}`).join(" · ")}`);const r=[...new Set(o.tiles.flatMap(n=>n.overlay?.missing??[]))];r.length>0&&m.push(` Not measured: ${r.join(", ")}.`)}return o.stretch&&m.push(` Stretch ${o.stretch.from.toFixed(3)}–${o.stretch.to.toFixed(3)} s, one frame in ${String(o.stretch.every)}: ${String(o.stretch.frames)} frames.`),"clip"in o&&o.clip&&m.push(`${o.clip.out} (${o.clip.type}, ${String(o.clip.frames)} frames at ${String(o.clip.fps)} fps, no sound)`),{value:{...o,...v(i)},text:[...m,...y(i)].join(`
7
- `)}}),framesCuts=b({name:"frames cuts",summary:"A review sheet per cut of a video (a cut take's jumps, part joins, a scenery camera's cuts): frames around it, waveform and level, the words each side, the sound at it",input:t.strictObject({...j,part:t.string().optional().describe("Only this part's cuts and its joins"),out:t.string().optional().describe("The folder the sheets go in; default .allyhub/work/cuts/"),params:C({span:t.number().positive().max(10).default(U.span).describe("Seconds shown on each side of a cut")})}),positional:["item"],output:t.looseObject({out:t.string(),cuts:t.array(t.looseObject({sheet:t.string()}))}),examples:["allyhub frames cuts launch/film","allyhub frames cuts launch/film --part hook"]},async(e,s)=>{const a=s.cwd,d=await w(a,e.dir),{result:c,...l}=await $(e,s,"render",i=>X(i,{cwd:a,root:d,part:e.part,out:e.out,review:{span:e.params.span}})),h=c.part===void 0?`${String(c.cuts.length)} cut${c.cuts.length===1?"":"s"}`:`${String(c.cuts.length)} of ${String(c.total)} cuts (part ${c.part} and its joins)`,o=[`${c.piece} · ${c.format} · ${h}; silence is sound under ${String(c.threshold)} dBFS`];for(const i of c.cuts){const m=i.sound?`level ${S(i.sound.levelDb)} / around ${S(i.sound.aroundDb)} dBFS, peak ${S(i.sound.peakDb)}, step ${i.sound.jumpDb<0?"−":"+"}${Math.abs(i.sound.jumpDb).toFixed(1)} dB`:"no sound";o.push(`${String(i.index).padStart(3)} ${i.t.toFixed(3).padStart(7)} s ${i.kind.padEnd(6)} ${J(i)}`,` silence at the cut: ${V(i.silence)} · ${m}`,` “${i.said.before}” | “${i.said.after}”${i.across?` · across the cut: “${i.across}”`:""}`,` ${i.sheet}`)}return{value:{...c,...v(l)},text:[...o,...y(l)].join(`
8
- `)}});const I=H;export const framesCompare=b({name:"frames compare",summary:"How a candidate picture differs from a reference, as numbers (ΔE, channels, SSIM, levels, grain, edges, regions) with a heatmap and a side-by-side: a piece's moment, a picture file or a video file's frame",input:t.strictObject({reference:t.string().describe("The reference picture (PNG, WebP, JPEG…)"),candidate:t.string().optional().describe("A piece (its id, its file without its extension, or its file; default the project's only one) at --at or --part's still; or a file by its extension: a picture (.png, .jpg, .webp…), or a video file's frame at --at (.mp4, .mov, .webm…)"),combo:j.combo,dir:O,at:t.string().optional().describe("The moment: seconds (from the start of --part when given) or an anchor of the piece; a video file's are seconds (default 0)"),part:t.string().optional().describe("The piece's part --at counts from; alone, its still"),refCrop:t.string().optional().describe("Cut the reference to x,y,width,height, or to an element of the elements.json beside it (frames web writes one)"),crop:t.string().optional().describe("Cut the candidate to x,y,width,height before any resize"),encode:t.string().optional().describe("Draw the candidate through this encode first, as a platform serves it: codec:kbps, h264 or hevc (hevc:618)"),out:t.string().optional().describe("Where its files go, a path without extension; default under .allyhub/work/compare/"),params:C({resize:t.enum(["stretch","width","none"]).default(I.resize).describe("When sizes differ: stretch the candidate to the reference, scale it to its width, or compare the common area"),shift:t.number().int().min(0).max(32).default(I.shift).describe("Search the best offset within this many pixels each way")})}),positional:["reference","candidate"],output:t.looseObject({reference:t.string(),files:t.looseObject({side:t.string(),heatmap:t.string()})}),examples:["allyhub frames compare reference.png launch/film --at 2.5 --encode hevc:618","allyhub frames compare reference.png shot.webp --ref-crop cta","allyhub frames compare reference.png theirs.mp4 --at 3"]},async(e,s)=>{const a=s.cwd,d=e.params;if(!k(e.reference))throw f("bad-reference",`${e.reference} is not a picture: the reference comes first, a picture file (PNG, WebP, JPEG…), then the piece or file to compare with it.`,`For example: allyhub frames compare ${e.candidate!==void 0&&k(e.candidate)?e.candidate:"reference.png"} ${e.reference}`);const c=e.candidate!==void 0&&(k(e.candidate)||z(e.candidate))?e.candidate:void 0,l=m=>({cwd:a,root:m,reference:e.reference,file:c,at:e.at===void 0?void 0:[e.at],part:e.part,refCrop:e.refCrop,crop:e.crop,encode:e.encode,out:e.out,options:{shift:d.shift,resize:d.resize}});if(c!==void 0){if(e.combo!==void 0||e.part!==void 0)throw f("bad-option","--combo and --part are a piece's: the candidate is a file.");const m=await W(l(await F(a,e.dir)),void 0).catch(r=>{throw E(r)});return{value:m,text:P(m)}}const h=await w(a,e.dir),{result:o,...i}=await $({...e,item:e.candidate},s,"render",m=>W(l(h),m));return{value:{...o,...v(i)},text:[P(o),...y(i)].join(`
9
- `)}}),framesWeb=b({name:"frames web",summary:"A web page's screenshot with its named elements' boxes in the image's pixels, for a screen demo",input:t.strictObject({url:t.string().describe("The page: an address, or an HTML file on this computer"),el:t.array(t.string()).optional().describe("An element to locate, name=selector (CSS, or text=<words>); [data-el] elements are found too"),click:t.array(t.string()).optional().describe("Selectors clicked in order before the shot (close a banner, open a dialog)"),full:t.boolean().default(!1).describe("The whole page, not one viewport"),out:t.string().optional().describe("Where the picture goes (a WebP), its boxes in <out>.elements.json beside it; default under .allyhub/work/pages/"),dir:O,size:t.string().default(`${String(x.width)}x${String(x.height)}`).describe("The viewport, WIDTHxHEIGHT in CSS pixels"),scale:t.number().min(1).max(4).default(x.scale).describe("Image pixels per CSS pixel; 2 draws a high-density screen, sharp when a camera goes in"),wait:t.number().int().min(0).optional().describe("Milliseconds to wait after loading and clicking")}),positional:["url"],output:t.looseObject({out:t.string(),elementsFile:t.string()}),examples:["allyhub frames web https://example.com --el cta=text=Sign\\ up --scale 2 --out assets/media/home","allyhub frames web page.html --click '#accept' --full"]},async(e,s)=>{const a=s.cwd,[d,c]=B(e.size),l=await Q({cwd:a,root:await F(a,e.dir),url:e.url,out:e.out,el:e.el,click:e.click,width:d,height:c,scale:e.scale,full:e.full,wait:e.wait});return{value:l,text:[`${l.out}: ${String(l.width)}×${String(l.height)}${l.scale===1?"":` (${String(l.scale)} image pixels per CSS pixel)`}, ${String(Object.keys(l.elements).length)} elements (${Object.keys(l.elements).join(", ")||"none"}) in ${l.elementsFile}`,...l.missing.length>0?[`Not found: ${l.missing.join(", ")} (the selector is wrong, or something must be opened with --click first).`]:[]].join(`
10
- `),exit:l.missing.length>0?A.failed:A.ok}}),FRAMES_COMMANDS=[frames,framesCuts,framesCompare,framesWeb];
2
+ import{relative as G,sep as N}from"node:path";import{z as t}from"zod";import{formatConsole as R,formatProblem as B}from"../text/index.js";import{sizeOf as H}from"@allyhub/build";import{COMPARE_DEFAULTS as U}from"@allyhub/measure";import{CUT_REVIEW_DEFAULTS as J,cutLine as V,dbText as A,silenceText as q}from"@allyhub/video-measure/cut-sheet";import{consoleJson as C}from"@allyhub/project";import{PAGE_CAPTURE_DEFAULTS as F}from"@allyhub/browser";import{itemIdOf as X}from"@allyhub/formats";import{EXIT as D}from"@allyhub/protocol";import{defineCommand as v}from"../command.js";import{dir as P}from"../fields.js";import{parameters as z}from"../parameters.js";import{tellPresence as W}from"../presence.js";import{projectRoot as S}from"../project.js";import{VERSION_FIELDS as O,commandError as M,withVersion as x}from"../version.js";import{isPicture as T,isVideo as I,usage as g}from"./frames/common.js";import{findDoc as K}from"@allyhub/doc-extension/cli";import{findSheet as L}from"@allyhub/sheet-extension/cli";function j(e){return[...e.problems.filter(a=>a.level==="error").map(B),...R(C(e.console))]}const k=e=>({problems:e.problems,...C(e.console)}),E=(e,n)=>S(e,n),Q=t.strictObject({...O,item:t.string().optional().describe("The piece (its id, its file without its extension, or its file; default the project's only one), a sheet, a doc, or a video file: a path ending in .mp4, .mov, .webm, .m4v, .qt, .mkv or .avi is a file"),range:t.string().optional().describe("A sheet's: what to draw, a sheet (Summary), a range (Summary!B3:D9, or B3:D9 on the first sheet), columns (A:C) or rows (1:20); default every sheet, a picture each, from A1"),page:t.string().optional().describe("A doc's: the pages to draw large, counted from 1 (2, 2-4, 1,5); default every page, small, tiled"),at:t.array(t.string()).optional().describe("Moments: seconds (from the start of --part when given) or anchors (@press, @/map a stretch's end, @press+0.2); a video file's are seconds. One is written as the frame itself, several are tiled four to a picture. Without it, --part's still, or every part's still, four to a picture."),part:t.string().optional().describe("A part by its key (a deck's slide, an image's board): the one --at, --from and --to count from; alone, its still at its own size. A cover's key (video({ covers })): the cover"),from:t.number().optional().describe("A stretch of consecutive frames from this second (with --to), instead of --at"),to:t.number().optional().describe("The stretch's last second"),clip:t.string().optional().describe("Write the stretch as a small silent video, .gif, .mp4 or .webm by its extension; with --out, the grid too"),overlay:t.boolean().default(!1).describe("Draw over each tile the face boxes with ids, the person matte's outline, the covered areas and the text boxes (a deck's: each shape's box and name, and the lines nearly in line); places nothing. Alone, over every part's still"),beside:t.string().optional().describe("Another video file (a reference) whose frame at the same time goes on each tile's left"),grid:t.number().int().min(4).optional().describe("A video file at one --at: the frame at its own size with numbered lines every this many pixels"),out:t.string().optional().describe("Where the picture goes, always a WebP whatever the extension; default under .allyhub/work/frames/")});function Y(e){const n=[["--combo",e.combo!==void 0],["--part",e.part!==void 0],["--beside",e.beside!==void 0],["--overlay",e.overlay]].filter(([,a])=>a).map(([a])=>a);if(n.length>0)throw g("bad-option",`${n.join(" and ")} ${n.length===1?"is":"are"} a piece's: a video file has no combos or parts.`)}function Z(e){const n=[["--at",e.at!==void 0],["--part",e.part!==void 0],["--from",e.from!==void 0],["--to",e.to!==void 0],["--clip",e.clip!==void 0],["--overlay",e.overlay],["--beside",e.beside!==void 0],["--range",e.range!==void 0],["--combo",e.combo!==void 0]].filter(([,a])=>a).map(([a])=>a);if(n.length>0)throw g("bad-option",`${n.join(" and ")} ${n.length===1?"is":"are"} not a doc's: a doc has pages (--page), not moments.`)}export const frames=v({name:"frames",summary:"Pictures of a piece over time, drawn as its exported files are: every part's still on a sheet (default), a moment, a stretch tiled or as a clip, overlays; a sheet's cells, or a range of them; a doc's pages as they print, with how many; or any video file's frames",input:Q,positional:["item"],output:t.looseObject({mode:t.enum(["sheet","frame","grid","clip","cover"])}),examples:["allyhub frames launch/film","allyhub frames launch/film --at 2.5","allyhub frames launch/film --part hook --from 0 --to 1 --clip hook.gif","allyhub frames launch/film --at 1,2,3 --overlay","allyhub frames reference.mp4 --at 0,1,2","allyhub frames reference.mp4 --at 3 --grid 50","allyhub frames finance/budget --range 'Summary!A1:F20'","allyhub frames launch/plan","allyhub frames launch/plan --page 2-3","allyhub frames research/channels/channels"]},async(e,n)=>{const a=n.cwd;if(e.item!==void 0&&I(e.item)){Y(e);const{fileFrames:i}=await import("./frames/file.js"),o=await i({cwd:a,root:await E(a,e.dir),file:e.item,at:e.at,from:e.from,to:e.to,clip:e.clip,out:e.out,grid:e.grid}).catch(h=>{throw M(h)}),s=o.video,f=`${o.file} · ${s.duration.toFixed(2)} s · ${String(s.width)}×${String(s.height)} · ${String(s.fps)} fps`,m="clip"in o&&o.clip?`${o.clip.out} (${o.clip.type}, ${String(o.clip.frames)} frames at ${String(o.clip.fps)} fps, no sound)`:void 0;return{value:o,text:[f,..."out"in o?[`${o.out}${"tiles"in o?` (${String(o.tiles.length)} moments in ${String(o.cols)} columns)`:""}`]:[],...m?[m]:[]].join(`
3
+ `)}}if(e.grid!==void 0)throw g("bad-option","--grid draws a video file's frame at its own size: give the file.");const d=await S(a,e.dir);if(e.item!==void 0&&await L(d,a,e.item)!==void 0){const{sheetPicture:i}=await import("./frames/sheet.js"),o=await i({cwd:a,root:d,item:e.item,range:e.range,out:e.out}),s=await L(d,a,e.item);return s!==void 0&&Object.keys(o.at).length>0&&await W(d,{doing:"looking",item:X(G(d,s).split(N).join("/")),place:o.at}),{value:o,text:[...o.outs,...o.cut].join(`
4
+ `)}}const u=e.item===void 0?void 0:await K(d,a,e.item);if(u!==void 0){Z(e);const{docPicture:i}=await import("./frames/doc.js"),o=await i({cwd:a,root:d,file:u,page:e.page,out:e.out,progress:f=>{n.progress(f)}}),s=o.drawn.length===o.pages?"every page":`page${o.drawn.length===1?"":"s"} ${o.drawn.join(", ")}`;return{value:o,text:[o.out,`${o.doc}: ${String(o.pages)} page${o.pages===1?"":"s"} on ${String(o.paper.width)} × ${String(o.paper.height)} mm paper; ${s} drawn`].join(`
5
+ `)}}if(e.page!==void 0)throw g("bad-option","--page is a doc's: name the doc.");if(e.range!==void 0)throw g("bad-option","--range is a sheet's: name the sheet.");const c=e.at!==void 0||e.part!==void 0||e.from!==void 0||e.to!==void 0;if(!c&&(e.clip!==void 0||e.beside!==void 0))throw g("bad-option","--clip and --beside draw moments: give --at, --part, or --from and --to.");const{pieceMoments:l,stillsSheet:y}=await import("./frames/piece.js");if(!c&&!e.overlay){const{result:i,...o}=await x(e,n,"render",m=>y(m,{cwd:a,root:d,out:e.out})),{unit:s,...f}=i;return{value:{...f,...k(o)},text:[`${i.out} (${i.piece} · ${i.format} · ${String(i.parts.length)} ${i.parts.length===1?s.noun:s.plural}${"scale"in i?` · ${String(i.scale)}×`:""})`,..."outs"in i?i.outs.slice(1):[],...j(o)].join(`
6
+ `)}}const b=!c&&e.overlay,{result:r,...w}=await x(e,n,"render",async i=>{const o=await l(i,{cwd:a,root:d,at:b?i.timeline.parts.map(h=>String(h.still)):e.at,part:e.part,from:e.from,to:e.to,clip:e.clip,out:e.out,overlay:e.overlay,beside:e.beside});if(o.mode==="cover")return o;const s="tiles"in o?o.tiles[0]:void 0,f=o.mode==="frame"?o.t:o.stretch?.from??s?.t,m=o.mode==="frame"?o.part:s?.part;return f!==void 0&&!b&&await W(d,{doing:"looking",item:i.piece.place,place:{t:f,...m===void 0?{}:{part:m}}}),o}),p=[];if(r.mode==="cover"&&p.push(`${r.out} (${r.piece} · ${r.format} · ${r.cover})`),r.mode==="frame"&&p.push(`${r.out} (${r.piece} · ${r.format} · ${r.part}${r.timed?` · ${r.t.toFixed(2)} s`:""})`),r.mode==="grid"){("outs"in r&&Array.isArray(r.outs)?r.outs.filter(s=>typeof s=="string"):[r.out]).forEach((s,f)=>{const m=r.tiles.filter(h=>("picture"in h?h.picture:0)===f);p.push(`${s} (${r.piece} · ${String(m.length)} moments in ${String(Math.min(r.cols,m.length))} columns · ${String(r.scale)}×)`,` ${m.map(h=>`${h.t.toFixed(r.stretch?3:2)} ${h.part}`).join(" · ")}`)});const o=[...new Set(r.tiles.flatMap(s=>s.overlay?.missing??[]))];o.length>0&&p.push(` Not measured: ${o.join(", ")}.`)}const $=r.mode==="cover"?void 0:r.stretch;return $&&p.push(` Stretch ${$.from.toFixed(3)}–${$.to.toFixed(3)} s, one frame in ${String($.every)}: ${String($.frames)} frames.`),"clip"in r&&r.clip&&p.push(`${r.clip.out} (${r.clip.type}, ${String(r.clip.frames)} frames at ${String(r.clip.fps)} fps, no sound)`),{value:{...r,...k(w)},text:[...p,...j(w)].join(`
7
+ `)}}),framesCuts=v({name:"frames cuts",summary:"A review sheet per cut of a video (a cut take's jumps, part joins, a scenery camera's cuts): frames around it, waveform and level, the words each side, the sound at it",input:t.strictObject({...O,part:t.string().optional().describe("Only this part's cuts and its joins"),out:t.string().optional().describe("The folder the sheets go in; default .allyhub/work/cuts/"),params:z({span:t.number().positive().max(10).default(J.span).describe("Seconds shown on each side of a cut")})}),positional:["item"],output:t.looseObject({out:t.string(),cuts:t.array(t.looseObject({sheet:t.string()}))}),examples:["allyhub frames cuts launch/film","allyhub frames cuts launch/film --part hook"]},async(e,n)=>{const a=n.cwd,d=await S(a,e.dir),{cutSheets:u}=await import("./frames/cuts.js"),{result:c,...l}=await x(e,n,"render",r=>u(r,{cwd:a,root:d,part:e.part,out:e.out,review:{span:e.params.span}})),y=c.part===void 0?`${String(c.cuts.length)} cut${c.cuts.length===1?"":"s"}`:`${String(c.cuts.length)} of ${String(c.total)} cuts (part ${c.part} and its joins)`,b=[`${c.piece} · ${c.format} · ${y}; silence is sound under ${String(c.threshold)} dBFS`];for(const r of c.cuts){const w=r.sound?`level ${A(r.sound.levelDb)} / around ${A(r.sound.aroundDb)} dBFS, peak ${A(r.sound.peakDb)}, step ${r.sound.jumpDb<0?"−":"+"}${Math.abs(r.sound.jumpDb).toFixed(1)} dB`:"no sound";b.push(`${String(r.index).padStart(3)} ${r.t.toFixed(3).padStart(7)} s ${r.kind.padEnd(6)} ${V(r)}`,` silence at the cut: ${q(r.silence)} · ${w}`,` “${r.said.before}” | “${r.said.after}”${r.across?` · across the cut: “${r.across}”`:""}`,` ${r.sheet}`)}return{value:{...c,...k(l)},text:[...b,...j(l)].join(`
8
+ `)}});const _=U;export const framesCompare=v({name:"frames compare",summary:"How a candidate picture differs from a reference, as numbers (ΔE, channels, SSIM, levels, grain, edges, regions) with a heatmap and a side-by-side: a piece's moment, a picture file or a video file's frame",input:t.strictObject({reference:t.string().describe("The reference picture (PNG, WebP, JPEG…)"),candidate:t.string().optional().describe("A piece (its id, its file without its extension, or its file; default the project's only one) at --at or --part's still; or a file by its extension: a picture (.png, .jpg, .webp…), or a video file's frame at --at (.mp4, .mov, .webm…)"),combo:O.combo,dir:P,at:t.string().optional().describe("The moment: seconds (from the start of --part when given) or an anchor of the piece; a video file's are seconds (default 0)"),part:t.string().optional().describe("The piece's part --at counts from; alone, its still"),refCrop:t.string().optional().describe("Cut the reference to x,y,width,height, or to an element of the elements.json beside it (frames web writes one)"),crop:t.string().optional().describe("Cut the candidate to x,y,width,height before any resize"),encode:t.string().optional().describe("Draw the candidate through this encode first, as a platform serves it: codec:kbps, h264 or hevc (hevc:618)"),out:t.string().optional().describe("Where its files go, a path without extension; default under .allyhub/work/compare/"),params:z({resize:t.enum(["stretch","width","none"]).default(_.resize).describe("When sizes differ: stretch the candidate to the reference, scale it to its width, or compare the common area"),shift:t.number().int().min(0).max(32).default(_.shift).describe("Search the best offset within this many pixels each way")})}),positional:["reference","candidate"],output:t.looseObject({reference:t.string(),files:t.looseObject({side:t.string(),heatmap:t.string()})}),examples:["allyhub frames compare reference.png launch/film --at 2.5 --encode hevc:618","allyhub frames compare reference.png shot.webp --ref-crop cta","allyhub frames compare reference.png theirs.mp4 --at 3"]},async(e,n)=>{const a=n.cwd,d=e.params;if(!T(e.reference))throw g("bad-reference",`${e.reference} is not a picture: the reference comes first, a picture file (PNG, WebP, JPEG…), then the piece or file to compare with it.`,`For example: allyhub frames compare ${e.candidate!==void 0&&T(e.candidate)?e.candidate:"reference.png"} ${e.reference}`);const u=e.candidate!==void 0&&(T(e.candidate)||I(e.candidate))?e.candidate:void 0,{compareText:c,comparePictures:l}=await import("./frames/compare.js"),y=p=>({cwd:a,root:p,reference:e.reference,file:u,at:e.at===void 0?void 0:[e.at],part:e.part,refCrop:e.refCrop,crop:e.crop,encode:e.encode,out:e.out,options:{shift:d.shift,resize:d.resize}});if(u!==void 0){if(e.combo!==void 0||e.part!==void 0)throw g("bad-option","--combo and --part are a piece's: the candidate is a file.");const p=await l(y(await E(a,e.dir)),void 0).catch($=>{throw M($)});return{value:p,text:c(p)}}const b=await S(a,e.dir),{result:r,...w}=await x({...e,item:e.candidate},n,"render",p=>l(y(b),p));return{value:{...r,...k(w)},text:[c(r),...j(w)].join(`
9
+ `)}}),framesWeb=v({name:"frames web",summary:"A web page's screenshot with its named elements' boxes in the image's pixels, for a screen demo",input:t.strictObject({url:t.string().describe("The page: an address, or an HTML file on this computer"),el:t.array(t.string()).optional().describe("An element to locate, name=selector (CSS, or text=<words>); [data-el] elements are found too"),click:t.array(t.string()).optional().describe("Selectors clicked in order before the shot (close a banner, open a dialog)"),full:t.boolean().default(!1).describe("The whole page, not one viewport"),out:t.string().optional().describe("Where the picture goes (a WebP), its boxes in <out>.elements.json beside it; default under .allyhub/work/pages/"),dir:P,size:t.string().default(`${String(F.width)}x${String(F.height)}`).describe("The viewport, WIDTHxHEIGHT in CSS pixels"),scale:t.number().min(1).max(4).default(F.scale).describe("Image pixels per CSS pixel; 2 draws a high-density screen, sharp when a camera goes in"),wait:t.number().int().min(0).optional().describe("Milliseconds to wait after loading and clicking")}),positional:["url"],output:t.looseObject({out:t.string(),elementsFile:t.string()}),examples:["allyhub frames web https://example.com --el cta=text=Sign\\ up --scale 2 --out assets/media/home","allyhub frames web page.html --click '#accept' --full"]},async(e,n)=>{const a=n.cwd,[d,u]=H(e.size),{pageShot:c}=await import("./frames/page.js"),l=await c({cwd:a,root:await E(a,e.dir),url:e.url,out:e.out,el:e.el,click:e.click,width:d,height:u,scale:e.scale,full:e.full,wait:e.wait});return{value:l,text:[`${l.out}: ${String(l.width)}×${String(l.height)}${l.scale===1?"":` (${String(l.scale)} image pixels per CSS pixel)`}, ${String(Object.keys(l.elements).length)} elements (${Object.keys(l.elements).join(", ")||"none"}) in ${l.elementsFile}`,...l.missing.length>0?[`Not found: ${l.missing.join(", ")} (the selector is wrong, or something must be opened with --click first).`]:[]].join(`
10
+ `),exit:l.missing.length>0?D.failed:D.ok}}),FRAMES_COMMANDS=[frames,framesCuts,framesCompare,framesWeb];
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{add as s,addSearch as e}from"./add.js";import{align as n}from"./align.js";import{authLogin as p,authStatus as f}from"./auth.js";import{orgsList as l,orgsUse as S}from"./orgs.js";import{MAIL_COMMANDS as a}from"./mail.js";import{check as C}from"./check.js";import{dev as d}from"./dev.js";import{doctor as c}from"./doctor.js";import{EXTENSIONS_SOURCE as M,builtInCommands as O}from"./contributed.js";import{doctorExtensions as E}from"./extensions.js";import{FRAMES_COMMANDS as u}from"./frames.js";import{INSPECT_COMMANDS as o,VIEWS_SOURCE as N,inspectCommands as h}from"./inspect/index.js";import{render as A}from"./render.js";import{skills as _,skillsShow as D}from"./skills.js";import{CLOUD_SOURCE as U,upload as g}from"./cloud-tools.js";export const COMMANDS=[C,...o,A,...u,d,s,e,_,D,n,p,f,l,S,g,...a,c,E],COMMAND_SOURCES=[U,M,N];let t;export function allCommands(){return t??=Promise.all([h(),O()]).then(([m,i])=>{const r=COMMANDS.indexOf(o[0]);return[...COMMANDS.slice(0,r),...m,...COMMANDS.slice(r+o.length),...i]}),t}
2
+ import{CLOUD_SOURCE as l}from"./cloud-tools.js";import{EXTENSIONS_SOURCE as d,builtInCommands as y}from"./contributed.js";import{inspectListingViews as u}from"./inspect/index.js";import{VIEWS_SOURCE as f,builtInViews as S}from"./inspect/views.js";import{extensions as C}from"./found-extensions.js";const a=t=>async()=>((await C()).builtInExtensions(),t());export const COMMAND_MODULES=[a(async()=>[(await import("./check.js")).check]),a(async()=>[(await import("./migrate.js")).migrate]),a(async()=>[(await import("./inspect/facts.js")).inspect]),a(async()=>[(await import("./inspect/layout.js")).inspectLayout]),a(async()=>[(await import("./inspect/combos.js")).inspectCombos]),a(async()=>[(await import("./inspect/uses.js")).inspectUses]),a(async()=>[(await import("./export.js")).exportFiles]),a(async()=>(await import("./frames.js")).FRAMES_COMMANDS),a(async()=>[(await import("./dev.js")).dev]),a(async()=>{const{add:t,addSearch:i}=await import("./add.js");return[t,i]}),async()=>{const{skills:t,skillsShow:i}=await import("./skills.js");return[t,i]},a(async()=>[(await import("./align.js")).align]),async()=>{const{authLogin:t,authStatus:i}=await import("./auth.js");return[t,i]},async()=>{const{orgsList:t,orgsUse:i}=await import("./orgs.js");return[t,i]},async()=>[(await import("./cloud-tools.js")).upload],async()=>(await import("./mail.js")).MAIL_COMMANDS,a(async()=>[(await import("./doctor.js")).doctor]),a(async()=>[(await import("./extensions.js")).doctorExtensions]),async()=>[(await import("./upgrade.js")).upgrade]],COMMAND_SOURCES=[l,d,f];let m;export function allCommandsFrom(){return m??=(async()=>{const t=(await Promise.all(COMMAND_MODULES.map(async(n,p)=>(await n()).map(w=>({command:w,from:p}))))).flat(),[i,e]=await Promise.all([S(),y()]),r=t.findIndex(n=>n.command.spec.name==="inspect"),o=t[r],s=t.filter(n=>n.command.spec.name.startsWith("inspect "));if(o===void 0||s.length===0)throw new Error("The CLI's own commands have no inspect.");const c=t.indexOf(s[s.length-1]??o)+1;return[...t.slice(0,r),{...o,command:u(o.command,[...s.map(n=>n.command),...i])},...t.slice(r+1,c),...i.map(n=>({command:n,from:"view"})),...t.slice(c),...e.map(n=>({command:n,from:"contributed"}))]})(),m}export async function allCommands(){return(await allCommandsFrom()).map(t=>t.command)}