allyhub 0.6.0 → 0.7.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 (621) hide show
  1. package/dist/audio-text.js +1 -1
  2. package/dist/commands/add.js +2 -2
  3. package/dist/commands/cloud-tools.js +5 -5
  4. package/dist/commands/dev.js +1 -1
  5. package/dist/commands/frames/piece.js +1 -1
  6. package/dist/commands/frames/sheet.js +1 -1
  7. package/dist/commands/frames.js +8 -8
  8. package/dist/commands/index.js +1 -1
  9. package/dist/commands/inspect/common.js +1 -1
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/render.js +1 -1
  12. package/dist/commands/sheet.js +5 -5
  13. package/dist/commands/site.js +3 -2
  14. package/dist/commands/skills.js +3 -3
  15. package/dist/commands/slides.js +2 -2
  16. package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
  17. package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
  18. package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
  19. package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
  20. package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
  21. package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
  22. package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
  23. package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
  24. package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
  25. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
  26. package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
  27. package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
  28. package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
  29. package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
  30. package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
  31. package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
  32. package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
  33. package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
  34. package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
  35. package/dist/node_modules/@allyhub-next/build/package.json +1 -1
  36. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
  37. package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
  38. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
  39. package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
  40. package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
  41. package/dist/node_modules/@allyhub-next/check/package.json +1 -1
  42. package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
  43. package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
  44. package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
  45. package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
  46. package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
  47. package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
  48. package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
  49. package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
  50. package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
  51. package/dist/node_modules/@allyhub-next/components/package.json +1 -1
  52. package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
  53. package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
  54. package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
  55. package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
  56. package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
  57. package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
  58. package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
  59. package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
  60. package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
  61. package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
  62. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
  63. package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
  64. package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
  65. package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
  66. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
  67. package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
  68. package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
  69. package/dist/node_modules/@allyhub-next/export/package.json +1 -1
  70. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
  71. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
  72. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
  73. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  74. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
  75. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
  76. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
  77. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
  78. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
  79. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
  80. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
  81. package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  82. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
  83. package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  84. package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
  85. package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
  86. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
  87. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  88. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
  89. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
  90. package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
  91. package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
  92. package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
  93. package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
  94. package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
  95. package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
  96. package/dist/node_modules/@allyhub-next/media/package.json +1 -1
  97. package/dist/node_modules/@allyhub-next/model/package.json +1 -1
  98. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
  99. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
  100. package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
  101. package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
  102. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
  103. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
  104. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
  105. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
  106. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
  107. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
  108. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
  109. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
  110. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
  111. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
  112. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
  113. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
  114. package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
  115. package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
  116. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
  117. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
  118. package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
  119. package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
  120. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
  121. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
  122. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
  123. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
  124. package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
  125. package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
  126. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
  127. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
  128. package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
  129. package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
  130. package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
  131. package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
  132. package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
  133. package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
  134. package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
  135. package/dist/node_modules/@allyhub-next/project/package.json +1 -1
  136. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
  137. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
  138. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
  139. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  140. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
  141. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
  142. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
  143. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  144. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
  145. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  146. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
  147. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
  148. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  149. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
  150. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
  151. package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
  152. package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
  153. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
  154. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  155. package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
  156. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  157. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
  158. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
  159. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
  160. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
  161. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
  162. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
  163. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
  164. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
  165. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
  166. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  167. package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
  168. package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
  169. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
  170. package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
  171. package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
  172. package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
  173. package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
  174. package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
  175. package/dist/node_modules/@allyhub-next/render/package.json +1 -1
  176. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
  177. package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
  178. package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
  179. package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
  180. package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
  181. package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
  182. package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
  183. package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
  184. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
  185. package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
  186. package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  187. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
  188. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
  189. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
  190. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
  191. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
  192. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
  193. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
  194. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
  195. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
  196. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
  197. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
  198. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
  199. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
  200. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
  201. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
  202. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
  203. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
  204. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
  205. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
  206. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
  207. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
  208. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
  209. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
  210. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
  211. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
  212. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
  213. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
  214. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
  215. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
  216. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
  217. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
  218. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
  219. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
  220. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
  221. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
  222. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
  223. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
  224. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
  225. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
  226. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
  227. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
  228. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
  229. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
  230. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
  231. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
  232. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
  233. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
  234. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
  235. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
  236. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
  237. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
  238. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
  239. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
  240. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
  241. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
  242. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
  243. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
  244. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
  245. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
  246. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
  247. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
  248. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
  249. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
  250. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
  251. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
  252. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
  253. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
  254. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
  255. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
  256. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
  257. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
  258. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
  259. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
  260. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
  261. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
  262. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
  263. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
  264. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
  265. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
  266. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
  267. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
  268. package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
  269. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
  270. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
  271. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
  272. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
  273. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
  274. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
  275. package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
  276. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
  277. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
  278. package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
  279. package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
  280. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
  281. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
  282. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
  283. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
  284. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
  285. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
  286. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
  287. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
  288. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
  289. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
  290. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
  291. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
  292. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
  293. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
  294. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
  295. package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
  296. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
  297. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
  298. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
  299. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
  300. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
  301. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
  302. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
  303. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
  304. package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
  305. package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
  306. package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
  307. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
  308. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
  309. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
  310. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
  311. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
  312. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
  313. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
  314. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
  315. package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
  316. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
  317. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
  318. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
  319. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
  320. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
  321. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
  322. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
  323. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
  324. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
  325. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
  326. package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
  327. package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
  328. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
  329. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
  330. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
  331. package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
  332. package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
  333. package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
  334. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
  335. package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
  336. package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
  337. package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
  338. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
  339. package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
  340. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
  341. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
  342. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
  343. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
  344. package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
  345. package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
  346. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
  347. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
  348. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  349. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
  350. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  351. package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
  352. package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
  353. package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
  354. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
  355. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
  356. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  357. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
  358. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
  359. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
  360. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  361. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
  362. package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
  363. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
  364. package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
  365. package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
  366. package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
  367. package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
  368. package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
  369. package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
  370. package/dist/node_modules/@allyhub-next/website/package.json +13 -0
  371. package/dist/text/facts-text.js +4 -4
  372. package/dist/works.js +1 -1
  373. package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
  374. package/editor-web/assets/dist-0emakyZE.js +36 -0
  375. package/editor-web/assets/dist-B3UoDUa5.js +37 -0
  376. package/editor-web/assets/dist-B6KzR3pN.js +10 -0
  377. package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
  378. package/editor-web/assets/dist-CTQIm8Im.js +10 -0
  379. package/editor-web/assets/dist-CiHNHwyq.js +2 -0
  380. package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
  381. package/editor-web/assets/index-CFt3ovRY.js +69 -0
  382. package/editor-web/assets/index-ujKjdu_s.css +2 -0
  383. package/editor-web/assets/minus-BhoPZC5P.js +1 -0
  384. package/editor-web/assets/react-C_-rEEBU.js +101 -0
  385. package/editor-web/assets/tabs-Den4gHrU.js +105 -0
  386. package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
  387. package/editor-web/index.html +5 -5
  388. package/package.json +8 -14
  389. package/dist/astro.d.ts +0 -2
  390. package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
  391. package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
  392. package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
  393. package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
  394. package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
  395. package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
  396. package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
  397. package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
  398. package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
  399. package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
  400. package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
  401. package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
  402. package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
  403. package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
  404. package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
  405. package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
  406. package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
  407. package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
  408. package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
  409. package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
  410. package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
  411. package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
  412. package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
  413. package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
  414. package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
  415. package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
  416. package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
  417. package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
  418. package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
  419. package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
  420. package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
  421. package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
  422. package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
  423. package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
  424. package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
  425. package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
  426. package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
  427. package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
  428. package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
  429. package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
  430. package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
  431. package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
  432. package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
  433. package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
  434. package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
  435. package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
  436. package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
  437. package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
  438. package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
  439. package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
  440. package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
  441. package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
  442. package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
  443. package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
  444. package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
  445. package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
  446. package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
  447. package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
  448. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
  449. package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
  450. package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
  451. package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
  452. package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
  453. package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
  454. package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
  455. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
  456. package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
  457. package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
  458. package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
  459. package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
  460. package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
  461. package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
  462. package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
  463. package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
  464. package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
  465. package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
  466. package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
  467. package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
  468. package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
  469. package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
  470. package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
  471. package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
  472. package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
  473. package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
  474. package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
  475. package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
  476. package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
  477. package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
  478. package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
  479. package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
  480. package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
  481. package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
  482. package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
  483. package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
  484. package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
  485. package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
  486. package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
  487. package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
  488. package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
  489. package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
  490. package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
  491. package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
  492. package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
  493. package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
  494. package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
  495. package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
  496. package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
  497. package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
  498. package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
  499. package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
  500. package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
  501. package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
  502. package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
  503. package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
  504. package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
  505. package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
  506. package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
  507. package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
  508. package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
  509. package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
  510. package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
  511. package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
  512. package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -67
  513. package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
  514. package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
  515. package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
  516. package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
  517. package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
  518. package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
  519. package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -178
  520. package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
  521. package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
  522. package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
  523. package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
  524. package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
  525. package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
  526. package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
  527. package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
  528. package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
  529. package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
  530. package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
  531. package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
  532. package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
  533. package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
  534. package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
  535. package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
  536. package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
  537. package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
  538. package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
  539. package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
  540. package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
  541. package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
  542. package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
  543. package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
  544. package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
  545. package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
  546. package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
  547. package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
  548. package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
  549. package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
  550. package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
  551. package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
  552. package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
  553. package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
  554. package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
  555. package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
  556. package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
  557. package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
  558. package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
  559. package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
  560. package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
  561. package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
  562. package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
  563. package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
  564. package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
  565. package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
  566. package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
  567. package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
  568. package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
  569. package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
  570. package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
  571. package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
  572. package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
  573. package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
  574. package/dist/node_modules/@allyhub-next/site/package.json +0 -25
  575. package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
  576. package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
  577. package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
  578. package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
  579. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
  580. package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
  581. package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
  582. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -56
  583. package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
  584. package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -72
  585. package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -32
  586. package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
  587. package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
  588. package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
  589. package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -32
  590. package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -43
  591. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
  592. package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
  593. package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
  594. package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
  595. package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
  596. package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
  597. package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
  598. package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
  599. package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
  600. package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
  601. package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
  602. package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
  603. package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
  604. package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
  605. package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
  606. package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
  607. package/dist/site.d.ts +0 -2
  608. package/editor-web/assets/dist-BW2s9FMO.js +0 -4
  609. package/editor-web/assets/dist-C-6JmebI.js +0 -233
  610. package/editor-web/assets/dist-CCYMLMKN.js +0 -6
  611. package/editor-web/assets/dist-CHzurjMx.js +0 -33
  612. package/editor-web/assets/dist-DF7H1dxw.js +0 -1
  613. package/editor-web/assets/dist-Da5AUSKX.js +0 -2
  614. package/editor-web/assets/index-B7S9RZhL.css +0 -2
  615. package/editor-web/assets/index-CovQYWvD.js +0 -69
  616. package/editor-web/assets/minus-BrvjaJyO.js +0 -1
  617. package/editor-web/assets/react-DV5fPdiH.js +0 -101
  618. package/editor-web/assets/textarea-B0vCGdZI.js +0 -105
  619. package/editor-web/assets/trash-2-B0dvc1cZ.js +0 -1
  620. package/editor-web/assets/undo-2-A1EPubPO.js +0 -1
  621. /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
