allyhub 0.19.0 → 0.21.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 (717) hide show
  1. package/dist/commands/align.js +1 -1
  2. package/dist/commands/check.js +1 -1
  3. package/dist/commands/cloud-tools.js +5 -5
  4. package/dist/commands/cloud.js +1 -1
  5. package/dist/commands/dev.js +5 -5
  6. package/dist/commands/export.js +3 -0
  7. package/dist/commands/frames/doc.js +1 -1
  8. package/dist/commands/frames/piece.js +1 -1
  9. package/dist/commands/frames/sheet.js +1 -1
  10. package/dist/commands/frames.js +9 -9
  11. package/dist/commands/index.js +1 -1
  12. package/dist/commands/inspect/combos.js +1 -1
  13. package/dist/commands/inspect/common.js +2 -2
  14. package/dist/commands/inspect/facts.js +2 -2
  15. package/dist/commands/migrate.js +3 -0
  16. package/dist/commands/skills.js +3 -3
  17. package/dist/commands/upgrade.js +5 -0
  18. package/dist/commands.json +1 -1
  19. package/dist/help.js +3 -3
  20. package/dist/main.js +8 -7
  21. package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
  22. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  23. package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
  24. package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
  25. package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
  26. package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
  27. package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
  28. package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
  29. package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
  30. package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
  31. package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
  32. package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
  33. package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
  34. package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
  35. package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
  36. package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
  37. package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
  38. package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
  39. package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
  40. package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
  41. package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
  42. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
  43. package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
  44. package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
  45. package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
  46. package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
  47. package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
  48. package/dist/node_modules/@allyhub/blocks/package.json +19 -0
  49. package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
  50. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  51. package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
  52. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  54. package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
  55. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  56. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  57. package/dist/node_modules/@allyhub/build/package.json +5 -1
  58. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  59. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  60. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
  61. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
  62. package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
  63. package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
  64. package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
  65. package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
  66. package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
  67. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  68. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  69. package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
  70. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  71. package/dist/node_modules/@allyhub/check/dist/check.js +1 -1
  72. package/dist/node_modules/@allyhub/check/package.json +1 -1
  73. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  74. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  75. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  76. package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
  77. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  78. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  79. package/dist/node_modules/@allyhub/components/package.json +1 -1
  80. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  81. package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
  82. package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
  83. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  84. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
  85. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  86. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  87. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  88. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  89. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  90. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
  91. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  92. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
  93. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  94. package/dist/node_modules/@allyhub/doc/dist/block-shapes.js +2 -0
  95. package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
  96. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  97. package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
  98. package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
  99. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
  100. package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
  101. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  102. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  103. package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
  104. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  105. package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
  106. package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
  107. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
  108. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  109. package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
  110. package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
  111. package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
  112. package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
  113. package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
  114. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  115. package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
  116. package/dist/node_modules/@allyhub/doc/package.json +5 -1
  117. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  118. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  119. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
  120. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
  121. package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
  122. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  123. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  124. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
  125. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
  126. package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
  127. package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
  128. package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
  129. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
  130. package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
  131. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  132. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  133. package/dist/node_modules/@allyhub/export/package.json +1 -1
  134. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  135. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  136. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  137. package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
  138. package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
  139. package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
  140. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
  141. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
  142. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
  143. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  144. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
  145. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
  146. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
  147. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
  148. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
  149. package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
  150. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +67 -0
  151. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
  152. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
  153. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
  154. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  155. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
  156. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  157. package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
  158. package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
  159. package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
  160. package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
  161. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  162. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  163. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
  164. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  165. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +12 -3
  166. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
  167. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  168. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
  169. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
  170. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  171. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
  172. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
  173. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  174. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
  175. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
  176. package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
  177. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  178. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
  179. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
  180. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  181. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
  182. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
  183. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  184. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +2 -2
  185. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
  186. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  187. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  188. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  189. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  190. package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
  191. package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
  192. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
  193. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  194. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  195. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
  196. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
  197. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  198. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  199. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -1
  200. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  201. package/dist/node_modules/@allyhub/media/package.json +1 -1
  202. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
  203. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
  204. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
  205. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  206. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
  207. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  208. package/dist/node_modules/@allyhub/model/package.json +1 -1
  209. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  210. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
  211. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  212. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  213. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  214. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
  215. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  216. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  217. package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
  218. package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
  219. package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
  220. package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
  221. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  222. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
  223. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
  224. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
  225. package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
  226. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +8 -2
  227. package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
  228. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
  229. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  230. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  231. package/dist/node_modules/@allyhub/project/package.json +1 -1
  232. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  234. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  235. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  236. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  237. package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
  238. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  239. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  240. package/dist/node_modules/@allyhub/render/package.json +1 -1
  241. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  242. package/dist/node_modules/@allyhub/report-extension/dist/build.js +3 -0
  243. package/dist/node_modules/@allyhub/report-extension/dist/check.js +37 -0
  244. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +4 -0
  245. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  246. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  247. package/dist/node_modules/@allyhub/report-extension/dist/page.js +23 -0
  248. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +33 -0
  249. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +2 -0
  250. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  251. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  252. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  253. package/dist/node_modules/@allyhub/report-extension/package.json +185 -0
  254. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +180 -0
  255. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +15 -0
  256. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  257. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  258. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
  259. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
  260. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  261. package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
  262. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  263. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  264. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
  273. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  274. package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  276. package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/html.js +8 -8
  278. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  279. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
  282. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
  284. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
  287. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
  288. package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
  289. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
  291. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  293. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  294. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  295. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/xlsx/tile-shapes.js +2 -0
  297. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  299. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  300. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
  301. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  302. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
  303. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  304. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
  305. package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
  306. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
  307. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
  308. package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
  309. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  310. package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
  311. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  312. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  313. package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
  314. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  315. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  316. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  317. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  318. package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
  319. package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
  320. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  321. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  322. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  323. package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
  324. package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
  325. package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
  326. package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
  327. package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
  328. package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
  329. package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
  330. package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
  331. package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
  332. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  333. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  334. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  336. package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
  337. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
  338. package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
  339. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  340. package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
  342. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  343. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
  344. package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  346. package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
  347. package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
  348. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
  349. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
  350. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  351. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  352. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  353. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  354. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  356. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  357. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  358. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  359. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
  360. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  361. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  362. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
  363. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  364. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  365. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
  366. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
  367. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
  368. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
  369. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
  370. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
  371. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
  372. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
  373. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
  374. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
  375. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
  376. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
  377. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
  378. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
  379. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
  380. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
  381. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
  382. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
  383. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
  384. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
  385. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
  386. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
  387. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
  388. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
  389. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  390. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
  391. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
  392. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
  393. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  394. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
  395. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
  396. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
  397. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
  398. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
  399. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
  400. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
  401. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
  402. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
  403. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
  404. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
  405. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
  406. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
  407. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
  408. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
  409. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
  410. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
  411. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
  412. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
  413. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
  414. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
  415. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
  416. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
  417. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
  418. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
  419. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
  420. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
  421. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
  422. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
  423. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
  424. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
  425. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
  426. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
  427. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
  428. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
  429. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
  430. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
  431. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
  432. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
  433. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
  434. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
  435. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
  436. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
  437. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
  438. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
  439. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
  440. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  441. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
  442. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  443. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
  444. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  445. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
  446. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  447. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
  448. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
  449. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
  450. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
  451. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
  452. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
  453. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
  454. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
  455. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  456. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
  457. package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
  458. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  459. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
  460. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  461. package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
  462. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  463. package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
  464. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  465. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  466. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  467. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
  468. package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
  469. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  470. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
  471. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
  472. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
  473. package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
  474. package/dist/node_modules/@allyhub/video-extension/package.json +2 -25
  475. package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
  476. package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
  477. package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
  478. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  479. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  480. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
  481. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  482. package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
  483. package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
  484. package/dist/node_modules/@allyhub/website/package.json +1 -1
  485. package/dist/node_modules/@allyhub/website-extension/package.json +3 -3
  486. package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
  487. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
  488. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  489. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  490. package/dist/package.json +15 -14
  491. package/dist/self-upgrade.js +2 -0
  492. package/dist/text/batch-text.js +1 -1
  493. package/dist/text/facts-text.js +5 -5
  494. package/dist/text/format.js +2 -2
  495. package/dist/update-notice.js +3 -0
  496. package/dist/version.js +1 -1
  497. package/dist/works.js +1 -1
  498. package/editor-web/assets/{abnfDiagram-WEYOIA3C-DYaMS_BB.js → abnfDiagram-WEYOIA3C-B4tvwU6C.js} +1 -1
  499. package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-V2fA0vY2.js} +1 -1
  500. package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-B6B7XN0M.js} +1 -1
  501. package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
  502. package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
  503. package/editor-web/assets/article-DW4eD_8K.js +3 -0
  504. package/editor-web/assets/article-Dm2dIEwc.js +7 -0
  505. package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
  506. package/editor-web/assets/{bar-button-J9vbfzTx.js → bar-button-CJmpgNg4.js} +1 -1
  507. package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BizcUGOM.js} +1 -1
  508. package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
  509. package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-CBHS0dQ0.js} +1 -1
  510. package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
  511. package/editor-web/assets/channel-dyUtlVPg.js +1 -0
  512. package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
  513. package/editor-web/assets/chip-BdQRH3FL.js +1 -0
  514. package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-CMPBck_Q.js} +1 -1
  515. package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-Df22Adpt.js} +1 -1
  516. package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-CYrZ6_Q7.js} +1 -1
  517. package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BfdG9NNW.js} +1 -1
  518. package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BCzZMoTJ.js} +1 -1
  519. package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DT0xT8Wf.js} +1 -1
  520. package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-Bg3-EotU.js} +1 -1
  521. package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BrSym24V.js} +1 -1
  522. package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-CMxgkJWF.js} +1 -1
  523. package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-DWEwoyPy.js} +1 -1
  524. package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-eTFh5_T9.js} +1 -1
  525. package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-4PTupr9T.js} +1 -1
  526. package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-D5XAAFWm.js} +1 -1
  527. package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-CPsdaisO.js} +1 -1
  528. package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-ClnuUyfy.js} +1 -1
  529. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-CM21waNF.js} +1 -1
  530. package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
  531. package/editor-web/assets/{collaborator-BU4qU7O3.js → collaborator-CbTacvkB.js} +1 -1
  532. package/editor-web/assets/color-picker-BmKFn2ww.js +1 -0
  533. package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
  534. package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
  535. package/editor-web/assets/{cynefin-EF2NZ3EQ-CtcknEQ_.js → cynefin-EF2NZ3EQ-CJUHTgee.js} +1 -1
  536. package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-C9RIfuIV.js} +1 -1
  537. package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-g-01KdpO.js} +1 -1
  538. package/editor-web/assets/deck-C0VxrlzX.js +1 -0
  539. package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-CbOjWUu-.js} +1 -1
  540. package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-C6psNS8J.js} +1 -1
  541. package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-C9PUE46P.js} +1 -1
  542. package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-vJ_pnB33.js} +1 -1
  543. package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-FwYlEfJ-.js} +1 -1
  544. package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-FKpIxeUc.js} +1 -1
  545. package/editor-web/assets/{dist-DruvDNQe.js → dist-B8_6sJ_V.js} +5 -5
  546. package/editor-web/assets/dist-BI_BaYhO.js +19 -0
  547. package/editor-web/assets/dist-BaWFMuvr.js +1 -0
  548. package/editor-web/assets/dist-BdmMT8fP.js +5 -0
  549. package/editor-web/assets/dist-BgKyM9U6.js +3 -0
  550. package/editor-web/assets/dist-BqijryYd.js +1 -0
  551. package/editor-web/assets/dist-ByguWp3a.js +16 -0
  552. package/editor-web/assets/dist-CB-_0-X4.js +41 -0
  553. package/editor-web/assets/dist-CCP24Lel.js +19 -0
  554. package/editor-web/assets/dist-Cg0Z26Kv.js +6 -0
  555. package/editor-web/assets/dist-CtYjYJdv.js +1 -0
  556. package/editor-web/assets/dist-D07Kj8GR.js +1 -0
  557. package/editor-web/assets/dist-D2rGVz9C.js +1 -0
  558. package/editor-web/assets/dist-D3DwRF1k.js +547 -0
  559. package/editor-web/assets/dist-DCI21ljp.js +6 -0
  560. package/editor-web/assets/dist-DH8oJJw9.js +35 -0
  561. package/editor-web/assets/dist-DIJnhQFK.js +9 -0
  562. package/editor-web/assets/dist-DJvfQvM7.js +24 -0
  563. package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
  564. package/editor-web/assets/dist-DmCDcb2_.js +4 -0
  565. package/editor-web/assets/dist-H0z_DXDz.js +19 -0
  566. package/editor-web/assets/dist-QLXI7XGS.js +82 -0
  567. package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-Dxb67W2d.js} +1 -1
  568. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-DBymUM-F.js} +1 -1
  569. package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-BNYR3OlS.js} +1 -1
  570. package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-cTNyOqW6.js} +1 -1
  571. package/editor-web/assets/esm-Cl3GKSDd.js +21 -0
  572. package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-C6FUZeXP.js} +1 -1
  573. package/editor-web/assets/eye-DwfE1USj.js +1 -0
  574. package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
  575. package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +1 -0
  576. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-LD9mqQ1x.js} +1 -1
  577. package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-CtCBcQFl.js} +1 -1
  578. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-DYQpOozz.js} +1 -1
  579. package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
  580. package/editor-web/assets/{hint-rlht0uxG.js → hint-F4fIBnVU.js} +1 -1
  581. package/editor-web/assets/index-Cah2zchD.css +2 -0
  582. package/editor-web/assets/index-omhSywJb.js +28 -0
  583. package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-IXInKPRO.js} +1 -1
  584. package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-Ds7Cei7T.js} +1 -1
  585. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-DWs3qtAX.js} +1 -1
  586. package/editor-web/assets/iso-UwGLGD3F.js +1 -0
  587. package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
  588. package/editor-web/assets/{journeyDiagram-BOSHW7O7-DeSVfmm7.js → journeyDiagram-BOSHW7O7-BkNKVYBA.js} +1 -1
  589. package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-D3dMswnI.js} +1 -1
  590. package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
  591. package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-D_W_0X0N.js} +3 -3
  592. package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-Bkirj-s5.js} +4 -4
  593. package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-CMKkAAvI.js} +1 -1
  594. package/editor-web/assets/minus-ngE8owxs.js +1 -0
  595. package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-CzCkgCfg.js} +1 -1
  596. package/editor-web/assets/palette-DchDLJj6.js +1 -0
  597. package/editor-web/assets/panes-BexRuZd2.js +3 -0
  598. package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-C8qHkx7M.js} +1 -1
  599. package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-BJqgxMrD.js} +1 -1
  600. package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-DyNntV5y.js} +1 -1
  601. package/editor-web/assets/{progress-CwKcXARv.js → progress-D1Uv3d1b.js} +1 -1
  602. package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BHa-69ir.js} +1 -1
  603. package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-BeRPjBBR.js} +1 -1
  604. package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-BaRQqRsK.js} +1 -1
  605. package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-BZfwomxZ.js} +1 -1
  606. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-DbgqpEF5.js} +1 -1
  607. package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-BYOf3PsQ.js} +1 -1
  608. package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-B5OAzOsD.js} +1 -1
  609. package/editor-web/assets/react-Byupo4pA.js +1 -0
  610. package/editor-web/assets/replace-CLLMtF4e.js +1 -0
  611. package/editor-web/assets/{requirementDiagram-EQYSW5RA-DLdzkQk5.js → requirementDiagram-EQYSW5RA-wqYNoqO0.js} +1 -1
  612. package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +1 -0
  613. package/editor-web/assets/row-DqS4-5b1.js +1 -0
  614. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-Crf6GRsa.js} +1 -1
  615. package/editor-web/assets/schemas-C21MyseF.js +1 -0
  616. package/editor-web/assets/{iso-DoC-ZoBr.js → schemas-DlRAoVtq.js} +1 -1
  617. package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
  618. package/editor-web/assets/search-D75Bi2GU.js +1 -0
  619. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DUcHz4_d.js} +1 -1
  620. package/editor-web/assets/{session-DMlLCFWg.js → session--OJYv_B7.js} +1 -1
  621. package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
  622. package/editor-web/assets/snapshots-DYooVfOx.js +1 -0
  623. package/editor-web/assets/sound-DkR3qxSt.js +1 -0
  624. package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
  625. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-D103CiMX.js → stateDiagram-v2-A6IESKWZ-DbeLdnpS.js} +1 -1
  626. package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
  627. package/editor-web/assets/{surface-DtCjIlrq.js → surface-BUoi7cmR.js} +1 -1
  628. package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
  629. package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-BDi6AeJI.js} +1 -1
  630. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +8 -0
  631. package/editor-web/assets/{switch-8MU4Nfxe.js → switch-b6GCy_ix.js} +1 -1
  632. package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
  633. package/editor-web/assets/table-BW43XXVd.js +1 -0
  634. package/editor-web/assets/tablet-C6oePHEW.js +1 -0
  635. package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
  636. package/editor-web/assets/{textarea-D7TnPwv1.js → textarea-Bu6uPEqT.js} +1 -1
  637. package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-B0awa2hh.js} +1 -1
  638. package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
  639. package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
  640. package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-C91G0IGm.js} +1 -1
  641. package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-CiOWiwl2.js} +1 -1
  642. package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
  643. package/editor-web/assets/updating-D0GEtwnJ.js +1 -0
  644. package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-DMYM1MRe.js} +1 -1
  645. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-DQIJ5vvN.js} +1 -1
  646. package/editor-web/assets/video-mMOFXHYK.js +1 -0
  647. package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-C3H9HG8r.js} +1 -1
  648. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-DgsjqY1Y.js} +1 -1
  649. package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
  650. package/editor-web/assets/{words-CaUHhQHf.js → words-B2jQwWpp.js} +3 -3
  651. package/editor-web/assets/words-DgMuEmDO.js +3 -0
  652. package/editor-web/assets/workbook-NtMEyLgf.js +41 -0
  653. package/editor-web/assets/{x-DlhyIKuu.js → x-BAJilkKD.js} +1 -1
  654. package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-DzsGI527.js} +1 -1
  655. package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
  656. package/editor-web/index.html +9 -9
  657. package/package.json +6 -3
  658. package/CHANGELOG.md +0 -251
  659. package/dist/commands/render.js +0 -3
  660. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
  661. package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
  662. package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
  663. package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
  664. package/editor-web/assets/article-8evPh712.js +0 -3
  665. package/editor-web/assets/article-BhRtWYMd.js +0 -7
  666. package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
  667. package/editor-web/assets/channel-wIj_OqDm.js +0 -1
  668. package/editor-web/assets/chart-amT4lgX3.js +0 -2
  669. package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
  670. package/editor-web/assets/code-CD-CbJG9.js +0 -1
  671. package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
  672. package/editor-web/assets/dist-3iovns9K.js +0 -16
  673. package/editor-web/assets/dist-BkHnbOEj.js +0 -4
  674. package/editor-web/assets/dist-BvOrNcK-.js +0 -19
  675. package/editor-web/assets/dist-CEIszq39.js +0 -1
  676. package/editor-web/assets/dist-CU5RbLNH.js +0 -1
  677. package/editor-web/assets/dist-CWZj8IAm.js +0 -1
  678. package/editor-web/assets/dist-C_Mtrnif.js +0 -17
  679. package/editor-web/assets/dist-CdqpwdCV.js +0 -24
  680. package/editor-web/assets/dist-CjT76RAw.js +0 -43
  681. package/editor-web/assets/dist-CpzEn9T8.js +0 -6
  682. package/editor-web/assets/dist-CrFYWl5-.js +0 -3
  683. package/editor-web/assets/dist-D3C6FyrO.js +0 -82
  684. package/editor-web/assets/dist-D4eBFGVL.js +0 -1
  685. package/editor-web/assets/dist-DTcjb3cP.js +0 -18
  686. package/editor-web/assets/dist-D_WSM29I.js +0 -17
  687. package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
  688. package/editor-web/assets/dist-J-tPYKGS.js +0 -5
  689. package/editor-web/assets/dist-YW8hS4IM.js +0 -9
  690. package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
  691. package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
  692. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
  693. package/editor-web/assets/index-BQWZnyAQ.js +0 -28
  694. package/editor-web/assets/index-Dvh1t1om.css +0 -2
  695. package/editor-web/assets/layout-SWqqA0yV.js +0 -1
  696. package/editor-web/assets/minus-CbPnUIOy.js +0 -1
  697. package/editor-web/assets/props-form-BpSXbrSF.js +0 -1
  698. package/editor-web/assets/react-Edyoga_4.js +0 -1
  699. package/editor-web/assets/row-C_svyL8o.js +0 -1
  700. package/editor-web/assets/schemas-CQ_UU8-Z.js +0 -1
  701. package/editor-web/assets/search-Ba2BbT6T.js +0 -1
  702. package/editor-web/assets/slides-7xWhREpt.js +0 -1
  703. package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
  704. package/editor-web/assets/sound-bTlco_K3.js +0 -1
  705. package/editor-web/assets/split-tFGKk-x8.js +0 -3
  706. package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
  707. package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
  708. package/editor-web/assets/swatch-DhztHwPU.js +0 -1
  709. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +0 -8
  710. package/editor-web/assets/syntax-CU_WPKxt.js +0 -1
  711. package/editor-web/assets/table-DRbddzx0.js +0 -1
  712. package/editor-web/assets/tabs-CuEawka3.js +0 -1
  713. package/editor-web/assets/tag-CIfWT8B_.js +0 -1
  714. package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
  715. package/editor-web/assets/video-D0uTbHWx.js +0 -1
  716. package/editor-web/assets/words-XlXG79Ur.js +0 -3
  717. package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/stage-runtime",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const REPORT_LIMIT_DEFAULTS={ofOneErrorPerWindow:3,ofAllErrorsPerWindow:30,windowMs:36e5};const w=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|\b[0-9a-f]{8,}\b|\d+/giu;export function errorCountedOfReport(e){const o=e.exception?.values?.at(-1),r=typeof e.message=="string"?e.message:e.message?.formatted??e.message?.message??"";return(o===void 0?r:`${o.type??"Error"}: ${o.value??""}`).replace(w,"#")}export function limitReports(e={}){const o={...REPORT_LIMIT_DEFAULTS,...e},r=e.now??Date.now;let n=r(),t=0;const s=new Map;return c=>{const a=r();a-n>=o.windowMs&&(n=a,t=0,s.clear());const f=errorCountedOfReport(c),i=s.get(f)??0;return t>=o.ofAllErrorsPerWindow||i>=o.ofOneErrorPerWindow?!1:(t+=1,s.set(f,i+1),!0)}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/telemetry",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -15,6 +15,10 @@
