allyhub 0.11.0 → 0.13.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 (391) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/bin/allyhub.js +2 -2
  3. package/dist/commands/frames/report.js +1 -1
  4. package/dist/commands/frames.js +11 -11
  5. package/dist/main.js +6 -6
  6. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  7. package/dist/node_modules/@allyhub/audio/dist/render.js +1 -1
  8. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  9. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  10. package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/build/package.json +1 -1
  12. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  13. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  14. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  15. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +3 -2
  16. package/dist/node_modules/@allyhub/chart/dist/chart.js +2 -1
  17. package/dist/node_modules/@allyhub/chart/dist/color.js +2 -0
  18. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  19. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  20. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  21. package/dist/node_modules/@allyhub/check/package.json +1 -1
  22. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  23. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +2 -0
  24. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  25. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +6 -0
  26. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  27. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  28. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +2 -0
  29. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  30. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +1 -1
  31. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +11 -3
  32. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  33. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +1 -1
  34. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  35. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  36. package/dist/node_modules/@allyhub/components/package.json +1 -1
  37. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  38. package/dist/node_modules/@allyhub/dev-server/dist/server.js +1 -1
  39. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  40. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  41. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  42. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  43. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  44. package/dist/node_modules/@allyhub/export/package.json +1 -1
  45. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  46. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  47. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +130 -0
  48. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  49. package/dist/node_modules/@allyhub/formats/dist/data/gen.d.ts +3 -1
  50. package/dist/node_modules/@allyhub/formats/dist/data/gen.js +1 -1
  51. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +512 -166
  52. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +2523 -136
  54. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +931 -87
  56. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  58. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  61. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  62. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  63. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  64. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  65. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  66. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  67. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  68. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  69. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  70. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  71. package/dist/node_modules/@allyhub/media/dist/run.d.ts +6 -1
  72. package/dist/node_modules/@allyhub/media/dist/run.js +2 -2
  73. package/dist/node_modules/@allyhub/media/package.json +1 -1
  74. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  75. package/dist/node_modules/@allyhub/model/package.json +1 -1
  76. package/dist/node_modules/@allyhub/ooxml/dist/color.js +1 -1
  77. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  78. package/dist/node_modules/@allyhub/ooxml/dist/index.js +1 -1
  79. package/dist/node_modules/@allyhub/ooxml/dist/transform.js +2 -0
  80. package/dist/node_modules/@allyhub/ooxml/package.json +5 -1
  81. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +4 -4
  82. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +2 -2
  83. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  84. package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
  85. package/dist/node_modules/@allyhub/project/package.json +1 -1
  86. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +49 -5
  87. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  88. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +56 -0
  89. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  90. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +72 -9
  91. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  92. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +35 -20
  93. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  94. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +7 -0
  95. package/dist/node_modules/@allyhub/protocol/dist/errors.js +2 -0
  96. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +328 -0
  97. package/dist/node_modules/@allyhub/protocol/dist/events.js +2 -0
  98. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +28 -2
  99. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  100. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +2 -0
  101. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  102. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  103. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +2 -2
  104. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  105. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +69 -6
  106. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  107. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +9 -9
  108. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  109. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  110. package/dist/node_modules/@allyhub/render/package.json +1 -1
  111. package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +1 -1
  112. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +3 -3
  113. package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +29 -1
  114. package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
  115. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +11 -4
  116. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +6 -2
  117. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +1 -1
  118. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +3 -1
  119. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  120. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  121. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  122. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  123. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  124. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +2 -0
  125. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  126. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  127. package/dist/node_modules/@allyhub/sheet/dist/api/rules.js +1 -1
  128. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  129. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  130. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  131. package/dist/node_modules/@allyhub/sheet/dist/data-tools.js +2 -0
  132. package/dist/node_modules/@allyhub/sheet/dist/edit.js +1 -1
  133. package/dist/node_modules/@allyhub/sheet/dist/fill.js +1 -1
  134. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  135. package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.js +1 -1
  136. package/dist/node_modules/@allyhub/sheet/dist/html.js +10 -10
  137. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  138. package/dist/node_modules/@allyhub/sheet/dist/outline.js +2 -0
  139. package/dist/node_modules/@allyhub/sheet/dist/rich.js +2 -0
  140. package/dist/node_modules/@allyhub/sheet/dist/rules.js +1 -1
  141. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  142. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  143. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  144. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  145. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  146. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  147. package/dist/node_modules/@allyhub/sheet/dist/xlsx/runs.js +2 -0
  148. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  149. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  150. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  151. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  152. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  153. package/dist/node_modules/@allyhub/slides-core/dist/api.js +3 -3
  154. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  155. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  156. package/dist/node_modules/@allyhub/slides-core/dist/check.js +1 -1
  157. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  158. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  159. package/dist/node_modules/@allyhub/slides-core/dist/generated/table-styles.js +2 -0
  160. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  161. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  162. package/dist/node_modules/@allyhub/slides-core/dist/numbering.js +2 -0
  163. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  164. package/dist/node_modules/@allyhub/slides-core/dist/patterns.js +2 -0
  165. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  166. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  167. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
  168. package/dist/node_modules/@allyhub/slides-core/dist/table-style.js +2 -0
  169. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  170. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +1 -1
  171. package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +1 -1
  172. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  173. package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.js +2 -0
  174. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  175. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  176. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  177. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +2 -1
  178. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  179. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  180. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  181. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  182. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  183. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  184. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  185. package/dist/node_modules/@allyhub/slides-pptx/dist/table-styles.js +2 -0
  186. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  187. package/dist/node_modules/@allyhub/slides-pptx/dist/theme.js +1 -1
  188. package/dist/node_modules/@allyhub/slides-pptx/dist/timing.js +1 -1
  189. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  190. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +2 -2
  191. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  192. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  193. package/dist/node_modules/@allyhub/slides-runtime/dist/index.js +1 -1
  194. package/dist/node_modules/@allyhub/slides-runtime/dist/ink.js +1 -1
  195. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  196. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  197. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  198. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  199. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +101 -49
  200. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  201. package/dist/node_modules/@allyhub/telemetry/LICENSE +241 -0
  202. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +47 -0
  203. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +2 -0
  204. package/dist/node_modules/@allyhub/telemetry/dist/index.js +2 -0
  205. package/dist/node_modules/@allyhub/telemetry/dist/level.js +3 -0
  206. package/dist/node_modules/@allyhub/telemetry/dist/scrub.js +2 -0
  207. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +5 -0
  208. package/dist/node_modules/@allyhub/telemetry/package.json +21 -0
  209. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +1 -1
  210. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  211. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +1 -1
  212. package/dist/node_modules/@allyhub/video-extension/package.json +3 -3
  213. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  214. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  215. package/dist/node_modules/@allyhub/website/package.json +1 -1
  216. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  217. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  218. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  219. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  220. package/dist/package.json +12 -12
  221. package/dist/telemetry.js +4 -0
  222. package/dist/turn.js +2 -0
  223. package/editor-web/assets/{abnfDiagram-WEYOIA3C-BKmMA6gn.js → abnfDiagram-WEYOIA3C-D70jg8mE.js} +1 -1
  224. package/editor-web/assets/{architecture-WOLXFQ4H-BEFBgb4k.js → architecture-WOLXFQ4H-CrXS3E8e.js} +1 -1
  225. package/editor-web/assets/{architectureDiagram-ZHVYKT53-_u5YfCjY.js → architectureDiagram-ZHVYKT53-JrBljCOx.js} +1 -1
  226. package/editor-web/assets/arrow-down-DzZjFrBL.js +1 -0
  227. package/editor-web/assets/arrow-up-hdmh9LVD.js +1 -0
  228. package/editor-web/assets/{article-BUmD3xtR.js → article-BWrfVMRA.js} +6 -6
  229. package/editor-web/assets/article-hxHjqzV1.js +7 -0
  230. package/editor-web/assets/{audio-lines-CzuzsGjI.js → audio-lines-1s1eRs4Q.js} +1 -1
  231. package/editor-web/assets/{blockDiagram-RJAE7QA3-DybfaO3Z.js → blockDiagram-RJAE7QA3-BzfC1xTS.js} +1 -1
  232. package/editor-web/assets/{bookmark-Dsd3kHJJ.js → bookmark-Dfji3syX.js} +1 -1
  233. package/editor-web/assets/{button-eGxLxbv9.js → button-EftXSfev.js} +1 -1
  234. package/editor-web/assets/{c4Diagram-XDPPPE54-BfqLHB5i.js → c4Diagram-XDPPPE54-s2TpXKgH.js} +1 -1
  235. package/editor-web/assets/calc-worker-jImBXoeb.js +45 -0
  236. package/editor-web/assets/channel-BFbXY6R0.js +1 -0
  237. package/editor-web/assets/chart-BC3kUUDD.js +2 -0
  238. package/editor-web/assets/{chart-no-axes-column-BVkeF_Mr.js → chart-no-axes-column-CJmeYOSo.js} +1 -1
  239. package/editor-web/assets/{chunk-2E7WHVMD-BVp1I_d0.js → chunk-2E7WHVMD-DyE9v6UX.js} +1 -1
  240. package/editor-web/assets/{chunk-4EMNKR2T-CTdgWEMr.js → chunk-4EMNKR2T-CCunMMcT.js} +1 -1
  241. package/editor-web/assets/{chunk-55XCU76K-7pnsxeaP.js → chunk-55XCU76K-CZgJYrN4.js} +1 -1
  242. package/editor-web/assets/{chunk-7S6XSTFO-Dc0Dvkq7.js → chunk-7S6XSTFO-B01FlTFf.js} +1 -1
  243. package/editor-web/assets/{chunk-AQDTSKZB-VAILIsfx.js → chunk-AQDTSKZB-latWUvVu.js} +1 -1
  244. package/editor-web/assets/{chunk-DSNLSHJZ-CUDx1Rv5.js → chunk-DSNLSHJZ-BHFiQInN.js} +1 -1
  245. package/editor-web/assets/{chunk-HAGFOTED-DAoEe-dJ.js → chunk-HAGFOTED-C4hR36ab.js} +1 -1
  246. package/editor-web/assets/{chunk-HNE4Q36P-g0akya12.js → chunk-HNE4Q36P-CNrxiD2Q.js} +1 -1
  247. package/editor-web/assets/{chunk-NQOKRVIF-hTGjzXdJ.js → chunk-NQOKRVIF-DpyEHKEY.js} +1 -1
  248. package/editor-web/assets/{chunk-UHW7PFBP-BgLV8BIJ.js → chunk-UHW7PFBP-SIEJdixh.js} +1 -1
  249. package/editor-web/assets/{chunk-VQ5W62QI-Bw19OOSD.js → chunk-VQ5W62QI-CxWnQRxx.js} +1 -1
  250. package/editor-web/assets/{chunk-WQQL4CDK-CMST9dyE.js → chunk-WQQL4CDK-CbRuCBm6.js} +1 -1
  251. package/editor-web/assets/{chunk-YZO67HFG-Bbpu36XF.js → chunk-YZO67HFG-Cgu-EQvs.js} +1 -1
  252. package/editor-web/assets/{chunk-ZAUX2LTX-C48Ri0Gs.js → chunk-ZAUX2LTX-pAl5CV3o.js} +1 -1
  253. package/editor-web/assets/{chunk-ZCHMQSOR-DN1g01Oe.js → chunk-ZCHMQSOR-Du5hY-FP.js} +1 -1
  254. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-U6jbPr2d.js → classDiagram-v2-4MYWR3UA-CevU94T6.js} +1 -1
  255. package/editor-web/assets/{collaborator-B1u2td9m.js → collaborator-C6IJkcGR.js} +1 -1
  256. package/editor-web/assets/copy-DvOiv9Ra.js +1 -0
  257. package/editor-web/assets/{createLucideIcon-GFZ_fxLc.js → createLucideIcon-REX213UO.js} +1 -1
  258. package/editor-web/assets/{cynefin-EF2NZ3EQ-gzkai_7-.js → cynefin-EF2NZ3EQ-DBHwpMRJ.js} +1 -1
  259. package/editor-web/assets/{cynefinDiagram-WF24UDRP-DtSekSr6.js → cynefinDiagram-WF24UDRP-CxUzpjvG.js} +1 -1
  260. package/editor-web/assets/{dagre-NK4GIZVX-CiUwYVT6.js → dagre-NK4GIZVX-BAJNBDYO.js} +1 -1
  261. package/editor-web/assets/{diagram-CBK3MWTC-r9XHCV-k.js → diagram-CBK3MWTC-BQW9Fbw-.js} +1 -1
  262. package/editor-web/assets/{diagram-I5XIIV2D-DxVsDZ34.js → diagram-I5XIIV2D-DQBROUfn.js} +1 -1
  263. package/editor-web/assets/{diagram-ODIL2UCW-B0eNQoHV.js → diagram-ODIL2UCW-DEoK31qy.js} +1 -1
  264. package/editor-web/assets/{diagram-PFBEJUXE-C7f2MfJT.js → diagram-PFBEJUXE-BTCa2We1.js} +1 -1
  265. package/editor-web/assets/{diagram-RJA3I4VV-CSXcnvct.js → diagram-RJA3I4VV-DNM8qWC3.js} +1 -1
  266. package/editor-web/assets/{diagram-TYUNFSNR-DXzOD_ii.js → diagram-TYUNFSNR-BcKpED4d.js} +1 -1
  267. package/editor-web/assets/dist-90dg0B0d.js +2 -0
  268. package/editor-web/assets/dist-BSPs7tZR.js +1 -0
  269. package/editor-web/assets/dist-CP9XwbBS.js +45 -0
  270. package/editor-web/assets/dist-CRxtC7DG.js +24 -0
  271. package/editor-web/assets/{dist-CC7OeU1e.js → dist-Cmnq14RO.js} +3 -3
  272. package/editor-web/assets/dist-CrZwqOm2.js +1 -0
  273. package/editor-web/assets/dist-CzUWTcvC.js +38 -0
  274. package/editor-web/assets/dist-D2a_y4AE.js +1 -0
  275. package/editor-web/assets/{dist-DDv_SbKw.js → dist-DMZ1VHPK.js} +1 -1
  276. package/editor-web/assets/dist-DYnXIW8F.js +16 -0
  277. package/editor-web/assets/{dist-BuWaZ3Y4.js → dist-Dpet39Yp.js} +30 -30
  278. package/editor-web/assets/dist-Dre4Cwpz.js +1 -0
  279. package/editor-web/assets/dist-RkxskWGK.js +5 -0
  280. package/editor-web/assets/dist-aANR6S2I.js +3 -0
  281. package/editor-web/assets/{dist-Gz6NDS0J.js → dist-qSuFWuVB.js} +3 -3
  282. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-Cs4YRvDD.js → ebnfDiagram-V4P3TTPT-D-1x27Eh.js} +1 -1
  283. package/editor-web/assets/{elk-QONTBCTQ-Bh3LZ9WI.js → elk-QONTBCTQ-BJSCxiTH.js} +1 -1
  284. package/editor-web/assets/{erDiagram-KYQIGQAA-C4vYTYXp.js → erDiagram-KYQIGQAA-C7Q357iD.js} +1 -1
  285. package/editor-web/assets/{eventmodeling-K75KTNOO-BN1kkHWS.js → eventmodeling-K75KTNOO-kXrQLSF5.js} +1 -1
  286. package/editor-web/assets/flowDiagram-IUGLLWBU-GSC4btef.js +1 -0
  287. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CA1LkkC5.js → ganttDiagram-R7GPNTJY-Bt3SRgK7.js} +1 -1
  288. package/editor-web/assets/{gitGraph-VSP46ZUC-Dy5tA7dG.js → gitGraph-VSP46ZUC-DS4CkhfK.js} +1 -1
  289. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-hJIB8EkH.js → gitGraphDiagram-PDYL7XHY-BgfmSVdI.js} +1 -1
  290. package/editor-web/assets/group-pebHQTdP.js +1 -0
  291. package/editor-web/assets/{hint-B8JpEypy.js → hint-BmRKl2nL.js} +1 -1
  292. package/editor-web/assets/index-D8qc_ipi.js +28 -0
  293. package/editor-web/assets/index-DDtZpLDF.css +2 -0
  294. package/editor-web/assets/{info-OHQRW6UA-DvzSf7rQ.js → info-OHQRW6UA-BZjctF3x.js} +1 -1
  295. package/editor-web/assets/{infoDiagram-MVDRKAX5-BjIMm4Af.js → infoDiagram-MVDRKAX5-BAp5oUXk.js} +1 -1
  296. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Bpz71S40.js → ishikawaDiagram-HPEHV2GE-DGL7ZfUu.js} +1 -1
  297. package/editor-web/assets/{italic-D10w8n6C.js → italic-CtlNOXN9.js} +1 -1
  298. package/editor-web/assets/{journeyDiagram-BOSHW7O7-DAB-pZjD.js → journeyDiagram-BOSHW7O7-DOOoBGx-.js} +1 -1
  299. package/editor-web/assets/{kanban-definition-FNSA4HC5-cYeyh3P6.js → kanban-definition-FNSA4HC5-lbLuUiMW.js} +1 -1
  300. package/editor-web/assets/katex-UWCZofcd.js +257 -0
  301. package/editor-web/assets/{link-BC5xK1-1.js → link-CW2KxKT_.js} +1 -1
  302. package/editor-web/assets/{mermaid-parser.core-req5LE0X.js → mermaid-parser.core-RkCFmJcg.js} +3 -3
  303. package/editor-web/assets/{mermaid.core-zFwZug4C.js → mermaid.core-BVUl-afX.js} +4 -4
  304. package/editor-web/assets/{mindmap-definition-6OY57UG3-TStWb7DG.js → mindmap-definition-6OY57UG3-C3DC4T1J.js} +1 -1
  305. package/editor-web/assets/minus-D1tgAHbU.js +1 -0
  306. package/editor-web/assets/{packet-JDAUHWVQ-smFhVKcB.js → packet-JDAUHWVQ-Bkd6YpX8.js} +1 -1
  307. package/editor-web/assets/{palette-BIOudGkm.js → palette-INFK0Zsr.js} +1 -1
  308. package/editor-web/assets/{pegDiagram-ECIUJNBX-DvSNRv0-.js → pegDiagram-ECIUJNBX-B5Seh4Oe.js} +1 -1
  309. package/editor-web/assets/{pie-XZMESJXO-qjaGsBZG.js → pie-XZMESJXO-BNbb4Q8k.js} +1 -1
  310. package/editor-web/assets/{pieDiagram-GNMPY74T-Dd9P-Pdc.js → pieDiagram-GNMPY74T-_hnbUloZ.js} +1 -1
  311. package/editor-web/assets/play-DvMyq5xW.js +1 -0
  312. package/editor-web/assets/{progress-DE4C5_3x.js → progress-D6wSFdpY.js} +1 -1
  313. package/editor-web/assets/props-form-BfwEi6jW.js +1 -0
  314. package/editor-web/assets/{quadrantDiagram-D57K4MC3-h2IIKUUA.js → quadrantDiagram-D57K4MC3-1rbqW-KO.js} +1 -1
  315. package/editor-web/assets/{radar-ABXABTNO-DlVrSA1d.js → radar-ABXABTNO-BWSnhBSp.js} +1 -1
  316. package/editor-web/assets/{railroad-I3PHUGI6-nFbuLAtc.js → railroad-I3PHUGI6-BNB-OKs1.js} +1 -1
  317. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Daj8h2iV.js → railroad-abnf-LNEFI6M7-BKgidf_B.js} +1 -1
  318. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-eYJyl5PH.js → railroad-ebnf-DWYD2UWJ-CNCnxtHp.js} +1 -1
  319. package/editor-web/assets/{railroad-peg-JR7BVNR7-BTRhKZQq.js → railroad-peg-JR7BVNR7-CyBW6_0o.js} +1 -1
  320. package/editor-web/assets/{railroadDiagram-Y72NRBL7-CeLGUjdp.js → railroadDiagram-Y72NRBL7-Cud3SJ7O.js} +1 -1
  321. package/editor-web/assets/{react-WA6wlt8S.js → react-Bk7NnOLX.js} +1 -1
  322. package/editor-web/assets/{repeat-2-VQP1EVOZ.js → repeat-2-DfPmKp4w.js} +1 -1
  323. package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dmk9XRM5.js → requirementDiagram-EQYSW5RA-BrSCcpqV.js} +1 -1
  324. package/editor-web/assets/{row-BRlEWRrK.js → row-VwyPfa1b.js} +1 -1
  325. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Yn4zlrAM.js → sankeyDiagram-SY24JHO5-rJV4dJFn.js} +1 -1
  326. package/editor-web/assets/scissors-D9WmgvNP.js +1 -0
  327. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BTRnp_PW.js → sequenceDiagram-BLEHNHQU-CEUuD2n6.js} +1 -1
  328. package/editor-web/assets/{session-Do9AqS38.js → session-DE0fvAcs.js} +1 -1
  329. package/editor-web/assets/sigma-CY2Chbro.js +1 -0
  330. package/editor-web/assets/slides-BgacyjJW.js +1 -0
  331. package/editor-web/assets/{snapshots-BUGlKQIB.js → snapshots-D8TtZp1x.js} +1 -1
  332. package/editor-web/assets/{sound-Bj3o9_Fa.js → sound-DUCxe9eC.js} +1 -1
  333. package/editor-web/assets/split-Cx2MMnC_.js +3 -0
  334. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-kstrRKv2.js → stateDiagram-v2-A6IESKWZ-BRE_C2he.js} +1 -1
  335. package/editor-web/assets/sticky-note-C5qUDHhC.js +1 -0
  336. package/editor-web/assets/{strikethrough-CfXx6IYH.js → strikethrough-DP-7tMz0.js} +1 -1
  337. package/editor-web/assets/svg-nJtFNJ-7.js +1 -0
  338. package/editor-web/assets/{swatch-WeJD41aW.js → swatch-lxK4C8fD.js} +1 -1
  339. package/editor-web/assets/{swimlanes-B3ENRKFQ-DaZsZkeP.js → swimlanes-B3ENRKFQ-BEPqWgVe.js} +1 -1
  340. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DAcNszZ6.js +8 -0
  341. package/editor-web/assets/{switch-N0G_sbqt.js → switch-DaG6OuAi.js} +1 -1
  342. package/editor-web/assets/{syntax-oWsKBWFw.js → syntax-9LD8MzGy.js} +1 -1
  343. package/editor-web/assets/{syntax-BVsgRJ4I.js → syntax-CLaCSmoi.js} +1 -1
  344. package/editor-web/assets/{table-B6hVZAMi.js → table-CTjNpE4W.js} +1 -1
  345. package/editor-web/assets/tabs-DjhzblAG.js +1 -0
  346. package/editor-web/assets/{textarea-tEWvBY9p.js → textarea-DBwRbOyF.js} +1 -1
  347. package/editor-web/assets/{timeline-definition-JXYKGLGB-CLCvY-Yf.js → timeline-definition-JXYKGLGB-p8Qeg4pS.js} +1 -1
  348. package/editor-web/assets/{trash-2-BP6nqpg2.js → trash-2-DrnRa91l.js} +1 -1
  349. package/editor-web/assets/{treeView-D4JQ5SDB-BmN0gwdC.js → treeView-D4JQ5SDB-C9FTdXKq.js} +1 -1
  350. package/editor-web/assets/{treemap-SAJKECNS-DN29G_E_.js → treemap-SAJKECNS-XAeLVOtI.js} +1 -1
  351. package/editor-web/assets/{undo-2-CHR0nvWL.js → undo-2-DUGGyBdX.js} +1 -1
  352. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DTRS54cB.js → usecaseDiagram-WPOLBNNX-BV3AMRuH.js} +1 -1
  353. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DAAc11Hx.js → vennDiagram-Q3Y3IDCW-CJdKcYyA.js} +1 -1
  354. package/editor-web/assets/{video-BlvmR8BK.js → video-He8p6dr6.js} +1 -1
  355. package/editor-web/assets/{wardley-7MLQ67FV-B-UYkmdB.js → wardley-7MLQ67FV-DZh6Mf22.js} +1 -1
  356. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BmbwCaky.js → wardleyDiagram-IVAIDKWA-XtvKSX-m.js} +1 -1
  357. package/editor-web/assets/{words-D_4T9Adq.js → words-CPHp_0tt.js} +1 -1
  358. package/editor-web/assets/{words-WgdEQdYP.js → words-CjW-1tZI.js} +1 -1
  359. package/editor-web/assets/{xychartDiagram-4URNHDU4-ChAfAq1U.js → xychartDiagram-4URNHDU4-CGkL42sz.js} +1 -1
  360. package/editor-web/assets/zoom-in-C4lxmIDE.js +1 -0
  361. package/editor-web/index.html +6 -6
  362. package/package.json +2 -2
  363. package/editor-web/assets/arrow-up-B5rJbBv0.js +0 -1
  364. package/editor-web/assets/article-DNioBb3p.js +0 -7
  365. package/editor-web/assets/calc-worker-D2pGis6e.js +0 -45
  366. package/editor-web/assets/channel-TNPgFDrw.js +0 -1
  367. package/editor-web/assets/chart-C37xvZT2.js +0 -1
  368. package/editor-web/assets/dist-BGRwhCQO.js +0 -1
  369. package/editor-web/assets/dist-BW4X7BrF.js +0 -1
  370. package/editor-web/assets/dist-BgDRE85b.js +0 -2
  371. package/editor-web/assets/dist-Blq5nJnU.js +0 -24
  372. package/editor-web/assets/dist-C1emZ9wX.js +0 -37
  373. package/editor-web/assets/dist-CX-fiPSn.js +0 -38
  374. package/editor-web/assets/dist-C_VvG-_9.js +0 -5
  375. package/editor-web/assets/dist-Ce7HrBxv.js +0 -3
  376. package/editor-web/assets/dist-D2k6w-_a.js +0 -1
  377. package/editor-web/assets/dist-DEoEO4zs.js +0 -1
  378. package/editor-web/assets/dist-DlDxxPIP.js +0 -16
  379. package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +0 -1
  380. package/editor-web/assets/index-CgB5osVc.js +0 -28
  381. package/editor-web/assets/index-Daytem9N.css +0 -2
  382. package/editor-web/assets/katex-5Z2zF-9g.js +0 -257
  383. package/editor-web/assets/minus-DaWs5i8B.js +0 -1
  384. package/editor-web/assets/play-CrMmPghG.js +0 -1
  385. package/editor-web/assets/props-form-CsmDBqzy.js +0 -1
  386. package/editor-web/assets/schemas-VikZYZIK.js +0 -1
  387. package/editor-web/assets/slides-diTEQ3C5.js +0 -1
  388. package/editor-web/assets/split-CNU1RHcX.js +0 -3
  389. package/editor-web/assets/svg-Cx50MpxK.js +0 -1
  390. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +0 -8
  391. package/editor-web/assets/tabs-DIFDqj-l.js +0 -1
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as r}from"zod";import{ConfigSchema as m}from"./data/config.js";import{DeckCodeSchema as n}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as f}from"./data/messages.js";import{InterpretationSchema as d}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as b}from"./data/slides.js";import{WebsiteFileSchema as g}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as k}from"./data/words.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:k,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.gen.json"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:f,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:b,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:g,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:d,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:n,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:m,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function o(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const i=a.path.map(String).join(".");return i===""?o(a):`${i}: ${o(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=DATA_FILES[e].schema.safeParse(t);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(a=>({path:a.path.map(String).join("."),message:o(a)}))}}
2
+ import{z as r}from"zod";import{ConfigSchema as m}from"./data/config.js";import{DeckCodeSchema as n}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as f}from"./data/messages.js";import{InterpretationSchema as d}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as b}from"./data/slides.js";import{WebsiteFileSchema as g}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as k}from"./data/words.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:k,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.provenance"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:f,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:b,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:g,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:d,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:n,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:m,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function o(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const i=a.path.map(String).join(".");return i===""?o(a):`${i}: ${o(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=DATA_FILES[e].schema.safeParse(t);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(a=>({path:a.path.map(String).join("."),message:o(a)}))}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/i18n",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-extension",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./build": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-measure",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-psd",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-render",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-runtime",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/jobs",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-extension",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-model",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-view",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/measure",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -15,6 +15,11 @@ export interface ToolOptions {
15
15
  export declare function runTool(bin: string, args: readonly string[], opts?: ToolOptions): Promise<ToolResult>;
16
16
  /** The last meaningful line of a tool's stderr. */
17
17
  export declare function lastLine(stderr: string): string;
18
- /** A small pool: runs `fn` over `items`, at most `limit` at once, in order of results. */
18
+ /**
19
+ * A small pool: runs `fn` over `items`, at most `limit` at once, in order of
20
+ * results. The first to fail stops the rest from starting, and is thrown once
21
+ * those running have ended: nothing of it still writes when the caller
22
+ * cleans up after it.
23
+ */
19
24
  export declare function mapLimit<T, R>(items: readonly T[], limit: number, fn: (item: T, index: number) => Promise<R>): Promise<R[]>;
20
25
  //# sourceMappingURL=run.d.ts.map
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{spawn as u}from"node:child_process";import{MediaError as g,stopped as c}from"./errors.js";export function runTool(t,o,n={}){return new Promise((l,a)=>{const i=u(t,o,{stdio:["ignore","pipe","pipe"],...n.signal?{signal:n.signal}:{},...n.env?{env:n.env}:{}}),r=[];let s="";i.stdout.on("data",e=>r.push(e)),i.stderr.on("data",e=>{s=(s+e.toString()).slice(-4e6)}),i.on("error",e=>{a(c(e.code==="ENOENT"?new g(n.missing??"ffmpeg",`Cannot run ${t}.`,{hint:n.hint??`${t} is not there: run it again to fetch it, or unset ALLYHUB_FFMPEG and ALLYHUB_FFPROBE if they name it.`}):e,n.signal))}),i.on("close",e=>{if(n.signal?.aborted){a(c(new Error(`${t} stopped`),n.signal));return}l({stdout:Buffer.concat(r),stderr:s,code:e??1})})})}export function lastLine(t){const o=t.split(`
3
- `).map(n=>n.trim()).filter(Boolean);return o[o.length-1]??""}export async function mapLimit(t,o,n){const l=new Array(t.length);let a=0;const i=async()=>{for(let r=a++;r<t.length;r=a++)l[r]=await n(t[r],r)};return await Promise.all(Array.from({length:Math.max(1,Math.min(o,t.length))},i)),l}
2
+ import{spawn as f}from"node:child_process";import{MediaError as u,stopped as c}from"./errors.js";export function runTool(r,i,n={}){return new Promise((l,a)=>{const e=f(r,i,{stdio:["ignore","pipe","pipe"],...n.signal?{signal:n.signal}:{},...n.env?{env:n.env}:{}}),s=[];let o="";e.stdout.on("data",t=>s.push(t)),e.stderr.on("data",t=>{o=(o+t.toString()).slice(-4e6)}),e.on("error",t=>{a(c(t.code==="ENOENT"?new u(n.missing??"ffmpeg",`Cannot run ${r}.`,{hint:n.hint??`${r} is not there: run it again to fetch it, or unset ALLYHUB_FFMPEG and ALLYHUB_FFPROBE if they name it.`}):t,n.signal))}),e.on("close",t=>{if(n.signal?.aborted){a(c(new Error(`${r} stopped`),n.signal));return}l({stdout:Buffer.concat(s),stderr:o,code:t??1})})})}export function lastLine(r){const i=r.split(`
3
+ `).map(n=>n.trim()).filter(Boolean);return i[i.length-1]??""}export async function mapLimit(r,i,n){const l=new Array(r.length);let a=0,e;const s=async()=>{for(let o=a++;o<r.length;o=a++){if(e)return;try{l[o]=await n(r[o],o)}catch(t){e??={error:t}}}};if(await Promise.all(Array.from({length:Math.max(1,Math.min(i,r.length))},s)),e)throw e.error;return l}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media-extension",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/model",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{brightened as w,brightnessOfLum as v,fromHsl as k,hexOfRgb as M,rgbOfHex as O,toHsl as B}from"./brightness.js";import{parseValue as x}from"./node.js";export const SCHEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],DEFAULT_COLOR_MAP={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",...Object.fromEntries(SCHEME_COLORS.map(t=>[t,t]))};const L=["a:srgbClr","a:schemeClr","a:sysClr","a:prstClr","a:hslClr","a:scrgbClr"];export function colorIn(t,l){const e=t?.choice(...L);return e?colorOf(e,l):void 0}const T=M,m=O,C=2.3,u=t=>Math.pow(t,C),h=t=>Math.pow(Math.max(0,t),1/C),f=t=>Math.min(1,Math.max(0,t));export function colorOf(t,l){let e=[0,0,0],s=1,i,p,c=!1;const D=[],g=t;switch(t.key){case"a:srgbClr":e=m(g.attr("val")??"000000");break;case"a:schemeClr":{const r=g.attr("val")??"";r==="phClr"&&l.placeholder?(e=m(l.placeholder.rgb),s=l.placeholder.alpha,i=l.placeholder.scheme,p=l.placeholder.brightness,c=l.placeholder.transformed):(i=l.map[r]??r,e=m(l.scheme[i]??"000000"));break}case"a:sysClr":{const r=g.attr("lastClr"),d=g.attr("val")??"";e=m(r??W[d]??"000000");break}case"a:prstClr":e=m(q(g.attr("val")??""));break;case"a:hslClr":{const r=t;e=k([(r.attr("hue")??0)/6e4,(r.attr("sat")??0)/1e5,(r.attr("lum")??0)/1e5]);break}case"a:scrgbClr":{const r=t;e=[r.attr("r")??0,r.attr("g")??0,r.attr("b")??0].map(d=>h(d/1e5));break}}for(const r of g.kids()){r.use();const d=r.attr("val"),E=typeof d=="number"?d:Number(x("pct",d??"0")),o=E/1e5,F=r.el.local;if(F.startsWith("alpha")){s=F==="alpha"?o:F==="alphaMod"?s*o:s+o,s=f(s);continue}switch(F==="lumMod"||F==="lumOff"?D.push({name:F,val:E}):c=!0,F){case"tint":e=e.map(a=>h(1-(1-u(a))*o));break;case"shade":e=e.map(a=>h(u(a)*o));break;case"inv":e=e.map(a=>h(1-u(a)));break;case"gamma":e=e.map(a=>h(Math.pow(u(a),1/C)));break;case"invGamma":e=e.map(a=>h(Math.pow(u(a),C)));break;case"comp":{const[a,n,b]=B(e);e=k([a+180,n,b]);break}case"gray":{const a=.299*e[0]+.587*e[1]+.114*e[2];e=[a,a,a];break}case"red":case"green":case"blue":case"redMod":case"greenMod":case"blueMod":case"redOff":case"greenOff":case"blueOff":{const a=F.startsWith("red")?0:F.startsWith("green")?1:2,n=e.map(u);n[a]=f(F.endsWith("Mod")?n[a]*o:F.endsWith("Off")?n[a]+o:o),e=n.map(h);break}default:{const a=B(e),n=F.startsWith("hue")?0:F.startsWith("sat")?1:2,b=n===0?E/6e4:o,y=n===0?360:1,A=a[n];a[n]=Math.min(y,Math.max(0,F.endsWith("Mod")?A*o:F.endsWith("Off")?A+b:b)),e=k(a);break}}}if(D.length>0&&!c){const r=p===void 0?v(D):void 0;i===void 0||r===void 0?c=!0:(p=r,e=m(w(l.scheme[i]??"000000",r)))}return{rgb:T(e),alpha:s,...i===void 0||c?{}:{scheme:i},...p===void 0||c?{}:{brightness:p},transformed:c}}const W={window:"FFFFFF",windowText:"000000",btnFace:"F0F0F0",btnText:"000000",highlight:"0078D7",highlightText:"FFFFFF",grayText:"6D6D6D",menu:"F0F0F0",menuText:"000000",infoBk:"FFFFE1",infoText:"000000",hotLight:"0066CC",captionText:"000000",activeCaption:"99B4D1",inactiveCaption:"BFCDDB",appWorkspace:"ABABAB",background:"000000",scrollBar:"C8C8C8","3dDkShadow":"696969","3dLight":"E3E3E3",btnHighlight:"FFFFFF",btnShadow:"A0A0A0",windowFrame:"646464",activeBorder:"B4B4B4",inactiveBorder:"F4F7FC",gradientActiveCaption:"B9D1EA",gradientInactiveCaption:"D7E4F2",menuBar:"F0F0F0",menuHighlight:"3399FF",inactiveCaptionText:"000000"},_={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"DB7093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},q=t=>_[t.replace(/^dk/u,"dark").replace(/^lt/u,"light").replace(/^med/u,"medium").toLowerCase()]??"000000";
2
+ import{brightened as A,brightnessOfLum as B,fromHsl as k,hexOfRgb as f,rgbOfHex as y}from"./brightness.js";import{parseValue as w}from"./node.js";import{transformed as v}from"./transform.js";export const SCHEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],DEFAULT_COLOR_MAP={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",...Object.fromEntries(SCHEME_COLORS.map(F=>[F,F]))};const O=["a:srgbClr","a:schemeClr","a:sysClr","a:prstClr","a:hslClr","a:scrgbClr"];export function colorIn(F,r){const a=F?.choice(...O);return a?colorOf(a,r):void 0}const b=f,s=y;export function colorOf(F,r){let a=[0,0,0],c=1,t,g,m,C=[],d,n=!1;const u=[],i=F;switch(F.key){case"a:srgbClr":a=s(i.attr("val")??"000000");break;case"a:schemeClr":{const e=i.attr("val")??"";e==="phClr"&&r.placeholder?(a=s(r.placeholder.rgb),c=r.placeholder.alpha,t=r.placeholder.scheme,d=r.placeholder.brightness,n=r.placeholder.transformed,g=r.placeholder.name,m=r.placeholder.base,C=r.placeholder.steps??[]):(t=r.map[e]??e,g=e,a=s(r.scheme[t]??"000000"));break}case"a:sysClr":{const e=i.attr("lastClr"),l=i.attr("val")??"";a=s(e??T[l]??"000000");break}case"a:prstClr":a=s(L(i.attr("val")??""));break;case"a:hslClr":{const e=F;a=k([(e.attr("hue")??0)/6e4,(e.attr("sat")??0)/1e5,(e.attr("lum")??0)/1e5]);break}case"a:scrgbClr":{const e=F;a=[e.attr("r")??0,e.attr("g")??0,e.attr("b")??0].map(l=>Math.pow(Math.max(0,l/1e5),1/2.3));break}}const E=m??b(a),p=[...C];for(const e of i.kids()){e.use();const l=e.attr("val"),h=l===void 0?void 0:typeof l=="number"?l:Number(w("pct",l)),o=e.el.local;p.push(h===void 0?{name:o}:{name:o,val:h});const D=v({rgb:a,alpha:c},o,h??0);a=D.rgb,c=D.alpha,!o.startsWith("alpha")&&(o==="lumMod"||o==="lumOff"?u.push({name:o,val:h??0}):n=!0)}if(u.length>0&&!n){const e=d===void 0?B(u):void 0;t===void 0||e===void 0?n=!0:(d=e,a=s(A(r.scheme[t]??"000000",e)))}return{rgb:b(a),alpha:c,...t===void 0||n?{}:{scheme:t},...d===void 0||n?{}:{brightness:d},transformed:n,...g===void 0?{}:{name:g},base:E,steps:p}}const T={window:"FFFFFF",windowText:"000000",btnFace:"F0F0F0",btnText:"000000",highlight:"0078D7",highlightText:"FFFFFF",grayText:"6D6D6D",menu:"F0F0F0",menuText:"000000",infoBk:"FFFFE1",infoText:"000000",hotLight:"0066CC",captionText:"000000",activeCaption:"99B4D1",inactiveCaption:"BFCDDB",appWorkspace:"ABABAB",background:"000000",scrollBar:"C8C8C8","3dDkShadow":"696969","3dLight":"E3E3E3",btnHighlight:"FFFFFF",btnShadow:"A0A0A0",windowFrame:"646464",activeBorder:"B4B4B4",inactiveBorder:"F4F7FC",gradientActiveCaption:"B9D1EA",gradientInactiveCaption:"D7E4F2",menuBar:"F0F0F0",menuHighlight:"3399FF",inactiveCaptionText:"000000"},q={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"DB7093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},L=F=>q[F.replace(/^dk/u,"dark").replace(/^lt/u,"light").replace(/^med/u,"medium").toLowerCase()]??"000000";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const EXT_ELEMENTS={"p14:media":"p14:CT_Media","p14:creationId":"x:CT_Val","p14:modId":"x:CT_Val","a16:creationId":"x:CT_Id","a14:useLocalDpi":"x:CT_Val","asvg:svgBlip":"asvg:CT_SVGBlip","p159:morph":"p159:CT_Morph"},EXT_TYPES={"p14:CT_Media":{a:{"r:embed":["s"],"r:link":["s"]},c:{"p14:trim":"p14:CT_MediaTrim","p14:fade":"p14:CT_MediaFade","p14:bmkLst":"x:CT_Any","p14:extLst":"x:CT_Any"}},"p14:CT_MediaTrim":{a:{st:["s"],end:["s"]}},"p14:CT_MediaFade":{a:{in:["s"],out:["s"]}},"asvg:CT_SVGBlip":{a:{"r:embed":["s"],"r:link":["s"]}},"p159:CT_Morph":{a:{option:["p159:ST_MorphOption","byObject"]}},"x:CT_Val":{a:{val:["s"]}},"x:CT_Id":{a:{id:["s"]}},"x:CT_Any":{any:!0}},EXT_ATTRS={"p:CT_SlideTransition":{"p14:dur":["n"]}},EXT_ENUMS={"p159:ST_MorphOption":["byObject","byWord","byChar"]};
2
+ export const EXT_ELEMENTS={"p14:media":"p14:CT_Media","p14:creationId":"x:CT_Val","p14:modId":"x:CT_Val","a16:creationId":"x:CT_Id","a14:useLocalDpi":"x:CT_Val","asvg:svgBlip":"asvg:CT_SVGBlip","p14:sectionLst":"p14:CT_SectionList","p159:morph":"p159:CT_Morph","p14:reveal":"p14:CT_RevealTransition","p14:warp":"p14:CT_InOutTransition"},EXT_TYPES={"p14:CT_Media":{a:{"r:embed":["s"],"r:link":["s"]},c:{"p14:trim":"p14:CT_MediaTrim","p14:fade":"p14:CT_MediaFade","p14:bmkLst":"x:CT_Any","p14:extLst":"x:CT_Any"}},"p14:CT_MediaTrim":{a:{st:["s"],end:["s"]}},"p14:CT_SectionList":{c:{"p14:section":"p14:CT_Section","p14:extLst":"x:CT_Any"}},"p14:CT_Section":{a:{name:["s"],id:["s"]},c:{"p14:sldIdLst":"p14:CT_SectionSlideIdList","p14:extLst":"x:CT_Any"}},"p14:CT_SectionSlideIdList":{c:{"p14:sldId":"p14:CT_SectionSlideIdListEntry"}},"p14:CT_SectionSlideIdListEntry":{a:{id:["n"]}},"p14:CT_MediaFade":{a:{in:["s"],out:["s"]}},"asvg:CT_SVGBlip":{a:{"r:embed":["s"],"r:link":["s"]}},"p159:CT_Morph":{a:{option:["p159:ST_MorphOption","byObject"]}},"p14:CT_RevealTransition":{a:{thruBlk:["b","false"],dir:["s","l"]}},"p14:CT_InOutTransition":{a:{dir:["s","out"]}},"x:CT_Val":{a:{val:["s"]}},"x:CT_Id":{a:{id:["s"]}},"x:CT_Any":{any:!0}},EXT_ATTRS={"p:CT_SlideTransition":{"p14:dur":["n"]}},EXT_ENUMS={"p159:ST_MorphOption":["byObject","byWord","byChar"]};
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{NAMESPACES,qname,transitional,isStrict,uriOf}from"./ns.js";export{parseXml,attrOf}from"./xml.js";export{applyMce,understands}from"./mce.js";export{Marks,XEl,as,rootOf,rootType,childType,attrSpec,parseValue,knowsElement}from"./node.js";export{leftovers,groupReport}from"./report.js";export{Package,resolvePart}from"./opc.js";export{colorIn,colorOf,DEFAULT_COLOR_MAP,SCHEME_COLORS}from"./color.js";export{brightened,brightnessOfLum,lumOf}from"./brightness.js";export{ENUMS}from"./generated/enums.js";
2
+ export{NAMESPACES,qname,transitional,isStrict,uriOf}from"./ns.js";export{parseXml,attrOf}from"./xml.js";export{applyMce,understands}from"./mce.js";export{Marks,XEl,as,rootOf,rootType,childType,attrSpec,parseValue,knowsElement}from"./node.js";export{leftovers,groupReport}from"./report.js";export{Package,resolvePart}from"./opc.js";export{colorIn,colorOf,DEFAULT_COLOR_MAP,SCHEME_COLORS}from"./color.js";export{transformed}from"./transform.js";export{brightened,brightnessOfLum,lumOf}from"./brightness.js";export{ENUMS}from"./generated/enums.js";
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{fromHsl as u,toHsl as b}from"./brightness.js";const n=2.3,r=o=>Math.pow(o,n),h=o=>Math.pow(Math.max(0,o),1/n),p=o=>Math.min(1,Math.max(0,o));export function transformed(o,t,d=0){const c=d/1e5;let s=o.rgb,f=o.alpha;if(t.startsWith("alpha"))return f=t==="alpha"?c:t==="alphaMod"?f*c:f+c,{rgb:s,alpha:p(f)};switch(t){case"tint":s=s.map(a=>h(1-(1-r(a))*c));break;case"shade":s=s.map(a=>h(r(a)*c));break;case"inv":s=s.map(a=>h(1-r(a)));break;case"gamma":s=s.map(a=>h(Math.pow(r(a),1/n)));break;case"invGamma":s=s.map(a=>h(Math.pow(r(a),n)));break;case"comp":{const[a,e,i]=b(s);s=u([a+180,e,i]);break}case"gray":{const a=.299*s[0]+.587*s[1]+.114*s[2];s=[a,a,a];break}case"red":case"green":case"blue":case"redMod":case"greenMod":case"blueMod":case"redOff":case"greenOff":case"blueOff":{const a=t.startsWith("red")?0:t.startsWith("green")?1:2,e=s.map(r);e[a]=p(t.endsWith("Mod")?e[a]*c:t.endsWith("Off")?e[a]+c:c),s=e.map(h);break}case"hue":case"hueMod":case"hueOff":case"sat":case"satMod":case"satOff":case"lum":case"lumMod":case"lumOff":{const a=b(s),e=t.startsWith("hue")?0:t.startsWith("sat")?1:2,i=e===0&&t!=="hueMod"?d/6e4:c,l=a[e],M=t.endsWith("Mod")?l*c:t.endsWith("Off")?l+i:i;a[e]=e===0?(M%360+360)%360:p(M),s=u(a);break}}return{rgb:s,alpha:f}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/ooxml",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -18,6 +18,10 @@
18
18
  "./brightness": {
19
19
  "types": "./dist/brightness.d.ts",
20
20
  "default": "./dist/brightness.js"
21
+ },
22
+ "./transform": {
23
+ "types": "./dist/transform.d.ts",
24
+ "default": "./dist/transform.js"
21
25
  }
22
26
  },
23
27
  "sideEffects": false,
@@ -27,7 +27,7 @@ export interface MediaGen {
27
27
  matches?: boolean;
28
28
  }
29
29
  /**
30
- * A `.gen.json`'s content as a media value's `gen`, or why it cannot be
30
+ * A `.provenance`'s content as a media value's `gen`, or why it cannot be
31
31
  * read. `sha256` is the media file's own.
32
32
  */
33
33
  export declare function mediaGen(record: string, value: unknown, sha256: string): {
@@ -50,7 +50,7 @@ export interface GeneratedUse {
50
50
  start?: number;
51
51
  end?: number;
52
52
  }
53
- /** A generated file a version shows or plays (it has a `.gen.json` record whose `ai` is not false). */
53
+ /** A generated file a version shows or plays (it has a `.provenance` record whose `ai` is not false). */
54
54
  export interface GeneratedFile {
55
55
  file: string;
56
56
  kind: MediaKind;
@@ -70,7 +70,7 @@ export interface GeneratedFile {
70
70
  /** What the facts of generated media measure: every kind's, a contract between kinds. */
71
71
  export interface GeneratedFactData {
72
72
  /**
73
- * The generated media a version shows or plays, from the `.gen.json`
73
+ * The generated media a version shows or plays, from the `.provenance`
74
74
  * records beside its files, and when: one per output × combo × format
75
75
  * that uses any. Whether a platform's AI label is needed is the
76
76
  * agent's to decide.
@@ -83,7 +83,7 @@ export interface GeneratedFactData {
83
83
  estimated?: true;
84
84
  };
85
85
  /**
86
- * A `.gen.json` record that does not hold for the file beside it: its
86
+ * A `.provenance` record that does not hold for the file beside it: its
87
87
  * sha256 is another file's (the record was moved or copied without its
88
88
  * media, or the media was changed), or it cannot be read. One per piece
89
89
  * that reads the file.
@@ -74,12 +74,12 @@ export interface MediaInfo {
74
74
  /** A take: what is heard between its words, reported, never removed on its own. */
75
75
  sounds?: UnheardSound[];
76
76
  /**
77
- * The file's provenance, from the `<file>.gen.json` beside it (gen.ts):
77
+ * The file's provenance, from the `<file>.provenance` beside it (gen.ts):
78
78
  * the tool that generated it, when, from what input. Absent without a
79
79
  * readable record.
80
80
  */
81
81
  gen?: MediaGen;
82
- /** A `<file>.gen.json` beside it that could not be read, and why. */
82
+ /** A `<file>.provenance` beside it that could not be read, and why. */
83
83
  genUnread?: {
84
84
  record: string;
85
85
  error: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{createHash as g}from"node:crypto";import{codeOf as p,fontsDigest as m,stageId as l}from"@allyhub/build";import{stageIdentity as y}from"@allyhub/stage";const d="allyhub-deck-key-v1",a=t=>g("sha256").update(t).digest("hex"),u=new WeakMap;export function itemDigests(t,e){let o=u.get(t);o||(o=new Map,u.set(t,o));const c=l(e);let n=o.get(c);return n||(n=(async()=>{const s=await m(t.root,t.files,t.fonts),r=y(s),i=await p(t,e,r);return{code:a(JSON.stringify([i.bundle,i.vendor])),renderer:a(JSON.stringify(r))}})(),o.set(c,n)),n}function h(t){const e=new Set;let o=!1;const c=n=>{if(Array.isArray(n))for(const s of n)c(s);else if(typeof n=="object"&&n!==null){const s=n;"component"in s&&typeof s.component=="object"&&(o=!0);const r=s.background_picture;typeof r=="string"&&e.add(r);const i=s.media;if(typeof i=="object"&&i!==null&&"path"in i){const f=i.path;typeof f=="string"&&e.add(f)}for(const f of Object.values(s))c(f)}};return c(JSON.parse(t)),{media:[...e].sort(),component:o}}export function partKeys(t,e){const o={};for(const[c,n]of Object.entries(t)){const{media:s,component:r}=h(n);o[c]=a(JSON.stringify([d,e.digests.renderer,e.gpu?"gpu":"cpu",r?e.digests.code:null,s.map(i=>[i,e.prepared.media[i]?.sha256??null]),n]))}return o}export function componentKey(t,e){return a(JSON.stringify([d,"component",e.digests.renderer,e.digests.code,e.gpu?"gpu":"cpu",t.name,t.props,t.width,t.height,t.t]))}
2
+ import{createHash as g}from"node:crypto";import{codeOf as l,fontsDigest as m,stageId as y}from"@allyhub/build";import{stageIdentity as h}from"@allyhub/stage";const p="allyhub-deck-key-v1",d=t=>g("sha256").update(t).digest("hex"),u=new WeakMap;export function itemDigests(t,e){let s=u.get(t);s||(s=new Map,u.set(t,s));const c=y(e);let n=s.get(c);return n||(n=(async()=>{const o=await m(t.root,t.files,t.fonts),r=h(o),i=await l(t,e,r);return{code:d(JSON.stringify([i.bundle,i.vendor])),renderer:d(JSON.stringify(r))}})(),s.set(c,n)),n}function b(t){const e=new Set;let s=!1;const c=n=>{if(Array.isArray(n))for(const o of n)c(o);else if(typeof n=="object"&&n!==null){const o=n;"component"in o&&typeof o.component=="object"&&(s=!0);const r=o.background_picture;typeof r=="string"&&e.add(r);const i=o.picture_fill;if(typeof i=="object"&&i!==null&&"path"in i){const f=i.path;typeof f=="string"&&e.add(f)}const a=o.media;if(typeof a=="object"&&a!==null&&"path"in a){const f=a.path;typeof f=="string"&&e.add(f)}for(const f of Object.values(o))c(f)}};return c(JSON.parse(t)),{media:[...e].sort(),component:s}}export function partKeys(t,e){const s={};for(const[c,n]of Object.entries(t)){const{media:o,component:r}=b(n);s[c]=d(JSON.stringify([p,e.digests.renderer,e.gpu?"gpu":"cpu",r?e.digests.code:null,o.map(i=>[i,e.prepared.media[i]?.sha256??null]),n]))}return s}export function componentKey(t,e){return d(JSON.stringify([p,"component",e.digests.renderer,e.digests.code,e.gpu?"gpu":"cpu",t.name,t.props,t.width,t.height,t.t]))}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/project",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -42,10 +42,17 @@ export type Profile = z.infer<typeof ProfileSchema>;
42
42
  /** The roles of a team, the strongest last. */
43
43
  export declare const ROLES: readonly ["member", "admin", "owner"];
44
44
  export type Role = (typeof ROLES)[number];
45
- /** One call: its route (a `:name` filled from the parameter of that name) and its method; the other parameters are the query of a GET or a DELETE, else the body. */
45
+ /**
46
+ * One call: its route (a `:name` filled from the parameter of that name)
47
+ * and its method; a parameter named in `headers` is sent as that request
48
+ * header; the other parameters are the query of a GET or a DELETE, else
49
+ * the body.
50
+ */
46
51
  export interface AccountCall<P extends z.ZodType = z.ZodType, R extends z.ZodType = z.ZodType> extends MethodSpec<P, R> {
47
52
  http: "GET" | "POST" | "PUT" | "DELETE";
48
53
  route: string;
54
+ /** The parameters sent as request headers, each by its header's name. */
55
+ headers?: Readonly<Record<string, string>>;
49
56
  }
50
57
  export declare const ACCOUNT_CALLS: {
51
58
  readonly balance: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
@@ -336,6 +343,7 @@ export declare const ACCOUNT_CALLS: {
336
343
  }, z.core.$strip>>;
337
344
  readonly topUp: AccountCall<z.ZodObject<{
338
345
  topUpCents: z.ZodNumber;
346
+ key: z.ZodUUID;
339
347
  }, z.core.$strict>, z.ZodObject<{
340
348
  credits: z.ZodNumber;
341
349
  }, z.core.$strip>>;
@@ -437,8 +445,8 @@ export declare const ACCOUNT_CALLS: {
437
445
  displayName: z.ZodString;
438
446
  retentionDays: z.ZodNumber;
439
447
  sendPolicy: z.ZodUnion<readonly [z.ZodEnum<{
440
- off: "off";
441
448
  team: "team";
449
+ off: "off";
442
450
  anyone: "anyone";
443
451
  }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
444
452
  sendsLeft: z.ZodNumber;
@@ -456,8 +464,8 @@ export declare const ACCOUNT_CALLS: {
456
464
  readonly "mail/settings": AccountCall<z.ZodObject<{
457
465
  displayName: z.ZodOptional<z.ZodString>;
458
466
  sendPolicy: z.ZodOptional<z.ZodEnum<{
459
- off: "off";
460
467
  team: "team";
468
+ off: "off";
461
469
  anyone: "anyone";
462
470
  }>>;
463
471
  retentionDays: z.ZodOptional<z.ZodNumber>;
@@ -466,8 +474,8 @@ export declare const ACCOUNT_CALLS: {
466
474
  displayName: z.ZodString;
467
475
  retentionDays: z.ZodNumber;
468
476
  sendPolicy: z.ZodUnion<readonly [z.ZodEnum<{
469
- off: "off";
470
477
  team: "team";
478
+ off: "off";
471
479
  anyone: "anyone";
472
480
  }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
473
481
  sendsLeft: z.ZodNumber;
@@ -586,6 +594,41 @@ export declare const ACCOUNT_CALLS: {
586
594
  readonly "profile/set": AccountCall<z.ZodObject<{
587
595
  name: z.ZodString;
588
596
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
597
+ readonly storage: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
598
+ keptBytes: z.ZodNumber;
599
+ capBytes: z.ZodNullable<z.ZodNumber>;
600
+ }, z.core.$strip>>;
601
+ readonly "storage/projects": AccountCall<z.ZodObject<{
602
+ page: z.ZodInt;
603
+ }, z.core.$strict>, z.ZodObject<{
604
+ items: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
605
+ id: string;
606
+ kind: "home" | "project";
607
+ name: string;
608
+ bytes: number;
609
+ versions: number;
610
+ madeAt: string | null;
611
+ }[], unknown[]>>;
612
+ total: z.ZodNumber;
613
+ }, z.core.$strip>>;
614
+ readonly "storage/files": AccountCall<z.ZodObject<{
615
+ page: z.ZodInt;
616
+ }, z.core.$strict>, z.ZodObject<{
617
+ items: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
618
+ id: string;
619
+ name: string;
620
+ contentType: string;
621
+ size: number;
622
+ keptUntil: string;
623
+ }[], unknown[]>>;
624
+ total: z.ZodNumber;
625
+ }, z.core.$strip>>;
626
+ readonly "files/delete": AccountCall<z.ZodObject<{
627
+ id: z.ZodString;
628
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
629
+ readonly "projects/delete": AccountCall<z.ZodObject<{
630
+ id: z.ZodString;
631
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
589
632
  readonly devices: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
590
633
  devices: z.ZodArray<z.ZodObject<{
591
634
  id: z.ZodString;
@@ -609,10 +652,11 @@ export declare const ACCOUNT_CALLS: {
609
652
  };
610
653
  export type AccountCalls = typeof ACCOUNT_CALLS;
611
654
  export type AccountCallName = keyof AccountCalls;
612
- /** A call as an HTTP request: its method, its path with the route's parameters and a GET's or a DELETE's query, and a body. */
655
+ /** A call as an HTTP request: its method, its path with the route's parameters and a GET's or a DELETE's query, a body, and the headers the call names. */
613
656
  export declare function accountRequest(c: AccountCall, params: unknown): {
614
657
  method: AccountCall["http"];
615
658
  path: string;
616
659
  body?: unknown;
660
+ headers?: Record<string, string>;
617
661
  };
618
662
  //# sourceMappingURL=account.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{ACCOUNT_DELETE_PATH as _,ACCOUNT_EXPORT_PATH as f,DEVICES_PATH as p,DevicesSchema as y}from"./auth.js";import{AUTO_TOP_UP_PATH as b,AutoTopUpRequestSchema as L,BILLING_CHECKOUT_PATH as v,BILLING_PAYMENT_PATH as G,BILLING_PLANS_PATH as j,BILLING_PORTAL_PATH as U,BILLING_REQUEST_PATH as H,BILLING_RESUME_PATH as k,BILLING_SUMMARY_PATH as N,BILLING_TOP_UP_PATH as C,BILLING_USAGE_PATH as R,BillingPaymentSchema as x,BillingPlansSchema as M,BillingSummarySchema as u,BillingUsageSchema as B,CheckoutRequestSchema as D,PortalRequestSchema as $,TopUpRequestSchema as z,BILLING_INVOICES_PATH as q,BILLING_SPENDS_PATH as V,BillingInvoicesSchema as Y,CAPABILITIES_PATH as A,CATALOG_PATH as Z,EDITORS_PATH as K,EditorsSchema as F,CapabilitiesSchema as E,CapabilityRequestSchema as Q,CatalogSchema as X,BillingSpendsSchema as J}from"./cloud.js";import{MAIL_MESSAGES_PATH as g,MAIL_PATH as W,MAIL_PERSON_QUERY as ee,MAIL_SETTINGS_PATH as te,MailMessageSchema as ie,MailSearchResponseSchema as ne,MailSearchSchema as oe,MailSettingsSchema as se,MailboxSchema as S}from"./mail.js";import{MEMBERS_PATH as l,MemberLimitSchema as ae,MembersSchema as re,ORGANIZATIONS_PATH as P,ORGANIZATION_PATH as I}from"./teams.js";export const INVITATIONS_PATH="/api/organization/invitations",InvitationsSchema=e.object({invitations:e.array(e.object({id:e.string(),email:e.string(),role:e.string(),expiresAt:e.iso.datetime()}))}),LEAVE_PATH="/api/organization/leave",KEYS_PATH="/api/keys",KeysSchema=e.object({keys:e.array(e.object({id:e.string(),name:e.string().nullable(),start:e.string().nullable(),enabled:e.boolean(),createdAt:e.iso.datetime(),lastUsedAt:e.iso.datetime().nullable()}))}),PROFILE_PATH="/api/account/profile",ProfileSchema=e.object({name:e.string(),email:e.string(),google:e.boolean(),v1:e.object({url:e.url(),closesAt:e.iso.datetime({offset:!0}),bonusCredits:e.number().int().nonnegative().default(0)}).optional()}),ROLES=["member","admin","owner"];const i=e.strictObject({}),n=e.object({}),w=e.object({url:e.url()}),d=e.string().trim().min(1).max(100),t=(o,h,m,c,s)=>({http:o,route:h,params:m,result:c,about:s});export const ACCOUNT_CALLS={balance:t("GET",N,i,u,"The organization's credits, this month's plan credits, its plan and its auto top-up."),plans:t("GET",j,i,M,"The plans, their prices, and what a top-up buys."),usage:t("GET",R,e.strictObject({days:e.int().min(1).max(400),timeZone:e.string().min(1)}),B,"Credits spent each day by what they were spent on, the days with none left out."),catalog:t("GET",Z,i,X,"The cloud tools' catalog: its works and every tool, with what it costs."),editors:t("GET",K,i,F,"The editors the console lists, free in every product, in their order."),capabilities:t("GET",A,i,E,"The cloud tools the team turned off: works and tools."),"capabilities/set":t("PUT",A,Q,E,"A work or a tool switched on or off for the team, an owner's or an admin's; what is off now."),spends:t("GET",V,e.strictObject({days:e.int().min(1).max(400),limit:e.int().min(1).max(5e3).optional()}),J,"Each spend of the last days, the latest first: when, by whom, on what and how many credits; a member reads their own."),checkout:t("POST",v,D,w,"Stripe Checkout for a plan or a top-up, to open in a browser."),portal:t("POST",U,$,w,"Stripe's Customer Portal at its home (the card, billing details, invoices) or at a flow (a new card, a change of plan, the plan's cancellation), to open in a browser."),resume:t("POST",k,i,u,"A plan cancelled at its period's end taken up again."),payment:t("GET",G,i,x,"The card charged without the person there, and where Stripe's emails go."),invoices:t("GET",q,i,Y,"The organization's invoices, the latest first, each with its PDF."),topUp:t("POST",C,z,e.object({credits:e.number()}),"Credits bought with the saved card at once; answers what was added."),"autoTopUp/set":t("PUT",b,L,e.union([e.object({on:e.literal(!0)}),e.object({saveCard:e.url()})]),"Auto top-up on, or Stripe Checkout that saves a card first (or another), to open in a browser."),"autoTopUp/off":t("DELETE",b,i,n,"Auto top-up off."),"credits/request":t("POST",H,i,e.object({asked:e.literal(!0)}),"The organization's owners and admins asked by email to add credits, at most once a day for each member."),members:t("GET",l,i,re,"The members with their limits and spend; a member sees their own row."),"members/limit":t("PUT",`${l}/:userId/limit`,e.strictObject({userId:e.string().min(1)}).extend(ae.shape),n,"A member's limit in credits a month, null for none."),"members/role":t("PUT",`${l}/:userId/role`,e.strictObject({userId:e.string().min(1),role:e.enum(ROLES)}),n,"A member's role; only an owner makes or unmakes an owner."),"members/remove":t("DELETE",`${l}/:userId`,e.strictObject({userId:e.string().min(1)}),n,"A member removed from the team."),invitations:t("GET",INVITATIONS_PATH,i,InvitationsSchema,"The invitations waiting to be accepted."),"invitations/send":t("POST",INVITATIONS_PATH,e.strictObject({email:e.email(),role:e.enum(["member","admin"])}),n,"Invites a person by email; one invited already is sent a new invitation."),"invitations/cancel":t("DELETE",`${INVITATIONS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),n,"An invitation cancelled."),"team/create":t("POST",P,e.strictObject({name:d}),e.object({id:e.string()}),"A new team, the person its owner."),"team/rename":t("PUT",I,e.strictObject({name:d}),n,"The team renamed."),"team/leave":t("POST",LEAVE_PATH,i,n,"The person leaves the team; its last owner cannot."),"team/dissolve":t("DELETE",I,i,n,"The team dissolved by its owner; it can be restored for 30 days."),"team/restore":t("POST",`${P}/:id/restore`,e.strictObject({id:e.string().min(1)}),n,"A dissolved team restored by its owner."),keys:t("GET",KEYS_PATH,i,KeysSchema,"The person's API keys for the organization."),"keys/create":t("POST",KEYS_PATH,e.strictObject({name:d}),e.object({id:e.string(),key:e.string()}),"A new API key; its secret is in this answer alone."),"keys/enable":t("PUT",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1),enabled:e.boolean()}),n,"An API key turned off or on again."),"keys/remove":t("DELETE",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),n,"An API key deleted."),mail:t("GET",W,i,S,"The person's mailbox in the organization: its addresses and settings."),"mail/settings":t("PUT",`${te}?${ee}`,se,S,"The mailbox's display name, whom its agents may write to, and how long it keeps mail."),"mail/messages":t("GET",g,oe,ne,"The mailbox's messages, newest first."),"mail/message":t("GET",`${g}/:id`,e.strictObject({id:e.string().min(1)}),ie,"One message, read whole."),profile:t("GET",PROFILE_PATH,i,ProfileSchema,"The person's name and email, whether Google signs them in, and AllyHub's previous version while it is open to them."),"profile/set":t("PUT",PROFILE_PATH,e.strictObject({name:d}),n,"The person's name."),devices:t("GET",p,i,y,"The computers signed in as the person."),"devices/signOut":t("DELETE",`${p}/:id`,e.strictObject({id:e.string().min(1)}),n,"A computer signed out."),"devices/signOutOthers":t("DELETE",p,i,n,"Every computer signed out but the one that asks."),export:t("GET",f,i,e.record(e.string(),e.unknown()),"Everything kept about the person."),close:t("POST",_,i,n,"Mails the link that deletes the person's account: a browser's session alone, so a computer opens the page in the browser.")};export function accountRequest(o,h){const m=h,c=new Set,s=o.route.replace(/:([A-Za-z]+)/gu,(r,a)=>(c.add(a),encodeURIComponent(String(m[a])))),T=Object.entries(m).filter(([r,a])=>!c.has(r)&&a!==void 0);if(o.http==="GET"||o.http==="DELETE"){const r=T.map(([a,O])=>`${encodeURIComponent(a)}=${encodeURIComponent(String(O))}`).join("&");return{method:o.http,path:r===""?s:`${s}?${r}`}}return T.length===0?{method:o.http,path:s}:{method:o.http,path:s,body:Object.fromEntries(T)}}
2
+ import{z as e}from"zod";import{ACCOUNT_DELETE_PATH as j,ACCOUNT_EXPORT_PATH as G,DEVICES_PATH as b,DevicesSchema as v}from"./auth.js";import{FILES_PATH as H,AUTO_TOP_UP_PATH as A,AutoTopUpRequestSchema as k,BILLING_CHECKOUT_PATH as U,BILLING_PAYMENT_PATH as C,BILLING_PLANS_PATH as R,BILLING_PORTAL_PATH as N,BILLING_REQUEST_PATH as x,BILLING_RESUME_PATH as M,BILLING_SUMMARY_PATH as B,BILLING_TOP_UP_PATH as D,BILLING_USAGE_PATH as $,BillingPaymentSchema as z,BillingPlansSchema as q,BillingSummarySchema as S,BillingUsageSchema as Y,CheckoutRequestSchema as F,PortalRequestSchema as K,TopUpRequestSchema as V,BILLING_INVOICES_PATH as Z,BILLING_SPENDS_PATH as J,BillingInvoicesSchema as Q,IDEMPOTENCY_KEY_HEADER as W,CAPABILITIES_PATH as P,CATALOG_PATH as X,EDITORS_PATH as ee,EditorsSchema as te,CapabilitiesSchema as O,CapabilityRequestSchema as se,CatalogSchema as oe,BillingSpendsSchema as ie}from"./cloud.js";import{PROJECTS_PATH as ne,STORAGE_FILES_PATH as ae,STORAGE_PATH as re,STORAGE_PROJECTS_PATH as ce,StoragePageSchema as w,StorageSchema as me,StoredFilesSchema as le,StoredProjectsSchema as he}from"./snapshots.js";import{MAIL_MESSAGES_PATH as f,MAIL_PATH as de,MAIL_PERSON_QUERY as pe,MAIL_SETTINGS_PATH as Te,MailMessageSchema as ue,MailSearchResponseSchema as Ee,MailSearchSchema as be,MailSettingsSchema as ge,MailboxSchema as I}from"./mail.js";import{MEMBERS_PATH as d,MemberLimitSchema as Ae,MembersSchema as Se,ORGANIZATIONS_PATH as _,ORGANIZATION_PATH as y}from"./teams.js";export const INVITATIONS_PATH="/api/organization/invitations",InvitationsSchema=e.object({invitations:e.array(e.object({id:e.string(),email:e.string(),role:e.string(),expiresAt:e.iso.datetime()}))}),LEAVE_PATH="/api/organization/leave",KEYS_PATH="/api/keys",KeysSchema=e.object({keys:e.array(e.object({id:e.string(),name:e.string().nullable(),start:e.string().nullable(),enabled:e.boolean(),createdAt:e.iso.datetime(),lastUsedAt:e.iso.datetime().nullable()}))}),PROFILE_PATH="/api/account/profile",ProfileSchema=e.object({name:e.string(),email:e.string(),google:e.boolean(),v1:e.object({url:e.url(),closesAt:e.iso.datetime({offset:!0}),bonusCredits:e.number().int().nonnegative().default(0)}).optional()}),ROLES=["member","admin","owner"];const s=e.strictObject({}),o=e.object({}),L=e.object({url:e.url()}),p=e.string().trim().min(1).max(100),t=(i,T,c,l,r,m)=>({http:i,route:T,params:c,result:l,about:r,...m===void 0?{}:{headers:m}});export const ACCOUNT_CALLS={balance:t("GET",B,s,S,"The organization's credits, this month's plan credits, its plan and its auto top-up."),plans:t("GET",R,s,q,"The plans, their prices, and what a top-up buys."),usage:t("GET",$,e.strictObject({days:e.int().min(1).max(400),timeZone:e.string().min(1)}),Y,"Credits spent each day by what they were spent on, the days with none left out."),catalog:t("GET",X,s,oe,"The cloud tools' catalog: its works and every tool, with what it costs."),editors:t("GET",ee,s,te,"The editors the console lists, free in every product, in their order."),capabilities:t("GET",P,s,O,"The cloud tools the team turned off: works and tools."),"capabilities/set":t("PUT",P,se,O,"A work or a tool switched on or off for the team, an owner's or an admin's; what is off now."),spends:t("GET",J,e.strictObject({days:e.int().min(1).max(400),limit:e.int().min(1).max(5e3).optional()}),ie,"Each spend of the last days, the latest first: when, by whom, on what and how many credits; a member reads their own."),checkout:t("POST",U,F,L,"Stripe Checkout for a plan or a top-up, to open in a browser."),portal:t("POST",N,K,L,"Stripe's Customer Portal at its home (the card, billing details, invoices) or at a flow (a new card, a change of plan, the plan's cancellation), to open in a browser."),resume:t("POST",M,s,S,"A plan cancelled at its period's end taken up again."),payment:t("GET",C,s,z,"The card charged without the person there, and where Stripe's emails go."),invoices:t("GET",Z,s,Q,"The organization's invoices, the latest first, each with its PDF."),topUp:t("POST",D,V.extend({key:e.uuid()}),e.object({credits:e.number()}),"Credits bought with the saved card at once, once by the purchase's key; answers what was added. A browser's session alone.",{key:W}),"autoTopUp/set":t("PUT",A,k,e.union([e.object({on:e.literal(!0)}),e.object({saveCard:e.url()})]),"Auto top-up on, or Stripe Checkout that saves a card first (or another), to open in a browser. A browser's session alone."),"autoTopUp/off":t("DELETE",A,s,o,"Auto top-up off."),"credits/request":t("POST",x,s,e.object({asked:e.literal(!0)}),"The organization's owners and admins asked by email to add credits, at most once a day for each member."),members:t("GET",d,s,Se,"The members with their limits and spend; a member sees their own row."),"members/limit":t("PUT",`${d}/:userId/limit`,e.strictObject({userId:e.string().min(1)}).extend(Ae.shape),o,"A member's limit in credits a month, null for none."),"members/role":t("PUT",`${d}/:userId/role`,e.strictObject({userId:e.string().min(1),role:e.enum(ROLES)}),o,"A member's role; only an owner makes or unmakes an owner."),"members/remove":t("DELETE",`${d}/:userId`,e.strictObject({userId:e.string().min(1)}),o,"A member removed from the team."),invitations:t("GET",INVITATIONS_PATH,s,InvitationsSchema,"The invitations waiting to be accepted."),"invitations/send":t("POST",INVITATIONS_PATH,e.strictObject({email:e.email(),role:e.enum(["member","admin"])}),o,"Invites a person by email; one invited already is sent a new invitation."),"invitations/cancel":t("DELETE",`${INVITATIONS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),o,"An invitation cancelled."),"team/create":t("POST",_,e.strictObject({name:p}),e.object({id:e.string()}),"A new team, the person its owner."),"team/rename":t("PUT",y,e.strictObject({name:p}),o,"The team renamed."),"team/leave":t("POST",LEAVE_PATH,s,o,"The person leaves the team; its last owner cannot."),"team/dissolve":t("DELETE",y,s,o,"The team dissolved by its owner; it can be restored for 30 days."),"team/restore":t("POST",`${_}/:id/restore`,e.strictObject({id:e.string().min(1)}),o,"A dissolved team restored by its owner."),keys:t("GET",KEYS_PATH,s,KeysSchema,"The person's API keys for the organization."),"keys/create":t("POST",KEYS_PATH,e.strictObject({name:p}),e.object({id:e.string(),key:e.string()}),"A new API key; its secret is in this answer alone."),"keys/enable":t("PUT",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1),enabled:e.boolean()}),o,"An API key turned off or on again."),"keys/remove":t("DELETE",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),o,"An API key deleted."),mail:t("GET",de,s,I,"The person's mailbox in the organization: its addresses and settings."),"mail/settings":t("PUT",`${Te}?${pe}`,ge,I,"The mailbox's display name, whom its agents may write to, and how long it keeps mail."),"mail/messages":t("GET",f,be,Ee,"The mailbox's messages, newest first."),"mail/message":t("GET",`${f}/:id`,e.strictObject({id:e.string().min(1)}),ue,"One message, read whole."),profile:t("GET",PROFILE_PATH,s,ProfileSchema,"The person's name and email, whether Google signs them in, and AllyHub's previous version while it is open to them."),"profile/set":t("PUT",PROFILE_PATH,e.strictObject({name:p}),o,"The person's name."),storage:t("GET",re,s,me,"What the organization keeps in the cloud of what it may."),"storage/projects":t("GET",ce,w,he,"A page of the person's projects in the cloud and their cloud Studio's home, the largest first, each with what it alone holds."),"storage/files":t("GET",ae,w,le,"A page of the person's tools' inputs and outputs kept in the cloud, the largest first."),"files/delete":t("DELETE",`${H}/:id`,e.strictObject({id:e.string().min(1)}),o,"One of the person's tools' inputs or outputs deleted from the cloud; its bytes stay while a project names them."),"projects/delete":t("DELETE",`${ne}/:id`,e.strictObject({id:e.string().min(1)}),o,"One of the person's projects deleted from the cloud, with its snapshots; a copy on a computer stays."),devices:t("GET",b,s,v,"The computers signed in as the person."),"devices/signOut":t("DELETE",`${b}/:id`,e.strictObject({id:e.string().min(1)}),o,"A computer signed out."),"devices/signOutOthers":t("DELETE",b,s,o,"Every computer signed out but the one that asks."),export:t("GET",G,s,e.record(e.string(),e.unknown()),"Everything kept about the person."),close:t("POST",j,s,o,"Mails the link that deletes the person's account: a browser's session alone, so a computer opens the page in the browser.")};export function accountRequest(i,T){const c=T,l=new Set,r=i.route.replace(/:([A-Za-z]+)/gu,(n,a)=>(l.add(a),encodeURIComponent(String(c[a])))),m=i.headers??{},g=Object.entries(m).flatMap(([n,a])=>{const h=c[n];return typeof h=="string"?[[a,h]]:[]}),u=g.length===0?{}:{headers:Object.fromEntries(g)},E=Object.entries(c).filter(([n,a])=>!l.has(n)&&!(n in m)&&a!==void 0);if(i.http==="GET"||i.http==="DELETE"){const n=E.map(([a,h])=>`${encodeURIComponent(a)}=${encodeURIComponent(String(h))}`).join("&");return{method:i.http,path:n===""?r:`${r}?${n}`,...u}}return E.length===0?{method:i.http,path:r,...u}:{method:i.http,path:r,body:Object.fromEntries(E),...u}}
@@ -66,6 +66,62 @@ export declare const BrowserLinkSchema: z.ZodObject<{
66
66
  url: z.ZodURL;
67
67
  }, z.core.$strip>;
68
68
  export type BrowserLink = z.infer<typeof BrowserLinkSchema>;
69
+ /**
70
+ * `GET`, open to anyone: what AllyHub's own sign-in page needs before it
71
+ * asks for a sign-in link. `turnstile` is there where a link is sent only
72
+ * to a request that carries Cloudflare Turnstile's token (the page draws
73
+ * the widget with `siteKey` and sends its token as `CAPTCHA_HEADER`).
74
+ */
75
+ export declare const SIGN_IN_PATH = "/api/sign-in";
76
+ export declare const SignInSchema: z.ZodObject<{
77
+ turnstile: z.ZodOptional<z.ZodObject<{
78
+ siteKey: z.ZodString;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$strip>;
81
+ export type SignIn = z.infer<typeof SignInSchema>;
82
+ /** The header a request for a sign-in link carries Turnstile's token in (Better Auth's captcha plugin's name for it). */
83
+ export declare const CAPTCHA_HEADER = "x-captcha-response";
84
+ /**
85
+ * `POST { email, authorization }`, open to anyone, a few times in ten
86
+ * minutes from one address: AllyHub mails `email` a link that signs a
87
+ * browser in and goes on to `authorization`, the authorization a program
88
+ * on this computer began for its own sign-in (AllyHub's client, the code
89
+ * back to its loopback; anything else is refused). It is how a program
90
+ * with no page of AllyHub's to ask from signs in by email (Studio's
91
+ * Welcome): the person stays in the program, and the link, followed in a
92
+ * browser on that computer, signs the computer in. AllyHub's own sign-in
93
+ * page asks Better Auth's route instead, with Turnstile's token where its
94
+ * keys are set; this route takes none, a program having nowhere to get
95
+ * one. Answers `{}` whether or not the address has an account.
96
+ */
97
+ export declare const SIGN_IN_LINK_PATH = "/api/auth/sign-in/link";
98
+ export declare const SignInLinkRequestSchema: z.ZodObject<{
99
+ email: z.ZodEmail;
100
+ authorization: z.ZodURL;
101
+ }, z.core.$strict>;
102
+ export type SignInLinkRequest = z.infer<typeof SignInLinkRequestSchema>;
103
+ /**
104
+ * The scheme of the link that brings AllyHub's desktop app to the front (a
105
+ * private-use scheme, as RFC 8252 7.1 names them): the app registers it,
106
+ * and a page of AllyHub's links to it. A link of it carries nothing. A
107
+ * computer's sign-in comes back by the loopback, never by it, so a program
108
+ * that took the scheme for itself would learn nothing.
109
+ */
110
+ export declare const DESKTOP_SCHEME = "allyhub";
111
+ /** The link that brings the desktop app to the front, and does nothing else. */
112
+ export declare const DESKTOP_OPEN = "allyhub://open";
113
+ /**
114
+ * The page a computer's sign-in lands on in the browser (its loopback
115
+ * sends the browser there). `desktop` says the sign-in was the desktop
116
+ * app's and a link opens it (`DESKTOP_OPEN`): the page then offers to
117
+ * bring it forward, which an app cannot do for itself from behind the
118
+ * browser the person is in.
119
+ */
120
+ export declare function signedInAddress(origin: string, o?: {
121
+ desktop?: boolean | undefined;
122
+ }): string;
123
+ /** Whether the signed-in page's address says the sign-in was the desktop app's. */
124
+ export declare function signedInFromDesktop(search: string): boolean;
69
125
  /** The credentials file, relative to the home folder (ALLYHUB_HOME moves it). */
70
126
  export declare const CREDENTIALS_FILE = ".allyhub/credentials.json";
71
127
  /** A token endpoint's answer (RFC 6749 5.1). */