@@ -15,8 +15,6 @@ export interface LoadOptions {
15
15
  /** The combo: one value per dimension, e.g. { lang: "zh-cn" }. */
16
16
  combo: Combo;
17
17
  purpose: "play" | "render" | "check";
18
- /** A deck drawn for its editor: an empty placeholder is drawn, to type into. */
19
- editing?: boolean;
20
18
  /**
21
19
  * The most different console messages kept from piece code (see
22
20
  * console.ts); default CONSOLE_LIMIT.
@@ -41,9 +39,14 @@ export interface BuildSource {
41
39
  * piece says where it was written (`base`).
42
40
  */
43
41
  file: string;
44
- /** URL of the bundled piece module. */
42
+ /**
43
+ * The bundled piece module's address. A build writes it, and every
44
+ * address below, relative to the root of the tree the stage is served
45
+ * in (`build/pieces/…`, `media/…`); the stage resolves them
46
+ * (resolveSource), so one build is served anywhere.
47
+ */
45
48
  module: string;
46
- /** URLs of stylesheets the bundle imports. */
49
+ /** The stylesheets the bundle imports. */
47
50
  styles?: string[];
48
51
  /** The piece's dimensions, as the build resolved them (lang filled in). */
49
52
  dims: Dims;
@@ -68,7 +71,7 @@ export interface BuildSource {
68
71
  anchors?: Record<string, Record<string, TextAnchor[]>>;
69
72
  /** The folder of the shared words (allyhub.config.ts's text); default assets/text. */
70
73
  text?: string;
71
- /** Repo path → media, with a URL valid in this page. */
74
+ /** Repo path → media, with its address. */
72
75
  media: Record<string, MediaInfo>;
73
76
  /** Repo path → data files (CSV, YAML, JSON) that ctx.data(path) reads. */
74
77
  data?: Record<string, DataFile>;
@@ -78,6 +81,8 @@ export interface BuildSource {
78
81
  partDefaults?: PartDefaults;
79
82
  /** A deck's pages: its slides.yaml as the build read it (none when it has none, or it does not match the format). */
80
83
  slides?: SlidesFile;
84
+ /** A deck's code as data, as the build ran it (slides-core's DeckCode): its generators' slides made in Node; without it the stage runs them. */
85
+ code?: unknown;
81
86
  /**
82
87
  * Every piece of the build by id, for a piece that shows another inside
83
88
  * it (a scenery's screen): its file, dimensions, format and matrix.
@@ -92,34 +97,6 @@ export interface BuildSource {
92
97
  };
93
98
  }>;
94
99
  }
95
- /**
96
- * stage/source.json in a build folder: what a host
97
- * needs, besides the build's files, to hand load() a BuildSource for any
98
- * piece of the build. Paths are relative to the build folder; the host
99
- * adds URLs (media are fetched by sha256).
100
- */
101
- export interface StageSource {
102
- schema: 1;
103
- /** The runtime's browser bundle the build was made with. */
104
- runtime: string;
105
- /** Locales, the default first. */
106
- locales: string[];
107
- pieces: Record<string, {
108
- file: string;
109
- module: string;
110
- styles: string[];
111
- dims: Dims;
112
- matrix?: {
113
- space: MatrixSpace;
114
- rules: MatrixRule[];
115
- };
116
- format: string;
117
- }>;
118
- media: Record<string, Omit<MediaInfo, "url">>;
119
- data: Record<string, DataFile>;
120
- /** The project's looks (allyhub.config.ts `look`), when it sets one. */
121
- looks?: Record<string, Look>;
122
- }
123
100
  /** Where a part's speech plays: film seconds, and the take's file and offset. */
124
101
  export interface PartSpeech {
125
102
  /** Film time the speech starts and ends. */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub-next/video-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{WebsiteProblem,buildWebsite,installWebsite,readWebsite,setWebsiteSite,sourceDigest}from"./website.js";export{readHeaders,readRedirects}from"./rules.js";export{deployWebsite,siteManifest,slugFrom}from"./publish.js";
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readFile as $,stat as v}from"node:fs/promises";import{join as F,resolve as S}from"node:path";import{BlobStore as I,CloudError as T,addDeployment as _,createSite as z,goLive as L,sha256Of as x,siteDetail as O}from"@allyhub-next/cloud";import{WEBSITE_FILE as W,mediaTypeOf as M}from"@allyhub-next/formats";import{FILE_MAX_BYTES as k,SITE_LIMITS as g,SITE_MANIFEST_FORMAT as A,SLUG_LENGTH as B,siteBlobsPath as D,slugProblem as N}from"@allyhub-next/protocol";import{readHeaders as P,readRedirects as R}from"./rules.js";import{WebsiteProblem as d,buildWebsite as j,digestOf as C,publishedFiles as G,readWebsite as H,setWebsiteSite as U,sourceFiles as J}from"./website.js";const b={redirects:"_redirects",headers:"_headers"};export async function siteManifest(s,e){if(!(await v(s).catch(()=>{}))?.isDirectory())throw new d(`${s} is missing: build the website first, and say where its output is in ${W}.`);const n=await G(s,e),l=t=>t===b.redirects||t===b.headers,i=n.filter(t=>!l(t.path));if(!i.some(t=>t.path==="index.html"))throw new d(`${s} has no index.html, so its address would show nothing. A site here is static files: a framework that renders on a server must export them.`);if(i.length>g.files)throw new d(`It has ${String(i.length)} files; a site holds at most ${String(g.files)}.`);const a=i.reduce((t,w)=>t+w.size,0);if(a>g.bytes)throw new d(`It is ${String(a)} bytes; a site holds at most ${String(g.bytes)}.`);const u=i.find(t=>t.size>k);if(u!==void 0)throw new d(`${u.path} is larger than a site's files may be.`);const h={},f=[];for(const t of i){const w=M(t.path);h[t.path]={sha256:t.sha256,size:t.size,type:w},f.push({sha256:t.sha256,size:t.size,type:w,file:t.file})}const m=t=>$(F(s,t),"utf8").catch(()=>""),c=R(await m(b.redirects)),o=P(await m(b.headers)),p=[...c.problems,...o.problems];if(p.length>0)throw new d(p.join(`
3
+ `));const E={format:A,files:h,redirects:c.rules,headers:o.rules},y=new TextEncoder().encode(JSON.stringify(E));return{manifest:{sha256:x(y),size:y.length,type:"application/json",bytes:y},blobs:f,files:n.map(t=>t.file)}}export function slugFrom(s){const e=s.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/gu,"-").replace(/^-+|-+$/gu,"").slice(0,B.max).replace(/-+$/u,"");return N(e)===void 0?e:void 0}async function K(s,e,r,n){if(r!==void 0)try{return(await O(s,r)).site}catch(a){if(!(a instanceof T)||a.status!==410)throw a}const l=n.slug??slugFrom(n.name);if(l===void 0)throw new d(`${n.name} makes no address: say which with --slug.`,"allyhub site deploy --slug my-site");const i=await z(s,{slug:l,name:n.name});return await U(e,i.id),i}export async function deployWebsite(s,e){const r=await H(e.dir),n=await K(s,e.dir,r.site,e);e.build!==!1&&await j(e.dir,r,e);const l=await J(e.dir,r,e.hashes),{manifest:i,blobs:a,files:u}=await siteManifest(S(e.dir,r.output),e.hashes);await e.hashes.keepOnly(S(e.dir),new Set([...l.map(p=>p.file),...u])),await e.hashes.save();const h=new I(s,{path:D(n.id)}),f=await h.put(a);e.onProgress?.(`Sent ${String(f)} of ${String(a.length)} files.`),await h.put([i]);const{site:m,deployment:c}=await _(s,n.id,{manifest:i.sha256,source:{kind:"upload",digest:C(l)},...e.note===void 0?{}:{note:e.note}});if(e.live!==!0)return{site:m,deployment:c,sent:f,live:!1};const o=await L(s,m.id,c.id,{...e.person===void 0?{}:{person:e.person}});return{site:o.site,deployment:{...c,live:o.live},sent:f,live:o.live,...o.confirm===void 0?{}:{confirm:o.confirm}}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{HeaderRuleSchema as p,PLATFORM_HEADERS as m,REDIRECT_STATUSES as $,RedirectRuleSchema as R}from"@allyhub-next/protocol";export function readRedirects(l){const i=[],e=[];return l.split(/\r?\n/u).forEach((s,c)=>{const u=s.replace(/(^|\s)#.*$/u,"").trim();if(u==="")return;const t=`_redirects, line ${String(c+1)}`,[r,a,n,...o]=u.split(/\s+/u);if(r===void 0||a===void 0||o.length>0){e.push(`${t}: a rule is a path, a target and a status.`);return}const h=n?.endsWith("!")??!1,f=n===void 0?301:Number.parseInt(n,10);if(!$.includes(f)){e.push(`${t}: ${n??""} is not a status a host answers.`);return}const d=R.safeParse({from:r,to:a,status:f,force:h});d.success?i.push(d.data):e.push(`${t}: ${d.error.issues[0]?.message??"not a rule"}`)}),{rules:i,problems:e}}export function readHeaders(l){const i=[],e=[];let s;const c=u=>{if(s===void 0)return;const t=p.safeParse(s);t.success?i.push(t.data):e.push(`${u}: ${t.error.issues[0]?.message??"not a rule"} (${s.for})`),s=void 0};return l.split(/\r?\n/u).forEach((u,t)=>{const r=u.trim(),a=`_headers, line ${String(t+1)}`;if(r===""||r.startsWith("#"))return;if(!/^\s/u.test(u)){c(a),s={for:r,set:{}};return}const n=r.indexOf(":");if(s===void 0||n<1){e.push(`${a}: a header is \`Name: value\`, under a path.`);return}const o=r.slice(0,n).trim();if(m.has(o.toLowerCase())){e.push(`${a}: ${o} is the platform's, not a site's.`);return}s.set[o]=r.slice(n+1).trim()}),c("_headers"),{rules:i,problems:e}}
@@ -0,0 +1,4 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{spawn as w}from"node:child_process";import{createHash as h}from"node:crypto";import{readFile as u,stat as b,writeFile as x}from"node:fs/promises";import{delimiter as g,join as a,relative as k,resolve as y,sep as v}from"node:path";import{hashFolder as f}from"@allyhub-next/cloud";import{parseWebsite as P,WEBSITE_FILE as l}from"@allyhub-next/formats";import{applyEdits as $,modify as E}from"jsonc-parser";const W=4e3;export class WebsiteProblem extends Error{hint;constructor(n,e){super(n),this.name="WebsiteProblem",this.hint=e}}export async function readWebsite(t){const n=a(t,l),e=await u(n,"utf8").catch(()=>{});if(e===void 0)throw new WebsiteProblem(`${n} is missing.`);const i=P(e);if(!i.ok)throw new WebsiteProblem(`${n}: ${i.problems.join("; ")}`);return i.value}export async function setWebsiteSite(t,n){const e=a(t,l),i=await u(e,"utf8");await x(e,$(i,E(i,["site"],n,{formattingOptions:{insertSpaces:!0,tabSize:2}})))}async function d(t,n,e){const i=w(n,e.args??[],{cwd:t,shell:e.shell,env:{...e.env,PATH:[a(t,"node_modules",".bin"),e.env.PATH??""].join(g)},stdio:["ignore","pipe","pipe"]});let o="";const s=p=>{o=(o+p.toString()).slice(-W)};if(i.stdout.on("data",s),i.stderr.on("data",s),await new Promise((p,m)=>{i.once("error",m),i.once("exit",p)})!==0)throw new WebsiteProblem(`${n} failed in ${t}:
3
+ ${o.trim()}`)}export async function installWebsite(t,n){const e=i=>b(a(t,i)).then(()=>!0,()=>!1);await e("package.json")&&!await e("node_modules")&&await d(t,n.npm??"npm",{args:["install"],shell:!1,env:n.env})}export async function buildWebsite(t,n,e){await installWebsite(t,e),n.build!==void 0&&(e.onProgress?.(`Building: ${n.build}`),await d(t,n.build,{shell:!0,env:e.env}))}const _=new Set([l,"package.json","package-lock.json","pnpm-lock.yaml","yarn.lock"]),j=".well-known",r=t=>t.slice(t.lastIndexOf("/")+1),c=t=>t.startsWith(".")&&t!==j;export const publishedFiles=(t,n)=>f(t,n,{skip:["node_modules"],enter:e=>!c(r(e)),only:e=>!c(r(e))&&!_.has(r(e)),onLink:e=>{throw new WebsiteProblem(`${e} is a link. A site's files are its own: copy what it points to.`)},prune:!1});export function sourceFiles(t,n,e){const i=y(t,n.output),o=k(t,i).split(v).join("/");return f(t,e,{skip:["node_modules"],enter:s=>!c(r(s))&&s!==o,only:s=>!c(r(s))&&s!==l,prune:!1})}export const digestOf=t=>h("sha256").update(t.map(n=>`${n.path}:${n.sha256}`).join(`
4
+ `)).digest("hex");export async function sourceDigest(t,n,e){const i=await sourceFiles(t,n,e);return await e.save(),digestOf(i)}
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@allyhub-next/website",
3
+ "version": "0.7.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "private": true,
12
+ "license": "SEE LICENSE IN LICENSE.md"
13
+ }
@@ -1,6 +1,6 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{FACT_KINDS as T,comboKey as H}from"@allyhub-next/video-core";import{plural as u}from"./plural.js";const M=s=>`"${s.length>40?`${s.slice(0,40)}…`:s}"`,g=s=>`[${s.join(",")}]`,m=s=>`${String(Math.round(s*100))}%`,v=s=>`${(s*100).toFixed(1)}%`,b=s=>`${String(Math.round(s*1e4)/100)}%`,$=s=>s.toFixed(2),w=s=>`${s.layer}${s.z==="behind-person"?" (behind)":s.z==="overlay"?" (overlay)":""} ${M(s.text)} ${g(s.box)}${s.opacity===void 0?"":` at ${m(s.opacity)} opacity`}`,O=s=>w({...s,box:s.ink??s.box});function U(s){return s.output===void 0?s.piece:[s.piece,s.combo?H(s.combo):void 0,s.format].filter(e=>e!==void 0&&e!=="").join(" · ")}function z(s,e,t){const n=j(s,e.start),a=s.t===void 0?0:s.t-e.start;return{line:`${e.layer} ${n(e.start)}–${n(e.end)} s: ${t}`,alike:{what:`${e.layer}: ${t}`,span:[e.start+a,e.end+a]}}}const k=s=>`${s.sheet===void 0?"":`${s.sheet}!`}${s.cell??""}`;function J(s){switch(s.kind){case"sheet-error":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:e.origin?1:0,line:`${k(e)} ${e.code}${e.formula===void 0?"":` ${e.formula}`}${e.origin?", starts here":", read from another"}`}}case"sheet-number":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:e.numbers.length,line:`${k(e)}${e.cells>1?` and ${String(e.cells-1)} more`:""} ${e.formula}: ${e.numbers.map(t=>`${String(t.value)} (${t.in})`).join(", ")}`}}case"sheet-unlike":{const e=s.data;return{key:`${e.sheet}!${e.cell}:${e.along}`,value:e.run,line:`${k(e)} ${e.holds}, its ${e.along} ${e.neighbour} (${String(e.run)} alike)`}}case"sheet-exception":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${k(e)} ${e.table}[${e.column}] holds ${JSON.stringify(e.text)}`}}case"sheet-unused":{const e=s.data;return{key:`${e.what}:${e.sheet??""}!${e.name}`,value:1,line:`${e.what} ${e.sheet===void 0?"":`${e.sheet}!`}${e.name}${e.value===void 0?"":` ${e.value}`}`}}case"sheet-invalid":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${k(e)} ${JSON.stringify(e.value)} under the ${e.rule} validation on ${e.range}`}}case"sheet-typed":{const e=s.data;return{key:`${e.sheet}!${e.cell}:${String(e.value)}`,value:1,line:`${k(e)} ${String(e.value)}, in neither sheet.ts nor its data`}}case"sheet-ordinary":{const e=s.data;return{key:e.sheet,value:1,line:`${e.sheet}: sheet.ts makes it and sheet.yaml holds it; sheet.yaml's stands`}}case"text-speaker":{const e=s.data,t=[e.face?`covers ${m(e.face.ofFace)} of the face ${g(e.face.box)} (${m(e.face.ofText)} of the text's box)`:"",e.person?`${m(e.person.ofText)} of the text's box over the person (${e.person.file})`:""].filter(Boolean);return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(e.face?.ofFace??0,e.person?.ofText??0),line:`${w(e.text)}: ${t.join("; ")}`}}case"text-off-frame":{const e=s.data;return{key:`${e.text.layer}|${e.text.text}`,value:e.share,line:`${w({...e.text,box:e.glyphs})}: ${b(e.share)} of its glyphs outside the ${String(e.frame[0])}×${String(e.frame[1])} frame (${String(e.outside)} px), ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}`}}case"text-contrast":{const e=s.data,t=`${String(e.size)} px, weight ${String(e.weight)}${e.shadow?", a shadow":""}${e.stroke?", a stroke":""}`,n=e.footage?`; footage under it, not drawn here: ${e.footage.join(", ")}`:"";if("missing"in e)return{key:`${e.text.layer}|${e.text.text}`,value:0,line:`${w(e.text)}: not measured (${e.missing}: ${e.why}; ${t})${n}`};const a=r=>`${r.toFixed(2)}:1`;return{key:`${e.text.layer}|${e.text.text}`,value:1/Math.max(1,e.ratio.min),line:`${w(e.text)}: ${a(e.ratio.min)} lowest, ${a(e.ratio.low)} at the ${String(e.options.percentile)}th percentile, ${a(e.ratio.median)} median; ${e.fill.join(", ")} over ${e.background.median} (median; ${e.background.atMin} at the lowest), ${t}${e.under?` (its outline counted behind it; under the outline ${a(e.under.ratio.min)} lowest, ${a(e.under.ratio.median)} median, over ${e.under.background.median})`:""}, ${String(e.pixels)} px${e.picture==="final"?", final picture":""}${n}`}}case"text-covered":{const e=s.data,t=e.covered;return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(...e.edges.map(n=>n.px)),line:`${w(e.text)}: ${e.edges.map(n=>`${String(n.px)} px into the ${n.side}`).join(", ")} (${e.profile??"covered"}: top ${String(t.top)}, bottom ${String(t.bottom)}, left ${String(t.left)}, right ${String(t.right)})`}}case"text-overlap":{const e=s.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.layer}|${e.b.text}`,value:e.share,line:`${w(e.a)} × ${w(e.b)}: ${m(e.share)} of the smaller box`}}case"text-overlap-own":{const e=s.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.text}`,value:e.share,line:`${O(e.a)} × ${O(e.b)}: ${m(e.share)} of the smaller glyph box`}}case"text-outside":{const e=s.data;return{key:`${e.text.layer}|${e.text.text}|${g(e.container.box)}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${O(e.text)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")} of the box ${g(e.container.box)} (${e.container.paint.join(", ")})`}}case"text-time":{const e=s.data,t=e.seconds>0?`${(e.words/e.seconds).toFixed(1)} words/s`:"never whole",n=e.spans.map(([a,r])=>`${$(a)}–${$(r)}`).join(", ");return{key:`${e.text.layer}|${e.text.text}|${g(e.text.box)}`,value:e.seconds>0?e.words/e.seconds:e.words,line:`${w(e.text)}: ${u(e.words,"word")} (${String(e.chars)} characters) whole for ${$(e.seconds)} s${n?` (${n} s)`:""}, ${t}; on screen ${$(e.onScreen)} s${e.size?`; ${String(e.size.px)} px, ${String(e.size.phone)} pt on a ${String(e.options.phone[0])}-point phone${e.size.lowercase?`, lowercase ${String(e.size.lowercase.px)} px, ${String(e.size.lowercase.phone)} pt`:""}`:""}`}}case"speech-on-screen":{const e=s.data;return{key:s.part??"",value:e.words-e.shown,line:`${String(e.shown)} of ${u(e.words,"word")} said show as text${e.unshown.length>0?`; not shown: ${e.unshown.slice(0,12).join(" ")}`:""}`}}case"words-on-screen":{const e=s.data,t=e.steps.map(n=>`${$(n.t)} s ${String(n.words)}`);return{key:s.part??"",value:e.words,line:`at most ${u(e.words,"word")} (${String(e.chars)} characters) whole at once, in ${u(e.texts,"text")}, ${$(e.from)}–${$(e.until)} s; from each change on: ${t.join(", ")}`}}case"footage-scale":{const e=s.data,t=e.shown[0]===e.source[0]&&e.shown[1]===e.source[1]?"":`, ${String(e.shown[0])}×${String(e.shown[1])} of it shown`,{min:n,max:a}=e,r=n.scale===a.scale?`${String(a.scale)}× throughout (${a.from.join(", ")})`:`${String(n.scale)}×–${String(a.scale)}× (smallest at ${$(n.t)} s: ${n.from.join(", ")}; largest at ${$(a.t)} s: ${a.from.join(", ")})`;return{key:`${e.file}|${s.part??""}`,value:a.scale,line:`${e.file} (${String(e.source[0])}×${String(e.source[1])}${t}): ${r}`}}case"free-bands":{const e=s.data,t=r=>r.length===0?"none":r.map(([i,d])=>`${String(i)}–${String(d)}`).join(", "),n=r=>r.length===0?"none":r.map(i=>`${String(i.y[0])}–${String(i.y[1])} (${String(i.height)} px)`).join(", "),a=(r,i)=>"missing"in i?` ${r}: not measured (no ${i.missing==="face-track"?"face track":"person matte"} for ${i.files.join(", ")} in the media index)`:` ${r}${i.speaker===void 0?"":` (face ${String(i.speaker)})`}, seen at ${String(i.seen)} of ${String(e.moments.length)} moments: rows ${t(i.rows)}; free ${n(i.bands)}`;return{key:"bands",value:e.bands.reduce((r,i)=>r+i.height,0),line:[`inside the covered edges: rows ${String(e.content.y[0])}–${String(e.content.y[1])}, columns ${String(e.content.x[0])}–${String(e.content.x[1])}${e.profile?` (${e.profile})`:""}, ${String(e.moments.length)} moments ${$(e.moments[0]??0)}–${$(e.moments.at(-1)??0)} s; free of everything measured: ${n(e.bands)}`,a("face box",e.face),a("person matte",e.person)].join(`
3
- `)}}case"flat-frames":{const e=s.data;return{key:String(e.start),value:e.frames,line:`${String(e.frames)}${e.longer?" or more":""} frames of flat ${e.shade} (luma ${String(e.luma)}) to ${$(e.end)} s (flat: luminance deviation at most ${String(e.options.maxStd)}; runs of ${String(e.options.minFrames)} frames or more, more than ${String(e.options.sameLuma)} levels from the picture around)`}}case"still-picture":{const e=s.data,t=e.footage?`; footage not compared: ${e.footage.map(n=>`${n.file} ${$(n.start)}–${$(n.end)} s`).join(", ")}`:"";return{key:String(e.start),value:e.seconds,line:`${$(e.seconds)} s still, ${$(e.start)}–${$(e.end)} s${e.toEnd?" (to the last frame)":""}, through ${e.parts.join(", ")}: at most ${b(e.change)} of the picture changed from its start (mean ${String(e.mean)} of 255), ${b(e.drift.change)} at its end${t}`}}case"cut-seam":{const e=s.data,t=r=>`${r.turn===void 0?"":`turns ${String(r.turn)}°, `}${String(r.speed[0])} → ${String(r.speed[1])} px/s`,n=e.transition?`, a ${e.transition.type} ${$(e.transition.start)}–${$(e.transition.end)} s between`:"",a=[`${e.before.part} → ${e.after.part}${n}: the largest moving thing ${t(e.change.lead)}; everything moving ${t(e.change.overall)}${e.change.picture?`; the picture ${t(e.change.picture)}`:""}`,B("before",e.before),B("after",e.after),...e.carriers.map(r=>` named alike: ${r.name} ${g(r.before)} → ${g(r.after)}, ${String(r.distance)} px apart, size ×${String(r.size)}, ${String(r.speed[0])} → ${String(r.speed[1])} px/s`)];return{key:String(e.at),value:Math.abs(e.change.lead.turn??0),line:a.join(`
4
- `)}}case"flash":{const e=s.data,t=n=>`${b(n.share)} (mean ${String(n.mean)})`;return{key:String(e.start),value:e.foreign.share,line:`${u(e.frames,"frame")} ${$(e.start)}–${$(e.end)} s${e.join===void 0?"":` (the join at ${$(e.join)} s)`}${e.transition?` in a ${e.transition.type} from ${e.transition.from} to ${e.transition.to}`:""}: ${t(e.foreign)} of its pixels outside what the frames beside it span; against the frame before ${t(e.before)}, the frame after ${t(e.after)}, those two against each other ${t(e.across)}${e.own?`; on its own side of the cut (${e.own.side} it), against the next frame of its shot ${t(e.own.step)}, while that shot changes ${t(e.own.usual)} a frame`:""}`}}case"music-length":{const e=s.data;return{key:e.file,value:e.without,line:`${e.file}: ${e.music.toFixed(1)} s of music${e.from===void 0?"":` (from ${e.from.toFixed(1)} s in)`}${e.loop?", looped":""}, ${e.video.toFixed(1)} s of video${e.without>0?`, the last ${e.without.toFixed(1)} s without music`:""}${e.estimated?" (put together from its parts)":""}`}}case"join-loudness":{const e=s.data,t=e.estimated?" (put together from its parts)":"";return"missing"in e?{key:`${e.before}|${e.after}`,value:0,line:`${e.before} → ${e.after}: not measured (${e.missing}: ${e.why})${t}`}:{key:`${e.before}|${e.after}`,value:Math.abs(e.difference),line:`${e.before} → ${e.after}: ${e.beforeLufs.toFixed(1)} → ${e.afterLufs.toFixed(1)} LUFS (${e.difference>0?"+":""}${e.difference.toFixed(1)} LU)${t}`}}case"matrix-coverage":{const e=s.data;return{key:"matrix",value:e.candidates.filter(n=>n.combos.length===0).length,line:[`${e.choice==="combos"?"named in matrix.combos":e.pick===void 0?"every combo asked for":`pick ${String(e.pick)}`}; ${e.possible===void 0?"possible not counted":`${String(e.possible)} possible`}, ${String(e.chosen)} chosen`,...e.candidates.map(n=>` ${n.slot}=${n.candidate}: ${n.combos.length>0?n.combos.join(", "):"in no combo"}`)].join(`
2
+ import{FACT_KINDS as T,comboKey as H}from"@allyhub-next/video-core";import{plural as u}from"./plural.js";const j=s=>`"${s.length>40?`${s.slice(0,40)}…`:s}"`,p=s=>`[${s.join(",")}]`,m=s=>`${String(Math.round(s*100))}%`,b=s=>`${(s*100).toFixed(1)}%`,k=s=>`${String(Math.round(s*1e4)/100)}%`,$=s=>s.toFixed(2),y=s=>`${s.layer}${s.z==="behind-person"?" (behind)":s.z==="overlay"?" (overlay)":""} ${j(s.text)} ${p(s.box)}${s.opacity===void 0?"":` at ${m(s.opacity)} opacity`}`,O=s=>y({...s,box:s.ink??s.box});function U(s){return s.output===void 0?s.piece:[s.piece,s.combo?H(s.combo):void 0,s.format].filter(e=>e!==void 0&&e!=="").join(" · ")}function z(s,e,t){const n=F(s,e.start),a=s.t===void 0?0:s.t-e.start;return{line:`${e.layer} ${n(e.start)}–${n(e.end)} s: ${t}`,alike:{what:`${e.layer}: ${t}`,span:[e.start+a,e.end+a]}}}const v=s=>`${s.sheet===void 0?"":`${s.sheet}!`}${s.cell??""}`;function J(s){switch(s.kind){case"sheet-error":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:e.origin?1:0,line:`${v(e)} ${e.code}${e.formula===void 0?"":` ${e.formula}`}${e.origin?", starts here":", read from another"}`}}case"sheet-number":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:e.numbers.length,line:`${v(e)}${e.cells>1?` and ${String(e.cells-1)} more`:""} ${e.formula}: ${e.numbers.map(t=>`${String(t.value)} (${t.in})`).join(", ")}`}}case"sheet-unlike":{const e=s.data;return{key:`${e.sheet}!${e.cell}:${e.along}`,value:e.run,line:`${v(e)} ${e.holds}, its ${e.along} ${e.neighbour} (${String(e.run)} alike)`}}case"sheet-exception":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${v(e)} ${e.table}[${e.column}] holds ${JSON.stringify(e.text)}`}}case"sheet-unused":{const e=s.data;return{key:`${e.what}:${e.sheet??""}!${e.name}`,value:1,line:`${e.what} ${e.sheet===void 0?"":`${e.sheet}!`}${e.name}${e.value===void 0?"":` ${e.value}`}`}}case"sheet-invalid":{const e=s.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${v(e)} ${JSON.stringify(e.value)} under the ${e.rule} validation on ${e.range}`}}case"sheet-typed":{const e=s.data;return{key:`${e.sheet}!${e.cell}:${String(e.value)}`,value:1,line:`${v(e)} ${String(e.value)}, in neither sheet.ts nor its data`}}case"sheet-ordinary":{const e=s.data;return{key:e.sheet,value:1,line:`${e.sheet}: sheet.ts makes it and sheet.yaml holds it; sheet.yaml's stands`}}case"text-speaker":{const e=s.data,t=[e.face?`covers ${m(e.face.ofFace)} of the face ${p(e.face.box)} (${m(e.face.ofText)} of the text's box)`:"",e.person?`${m(e.person.ofText)} of the text's box over the person (${e.person.file})`:""].filter(Boolean);return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(e.face?.ofFace??0,e.person?.ofText??0),line:`${y(e.text)}: ${t.join("; ")}`}}case"text-off-frame":{const e=s.data;return{key:`${e.text.layer}|${e.text.text}`,value:e.share,line:`${y({...e.text,box:e.glyphs})}: ${k(e.share)} of its glyphs outside the ${String(e.frame[0])}×${String(e.frame[1])} frame (${String(e.outside)} px), ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}`}}case"text-contrast":{const e=s.data,t=`${String(e.size)} px, weight ${String(e.weight)}${e.shadow?", a shadow":""}${e.stroke?", a stroke":""}`,n=e.footage?`; footage under it, not drawn here: ${e.footage.join(", ")}`:"";if("missing"in e)return{key:`${e.text.layer}|${e.text.text}`,value:0,line:`${y(e.text)}: not measured (${e.missing}: ${e.why}; ${t})${n}`};const a=r=>`${r.toFixed(2)}:1`;return{key:`${e.text.layer}|${e.text.text}`,value:1/Math.max(1,e.ratio.min),line:`${y(e.text)}: ${a(e.ratio.min)} lowest, ${a(e.ratio.low)} at the ${String(e.options.percentile)}th percentile, ${a(e.ratio.median)} median; ${e.fill.join(", ")} over ${e.background.median} (median; ${e.background.atMin} at the lowest), ${t}${e.under?` (its outline counted behind it; under the outline ${a(e.under.ratio.min)} lowest, ${a(e.under.ratio.median)} median, over ${e.under.background.median})`:""}, ${String(e.pixels)} px${e.picture==="final"?", final picture":""}${n}`}}case"text-covered":{const e=s.data,t=e.covered;return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(...e.edges.map(n=>n.px)),line:`${y(e.text)}: ${e.edges.map(n=>`${String(n.px)} px into the ${n.side}`).join(", ")} (${e.profile??"covered"}: top ${String(t.top)}, bottom ${String(t.bottom)}, left ${String(t.left)}, right ${String(t.right)})`}}case"text-overlap":{const e=s.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.layer}|${e.b.text}`,value:e.share,line:`${y(e.a)} × ${y(e.b)}: ${m(e.share)} of the smaller box`}}case"text-overlap-own":{const e=s.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.text}`,value:e.share,line:`${O(e.a)} × ${O(e.b)}: ${m(e.share)} of the smaller glyph box`}}case"text-outside":{const e=s.data;return{key:`${e.text.layer}|${e.text.text}|${p(e.container.box)}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${O(e.text)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")} of the box ${p(e.container.box)} (${e.container.paint.join(", ")})`}}case"text-time":{const e=s.data,t=e.seconds>0?`${(e.words/e.seconds).toFixed(1)} words/s`:"never whole",n=e.spans.map(([a,r])=>`${$(a)}–${$(r)}`).join(", ");return{key:`${e.text.layer}|${e.text.text}|${p(e.text.box)}`,value:e.seconds>0?e.words/e.seconds:e.words,line:`${y(e.text)}: ${u(e.words,"word")} (${String(e.chars)} characters) whole for ${$(e.seconds)} s${n?` (${n} s)`:""}, ${t}; on screen ${$(e.onScreen)} s${e.size?`; ${String(e.size.px)} px, ${String(e.size.phone)} pt on a ${String(e.options.phone[0])}-point phone${e.size.lowercase?`, lowercase ${String(e.size.lowercase.px)} px, ${String(e.size.lowercase.phone)} pt`:""}`:""}`}}case"speech-on-screen":{const e=s.data;return{key:s.part??"",value:e.words-e.shown,line:`${String(e.shown)} of ${u(e.words,"word")} said show as text${e.unshown.length>0?`; not shown: ${e.unshown.slice(0,12).join(" ")}`:""}`}}case"words-on-screen":{const e=s.data,t=e.steps.map(n=>`${$(n.t)} s ${String(n.words)}`);return{key:s.part??"",value:e.words,line:`at most ${u(e.words,"word")} (${String(e.chars)} characters) whole at once, in ${u(e.texts,"text")}, ${$(e.from)}–${$(e.until)} s; from each change on: ${t.join(", ")}`}}case"footage-scale":{const e=s.data,t=e.shown[0]===e.source[0]&&e.shown[1]===e.source[1]?"":`, ${String(e.shown[0])}×${String(e.shown[1])} of it shown`,{min:n,max:a}=e,r=n.scale===a.scale?`${String(a.scale)}× throughout (${a.from.join(", ")})`:`${String(n.scale)}×–${String(a.scale)}× (smallest at ${$(n.t)} s: ${n.from.join(", ")}; largest at ${$(a.t)} s: ${a.from.join(", ")})`;return{key:`${e.file}|${s.part??""}`,value:a.scale,line:`${e.file} (${String(e.source[0])}×${String(e.source[1])}${t}): ${r}`}}case"free-bands":{const e=s.data,t=r=>r.length===0?"none":r.map(([i,d])=>`${String(i)}–${String(d)}`).join(", "),n=r=>r.length===0?"none":r.map(i=>`${String(i.y[0])}–${String(i.y[1])} (${String(i.height)} px)`).join(", "),a=(r,i)=>"missing"in i?` ${r}: not measured (no ${i.missing==="face-track"?"face track":"person matte"} for ${i.files.join(", ")} in the media index)`:` ${r}${i.speaker===void 0?"":` (face ${String(i.speaker)})`}, seen at ${String(i.seen)} of ${String(e.moments.length)} moments: rows ${t(i.rows)}; free ${n(i.bands)}`;return{key:"bands",value:e.bands.reduce((r,i)=>r+i.height,0),line:[`inside the covered edges: rows ${String(e.content.y[0])}–${String(e.content.y[1])}, columns ${String(e.content.x[0])}–${String(e.content.x[1])}${e.profile?` (${e.profile})`:""}, ${String(e.moments.length)} moments ${$(e.moments[0]??0)}–${$(e.moments.at(-1)??0)} s; free of everything measured: ${n(e.bands)}`,a("face box",e.face),a("person matte",e.person)].join(`
3
+ `)}}case"flat-frames":{const e=s.data;return{key:String(e.start),value:e.frames,line:`${String(e.frames)}${e.longer?" or more":""} frames of flat ${e.shade} (luma ${String(e.luma)}) to ${$(e.end)} s (flat: luminance deviation at most ${String(e.options.maxStd)}; runs of ${String(e.options.minFrames)} frames or more, more than ${String(e.options.sameLuma)} levels from the picture around)`}}case"still-picture":{const e=s.data,t=e.footage?`; footage not compared: ${e.footage.map(n=>`${n.file} ${$(n.start)}–${$(n.end)} s`).join(", ")}`:"";return{key:String(e.start),value:e.seconds,line:`${$(e.seconds)} s still, ${$(e.start)}–${$(e.end)} s${e.toEnd?" (to the last frame)":""}, through ${e.parts.join(", ")}: at most ${k(e.change)} of the picture changed from its start (mean ${String(e.mean)} of 255), ${k(e.drift.change)} at its end${t}`}}case"cut-seam":{const e=s.data,t=r=>`${r.turn===void 0?"":`turns ${String(r.turn)}°, `}${String(r.speed[0])} → ${String(r.speed[1])} px/s`,n=e.transition?`, a ${e.transition.type} ${$(e.transition.start)}–${$(e.transition.end)} s between`:"",a=[`${e.before.part} → ${e.after.part}${n}: the largest moving thing ${t(e.change.lead)}; everything moving ${t(e.change.overall)}${e.change.picture?`; the picture ${t(e.change.picture)}`:""}`,B("before",e.before),B("after",e.after),...e.carriers.map(r=>` named alike: ${r.name} ${p(r.before)} → ${p(r.after)}, ${String(r.distance)} px apart, size ×${String(r.size)}, ${String(r.speed[0])} → ${String(r.speed[1])} px/s`)];return{key:String(e.at),value:Math.abs(e.change.lead.turn??0),line:a.join(`
4
+ `)}}case"flash":{const e=s.data,t=n=>`${k(n.share)} (mean ${String(n.mean)})`;return{key:String(e.start),value:e.foreign.share,line:`${u(e.frames,"frame")} ${$(e.start)}–${$(e.end)} s${e.join===void 0?"":` (the join at ${$(e.join)} s)`}${e.transition?` in a ${e.transition.type} from ${e.transition.from} to ${e.transition.to}`:""}: ${t(e.foreign)} of its pixels outside what the frames beside it span; against the frame before ${t(e.before)}, the frame after ${t(e.after)}, those two against each other ${t(e.across)}${e.own?`; on its own side of the cut (${e.own.side} it), against the next frame of its shot ${t(e.own.step)}, while that shot changes ${t(e.own.usual)} a frame`:""}`}}case"music-length":{const e=s.data;return{key:e.file,value:e.without,line:`${e.file}: ${e.music.toFixed(1)} s of music${e.from===void 0?"":` (from ${e.from.toFixed(1)} s in)`}${e.loop?", looped":""}, ${e.video.toFixed(1)} s of video${e.without>0?`, the last ${e.without.toFixed(1)} s without music`:""}${e.estimated?" (put together from its parts)":""}`}}case"join-loudness":{const e=s.data,t=e.estimated?" (put together from its parts)":"";return"missing"in e?{key:`${e.before}|${e.after}`,value:0,line:`${e.before} → ${e.after}: not measured (${e.missing}: ${e.why})${t}`}:{key:`${e.before}|${e.after}`,value:Math.abs(e.difference),line:`${e.before} → ${e.after}: ${e.beforeLufs.toFixed(1)} → ${e.afterLufs.toFixed(1)} LUFS (${e.difference>0?"+":""}${e.difference.toFixed(1)} LU)${t}`}}case"matrix-coverage":{const e=s.data;return{key:"matrix",value:e.candidates.filter(n=>n.combos.length===0).length,line:[`${e.choice==="combos"?"named in matrix.combos":e.pick===void 0?"every combo asked for":`pick ${String(e.pick)}`}; ${e.possible===void 0?"possible not counted":`${String(e.possible)} possible`}, ${String(e.chosen)} chosen`,...e.candidates.map(n=>` ${n.slot}=${n.candidate}: ${n.combos.length>0?n.combos.join(", "):"in no combo"}`)].join(`
5
5
  `)}}case"generated-media":{const e=s.data,t=n=>n.start===void 0?"":n.end===void 0||n.end===n.start?` at ${$(n.start)} s`:` ${$(n.start)}–${$(n.end)} s`;return{key:"generated",value:e.files.length,line:[`${u(e.files.length,"generated file")}${e.duration===void 0?"":` in ${e.duration.toFixed(1)} s of video`}${e.estimated?" (put together from its parts)":""}`,...e.files.map(n=>` ${n.file} (${[n.kind,n.tool,n.model,n.at].filter(Boolean).join(", ")}${n.mismatch?"; its record is another file's":""})${n.seconds===void 0?"":`, ${n.seconds.toFixed(1)} s`}: ${n.uses.map(a=>`${a.as}${a.part?` in ${a.part}`:""}${t(a)}`).join("; ")}`)].join(`
6
- `)}}case"gen-mismatch":{const e=s.data;return{key:e.file,value:1,line:e.why==="sha256"?`${e.file}: ${e.record} records sha256 ${e.recorded.slice(0,12)}…, the file's is ${e.actual.slice(0,12)}… (the record was moved without its file, or the file changed)`:`${e.file}: ${e.record} cannot be read (${e.error})`}}case"graphics-under-footage":{const e=s.data;return{key:e.layers.map(t=>t.component).join("+"),value:e.covered,line:`${e.layers.map(t=>`${t.component} ${$(t.start)}–${$(t.end)} s`).join(", ")} under ${e.footage.map(t=>`${t.file} ${g(t.box)} (${m(t.frame)} of the frame, ${$(t.start)}–${$(t.end)} s)`).join(", ")}`}}case"fallback":{const e=s.data,t={"face-track":"no face track",face:`no face ${String(e.face??"")} in the face track`,"person-matte":"no person matte","own-footage":"no footage of the part's own take",tempo:"no tempo (no bpm given, none measured)"}[e.missing],n={reframe:"the reframe",speaker:"the layer's speaker","behind-person":"a layer behind the person",background:"the footage's background",snap:"music.snap","music-play":"the music's beats and bars (music.play, music.loop)","music-end":"music.end"}[e.for],a={centred:"drawn centred","in-front":"drawn in front",unprocessed:"the footage shown as it is","not-snapped":"parts without speech keep their own length","played-once":"the file played once","film-end":"the music ends with the film"}[e.fallback];return{key:`${e.file??""}|${e.missing}|${String(e.face??"")}`,value:1,line:`${e.file?`${e.file}: `:""}${t} for ${n}; ${a}`}}case"scenery-contact":{const e=s.data,t=e.missing?[`not measured: ${e.missing}`]:e.crossing?[`crossing along ${f(e.curve??0)}`,e.depth!==void 0?`at least ${f(e.depth)} deep`:"",e.lift!==void 0?K(e.a,e.b,e.lift,"up"):"",e.volume!==void 0?`sharing ${e.volume.toExponential(3)} m³`:e.volumeMissing?`volume not measured: ${e.volumeMissing}`:""]:e.within?[`${e.within==="a in b"?e.a:e.b} inside the other`,e.depth!==void 0?`at least ${f(e.depth)} deep`:""]:[e.area!==void 0?`touching, sharing ${e.area.toFixed(4)} m²`:`${f(e.gap??0)} apart`];return{key:`${e.layer}|${e.a}|${e.b}`,value:e.depth??e.curve??0,...z(s,e,`${e.a} and ${e.b}: ${t.filter(Boolean).join("; ")}`)}}case"scenery-support":{const e=s.data,t=e.gap===null?"nothing below":e.gap<0?`sunk ${f(-e.gap)}`:`${f(e.gap)} above`;return{key:`${e.layer}|${e.object}`,value:Math.abs(e.gap??0),...z(s,e,`${e.object}: ${t}${e.on.length?` ${e.on.join(", ")}`:""}; ${m(e.footprintShare)} of its footprint in contact${e.margin!==void 0?`; centre of mass ${f(Math.abs(e.margin))} ${e.margin>=0?"inside":"outside"} the contact`:""}${e.nothingBelow?`; nothing below in ${String(e.nothingBelow)} columns`:""}`)}}case"scenery-bake":{const e=s.data,t=e.laid?`bake laid (made on ${e.bakedOn??e.renderer})`:`drawn unbaked: no bake for its scene (digest ${e.digest}, on ${e.renderer} or the CPU); ${e.elsewhere?.length?`one was made only on ${e.elsewhere.join(", ")}, which this renderer does not lay`:e.stale?"it was baked before, so the scene changed since":"it was never baked"}; ${e.command??"allyhub scenery bake"} makes it`;return{key:`${e.layer}|${e.digest}`,value:e.laid?0:1,...z(s,e,t)}}case"mesh-health":{const e=s.data,t=[e.closed?"closed":"open",e.openEdges?`${String(e.openEdges)} open edges`:"",e.nonManifoldEdges?`${String(e.nonManifoldEdges)} non-manifold edges`:"",e.degenerate?`${String(e.degenerate)} triangles without area`:"",e.selfIntersections?`${String(e.selfIntersections)} self-intersecting pairs`:""].filter(Boolean);return{key:`${e.layer}|${e.object}`,value:e.openEdges+e.nonManifoldEdges+e.degenerate+(e.selfIntersections??0),...z(s,e,`${e.object}: ${t.join(", ")}`)}}case"camera-clearance":{const e=s.data,t=j(s,e.start),n=[e.nearest?`nearest surface ${e.nearest.object} ${f(e.nearest.distance)} at ${t(e.nearest.t)} s`:"",...e.inside.map(a=>`inside ${a.object}${a.closed?"":" (open: a vote)"} from ${t(a.from)} to ${t(a.to)} s`),...e.nearCut.map(a=>`near plane cuts ${a.object} from ${t(a.from)} to ${t(a.to)} s`)].filter(Boolean);return{key:`${e.layer}|${String(e.start)}`,value:e.inside.length+e.nearCut.length,line:`${e.layer} ${t(e.start)}–${t(e.end)} s: ${n.join("; ")}`}}case"camera-motion":{const e=s.data,t=e.peaks,n=j(s,e.start),a=(r,i)=>`${r.peak.toFixed(2)} ${i} at ${n(r.at)} s`;return{key:`${e.layer}|${String(e.start)}`,value:t.speed.peak,line:`${e.layer} ${n(e.start)}–${n(e.end)} s: ${f(e.length)} travelled; speed ${a(t.speed,"m/s")}, truck ${a(t.truck,"m/s")}, pedestal ${a(t.pedestal,"m/s")}, dolly ${a(t.dolly,"m/s")}, pan ${a(t.pan,"°/s")}, tilt ${a(t.tilt,"°/s")}, roll ${a(t.roll,"°/s")}, zoom ${a(t.zoom,"stops/s")}, view turning ${a(t.turn,"°/s")}, acceleration ${a(t.acceleration,"m/s²")}, jerk ${a(t.jerk,"m/s³")}; smoothness ${e.smoothness===null?"not measured":e.smoothness.toFixed(2)}; largest step ${f(e.step.distance)} and ${e.step.angle.toFixed(2)}° at ${n(e.step.at)} s${e.cuts?.length?`; ${u(e.cuts.length,"cut")} at ${e.cuts.map(r=>`${n(r)} s`).join(", ")} (not measured across)`:""} (${String(e.fps)} samples a second)`}}case"scenery-screen":{const e=s.data,t=j(s,e.start),n=(i,d,c=1)=>i?`${(i.least*c).toFixed(2)}${d} at ${t(i.leastAt)} s to ${(i.most*c).toFixed(2)}${d} at ${t(i.mostAt)} s`:"not shown",a=e.shown.length===0?"never on the frame":`on the frame ${e.shown.map(i=>`${t(i.from)}–${t(i.to)} s`).join(", ")}`,r=e.hidden?.by.map(i=>`${i.object} ${String(Math.round(i.share*100))}%`).join(", ");return{key:`${e.layer} ${e.screen}|${String(e.start)}`,value:e.scale?.least??0,line:`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) ${t(e.start)}–${t(e.end)} s: ${a}; share of the box ${n(e.share,"%",100)}; scale ${n(e.scale,"×")} frame px per content px; angle ${n(e.angle,"°")}; hidden ${n(e.hidden,"%",100)}${r?` (at the most by ${r})`:""}${e.blur?`; blur ${n(e.blur," px")} (the circle of confusion across it)`:""}${e.moire?`; moiré ${n(e.moire,"%",100)} deep${e.moire.period!==void 0?`, bands ${e.moire.period.toFixed(1)} px apart at the deepest`:""}`:""}${e.drawn?e.drawn.in==="scenery"?`; drawn in the scenery at ${String(e.drawn.scale)} of the frame's pixels each way`:"; drawn over the scenery":""}${e.text?`; smallest text ${String(e.text.size)} px, ${String(e.text.onFrame[0])}–${String(e.text.onFrame[1])} px on the frame as drawn`:""}${e.stretches?.length&&e.shown.length>0?`; between cues (scenery s → its s): ${e.stretches.map(i=>`${i.from.toFixed(2)}–${i.to.toFixed(2)} → ${i.video[0].toFixed(2)}–${i.video[1].toFixed(2)} at ${i.speed.toFixed(2)}×`).join(", ")}`:""}`}}case"scenery-screen-fidelity":{const e=s.data,t=j(s,e.start),n=`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) at ${t(e.at)} s`,a=`${e.layer} ${e.screen}|${String(e.start)}|${String(e.at)}`;if(e.missing!==void 0||!e.deltaE)return{key:a,value:0,line:`${n}: not compared: ${e.missing??"no numbers"}`};const r=e.elements??[],i=(e.regions??[]).map(o=>{const l=o.elements.flatMap(p=>{const h=r[p];return h?[`${h.kind} ${h.name} ${g(h.box)}`]:[]});return`${g(o.box)} ${v(o.share)} (ΔE ${o.meanDeltaE.toFixed(1)} mean, ${o.maxDeltaE.toFixed(1)} most)${l.length>0?` over ${l.join(", ")}`:""}`}),d=new Map;for(const o of r)d.set(o.kind,(d.get(o.kind)??0)+1);const c=e.texture;return{key:a,value:e.share??0,line:`${n}: ${v(e.share??0)} of its pixels differ from its element drawn flat by more than ΔE ${String(e.tolerance)} (ΔE ${e.deltaE.mean.toFixed(2)} mean, ${e.deltaE.p95.toFixed(2)} at the 95th percentile, ${e.deltaE.max.toFixed(1)} most)${c?`; its texture ${String(c.of[0])}×${String(c.of[1])} px for an element of ${String(c.element[0])}×${String(c.element[1])}, compared at its level ${String(c.level)} (${String(c.size[0])}×${String(c.size[1])})`:""}${i.length>0?`; most in ${i.join("; ")}`:""}${d.size>0?`; in its content, of what the scenery's picture can draw otherwise: ${[...d].map(([o,l])=>`${String(l)} ${o}`).join(", ")}`:""} (boxes in content px)`}}case"text-overflow":{const e=s.data;return{key:`${e.shape}|${e.text}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${e.shape} ${M(e.text)} ${g(e.box)}: its glyphs ${g(e.glyphs)} ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}; ${String(e.past)} of ${u(e.lines,"line")} past it${e.scale===void 0?"":`, shrunk to ${m(e.scale)}`}`}}case"shape-off-slide":{const e=s.data;return{key:e.shape,value:e.share,line:`${e.shape} ${g(e.box)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}, ${v(e.share)} of it outside the slide`}}case"shape-overlap":{const e=s.data;return{key:`${e.a}|${e.b}`,value:e.share,line:`${e.a} and ${e.b}: ${String(e.area)} px² both cover, ${v(e.share)} of the smaller`}}case"near-alignment":{const e=s.data;return{key:`${e.a}|${e.b}|${e.line}`,value:e.gap,line:`${e.a} and ${e.b==="slide"?"the slide":e.b}: ${e.line==="centre-x"?"horizontal centres":e.line==="centre-y"?"vertical centres":`${e.line} edges`} ${String(e.gap)} pt apart`}}case"placement-drift":{const e=s.data;return{key:`${e.layout}|${e.shape}`,value:e.places.length,line:`${e.shape} on "${e.layout}": ${e.places.map(t=>`${g(t.frame)} pt on ${t.slides.join(", ")}`).join("; ")}`}}case"type-in-use":{const e=s.data;return{key:"type",value:e.type.length,line:`${u(e.type.length,"size")}, the smallest ${String(e.smallest)} pt: ${e.type.map(t=>`${String(t.size)} pt weight ${String(t.weight)} on ${u(t.slides,"slide")} (${u(t.shapes,"shape")})`).join("; ")}`}}case"read-size":{const e=s.data;return{key:`${e.shape}|${e.text}`,value:1/Math.max(.1,e.screen?.arcmin??e.size),line:`${e.shape} ${M(e.text)}: ${String(e.size)} pt${e.xHeight===void 0?"":`, x ${String(e.xHeight)} pt`}${e.screen?`; ${e.screen.by==="x"?"its lowercase x":"its characters"} ${String(e.screen.mm)} mm on the screen, ${String(e.screen.arcmin)} arcmin from the farthest seat`:""}; ${String(e.phone)} pt on the phone`}}case"words-on-slide":{const e=s.data;return{key:"words",value:e.words,line:`${u(e.words,"word")}, ${u(e.lines,"line")}, ${u(e.texts,"text")}`}}case"picture-resolution":{const e=s.data;return{key:e.shape,value:e.scale,line:`${e.shape} ${g(e.box)}: ${String(e.shown[0])}×${String(e.shown[1])} of its ${String(e.source[0])}×${String(e.source[1])} px drawn ${String(e.scale)}× (${String(e.ppi)} ppi on the slide)${Math.abs(e.stretch)>.005?`, stretched ${v(e.stretch)}`:""}`}}case"chart-data":{const e=s.data,t=e.low===void 0||e.high===void 0?"no numbers":`${String(e.low)} to ${String(e.high)}`;return{key:e.shape,value:e.series,line:`${e.shape}: ${e.type}, ${String(e.categories)} categories, ${String(e.series)} series, ${t}; ${e.source===void 0?"its numbers are written in the deck":`from ${e.source}`}`}}case"table-grown":{const e=s.data;return{key:e.shape,value:e.drawn-e.set,line:`${e.shape}: ${String(e.drawn)} pt tall, set ${String(e.set)} pt; ${e.rows.map(t=>`row ${String(t.row+1)} ${String(t.set)} → ${String(t.drawn)} pt`).join(", ")}`}}case"shape-hidden":{const e=s.data;return{key:`${e.shape}|${e.by??""}`,value:1,line:e.by===void 0?`${e.shape}: no step of the slide shows it`:`${e.shape}: covered whole by ${e.by}`}}case"deck-fonts":{const e=s.data,t=e.fonts.filter(n=>!n.standard);return{key:"fonts",value:t.length,line:`${e.fonts.map(n=>`${n.name} (${n.where}${n.standard?"":", not standard"})`).join(", ")}${t.length>0?`: ${t.map(n=>n.name).join(", ")} goes in the file when the project has its font files (render says what could not); an app that does not read a file's fonts replaces it`:""}`}}case"cut-in-word":{const e=s.data;return{key:`${e.source}|${e.side}|${String(e.at)}`,value:Math.min(e.at-e.wordStart,e.wordEnd-e.at),line:`${e.source}: the stretch's ${e.side} at ${$(e.at)} s cuts "${e.word}" (${$(e.wordStart)}–${$(e.wordEnd)} s)`}}}}function j(s,e){const t=s.t===void 0?0:s.t-e;return n=>(n+t).toFixed(2)}function K(s,e,t,n){const[a,r]=t.b<t.a?[[e,t.b],[s,t.a]]:[[s,t.a],[e,t.b]];return`moving ${a[0]} ${f(a[1])} ${n} (${r[0]} ${f(r[1])}) clears them`}const f=s=>Math.abs(s)<.1?`${(s*1e3).toFixed(1)} mm`:`${s.toFixed(3)} m`;function B(s,e){const t=a=>`${String(a.speed)} px/s${a.angle===void 0?"":` at ${String(a.angle)}°`}`,n=e.list.map(a=>`${a.layer} ${a.what}${a.name?` (${a.name})`:""} ${g(a.box)} ${t(a)}${a.scale!==0?`, size ${a.scale>0?"+":""}${String(Math.round(a.scale*100))}%/s`:""}`);return` ${s} (${e.part} ${$(e.from)}–${$(e.to)} s): ${String(e.moving)} of ${u(e.things,"thing")} moving${e.overall?`, together ${t(e.overall)}`:""}${e.picture?`; the picture ${t(e.picture)} (difference ${String(e.picture.still)} → ${String(e.picture.match)} after the shift)`:""}${n.length>0?`: ${n.join("; ")}`:""}`}function D(s,e){const t=s.data.text;if(typeof t!="object"||t===null||!("layer"in t))return;const n=t,a=`${w(n)}: `;if(e.startsWith(a))return{layer:n.layer,text:n.text,what:e.slice(a.length)}}const C=3,L=8;function P(s,e=!1){const t=new Map;for(const o of s){const l=J(o),p=`${o.part??""}|${l.key}`,h=t.get(p);if(!h){const S=D(o,l.line);t.set(p,{part:o.part,...o.output==="slides"?{slide:!0}:{},first:o.t,last:o.t,count:1,worst:l.value,line:l.line,...S?{text:S}:{},...l.alike?{alike:l.alike}:{}});continue}if(h.count++,o.t!==void 0&&(h.first=Math.min(h.first??o.t,o.t),h.last=Math.max(h.last??o.t,o.t)),l.value>h.worst){h.worst=l.value,h.line=l.line,l.alike&&(h.alike=l.alike);const S=D(o,l.line);S?h.text=S:delete h.text}}const n=[...t.values()],a=new Map;if(!e)for(const o of n){if(!o.text)continue;const l=`${o.text.layer}|${o.text.what}`;a.set(l,[...a.get(l)??[],o])}const r=new Map;if(!e)for(const o of n){if(!o.alike||o.count>1)continue;const l=o.alike.what;r.set(l,[...r.get(l)??[],o])}const i=[],d=new Set;for(const o of n){if(d.has(o))continue;const l=o.alike?r.get(o.alike.what):void 0;if(l&&l.length>1&&o.alike){for(const y of l)d.add(y);const x=Math.min(...l.map(y=>y.alike?.span[0]??0)),A=Math.max(...l.map(y=>y.alike?.span[1]??0)),F=l.flatMap(y=>y.part?[y.part]:[]),G=F.length>L?`${F.slice(0,L).join(", ")} and ${String(F.length-L)} more`:F.join(", ");i.push(` ${$(x)}–${$(A)} s, the same in ${String(l.length)} parts (${G}): ${o.alike.what} (--all lists each)`);continue}const p=o.text?a.get(`${o.text.layer}|${o.text.what}`):void 0;if(!p||p.length<2||!o.text){i.push(c(o));continue}for(const x of p)d.add(x);const h=p.flatMap(x=>[x.first,x.last].filter(A=>A!==void 0)),S=[...new Set(p.flatMap(x=>x.part?[x.part]:[]))],E=Math.min(...h),N=Math.max(...h),I=h.length===0?"":E===N?`${$(E)} s `:`${$(E)}–${$(N)} s `,W=p.slice(0,C).map(x=>M(x.text?.text??"")),_=p.length>C?` and ${String(p.length-C)} more`:"";i.push(` ${I}${S.length>0?`${S.length===1?S[0]??"":`${String(S.length)} parts`}: `:""}${o.text.layer}: ${String(p.length)} texts, each ${o.text.what}: ${W.join(", ")}${_} (--all lists each)`)}return i;function c(o){return` ${o.first===void 0||o.slide?"":o.count===1||o.first===o.last?`${$(o.first)} s `:`${$(o.first)}–${$(o.last??o.first)} s (${String(o.count)} moments, the most shown) `}${o.part?`${o.part}: `:""}${o.line}`}}function q(s){const e=s[0];if(e?.kind==="still-picture"){const n=e.data.options;return`; a frame every ${String(n.every)} s, ${String(n.width)} px wide, still while ${b(n.change)} or less of its pixels moved more than ${String(n.noise)} levels from the stretch's first; ${n.minSeconds>0?`${String(n.minSeconds)} s or longer`:"every stretch"}`}if(e?.kind==="text-contrast"){const n=e.data.options;return`; WCAG 2.1 ratios over the pixels behind each line's glyphs, the ${String(n.percentile)}th percentile, captured at ${String(n.scale)}× the frame's pixels, blocks at ${m(n.opacity)} opacity or more. For reference, WCAG AA asks 4.5:1 (3:1 for large text, 24 px or 18.66 px bold, in CSS pixels), AAA 7:1 (4.5:1)`}if(e?.kind==="cut-seam"){const n=e.data.options;return`; velocities over ${String(n.frames)} frames each side, at rest under ${String(n.rest)} px/s; ${n.top>0?`the ${String(n.top)} largest things listed each side, moving ones first`:"every thing listed"}; 0° is rightward, 90° downward, ±180° leftward`}if(e?.kind==="flash"){const n=e.data.options;return`; each frame against the frames beside it, ${String(n.width)} px wide, a pixel outside their span by more than ${String(n.noise)} levels, from ${b(n.change)} of the pixels; runs of up to ${u(n.frames,"frame")}; beside a cut, only past ${String(n.usual)}× its shot's usual change a frame`}if(e?.kind==="near-alignment"){const n=e.data.options;return`; lines more than ${String(n.aligned)} pt and up to ${String(n.within)} pt apart`}if(e?.kind==="placement-drift")return`; places more than ${String(e.data.options.drift)} pt apart`;if(e?.kind==="read-size"){const{room:n,phone:a}=e.data.options;return`${n?`; a screen ${String(n.screen)} m wide, the farthest seat ${String(n.distance)} m away`:""}; a ${String(a[0])}×${String(a[1])} pt phone`}if(e?.kind!=="text-time"&&e?.kind!=="words-on-screen")return"";const t=e.data.options;return`; whole: every text node at ${m(t.opacity)} opacity or more with ${m(t.shown)} or more of its glyphs showing, each part looked at every ${String(t.every)} s`}const R=20;export function formatFacts(s,e={}){const t=[],n=new Map;for(const a of s){const r=U(a);n.set(r,[...n.get(r)??[],a])}for(const[a,r]of n){const i=Object.keys(T).map(d=>[d,r.filter(c=>c.kind===d).length]).filter(([,d])=>d>0).map(([d,c])=>`${d} ${String(c)}`);t.push(`${a}: ${i.join(", ")}`);for(const d of Object.keys(T)){const c=r.filter(p=>p.kind===d);if(c.length===0)continue;const o=P(c,e.all===!0),l=e.all===!0||!d.startsWith("sheet-")?o:o.slice(0,R);t.push(` ${T[d]} (${d})${q(c)}:`,...l,...o.length>l.length?[` … ${String(o.length-l.length)} more (--all)`]:[])}}return t}export const textOnScreen=s=>`${w(s)}${s.fonts?` in ${s.fonts.join(", ")}`:""}`;
6
+ `)}}case"gen-mismatch":{const e=s.data;return{key:e.file,value:1,line:e.why==="sha256"?`${e.file}: ${e.record} records sha256 ${e.recorded.slice(0,12)}…, the file's is ${e.actual.slice(0,12)}… (the record was moved without its file, or the file changed)`:`${e.file}: ${e.record} cannot be read (${e.error})`}}case"graphics-under-footage":{const e=s.data;return{key:e.layers.map(t=>t.component).join("+"),value:e.covered,line:`${e.layers.map(t=>`${t.component} ${$(t.start)}–${$(t.end)} s`).join(", ")} under ${e.footage.map(t=>`${t.file} ${p(t.box)} (${m(t.frame)} of the frame, ${$(t.start)}–${$(t.end)} s)`).join(", ")}`}}case"fallback":{const e=s.data,t={"face-track":"no face track",face:`no face ${String(e.face??"")} in the face track`,"person-matte":"no person matte","own-footage":"no footage of the part's own take",tempo:"no tempo (no bpm given, none measured)"}[e.missing],n={reframe:"the reframe",speaker:"the layer's speaker","behind-person":"a layer behind the person",background:"the footage's background",snap:"music.snap","music-play":"the music's beats and bars (music.play, music.loop)","music-end":"music.end"}[e.for],a={centred:"drawn centred","in-front":"drawn in front",unprocessed:"the footage shown as it is","not-snapped":"parts without speech keep their own length","played-once":"the file played once","film-end":"the music ends with the film"}[e.fallback];return{key:`${e.file??""}|${e.missing}|${String(e.face??"")}`,value:1,line:`${e.file?`${e.file}: `:""}${t} for ${n}; ${a}`}}case"scenery-contact":{const e=s.data,t=e.missing?[`not measured: ${e.missing}`]:e.crossing?[`crossing along ${f(e.curve??0)}`,e.depth!==void 0?`at least ${f(e.depth)} deep`:"",e.lift!==void 0?K(e.a,e.b,e.lift,"up"):"",e.volume!==void 0?`sharing ${e.volume.toExponential(3)} m³`:e.volumeMissing?`volume not measured: ${e.volumeMissing}`:""]:e.within?[`${e.within==="a in b"?e.a:e.b} inside the other`,e.depth!==void 0?`at least ${f(e.depth)} deep`:""]:[e.area!==void 0?`touching, sharing ${e.area.toFixed(4)} m²`:`${f(e.gap??0)} apart`];return{key:`${e.layer}|${e.a}|${e.b}`,value:e.depth??e.curve??0,...z(s,e,`${e.a} and ${e.b}: ${t.filter(Boolean).join("; ")}`)}}case"scenery-support":{const e=s.data,t=e.gap===null?"nothing below":e.gap<0?`sunk ${f(-e.gap)}`:`${f(e.gap)} above`;return{key:`${e.layer}|${e.object}`,value:Math.abs(e.gap??0),...z(s,e,`${e.object}: ${t}${e.on.length?` ${e.on.join(", ")}`:""}; ${m(e.footprintShare)} of its footprint in contact${e.margin!==void 0?`; centre of mass ${f(Math.abs(e.margin))} ${e.margin>=0?"inside":"outside"} the contact`:""}${e.nothingBelow?`; nothing below in ${String(e.nothingBelow)} columns`:""}`)}}case"scenery-bake":{const e=s.data,t=e.laid?`bake laid (made on ${e.bakedOn??e.renderer})`:`drawn unbaked: no bake for its scene (digest ${e.digest}, on ${e.renderer} or the CPU); ${e.elsewhere?.length?`one was made only on ${e.elsewhere.join(", ")}, which this renderer does not lay`:e.stale?"it was baked before, so the scene changed since":"it was never baked"}; ${e.command??"allyhub scenery bake"} makes it`;return{key:`${e.layer}|${e.digest}`,value:e.laid?0:1,...z(s,e,t)}}case"mesh-health":{const e=s.data,t=[e.closed?"closed":"open",e.openEdges?`${String(e.openEdges)} open edges`:"",e.nonManifoldEdges?`${String(e.nonManifoldEdges)} non-manifold edges`:"",e.degenerate?`${String(e.degenerate)} triangles without area`:"",e.selfIntersections?`${String(e.selfIntersections)} self-intersecting pairs`:""].filter(Boolean);return{key:`${e.layer}|${e.object}`,value:e.openEdges+e.nonManifoldEdges+e.degenerate+(e.selfIntersections??0),...z(s,e,`${e.object}: ${t.join(", ")}`)}}case"camera-clearance":{const e=s.data,t=F(s,e.start),n=[e.nearest?`nearest surface ${e.nearest.object} ${f(e.nearest.distance)} at ${t(e.nearest.t)} s`:"",...e.inside.map(a=>`inside ${a.object}${a.closed?"":" (open: a vote)"} from ${t(a.from)} to ${t(a.to)} s`),...e.nearCut.map(a=>`near plane cuts ${a.object} from ${t(a.from)} to ${t(a.to)} s`)].filter(Boolean);return{key:`${e.layer}|${String(e.start)}`,value:e.inside.length+e.nearCut.length,line:`${e.layer} ${t(e.start)}–${t(e.end)} s: ${n.join("; ")}`}}case"camera-motion":{const e=s.data,t=e.peaks,n=F(s,e.start),a=(r,i)=>`${r.peak.toFixed(2)} ${i} at ${n(r.at)} s`;return{key:`${e.layer}|${String(e.start)}`,value:t.speed.peak,line:`${e.layer} ${n(e.start)}–${n(e.end)} s: ${f(e.length)} travelled; speed ${a(t.speed,"m/s")}, truck ${a(t.truck,"m/s")}, pedestal ${a(t.pedestal,"m/s")}, dolly ${a(t.dolly,"m/s")}, pan ${a(t.pan,"°/s")}, tilt ${a(t.tilt,"°/s")}, roll ${a(t.roll,"°/s")}, zoom ${a(t.zoom,"stops/s")}, view turning ${a(t.turn,"°/s")}, acceleration ${a(t.acceleration,"m/s²")}, jerk ${a(t.jerk,"m/s³")}; smoothness ${e.smoothness===null?"not measured":e.smoothness.toFixed(2)}; largest step ${f(e.step.distance)} and ${e.step.angle.toFixed(2)}° at ${n(e.step.at)} s${e.cuts?.length?`; ${u(e.cuts.length,"cut")} at ${e.cuts.map(r=>`${n(r)} s`).join(", ")} (not measured across)`:""} (${String(e.fps)} samples a second)`}}case"scenery-screen":{const e=s.data,t=F(s,e.start),n=(i,d,c=1)=>i?`${(i.least*c).toFixed(2)}${d} at ${t(i.leastAt)} s to ${(i.most*c).toFixed(2)}${d} at ${t(i.mostAt)} s`:"not shown",a=e.shown.length===0?"never on the frame":`on the frame ${e.shown.map(i=>`${t(i.from)}–${t(i.to)} s`).join(", ")}`,r=e.hidden?.by.map(i=>`${i.object} ${String(Math.round(i.share*100))}%`).join(", ");return{key:`${e.layer} ${e.screen}|${String(e.start)}`,value:e.scale?.least??0,line:`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) ${t(e.start)}–${t(e.end)} s: ${a}; share of the box ${n(e.share,"%",100)}; scale ${n(e.scale,"×")} frame px per content px; angle ${n(e.angle,"°")}; hidden ${n(e.hidden,"%",100)}${r?` (at the most by ${r})`:""}${e.blur?`; blur ${n(e.blur," px")} (the circle of confusion across it)`:""}${e.moire?`; moiré ${n(e.moire,"%",100)} deep${e.moire.period!==void 0?`, bands ${e.moire.period.toFixed(1)} px apart at the deepest`:""}`:""}${e.drawn?e.drawn.in==="scenery"?`; drawn in the scenery at ${String(e.drawn.scale)} of the frame's pixels each way`:"; drawn over the scenery":""}${e.text?`; smallest text ${String(e.text.size)} px, ${String(e.text.onFrame[0])}–${String(e.text.onFrame[1])} px on the frame as drawn`:""}${e.stretches?.length&&e.shown.length>0?`; between cues (scenery s → its s): ${e.stretches.map(i=>`${i.from.toFixed(2)}–${i.to.toFixed(2)} → ${i.video[0].toFixed(2)}–${i.video[1].toFixed(2)} at ${i.speed.toFixed(2)}×`).join(", ")}`:""}`}}case"scenery-screen-fidelity":{const e=s.data,t=F(s,e.start),n=`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) at ${t(e.at)} s`,a=`${e.layer} ${e.screen}|${String(e.start)}|${String(e.at)}`;if(e.missing!==void 0||!e.deltaE)return{key:a,value:0,line:`${n}: not compared: ${e.missing??"no numbers"}`};const r=e.elements??[],i=(e.regions??[]).map(o=>{const l=o.elements.flatMap(g=>{const h=r[g];return h?[`${h.kind} ${h.name} ${p(h.box)}`]:[]});return`${p(o.box)} ${b(o.share)} (ΔE ${o.meanDeltaE.toFixed(1)} mean, ${o.maxDeltaE.toFixed(1)} most)${l.length>0?` over ${l.join(", ")}`:""}`}),d=new Map;for(const o of r)d.set(o.kind,(d.get(o.kind)??0)+1);const c=e.texture;return{key:a,value:e.share??0,line:`${n}: ${b(e.share??0)} of its pixels differ from its element drawn flat by more than ΔE ${String(e.tolerance)} (ΔE ${e.deltaE.mean.toFixed(2)} mean, ${e.deltaE.p95.toFixed(2)} at the 95th percentile, ${e.deltaE.max.toFixed(1)} most)${c?`; its texture ${String(c.of[0])}×${String(c.of[1])} px for an element of ${String(c.element[0])}×${String(c.element[1])}, compared at its level ${String(c.level)} (${String(c.size[0])}×${String(c.size[1])})`:""}${i.length>0?`; most in ${i.join("; ")}`:""}${d.size>0?`; in its content, of what the scenery's picture can draw otherwise: ${[...d].map(([o,l])=>`${String(l)} ${o}`).join(", ")}`:""} (boxes in content px)`}}case"text-overflow":{const e=s.data;return{key:`${e.shape}|${e.text}`,value:Math.max(...e.edges.map(t=>t.pt)),line:`${e.shape} ${j(e.text)} ${p(e.box)} pt: its glyphs ${p(e.glyphs)} ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}; ${String(e.past)} of ${u(e.lines,"line")} past it${e.scale===void 0?"":`, shrunk to ${m(e.scale)}`}`}}case"text-off-slide":{const e=s.data;return{key:`${e.shape}|${e.text}`,value:e.share,line:`${e.shape} ${j(e.text)}: its glyphs ${p(e.glyphs)} pt ${e.edges.map(t=>`${String(t.pt)} pt past the slide's ${t.side} edge`).join(", ")}, ${b(e.share)} of them outside`}}case"shape-off-slide":{const e=s.data;return{key:e.shape,value:e.share,line:`${e.shape} ${p(e.box)} pt: ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}, ${b(e.share)} of it outside the slide`}}case"shape-overlap":{const e=s.data;return{key:`${e.a}|${e.b}`,value:e.share,line:`${e.a} and ${e.b}: ${String(e.area)} pt² both cover, ${b(e.share)} of the smaller`}}case"near-alignment":{const e=s.data,t=e.line==="centre-x"?"horizontal centres":e.line==="centre-y"?"vertical centres":`${e.line} edges`,n=r=>r==="glyphs"?", its glyphs":"",a=e.align.x===void 0?`y ${String(e.align.y)}`:`x ${String(e.align.x)}`;return{key:`${e.a}|${e.b}|${e.line}`,value:e.gap,line:`${e.a} and ${e.b==="slide"?"the slide":e.b}: ${t} ${String(e.gap)} pt apart (${e.a} at ${String(e.at.a)}${n(e.by.a)}, ${e.b==="slide"?"the slide's":e.b} at ${String(e.at.b)}${n(e.by.b)}); ${e.align.shape} at ${a} aligns them`}}case"placement-drift":{const e=s.data;return{key:`${e.layout}|${e.shape}`,value:e.places.length,line:`${e.shape} on "${e.layout}": ${e.places.map(t=>`${p(t.frame)} pt on ${t.slides.join(", ")}`).join("; ")}`}}case"type-in-use":{const e=s.data;return{key:"type",value:e.type.length,line:`${u(e.type.length,"size")}, the smallest ${String(e.smallest)} pt: ${e.type.map(t=>`${String(t.size)} pt weight ${String(t.weight)} on ${u(t.slides,"slide")} (${u(t.shapes,"shape")})`).join("; ")}`}}case"read-size":{const e=s.data;return{key:`${e.shape}|${e.text}`,value:1/Math.max(.1,e.screen?.arcmin??e.size),line:`${e.shape} ${j(e.text)}: ${String(e.size)} pt${e.xHeight===void 0?"":`, x ${String(e.xHeight)} pt`}${e.screen?`; ${e.screen.by==="x"?"its lowercase x":"its characters"} ${String(e.screen.mm)} mm on the screen, ${String(e.screen.arcmin)} arcmin from the farthest seat`:""}; ${String(e.phone)} pt on the phone`}}case"words-on-slide":{const e=s.data;return{key:"words",value:e.words,line:`${u(e.words,"word")}, ${u(e.lines,"line")}, ${u(e.texts,"text")}`}}case"picture-resolution":{const e=s.data;return{key:e.shape,value:e.scale,line:`${e.shape} ${p(e.box)} pt: ${String(e.shown[0])}×${String(e.shown[1])} of its ${String(e.source[0])}×${String(e.source[1])} px drawn ${String(e.scale)}× (${String(e.ppi)} ppi on the slide)${Math.abs(e.stretch)>.005?`, stretched ${b(e.stretch)}`:""}`}}case"chart-data":{const e=s.data,t=e.low===void 0||e.high===void 0?"no numbers":`${String(e.low)} to ${String(e.high)}`;return{key:e.shape,value:e.series,line:`${e.shape}: ${e.type}, ${String(e.categories)} categories, ${String(e.series)} series, ${t}; ${e.source===void 0?"its numbers are written in the deck":`from ${e.source}`}`}}case"table-grown":{const e=s.data;return{key:e.shape,value:e.drawn-e.set,line:`${e.shape}: ${String(e.drawn)} pt tall, set ${String(e.set)} pt; ${e.rows.map(t=>`row ${String(t.row+1)} ${String(t.set)} → ${String(t.drawn)} pt`).join(", ")}`}}case"shape-hidden":{const e=s.data;return{key:`${e.shape}|${e.by??""}`,value:1,line:e.by===void 0?`${e.shape}: no step of the slide shows it`:`${e.shape}: covered whole by ${e.by}`}}case"deck-fonts":{const e=s.data,t=e.fonts.filter(n=>!n.standard);return{key:"fonts",value:t.length,line:`${e.fonts.map(n=>`${n.name} (${n.where}${n.standard?"":", not standard"})`).join(", ")}${t.length>0?`: ${t.map(n=>n.name).join(", ")} goes in the file when the project has its font files (render says what could not); an app that does not read a file's fonts replaces it`:""}`}}case"cut-in-word":{const e=s.data;return{key:`${e.source}|${e.side}|${String(e.at)}`,value:Math.min(e.at-e.wordStart,e.wordEnd-e.at),line:`${e.source}: the stretch's ${e.side} at ${$(e.at)} s cuts "${e.word}" (${$(e.wordStart)}–${$(e.wordEnd)} s)`}}}}function F(s,e){const t=s.t===void 0?0:s.t-e;return n=>(n+t).toFixed(2)}function K(s,e,t,n){const[a,r]=t.b<t.a?[[e,t.b],[s,t.a]]:[[s,t.a],[e,t.b]];return`moving ${a[0]} ${f(a[1])} ${n} (${r[0]} ${f(r[1])}) clears them`}const f=s=>Math.abs(s)<.1?`${(s*1e3).toFixed(1)} mm`:`${s.toFixed(3)} m`;function B(s,e){const t=a=>`${String(a.speed)} px/s${a.angle===void 0?"":` at ${String(a.angle)}°`}`,n=e.list.map(a=>`${a.layer} ${a.what}${a.name?` (${a.name})`:""} ${p(a.box)} ${t(a)}${a.scale!==0?`, size ${a.scale>0?"+":""}${String(Math.round(a.scale*100))}%/s`:""}`);return` ${s} (${e.part} ${$(e.from)}–${$(e.to)} s): ${String(e.moving)} of ${u(e.things,"thing")} moving${e.overall?`, together ${t(e.overall)}`:""}${e.picture?`; the picture ${t(e.picture)} (difference ${String(e.picture.still)} → ${String(e.picture.match)} after the shift)`:""}${n.length>0?`: ${n.join("; ")}`:""}`}function D(s,e){const t=s.data.text;if(typeof t!="object"||t===null||!("layer"in t))return;const n=t,a=`${y(n)}: `;if(e.startsWith(a))return{layer:n.layer,text:n.text,what:e.slice(a.length)}}const C=3,L=8;function P(s,e=!1){const t=new Map;for(const o of s){const l=J(o),g=`${o.part??""}|${l.key}`,h=t.get(g);if(!h){const S=D(o,l.line);t.set(g,{part:o.part,...o.output==="slides"?{slide:!0}:{},first:o.t,last:o.t,count:1,worst:l.value,line:l.line,...S?{text:S}:{},...l.alike?{alike:l.alike}:{}});continue}if(h.count++,o.t!==void 0&&(h.first=Math.min(h.first??o.t,o.t),h.last=Math.max(h.last??o.t,o.t)),l.value>h.worst){h.worst=l.value,h.line=l.line,l.alike&&(h.alike=l.alike);const S=D(o,l.line);S?h.text=S:delete h.text}}const n=[...t.values()],a=new Map;if(!e)for(const o of n){if(!o.text)continue;const l=`${o.text.layer}|${o.text.what}`;a.set(l,[...a.get(l)??[],o])}const r=new Map;if(!e)for(const o of n){if(!o.alike||o.count>1)continue;const l=o.alike.what;r.set(l,[...r.get(l)??[],o])}const i=[],d=new Set;for(const o of n){if(d.has(o))continue;const l=o.alike?r.get(o.alike.what):void 0;if(l&&l.length>1&&o.alike){for(const w of l)d.add(w);const x=Math.min(...l.map(w=>w.alike?.span[0]??0)),A=Math.max(...l.map(w=>w.alike?.span[1]??0)),M=l.flatMap(w=>w.part?[w.part]:[]),G=M.length>L?`${M.slice(0,L).join(", ")} and ${String(M.length-L)} more`:M.join(", ");i.push(` ${$(x)}–${$(A)} s, the same in ${String(l.length)} parts (${G}): ${o.alike.what} (--all lists each)`);continue}const g=o.text?a.get(`${o.text.layer}|${o.text.what}`):void 0;if(!g||g.length<2||!o.text){i.push(c(o));continue}for(const x of g)d.add(x);const h=g.flatMap(x=>[x.first,x.last].filter(A=>A!==void 0)),S=[...new Set(g.flatMap(x=>x.part?[x.part]:[]))],E=Math.min(...h),N=Math.max(...h),I=h.length===0?"":E===N?`${$(E)} s `:`${$(E)}–${$(N)} s `,W=g.slice(0,C).map(x=>j(x.text?.text??"")),_=g.length>C?` and ${String(g.length-C)} more`:"";i.push(` ${I}${S.length>0?`${S.length===1?S[0]??"":`${String(S.length)} parts`}: `:""}${o.text.layer}: ${String(g.length)} texts, each ${o.text.what}: ${W.join(", ")}${_} (--all lists each)`)}return i;function c(o){return` ${o.first===void 0||o.slide?"":o.count===1||o.first===o.last?`${$(o.first)} s `:`${$(o.first)}–${$(o.last??o.first)} s (${String(o.count)} moments, the most shown) `}${o.part?`${o.part}: `:""}${o.line}`}}function q(s){const e=s[0];if(e?.kind==="still-picture"){const n=e.data.options;return`; a frame every ${String(n.every)} s, ${String(n.width)} px wide, still while ${k(n.change)} or less of its pixels moved more than ${String(n.noise)} levels from the stretch's first; ${n.minSeconds>0?`${String(n.minSeconds)} s or longer`:"every stretch"}`}if(e?.kind==="text-contrast"){const n=e.data.options;return`; WCAG 2.1 ratios over the pixels behind each line's glyphs, the ${String(n.percentile)}th percentile, captured at ${String(n.scale)}× the frame's pixels, blocks at ${m(n.opacity)} opacity or more. For reference, WCAG AA asks 4.5:1 (3:1 for large text, 24 px or 18.66 px bold, in CSS pixels), AAA 7:1 (4.5:1)`}if(e?.kind==="cut-seam"){const n=e.data.options;return`; velocities over ${String(n.frames)} frames each side, at rest under ${String(n.rest)} px/s; ${n.top>0?`the ${String(n.top)} largest things listed each side, moving ones first`:"every thing listed"}; 0° is rightward, 90° downward, ±180° leftward`}if(e?.kind==="flash"){const n=e.data.options;return`; each frame against the frames beside it, ${String(n.width)} px wide, a pixel outside their span by more than ${String(n.noise)} levels, from ${k(n.change)} of the pixels; runs of up to ${u(n.frames,"frame")}; beside a cut, only past ${String(n.usual)}× its shot's usual change a frame`}if(e?.kind==="near-alignment"){const n=e.data.options;return`; lines more than ${String(n.aligned)} pt and up to ${String(n.within)} pt apart`}if(e?.kind==="placement-drift")return`; places more than ${String(e.data.options.drift)} pt apart`;if(e?.kind==="read-size"){const{room:n,phone:a}=e.data.options;return`${n?`; a screen ${String(n.screen)} m wide, the farthest seat ${String(n.distance)} m away`:""}; a ${String(a[0])}×${String(a[1])} pt phone`}if(e?.kind!=="text-time"&&e?.kind!=="words-on-screen")return"";const t=e.data.options;return`; whole: every text node at ${m(t.opacity)} opacity or more with ${m(t.shown)} or more of its glyphs showing, each part looked at every ${String(t.every)} s`}const R=20;export function formatFacts(s,e={}){const t=[],n=new Map;for(const a of s){const r=U(a);n.set(r,[...n.get(r)??[],a])}for(const[a,r]of n){const i=Object.keys(T).map(d=>[d,r.filter(c=>c.kind===d).length]).filter(([,d])=>d>0).map(([d,c])=>`${d} ${String(c)}`);t.push(`${a}: ${i.join(", ")}`);for(const d of Object.keys(T)){const c=r.filter(g=>g.kind===d);if(c.length===0)continue;const o=P(c,e.all===!0),l=e.all===!0||!d.startsWith("sheet-")?o:o.slice(0,R);t.push(` ${T[d]} (${d})${q(c)}:`,...l,...o.length>l.length?[` … ${String(o.length-l.length)} more (--all)`]:[])}}return t}export const textOnScreen=s=>`${y(s)}${s.fonts?` in ${s.fonts.join(", ")}`:""}`;
package/dist/works.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","audio","add search","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","inspect layout","inspect contrast","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["check","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect sheet","sheet","frames","check","dev","render"],docs:["sheets.md"]},{name:"websites",title:"Showing a project's videos in a website (an Astro project)",commands:["site media","render"],docs:["project.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload","voice"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add","3d-model","3d-model capabilities"],docs:["modeling.md","scenery.md"]},{name:"setup",title:"This computer, the account and AllyHub's skills",commands:["skills","skills show","auth login","auth status","orgs list","doctor"]}],workNamed=e=>WORKS.find(s=>s.name===e);export function cloudNouns(e,s){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(d=>d.cloud?.works??[])),n=e.cloud.works;return s.filter(d=>n===void 0?!t.has(d.name):n.includes(d.name))}export function workTitle(e,s){if(e.cloud===void 0)return e.title;if(s===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,s);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(n=>n.name).join(", ")}`}
2
+ export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","audio","add search","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","inspect layout","inspect contrast","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["check","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect sheet","sheet","frames","check","dev","render"],docs:["sheets.md"]},{name:"websites",title:"Making a website: any web project, with its website.json",commands:["check","render","frames web","frames compare","site deploy","site status","site live"],docs:["websites.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload","voice"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add","3d-model","3d-model capabilities"],docs:["modeling.md","scenery.md"]},{name:"setup",title:"This computer, the account and AllyHub's skills",commands:["skills","skills show","auth login","auth status","orgs list","doctor"]}],workNamed=e=>WORKS.find(s=>s.name===e);export function cloudNouns(e,s){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(d=>d.cloud?.works??[])),n=e.cloud.works;return s.filter(d=>n===void 0?!t.has(d.name):n.includes(d.name))}export function workTitle(e,s){if(e.cloud===void 0)return e.title;if(s===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,s);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(n=>n.name).join(", ")}`}