15
15
  "types": "./dist/errors.d.ts",
16
16
  "default": "./dist/errors.js"
17
17
  },
18
+ "./limit": {
19
+ "types": "./dist/limit.d.ts",
20
+ "default": "./dist/limit.js"
21
+ },
18
22
  "./levels": {
19
23
  "types": "./dist/levels.d.ts",
20
24
  "default": "./dist/levels.js"
@@ -1,2 +1,4 @@
1
1
  work:
2
2
  - file: notes/launch.md
3
+ versions:
4
+ sheet: 2
@@ -1,2 +1,4 @@
1
1
  work:
2
2
  - file: archive/assets.zip
3
+ versions:
4
+ sheet: 2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/text-extension",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json"
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{faceAt as A,facesAt as C}from"@allyhub/piece";import{keyAt as l,rectAt as z,simplifyKeys as E}from"./motion.js";export function sourceAt(t,e){const n=t.cuts;if(n&&n.length>0){let c=n[0]??{at:t.start,from:t.from};for(const r of n)r.at<=e+1e-9&&(c=r);return c.from+(e-c.at)}return t.from+(e-t.start)*t.speed}export function zoomRect(t,e,n,c){if(e===1)return t;const r=1-1/e;return[t[0]+n*t[2]*r,t[1]+c*t[3]*r,t[2]/e,t[3]/e]}export function zoomChannel(t,e){return t.map(n=>({t:n.t,v:n[e],...n.ease?{ease:n.ease}:{}}))}export function placementAt(t,e){let n=t.box,c=t.picture;if(t.boxes&&t.boxes.length>0){const o=t.boxes[0]?.box??t.box,i=z(t.boxes.map(h=>({t:h.t,rect:h.box,...h.ease?{ease:h.ease}:{}})),e),a=boxFit(t,o,i),[f,m,u,x]=t.picture,s=i[0]+i[2]/2+(f+u/2-(o[0]+o[2]/2))*a,p=i[1]+i[3]/2+(m+x/2-(o[1]+o[3]/2))*a;c=[s-u*a/2,p-x*a/2,u*a,x*a],n=i}let r=t.crop;if(r&&t.pan&&t.pan.length>0){const o=l(t.pan.map(a=>({t:a.t,v:a.x})),e),i=l(t.pan.map(a=>({t:a.t,v:a.y})),e);r=[o,i,r[2],r[3]]}return r&&t.zoom&&t.zoom.length>0&&(r=zoomRect(r,l(zoomChannel(t.zoom,"z"),e),l(zoomChannel(t.zoom,"cx"),e),l(zoomChannel(t.zoom,"cy"),e))),{box:n,picture:c,...r?{crop:r}:{}}}export function boxFit(t,e,n){const[,,c,r]=t.picture;if(c<=0||r<=0||e[2]<=0||e[3]<=0)return 1;const o=t.fit==="cover"?Math.max:Math.min,i=o(e[2]/c,e[3]/r);return o(n[2]/c,n[3]/r)/i}export function sourceToFrame(t,e){const n=t.crop;if(!n)return e;const c=t.picture[2]/n[2],r=t.picture[3]/n[3];return[t.picture[0]+(e[0]-n[0])*c,t.picture[1]+(e[1]-n[1])*r,e[2]*c,e[3]*r]}function w(t,e){const n=Math.max(t[0],e[0]),c=Math.max(t[1],e[1]),r=Math.min(t[0]+t[2],e[0]+e[2]),o=Math.min(t[1]+t[3],e[1]+e[3]);return r>n&&o>c?[n,c,r-n,o-c]:void 0}export function faceOnFrame(t,e,n,c=t.speaker??e.speaker){if(n<t.start||n>=t.end)return;const r=A(e,sourceAt(t,n),c);if(!r)return;const o=placementAt(t,n);return w(sourceToFrame(o,r),o.box)}export function facesOnFrame(t,e,n){if(n<t.start||n>=t.end)return[];const c=placementAt(t,n);return C(e,sourceAt(t,n)).flatMap(r=>{const o=w(sourceToFrame(c,r.box),c.box);return o?[{id:r.id,box:o}]:[]})}export function reframeWindow(t,e){const n=e.w/e.h,c=Math.min(t.width,t.height*n);return{w:Math.min(t.width,Math.round(c)),h:Math.min(t.height,Math.round(c/n))}}export const REFRAME_FACE_Y=.4,REFRAME_FALLBACK={x:.5,y:.4};export function reframePath(t){const{window:e,source:n,layer:c}=t,r=s=>Math.min(Math.max(s,0),n.width-e.w),o=s=>Math.min(Math.max(s,0),n.height-e.h),i=t.faceY??REFRAME_FACE_Y,a=s=>{const p=t.track?A(t.track,sourceAt(c,s),t.speaker??t.track.speaker):void 0,h=p?p[0]+p[2]/2:(t.focus?.x??.5)*n.width,y=p?p[1]+p[3]/2:(t.focus?.y??.4)*n.height;return[r(h-e.w/2),o(y-e.h*i)]},f=(c.cuts??[]).map(s=>s.at).filter(s=>s>c.start&&s<c.end),m=[c.start,...f,c.end],u=[];for(let s=0;s<m.length-1;s++){const p=m[s]??0,h=m[s+1]??p,y=[];for(let d=p;d<h-1e-6;d+=.1)y.push({t:d,v:a(d)});const M=Math.max(p,h-.001);y.push({t:M,v:a(M)});for(const d of E(y,1.5))u.push({t:Math.round(d.t*1e6)/1e6,x:Math.round((d.v[0]??0)*100)/100,y:Math.round((d.v[1]??0)*100)/100})}const x=u[0];return x&&u.every(s=>s.x===x.x&&s.y===x.y)?[x]:u}export const PUNCH_IN=.2,PUNCH_OUT=.25,PUNCH_SCALE=1.12,PUNCH_EASE="in-out",PUNCH_CENTER={x:.5,y:.42};export function punchKeys(t){const e=[...t].sort((o,i)=>o.start-i.start),n=[],c=o=>Math.round(o*1e6)/1e6;let r=PUNCH_OUT;for(const o of e){const i=o.in??PUNCH_IN,a=o.out??PUNCH_OUT,f=o.ease??PUNCH_EASE,m=o.start-i/2,u=o.start+i/2,x=n.at(-1);x&&x.t>m?(n.pop(),n.push({t:c(Math.max(x.t-r,u)),z:o.scale,cx:o.cx,cy:o.cy,ease:f})):(n.push({t:c(Math.max(0,m)),z:1,cx:o.cx,cy:o.cy}),n.push({t:c(u),z:o.scale,cx:o.cx,cy:o.cy,ease:f}));const s=Math.max(o.end,u);n.push({t:c(s),z:o.scale,cx:o.cx,cy:o.cy}),n.push({t:c(s+a),z:1,cx:o.cx,cy:o.cy,ease:f}),r=a}return n}export const PULLBACK_SCALE=1.12,PULLBACK_DUR=.6,PULLBACK_EASE="out";export function pullbackKeys(t,e,n=[]){const c=a=>Math.round(a*1e6)/1e6,r=n[0],o=Math.min(t+e.dur,r?.t??1/0);if(o<=t+1e-6)return[...n];const i=r&&r.t<=o+1e-9&&r.z===1?n.slice(1):n;return[{t:c(t),z:e.scale,cx:e.cx,cy:e.cy},{t:c(o),z:1,cx:e.cx,cy:e.cy,ease:e.ease??PULLBACK_EASE},...i]}export function parsePunch(t){const e=/^(.*\S)@(\d*\.\d+)$/u.exec(t.trim());return!e?.[1]||e[2]===void 0?{ref:t}:{ref:e[1],scale:Number(e[2])}}
2
+ import{faceAt as A,facesAt as g}from"@allyhub/piece";import{keyAt as f,rectAt as C,simplifyKeys as z}from"./motion.js";export function sourceAt(t,e){const n=t.cuts;if(n&&n.length>0){let s=n[0]??{at:t.start,from:t.from};for(const c of n)c.at<=e+1e-9&&(s=c);return s.from+(e-s.at)}return t.from+(e-t.start)*t.speed}export function sourceSpans(t){const e=(t.cuts??[]).map(c=>c.at).filter(c=>c>t.start&&c<t.end),n=[t.start,...e,t.end],s=[];for(let c=0;c<n.length-1;c++){const o=n[c]??0,u=n[c+1]??o;if(u<=o)continue;const r=sourceAt(t,o),h=r+(u-o)*(t.cuts?.length?1:t.speed);s.push(r<=h?[r,h]:[h,r])}return s.sort((c,o)=>c[0]-o[0])}export function zoomRect(t,e,n,s){if(e===1)return t;const c=1-1/e;return[t[0]+n*t[2]*c,t[1]+s*t[3]*c,t[2]/e,t[3]/e]}export function zoomChannel(t,e){return t.map(n=>({t:n.t,v:n[e],...n.ease?{ease:n.ease}:{}}))}export function placementAt(t,e){let n=t.box,s=t.picture;if(t.boxes&&t.boxes.length>0){const o=t.boxes[0]?.box??t.box,u=C(t.boxes.map(m=>({t:m.t,rect:m.box,...m.ease?{ease:m.ease}:{}})),e),r=boxFit(t,o,u),[h,d,i,x]=t.picture,a=u[0]+u[2]/2+(h+i/2-(o[0]+o[2]/2))*r,p=u[1]+u[3]/2+(d+x/2-(o[1]+o[3]/2))*r;s=[a-i*r/2,p-x*r/2,i*r,x*r],n=u}let c=t.crop;if(c&&t.pan&&t.pan.length>0){const o=f(t.pan.map(r=>({t:r.t,v:r.x})),e),u=f(t.pan.map(r=>({t:r.t,v:r.y})),e);c=[o,u,c[2],c[3]]}return c&&t.zoom&&t.zoom.length>0&&(c=zoomRect(c,f(zoomChannel(t.zoom,"z"),e),f(zoomChannel(t.zoom,"cx"),e),f(zoomChannel(t.zoom,"cy"),e))),{box:n,picture:s,...c?{crop:c}:{}}}export function boxFit(t,e,n){const[,,s,c]=t.picture;if(s<=0||c<=0||e[2]<=0||e[3]<=0)return 1;const o=t.fit==="cover"?Math.max:Math.min,u=o(e[2]/s,e[3]/c);return o(n[2]/s,n[3]/c)/u}export function sourceToFrame(t,e){const n=t.crop;if(!n)return e;const s=t.picture[2]/n[2],c=t.picture[3]/n[3];return[t.picture[0]+(e[0]-n[0])*s,t.picture[1]+(e[1]-n[1])*c,e[2]*s,e[3]*c]}function w(t,e){const n=Math.max(t[0],e[0]),s=Math.max(t[1],e[1]),c=Math.min(t[0]+t[2],e[0]+e[2]),o=Math.min(t[1]+t[3],e[1]+e[3]);return c>n&&o>s?[n,s,c-n,o-s]:void 0}export function faceOnFrame(t,e,n,s=t.speaker??e.speaker){if(n<t.start||n>=t.end)return;const c=A(e,sourceAt(t,n),s);if(!c)return;const o=placementAt(t,n);return w(sourceToFrame(o,c),o.box)}export function facesOnFrame(t,e,n){if(n<t.start||n>=t.end)return[];const s=placementAt(t,n);return g(e,sourceAt(t,n)).flatMap(c=>{const o=w(sourceToFrame(s,c.box),s.box);return o?[{id:c.id,box:o}]:[]})}export function reframeWindow(t,e){const n=e.w/e.h,s=Math.min(t.width,t.height*n);return{w:Math.min(t.width,Math.round(s)),h:Math.min(t.height,Math.round(s/n))}}export const REFRAME_FACE_Y=.4,REFRAME_FALLBACK={x:.5,y:.4};export function reframePath(t){const{window:e,source:n,layer:s}=t,c=a=>Math.min(Math.max(a,0),n.width-e.w),o=a=>Math.min(Math.max(a,0),n.height-e.h),u=t.faceY??REFRAME_FACE_Y,r=a=>{const p=t.track?A(t.track,sourceAt(s,a),t.speaker??t.track.speaker):void 0,m=p?p[0]+p[2]/2:(t.focus?.x??.5)*n.width,l=p?p[1]+p[3]/2:(t.focus?.y??.4)*n.height;return[c(m-e.w/2),o(l-e.h*u)]},h=(s.cuts??[]).map(a=>a.at).filter(a=>a>s.start&&a<s.end),d=[s.start,...h,s.end],i=[];for(let a=0;a<d.length-1;a++){const p=d[a]??0,m=d[a+1]??p,l=[];for(let y=p;y<m-1e-6;y+=.1)l.push({t:y,v:r(y)});const M=Math.max(p,m-.001);l.push({t:M,v:r(M)});for(const y of z(l,1.5))i.push({t:Math.round(y.t*1e6)/1e6,x:Math.round((y.v[0]??0)*100)/100,y:Math.round((y.v[1]??0)*100)/100})}const x=i[0];return x&&i.every(a=>a.x===x.x&&a.y===x.y)?[x]:i}export const PUNCH_IN=.2,PUNCH_OUT=.25,PUNCH_SCALE=1.12,PUNCH_EASE="in-out",PUNCH_CENTER={x:.5,y:.42};export function punchKeys(t){const e=[...t].sort((o,u)=>o.start-u.start),n=[],s=o=>Math.round(o*1e6)/1e6;let c=PUNCH_OUT;for(const o of e){const u=o.in??PUNCH_IN,r=o.out??PUNCH_OUT,h=o.ease??PUNCH_EASE,d=o.start-u/2,i=o.start+u/2,x=n.at(-1);x&&x.t>d?(n.pop(),n.push({t:s(Math.max(x.t-c,i)),z:o.scale,cx:o.cx,cy:o.cy,ease:h})):(n.push({t:s(Math.max(0,d)),z:1,cx:o.cx,cy:o.cy}),n.push({t:s(i),z:o.scale,cx:o.cx,cy:o.cy,ease:h}));const a=Math.max(o.end,i);n.push({t:s(a),z:o.scale,cx:o.cx,cy:o.cy}),n.push({t:s(a+r),z:1,cx:o.cx,cy:o.cy,ease:h}),c=r}return n}export const PULLBACK_SCALE=1.12,PULLBACK_DUR=.6,PULLBACK_EASE="out";export function pullbackKeys(t,e,n=[]){const s=r=>Math.round(r*1e6)/1e6,c=n[0],o=Math.min(t+e.dur,c?.t??1/0);if(o<=t+1e-6)return[...n];const u=c&&c.t<=o+1e-9&&c.z===1?n.slice(1):n;return[{t:s(t),z:e.scale,cx:e.cx,cy:e.cy},{t:s(o),z:1,cx:e.cx,cy:e.cy,ease:e.ease??PULLBACK_EASE},...u]}export function parsePunch(t){const e=/^(.*\S)@(\d*\.\d+)$/u.exec(t.trim());return!e?.[1]||e[2]===void 0?{ref:t}:{ref:e[1],scale:Number(e[2])}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{READ_DEFAULTS as G,countWords as I,phoneScale as K}from"@allyhub/piece";import{boxFit as V,zoomChannel as W}from"./footage-motion.js";import{keyAt as J,rectAt as Q}from"./motion.js";export function textTime(t,r,i=G){const o=new Map;for(const h of t)o.set(h.text,(o.get(h.text)??0)+1);let a,p=0;for(const h of t){const w=o.get(h.text)??0;w>=p&&(p=w,a=h.text)}if(a===void 0)return;const x=t.filter(h=>h.text===a),e=h=>h.opacity>=i.opacity-1e-9&&h.shown>=i.shown-1e-9,n=i.every,c=h=>d(Math.min(h+n,r.end)),m=[];for(const h of x){if(!e(h))continue;const w=m.at(-1);w&&h.t-w[1]<n*.5?w[1]=c(h.t):m.push([d(h.t),c(h.t)])}const u=x.find(e)??x[0];if(!u)return;const f=(x.some(e)?x.filter(e):x).flatMap(h=>h.size===void 0?[]:[h.size]),b=f.length>0?Math.min(...f):void 0,s=(x.some(e)?x.filter(e):x).flatMap(h=>h.xHeight===void 0?[]:[h.xHeight]),l=s.length>0?Math.min(...s):void 0,g=K(r.frame,i.phone),z=h=>d(h.reduce((w,[S,F])=>w+Math.max(0,F-S),0)),y=[];for(const h of x){const w=y.at(-1);w&&h.t-w[1]<n*.5?w[1]=c(h.t):y.push([d(h.t),c(h.t)])}return{part:r.part,text:{layer:r.layer,z:r.z,text:a,box:u.box},...I(a),seconds:z(m),spans:m,onScreen:z(y),first:d(u.t),...b===void 0?{}:{size:{px:T(b),phone:T(b*g),...l===void 0?{}:{lowercase:{px:T(l),phone:T(l*g)}}}}}}const L=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");export function speechShown(t,r){const i=new Set(r.flatMap(p=>p.split(/\s+/u).map(L))),o=t.split(/\s+/u).filter(p=>L(p)!==""),a=o.filter(p=>!i.has(L(p)));return{words:o.length,shown:o.length-a.length,unshown:[...new Set(a.map(L))]}}export function wordsAtOnce(t){const r=new Map;for(const o of t){if(o.spans.length===0)continue;const a=r.get(o.part)??[];a.push(o),r.set(o.part,a)}const i=[];for(const[o,a]of r){const p=[...new Set(a.flatMap(n=>n.spans.flat()))].sort((n,c)=>n-c),x=[];let e;for(const[n,c]of p.entries()){const m=a.filter(b=>b.spans.some(([s,l])=>c>=s&&c<l)),u=m.reduce((b,s)=>b+s.words,0),f=x.at(-1);(f?.words!==u||f.texts!==m.length)&&x.push({t:c,words:u,texts:m.length}),m.length>0&&(!e||u>e.words)?e={words:u,chars:m.reduce((b,s)=>b+s.chars,0),texts:m.length,from:c,until:p[n+1]??c}:e?.until===c&&u===e.words&&(e.until=p[n+1]??c)}e&&i.push({part:o,...e,steps:x})}return i}const d=t=>Math.round(t*1e3)/1e3,T=t=>Math.round(t*10)/10;export{cutThroughout}from"@allyhub/image-measure/layout";export function footageScale(t,r=1,i){const o=t.crop;if(!o||!t.source||o[2]<=0||o[3]<=0)return;const a=t.picture,p=t.zoom&&t.zoom.length>0?W(t.zoom,"z"):[],x=t.boxes&&t.boxes.length>1?t.boxes:void 0,e=x?.[0]?.box,n=x?.map(s=>({t:s.t,rect:s.box,...s.ease?{ease:s.ease}:{}})),c=Math.max(t.start,i?t.end-1/i:t.end),m=[t.start,...p.map(s=>s.t),...(x??[]).map(s=>s.t),c].map(s=>Math.min(Math.max(s,t.start),c)).sort((s,l)=>s-l),u=s=>{const l=p.length>0?J(p,s):1,g=n&&e?V(t,e,Q(n,s)):1,z=Math.max(a[2]*g/o[2],a[3]*g/o[3])*l*r,y=[t.fit];return Math.abs(l-1)>1e-6&&y.push(`zoom ${String(d(l))}×`),n&&Math.abs(g-1)>1e-6&&y.push(`box key ${String(d(g))}×`),{scale:d(z),t:d(s),from:y}};let f=u(t.start),b=f;for(const s of m){const l=u(s);l.scale>f.scale&&(f=l),l.scale<b.scale&&(b=l)}return{part:t.part,file:t.file,source:[t.source.width,t.source.height],shown:[Math.round(o[2]),Math.round(o[3])],max:f,min:b}}export function contentBox(t,r,i){return{x:[i.left,Math.max(i.left,t-i.right)],y:[i.top,Math.max(i.top,r-i.bottom)]}}export function unionSpans(t){const r=t.filter(([o,a])=>a>o).map(([o,a])=>[o,a]).sort((o,a)=>o[0]-a[0]),i=[];for(const o of r){const a=i.at(-1);a&&o[0]<=a[1]?a[1]=Math.max(a[1],o[1]):i.push(o)}return i}export function freeBands(t,r){const[i,o]=t.y,a=[];let p=i;const x=(e,n)=>{n>e&&a.push({y:[e,n],x:[t.x[0],t.x[1]],height:n-e})};for(const[e,n]of unionSpans(r))if(!(n<=p)){if(e>=o)break;x(p,Math.min(e,o)),p=Math.max(p,n)}return x(p,o),a}export function boxRows(t,r){if(!(t[2]<=0||t[3]<=0)&&!(t[0]>=r[1]||t[0]+t[2]<=r[0]))return[Math.floor(t[1]),Math.ceil(t[1]+t[3])]}const A=t=>[t[0]+t[2]/2,t[1]+t[3]/2];function N(t,r){if(!t.box||!r.box)return{px:0,grew:0};const[i,o]=A(t.box),[a,p]=A(r.box);return{px:Math.hypot(a-i,p-o),grew:Math.max(Math.abs(r.box[2]-t.box[2]),Math.abs(r.box[3]-t.box[3]))}}export function largestSteps(t){const r=[];for(const o of t){const a=o.samples.length,p=[],x=[];for(let e=1;e<a;e++){const n=o.samples[e-1],c=o.samples[e];if(!n||!c)continue;const m=N(n,c);p[e]=Math.max(m.px,m.grew),x[e]=Math.abs(c.opacity-n.opacity)}for(const[e,n]of[["move",p],["fade",x]]){let c=-1,m=0;for(let s=1;s<a;s++){const g=(n[s]??0)-Math.max(n[s-1]??0,n[s+1]??0);g>m+1e-9&&(c=s,m=g)}const u=o.samples[c-1],f=o.samples[c];if(c<1||!u||!f)continue;const b=N(u,f);r.push({part:o.part,layer:o.layer,what:o.what,selector:o.selector,kind:e,t:d(f.t),...u.box?{from:u.box}:{},...f.box?{to:f.box}:{},px:d(b.px),grew:d(b.grew),opacity:[d(u.opacity),d(f.opacity)],around:d(Math.max(n[c-1]??0,n[c+1]??0)),over:d(m)})}}const i=o=>o.kind==="move"?0:1;return r.sort((o,a)=>i(o)-i(a)||a.over-o.over)}export const MOVING_DEFAULTS={hold:1,slow:8,window:.25};const P=(t,r)=>t===r||t!==void 0&&r!==void 0&&t.every((i,o)=>i===r[o]);export function movingStretches(t,r){const i=r.hold??MOVING_DEFAULTS.hold,o=(r.slow??MOVING_DEFAULTS.slow)*((r.height??1080)/1080),a=r.window??MOVING_DEFAULTS.window,p=Math.max(1,Math.round(i*r.fps)),x=new Map;for(const e of t){const n=e.samples;let c=1;for(;c<n.length;){if(P(n[c-1]?.box,n[c]?.box)||!n[c-1]?.box||!n[c]?.box){c++;continue}const m=c-1;let u=c,f=c+1;for(;f<n.length&&f-u<=p;){const M=n[f-1]?.box,v=n[f]?.box;if(!M||!v)break;P(M,v)||(u=f),f++}c=u+1;const b=f>=n.length,s=n[m],l=n[u];if(!s?.box||!l?.box)continue;const[g,z]=A(s.box),[y,h]=A(l.box),w=Math.hypot(y-g,h-z),S=[s.box[2]>0?l.box[2]/s.box[2]:1,s.box[3]>0?l.box[3]/s.box[3]:1],F=l.t-s.t,D=Math.max(1,Math.round(a*r.fps));let j=0;for(let M=m;M<u;M+=D){const v=n[M],k=n[Math.min(u,M+D)];if(!v?.box||!k?.box||k.t<=v.t)continue;const[U,_]=A(v.box),[$,q]=A(k.box);Math.max(Math.hypot($-U,q-_),Math.abs(k.box[2]-v.box[2])/2,Math.abs(k.box[3]-v.box[3])/2)/(k.t-v.t)<o&&(j+=k.t-v.t)}const R=Math.abs(S[0]-1)>.001||Math.abs(S[1]-1)>.001,B=[e.part,d(s.t),d(l.t),S[0].toFixed(2),S[1].toFixed(2),...R?[]:[Math.round(y-g),Math.round(h-z)]].join("|"),C={layer:e.layer,what:e.what,...e.name===void 0?{}:{name:e.name}},O=x.get(B);if(O){O.things++,O.names.length<3&&O.names.push(C);continue}const E=r.transitions?.find(M=>(M.part===e.part||M.from===e.part)&&s.t<M.end&&l.t>M.start),H=r.parts?.find(M=>M.key===e.part)?.end;x.set(B,{part:e.part,start:d(s.t),end:d(l.t),things:1,names:[C],px:d(w),scale:[d(S[0]),d(S[1])],speed:F>0?d(w/F):0,slow:d(j),...E?{transition:{type:E.type,start:E.start,end:E.end}}:{},...H!==void 0&&b&&(n.at(-1)?.t??0)>=H-1.5/r.fps?{toEnd:!0}:{}})}}return[...x.values()].sort((e,n)=>e.start-n.start||n.things-e.things)}
2
+ import{READ_DEFAULTS as T,countWords as v,phoneScale as B}from"@allyhub/piece";import{boxFit as C,zoomChannel as D}from"./footage-motion.js";import{keyAt as E,rectAt as F}from"./motion.js";export function textTime(t,i,r=T){const e=new Map;for(const n of t)e.set(n.text,(e.get(n.text)??0)+1);let o,a=0;for(const n of t){const m=e.get(n.text)??0;m>=a&&(a=m,o=n.text)}if(o===void 0)return;const u=t.filter(n=>n.text===o),c=n=>n.opacity>=r.opacity-1e-9&&n.shown>=r.shown-1e-9,h=r.every,f=n=>M(Math.min(n+h,i.end)),p=[];for(const n of u){if(!c(n))continue;const m=p.at(-1);m&&n.t-m[1]<h*.5?m[1]=f(n.t):p.push([M(n.t),f(n.t)])}const d=u.find(c)??u[0];if(!d)return;const g=(u.some(c)?u.filter(c):u).flatMap(n=>n.size===void 0?[]:[n.size]),x=g.length>0?Math.min(...g):void 0,s=(u.some(c)?u.filter(c):u).flatMap(n=>n.xHeight===void 0?[]:[n.xHeight]),l=s.length>0?Math.min(...s):void 0,w=B(i.frame,r.phone),y=n=>M(n.reduce((m,[A,L])=>m+Math.max(0,L-A),0)),z=[];for(const n of u){const m=z.at(-1);m&&n.t-m[1]<h*.5?m[1]=f(n.t):z.push([M(n.t),f(n.t)])}return{part:i.part,text:{layer:i.layer,z:i.z,text:o,box:d.box},...v(o),seconds:y(p),spans:p,onScreen:y(z),first:M(d.t),...x===void 0?{}:{size:{px:b(x),phone:b(x*w),...l===void 0?{}:{lowercase:{px:b(l),phone:b(l*w)}}}}}}const S=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");export function speechShown(t,i){const r=new Set(i.flatMap(a=>a.split(/\s+/u).map(S))),e=t.split(/\s+/u).filter(a=>S(a)!==""),o=e.filter(a=>!r.has(S(a)));return{words:e.length,shown:e.length-o.length,unshown:[...new Set(o.map(S))]}}export function wordsAtOnce(t){const i=new Map;for(const e of t){if(e.spans.length===0)continue;const o=i.get(e.part)??[];o.push(e),i.set(e.part,o)}const r=[];for(const[e,o]of i){const a=[...new Set(o.flatMap(h=>h.spans.flat()))].sort((h,f)=>h-f),u=[];let c;for(const[h,f]of a.entries()){const p=o.filter(x=>x.spans.some(([s,l])=>f>=s&&f<l)),d=p.reduce((x,s)=>x+s.words,0),g=u.at(-1);(g?.words!==d||g.texts!==p.length)&&u.push({t:f,words:d,texts:p.length}),p.length>0&&(!c||d>c.words)?c={words:d,chars:p.reduce((x,s)=>x+s.chars,0),texts:p.length,from:f,until:a[h+1]??f}:c?.until===f&&d===c.words&&(c.until=a[h+1]??f)}c&&r.push({part:e,...c,steps:u})}return r}const M=t=>Math.round(t*1e3)/1e3,b=t=>Math.round(t*10)/10;export{cutThroughout}from"@allyhub/image-measure/layout";export function footageScale(t,i=1,r){const e=t.crop;if(!e||!t.source||e[2]<=0||e[3]<=0)return;const o=t.picture,a=t.zoom&&t.zoom.length>0?D(t.zoom,"z"):[],u=t.boxes&&t.boxes.length>1?t.boxes:void 0,c=u?.[0]?.box,h=u?.map(s=>({t:s.t,rect:s.box,...s.ease?{ease:s.ease}:{}})),f=Math.max(t.start,r?t.end-1/r:t.end),p=[t.start,...a.map(s=>s.t),...(u??[]).map(s=>s.t),f].map(s=>Math.min(Math.max(s,t.start),f)).sort((s,l)=>s-l),d=s=>{const l=a.length>0?E(a,s):1,w=h&&c?C(t,c,F(h,s)):1,y=Math.max(o[2]*w/e[2],o[3]*w/e[3])*l*i,z=[t.fit];return Math.abs(l-1)>1e-6&&z.push(`zoom ${String(M(l))}×`),h&&Math.abs(w-1)>1e-6&&z.push(`box key ${String(M(w))}×`),{scale:M(y),t:M(s),from:z}};let g=d(t.start),x=g;for(const s of p){const l=d(s);l.scale>g.scale&&(g=l),l.scale<x.scale&&(x=l)}return{part:t.part,file:t.file,source:[t.source.width,t.source.height],shown:[Math.round(e[2]),Math.round(e[3])],max:g,min:x}}export function contentBox(t,i,r){return{x:[r.left,Math.max(r.left,t-r.right)],y:[r.top,Math.max(r.top,i-r.bottom)]}}export function unionSpans(t){const i=t.filter(([e,o])=>o>e).map(([e,o])=>[e,o]).sort((e,o)=>e[0]-o[0]),r=[];for(const e of i){const o=r.at(-1);o&&e[0]<=o[1]?o[1]=Math.max(o[1],e[1]):r.push(e)}return r}export function freeBands(t,i){const[r,e]=t.y,o=[];let a=r;const u=(c,h)=>{h>c&&o.push({y:[c,h],x:[t.x[0],t.x[1]],height:h-c})};for(const[c,h]of unionSpans(i))if(!(h<=a)){if(c>=e)break;u(a,Math.min(c,e)),a=Math.max(a,h)}return u(a,e),o}export function boxRows(t,i){if(!(t[2]<=0||t[3]<=0)&&!(t[0]>=i[1]||t[0]+t[2]<=i[0]))return[Math.floor(t[1]),Math.ceil(t[1]+t[3])]}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const SEAM_DEFAULTS={frames:3,rest:15,top:3};export function seamOptions(t={}){const n=(a,d,r)=>a!==void 0&&Number.isFinite(a)&&a>=d?Math.round(a):r;return{frames:n(t.frames,2,SEAM_DEFAULTS.frames),rest:t.rest!==void 0&&Number.isFinite(t.rest)&&t.rest>=0?t.rest:SEAM_DEFAULTS.rest,top:n(t.top,0,SEAM_DEFAULTS.top)}}const A=t=>Math.round(t*10)/10,y=t=>Math.round(t*1e3)/1e3,$=t=>[t[0]+t[2]/2,t[1]+t[3]/2],I=t=>Math.sqrt(Math.max(0,t[2])*Math.max(0,t[3]));export function angleOf(t,n){return A(Math.atan2(n,t)*180/Math.PI)}export function turnOf(t,n){let a=(n-t)%360;return a>180&&(a-=360),a<=-180&&(a+=360),A(a)}const L=(t,n,a)=>{const d=Math.hypot(t,n);return{vx:A(t),vy:A(n),speed:A(d),...d>=a&&d>0?{angle:angleOf(t,n)}:{}}};export function seamSide(t,n,a,d,r,i){const w=new Map(a.map(s=>[y(s),s])),x=[];for(const s of t){if(s.part!==n)continue;const h=s.samples.filter(O=>w.has(y(O.t))&&O.box!==void 0&&O.opacity>.05),F=d==="last"?h.at(-1):h[0];if(!F?.box)continue;const f=h[0],g=h.at(-1);let m=0,M=0,p=0,v=0,b=0;const S=f?w.get(y(f.t))??f.t:0,N=g?w.get(y(g.t))??g.t:0;if(f?.box&&g?.box&&N>S){const O=N-S,[C,D]=$(f.box),[P,T]=$(g.box);m=(P-C)/O,M=(T-D)/O;const E=I(f.box);b=(I(g.box)-E)/O,p=E>0?b/E:0,v=(g.opacity-f.opacity)/O}const z=L(m,M,i.rest),k=F.box;x.push({layer:s.layer,what:s.what,selector:s.selector,...s.name===void 0?{}:{name:s.name},box:k,area:y(k[2]*k[3]/Math.max(1,r[0]*r[1])),...z,scale:y(p),fade:y(v),moving:Math.hypot(m,M)>=i.rest||Math.abs(b)>=i.rest})}const c=s=>Math.max(0,s.box[2]*s.box[3]),e=x.filter(s=>s.moving),l=[...e.sort((s,h)=>c(h)-c(s)),...x.filter(s=>!s.moving).sort((s,h)=>c(h)-c(s))],o=e.reduce((s,h)=>s+c(h),0),u=o>0?{...L(e.reduce((s,h)=>s+h.vx*c(h),0)/o,e.reduce((s,h)=>s+h.vy*c(h),0)/o,i.rest),scale:y(e.reduce((s,h)=>s+h.scale*c(h),0)/o)}:void 0;return{part:n,from:y(a[0]??0),to:y(a.at(-1)??0),things:x.length,moving:e.length,list:i.top===0?l:l.filter(s=>s.moving).slice(0,i.top),...u?{overall:u}:{}}}export function changeOf(t,n){return{...t?.angle!==void 0&&n?.angle!==void 0?{turn:turnOf(t.angle,n.angle)}:{},speed:[t?.speed??0,n?.speed??0]}}export function seamCarriers(t,n,a){const d=e=>!a||(e[0]??0)<a[0]&&(e[0]??0)+(e[2]??0)>0&&(e[1]??0)<a[1]&&(e[1]??0)+(e[3]??0)>0,r=e=>e.name??(e.what.startsWith("text ")?e.what:void 0),i=e=>{const l=new Map;for(const o of e){const u=r(o);u!==void 0&&l.set(u,l.has(u)?null:o)}return l},w=i(t),x=i(n),c=[];for(const[e,l]of w){const o=x.get(e);if(!l||!o||!d(l.box)||!d(o.box))continue;const[u,s]=$(l.box),[h,F]=$(o.box),f=I(l.box);c.push({name:e,before:l.box,after:o.box,distance:A(Math.hypot(h-u,F-s)),size:y(f>0?I(o.box)/f:0),speed:[l.speed,o.speed]})}return c}const q=t=>{const n=new Float32Array(t.width*t.height);for(let a=0;a<n.length;a++)n[a]=.2126*(t.data[a*4]??0)+.7152*(t.data[a*4+1]??0)+.0722*(t.data[a*4+2]??0);return n};export function pictureShift(t,n,a){const d=Math.min(t.width,n.width),r=Math.min(t.height,n.height),i=q(t),w=q(n),x=(f,g)=>{let m=0,M=0;for(let p=Math.max(0,g);p<Math.min(r,r+g);p++){const v=p-g;for(let b=Math.max(0,f);b<Math.min(d,d+f);b++)m+=Math.abs((w[p*n.width+b]??0)-(i[v*t.width+(b-f)]??0)),M++}return M>=d*r/2?m/M:1/0},c=x(0,0);let e={dx:0,dy:0,c};const l=new Map,o=Math.max(0,Math.round(a));for(let f=-o;f<=o;f++)for(let g=-o;g<=o;g++){const m=x(g,f);l.set(`${String(g)},${String(f)}`,m),(m<e.c-1e-9||Math.abs(m-e.c)<=1e-9&&Math.hypot(g,f)<Math.hypot(e.dx,e.dy))&&(e={dx:g,dy:f,c:m})}const u=(f,g)=>l.get(`${String(f)},${String(g)}`)??1/0,s=(f,g,m)=>{if(!Number.isFinite(f)||!Number.isFinite(m))return 0;const M=f-2*g+m;return M>1e-9?Math.max(-.5,Math.min(.5,(f-m)/(2*M))):0},h=s(u(e.dx-1,e.dy),e.c,u(e.dx+1,e.dy)),F=s(u(e.dx,e.dy-1),e.c,u(e.dx,e.dy+1));return{dx:e.c<c-1e-9?e.dx+h:0,dy:e.c<c-1e-9?e.dy+F:0,error:y(e.c),still:y(c)}}export function pictureMotion(t,n,a,d,r){if(t.length<2)return;let i=0,w=0,x=0,c=0,e=0;for(let l=1;l<t.length;l++){const o=t[l-1],u=t[l];if(!o||!u)continue;const s=pictureShift(o,u,d);i+=s.dx,w+=s.dy,x+=s.error,c+=s.still,e++}if(e!==0)return{...L(i/e*a*n,w/e*a*n,r),match:y(x/e),still:y(c/e)}}export const FLASH_DEFAULTS={reach:1,width:160,noise:24,change:.005,frames:1,usual:2};export function flashOptions(t={}){const n=(a,d,r)=>{const i=t[a];return i===void 0||!Number.isFinite(i)||i<d?FLASH_DEFAULTS[a]:r?Math.round(i):i};return{reach:n("reach",1,!0),width:n("width",8,!0),noise:n("noise",0,!1),change:n("change",0,!1),frames:n("frames",1,!0),usual:n("usual",0,!1)}}export function frameChange(t,n,a){if(t.width!==n.width||t.height!==n.height)return{share:1,mean:255};const d=t.width*t.height;if(d===0)return{share:0,mean:0};let r=0,i=0;for(let w=0;w<d*4;w+=4){let x=0;for(let c=0;c<3;c++)x=Math.max(x,Math.abs((t.data[w+c]??0)-(n.data[w+c]??0)));i+=x,x>a&&r++}return{share:r/d,mean:i/d}}export function foreignPixels(t,n,a,d){if(t.width!==n.width||a.width!==n.width||t.height!==n.height||a.height!==n.height)return{share:1,mean:255};const r=n.width*n.height;if(r===0)return{share:0,mean:0};let i=0,w=0;for(let x=0;x<r*4;x+=4){let c=0;for(let e=0;e<3;e++){const l=t.data[x+e]??0,o=a.data[x+e]??0,u=n.data[x+e]??0;c=Math.max(c,Math.min(l,o)-u,u-Math.max(l,o))}w+=c,c>d&&i++}return{share:i/r,mean:w/r}}export async function flashRuns(t,n,a,d,r,i=!1,w=[]){const x=new Set(w),c=async(o,u)=>{if(x.has(u+1)&&o-2>=0){const s=await a(o-1);return{side:"before",step:frameChange(s,await a(o),r.noise),usual:frameChange(await a(o-2),s,r.noise)}}if(x.has(o)&&u+2<=n){const s=await a(u+1);return{side:"after",step:frameChange(await a(u),s,r.noise),usual:frameChange(s,await a(u+2),r.noise)}}},e=[],l=new Set;for(const o of t){let u=!1;for(let s=1;s<=r.frames&&!(u&&!i);s++){const h=o+s-1,F=o-1,f=h+1;if(F<0||f>n)continue;const g=`${String(o)}-${String(h)}`;if(l.has(g))continue;l.add(g);let m=!1;for(let S=o;S<=h&&!m;S++)m=await d(S,F)||await d(S,f);if(m&&!i)continue;const M=await a(F),p=await a(f);let v={share:1/0,mean:1/0};for(let S=o;S<=h;S++){const N=m?{share:0,mean:0}:foreignPixels(M,await a(S),p,r.noise);N.share<v.share&&(v=N)}if(!i&&v.share<r.change-1e-12)continue;const b=await c(o,h);!i&&b&&b.step.share<=r.usual*b.usual.share+1e-12||(u=!0,e.push({from:o,to:h,foreign:v,before:frameChange(M,await a(o),r.noise),after:frameChange(await a(h),p,r.noise),across:frameChange(M,p,r.noise),...b?{own:b}:{}}))}}return e}
2
+ export const SEAM_DEFAULTS={frames:3,rest:15,top:3};export function seamOptions(t={}){const s=(o,h,M)=>o!==void 0&&Number.isFinite(o)&&o>=h?Math.round(o):M;return{frames:s(t.frames,2,SEAM_DEFAULTS.frames),rest:t.rest!==void 0&&Number.isFinite(t.rest)&&t.rest>=0?t.rest:SEAM_DEFAULTS.rest,top:s(t.top,0,SEAM_DEFAULTS.top)}}const F=t=>Math.round(t*10)/10,x=t=>Math.round(t*1e3)/1e3,N=t=>[t[0]+t[2]/2,t[1]+t[3]/2],$=t=>Math.sqrt(Math.max(0,t[2])*Math.max(0,t[3]));export function angleOf(t,s){return F(Math.atan2(s,t)*180/Math.PI)}export function turnOf(t,s){let o=(s-t)%360;return o>180&&(o-=360),o<=-180&&(o+=360),F(o)}const k=(t,s,o)=>{const h=Math.hypot(t,s);return{vx:F(t),vy:F(s),speed:F(h),...h>=o&&h>0?{angle:angleOf(t,s)}:{}}};export function seamSide(t,s,o,h,M,y){const p=new Map(o.map(n=>[x(n),n])),g=[];for(const n of t){if(n.part!==s)continue;const a=n.samples.filter(w=>p.has(x(w.t))&&w.box!==void 0&&w.opacity>.05),S=h==="last"?a.at(-1):a[0];if(!S?.box)continue;const r=a[0],i=a.at(-1);let f=0,m=0,v=0,O=0,b=0;const z=r?p.get(x(r.t))??r.t:0,E=i?p.get(x(i.t))??i.t:0;if(r?.box&&i?.box&&E>z){const w=E-z,[D,L]=N(r.box),[P,T]=N(i.box);f=(P-D)/w,m=(T-L)/w;const I=$(r.box);b=($(i.box)-I)/w,v=I>0?b/I:0,O=(i.opacity-r.opacity)/w}const C=k(f,m,y.rest),A=S.box;g.push({layer:n.layer,what:n.what,selector:n.selector,...n.name===void 0?{}:{name:n.name},box:A,area:x(A[2]*A[3]/Math.max(1,M[0]*M[1])),...C,scale:x(v),fade:x(O),moving:Math.hypot(f,m)>=y.rest||Math.abs(b)>=y.rest})}const l=n=>Math.max(0,n.box[2]*n.box[3]),e=g.filter(n=>n.moving),d=[...e.sort((n,a)=>l(a)-l(n)),...g.filter(n=>!n.moving).sort((n,a)=>l(a)-l(n))],c=e.reduce((n,a)=>n+l(a),0),u=c>0?{...k(e.reduce((n,a)=>n+a.vx*l(a),0)/c,e.reduce((n,a)=>n+a.vy*l(a),0)/c,y.rest),scale:x(e.reduce((n,a)=>n+a.scale*l(a),0)/c)}:void 0;return{part:s,from:x(o[0]??0),to:x(o.at(-1)??0),things:g.length,moving:e.length,list:y.top===0?d:d.filter(n=>n.moving).slice(0,y.top),...u?{overall:u}:{}}}export function changeOf(t,s){return{...t?.angle!==void 0&&s?.angle!==void 0?{turn:turnOf(t.angle,s.angle)}:{},speed:[t?.speed??0,s?.speed??0]}}export function seamCarriers(t,s,o){const h=e=>!o||(e[0]??0)<o[0]&&(e[0]??0)+(e[2]??0)>0&&(e[1]??0)<o[1]&&(e[1]??0)+(e[3]??0)>0,M=e=>e.name??(e.what.startsWith("text ")?e.what:void 0),y=e=>{const d=new Map;for(const c of e){const u=M(c);u!==void 0&&d.set(u,d.has(u)?null:c)}return d},p=y(t),g=y(s),l=[];for(const[e,d]of p){const c=g.get(e);if(!d||!c||!h(d.box)||!h(c.box))continue;const[u,n]=N(d.box),[a,S]=N(c.box),r=$(d.box);l.push({name:e,before:d.box,after:c.box,distance:F(Math.hypot(a-u,S-n)),size:x(r>0?$(c.box)/r:0),speed:[d.speed,c.speed]})}return l}const q=t=>{const s=new Float32Array(t.width*t.height);for(let o=0;o<s.length;o++)s[o]=.2126*(t.data[o*4]??0)+.7152*(t.data[o*4+1]??0)+.0722*(t.data[o*4+2]??0);return s};export function pictureShift(t,s,o){const h=Math.min(t.width,s.width),M=Math.min(t.height,s.height),y=q(t),p=q(s),g=(r,i)=>{let f=0,m=0;for(let v=Math.max(0,i);v<Math.min(M,M+i);v++){const O=v-i;for(let b=Math.max(0,r);b<Math.min(h,h+r);b++)f+=Math.abs((p[v*s.width+b]??0)-(y[O*t.width+(b-r)]??0)),m++}return m>=h*M/2?f/m:1/0},l=g(0,0);let e={dx:0,dy:0,c:l};const d=new Map,c=Math.max(0,Math.round(o));for(let r=-c;r<=c;r++)for(let i=-c;i<=c;i++){const f=g(i,r);d.set(`${String(i)},${String(r)}`,f),(f<e.c-1e-9||Math.abs(f-e.c)<=1e-9&&Math.hypot(i,r)<Math.hypot(e.dx,e.dy))&&(e={dx:i,dy:r,c:f})}const u=(r,i)=>d.get(`${String(r)},${String(i)}`)??1/0,n=(r,i,f)=>{if(!Number.isFinite(r)||!Number.isFinite(f))return 0;const m=r-2*i+f;return m>1e-9?Math.max(-.5,Math.min(.5,(r-f)/(2*m))):0},a=n(u(e.dx-1,e.dy),e.c,u(e.dx+1,e.dy)),S=n(u(e.dx,e.dy-1),e.c,u(e.dx,e.dy+1));return{dx:e.c<l-1e-9?e.dx+a:0,dy:e.c<l-1e-9?e.dy+S:0,error:x(e.c),still:x(l)}}export function pictureMotion(t,s,o,h,M){if(t.length<2)return;let y=0,p=0,g=0,l=0,e=0;for(let d=1;d<t.length;d++){const c=t[d-1],u=t[d];if(!c||!u)continue;const n=pictureShift(c,u,h);y+=n.dx,p+=n.dy,g+=n.error,l+=n.still,e++}if(e!==0)return{...k(y/e*o*s,p/e*o*s,M),match:x(g/e),still:x(l/e)}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-core",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
2
  import{INTERPRETATION_FILE as g}from"@allyhub/formats";import{INTERPRETATION_SHAPE as j}from"@allyhub/video-measure";const p=(e,s)=>`${String(e)} ${s}${e===1?"":"s"}`,h=e=>e.toFixed(2),f=e=>`${e>=0?"+":""}${String(Math.round(e*100))}%`,l=e=>e>=0?`+${e.toFixed(2)}`:`−${(-e).toFixed(2)}`,$=(e,s=2)=>e===null?"—":String(Math.round(e*10**s)/10**s),S=(e,s=70)=>`“${e.slice(0,s)}${e.length>s?"…":""}”`,T=12;function x(e){if(!e)return"";const s=e.bitrate===void 0?"":` at ${String(Math.round(e.bitrate/1e3))} kbps`;return` · ${e.codec??""}${s}`}function P(e){const s=t=>`median ${String(t.median)} dBFS (${String(t.p10)} to ${String(t.p90)})`;return` sound: ${e.words?`under the words ${s(e.words)}`:`whole ${s(e.whole)}`}${e.between?`; between them ${String(e.between.seconds)} s, ${s(e.between)}, ${String(Math.round(e.between.voicedShare*100))}% voiced, ${String(e.between.onsetsPerMinute)} onsets/min`:""}; floor ${String(e.floor)} dBFS`}function E(e){const s=e.motion;return` picture: luma ${$(e.luma.p1,1)}/${$(e.luma.p50,1)}/${$(e.luma.p99,1)} (1st/50th/99th), at black ${$(e.blackShare,3)}, grain ${$(e.noise)}, sharpness ${$(e.sharpness)}, saturation ${$(e.saturation,3)}, warmth ${$(e.warmth,3)}; camera speed ${$(s.speed.p50,4)} widths/s, shake ${$(s.shake.p50,5)} widths, still ${$(s.stillShare,3)}`}function F(e){const s=n=>e.recording.spectrum.find(a=>a.hz===n)?.db,t=e.bandwidth.reach.map(n=>`−${String(n.drop)} dB at ${n.hz===null?"—":`${String(n.hz)} Hz`}`).join(", ");return` loudness: ${$(e.loudness.integrated,1)} LUFS, range ${$(e.loudness.range,1)} LU, true peak ${$(e.loudness.truePeak,1)} dBTP; bands ${[125,500,2e3,8e3].map(n=>`${String(n)} ${String(s(n)??"—")}`).join(", ")} dB against 1 kHz; reach ${t}`}export function referenceText(e,s){const t=e.reference,n=t.pacing,a=t.shots,c=e.sections,m=Math.max(4,...c.sections.map(o=>o.name.length)),u=[s(`${e.dir}/reference.json`),` ${h(t.duration)} s · ${String(t.width)}×${String(t.height)} · ${String(t.fps)} fps${x(t.encoding)} · ${t.wordsMissing?"words missing":p(t.wordCount,"word")} · ${p(a.cuts.length,"cut")} (${String(a.weak.length)} weak; a cut scores ${String(a.threshold)} or more${a.candidates?`, all ${String(a.candidates.length)} peaks in shots.candidates`:""})`,...t.wordsMissing?[` words: not heard (${t.wordsMissing.message}${t.wordsMissing.hint===void 0?"":` ${t.wordsMissing.hint}`}); ${t.wordsMissing.instead}`]:t.sound===void 0?[" speech: none (no sound)"]:[` speech: ${p(t.speech.sentences.length,"sentence")}, ${p(t.speech.pauses.length,"pause")} of ${String(t.speech.pause)} s or more`],t.textMissing?` on-screen text: not read (${t.textMissing.message}${t.textMissing.hint===void 0?"":` ${t.textMissing.hint}`}); ${t.textMissing.instead}`:` on-screen text: ${p(t.text.length,"line")} read in ${p(t.ocr.frames,"frame")}${t.ocr.unread?`; ${p(t.ocr.unread,"frame")} not read (ocr.unread)`:""}`,...t.sound?[P(t.sound)]:[],` pace: ${String(n.cutsPerMinute)} cuts/min, median shot ${h(n.medianShot)} s, ${String(n.wordsPerMinute)} words/min${n.timeToFirstWord===void 0?"":`, first word at ${h(n.timeToFirstWord)} s`}, text on screen ${String(Math.round(n.textShare*100))}%${n.tempo?`, tempo ${String(n.tempo.bpm)} BPM (confidence ${$(n.tempo.confidence)})`:""}`,E(t.picture),...t.audio?[F(t.audio)]:[],"",c.from==="interpretation"?` Sections (${g}):`:" Neutral split, mechanics only (its rule is segments.rule in reference.json):",...c.sections.map(o=>` ${o.name.padEnd(m)} ${h(o.start).padStart(6)}–${h(o.end).padEnd(6)} ${p(o.cuts.length,"cut").padEnd(7)} ${String(o.wordsPerMinute).padStart(5)} words/min ${S(o.said)}`)];if(t.text.length>0){const o=[...t.text].sort((d,r)=>r.seconds-d.seconds||d.id-r.id).slice(0,T);u.push("",` Text on screen, the ${String(o.length)} longest on screen of ${String(t.text.length)} (#id; reference.json's text[] has every line with its box and spans):`,...o.map(d=>` #${String(d.id).padEnd(4)} ${S(d.text,40).padEnd(44)} y ${h(d.box[1]+d.box[3]/2)} height ${d.height.toFixed(3)} ${h(d.seconds).padStart(6)} s said ${String(Math.round(d.said*100))}%`))}u.push("",` sheets: ${e.sheets.map(s).join(", ")}`);const i=e.interpretation;return i&&"problems"in i?u.push(` ${s(i.file)} was not used: ${i.problems.join("; ")}. Fix it and run allyhub reference ${s(e.dir)} again.`):i||u.push(` No interpretation yet. Read the sheets and reference.json, then write ${s(`${e.dir}/${g}`)}: ${j}. allyhub reference ${s(e.dir)} then labels the sheets with its sections.`),u.join(`
3
- `)}export function compareText(e,s,t){const n=e.comparison,a=n.overall,c=a.diff,m=r=>`${r>=0?"+":""}${String(r)}`,u=(r,b,M,y)=>` ${r.padEnd(16)} ${b.padStart(9)} → ${M.padEnd(9)} ${y}`,i=r=>r===void 0?"none":`${h(r)} s`,o=n.matches.filter(r=>!r.withinTolerance),d=e.problems.filter(r=>r.level==="error");return[`${e.piece} (${e.format}) against ${s(e.reference)}`,n.sections.from==="interpretation"?`The reference's sections are ${g}'s.`:`The reference's sections are its neutral segments (s1, s2…: a mechanical split by pauses and cuts); write ${g} beside reference.json to compare against sections of your own.`,...e.ref.wordsMissing?["The reference's words are missing: its words/min and first word read as none."]:[],n.by==="time"?`Compared by time${n.byWhy===void 0?"":` (${n.byWhy}; --by parts tries anyway)`}: each section against the same seconds of the piece, named by the parts they span.`:"Compared by parts: the piece's parts aligned to the sections (--by time for the same seconds of each).",`The piece measured from its code: ${String(n.places.filter(r=>r.cut).length)} of the ${String(n.places.length)} places its picture may cut are cuts at the reference's threshold (places in --json).`,"Per section, reference → piece (piece − reference):",...n.matches.map(r=>` ${r.ref.names.join("+").padEnd(14)} ${h(r.ref.dur).padStart(6)} s → ${r.ours.keys.join("+").padEnd(16)} ${h(r.ours.dur).padStart(6)} s ${l(r.diff.seconds)} s (${f(r.diff.share)}) cuts/min ${String(r.ref.cutsPerMinute)}→${String(r.ours.cutsPerMinute)} words/min ${String(r.ref.wordsPerMinute)}→${String(r.ours.wordsPerMinute)} text ${h(r.ref.textSeconds)}→${h(r.ours.textSeconds)} s`),"Overall:",u("duration",`${h(a.reference.duration)} s`,`${h(a.ours.duration)} s`,`${l(c.seconds)} s (${f(c.share)})`),u("cuts/min",String(a.reference.cutsPerMinute),String(a.ours.cutsPerMinute),m(c.cutsPerMinute)),u("words/min",String(a.reference.wordsPerMinute),String(a.ours.wordsPerMinute),m(c.wordsPerMinute)),u("first word",i(a.reference.timeToFirstWord),i(a.ours.timeToFirstWord),c.timeToFirstWord===void 0?"":`${l(c.timeToFirstWord)} s`),u("text on screen",`${String(Math.round(a.reference.textShare*100))}%`,`${String(Math.round(a.ours.textShare*100))}%`,`${m(Math.round(c.textShare*100))} points`),"",n.summary.meanDurationDiff===void 0?"No section matched.":`At ±${String(Math.round(n.summary.tolerance*100))}%: ${String(n.summary.sectionsWithin)} of ${String(n.summary.sections)} reference sections within, mean |duration difference| ${String(Math.round(n.summary.meanDurationDiff*100))}%${o.length?`; outside: ${o.map(r=>r.ref.names.join("+")).join(", ")}`:""}.`,` sheet: ${s(e.sheet)}`,...d.length>0?["Must fix, to measure every number:",...t(d)]:[]].join(`
3
+ `)}export function compareText(e,s,t){const n=e.comparison,a=n.overall,c=a.diff,m=r=>`${r>=0?"+":""}${String(r)}`,u=(r,b,M,y)=>` ${r.padEnd(16)} ${b.padStart(9)} → ${M.padEnd(9)} ${y}`,i=r=>r===void 0?"none":`${h(r)} s`,o=n.matches.filter(r=>!r.withinTolerance),d=e.problems.filter(r=>r.level==="error");return[`${e.piece} (${e.format}) against ${s(e.reference)}`,n.sections.from==="interpretation"?`The reference's sections are ${g}'s.`:`The reference's sections are its neutral segments (s1, s2…: a mechanical split by pauses and cuts); write ${g} beside reference.json to compare against sections of your own.`,...e.ref.wordsMissing?["The reference's words are missing: its words/min and first word read as none."]:[],n.by==="time"?`Compared by time${n.byWhy===void 0?"":` (${n.byWhy}; --by parts tries anyway)`}: each section against the same seconds of the piece, named by the parts they span.`:"Compared by parts: the piece's parts aligned to the sections (--by time for the same seconds of each).",`The piece measured from its code: ${String(n.places.filter(r=>r.cut).length)} of the ${String(n.places.length)} places its picture may cut are cuts at the reference's threshold (places in --json).`,"Per section, reference → piece (piece − reference):",...n.matches.map(r=>` ${r.ref.names.join("+").padEnd(14)} ${h(r.ref.dur).padStart(6)} s → ${r.ours.keys.join("+").padEnd(16)} ${h(r.ours.dur).padStart(6)} s ${l(r.diff.seconds)} s (${f(r.diff.share)}) cuts/min ${String(r.ref.cutsPerMinute)}→${String(r.ours.cutsPerMinute)} words/min ${String(r.ref.wordsPerMinute)}→${String(r.ours.wordsPerMinute)} text ${h(r.ref.textSeconds)}→${h(r.ours.textSeconds)} s`),"Overall:",u("duration",`${h(a.reference.duration)} s`,`${h(a.ours.duration)} s`,`${l(c.seconds)} s (${f(c.share)})`),u("cuts/min",String(a.reference.cutsPerMinute),String(a.ours.cutsPerMinute),m(c.cutsPerMinute)),u("words/min",String(a.reference.wordsPerMinute),String(a.ours.wordsPerMinute),m(c.wordsPerMinute)),u("first word",i(a.reference.timeToFirstWord),i(a.ours.timeToFirstWord),c.timeToFirstWord===void 0?"":`${l(c.timeToFirstWord)} s`),u("text on screen",`${String(Math.round(a.reference.textShare*100))}%`,`${String(Math.round(a.ours.textShare*100))}%`,`${m(Math.round(c.textShare*100))} points`),"",n.summary.meanDurationDiff===void 0?"No section matched.":`At ±${String(Math.round(n.summary.tolerance*100))}%: ${String(n.summary.sectionsWithin)} of ${String(n.summary.sections)} reference sections within, mean |duration difference| ${String(Math.round(n.summary.meanDurationDiff*100))}%${o.length?`; outside: ${o.map(r=>r.ref.names.join("+")).join(", ")}`:""}.`,` sheet: ${s(e.sheet)}`,...d.length>0?["Errors, which stop numbers past them being measured:",...t(d)]:[]].join(`
4
4
  `)}const w=e=>e===void 0||!Number.isFinite(e)?"—":String(Number(e.toPrecision(4)));export function setText(e){const s=Object.entries(e.numbers),t=s.filter(([i])=>!i.includes("[")),n=Math.min(48,Math.max(8,...t.map(([i])=>i.length))),a=e.place!==void 0,c=[`${p(e.n,"reference")}${e.where?`, labels ${e.where.map(i=>`${i.key}=${i.value}`).join(", ")}`:""}${a?`; placed: ${e.place?.id??""}`:""}`,...(e.left??[]).map(i=>` left out: ${i.dir}: ${i.why}`),"",`${"number".padEnd(n)} ${"n".padStart(4)} ${["p10","p25","p50","p75","p90"].map(i=>i.padStart(9)).join(" ")}${a?` ${"value".padStart(9)} pct`:""}`,...t.map(([i,o])=>`${(i.length>n?`…${i.slice(i.length-n+1)}`:i).padEnd(n)} ${String(o.n).padStart(4)} ${[o.p10,o.p25,o.p50,o.p75,o.p90].map(r=>w(r).padStart(9)).join(" ")}${a?` ${w(o.value).padStart(9)} ${o.percentile===void 0?" —":String(Math.round(o.percentile)).padStart(3)}`:""}`)];t.length<s.length&&c.push(` and ${String(s.length-t.length)} numbers by bin (spectra, reaches, sharpness by speed, grain by light) in --json`);const m=Object.entries(e.labels);m.length>0&&c.push("",`Labels (${g}), each value's share:`,...m.map(([i,o])=>` ${i}: ${Object.entries(o).map(([d,r])=>`${d} ${String(Math.round(r*100))}%`).join(", ")}`));const u=Object.entries(e.measuredWith).filter(([,i])=>Object.keys(i).length>1);return u.length>0&&c.push("","Measured with different parameters:",...u.map(([i,o])=>` ${i}: ${Object.entries(o).map(([d,r])=>`${d} (${String(r)})`).join(", ")}`)),c.join(`
5
5
  `)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{contrast as o}from"./contrast.js";import{fidelity as t}from"./fidelity.js";import{flash as m,seams as i}from"./joins.js";import{loop as r,motion as f,still as e}from"./motion.js";import{timeline as l}from"./timeline.js";const p={timeline:l,motion:f,loop:r,still:e,contrast:o,seams:i,flash:m,fidelity:t};export default p;
2
+ import{contrast as o}from"./contrast.js";import{fidelity as m}from"./fidelity.js";import{seams as r}from"./joins.js";import{loop as t}from"./loop.js";import{timeline as i}from"./timeline.js";const e={timeline:i,loop:t,contrast:o,seams:r,fidelity:m};export default e;
@@ -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{STRETCH as n,VERSION_FIELDS as m,allFindings as c,defineView as f}from"@allyhub/build";import{SEAM_DEFAULTS as v}from"@allyhub/video-core";import{cutSeams as y,flashFrames as S,stretchOf as u}from"@allyhub/video-measure";import{filmOf as h,looking as p,mustBeVideo as d}from"./common.js";export const seams=f({input:o.strictObject({...m,...n,all:c(`every thing at each join (without it, the ${String(v.top)} largest each side)`)}),positional:["item"],examples:["allyhub inspect seams launch/film --part hook"],async run(e,i){const r=await i.version(e,"check",async s=>{const t=h(s);d(t,"it has no joins"),await p(i,t,e);const{from:a,to:l}=u(t.timeline,e);return y(t.version,e.all?{top:0}:{},{picture:!0,from:a,to:l})});return i.measured(r.result,r,{all:e.all})}}),flash=f({input:o.strictObject({...m,...n,all:c("every frame a flash is looked for in")}),positional:["item"],examples:["allyhub inspect flash launch/film --from 2 --to 6"],async run(e,i){const r=await i.version(e,"check",async s=>{const t=h(s);d(t,"a page has no frames either side"),await p(i,t,e);const{from:a,last:l}=u(t.timeline,e);return S(t.version,{},{from:a,to:l,all:e.all})});return i.measured(r.result,r,{all:e.all})}});
2
+ import{z as a}from"zod";import{STRETCH as l,VERSION_FIELDS as m,allFindings as c,defineView as p}from"@allyhub/build";import{SEAM_DEFAULTS as u}from"@allyhub/video-core";import{cutSeams as f,stretchOf as h}from"@allyhub/video-measure";import{filmOf as S,looking as d,mustBeVideo as g}from"./common.js";export const seams=p({input:a.strictObject({...m,...l,all:c(`every thing at each join (without it, the ${String(u.top)} largest each side)`)}),positional:["item"],examples:["allyhub inspect seams launch/film --part hook"],async run(t,e){const o=await e.version(t,"check",async r=>{const i=S(r);g(i,"it has no joins"),await d(e,i,t);const{from:s,to:n}=h(i.timeline,t);return f(i.version,t.all?{top:0}:{},{picture:!0,from:s,to:n})});return e.measured(o.result,o,{all:t.all})}});
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as m}from"zod";import{VERSION_FIELDS as l,defineView as f}from"@allyhub/build";import{loopSeam as p}from"@allyhub/video-measure";import{filmOf as c,looking as g,mustBeVideo as u}from"./common.js";export const loop=f({input:m.strictObject(l),positional:["item"],examples:["allyhub inspect loop launch/film"],async run(a,e){const i=await e.version(a,"render",async o=>{const s=c(o);return u(s,"it has no loop"),await g(e,s),p(s.timeline,n=>s.still(n))}),t=i.result,r=o=>`mean ${String(o.mean)} of 255, largest ${String(o.max)}`;return{value:{loop:t,...e.pageJson(i)},text:[`Loop seam (${String(t.frames)} frames at ${String(t.fps)} fps): the last frame against the first differs by ${r(t.seam)}.`,` Two frames in a row, for scale: the first two ${r(t.first)}; the last two ${r(t.last)}.`,...e.pageLines(i)].join(`
3
+ `)}}});
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-extension",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tools": {
@@ -265,18 +265,10 @@
265
265
  "kind": "flat-frames",
266
266
  "about": "Runs of nearly flat frames unlike the picture around them"
267
267
  },
268
- {
269
- "kind": "still-picture",
270
- "about": "Stretches where the picture holds: how long, and how much changed in them"
271
- },
272
268
  {
273
269
  "kind": "cut-seam",
274
270
  "about": "How things move either side of each join: direction, speed and the change across; things named alike on both sides"
275
271
  },
276
- {
277
- "kind": "flash",
278
- "about": "Frames unlike both the frame before and the frame after: a flash, a blank frame, a layer for one frame"
279
- },
280
272
  {
281
273
  "kind": "music-length",
282
274
  "about": "Music length against video length"
@@ -312,24 +304,14 @@
312
304
  "summary": "One version's timeline, drawn nowhere: each part's stretch, layers and their stacking, speech, anchors, room tone, transitions, sound effects, music, generated media",
313
305
  "module": "./dist/inspect/index.js"
314
306
  },
315
- {
316
- "name": "motion",
317
- "summary": "Follow everything on screen frame by frame and list each thing's largest step, a move or a fade",
318
- "module": "./dist/inspect/index.js"
319
- },
320
307
  {
321
308
  "name": "loop",
322
309
  "summary": "A video's last frame against its first, and two frames in a row at each end for scale",
323
310
  "module": "./dist/inspect/index.js"
324
311
  },
325
- {
326
- "name": "still",
327
- "summary": "The stretches where a video's picture holds, measured now",
328
- "module": "./dist/inspect/index.js"
329
- },
330
312
  {
331
313
  "name": "contrast",
332
- "summary": "The text against the pixels behind its glyphs now, as WCAG contrast ratios (this command is where contrast is measured)",
314
+ "summary": "The text against the pixels behind its glyphs now, as WCAG contrast ratios",
333
315
  "module": "./dist/inspect/index.js"
334
316
  },
335
317
  {
@@ -337,11 +319,6 @@
337
319
  "summary": "A video's joins measured now, the picture's own shift too",
338
320
  "module": "./dist/inspect/index.js"
339
321
  },
340
- {
341
- "name": "flash",
342
- "summary": "Every frame of a video against the frames beside it, now",
343
- "module": "./dist/inspect/index.js"
344
- },
345
322
  {
346
323
  "name": "fidelity",
347
324
  "summary": "A scenery's screens drawn in the world against their own elements, now; each comparison side by side in .allyhub/work/fidelity/",
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{comboKey as M}from"@allyhub/piece";import{ffmpegOf as S,ffmpegRuns as A,postPlaces as C,postProblems as E}from"@allyhub/render";import{cutThroughout as L}from"@allyhub/video-core";import{matrixFacts as _,measuredFacts as O}from"./facts.js";import{flatFrames as R}from"./flat.js";import{generatedFact as $,mismatchFacts as H}from"./generated.js";import{StretchLoudness as D,estimatePlan as K,loadedPlan as T,planProblems as U,wholeOf as j}from"./plans.js";import{cutSeams as z,flashFrames as B}from"./seams.js";import{stillPicture as G}from"./still.js";const I=new Set(["text-time","words-on-screen","speech-on-screen","text-covered","flat-frames","still-picture"]);export const CUT_RECHECK={most:48,every:2};export async function recheckCuts(o,t,n,f){const g=L(t);if(g.length===0)return t;const F=CUT_RECHECK.every/n,y=new Set;for(const a of g){const i=f.find(s=>s.key===a.part);if(!i)continue;const p=t.moments.filter(s=>s.part===a.part).map(s=>s.t).sort((s,m)=>s-m),d=a.moments[0]??a.t,w=a.moments.at(-1)??a.t,h=Math.max(i.start,p.filter(s=>s<d).at(-1)??i.start),c=Math.min(i.end-1/n,p.find(s=>s>w)??i.end),e=Math.min(CUT_RECHECK.most,Math.floor((c-h)/F)+1),r=e>1?(c-h)/(e-1):0;for(let s=0;s<e;s++){const m=Math.round((h+r*s)*n)/n;p.includes(m)||y.add(m)}}if(y.size===0)return t;const b=await o.measure([...y].sort((a,i)=>a-i));return{...t,moments:[...t.moments,...b.moments].sort((a,i)=>a.t-i.t)}}export{offFrameProblems}from"@allyhub/image-measure/layout";import{offFrameProblems as Y}from"@allyhub/image-measure/layout";function q(o){const t=o.options,n=t.post,f=typeof n=="object"&&n!==null?n.filter:void 0;return{transparent:t.transparent===!0,deliverable:t.deliverable!==!1,...typeof t.maxDuration=="number"?{maxDuration:t.maxDuration}:{},...typeof f=="string"?{post:f}:{}}}async function J(o){let t;try{t=await S(o===void 0?{}:{ffmpeg:o})}catch(n){return{missing:`the pinned ffmpeg could not be had: ${(n instanceof Error?n.message:String(n)).split(`
3
- `)[0]??""}`}}return await A(t)?{ffmpeg:t}:{missing:`${t} does not run`}}export async function checkFilm(o){const{piece:t,prepared:n}=o,f=q(t),g=t.kind,F=t.format;let y;const b=()=>y??=J(o.ffmpeg),a=[],i=[..._(t)],p=await o.versions({layout:async(e,r,s)=>{const m=e.timeline,l=await s.layout();r.problems.push(...Y(await o.time("recheck cut text",()=>recheckCuts(e,l,m.fps,m.parts)),s.target));const x=await b();r.facts.push(...await o.time("layout facts",()=>O(l,m,s.target,{root:n.root,media:n.media,ffmpeg:"ffmpeg"in x?x.ffmpeg:"ffmpeg"})))},timing:async(e,r)=>{o.facts&&(f.transparent||r.facts.push(...await o.time("flat frames",()=>R(e))),r.facts.push(...await o.time("still picture",()=>G(e))),r.facts.push(...await o.time("cut seams",()=>z(e))),f.transparent||r.facts.push(...await o.time("flash",()=>B(e))))},...f.deliverable?{}:{keep:e=>!I.has(e.kind)}});a.push(...p.problems),i.push(...p.facts);const d=p.loaded,w=C(f.post,d.map(e=>e.timeline));if(w.length>0){const e=await b();"ffmpeg"in e&&a.push(...await o.time("post chains",()=>E(w,{piece:t.id,output:g},e.ffmpeg)))}const h=[];let c;for(const{combo:e,id:r}of p.combos){const s=M(e),m=d.find(u=>M(u.combo)===s),l=m?T(m,r):K(t,e,r,g,F,d);if(!l)continue;if(h.push(j(l,m?.timeline)),t.matrix&&c===void 0){const u=await b();if("ffmpeg"in u){const v=new D(n.root,u.ffmpeg);await v.open(),c=v}else c={missing:"ffmpeg",why:`${u.missing} (set ALLYHUB_FFMPEG to an ffmpeg, or let the runtime manager fetch its pinned one)`}}const x=await o.time("plans (loudness, music)",()=>U(l,{...f.maxDuration===void 0?{}:{maxDuration:f.maxDuration},fps:m?.timeline.fps??d[0]?.timeline.fps??30,media:n.media,local:u=>o.mediaPath(u),...t.matrix&&c?{loudness:c}:{}}));a.push(...x.problems),i.push(...x.facts);const P=$(l,n.media);P&&i.push(P)}return i.push(...H({piece:t.id},p.media,n.media)),c instanceof D&&await c.save(),{problems:a,facts:i,wholes:h}}
2
+ import{comboKey as M}from"@allyhub/piece";import{ffmpegOf as S,ffmpegRuns as A,postPlaces as C,postProblems as E}from"@allyhub/render";import{cutThroughout as L}from"@allyhub/video-core";import{matrixFacts as _,measuredFacts as O}from"./facts.js";import{flatFrames as R}from"./flat.js";import{generatedFact as $,mismatchFacts as H}from"./generated.js";import{StretchLoudness as D,estimatePlan as K,loadedPlan as T,planProblems as U,wholeOf as j}from"./plans.js";import{cutSeams as z}from"./seams.js";const B=new Set(["text-time","words-on-screen","speech-on-screen","text-covered","flat-frames"]);export const CUT_RECHECK={most:48,every:2};export async function recheckCuts(n,t,s,r){const g=L(t);if(g.length===0)return t;const F=CUT_RECHECK.every/s,y=new Set;for(const a of g){const i=r.find(e=>e.key===a.part);if(!i)continue;const p=t.moments.filter(e=>e.part===a.part).map(e=>e.t).sort((e,m)=>e-m),d=a.moments[0]??a.t,w=a.moments.at(-1)??a.t,h=Math.max(i.start,p.filter(e=>e<d).at(-1)??i.start),f=Math.min(i.end-1/s,p.find(e=>e>w)??i.end),o=Math.min(CUT_RECHECK.most,Math.floor((f-h)/F)+1),c=o>1?(f-h)/(o-1):0;for(let e=0;e<o;e++){const m=Math.round((h+c*e)*s)/s;p.includes(m)||y.add(m)}}if(y.size===0)return t;const b=await n.measure([...y].sort((a,i)=>a-i));return{...t,moments:[...t.moments,...b.moments].sort((a,i)=>a.t-i.t)}}export{offFrameProblems}from"@allyhub/image-measure/layout";import{offFrameProblems as G}from"@allyhub/image-measure/layout";function I(n){const t=n.options,s=t.post,r=typeof s=="object"&&s!==null?s.filter:void 0;return{transparent:t.transparent===!0,deliverable:t.deliverable!==!1,...typeof t.maxDuration=="number"?{maxDuration:t.maxDuration}:{},...typeof r=="string"?{post:r}:{}}}async function Y(n){let t;try{t=await S(n===void 0?{}:{ffmpeg:n})}catch(s){return{missing:`the pinned ffmpeg could not be had: ${(s instanceof Error?s.message:String(s)).split(`
3
+ `)[0]??""}`}}return await A(t)?{ffmpeg:t}:{missing:`${t} does not run`}}export async function checkFilm(n){const{piece:t,prepared:s}=n,r=I(t),g=t.kind,F=t.format;let y;const b=()=>y??=Y(n.ffmpeg),a=[],i=[..._(t)],p=await n.versions({layout:async(o,c,e)=>{const m=o.timeline,l=await e.layout();c.problems.push(...G(await n.time("recheck cut text",()=>recheckCuts(o,l,m.fps,m.parts)),e.target));const x=await b();c.facts.push(...await n.time("layout facts",()=>O(l,m,e.target,{root:s.root,media:s.media,ffmpeg:"ffmpeg"in x?x.ffmpeg:"ffmpeg"})))},timing:async(o,c)=>{n.facts&&(r.transparent||c.facts.push(...await n.time("flat frames",()=>R(o))),c.facts.push(...await n.time("cut seams",()=>z(o))))},...r.deliverable?{}:{keep:o=>!B.has(o.kind)}});a.push(...p.problems),i.push(...p.facts);const d=p.loaded,w=C(r.post,d.map(o=>o.timeline));if(w.length>0){const o=await b();"ffmpeg"in o&&a.push(...await n.time("post chains",()=>E(w,{piece:t.id,output:g},o.ffmpeg)))}const h=[];let f;for(const{combo:o,id:c}of p.combos){const e=M(o),m=d.find(u=>M(u.combo)===e),l=m?T(m,c):K(t,o,c,g,F,d);if(!l)continue;if(h.push(j(l,m?.timeline)),t.matrix&&f===void 0){const u=await b();if("ffmpeg"in u){const P=new D(s.root,u.ffmpeg);await P.open(),f=P}else f={missing:"ffmpeg",why:`${u.missing} (set ALLYHUB_FFMPEG to an ffmpeg, or let the runtime manager fetch its pinned one)`}}const x=await n.time("plans (loudness, music)",()=>U(l,{...r.maxDuration===void 0?{}:{maxDuration:r.maxDuration},fps:m?.timeline.fps??d[0]?.timeline.fps??30,media:s.media,local:u=>n.mediaPath(u),...t.matrix&&f?{loudness:f}:{}}));a.push(...x.problems),i.push(...x.facts);const v=$(l,s.media);v&&i.push(v)}return i.push(...H({piece:t.id},p.media,s.media)),f instanceof D&&await f.save(),{problems:a,facts:i,wholes:h}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{OpenedFilm,filmTimes,lookOf,partOf,projectMedia,versionSound}from"./version.js";export{graphicsPage}from"./graphics.js";export{generatedReads,momentsIn,stretchOf}from"./stretch.js";export{projectSays}from"./says.js";export{CUT_RECHECK,checkFilm,offFrameProblems,recheckCuts}from"./check.js";export{StretchLoudness,estimatePlan,loadedPlan,planProblems}from"./plans.js";export{generatedFact,generatedPagedFact,mismatchFacts,secondsOf}from"./generated.js";export{Mattes,matrixFacts,matteOutline,matteRows,measuredFacts,personShare}from"./facts.js";export{FLAT_DEFAULTS,THUMB_WIDTH,flatFrames,flatRuns,pictureOf,probeFrames}from"./flat.js";export{STILL_DEFAULTS,pictureChange,readThumb,stillFrames,stillOptions,stillPicture,stillRuns}from"./still.js";export{cutSeams,flashFrames,joinsOf}from"./seams.js";export{filmWords,listCuts,partFolder,stripFrames,wordsAround}from"./cuts.js";export{CUT_REVIEW_DEFAULTS,CUT_SHEET_WIDTH,cutLine,cutSheetHtml,dbText,reviewCuts,silenceText,speechEdgeText}from"./cut-sheet.js";export{fileSoundReport,soundReport}from"./sound-report.js";export{ONSET_TOLERANCE_MS,landings,recordingDifference,speechStretches,voiceStep}from"./sound-measures.js";export{fileRecording,recordingReport,versionRecording}from"./recording-report.js";export{versionVoice}from"./version-voice.js";export{frameChange,loopSeam}from"./loop.js";export{INTERPRETATION_SHAPE,ReferenceError,badInterpretation,makeReference,readInterpretation,readReference,referenceDir,referenceId}from"./reference/folder.js";export{WORDS_MISSING_INSTEAD,measureVideo,referenceJson}from"./reference/video.js";export{SEGMENT_RULE,SPLIT_DEFAULTS,boundaryCandidates,gaps,measurePacing,numbersOf,segments,sentences}from"./reference/sections.js";export{TEXT_DEFAULTS,linesIn,observeText,textSeconds}from"./reference/text.js";export{labelsOf,referenceSections}from"./reference/interpret.js";export{TIMING_TOLERANCE,alignSections,compareSections}from"./reference/compare.js";export{comparePiece,measurePiece}from"./reference/piece.js";export{labelShares,labelsMatch,percentileOf,quantileOf,referenceNumbers,referenceParameters,referenceSet,statOf}from"./reference/sets.js";export{makeWords}from"./words.js";
2
+ export{OpenedFilm,filmTimes,lookOf,partOf,projectMedia,versionSound}from"./version.js";export{graphicsPage}from"./graphics.js";export{generatedReads,momentsIn,stretchOf}from"./stretch.js";export{projectSays}from"./says.js";export{CUT_RECHECK,checkFilm,offFrameProblems,recheckCuts}from"./check.js";export{StretchLoudness,estimatePlan,loadedPlan,planProblems}from"./plans.js";export{generatedFact,generatedPagedFact,mismatchFacts,secondsOf}from"./generated.js";export{Mattes,matrixFacts,matteOutline,matteRows,measuredFacts,personShare}from"./facts.js";export{FLAT_DEFAULTS,THUMB_WIDTH,flatFrames,flatRuns,pictureOf,probeFrames}from"./flat.js";export{cutSeams,joinsOf}from"./seams.js";export{filmWords,listCuts,partFolder,stripFrames,wordsAround}from"./cuts.js";export{CUT_REVIEW_DEFAULTS,CUT_SHEET_WIDTH,cutLine,cutSheetHtml,dbText,reviewCuts,silenceText,speechEdgeText}from"./cut-sheet.js";export{fileSoundReport,soundReport}from"./sound-report.js";export{ONSET_TOLERANCE_MS,landings,recordingDifference,speechStretches,voiceStep}from"./sound-measures.js";export{fileRecording,recordingReport,versionRecording}from"./recording-report.js";export{versionVoice}from"./version-voice.js";export{frameChange,loopSeam}from"./loop.js";export{INTERPRETATION_SHAPE,ReferenceError,badInterpretation,makeReference,readInterpretation,readReference,referenceDir,referenceId}from"./reference/folder.js";export{WORDS_MISSING_INSTEAD,measureVideo,referenceJson}from"./reference/video.js";export{SEGMENT_RULE,SPLIT_DEFAULTS,boundaryCandidates,gaps,measurePacing,numbersOf,segments,sentences}from"./reference/sections.js";export{TEXT_DEFAULTS,linesIn,observeText,textSeconds}from"./reference/text.js";export{labelsOf,referenceSections}from"./reference/interpret.js";export{TIMING_TOLERANCE,alignSections,compareSections}from"./reference/compare.js";export{comparePiece,measurePiece}from"./reference/piece.js";export{labelShares,labelsMatch,percentileOf,quantileOf,referenceNumbers,referenceParameters,referenceSet,statOf}from"./reference/sets.js";export{makeWords}from"./words.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{changeOf as A,fact as z,flashOptions as J,flashRuns as K,pictureMotion as L,seamCarriers as N,seamOptions as Q,seamSide as S}from"@allyhub/video-core";import{readPng as T}from"@allyhub/render";const w=e=>Math.round(e*1e3)/1e3;export function joinsOf(e){const u=e.fps,c=[];for(let a=1;a<e.parts.length;a++){const s=e.parts[a-1],n=e.parts[a];if(!s||!n)continue;const p=Math.round(n.start*u),i=(e.transitions??[]).find(o=>o.part===n.key);c.push({from:s.key,to:n.key,at:p,before:i?Math.round(i.start*u):p,after:i?Math.round(i.end*u):p,first:Math.round(s.start*u),end:Math.round(n.end*u),...i?{transition:{type:i.type,start:w(i.start),end:w(i.end)}}:{}})}return c}const U=e=>{const{width:u,height:c,data:a}=T(e);return{width:u,height:c,data:a}};function D(e,u,c){const a=new Map,s=new Map,n=new Map,p=async o=>(a.has(o)||a.set(o,await e.sign(o/u)),a.get(o)),i=async o=>U(await e.thumb(o/u,c));return{sign:p,async same(o,M){const l=await p(o);return l!==void 0&&l===await p(M)},async picture(o){const M=n.get(o);if(M)return M;const l=await p(o),t=(l===void 0?void 0:s.get(l))??Promise.resolve(await i(o));return n.set(o,t),l!==void 0&&s.set(l,t),t}}}export async function cutSeams(e,u={},c={}){const a=e.timeline,s=Q(u),n=a.fps,p=s.frames,i=[a.width,a.height],o=c.width??160,M=c.picture?D(e,n,o):void 0,l=[];for(const r of joinsOf(a)){const t=r.at/n;if(c.from!==void 0&&t<c.from-1e-6||c.to!==void 0&&t>c.to+1e-6)continue;const m=Math.max(r.first,r.before-p),d=r.before-1,g=r.after,b=Math.min(r.end-1,r.after+p-1);if(d<m||b<g)continue;const y=(h,k)=>Array.from({length:k-h+1},(F,O)=>h+O),f=y(m,d),x=y(g,b),P=await e.tracks(m/n,d/n),B=await e.tracks(g/n,b/n),v=S(P,r.from,f.map(h=>h/n),"last",i,s),j=S(B,r.to,x.map(h=>h/n),"first",i,s);if(M){const h=a.width/o,k=async G=>{const q=[];for(const H of G)q.push(await M.picture(H));return L(q,n,h,8,s.rest)},F=await k(f),O=await k(x);F&&(v.picture=F),O&&(j.picture=O)}const C={...s,top:0},I=S(P,r.from,f.map(h=>h/n),"last",i,C).list,R=S(B,r.to,x.map(h=>h/n),"first",i,C).list,_=h=>h.find(k=>k.moving),E={at:w(t),before:v,after:j,...r.transition?{transition:r.transition}:{},change:{lead:A(_(I),_(R)),overall:A(v.overall,j.overall),...v.picture&&j.picture?{picture:A(v.picture,j.picture)}:{}},carriers:N(I,R,i),options:s};l.push(z("cut-seam",{piece:e.target.piece,output:e.target.output,combo:e.target.combo,format:e.target.format,part:r.to,t:w(t)},E))}return l}export async function flashFrames(e,u={},c={}){const a=e.timeline,s=J(u),n=a.fps,p=Math.max(0,Math.round(a.duration*n)-1),i=joinsOf(a),o=new Set;if(c.from!==void 0||c.to!==void 0){const t=Math.max(1,Math.ceil((c.from??0)*n-1e-6)),m=Math.min(p-1,Math.floor((c.to??1/0)*n+1e-6));for(let d=t;d<=m;d++)o.add(d)}else for(const t of i)for(const m of new Set([t.before,t.at,t.after]))for(let d=m-s.reach;d<m+s.reach;d++)for(let g=1;g<=s.frames;g++){const b=d-g+1;b>=1&&d<=p-1&&o.add(b)}const M=D(e,n,s.width),l=await K([...o].sort((t,m)=>t-m),p,t=>M.picture(t),(t,m)=>M.same(t,m),s,c.all===!0,i.map(t=>t.at)),r=t=>({share:Math.round(t.share*1e5)/1e5,mean:w(t.mean)});return l.map(t=>{const m=w(t.from/n),d=w((t.to+1)/n),g=a.parts.filter(f=>Math.round(f.start*n)<=t.to&&Math.round(f.end*n)>t.from).map(f=>f.key),b=i.map(f=>f.at).filter(f=>Math.abs(f-t.from)<=s.reach+s.frames).sort((f,x)=>Math.abs(f-t.from)-Math.abs(x-t.from))[0],y=(a.transitions??[]).find(f=>Math.round(f.start*n)<=t.to&&Math.round(f.end*n)>t.from);return z("flash",{piece:e.target.piece,output:e.target.output,combo:e.target.combo,format:e.target.format,t:m,...g[0]?{part:g[0]}:{}},{start:m,end:d,frames:t.to-t.from+1,parts:g,foreign:r(t.foreign),before:r(t.before),after:r(t.after),across:r(t.across),...t.own?{own:{side:t.own.side,step:r(t.own.step),usual:r(t.own.usual)}}:{},...b===void 0?{}:{join:w(b/n)},...y?{transition:{type:y.type,from:y.from,to:y.part}}:{},options:s})})}
2
+ import{changeOf as P,fact as I,pictureMotion as J,seamCarriers as K,seamOptions as L,seamSide as y}from"@allyhub/video-core";import{readPng as N}from"@allyhub/render";const b=t=>Math.round(t*1e3)/1e3;export function joinsOf(t){const f=t.fps,i=[];for(let r=1;r<t.parts.length;r++){const c=t.parts[r-1],n=t.parts[r];if(!c||!n)continue;const p=Math.round(n.start*f),s=(t.transitions??[]).find(e=>e.part===n.key);i.push({from:c.key,to:n.key,at:p,before:s?Math.round(s.start*f):p,after:s?Math.round(s.end*f):p,first:Math.round(c.start*f),end:Math.round(n.end*f),...s?{transition:{type:s.type,start:b(s.start),end:b(s.end)}}:{}})}return i}const Q=t=>{const{width:f,height:i,data:r}=N(t);return{width:f,height:i,data:r}};function R(t,f,i){const r=new Map,c=new Map,n=new Map,p=async e=>(r.has(e)||r.set(e,await t.sign(e/f)),r.get(e)),s=async e=>Q(await t.thumb(e/f,i));return{sign:p,async same(e,m){const u=await p(e);return u!==void 0&&u===await p(m)},async picture(e){const m=n.get(e);if(m)return m;const u=await p(e),d=(u===void 0?void 0:c.get(u))??Promise.resolve(await s(e));return n.set(e,d),u!==void 0&&c.set(u,d),d}}}export async function cutSeams(t,f={},i={}){const r=t.timeline,c=L(f),n=r.fps,p=c.frames,s=[r.width,r.height],e=i.width??160,m=i.picture?R(t,n,e):void 0,u=[];for(const a of joinsOf(r)){const d=a.at/n;if(i.from!==void 0&&d<i.from-1e-6||i.to!==void 0&&d>i.to+1e-6)continue;const M=Math.max(a.first,a.before-p),k=a.before-1,v=a.after,x=Math.min(a.end-1,a.after+p-1);if(k<M||x<v)continue;const S=(o,h)=>Array.from({length:h-o+1},(F,w)=>o+w),O=S(M,k),A=S(v,x),j=await t.tracks(M/n,k/n),B=await t.tracks(v/n,x/n),g=y(j,a.from,O.map(o=>o/n),"last",s,c),l=y(B,a.to,A.map(o=>o/n),"first",s,c);if(m){const o=r.width/e,h=async G=>{const D=[];for(const H of G)D.push(await m.picture(H));return J(D,n,o,8,c.rest)},F=await h(O),w=await h(A);F&&(g.picture=F),w&&(l.picture=w)}const C={...c,top:0},_=y(j,a.from,O.map(o=>o/n),"last",s,C).list,q=y(B,a.to,A.map(o=>o/n),"first",s,C).list,z=o=>o.find(h=>h.moving),E={at:b(d),before:g,after:l,...a.transition?{transition:a.transition}:{},change:{lead:P(z(_),z(q)),overall:P(g.overall,l.overall),...g.picture&&l.picture?{picture:P(g.picture,l.picture)}:{}},carriers:K(_,q,s),options:c};u.push(I("cut-seam",{piece:t.target.piece,output:t.target.output,combo:t.target.combo,format:t.target.format,part:a.to,t:b(d)},E))}return u}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{join as l}from"node:path";import{ProjectError as d}from"@allyhub/build";import{parseAnchorRef as w}from"@allyhub/piece";import{finalStill as c,soundOf as $}from"@allyhub/render";import{webp as y}from"@allyhub/image-render/webp";import{graphicsPage as m}from"./graphics.js";export function lookOf(o){const t=o.options,e=t.motionBlur,a=t.post,n=t.capture,u=i=>typeof i=="object"&&i!==null?i:void 0,h=u(e),r=u(a),s=r?.filter,p=r?.lut;return{...t.transparent===!0?{transparent:!0}:{},...h&&typeof h.samples=="number"?{motionBlur:{samples:h.samples,...typeof h.shutter=="number"?{shutter:h.shutter}:{}}}:{},...u(n)?{capture:n}:{},...typeof s=="string"||typeof p=="string"?{post:{...typeof s=="string"?{filter:s}:{},...typeof p=="string"?{lut:p}:{}}}:{}}}export function projectMedia(o){return{root:o.root,media:o.media,path:t=>Object.hasOwn(o.media,t)?l(o.root,t):void 0}}export function versionSound(o,t,e,a={}){return $(projectMedia(o),t,e,a)}export function filmTimes(o,t,e){const n=(e?[e]:t).flatMap(r=>(r.anchors??[]).map(s=>({part:r.key,...s}))),u=new Set(n.map(r=>r.name)),h=n.length>0?`Anchors${e?` of ${e.key}`:""}: ${n.map(r=>`@${r.name} (${r.part} ${r.at.toFixed(2)}${r.end===void 0?"":`–${r.end.toFixed(2)}`})`).join(", ")}.`:`${e?`Part ${e.key}`:"It"} has no anchors: a part gives them with anchors: { name: seconds }, or its script's line with @{name}.`;return o.map(r=>{if(typeof r=="number")return e?e.start+r:r;const s=w(r,u),p=s?n.filter(f=>f.name===s.name):[],i=p[0];if(!s||!i)throw new d("no-anchor",`No anchor ${r}.`,"not-found",h);if(p.length>1)throw new d("bad-time",`${String(p.length)} parts have an anchor ${s.name}: ${p.map(f=>f.part).join(", ")}.`,"usage","Name the part.");if(s.end&&i.end===void 0)throw new d("bad-time",`${r} asks for the end of the anchor ${i.name} of ${i.part}, which is a point.`,"usage",`Use @${i.name}.`);const g=(s.end?i.end??i.at:i.at)+s.shift;return Math.round(g*1e3)/1e3})}export function partOf(o,t){const e=o.parts.filter(n=>n.key.startsWith(`${t}/`)),a=o.parts.find(n=>n.key===t)??(e.length===1?e[0]:void 0);if(!a)throw new d("no-part",`No part ${t}.`,"not-found",`Parts: ${o.parts.map(n=>n.key).join(", ")}.`);return a}export class OpenedFilm{opened;page;constructor(t){this.opened=t}get target(){return this.opened.target}get piece(){return this.opened.piece}get prepared(){return this.opened.prepared}get version(){return this.opened.version}get timeline(){return this.version.timeline}get look(){return lookOf(this.piece)}get media(){return projectMedia(this.prepared)}graphics(){return this.page??=m(this.version.stage,{gpu:this.opened.gpu}),this.page}async openPage(){const t=await this.opened.another();return m(t.stage,{gpu:this.opened.gpu})}code(){return this.opened.code()}still(t,e={}){return this.timeline.parts.find(n=>t>=n.start&&t<n.end)?.frame?this.ownFrame(t,e.format??"png"):c(this.graphics(),t,{target:this.target,look:this.look,media:this.media,...e.raw===void 0?{}:{raw:e.raw},...e.format===void 0?{}:{format:e.format},...e.ffmpeg===void 0?{}:{ffmpeg:e.ffmpeg}})}async ownFrame(t,e){return await this.version.seek(t),this.version.stage.capture({format:e})}sound(t={}){return versionSound(this.prepared,this.target,this.timeline,t)}draws(){return{compose:async(t,e,a)=>{if((this.timeline.footage??[]).some(u=>u.part===e))return c(m(t.stage,{gpu:this.opened.gpu}),a,{target:this.target,look:this.look,media:this.media})},webp:t=>y(t,"lossless")}}partStills(t){return this.opened.partStills(t,this.draws())}}
2
+ import{join as l}from"node:path";import{ProjectError as c}from"@allyhub/build";import{parseAnchorRef as w}from"@allyhub/piece";import{backgroundStill as $,finalStill as m,soundOf as y}from"@allyhub/render";import{webp as v}from"@allyhub/image-render/webp";import{graphicsPage as f}from"./graphics.js";export function lookOf(o){const t=o.options,e=t.motionBlur,a=t.post,n=t.capture,h=i=>typeof i=="object"&&i!==null?i:void 0,u=h(e),r=h(a),s=r?.filter,p=r?.lut;return{...t.transparent===!0?{transparent:!0}:{},...u&&typeof u.samples=="number"?{motionBlur:{samples:u.samples,...typeof u.shutter=="number"?{shutter:u.shutter}:{}}}:{},...h(n)?{capture:n}:{},...typeof s=="string"||typeof p=="string"?{post:{...typeof s=="string"?{filter:s}:{},...typeof p=="string"?{lut:p}:{}}}:{}}}export function projectMedia(o){return{root:o.root,media:o.media,path:t=>Object.hasOwn(o.media,t)?l(o.root,t):void 0}}export function versionSound(o,t,e,a={}){return y(projectMedia(o),t,e,a)}export function filmTimes(o,t,e){const n=(e?[e]:t).flatMap(r=>(r.anchors??[]).map(s=>({part:r.key,...s}))),h=new Set(n.map(r=>r.name)),u=n.length>0?`Anchors${e?` of ${e.key}`:""}: ${n.map(r=>`@${r.name} (${r.part} ${r.at.toFixed(2)}${r.end===void 0?"":`–${r.end.toFixed(2)}`})`).join(", ")}.`:`${e?`Part ${e.key}`:"It"} has no anchors: a part gives them with anchors: { name: seconds }, or its script's line with @{name}.`;return o.map(r=>{if(typeof r=="number")return e?e.start+r:r;const s=w(r,h),p=s?n.filter(d=>d.name===s.name):[],i=p[0];if(!s||!i)throw new c("no-anchor",`No anchor ${r}.`,"not-found",u);if(p.length>1)throw new c("bad-time",`${String(p.length)} parts have an anchor ${s.name}: ${p.map(d=>d.part).join(", ")}.`,"usage","Name the part.");if(s.end&&i.end===void 0)throw new c("bad-time",`${r} asks for the end of the anchor ${i.name} of ${i.part}, which is a point.`,"usage",`Use @${i.name}.`);const g=(s.end?i.end??i.at:i.at)+s.shift;return Math.round(g*1e3)/1e3})}export function partOf(o,t){const e=o.parts.filter(n=>n.key.startsWith(`${t}/`)),a=o.parts.find(n=>n.key===t)??(e.length===1?e[0]:void 0);if(!a)throw new c("no-part",`No part ${t}.`,"not-found",`Parts: ${o.parts.map(n=>n.key).join(", ")}.`);return a}export class OpenedFilm{opened;page;constructor(t){this.opened=t}get target(){return this.opened.target}get piece(){return this.opened.piece}get prepared(){return this.opened.prepared}get version(){return this.opened.version}get timeline(){return this.version.timeline}get look(){return lookOf(this.piece)}get media(){return projectMedia(this.prepared)}graphics(){return this.page??=f(this.version.stage,{gpu:this.opened.gpu}),this.page}async openPage(){const t=await this.opened.another();return f(t.stage,{gpu:this.opened.gpu})}code(){return this.opened.code()}still(t,e={}){return this.timeline.parts.find(n=>t>=n.start&&t<n.end)?.frame?this.ownFrame(t,e.format??"png"):m(this.graphics(),t,{target:this.target,look:this.look,media:this.media,...e.raw===void 0?{}:{raw:e.raw},...e.format===void 0?{}:{format:e.format},...e.ffmpeg===void 0?{}:{ffmpeg:e.ffmpeg}})}coverKeys(){return(this.version.summary?.covers??[]).map(t=>t.key)}async cover(t){const e=this.coverKeys().indexOf(t);if(e<0)throw new Error(`No cover ${t}.`);return $(this.timeline,await this.graphics().cover(e))}async ownFrame(t,e){return await this.version.seek(t),this.version.stage.capture({format:e})}sound(t={}){return versionSound(this.prepared,this.target,this.timeline,t)}draws(){return{compose:async(t,e,a)=>{if((this.timeline.footage??[]).some(h=>h.part===e))return m(f(t.stage,{gpu:this.opened.gpu}),a,{target:this.target,look:this.look,media:this.media})},webp:t=>v(t,"lossless")}}partStills(t){return this.opened.partStills(t,this.draws())}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-measure",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{clamp,ease,fitText,lerp,progress,rand,stagger,tween}from"./anim.js";export{noise2D,noise3D,noise4D}from"./noise.js";export{drag,fittsTime,INPUT_DEFAULTS,cursor,handPath,reach,scroll,tap,typing}from"./input.js";export{aimed}from"@allyhub/scenery";export{drawOn,interpolatePath,normalizePath,pathLength,pointAtLength,tangentAtLength,trimPath}from"./paths.js";export{ROUTE_DEFAULTS,routeConnections,routeCrossings}from"./route.js";export{FIT_LINES_PRECISION,fitLines,textLines}from"@allyhub/image-sdk/dom";export{custom,defineComponent,LAYER_OPTIONS}from"@allyhub/image-sdk/define";export{adjustment,fill,group,shape,textLayer}from"@allyhub/image-sdk";export{say}from"./parts.js";export{defineConfig,definePiece,paged}from"./piece.js";export{asset,boolean,color,list,number,object,text,time}from"@allyhub/image-sdk/props";export{countText,splitText}from"@allyhub/image-sdk/text";export{pictureProblem}from"@allyhub/image-sdk/picture";export{PICTURE_DEFAULTS}from"@allyhub/piece";export{markRuns,readMarks,withoutMarks}from"@allyhub/piece";
2
+ export{clamp,ease,fitText,lerp,progress,rand,stagger,tween}from"./anim.js";export{noise2D,noise3D,noise4D}from"./noise.js";export{drag,fittsTime,INPUT_DEFAULTS,cursor,handPath,reach,scroll,tap,typing}from"./input.js";export{aimed}from"@allyhub/scenery";export{drawOn,interpolatePath,normalizePath,pathLength,pointAtLength,tangentAtLength,trimPath}from"./paths.js";export{ROUTE_DEFAULTS,routeConnections,routeCrossings}from"./route.js";export{FIT_LINES_PRECISION,fitLines,textLines}from"@allyhub/image-sdk/dom";export{custom,defineComponent,LAYER_OPTIONS}from"@allyhub/image-sdk/define";export{block}from"@allyhub/image-sdk/block";export{adjustment,fill,group,shape,textLayer}from"@allyhub/image-sdk";export{say}from"./parts.js";export{defineConfig,definePiece,paged}from"./piece.js";export{asset,boolean,color,list,number,object,text,time}from"@allyhub/image-sdk/props";export{countText,splitText}from"@allyhub/image-sdk/text";export{pictureProblem}from"@allyhub/image-sdk/picture";export{PICTURE_DEFAULTS}from"@allyhub/piece";export{markRuns,readMarks,withoutMarks}from"@allyhub/piece";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/video-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{WebsiteProblem,buildWebsite,installPackages,readWebsite,setWebsiteSite,sourceDigest}from"./website.js";export{readHeaders,readRedirects}from"./rules.js";export{deployWebsite,siteManifest,slugFrom}from"./publish.js";
2
+ export{WebsiteProblem,buildWebsite,installPackages,runNpmInstall,readWebsite,setWebsiteSite,sourceDigest}from"./website.js";export{readHeaders,readRedirects}from"./rules.js";export{deployWebsite,siteManifest,slugFrom}from"./publish.js";
@@ -1,4 +1,4 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{spawn as b}from"node:child_process";import{createHash as g}from"node:crypto";import{readFile as u,stat as x,writeFile as k}from"node:fs/promises";import{basename as y,delimiter as v,dirname as P,join as d,relative as p,resolve as $,sep as f}from"node:path";import{hashFolder as m}from"@allyhub/cloud";import{parseWebsite as j}from"@allyhub/formats";import{applyEdits as _,modify as W}from"jsonc-parser";const E=4e3;export class WebsiteProblem extends Error{hint;constructor(t,n){super(t),this.name="WebsiteProblem",this.hint=n}}export async function readWebsite(e){const t=await u(e,"utf8").catch(()=>{});if(t===void 0)throw new WebsiteProblem(`${e} is missing.`);const n=j(t);if(!n.ok)throw new WebsiteProblem(`${e}: ${n.problems.join("; ")}`);return n.value}export async function setWebsiteSite(e,t){const n=await u(e,"utf8");await k(e,_(n,W(n,["site"],t,{formattingOptions:{insertSpaces:!0,tabSize:2}})))}async function w(e,t,n){const s=b(t,n.args??[],{cwd:e,shell:n.shell,env:{...n.env,PATH:[d(e,"node_modules",".bin"),n.env.PATH??""].join(v)},stdio:["ignore","pipe","pipe"]});let i="";const a=o=>{i=(i+o.toString()).slice(-E)};if(s.stdout.on("data",a),s.stderr.on("data",a),await new Promise((o,h)=>{s.once("error",h),s.once("exit",o)})!==0)throw new WebsiteProblem(`${t} failed in ${e}:
3
- ${i.trim()}`)}export async function installPackages(e,t){const n=s=>x(d(e,s)).then(()=>!0,()=>!1);await n("package.json")&&!await n("node_modules")&&await w(e,t.npm??"npm",{args:["install"],shell:!1,env:t.env})}export async function buildWebsite(e,t,n){await installPackages(e,n),t.build!==void 0&&(n.onProgress?.(`Building: ${t.build}`),await w(e,t.build,{shell:!0,env:n.env}))}const F=new Set(["package.json","package-lock.json","pnpm-lock.yaml","yarn.lock"]),O=".well-known",r=e=>e.slice(e.lastIndexOf("/")+1),l=e=>e.startsWith(".")&&e!==O,S=(e,t)=>p(e,t).split(f).join("/");export const publishedFiles=(e,t,n)=>{const s=n===void 0?void 0:S(e,n);return m(e,t,{skip:["node_modules"],enter:i=>!l(r(i)),only:i=>!l(r(i))&&!F.has(r(i))&&i!==s,onLink:i=>{throw new WebsiteProblem(`${i} is a link. A site's files are its own: copy what it points to.`)},prune:!1})};export function sourceFiles(e,t,n){const s=P(e),i=y(e),a=$(s,t.output),c=t.build===void 0?void 0:p(s,a).split(f).join("/");return m(s,n,{skip:["node_modules"],enter:o=>!l(r(o))&&o!==c,only:o=>!l(r(o))&&o!==i,prune:!1})}export const digestOf=e=>g("sha256").update(e.map(t=>`${t.path}:${t.sha256}`).join(`
2
+ import{spawn as b}from"node:child_process";import{createHash as x}from"node:crypto";import{readFile as u,stat as g,writeFile as k}from"node:fs/promises";import{basename as y,delimiter as v,dirname as P,join as d,relative as p,resolve as $,sep as f}from"node:path";import{hashFolder as m}from"@allyhub/cloud";import{parseWebsite as j}from"@allyhub/formats";import{applyEdits as _,modify as W}from"jsonc-parser";const E=4e3;export class WebsiteProblem extends Error{hint;constructor(t,n){super(t),this.name="WebsiteProblem",this.hint=n}}export async function readWebsite(e){const t=await u(e,"utf8").catch(()=>{});if(t===void 0)throw new WebsiteProblem(`${e} is missing.`);const n=j(t);if(!n.ok)throw new WebsiteProblem(`${e}: ${n.problems.join("; ")}`);return n.value}export async function setWebsiteSite(e,t){const n=await u(e,"utf8");await k(e,_(n,W(n,["site"],t,{formattingOptions:{insertSpaces:!0,tabSize:2}})))}async function w(e,t,n){const s=b(t,n.args??[],{cwd:e,shell:n.shell,env:{...n.env,PATH:[d(e,"node_modules",".bin"),n.env.PATH??""].join(v)},stdio:["ignore","pipe","pipe"]});let i="";const a=o=>{i=(i+o.toString()).slice(-E)};if(s.stdout.on("data",a),s.stderr.on("data",a),await new Promise((o,h)=>{s.once("error",h),s.once("exit",o)})!==0)throw new WebsiteProblem(`${t} failed in ${e}:
3
+ ${i.trim()}`)}export async function runNpmInstall(e,t){await w(e,t.npm??"npm",{args:["install"],shell:!1,env:t.env})}export async function installPackages(e,t){const n=s=>g(d(e,s)).then(()=>!0,()=>!1);await n("package.json")&&!await n("node_modules")&&await runNpmInstall(e,t)}export async function buildWebsite(e,t,n){await installPackages(e,n),t.build!==void 0&&(n.onProgress?.(`Building: ${t.build}`),await w(e,t.build,{shell:!0,env:n.env}))}const F=new Set(["package.json","package-lock.json","pnpm-lock.yaml","yarn.lock"]),O=".well-known",r=e=>e.slice(e.lastIndexOf("/")+1),l=e=>e.startsWith(".")&&e!==O,S=(e,t)=>p(e,t).split(f).join("/");export const publishedFiles=(e,t,n)=>{const s=n===void 0?void 0:S(e,n);return m(e,t,{skip:["node_modules"],enter:i=>!l(r(i)),only:i=>!l(r(i))&&!F.has(r(i))&&i!==s,onLink:i=>{throw new WebsiteProblem(`${i} is a link. A site's files are its own: copy what it points to.`)},prune:!1})};export function sourceFiles(e,t,n){const s=P(e),i=y(e),a=$(s,t.output),c=t.build===void 0?void 0:p(s,a).split(f).join("/");return m(s,n,{skip:["node_modules"],enter:o=>!l(r(o))&&o!==c,only:o=>!l(r(o))&&o!==i,prune:!1})}export const digestOf=e=>x("sha256").update(e.map(t=>`${t.path}:${t.sha256}`).join(`
4
4
  `)).digest("hex");export async function sourceDigest(e,t,n){const s=await sourceFiles(e,t,n);return await n.save(),digestOf(s)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/website",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/website-extension",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tools": {
@@ -80,7 +80,7 @@
80
80
  "cliCommands": [
81
81
  {
82
82
  "name": "site deploy",
83
- "summary": "Build a website here and upload it to AllyHub as a new version of its site, sending only the files AllyHub lacks; private until --live",
83
+ "summary": "Build a website here and upload it to AllyHub as a new version of its site, sending only the files AllyHub lacks; private until --live; the first deploy writes site into the website's file. Without the person's leave, --live answers live: false and confirm, a page for them to say yes on; a site's first publish is always confirmed in their browser",
84
84
  "work": "websites",
85
85
  "module": "./dist/cli/index.js"
86
86
  },
@@ -92,7 +92,7 @@
92
92
  },
93
93
  {
94
94
  "name": "site live",
95
- "summary": "Make a version of a website what its address serves, an earlier one or one not live yet; nothing is built",
95
+ "summary": "Make a version of a website what its address serves, an earlier one or one not live yet; nothing is built; without the person's leave it answers live: false and confirm, a page for them to say yes on. Taking a site offline is the person's alone, in Studio",
96
96
  "work": "websites",
97
97
  "module": "./dist/cli/index.js"
98
98
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-extension",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -93,7 +93,6 @@
93
93
  },
94
94
  "entry": "{{name}}.yaml"
95
95
  },
96
- "turnInto": false,
97
96
  "build": "./dist/build.js",
98
97
  "config": [
99
98
  "x"
@@ -189,7 +188,6 @@
189
188
  },
190
189
  "entry": "{{name}}.md"
191
190
  },
192
- "turnInto": false,
193
191
  "build": "./dist/article-kind.js",
194
192
  "config": [
195
193
  "x"
@@ -5,8 +5,8 @@ What will be published on X is written in X's own model, so what X counts and re
5
5
  - **An X post** (`x-post`): a post, a thread or a long post, with its pictures, video and poll.
6
6
  - **An X article** (`x-article`): a long piece in X's article blocks, with its title and cover.
7
7
 
8
- Their pictures and videos can be the project's own items, an image's boards or a video, made when the post or article is rendered.
8
+ Their pictures and videos can be the project's own items, an image's boards or a video.
9
9
 
10
10
  - `allyhub help x` lists the commands and prints where the SDK's `x.md` is. Read it before writing a post or an article.
11
- - `allyhub frames` draws a post or an article as X shows it once published, and `allyhub inspect` gives what X counts. Look with them before handing it over.
12
- - **To publish**, the person downloads a post's text to paste, and posts it. `allyhub render` also writes the requests X's API takes.
11
+ - `allyhub frames` draws a post or an article as X shows it once published, and `allyhub inspect` gives what X counts.
12
+ - **To publish**, the person downloads a post's text to paste, and posts it.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-model",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-view",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {