allyhub 0.18.0 → 0.19.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 (580) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/bin/allyhub.js +10 -0
  3. package/dist/args.js +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +1 -1
  6. package/dist/commands/auth.js +1 -1
  7. package/dist/commands/cloud-tools.js +1 -1
  8. package/dist/commands/cloud.js +1 -1
  9. package/dist/commands/contributed.js +1 -1
  10. package/dist/commands/found-extensions.js +2 -0
  11. package/dist/commands/frames/common.js +1 -1
  12. package/dist/commands/frames/doc.js +1 -1
  13. package/dist/commands/frames.js +9 -9
  14. package/dist/commands/index.js +1 -1
  15. package/dist/commands/inspect/common.js +3 -3
  16. package/dist/commands/inspect/index.js +1 -1
  17. package/dist/commands/inspect/layout.js +1 -1
  18. package/dist/commands/inspect/views.js +1 -1
  19. package/dist/commands/list.js +2 -0
  20. package/dist/commands/mail.js +1 -1
  21. package/dist/commands/render.js +1 -1
  22. package/dist/commands/run-context.js +2 -0
  23. package/dist/commands.json +1 -0
  24. package/dist/fields.js +1 -1
  25. package/dist/main.js +7 -7
  26. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
  27. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
  28. package/dist/node_modules/@allyhub/3d-extension/package.json +3 -2
  29. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  30. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  31. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
  32. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  33. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
  34. package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
  35. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  36. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  37. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  38. package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
  39. package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
  40. package/dist/node_modules/@allyhub/build/package.json +9 -1
  41. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  42. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  43. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  44. package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
  45. package/dist/node_modules/@allyhub/check/package.json +1 -1
  46. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  47. package/dist/node_modules/@allyhub/cloud/dist/call.js +1 -1
  48. package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
  49. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  50. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  51. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
  52. package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
  53. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  54. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  55. package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
  56. package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
  57. package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
  58. package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
  59. package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
  60. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  61. package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
  62. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +1 -1
  63. package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
  64. package/dist/node_modules/@allyhub/cloud/package.json +5 -1
  65. package/dist/node_modules/@allyhub/components/package.json +1 -1
  66. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  67. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  68. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  69. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  70. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
  71. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  72. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  73. package/dist/node_modules/@allyhub/export/package.json +1 -1
  74. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  75. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  76. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  77. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +24 -7
  78. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  79. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
  80. package/dist/node_modules/@allyhub/formats/package.json +25 -1
  81. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  82. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  83. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  84. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  85. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  86. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  87. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  88. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  89. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  90. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  91. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  92. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  93. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  94. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
  95. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  96. package/dist/node_modules/@allyhub/media/package.json +5 -1
  97. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
  98. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
  99. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  100. package/dist/node_modules/@allyhub/model/package.json +1 -1
  101. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  102. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  103. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
  104. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +1 -1
  105. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -2
  106. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
  107. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  108. package/dist/node_modules/@allyhub/project/package.json +1 -1
  109. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  110. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  111. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  112. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  113. package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
  114. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  115. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  116. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
  117. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  118. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  119. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  120. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  121. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
  122. package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
  123. package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
  124. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  125. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  126. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  127. package/dist/node_modules/@allyhub/protocol/package.json +41 -1
  128. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  129. package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
  130. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  131. package/dist/node_modules/@allyhub/render/package.json +9 -1
  132. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  133. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  134. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
  135. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  136. package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
  137. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  138. package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
  139. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  140. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  141. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
  142. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
  143. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
  144. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  145. package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
  146. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  147. package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
  148. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  149. package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
  150. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  151. package/dist/node_modules/@allyhub/sheet/dist/html.js +6 -6
  152. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  153. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  154. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
  155. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  156. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  157. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  158. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  159. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  160. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  161. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  162. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  163. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
  164. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
  165. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
  166. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
  167. package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
  168. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
  169. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
  170. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
  171. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
  172. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
  173. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
  174. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
  175. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
  176. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
  177. package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
  178. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
  179. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
  180. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
  181. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
  182. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
  183. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
  184. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
  185. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
  186. package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
  187. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
  188. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
  189. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
  190. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
  191. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
  192. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  193. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  194. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
  195. package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
  196. package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
  197. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  198. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  199. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  200. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
  201. package/dist/node_modules/@allyhub/video-extension/package.json +6 -2
  202. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
  203. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
  204. package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
  205. package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
  206. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
  207. package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
  208. package/dist/node_modules/@allyhub/website/package.json +1 -1
  209. package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
  210. package/dist/node_modules/@allyhub/website-extension/package.json +4 -4
  211. package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
  212. package/dist/node_modules/@allyhub/x-extension/package.json +8 -2
  213. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  214. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  215. package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
  216. package/dist/package.json +14 -14
  217. package/dist/project.js +1 -1
  218. package/dist/resources.js +1 -1
  219. package/dist/sdk-docs.js +1 -1
  220. package/dist/slot.js +4 -0
  221. package/dist/telemetry.js +1 -1
  222. package/dist/version.js +1 -1
  223. package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-DYaMS_BB.js} +1 -1
  224. package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-g_Tjfl_y.js} +1 -1
  225. package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-CqdhofOL.js} +1 -1
  226. package/editor-web/assets/{article-CS48wwvk.js → article-8evPh712.js} +1 -1
  227. package/editor-web/assets/{article-Cyle57uq.js → article-BhRtWYMd.js} +1 -1
  228. package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-Bc-28Bci.js} +1 -1
  229. package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-CTGJb8FB.js} +1 -1
  230. package/editor-web/assets/{calc-worker-BdHh5LXM.js → calc-worker-oEIqrrTM.js} +1 -1
  231. package/editor-web/assets/channel-wIj_OqDm.js +1 -0
  232. package/editor-web/assets/{chart-file-CfbWK9l1.js → chart-file-dGiRgFcH.js} +1 -1
  233. package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-B2MPOVTU.js} +1 -1
  234. package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-BUV1ZHP0.js} +1 -1
  235. package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-BZlpspL5.js} +1 -1
  236. package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-CpKeisWE.js} +1 -1
  237. package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BJqwAPyo.js} +1 -1
  238. package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-D6oPWl_W.js} +1 -1
  239. package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-B5pk4MZF.js} +1 -1
  240. package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-DHbSPvxQ.js} +1 -1
  241. package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-CcL_GcRA.js} +1 -1
  242. package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-YgiOL6XE.js} +1 -1
  243. package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-p14b4UYc.js} +1 -1
  244. package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-BWW0x-XH.js} +1 -1
  245. package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-oG3qd68C.js} +1 -1
  246. package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-CpcheH0u.js} +1 -1
  247. package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-cWQvLl1w.js} +1 -1
  248. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-7PG7YcdU.js} +1 -1
  249. package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-CtcknEQ_.js} +1 -1
  250. package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-Ca7VIsjN.js} +1 -1
  251. package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-BzcSLtsr.js} +1 -1
  252. package/editor-web/assets/deck-C7fN0Qtn.js +1 -0
  253. package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DpRmTGlG.js} +1 -1
  254. package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-BTrs_AX8.js} +1 -1
  255. package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-CkIVjPqH.js} +1 -1
  256. package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BlFMbAG1.js} +1 -1
  257. package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-D3f8VJ-D.js} +1 -1
  258. package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-Bbpngj6F.js} +1 -1
  259. package/editor-web/assets/{dist-DGKjn59H.js → dist-3iovns9K.js} +1 -1
  260. package/editor-web/assets/dist-BkHnbOEj.js +4 -0
  261. package/editor-web/assets/dist-BvOrNcK-.js +19 -0
  262. package/editor-web/assets/dist-CEIszq39.js +1 -0
  263. package/editor-web/assets/{dist-BI8QjOsV.js → dist-CU5RbLNH.js} +1 -1
  264. package/editor-web/assets/dist-CWZj8IAm.js +1 -0
  265. package/editor-web/assets/{dist-NQNQ5HqZ.js → dist-C_Mtrnif.js} +3 -3
  266. package/editor-web/assets/{dist-BajH5QfK.js → dist-CdqpwdCV.js} +4 -4
  267. package/editor-web/assets/{dist-SV0sOVIC.js → dist-CjT76RAw.js} +1 -1
  268. package/editor-web/assets/{dist-elglzHMT.js → dist-CpzEn9T8.js} +1 -1
  269. package/editor-web/assets/dist-CrFYWl5-.js +3 -0
  270. package/editor-web/assets/{dist-hHcrvNn9.js → dist-D4eBFGVL.js} +1 -1
  271. package/editor-web/assets/dist-DTcjb3cP.js +18 -0
  272. package/editor-web/assets/dist-D_WSM29I.js +17 -0
  273. package/editor-web/assets/{dist-Y_XZZa8q.js → dist-Dp_9ISjP.js} +10 -10
  274. package/editor-web/assets/{dist-BBshIz1Q.js → dist-J-tPYKGS.js} +4 -4
  275. package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-CoK1oqQD.js} +1 -1
  276. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-BaKj-yL6.js} +1 -1
  277. package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Cn2qv1_U.js} +1 -1
  278. package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-Bd7AEIDo.js} +1 -1
  279. package/editor-web/assets/{esm-DzxAod8Q.js → esm-Cjv8ogpP.js} +1 -1
  280. package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-Sfp7_461.js} +1 -1
  281. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +1 -0
  282. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CBqcGdHI.js} +1 -1
  283. package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-WTokXKTW.js} +1 -1
  284. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BIWZHD9q.js} +1 -1
  285. package/editor-web/assets/index-BQWZnyAQ.js +28 -0
  286. package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-COC6G-_J.js} +1 -1
  287. package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-DpaqdKBD.js} +1 -1
  288. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js} +1 -1
  289. package/editor-web/assets/{iso-ahTwmFwH.js → iso-DoC-ZoBr.js} +1 -1
  290. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-DeSVfmm7.js} +1 -1
  291. package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Bfg0lj7B.js} +1 -1
  292. package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-CyhovuYE.js} +3 -3
  293. package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-Dx1fBVUG.js} +4 -4
  294. package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-QEU2HF_m.js} +1 -1
  295. package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-ReJTa_hw.js} +1 -1
  296. package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-Bo1jFrvb.js} +1 -1
  297. package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-BrtYafNA.js} +1 -1
  298. package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-Cj0zQqs_.js} +1 -1
  299. package/editor-web/assets/{props-form-DUFxM5eb.js → props-form-BpSXbrSF.js} +1 -1
  300. package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-D5npDAVn.js} +1 -1
  301. package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-C8RDrRqi.js} +1 -1
  302. package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-ebDrmYTK.js} +1 -1
  303. package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-BxKuqg6V.js} +1 -1
  304. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-DOclnfpr.js} +1 -1
  305. package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-DN0A1fpq.js} +1 -1
  306. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-B3PjoVWw.js} +1 -1
  307. package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-DLdzkQk5.js} +1 -1
  308. package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-Dip4Piv_.js} +1 -1
  309. package/editor-web/assets/schemas-CQ_UU8-Z.js +1 -0
  310. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-QnPcoybL.js} +1 -1
  311. package/editor-web/assets/{session-Beijw9EK.js → session-DMlLCFWg.js} +1 -1
  312. package/editor-web/assets/slides-7xWhREpt.js +1 -0
  313. package/editor-web/assets/snapshots-BLX4NTQC.js +1 -0
  314. package/editor-web/assets/{split-zARio3J8.js → split-tFGKk-x8.js} +1 -1
  315. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-D103CiMX.js} +1 -1
  316. package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-y4gCqEoa.js} +1 -1
  317. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +8 -0
  318. package/editor-web/assets/{tabs-BHBvbekZ.js → tabs-CuEawka3.js} +1 -1
  319. package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-BMp76v4V.js} +1 -1
  320. package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-Q_GYyk0b.js} +1 -1
  321. package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-B5lRWdQB.js} +1 -1
  322. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX--QRllA-U.js} +1 -1
  323. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-CzkATPA3.js} +1 -1
  324. package/editor-web/assets/{video-oJ3qa1Qv.js → video-D0uTbHWx.js} +1 -1
  325. package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BXzwcdJa.js} +1 -1
  326. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-BQvC8Agx.js} +1 -1
  327. package/editor-web/assets/{words-0Ww2RyT4.js → words-CaUHhQHf.js} +1 -1
  328. package/editor-web/assets/workbook-CiCXkjmN.js +45 -0
  329. package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-aY-lsD5o.js} +1 -1
  330. package/editor-web/index.html +3 -3
  331. package/package.json +2 -2
  332. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
  333. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
  334. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
  335. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
  336. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
  337. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
  338. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
  339. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
  340. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
  341. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
  342. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
  343. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
  344. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
  345. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
  346. package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
  347. package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
  348. package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
  349. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
  350. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
  351. package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
  352. package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
  353. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
  354. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
  355. package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
  356. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
  357. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
  358. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
  359. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
  360. package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
  361. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
  362. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
  363. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
  364. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
  365. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
  366. package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
  367. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
  368. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
  369. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
  370. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
  371. package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
  372. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
  373. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
  374. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
  375. package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
  376. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
  377. package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
  378. package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
  379. package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
  380. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
  381. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
  382. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
  383. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
  384. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
  385. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
  386. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
  387. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
  388. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
  389. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
  390. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
  391. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
  392. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
  393. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
  394. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
  395. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
  396. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
  397. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
  398. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
  399. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
  400. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
  401. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
  402. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
  403. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
  404. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
  405. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
  406. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
  407. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
  408. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
  409. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
  410. package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
  411. package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
  412. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
  413. package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
  414. package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
  415. package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
  416. package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
  417. package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
  418. package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
  419. package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
  420. package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
  421. package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
  422. package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
  423. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
  424. package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
  425. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
  426. package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
  427. package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
  428. package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
  429. package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
  430. package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
  431. package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
  432. package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
  433. package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
  434. package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
  435. package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
  436. package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
  437. package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
  438. package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
  439. package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
  440. package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
  441. package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
  442. package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
  443. package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
  444. package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
  445. package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
  446. package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
  447. package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
  448. package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
  449. package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
  450. package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
  451. package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
  452. package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
  453. package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
  454. package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
  455. package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
  456. package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
  457. package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
  458. package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
  459. package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
  460. package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
  461. package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
  462. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
  463. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
  464. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
  465. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
  466. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
  467. package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
  468. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
  469. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
  470. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
  471. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
  472. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
  473. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
  474. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
  475. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
  476. package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
  477. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
  478. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
  479. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
  480. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
  481. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
  482. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
  483. package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
  484. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
  485. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
  486. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
  487. package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
  488. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
  489. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
  490. package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
  491. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
  492. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
  493. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
  494. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
  495. package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
  496. package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
  497. package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
  498. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
  499. package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
  500. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
  501. package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
  502. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
  503. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
  504. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
  505. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
  506. package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
  507. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
  508. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
  509. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
  510. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
  511. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
  512. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
  513. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
  514. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
  515. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
  516. package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
  517. package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
  518. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
  519. package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
  520. package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
  521. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
  522. package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
  523. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
  524. package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
  525. package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
  526. package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
  527. package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
  528. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
  529. package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
  530. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
  531. package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
  532. package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
  533. package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
  534. package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
  535. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
  536. package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
  537. package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
  538. package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
  539. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
  540. package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
  541. package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
  542. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
  543. package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
  544. package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
  545. package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
  546. package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
  547. package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
  548. package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
  549. package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
  550. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
  551. package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
  552. package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
  553. package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
  554. package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
  555. package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
  556. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
  557. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
  558. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
  559. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
  560. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
  561. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
  562. package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
  563. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
  564. package/editor-web/assets/channel-HUlo15J7.js +0 -1
  565. package/editor-web/assets/deck-CtEtDHo2.js +0 -1
  566. package/editor-web/assets/dist-Bl74xqMW.js +0 -19
  567. package/editor-web/assets/dist-BrUtQth3.js +0 -18
  568. package/editor-web/assets/dist-CN5A7Au2.js +0 -1
  569. package/editor-web/assets/dist-CcL6r6l3.js +0 -1
  570. package/editor-web/assets/dist-D2E3cgRP.js +0 -4
  571. package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
  572. package/editor-web/assets/dist-d4dayaWE.js +0 -17
  573. package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
  574. package/editor-web/assets/index-q7X6hdHp.js +0 -28
  575. package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
  576. package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
  577. package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
  578. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
  579. package/editor-web/assets/workbook-DznVDqoE.js +0 -45
  580. /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
@@ -204,8 +204,7 @@ export interface StageContext {
204
204
  */
205
205
  video?(piece: unknown, el: HTMLElement): Promise<EmbeddedVideo>;
206
206
  /**
207
- * Another item of the project drawn live in an element of this layer's
208
- * (docs/design/references.md §3.5): what its module exports, imported
207
+ * Another item of the project drawn live in an element of this layer's: what its module exports, imported
209
208
  * (`import q3 from "../decks/q3"`), drawn by its own kind's runtime in
210
209
  * its own format, in this video's language where it has it. A video is
211
210
  * drawn as `video` draws it; a deck's moments are its slides and their
@@ -144,7 +144,7 @@ export declare function repoPath(fromFile: string, spec: string): string | undef
144
144
  */
145
145
  export declare function pathIn(folder: string, spec: string): string | undefined;
146
146
  /**
147
- * A glTF or GLB as the build measures it (docs/design/3d-worlds.md §4.6),
147
+ * A glTF or GLB as the build measures it,
148
148
  * in two steps: its own description (the JSON: extensions, named nodes,
149
149
  * the files it names), which never fails; then its contents through
150
150
  * glTF-Transform (bounds, counts, materials, textures, animations), which
@@ -17,7 +17,7 @@ export interface LoadOptions {
17
17
  consoleLimit?: number;
18
18
  /**
19
19
  * The item it is drawn inside, by id, when it is drawn live inside
20
- * another's page (docs/design/references.md §3.5): the runtime leaves
20
+ * another's page: the runtime leaves
21
21
  * the page itself as it is (its background, its title), the outer
22
22
  * item's.
23
23
  */
@@ -111,7 +111,7 @@ export interface BuildSource {
111
111
  /**
112
112
  * Every piece of the build by id, for a piece that shows another inside
113
113
  * it (a scenery's screen): its file, dimensions, format and matrix. A
114
- * piece this one uses live (docs/design/references.md §3.5) has what
114
+ * piece this one uses live has what
115
115
  * its kind's runtime loads it with too (`itemSource`).
116
116
  */
117
117
  pieces?: Record<string, BuildPiece>;
@@ -214,7 +214,7 @@ export interface ComponentAt {
214
214
  /** Seconds since it came on: what moves in it has settled by its slide's still. */
215
215
  t: number;
216
216
  }
217
- /** A layer a person's mark is on (docs/design/notes.md): its part, its component, the `data-ak` name of what was marked and its words. */
217
+ /** A layer a person's mark is on: its part, its component, the `data-ak` name of what was marked and its words. */
218
218
  export interface LocatedLayer {
219
219
  part: string;
220
220
  /** Its component. */
@@ -229,7 +229,7 @@ export interface LocatedLayer {
229
229
  /** The module it is written in, where another item's (a video drawn inside this one), project-relative. */
230
230
  piece?: string;
231
231
  }
232
- /** The one layer a person picked at a point (docs/design/notes.md, "Select"): what it is, and its edge, closed rings of points. */
232
+ /** The one layer a person picked at a point: what it is, and its edge, closed rings of points. */
233
233
  export interface PickedLayer extends LocatedLayer {
234
234
  outline: {
235
235
  x: number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/project",
3
- "version": "0.18.0",
3
+ "version": "0.19.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{z as e}from"zod";export const AuthServerSchema=e.object({issuer:e.url(),authorization_endpoint:e.url(),token_endpoint:e.url(),device_authorization_endpoint:e.url(),revocation_endpoint:e.url(),code_challenge_methods_supported:e.array(e.string()).refine(t=>t.includes("S256"),{message:"The server must take S256 PKCE challenges."})}),CLIENT_ID="allyhub-cli",ISSUER_PATH="/api/auth",METADATA_PATH=`/.well-known/oauth-authorization-server${ISSUER_PATH}`,SCOPES="openid profile email offline_access",ACCOUNT_PATH="/api/account",ORGANIZATION_HEADER="x-allyhub-organization",DEVICES_PATH="/api/account/devices",DEVICE_HEADER="x-allyhub-device",BACKGROUND_HEADER="x-allyhub-background",DEVICE_NAME_HEADER="x-allyhub-device-name",DeviceIdSchema=e.string().regex(/^[\w-]{16,64}$/u),ACCOUNT_EXPORT_PATH="/api/account/export",ACCOUNT_DELETE_PATH="/api/account/delete",DevicesSchema=e.object({devices:e.array(e.object({id:e.string(),client:e.string(),signedInAt:e.iso.datetime(),lastActiveAt:e.iso.datetime(),name:e.string().nullable().optional(),app:e.string().nullable().optional(),os:e.string().nullable().optional(),city:e.string().nullable().optional(),country:e.string().nullable().optional(),current:e.boolean().optional()}))}),BROWSER_LINK_PATH="/api/account/browser-link",BrowserLinkRequestSchema=e.strictObject({to:e.string().startsWith("/")}),BrowserLinkSchema=e.object({url:e.url()}),SIGN_IN_PATH="/api/sign-in",SignInSchema=e.object({turnstile:e.object({siteKey:e.string().min(1)}).optional()}),CAPTCHA_HEADER="x-captcha-response",SIGN_IN_LINK_PATH=`${ISSUER_PATH}/sign-in/link`,SignInLinkRequestSchema=e.strictObject({email:e.email(),authorization:e.url()}),DESKTOP_SCHEME="allyhub",DESKTOP_OPEN=`${DESKTOP_SCHEME}://open`;export function signedInAddress(t,o={}){return`${t}/signed-in${o.desktop===!0?"?from=desktop":""}`}export function signedInFromDesktop(t){return new URLSearchParams(t).get("from")==="desktop"}export const CREDENTIALS_FILE=".allyhub/credentials.json",TokenResponseSchema=e.object({access_token:e.string().min(1),token_type:e.string(),expires_in:e.number().positive(),refresh_token:e.string().min(1).optional(),scope:e.string().optional()}),OAuthErrorSchema=e.object({error:e.string(),error_description:e.string().optional()}),DeviceAuthorizationSchema=e.object({device_code:e.string().min(1),user_code:e.string().min(1),verification_uri:e.url(),verification_uri_complete:e.url().optional(),expires_in:e.number().positive(),interval:e.number().positive().optional()}),AccountSchema=e.object({id:e.string().min(1),email:e.email(),name:e.string().optional(),organization:e.object({id:e.string().min(1),name:e.string()}).optional()}),CredentialsFileSchema=e.object({version:e.literal(1),url:e.url(),issuer:e.url(),account:AccountSchema,refreshToken:e.string().min(1).optional(),access:e.object({token:e.string().min(1),expiresAt:e.iso.datetime({offset:!0})}).optional(),keychain:e.string().min(1).optional(),since:e.iso.datetime({offset:!0}),device:e.string().min(1).optional()});
2
+ import{z as e}from"zod";export const AuthServerSchema=e.object({issuer:e.url(),authorization_endpoint:e.url(),token_endpoint:e.url(),device_authorization_endpoint:e.url(),revocation_endpoint:e.url(),code_challenge_methods_supported:e.array(e.string()).refine(t=>t.includes("S256"),{message:"The server must take S256 PKCE challenges."})}),CLIENT_ID="allyhub-cli",ISSUER_PATH="/api/auth",METADATA_PATH=`/.well-known/oauth-authorization-server${ISSUER_PATH}`,SCOPES="openid profile email offline_access",ACCOUNT_PATH="/api/account",ORGANIZATION_HEADER="x-allyhub-organization",DEVICE_HEADER="x-allyhub-device",BACKGROUND_HEADER="x-allyhub-background",DEVICE_NAME_HEADER="x-allyhub-device-name",BROWSER_LINK_PATH="/api/account/browser-link",BrowserLinkSchema=e.object({url:e.url()}),SIGN_IN_LINK_PATH=`${ISSUER_PATH}/sign-in/link`,SignInLinkRequestSchema=e.strictObject({email:e.email(),authorization:e.url()});export function signedInAddress(t,o={}){return`${t}/signed-in${o.desktop===!0?"?from=desktop":""}`}export const CREDENTIALS_FILE=".allyhub/credentials.json",TokenResponseSchema=e.object({access_token:e.string().min(1),token_type:e.string(),expires_in:e.number().positive(),refresh_token:e.string().min(1).optional(),scope:e.string().optional()}),OAuthErrorSchema=e.object({error:e.string(),error_description:e.string().optional()}),DeviceAuthorizationSchema=e.object({device_code:e.string().min(1),user_code:e.string().min(1),verification_uri:e.url(),verification_uri_complete:e.url().optional(),expires_in:e.number().positive(),interval:e.number().positive().optional()}),AccountSchema=e.object({id:e.string().min(1),email:e.email(),name:e.string().optional(),organization:e.object({id:e.string().min(1),name:e.string()}).optional()}),CredentialsFileSchema=e.object({version:e.literal(1),url:e.url(),issuer:e.url(),account:AccountSchema,refreshToken:e.string().min(1).optional(),access:e.object({token:e.string().min(1),expiresAt:e.iso.datetime({offset:!0})}).optional(),keychain:e.string().min(1).optional(),since:e.iso.datetime({offset:!0}),device:e.string().min(1).optional()});
@@ -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{FILE_MAX_BYTES as a}from"./cloud.js";export const Sha256Schema=e.string().regex(/^[0-9a-f]{64}$/u),TreePathSchema=e.string().min(1).max(1024).refine(t=>!t.startsWith("/")&&!t.includes("\\")&&t.split("/").every(r=>r!==""&&r!=="."&&r!==".."),"a relative path of forward slashes, without . or .."),BlobSchema=e.object({sha256:Sha256Schema,size:e.int().nonnegative().max(a)}),TreeFileSchema=BlobSchema.extend({type:e.string().min(1).max(255),immutable:e.literal(!0).optional()}),BLOBS_MAX=1e3,BlobsRequestSchema=e.strictObject({blobs:e.array(BlobSchema.extend({contentType:e.string().min(1).max(255)})).min(1).max(BLOBS_MAX)}),BlobsResponseSchema=e.object({uploads:e.array(e.object({sha256:Sha256Schema,url:e.url(),headers:e.record(e.string(),e.string())}))}),treeFileOf=(t,r)=>({sha256:t.sha256,size:t.size,type:r.type,...r.immutable===!0?{immutable:!0}:{}});
2
+ import{z as e}from"zod";import{FILE_MAX_BYTES as o}from"./cloud.js";export const Sha256Schema=e.string().regex(/^[0-9a-f]{64}$/u),TreePathSchema=e.string().min(1).max(1024).refine(t=>!t.startsWith("/")&&!t.includes("\\")&&t.split("/").every(r=>r!==""&&r!=="."&&r!==".."),"a relative path of forward slashes, without . or .."),BlobSchema=e.object({sha256:Sha256Schema,size:e.int().nonnegative().max(o)}),TreeFileSchema=BlobSchema.extend({type:e.string().min(1).max(255),immutable:e.literal(!0).optional()}),BLOBS_MAX=1e3,BlobsRequestSchema=e.strictObject({blobs:e.array(BlobSchema.extend({contentType:e.string().min(1).max(255)})).min(1).max(BLOBS_MAX)}),BlobsResponseSchema=e.object({uploads:e.array(e.object({sha256:Sha256Schema,url:e.url(),headers:e.record(e.string(),e.string())}))});
@@ -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";export const EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},PROBLEMS_FOUND="problems-found",CliErrorSchema=e.strictObject({error:e.strictObject({code:e.string().regex(/^[a-z][a-z0-9-]*$/u),message:e.string().min(1),hint:e.string().optional()})}),COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const r=Object.keys(t.input.shape);for(const n of t.positional??[])if(!r.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,o]of Object.entries(t.input.shape))if(!o.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:e.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:e.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export class CommandError extends Error{code;hint;exit;constructor(r,n,o={}){super(n,o.cause===void 0?void 0:{cause:o.cause}),this.name="CommandError",this.code=r,this.hint=o.hint,this.exit=o.exit??EXIT.failed}}
2
+ import{z as e}from"zod";export const CliErrorSchema=e.strictObject({error:e.strictObject({code:e.string().regex(/^[a-z][a-z0-9-]*$/u),message:e.string().min(1),hint:e.string().optional()})}),EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},PROBLEMS_FOUND="problems-found",COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const r=Object.keys(t.input.shape);for(const n of t.positional??[])if(!r.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,o]of Object.entries(t.input.shape))if(!o.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:e.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:e.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export class CommandError extends Error{code;hint;exit;constructor(r,n,o={}){super(n,o.cause===void 0?void 0:{cause:o.cause}),this.name="CommandError",this.code=r,this.hint=o.hint,this.exit=o.exit??EXIT.failed}}
@@ -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 t}from"zod";import{openEnum as o,readable as c}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=t.object({credits:t.number(),held:t.number(),owed:t.number(),frozen:t.string().nullable().default(null),plan:t.object({id:t.string(),name:t.string(),interval:o(BILLING_INTERVALS),status:t.string(),renewsAt:t.iso.datetime().nullable(),endsAt:t.iso.datetime().nullable(),monthlyCredits:t.number().default(0),price:t.object({amountCents:t.number(),currency:t.string()}).nullable().default(null)}).nullable(),allowance:t.object({total:t.number(),used:t.number(),renewsAt:t.iso.datetime()}).nullable().default(null),bought:t.number().default(0),expiring:t.array(t.object({credits:t.number(),expiresAt:t.iso.datetime()})).default([]),customer:t.boolean().default(!1),autoTopUp:t.object({below:t.number(),amountCents:t.number(),monthlyLimitCents:t.number().nullable().default(null),chargedThisMonthCents:t.number().default(0),stopped:o(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),BILLING_PLANS_PATH="/api/billing/plans",BillingPlansSchema=t.object({plans:t.array(t.object({id:t.string(),name:t.string(),family:t.string().nullable().default(null),recommended:t.boolean().default(!1),monthlyCredits:t.number(),storageBytes:t.number().optional(),prices:t.array(t.object({interval:o(BILLING_INTERVALS),amountCents:t.number(),currency:t.string()}))})),topUp:t.object({currency:t.string(),creditsPerDollar:t.number(),minCents:t.number(),maxCents:t.number(),presetsCents:t.array(t.number()).default([])}),welcomeCredits:t.number().optional(),freeStorageBytes:t.number().optional()}),BILLING_USAGE_PATH="/api/billing/usage",SPEND_KINDS=["models","tools","studio","other"],BillingUsageSchema=t.object({days:t.array(t.object({day:t.iso.date(),credits:t.number(),byKind:t.record(t.string(),t.number()).default({})}))}),BILLING_SPENDS_PATH="/api/billing/spends",BillingSpendsSchema=t.object({spends:t.array(t.object({at:t.string(),kind:o(SPEND_KINDS),what:t.string().nullable(),seconds:t.number().nullable(),member:t.string().nullable(),credits:t.number()})),more:t.boolean()}),BILLING_CHECKOUT_PATH="/api/billing/checkout",CheckoutRequestSchema=t.union([t.strictObject({plan:t.string(),interval:t.enum(BILLING_INTERVALS)}),t.strictObject({topUpCents:t.number().int()})]),BILLING_PORTAL_PATH="/api/billing/portal",PortalRequestSchema=t.union([t.strictObject({flow:t.enum(["home","payment_method","cancel"])}),t.strictObject({flow:t.literal("change_plan"),plan:t.string(),interval:t.enum(BILLING_INTERVALS)})]).default({flow:"home"}),BILLING_RESUME_PATH="/api/billing/resume",BILLING_PAYMENT_PATH="/api/billing/payment",BillingPaymentSchema=t.object({card:t.object({brand:t.string(),last4:t.string(),expMonth:t.number(),expYear:t.number()}).nullable(),email:t.string().nullable()}),BILLING_INVOICES_PATH="/api/billing/invoices",BillingInvoicesSchema=t.object({invoices:t.array(t.object({id:t.string(),number:t.string().nullable(),createdAt:t.string(),kind:o(["plan","credits"]),totalCents:t.number(),currency:t.string(),status:t.string(),pdf:t.string().nullable(),url:t.string().nullable()}))}),BILLING_TOP_UP_PATH="/api/billing/top-up",TopUpRequestSchema=t.strictObject({topUpCents:t.number().int()}),IDEMPOTENCY_KEY_HEADER="idempotency-key",BILLING_REQUEST_PATH="/api/billing/request",AUTO_TOP_UP_PATH="/api/billing/auto-top-up",AutoTopUpRequestSchema=t.strictObject({below:t.number().nonnegative(),amountCents:t.number().int().positive(),monthlyLimitCents:t.number().int().positive().nullable().optional(),newCard:t.boolean().optional()}),BILLING_REFUSALS=["top_up_amount","monthly_limit","has_plan","no_plan","no_such_plan","not_customer","no_card","frozen","not_charged","asked_today","too_many_charges"],BILLING_PAGE_PATH="/settings/plan",TEAM_PARAM="team",PLAN_VIEW_PARAM="view",PAID_PARAM="paid",UNPAID_PARAM="unpaid",PLAN_PAGE_OPENS=["plans","credits","paid"];export function planPageAddress(e,n={}){const i=new URLSearchParams;typeof n.open=="object"?i.set(UNPAID_PARAM,n.open.unpaid):n.open==="paid"?i.set(PAID_PARAM,"1"):n.open!==void 0&&i.set(PLAN_VIEW_PARAM,n.open),n.organization!==void 0&&i.set(TEAM_PARAM,n.organization);const r=i.toString();return`${e}${BILLING_PAGE_PATH}${r===""?"":`?${r}`}`}export const LLM_MODELS_PATH="/api/llm/models",LLM_MESSAGES_PATH="/api/llm/v1/messages",MODEL_TIERS=["premium","standard","efficient"];const l={tier:o(MODEL_TIERS).optional(),maker:t.string().min(1).optional(),retired:t.boolean().optional()};export const REASONING_OPTION_TYPES=["toggle","effort","budget_tokens"],ReasoningOptionSchema=t.object({type:o(REASONING_OPTION_TYPES),values:t.array(t.string().min(1)).optional(),min:t.number().int().nonnegative().optional(),max:t.number().int().positive().optional()}),AUTO_MODEL="auto",familyOf=e=>e.split("-").filter(n=>!/^\d+(\.\d+)*$/u.test(n)).join("-"),ModelCatalogSchema=t.object({models:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...l,reasoning:t.boolean().optional(),reasoningOptions:c(ReasoningOptionSchema).optional(),input:t.array(t.string()).optional(),contextWindow:t.number().int().positive().optional(),maxOutput:t.number().int().positive().optional()})).min(1),defaultModel:t.string().min(1),needPlan:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...l})).default([])}),JsonSchemaSchema=t.record(t.string(),t.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],WORK_KINDS=["data","ai"],CatalogWorkSchema=t.object({id:t.string().min(1),title:t.string().min(1),description:t.string().min(1),kind:o(WORK_KINDS).default("data"),line:t.string().optional()}),CatalogToolSchema=t.object({name:t.string().min(1),work:t.string().min(1),title:t.string().min(1),description:t.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:t.boolean(),example:t.record(t.string(),t.unknown()).optional(),price:t.object({credits:t.number().nonnegative(),per:o(PRICE_UNITS),varies:t.boolean()}).optional(),shown:t.object({name:t.string(),line:t.string(),section:o(TOOL_SECTIONS)}).optional()}),CatalogSchema=t.object({version:t.string().min(1),works:t.array(CatalogWorkSchema),tools:t.array(CatalogToolSchema)}),CAPABILITIES_PATH="/api/capabilities",CapabilitiesSchema=t.object({off:t.object({works:t.array(t.string()),tools:t.array(t.string())})}),CapabilityRequestSchema=t.union([t.strictObject({work:t.string().min(1),on:t.boolean()}),t.strictObject({tool:t.string().min(1),on:t.boolean()})]),EDITORS_PATH="/api/editors",EditorsSchema=t.object({editors:t.array(t.object({id:t.string().min(1),name:t.record(t.string(),t.string()),plural:t.record(t.string(),t.string()).optional(),line:t.record(t.string(),t.string()),icon:t.string().optional(),color:t.string().optional()}))}),toolCallsPath=e=>`/api/tools/${encodeURIComponent(e)}/calls`,IDEMPOTENCY_KEY_MAX=255,callPath=e=>`/api/calls/${encodeURIComponent(e)}`,ToolCallRequestSchema=t.strictObject({input:t.record(t.string(),t.unknown())}),CALL_STATUS=["working","completed","failed"],ToolCallSchema=t.object({id:t.string().min(1),tool:t.string().min(1),status:o(CALL_STATUS),output:t.unknown().optional(),error:t.object({kind:t.string().min(1),message:t.string().min(1)}).optional(),credits:t.number().nonnegative().optional(),pollAfterMs:t.number().int().nonnegative().optional(),createdAt:t.string(),endedAt:t.string().optional()});const a="ally://data-tool-results/";export const allyFilePath=(e,n)=>`${a}${encodeURIComponent(e)}/${encodeURIComponent(n)}`;export function parseAllyFilePath(e){if(!e.startsWith(a))return;const[n,i,...r]=e.slice(a.length).split("/");if(!(!n||!i||r.length>0))try{return{id:decodeURIComponent(n),name:decodeURIComponent(i)}}catch(s){if(s instanceof URIError)return;throw s}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=t.strictObject({name:t.string().min(1).max(255),size:t.int().positive().max(FILE_MAX_BYTES),sha256:t.string().regex(/^[0-9a-f]{64}$/u),contentType:t.string().min(1).max(255)}),FileCreatedSchema=t.object({id:t.string().min(1),upload:t.object({url:t.url(),headers:t.record(t.string(),t.string())}).nullable()}),fileDonePath=e=>`${FILES_PATH}/${encodeURIComponent(e)}/done`,UploadedFileSchema=t.object({id:t.string().min(1),name:t.string()}),FileContentResponseSchema=t.object({url:t.url()}),fileContentPath=(e,n)=>`${FILES_PATH}/${encodeURIComponent(e)}/content?disposition=${n}`;
2
+ import{z as e}from"zod";import{openEnum as i}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=e.object({credits:e.number(),held:e.number(),owed:e.number(),frozen:e.string().nullable().default(null),plan:e.object({id:e.string(),name:e.string(),interval:i(BILLING_INTERVALS),status:e.string(),renewsAt:e.iso.datetime().nullable(),endsAt:e.iso.datetime().nullable(),monthlyCredits:e.number().default(0),price:e.object({amountCents:e.number(),currency:e.string()}).nullable().default(null)}).nullable(),allowance:e.object({total:e.number(),used:e.number(),renewsAt:e.iso.datetime()}).nullable().default(null),bought:e.number().default(0),expiring:e.array(e.object({credits:e.number(),expiresAt:e.iso.datetime()})).default([]),customer:e.boolean().default(!1),autoTopUp:e.object({below:e.number(),amountCents:e.number(),monthlyLimitCents:e.number().nullable().default(null),chargedThisMonthCents:e.number().default(0),stopped:i(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),IDEMPOTENCY_KEY_HEADER="idempotency-key",BILLING_PAGE_PATH="/settings/plan",TEAM_PARAM="team",PLAN_VIEW_PARAM="view",PAID_PARAM="paid",UNPAID_PARAM="unpaid",PLAN_PAGE_OPENS=["plans","credits","paid"];export function planPageAddress(t,n={}){const o=new URLSearchParams;typeof n.open=="object"?o.set(UNPAID_PARAM,n.open.unpaid):n.open==="paid"?o.set(PAID_PARAM,"1"):n.open!==void 0&&o.set(PLAN_VIEW_PARAM,n.open),n.organization!==void 0&&o.set(TEAM_PARAM,n.organization);const r=o.toString();return`${t}${BILLING_PAGE_PATH}${r===""?"":`?${r}`}`}export const JsonSchemaSchema=e.record(e.string(),e.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],WORK_KINDS=["data","ai"],CatalogWorkSchema=e.object({id:e.string().min(1),title:e.string().min(1),description:e.string().min(1),kind:i(WORK_KINDS).default("data"),line:e.string().optional()}),CatalogToolSchema=e.object({name:e.string().min(1),work:e.string().min(1),title:e.string().min(1),description:e.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:e.boolean(),example:e.record(e.string(),e.unknown()).optional(),price:e.object({credits:e.number().nonnegative(),per:i(PRICE_UNITS),varies:e.boolean()}).optional(),shown:e.object({name:e.string(),line:e.string(),section:i(TOOL_SECTIONS)}).optional()}),CatalogSchema=e.object({version:e.string().min(1),works:e.array(CatalogWorkSchema),tools:e.array(CatalogToolSchema)}),toolCallsPath=t=>`/api/tools/${encodeURIComponent(t)}/calls`,callPath=t=>`/api/calls/${encodeURIComponent(t)}`,CALL_STATUS=["working","completed","failed"],ToolCallSchema=e.object({id:e.string().min(1),tool:e.string().min(1),status:i(CALL_STATUS),output:e.unknown().optional(),error:e.object({kind:e.string().min(1),message:e.string().min(1)}).optional(),credits:e.number().nonnegative().optional(),pollAfterMs:e.number().int().nonnegative().optional(),createdAt:e.string(),endedAt:e.string().optional()}),ALLY_FILE="ally://data-tool-results/";export function parseAllyFilePath(t){if(!t.startsWith(ALLY_FILE))return;const[n,o,...r]=t.slice(ALLY_FILE.length).split("/");if(!(!n||!o||r.length>0))try{return{id:decodeURIComponent(n),name:decodeURIComponent(o)}}catch(a){if(a instanceof URIError)return;throw a}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=e.strictObject({name:e.string().min(1).max(255),size:e.int().positive().max(FILE_MAX_BYTES),sha256:e.string().regex(/^[0-9a-f]{64}$/u),contentType:e.string().min(1).max(255)}),FileCreatedSchema=e.object({id:e.string().min(1),upload:e.object({url:e.url(),headers:e.record(e.string(),e.string())}).nullable()}),fileDonePath=t=>`${FILES_PATH}/${encodeURIComponent(t)}/done`,UploadedFileSchema=e.object({id:e.string().min(1),name:e.string()}),FileContentResponseSchema=e.object({url:e.url()}),fileContentPath=(t,n)=>`${FILES_PATH}/${encodeURIComponent(t)}/content?disposition=${n}`;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const ERRORS_PATH="/api/errors",ERRORS_DSN="https://allyhub@errors.allyhub.invalid/1",ERRORS_MOST_BYTES=8388608;
2
+ export const ERRORS_PATH="/api/errors";
@@ -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{TURN_MOODS as i,TURN_PURPOSES as d,TURN_TROUBLES as c}from"./purposes.js";export const EVENTS_PATH="/api/events",EVENTS_AT_MOST=100,EventWordSchema=e.string().regex(/^[a-z0-9][a-z0-9_.:-]{0,63}$/u),EventIdSchema=e.string().regex(/^[A-Za-z0-9_-]{1,128}$/u),EventLanguageSchema=e.string().regex(/^[a-z]{2}$/u),EventCountrySchema=e.string().regex(/^[A-Z]{2}$/u),EventTraceIdSchema=e.string().regex(/^[0-9a-f]{32}$/u),EventRouteSchema=e.string().regex(/^(?:\/[A-Za-z0-9_.:*-]{1,64}){1,12}$|^unmatched$/u);const a=e.record(EventWordSchema,e.number().int().min(0).max(1e6)).refine(o=>Object.keys(o).length<=32,"At most 32 words.");export const WINDOW_PRODUCTS=["agents","desktop","cloud"],UPGRADE_PLACES=["sidebar_offer","plan_settings","refusal_card","read_only_chip","paywall"],PAYWALL_TRIGGERS=["refused","reminder","locked"],WINDOW_PAGES=["console_home","cloud_studio","plan_settings"],CHECKOUT_WHATS=["plan","top_up","card"],CANCEL_REASONS=["too_expensive","missing_features","switched_service","unused","customer_service","too_complex","low_quality","other","dispute"],CHECKOUT_LEFT_REASONS=["price","payment_method","just_looking","other"];const s=e.number().int().min(0).max(10080*60*1e3);export const EVENT_PROPS={program_opened:e.strictObject({os:EventWordSchema,arch:EventWordSchema,where:e.enum(["computer","cloud"])}),project_opened:e.strictObject({fresh:e.boolean(),items:a}),item_opened:e.strictObject({kind:EventWordSchema}),session_started:e.strictObject({agent:EventWordSchema}),turn_started:e.strictObject({agent:EventWordSchema}),turn_finished:e.strictObject({agent:EventWordSchema,durationMs:s,ended:EventWordSchema,changed:a,made:a.optional()}),job_finished:e.strictObject({what:EventWordSchema,about:EventWordSchema,kind:EventWordSchema.optional(),durationMs:s,outcome:e.enum(["done","failed","cancelled"])}),command_ran:e.strictObject({command:EventWordSchema,durationMs:s,exit:e.number().int().min(0).max(255),code:EventWordSchema.optional()}),refusal_shown:e.strictObject({code:EventWordSchema,where:EventWordSchema}),home_product_chosen:e.strictObject({product:e.enum(WINDOW_PRODUCTS)}),item_opened_from_sidebar:e.strictObject({kind:EventWordSchema,extension:EventWordSchema.optional()}),file_downloaded:e.strictObject({kind:EventWordSchema,format:EventWordSchema,paused:e.boolean()}),share_opened:e.strictObject({kind:EventWordSchema}),upgrade_clicked:e.strictObject({where:e.enum(UPGRADE_PLACES)}),page_viewed:e.strictObject({page:e.enum(WINDOW_PAGES)}),paywall_shown:e.strictObject({reason:EventWordSchema,what:EventWordSchema,trigger:e.enum(PAYWALL_TRIGGERS)}),checkout_abandoned:e.strictObject({what:e.enum(CHECKOUT_WHATS),reason:e.enum(CHECKOUT_LEFT_REASONS).optional()}),account_created:e.strictObject({}),refusal_met:e.strictObject({code:EventWordSchema,route:EventRouteSchema,background:e.boolean().optional()}),checkout_started:e.strictObject({what:e.enum(CHECKOUT_WHATS),plan:EventWordSchema.optional(),interval:EventWordSchema.optional()}),checkout_completed:e.strictObject({what:e.enum(["plan","top_up"]),plan:EventWordSchema.optional(),amount_cents:e.number().int().nonnegative().optional(),currency:EventWordSchema.optional()}),checkout_expired:e.strictObject({what:e.enum(CHECKOUT_WHATS),plan:EventWordSchema.optional(),interval:EventWordSchema.optional(),currency:EventWordSchema.optional(),country:EventCountrySchema.optional()}),subscription_changed:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,from_plan:EventWordSchema,from_interval:EventWordSchema}),subscription_canceled:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,reason:EventWordSchema.optional()}),subscription_ended:e.strictObject({plan:EventWordSchema,interval:EventWordSchema}),subscription_renewed:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,amount_cents:e.number().int().nonnegative(),currency:EventWordSchema}),payment_failed:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,attempt:e.number().int().min(1)}),share_made:e.strictObject({kind:EventWordSchema,audience:EventWordSchema}),studio_opened:e.strictObject({where:e.enum(["computer","cloud"]),first:e.boolean()}),activated:e.strictObject({turns_before:e.number().int().min(0),hours_since_sign_up:e.number().min(0)}),turn_classified:e.strictObject({purpose:e.enum(d),language:EventLanguageSchema.optional(),mood:e.enum(i).optional(),trouble:e.enum(c).optional()})},EVENT_ABOUT={program_opened:"Studio started.",project_opened:"A project was opened in Studio.",item_opened:"A piece was put on show in Studio: its kind (a video, a deck, a doc), never which one.",session_started:"A conversation with an agent began.",turn_started:"A message was sent to an agent: which agent, never what the message says.",turn_finished:"An agent finished answering a message: how long it took, how it ended, how many files it changed of each kind of work and how many pieces of each kind it made.",job_finished:"Work Studio did ended: an export, a publish, an install, a download.",command_ran:"A command of the allyhub CLI ran: its name, how long it took, its exit code and, where it did not succeed, its failure's code.",refusal_shown:"Studio showed that a call needs credits or a plan.",home_product_chosen:"On the console's Home, the action of one of the three ways to use AllyHub was pressed: which way.",item_opened_from_sidebar:"A piece or a file was opened from the sidebar by hand: its kind, and a plain file's extension, never which one.",file_downloaded:"A file was downloaded from Studio's Download: the piece's kind, the file's format, and whether the computer in the cloud was paused.",share_opened:"Studio's Share panel was opened: the piece's kind.",upgrade_clicked:"An upgrade or buy-credits button was pressed: which of a few places it was in.",page_viewed:"One of a few pages was arrived at: the console's Home, AllyHub in the Cloud, or the plan's settings.",paywall_shown:"The dialog that offers plans and credits opened: why AllyHub refused (credits, a plan, storage), what kind of thing it refused, and whether a refusal or its reminder opened it.",checkout_abandoned:"Someone came back from Stripe's payment page without paying: what it was for (a plan, credits, a card) and, when they answered, which of a few reasons stopped them.",account_created:"A person signed up.",refusal_met:"AllyHub's service refused a call for credits, a plan, a limit, a tool turned off or storage, and whether background work made the call.",checkout_started:"A person went to pay.",checkout_completed:"A payment arrived.",checkout_expired:"A payment page was left unpaid until Stripe closed it.",subscription_changed:"A plan moved to another plan or between monthly and yearly.",subscription_canceled:"A plan was set to end, and the reason the person chose for it, when they chose one.",subscription_ended:"A plan ended.",subscription_renewed:"A plan's new period was paid.",payment_failed:"A plan's payment could not be charged.",share_made:"A share link was made.",studio_opened:"A person opened AllyHub Studio: the first time, then once a day at most.",activated:"A person's first message an agent answered to its end with something changed or made.",turn_classified:"A message's labels, read by AllyHub's own model: which of a few kinds of work it asked for (research, a document, media, writing…), its language, how the person sounded (pleased, neutral, confused, frustrated) and, when confused or frustrated, about what. Never a word of the message."},CLIENT_EVENTS=["program_opened","project_opened","item_opened","session_started","turn_started","turn_finished","job_finished","command_ran","refusal_shown"],WINDOW_EVENTS=["home_product_chosen","item_opened_from_sidebar","file_downloaded","share_opened","upgrade_clicked","page_viewed","paywall_shown","checkout_abandoned"];const r={id:e.uuid(),at:e.iso.datetime(),projectId:EventIdSchema.optional(),sessionId:EventIdSchema.optional(),traceId:EventTraceIdSchema.optional()},t=o=>e.strictObject({...r,name:e.literal(o),props:EVENT_PROPS[o]});export const ClientEventSchema=e.discriminatedUnion("name",[t("program_opened"),t("project_opened"),t("item_opened"),t("session_started"),t("turn_started"),t("turn_finished"),t("job_finished"),t("command_ran"),t("refusal_shown")]),EventsRequestSchema=e.strictObject({events:e.array(ClientEventSchema).min(1).max(EVENTS_AT_MOST)});const n=o=>e.strictObject({...r,name:e.literal(o),props:EVENT_PROPS[o]});export const WindowEventSchema=e.discriminatedUnion("name",[n("home_product_chosen"),n("item_opened_from_sidebar"),n("file_downloaded"),n("share_opened"),n("upgrade_clicked"),n("page_viewed"),n("paywall_shown"),n("checkout_abandoned")]),WindowEventsRequestSchema=e.strictObject({events:e.array(WindowEventSchema).min(1).max(EVENTS_AT_MOST)}),EventsAnswerSchema=e.object({kept:e.number().int().min(0)});
2
+ import{z as e}from"zod";import{TURN_MOODS as s,TURN_PURPOSES as r,TURN_TROUBLES as i}from"./purposes.js";export const EVENTS_PATH="/api/events",EVENTS_AT_MOST=100,EventWordSchema=e.string().regex(/^[a-z0-9][a-z0-9_.:-]{0,63}$/u),EventIdSchema=e.string().regex(/^[A-Za-z0-9_-]{1,128}$/u),EventLanguageSchema=e.string().regex(/^[a-z]{2}$/u),EventCountrySchema=e.string().regex(/^[A-Z]{2}$/u),EventTraceIdSchema=e.string().regex(/^[0-9a-f]{32}$/u),EventRouteSchema=e.string().regex(/^(?:\/[A-Za-z0-9_.:*-]{1,64}){1,12}$|^unmatched$/u);const o=e.record(EventWordSchema,e.number().int().min(0).max(1e6)).refine(n=>Object.keys(n).length<=32,"At most 32 words.");export const WINDOW_PRODUCTS=["agents","desktop","cloud"],UPGRADE_PLACES=["sidebar_offer","plan_settings","refusal_card","read_only_chip","paywall"],PAYWALL_TRIGGERS=["refused","reminder","locked"],WINDOW_PAGES=["console_home","cloud_studio","plan_settings"],CHECKOUT_WHATS=["plan","top_up","card"],CHECKOUT_LEFT_REASONS=["price","payment_method","just_looking","other"];const a=e.number().int().min(0).max(10080*60*1e3);export const EVENT_PROPS={program_opened:e.strictObject({os:EventWordSchema,arch:EventWordSchema,where:e.enum(["computer","cloud"])}),project_opened:e.strictObject({fresh:e.boolean(),items:o}),item_opened:e.strictObject({kind:EventWordSchema}),session_started:e.strictObject({agent:EventWordSchema}),turn_started:e.strictObject({agent:EventWordSchema}),turn_finished:e.strictObject({agent:EventWordSchema,durationMs:a,ended:EventWordSchema,changed:o,made:o.optional()}),job_finished:e.strictObject({what:EventWordSchema,about:EventWordSchema,kind:EventWordSchema.optional(),durationMs:a,outcome:e.enum(["done","failed","cancelled"])}),command_ran:e.strictObject({command:EventWordSchema,durationMs:a,exit:e.number().int().min(0).max(255),code:EventWordSchema.optional()}),refusal_shown:e.strictObject({code:EventWordSchema,where:EventWordSchema}),home_product_chosen:e.strictObject({product:e.enum(WINDOW_PRODUCTS)}),item_opened_from_sidebar:e.strictObject({kind:EventWordSchema,extension:EventWordSchema.optional()}),file_downloaded:e.strictObject({kind:EventWordSchema,format:EventWordSchema,paused:e.boolean()}),share_opened:e.strictObject({kind:EventWordSchema}),upgrade_clicked:e.strictObject({where:e.enum(UPGRADE_PLACES)}),page_viewed:e.strictObject({page:e.enum(WINDOW_PAGES)}),paywall_shown:e.strictObject({reason:EventWordSchema,what:EventWordSchema,trigger:e.enum(PAYWALL_TRIGGERS)}),checkout_abandoned:e.strictObject({what:e.enum(CHECKOUT_WHATS),reason:e.enum(CHECKOUT_LEFT_REASONS).optional()}),account_created:e.strictObject({}),refusal_met:e.strictObject({code:EventWordSchema,route:EventRouteSchema,background:e.boolean().optional()}),checkout_started:e.strictObject({what:e.enum(CHECKOUT_WHATS),plan:EventWordSchema.optional(),interval:EventWordSchema.optional()}),checkout_completed:e.strictObject({what:e.enum(["plan","top_up"]),plan:EventWordSchema.optional(),amount_cents:e.number().int().nonnegative().optional(),currency:EventWordSchema.optional()}),checkout_expired:e.strictObject({what:e.enum(CHECKOUT_WHATS),plan:EventWordSchema.optional(),interval:EventWordSchema.optional(),currency:EventWordSchema.optional(),country:EventCountrySchema.optional()}),subscription_changed:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,from_plan:EventWordSchema,from_interval:EventWordSchema}),subscription_canceled:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,reason:EventWordSchema.optional()}),subscription_ended:e.strictObject({plan:EventWordSchema,interval:EventWordSchema}),subscription_renewed:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,amount_cents:e.number().int().nonnegative(),currency:EventWordSchema}),payment_failed:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,attempt:e.number().int().min(1)}),share_made:e.strictObject({kind:EventWordSchema,audience:EventWordSchema}),studio_opened:e.strictObject({where:e.enum(["computer","cloud"]),first:e.boolean()}),activated:e.strictObject({turns_before:e.number().int().min(0),hours_since_sign_up:e.number().min(0)}),turn_classified:e.strictObject({purpose:e.enum(r),language:EventLanguageSchema.optional(),mood:e.enum(s).optional(),trouble:e.enum(i).optional()})},EVENT_ABOUT={program_opened:"Studio started.",project_opened:"A project was opened in Studio.",item_opened:"A piece was put on show in Studio: its kind (a video, a deck, a doc), never which one.",session_started:"A conversation with an agent began.",turn_started:"A message was sent to an agent: which agent, never what the message says.",turn_finished:"An agent finished answering a message: how long it took, how it ended, how many files it changed of each kind of work and how many pieces of each kind it made.",job_finished:"Work Studio did ended: an export, a publish, an install, a download.",command_ran:"A command of the allyhub CLI ran: its name, how long it took, its exit code and, where it did not succeed, its failure's code.",refusal_shown:"Studio showed that a call needs credits or a plan.",home_product_chosen:"On the console's Home, the action of one of the three ways to use AllyHub was pressed: which way.",item_opened_from_sidebar:"A piece or a file was opened from the sidebar by hand: its kind, and a plain file's extension, never which one.",file_downloaded:"A file was downloaded from Studio's Download: the piece's kind, the file's format, and whether the computer in the cloud was paused.",share_opened:"Studio's Share panel was opened: the piece's kind.",upgrade_clicked:"An upgrade or buy-credits button was pressed: which of a few places it was in.",page_viewed:"One of a few pages was arrived at: the console's Home, AllyHub in the Cloud, or the plan's settings.",paywall_shown:"The dialog that offers plans and credits opened: why AllyHub refused (credits, a plan, storage), what kind of thing it refused, and whether a refusal or its reminder opened it.",checkout_abandoned:"Someone came back from Stripe's payment page without paying: what it was for (a plan, credits, a card) and, when they answered, which of a few reasons stopped them.",account_created:"A person signed up.",refusal_met:"AllyHub's service refused a call for credits, a plan, a limit, a tool turned off or storage, and whether background work made the call.",checkout_started:"A person went to pay.",checkout_completed:"A payment arrived.",checkout_expired:"A payment page was left unpaid until Stripe closed it.",subscription_changed:"A plan moved to another plan or between monthly and yearly.",subscription_canceled:"A plan was set to end, and the reason the person chose for it, when they chose one.",subscription_ended:"A plan ended.",subscription_renewed:"A plan's new period was paid.",payment_failed:"A plan's payment could not be charged.",share_made:"A share link was made.",studio_opened:"A person opened AllyHub Studio: the first time, then once a day at most.",activated:"A person's first message an agent answered to its end with something changed or made.",turn_classified:"A message's labels, read by AllyHub's own model: which of a few kinds of work it asked for (research, a document, media, writing…), its language, how the person sounded (pleased, neutral, confused, frustrated) and, when confused or frustrated, about what. Never a word of the message."},CLIENT_EVENTS=["program_opened","project_opened","item_opened","session_started","turn_started","turn_finished","job_finished","command_ran","refusal_shown"],WINDOW_EVENTS=["home_product_chosen","item_opened_from_sidebar","file_downloaded","share_opened","upgrade_clicked","page_viewed","paywall_shown","checkout_abandoned"],sent={id:e.uuid(),at:e.iso.datetime(),projectId:EventIdSchema.optional(),sessionId:EventIdSchema.optional(),traceId:EventTraceIdSchema.optional()};const t=n=>e.strictObject({...sent,name:e.literal(n),props:EVENT_PROPS[n]});export const ClientEventSchema=e.discriminatedUnion("name",[t("program_opened"),t("project_opened"),t("item_opened"),t("session_started"),t("turn_started"),t("turn_finished"),t("job_finished"),t("command_ran"),t("refusal_shown")]),EventsRequestSchema=e.strictObject({events:e.array(ClientEventSchema).min(1).max(EVENTS_AT_MOST)});
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./presence.js";export*from"./kinds.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./events.js";export*from"./purposes.js";export*from"./turns.js";export*from"./errors.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./mail.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./jobs.js";export*from"./peer.js";export*from"./shape.js";export*from"./studio-server.js";export*from"./studio-window-requests.js";export*from"./studio-tool-calls.js";export*from"./cloud-computer.js";export*from"./sidebar-deletion.js";export*from"./paywall.js";
2
+ export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./presence.js";export*from"./kinds.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./events.js";export*from"./purposes.js";export*from"./errors.js";export*from"./registry.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./blobs.js";export*from"./sites.js";export*from"./mail.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./open.js";export*from"./jobs.js";export*from"./paywall.js";
@@ -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";export const JSONRPC="2.0",RequestSchema=r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int()]),method:r.string().min(1),params:r.unknown().optional()}),NotificationSchema=r.strictObject({jsonrpc:r.literal(JSONRPC),method:r.string().min(1),params:r.unknown().optional()}),ErrorObjectSchema=r.strictObject({code:r.int(),message:r.string(),data:r.unknown().optional()}),ResponseSchema=r.union([r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int()]),result:r.unknown()}),r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int(),r.null()]),error:ErrorObjectSchema})]),RPC_ERROR={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},method=(o,e,t)=>({params:o,result:e,about:t}),notification=(o,e)=>({params:o,about:e});export class RpcError extends Error{code;data;constructor(e,t,s){super(t),this.name="RpcError",this.code=e,this.data=s}}export async function answer(o,e,t){const{id:s}=t,a=Object.hasOwn(o,t.method)?o[t.method]:void 0;if(!a)return{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.methodNotFound,message:`There is no method "${t.method}".`}};const i=a.params.safeParse(t.params??{});if(!i.success)return{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.invalidParams,message:r.prettifyError(i.error)}};try{const n=e[t.method],c=await n(i.data);return{jsonrpc:JSONRPC,id:s,result:a.result.parse(c)}}catch(n){return n instanceof RpcError?{jsonrpc:JSONRPC,id:s,error:{code:n.code,message:n.message,...n.data===void 0?{}:{data:n.data}}}:{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.internal,message:n instanceof Error?n.message:String(n)}}}}
2
+ import{z as r}from"zod";export const JSONRPC="2.0",RequestSchema=r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int()]),method:r.string().min(1),params:r.unknown().optional()}),ErrorObjectSchema=r.strictObject({code:r.int(),message:r.string(),data:r.unknown().optional()}),ResponseSchema=r.union([r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int()]),result:r.unknown()}),r.strictObject({jsonrpc:r.literal(JSONRPC),id:r.union([r.string(),r.int(),r.null()]),error:ErrorObjectSchema})]),RPC_ERROR={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},method=(e,o,t)=>({params:e,result:o,about:t}),notification=(e,o)=>({params:e,about:o});export class RpcError extends Error{code;data;constructor(o,t,s){super(t),this.name="RpcError",this.code=o,this.data=s}}export async function answer(e,o,t){const{id:s}=t,a=Object.hasOwn(e,t.method)?e[t.method]:void 0;if(!a)return{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.methodNotFound,message:`There is no method "${t.method}".`}};const i=a.params.safeParse(t.params??{});if(!i.success)return{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.invalidParams,message:r.prettifyError(i.error)}};try{const n=o[t.method],c=await n(i.data);return{jsonrpc:JSONRPC,id:s,result:a.result.parse(c)}}catch(n){return n instanceof RpcError?{jsonrpc:JSONRPC,id:s,error:{code:n.code,message:n.message,...n.data===void 0?{}:{data:n.data}}}:{jsonrpc:JSONRPC,id:s,error:{code:RPC_ERROR.internal,message:n instanceof Error?n.message:String(n)}}}}
@@ -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";const m=r.object({name:r.string().min(1),only:r.array(r.string().min(1)),values:r.array(r.string().min(1)).optional()});export const ExportOfferSchema=r.object({types:r.array(r.string().min(1)),extras:r.array(r.string().min(1)),options:r.array(m),names:r.record(r.string(),r.record(r.string(),r.string())).optional()});const u={noun:r.string().min(1),icon:r.string().min(1).optional(),color:r.string().min(1).optional(),editor:r.string().min(1).optional(),exports:ExportOfferSchema.optional(),share:r.boolean().optional()};export const KindInfoSchema=r.object({name:r.string().min(1),...u}),ListedKindSchema=r.object({name:r.record(r.string(),r.string().min(1)),plural:r.record(r.string(),r.string().min(1)).optional(),starter:r.object({files:r.record(r.string().min(1),r.string()),entry:r.string().min(1)}).optional(),order:r.number().optional(),turnInto:r.boolean().optional(),...u}),ProjectKindSchema=ListedKindSchema.extend({id:r.string().min(1)});export function listedKind(n){return{name:n.name??{en:n.noun},...n.plural===void 0?{}:{plural:{...n.plural}},...n.starter===void 0?{}:{starter:{files:{...n.starter.files},entry:n.starter.entry}},...n.order===void 0?{}:{order:n.order},...n.turnInto===!1?{turnInto:!1}:{},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},...n.editor===void 0?{}:{editor:n.editor},...n.exports===void 0?{}:{exports:{types:[...n.exports.types],extras:[...n.exports.extras],options:n.exports.options.map(o=>({name:o.name,only:[...o.only],...o.values===void 0?{}:{values:[...o.values]}})),...n.exports.names===void 0?{}:{names:Object.fromEntries(Object.entries(n.exports.names).map(([o,e])=>[o,{...e}]))}}},...n.share===void 0?{}:{share:n.share}}}export function listedFileEditor(n){return{name:{...n.name},...n.plural===void 0?{}:{plural:{...n.plural}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},editor:n.id,...n.share===!0?{share:!0}:{}}}export const kindNameIn=(n,o)=>n.name[o]??n.name.en??n.noun,kindPluralIn=(n,o)=>n.plural?.[o]??n.plural?.en??kindNameIn(n,o);const s=/\.(ya?ml|json)$/u;export function starterFiles(n,o,e,i){const a=t=>t.replaceAll("{{locale}}",e).replaceAll("{{name}}",i);return{files:Object.entries(n.files).map(([t,d])=>{const l=a(t),f=s.test(l)?JSON.stringify(o):o;return{path:l,text:d.replaceAll("{{locale}}",e).replaceAll("{{name}}",i).replaceAll("{{title}}",()=>f)}}),entry:a(n.entry)}}export function kindInfoIn(n,o,e){return o===void 0?{name:n??"file",noun:n??"file"}:{name:kindNameIn(o,e),noun:o.noun,...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.editor===void 0?{}:{editor:o.editor},...o.exports===void 0?{}:{exports:o.exports},...o.share===void 0?{}:{share:o.share}}}export function downloadOffered(n){return n.kindInfo?.exports!==void 0?"formats":n.kind===void 0?"file as it is":"nothing"}
2
+ import{z as r}from"zod";const m=r.object({name:r.string().min(1),only:r.array(r.string().min(1)),values:r.array(r.string().min(1)).optional()});export const ExportOfferSchema=r.object({types:r.array(r.string().min(1)),extras:r.array(r.string().min(1)),options:r.array(m),names:r.record(r.string(),r.record(r.string(),r.string())).optional()});const l={noun:r.string().min(1),icon:r.string().min(1).optional(),color:r.string().min(1).optional(),editor:r.string().min(1).optional(),exports:ExportOfferSchema.optional(),share:r.boolean().optional()};export const KindInfoSchema=r.object({name:r.string().min(1),...l}),ListedKindSchema=r.object({name:r.record(r.string(),r.string().min(1)),plural:r.record(r.string(),r.string().min(1)).optional(),starter:r.object({files:r.record(r.string().min(1),r.string()),entry:r.string().min(1)}).optional(),order:r.number().optional(),turnInto:r.boolean().optional(),...l}),ProjectKindSchema=ListedKindSchema.extend({id:r.string().min(1)});export function listedKind(n){return{name:n.name??{en:n.noun},...n.plural===void 0?{}:{plural:{...n.plural}},...n.starter===void 0?{}:{starter:{files:{...n.starter.files},entry:n.starter.entry}},...n.order===void 0?{}:{order:n.order},...n.turnInto===!1?{turnInto:!1}:{},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},...n.editor===void 0?{}:{editor:n.editor},...n.exports===void 0?{}:{exports:{types:[...n.exports.types],extras:[...n.exports.extras],options:n.exports.options.map(o=>({name:o.name,only:[...o.only],...o.values===void 0?{}:{values:[...o.values]}})),...n.exports.names===void 0?{}:{names:Object.fromEntries(Object.entries(n.exports.names).map(([o,e])=>[o,{...e}]))}}},...n.share===void 0?{}:{share:n.share}}}export function listedFileEditor(n){return{name:{...n.name},...n.plural===void 0?{}:{plural:{...n.plural}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},editor:n.id,...n.share===!0?{share:!0}:{}}}export const kindNameIn=(n,o)=>n.name[o]??n.name.en??n.noun;const s=/\.(ya?ml|json)$/u;export function starterFiles(n,o,e,i){const a=t=>t.replaceAll("{{locale}}",e).replaceAll("{{name}}",i);return{files:Object.entries(n.files).map(([t,u])=>{const d=a(t),f=s.test(d)?JSON.stringify(o):o;return{path:d,text:u.replaceAll("{{locale}}",e).replaceAll("{{name}}",i).replaceAll("{{title}}",()=>f)}}),entry:a(n.entry)}}export function kindInfoIn(n,o,e){return o===void 0?{name:n??"file",noun:n??"file"}:{name:kindNameIn(o,e),noun:o.noun,...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.editor===void 0?{}:{editor:o.editor},...o.exports===void 0?{}:{exports:o.exports},...o.share===void 0?{}:{share:o.share}}}export function downloadOffered(n){return n.kindInfo?.exports!==void 0?"formats":n.kind===void 0?"file as it is":"nothing"}
@@ -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 t}from"zod";import{openEnum as n}from"./open.js";export const MAIL_LIMITS={listed:100,textBytes:256*1024,aliases:20,recipients:50,subject:998,body:1024*1024,attachmentBytes:10*1024*1024,attachments:32,retentionDays:{min:1,max:365}},MAIL_AGENT_WORDS="AI agent",MAIL_NAME_LENGTH={min:2,max:40};export function mailNameProblem(e){if(e.length<MAIL_NAME_LENGTH.min||e.length>MAIL_NAME_LENGTH.max)return`A name is ${String(MAIL_NAME_LENGTH.min)} to ${String(MAIL_NAME_LENGTH.max)} characters.`;if(!/^[a-z0-9-]+$/u.test(e))return"A name is lowercase letters, digits and hyphens.";if(e.startsWith("-")||e.endsWith("-"))return"A name neither starts nor ends with a hyphen.";if(e.includes("--"))return"A name does not have two hyphens in a row."}export const MailNameSchema=t.string().superRefine((e,r)=>{const a=mailNameProblem(e);a!==void 0&&r.addIssue({code:"custom",message:a})}),MAIL_PATH="/api/mail",MAIL_SETTINGS_PATH="/api/mail/settings",MAIL_PERSON_QUERY="person=1",MAIL_SEND_PATH="/api/mail/send",MAIL_ALIASES_PATH="/api/mail/aliases",MAIL_MESSAGES_PATH="/api/mail/messages",mailMessagePath=e=>`${MAIL_MESSAGES_PATH}/${encodeURIComponent(e)}`,mailRawPath=e=>`${mailMessagePath(e)}/raw`,mailReplyPath=e=>`${mailMessagePath(e)}/reply`,MAIL_SEND_POLICIES=["off","team","anyone"],MAIL_DIRECTIONS=["in","out"],MAIL_ADDRESS_KINDS=["main","alias"],MailAddressSchema=t.object({address:t.string(),kind:n(MAIL_ADDRESS_KINDS),project:t.string().nullable(),createdAt:t.string()}),MailboxSchema=t.object({domain:t.string(),displayName:t.string(),retentionDays:t.number(),sendPolicy:n(MAIL_SEND_POLICIES),sendsLeft:t.number(),sendsPerDay:t.number().optional(),addresses:t.array(MailAddressSchema)}),MailAliasCreateSchema=t.strictObject({name:MailNameSchema,project:t.string().min(1).max(200).optional()}),MailPersonSchema=t.object({address:t.string(),name:t.string()}),MailSummarySchema=t.object({id:t.string(),direction:n(MAIL_DIRECTIONS),receivedAt:t.string(),to:t.string(),tag:t.string().nullable(),from:MailPersonSchema.nullable(),recipients:t.array(MailPersonSchema).default([]),subject:t.string(),threadId:t.string(),size:t.number()}),MailLinkSchema=t.object({href:t.string(),text:t.string()}),MailHeaderSchema=t.object({name:t.string(),value:t.string()}),MailAttachmentSchema=t.object({name:t.string().nullable(),type:t.string(),size:t.number()}),MailMessageSchema=MailSummarySchema.extend({cc:t.array(MailPersonSchema),replyTo:t.array(MailPersonSchema),date:t.string().nullable(),messageId:t.string().nullable(),inReplyTo:t.string().nullable(),references:t.array(t.string()),text:t.string(),textCut:t.boolean(),links:t.array(MailLinkSchema),headers:t.array(MailHeaderSchema),attachments:t.array(MailAttachmentSchema),html:t.string().optional()}),MAIL_ORDERS=["newest","oldest"],MailSearchSchema=t.strictObject({to:t.string().min(1).max(320).optional(),from:t.string().min(1).max(320).optional(),subject:t.string().min(1).max(500).optional(),text:t.string().min(1).max(500).optional(),project:t.string().min(1).max(200).optional(),thread:t.string().min(1).max(200).optional(),direction:t.enum(MAIL_DIRECTIONS).optional(),since:t.iso.datetime({offset:!0}).optional(),order:t.enum(MAIL_ORDERS).default("newest"),limit:t.coerce.number().int().min(1).max(MAIL_LIMITS.listed).default(20)}),MailSearchResponseSchema=t.object({messages:t.array(MailSummarySchema)});const i=t.email().max(320);export const MailAttachmentSendSchema=t.strictObject({name:t.string().min(1).max(255),type:t.string().min(1).max(255),content:t.base64()});const s={text:t.string().max(MAIL_LIMITS.body),html:t.string().max(MAIL_LIMITS.body).optional(),attachments:t.array(MailAttachmentSendSchema).max(MAIL_LIMITS.attachments).optional(),from:t.string().min(3).max(320).optional()};export const MailSendSchema=t.strictObject({to:t.array(i).min(1).max(MAIL_LIMITS.recipients),cc:t.array(i).max(MAIL_LIMITS.recipients).optional(),subject:t.string().max(MAIL_LIMITS.subject),...s}),MailReplySchema=t.strictObject({all:t.boolean().optional(),...s}),MailSettingsSchema=t.strictObject({displayName:t.string().min(1).max(100).refine(e=>e.toLowerCase().includes(MAIL_AGENT_WORDS.toLowerCase()),{message:`A display name says "${MAIL_AGENT_WORDS}", so a recipient knows who writes.`}).optional(),sendPolicy:t.enum(MAIL_SEND_POLICIES).optional(),retentionDays:t.number().int().min(MAIL_LIMITS.retentionDays.min).max(MAIL_LIMITS.retentionDays.max).optional()});
2
+ import{z as t}from"zod";import{openEnum as n}from"./open.js";export const MAIL_LIMITS={listed:100,textBytes:256*1024,aliases:20,recipients:50,subject:998,body:1024*1024,attachmentBytes:10*1024*1024,attachments:32,retentionDays:{min:1,max:365}},MAIL_NAME_LENGTH={min:2,max:40};export function mailNameProblem(e){if(e.length<MAIL_NAME_LENGTH.min||e.length>MAIL_NAME_LENGTH.max)return`A name is ${String(MAIL_NAME_LENGTH.min)} to ${String(MAIL_NAME_LENGTH.max)} characters.`;if(!/^[a-z0-9-]+$/u.test(e))return"A name is lowercase letters, digits and hyphens.";if(e.startsWith("-")||e.endsWith("-"))return"A name neither starts nor ends with a hyphen.";if(e.includes("--"))return"A name does not have two hyphens in a row."}export const MailNameSchema=t.string().superRefine((e,s)=>{const a=mailNameProblem(e);a!==void 0&&s.addIssue({code:"custom",message:a})}),MAIL_PATH="/api/mail",MAIL_SEND_PATH="/api/mail/send",MAIL_ALIASES_PATH="/api/mail/aliases",MAIL_MESSAGES_PATH="/api/mail/messages",mailMessagePath=e=>`${MAIL_MESSAGES_PATH}/${encodeURIComponent(e)}`,mailRawPath=e=>`${mailMessagePath(e)}/raw`,mailReplyPath=e=>`${mailMessagePath(e)}/reply`,MAIL_SEND_POLICIES=["off","team","anyone"],MAIL_DIRECTIONS=["in","out"],MAIL_ADDRESS_KINDS=["main","alias"],MailAddressSchema=t.object({address:t.string(),kind:n(MAIL_ADDRESS_KINDS),project:t.string().nullable(),createdAt:t.string()}),MailboxSchema=t.object({domain:t.string(),displayName:t.string(),retentionDays:t.number(),sendPolicy:n(MAIL_SEND_POLICIES),sendsLeft:t.number(),sendsPerDay:t.number().optional(),addresses:t.array(MailAddressSchema)}),MailAliasCreateSchema=t.strictObject({name:MailNameSchema,project:t.string().min(1).max(200).optional()}),MailPersonSchema=t.object({address:t.string(),name:t.string()}),MailSummarySchema=t.object({id:t.string(),direction:n(MAIL_DIRECTIONS),receivedAt:t.string(),to:t.string(),tag:t.string().nullable(),from:MailPersonSchema.nullable(),recipients:t.array(MailPersonSchema).default([]),subject:t.string(),threadId:t.string(),size:t.number()}),MailLinkSchema=t.object({href:t.string(),text:t.string()}),MailHeaderSchema=t.object({name:t.string(),value:t.string()}),MailAttachmentSchema=t.object({name:t.string().nullable(),type:t.string(),size:t.number()}),MailMessageSchema=MailSummarySchema.extend({cc:t.array(MailPersonSchema),replyTo:t.array(MailPersonSchema),date:t.string().nullable(),messageId:t.string().nullable(),inReplyTo:t.string().nullable(),references:t.array(t.string()),text:t.string(),textCut:t.boolean(),links:t.array(MailLinkSchema),headers:t.array(MailHeaderSchema),attachments:t.array(MailAttachmentSchema),html:t.string().optional()}),MAIL_ORDERS=["newest","oldest"],MailSearchSchema=t.strictObject({to:t.string().min(1).max(320).optional(),from:t.string().min(1).max(320).optional(),subject:t.string().min(1).max(500).optional(),text:t.string().min(1).max(500).optional(),project:t.string().min(1).max(200).optional(),thread:t.string().min(1).max(200).optional(),direction:t.enum(MAIL_DIRECTIONS).optional(),since:t.iso.datetime({offset:!0}).optional(),order:t.enum(MAIL_ORDERS).default("newest"),limit:t.coerce.number().int().min(1).max(MAIL_LIMITS.listed).default(20)}),MailSearchResponseSchema=t.object({messages:t.array(MailSummarySchema)});const r=t.email().max(320);export const MailAttachmentSendSchema=t.strictObject({name:t.string().min(1).max(255),type:t.string().min(1).max(255),content:t.base64()});const i={text:t.string().max(MAIL_LIMITS.body),html:t.string().max(MAIL_LIMITS.body).optional(),attachments:t.array(MailAttachmentSendSchema).max(MAIL_LIMITS.attachments).optional(),from:t.string().min(3).max(320).optional()};export const MailSendSchema=t.strictObject({to:t.array(r).min(1).max(MAIL_LIMITS.recipients),cc:t.array(r).max(MAIL_LIMITS.recipients).optional(),subject:t.string().max(MAIL_LIMITS.subject),...i}),MailReplySchema=t.strictObject({all:t.boolean().optional(),...i});
@@ -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 t}from"zod";import{insideOutline as i,mapOutline as n,mapShape as o,outlineBox as r,pointsOf as c,rectOutline as a,roundOutline as s,touches as m,turnedOutline as p}from"@allyhub/formats";import{PathSchema as e}from"./files.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()}),NotePointSchema=t.strictObject({x:t.number(),y:t.number()}),NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:NotePointSchema,to:NotePointSchema}),t.strictObject({kind:t.literal("line"),points:t.array(NotePointSchema).min(1)})]);export{i as insideOutline,n as mapOutline,o as mapShape,r as outlineBox,c as pointsOf,a as rectOutline,s as roundOutline,m as touches,p as turnedOutline};export const NoteSourceSchema=t.strictObject({path:e,line:t.int().positive().optional(),endLine:t.int().positive().optional()}),HeldSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteRegionSchema=t.strictObject({in:t.string().min(1),file:e.optional(),width:t.number().positive(),height:t.number().positive(),path:t.string().min(1),area:t.boolean(),scale:t.number().positive()}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional(),regions:t.array(NoteRegionSchema).optional()}),NoteFoundSchema=t.strictObject({elements:t.array(NoteElementSchema),where:t.string().optional()}),NotePickSchema=t.strictObject({element:NoteElementSchema,outline:t.array(t.array(NotePointSchema).min(3)).min(1),where:t.string().optional()});
2
+ import{z as t}from"zod";import{mapShape as i,pointsOf as n,rectOutline as o,touches as r}from"@allyhub/formats/note-shape";import{PathSchema as e}from"./files.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()}),NotePointSchema=t.strictObject({x:t.number(),y:t.number()}),NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:NotePointSchema,to:NotePointSchema}),t.strictObject({kind:t.literal("line"),points:t.array(NotePointSchema).min(1)})]);export{i as mapShape,n as pointsOf,o as rectOutline,r as touches};export const NoteSourceSchema=t.strictObject({path:e,line:t.int().positive().optional(),endLine:t.int().positive().optional()}),HeldSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteRegionSchema=t.strictObject({in:t.string().min(1),file:e.optional(),width:t.number().positive(),height:t.number().positive(),path:t.string().min(1),area:t.boolean(),scale:t.number().positive()}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional(),regions:t.array(NoteRegionSchema).optional()}),NoteFoundSchema=t.strictObject({elements:t.array(NoteElementSchema),where:t.string().optional()}),NotePickSchema=t.strictObject({element:NoteElementSchema,outline:t.array(t.array(NotePointSchema).min(3)).min(1),where:t.string().optional()});
@@ -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 n}from"zod";import{known as m,openEnum as u}from"./open.js";export const PAYWALL_REASONS=["insufficient_credits","plan_required","storage_full"],PAYWALL_WHATS=["model","tool","command","save","share","upload","call"],PaywallNumbersSchema=n.object({creditsLeft:n.number().optional(),creditsNeeded:n.number().optional(),keptBytes:n.number().optional(),capBytes:n.number().optional()}),PaywallMetSchema=n.object({id:n.string(),reason:u(PAYWALL_REASONS),what:u(PAYWALL_WHATS),numbers:PaywallNumbersSchema.default({}),byPerson:n.boolean().default(!0),atMs:n.number()}),PaywallHeardSchema=n.object({met:PaywallMetSchema.optional(),gone:u(PAYWALL_REASONS).optional()}),COMMAND_LINE_PAYWALL_MET="paywall-met",CommandLinePaywallMetSchema=n.object({reason:n.enum(PAYWALL_REASONS),what:n.enum(["tool","command"]).default("command"),numbers:PaywallNumbersSchema.default({})});export function paywallReasonOfCode(o){if(typeof o!="string")return;const e=o.replaceAll("-","_");return m(PAYWALL_REASONS,e)?e:void 0}const l=(o,e)=>{const t=o[e];return typeof t=="number"&&Number.isFinite(t)?t:void 0};export function paywallNumbersOfData(o){if(typeof o!="object"||o===null)return{};const e=o,t=l(e,"available"),r=l(e,"needed"),s=l(e,"keptBytes"),c=l(e,"capBytes");return{...t===void 0?{}:{creditsLeft:t},...r===void 0?{}:{creditsNeeded:r},...s===void 0?{}:{keptBytes:s},...c===void 0?{}:{capBytes:c}}}const b=12;export function paywallOfError(o){const e=[o];for(let t=0;t<e.length&&t<b;t++){const r=e[t];if(typeof r!="object"||r===null)continue;const{code:s,reason:c,data:d,said:i,cause:p}=r,f=paywallReasonOfCode(s)??paywallReasonOfCode(c);if(f!==void 0){const a={...paywallNumbersOfData(r),...paywallNumbersOfData(i),...paywallNumbersOfData(d)};return{reason:f,numbers:a}}for(const a of[d,i,p])typeof a=="object"&&a!==null&&e.push(a)}}
2
+ import{z as t}from"zod";import{known as i}from"./open.js";export const PAYWALL_REASONS=["insufficient_credits","plan_required","storage_full"],PaywallNumbersSchema=t.object({creditsLeft:t.number().optional(),creditsNeeded:t.number().optional(),keptBytes:t.number().optional(),capBytes:t.number().optional()}),COMMAND_LINE_PAYWALL_MET="paywall-met",CommandLinePaywallMetSchema=t.object({reason:t.enum(PAYWALL_REASONS),what:t.enum(["tool","command"]).default("command"),numbers:PaywallNumbersSchema.default({})});export function paywallReasonOfCode(n){if(typeof n!="string")return;const e=n.replaceAll("-","_");return i(PAYWALL_REASONS,e)?e:void 0}const r=(n,e)=>{const o=n[e];return typeof o=="number"&&Number.isFinite(o)?o:void 0};export function paywallNumbersOfData(n){if(typeof n!="object"||n===null)return{};const e=n,o=r(e,"available"),a=r(e,"needed"),s=r(e,"keptBytes"),d=r(e,"capBytes");return{...o===void 0?{}:{creditsLeft:o},...a===void 0?{}:{creditsNeeded:a},...s===void 0?{}:{keptBytes:s},...d===void 0?{}:{capBytes:d}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const TURN_PURPOSE_ABOUT={research_social:"Research on social media: accounts, posts, creators, trends on a platform.",research_market:"Research on e-commerce and markets: competitors, products, prices, reviews, a market's size.",document:"A document, a report, a sheet or slides.",media:"A video, an image, audio, voice or music.",writing:"Copy, a script, a post's text, rewriting or translating text.",browse_act:"Operating a website or an account for the person: signing in, filling a form, posting, buying.",question:"A question about AllyHub itself, or conversation with no work.",other:"Anything else."},TURN_PURPOSES=Object.keys(TURN_PURPOSE_ABOUT),isTurnPurpose=e=>Object.hasOwn(TURN_PURPOSE_ABOUT,e),TURN_MOOD_ABOUT={pleased:"Thanks, praise or relief.",neutral:"A request or a question with no feeling in it.",confused:"They do not understand what happened or how to do something: where a file is, how to get it, what was done.",frustrated:"A complaint: something is wrong or did not work, is asked again, or they are annoyed or angry."},TURN_MOODS=Object.keys(TURN_MOOD_ABOUT),isTurnMood=e=>Object.hasOwn(TURN_MOOD_ABOUT,e),MOODS_WITH_TROUBLE=["confused","frustrated"],TURN_TROUBLE_ABOUT={result:"The work is wrong, not what was asked, or of poor quality.",speed:"It is slow, stuck or still running.",cost:"Credits, a price, a payment or a limit.",access:"They cannot find, open, download or reach something, or something is lost.",ability:"AllyHub or the agent cannot do what they want (operate their screen, a website).",other:"Anything else."},TURN_TROUBLES=Object.keys(TURN_TROUBLE_ABOUT),isTurnTrouble=e=>Object.hasOwn(TURN_TROUBLE_ABOUT,e),isLanguageCode=e=>/^[a-z]{2}$/u.test(e);
2
+ export const TURN_PURPOSE_ABOUT={research_social:"Research on social media: accounts, posts, creators, trends on a platform.",research_market:"Research on e-commerce and markets: competitors, products, prices, reviews, a market's size.",document:"A document, a report, a sheet or slides.",media:"A video, an image, audio, voice or music.",writing:"Copy, a script, a post's text, rewriting or translating text.",browse_act:"Operating a website or an account for the person: signing in, filling a form, posting, buying.",question:"A question about AllyHub itself, or conversation with no work.",other:"Anything else."},TURN_PURPOSES=Object.keys(TURN_PURPOSE_ABOUT),TURN_MOOD_ABOUT={pleased:"Thanks, praise or relief.",neutral:"A request or a question with no feeling in it.",confused:"They do not understand what happened or how to do something: where a file is, how to get it, what was done.",frustrated:"A complaint: something is wrong or did not work, is asked again, or they are annoyed or angry."},TURN_MOODS=Object.keys(TURN_MOOD_ABOUT),TURN_TROUBLE_ABOUT={result:"The work is wrong, not what was asked, or of poor quality.",speed:"It is slow, stuck or still running.",cost:"Credits, a price, a payment or a limit.",access:"They cannot find, open, download or reach something, or something is lost.",ability:"AllyHub or the agent cannot do what they want (operate their screen, a website).",other:"Anything else."},TURN_TROUBLES=Object.keys(TURN_TROUBLE_ABOUT);
@@ -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{readable as i}from"./open.js";export const RESOURCES_REGISTRY="https://allyhub.com/r",registryIndexUrl=t=>`${t.replace(/\/$/u,"")}/registry.json`,skillFile=t=>`.agents/skills/${t}/SKILL.md`,REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill","allyhub:lib"];const r=e.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=e.object({path:e.string().min(1),target:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),content:e.string().optional()}),RegistryAssetSchema=e.object({source:e.literal("polyhaven"),id:e.string().min(1),resolution:e.string().min(1).optional(),maps:e.array(e.string().min(1)).optional()}),RegistryBakeSchema=e.object({scenery:e.string().min(1),digest:e.string().regex(/^[0-9a-f]+$/u),renderer:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),size:e.number().int().positive(),url:e.url()}),SkillCardWordsSchema=e.object({title:e.string().min(1),description:e.string().min(1),prompt:e.string().min(1).optional()}),SkillCardSchema=e.object({category:e.string().min(1),order:e.number().int().positive(),cover:e.string().optional(),words:SkillCardWordsSchema,languages:e.record(e.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=e.object({$schema:e.string().optional(),name:r,type:e.enum(REGISTRY_TYPES),title:e.string().min(1),description:e.string().min(1),author:e.string().optional(),license:e.string().min(1),dependencies:e.array(e.string()).default([]),registryDependencies:e.array(r).default([]),files:e.array(RegistryFileSchema).min(1),assets:e.array(RegistryAssetSchema).default([]),bakes:e.array(RegistryBakeSchema).default([]),categories:e.array(e.string()).default([]),preview:e.string().optional(),version:e.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexEntrySchema=RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}),RegistryIndexSchema=e.object({$schema:e.string().optional(),name:e.string().min(1),homepage:e.url().optional(),items:i(RegistryIndexEntrySchema)});
2
+ import{z as e}from"zod";import{readable as r}from"./open.js";export const REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill","allyhub:lib"];const t=e.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=e.object({path:e.string().min(1),target:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),content:e.string().optional()}),RegistryAssetSchema=e.object({source:e.literal("polyhaven"),id:e.string().min(1),resolution:e.string().min(1).optional(),maps:e.array(e.string().min(1)).optional()}),RegistryBakeSchema=e.object({scenery:e.string().min(1),digest:e.string().regex(/^[0-9a-f]+$/u),renderer:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),size:e.number().int().positive(),url:e.url()}),SkillCardWordsSchema=e.object({title:e.string().min(1),description:e.string().min(1),prompt:e.string().min(1).optional()}),SkillCardSchema=e.object({category:e.string().min(1),order:e.number().int().positive(),cover:e.string().optional(),words:SkillCardWordsSchema,languages:e.record(e.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=e.object({$schema:e.string().optional(),name:t,type:e.enum(REGISTRY_TYPES),title:e.string().min(1),description:e.string().min(1),author:e.string().optional(),license:e.string().min(1),dependencies:e.array(e.string()).default([]),registryDependencies:e.array(t).default([]),files:e.array(RegistryFileSchema).min(1),assets:e.array(RegistryAssetSchema).default([]),bakes:e.array(RegistryBakeSchema).default([]),categories:e.array(e.string()).default([]),preview:e.string().optional(),version:e.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexEntrySchema=RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}),RegistryIndexSchema=e.object({$schema:e.string().optional(),name:e.string().min(1),homepage:e.url().optional(),items:r(RegistryIndexEntrySchema)});
@@ -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{Sha256Schema as o,TreeFileSchema as i,TreePathSchema as a}from"./blobs.js";import{openEnum as c}from"./open.js";export const SITE_MANIFEST_FORMAT=1,SITE_LIMITS={files:2e4,bytes:5*1024*1024*1024,redirects:2e3,headers:100},SLUG_LENGTH={min:3,max:40},RESERVED_SLUGS=new Set(["abuse","account","accounts","admin","administrator","allyhub","api","app","assets","auth","autoconfig","autodiscover","billing","blog","cdn","dashboard","dev","dns","docs","download","downloads","ftp","help","hostmaster","imap","login","mail","mta-sts","ns1","ns2","ops","pop","postmaster","preview","root","security","signin","smtp","staging","static","status","studio","support","test","webmaster","wpad","www"]);export function slugIssue(t){if(t.length<SLUG_LENGTH.min||t.length>SLUG_LENGTH.max)return"length";if(!/^[a-z0-9-]+$/u.test(t))return"characters";if(t.startsWith("-")||t.endsWith("-"))return"hyphenEnds";if(t.includes("--"))return"doubleHyphen";if(RESERVED_SLUGS.has(t))return"reserved"}const p={length:`An address is ${String(SLUG_LENGTH.min)} to ${String(SLUG_LENGTH.max)} characters.`,characters:"An address is lowercase letters, digits and hyphens.",hyphenEnds:"An address neither starts nor ends with a hyphen.",doubleHyphen:"An address does not have two hyphens in a row.",reserved:"That address is reserved."};export function slugProblem(t){const n=slugIssue(t);return n===void 0?void 0:p[n]}export const SiteSlugSchema=e.string().superRefine((t,n)=>{const s=slugProblem(t);s!==void 0&&n.addIssue({code:"custom",message:s})}),REDIRECT_STATUSES=[200,301,302,303,307,308,404,410];const r=e.string().min(1).max(1024).regex(/^\/[^\s]*$/u,"A rule's path starts with /.");export const RedirectRuleSchema=e.strictObject({from:r,to:e.string().min(1).max(2048).regex(/^(\/[^\s]*|https?:\/\/[^\s]+)$/u,"A rule goes to a path or an http(s) address."),status:e.union(REDIRECT_STATUSES.map(t=>e.literal(t))),force:e.boolean()}),PLATFORM_HEADERS=new Set(["accept-ranges","connection","content-encoding","content-length","content-range","date","keep-alive","set-cookie","strict-transport-security","trailer","transfer-encoding","upgrade","x-content-type-options"]);const d=e.string().regex(/^[A-Za-z0-9-]+$/u).max(128).refine(t=>!PLATFORM_HEADERS.has(t.toLowerCase()),"That header is the platform's.");export const HeaderRuleSchema=e.strictObject({for:r,set:e.record(d,e.string().max(2048))}),SiteManifestSchema=e.strictObject({format:e.literal(SITE_MANIFEST_FORMAT),files:e.record(a,i),redirects:e.array(RedirectRuleSchema).max(SITE_LIMITS.redirects),headers:e.array(HeaderRuleSchema).max(SITE_LIMITS.headers)}),SITE_SOURCE_KINDS=["upload","git"],SiteSourceSchema=e.strictObject({kind:e.enum(SITE_SOURCE_KINDS),commit:e.string().min(1).max(64).optional(),digest:o.optional()}),DeploymentSchema=e.object({id:e.string(),siteId:e.string(),source:e.object({...SiteSourceSchema.shape,kind:c(SITE_SOURCE_KINDS)}),note:e.string().nullable(),files:e.number(),bytes:e.number(),createdBy:e.string(),createdAt:e.iso.datetime(),live:e.boolean()}),SiteSchema=e.object({id:e.string(),slug:e.string(),name:e.string(),url:e.url(),liveDeployment:e.string().nullable(),approved:e.boolean(),autoPublish:e.boolean(),indexing:e.boolean(),createdAt:e.iso.datetime()}),SITES_PATH="/api/sites",SiteCreateSchema=e.strictObject({slug:SiteSlugSchema,name:e.string().min(1).max(255)}),SitesResponseSchema=e.object({sites:e.array(SiteSchema),domain:e.string(),hosting:e.boolean()}),sitePath=t=>`${SITES_PATH}/${encodeURIComponent(t)}`,SiteDetailSchema=e.object({site:SiteSchema,deployments:e.array(DeploymentSchema)}),siteBlobsPath=t=>`${sitePath(t)}/blobs`,siteDeploymentsPath=t=>`${sitePath(t)}/deployments`,DeploymentCreateSchema=e.strictObject({manifest:o,source:SiteSourceSchema,note:e.string().max(500).optional()}),DeploymentMadeSchema=e.object({site:SiteSchema,deployment:DeploymentSchema}),siteLivePath=t=>`${sitePath(t)}/live`,SiteLiveSchema=e.strictObject({deployment:e.string().min(1)}),SiteLiveAnswerSchema=e.object({site:SiteSchema,live:e.boolean(),confirm:e.url().optional()}),SITE_PERSON_QUERY="person=1",SITE_CONFIRM_PAGE="/publish",siteConfirmPath=t=>`${SITE_CONFIRM_PAGE}?site=${encodeURIComponent(t.site)}&version=${encodeURIComponent(t.version)}&org=${encodeURIComponent(t.organization)}`,siteSettingsPath=t=>`${sitePath(t)}/settings`,SiteSettingsSchema=e.strictObject({autoPublish:e.boolean().optional(),indexing:e.boolean().optional()}),SitePointerSchema=e.object({site:e.string(),organization:e.string(),deployment:e.string(),manifest:o,indexing:e.boolean()}),sitePointerKey=t=>`host:${t}`;
2
+ import{z as e}from"zod";import{Sha256Schema as n,TreeFileSchema as a,TreePathSchema as i}from"./blobs.js";import{openEnum as c}from"./open.js";export const SITE_MANIFEST_FORMAT=1,SITE_LIMITS={files:2e4,bytes:5*1024*1024*1024,redirects:2e3,headers:100},SLUG_LENGTH={min:3,max:40},RESERVED_SLUGS=new Set(["abuse","account","accounts","admin","administrator","allyhub","api","app","assets","auth","autoconfig","autodiscover","billing","blog","cdn","dashboard","dev","dns","docs","download","downloads","ftp","help","hostmaster","imap","login","mail","mta-sts","ns1","ns2","ops","pop","postmaster","preview","root","security","signin","smtp","staging","static","status","studio","support","test","webmaster","wpad","www"]);export function slugIssue(t){if(t.length<SLUG_LENGTH.min||t.length>SLUG_LENGTH.max)return"length";if(!/^[a-z0-9-]+$/u.test(t))return"characters";if(t.startsWith("-")||t.endsWith("-"))return"hyphenEnds";if(t.includes("--"))return"doubleHyphen";if(RESERVED_SLUGS.has(t))return"reserved"}const p={length:`An address is ${String(SLUG_LENGTH.min)} to ${String(SLUG_LENGTH.max)} characters.`,characters:"An address is lowercase letters, digits and hyphens.",hyphenEnds:"An address neither starts nor ends with a hyphen.",doubleHyphen:"An address does not have two hyphens in a row.",reserved:"That address is reserved."};export function slugProblem(t){const s=slugIssue(t);return s===void 0?void 0:p[s]}export const SiteSlugSchema=e.string().superRefine((t,s)=>{const o=slugProblem(t);o!==void 0&&s.addIssue({code:"custom",message:o})}),REDIRECT_STATUSES=[200,301,302,303,307,308,404,410];const r=e.string().min(1).max(1024).regex(/^\/[^\s]*$/u,"A rule's path starts with /.");export const RedirectRuleSchema=e.strictObject({from:r,to:e.string().min(1).max(2048).regex(/^(\/[^\s]*|https?:\/\/[^\s]+)$/u,"A rule goes to a path or an http(s) address."),status:e.union(REDIRECT_STATUSES.map(t=>e.literal(t))),force:e.boolean()}),PLATFORM_HEADERS=new Set(["accept-ranges","connection","content-encoding","content-length","content-range","date","keep-alive","set-cookie","strict-transport-security","trailer","transfer-encoding","upgrade","x-content-type-options"]);const d=e.string().regex(/^[A-Za-z0-9-]+$/u).max(128).refine(t=>!PLATFORM_HEADERS.has(t.toLowerCase()),"That header is the platform's.");export const HeaderRuleSchema=e.strictObject({for:r,set:e.record(d,e.string().max(2048))}),SiteManifestSchema=e.strictObject({format:e.literal(SITE_MANIFEST_FORMAT),files:e.record(i,a),redirects:e.array(RedirectRuleSchema).max(SITE_LIMITS.redirects),headers:e.array(HeaderRuleSchema).max(SITE_LIMITS.headers)}),SITE_SOURCE_KINDS=["upload","git"],SiteSourceSchema=e.strictObject({kind:e.enum(SITE_SOURCE_KINDS),commit:e.string().min(1).max(64).optional(),digest:n.optional()}),DeploymentSchema=e.object({id:e.string(),siteId:e.string(),source:e.object({...SiteSourceSchema.shape,kind:c(SITE_SOURCE_KINDS)}),note:e.string().nullable(),files:e.number(),bytes:e.number(),createdBy:e.string(),createdAt:e.iso.datetime(),live:e.boolean()}),SiteSchema=e.object({id:e.string(),slug:e.string(),name:e.string(),url:e.url(),liveDeployment:e.string().nullable(),approved:e.boolean(),autoPublish:e.boolean(),indexing:e.boolean(),createdAt:e.iso.datetime()}),SITES_PATH="/api/sites",SiteCreateSchema=e.strictObject({slug:SiteSlugSchema,name:e.string().min(1).max(255)}),SitesResponseSchema=e.object({sites:e.array(SiteSchema),domain:e.string(),hosting:e.boolean()}),sitePath=t=>`${SITES_PATH}/${encodeURIComponent(t)}`,SiteDetailSchema=e.object({site:SiteSchema,deployments:e.array(DeploymentSchema)}),siteBlobsPath=t=>`${sitePath(t)}/blobs`,siteDeploymentsPath=t=>`${sitePath(t)}/deployments`,DeploymentCreateSchema=e.strictObject({manifest:n,source:SiteSourceSchema,note:e.string().max(500).optional()}),DeploymentMadeSchema=e.object({site:SiteSchema,deployment:DeploymentSchema}),siteLivePath=t=>`${sitePath(t)}/live`,SiteLiveAnswerSchema=e.object({site:SiteSchema,live:e.boolean(),confirm:e.url().optional()}),SITE_PERSON_QUERY="person=1",siteSettingsPath=t=>`${sitePath(t)}/settings`,SiteSettingsSchema=e.strictObject({autoPublish:e.boolean().optional(),indexing:e.boolean().optional()});
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{STAGE_LOADS as S}from"@allyhub/formats";import{z as e}from"zod";import{BlobSchema as $,Sha256Schema as b,TreeFileSchema as g,TreePathSchema as m}from"./blobs.js";import{placeParams as P}from"./editor.js";import{known as A,openEnum as j,readable as h}from"./open.js";export const SNAPSHOT_FORMAT=1,ConversationEntrySchema=e.object({sessionId:e.string().min(1),agent:e.string().min(1),title:e.string().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),transcript:b}),TranscriptSchema=e.object({sessionId:e.string().min(1),messages:e.array(e.object({method:e.string().min(1),params:e.unknown()}))}),SNAPSHOT_KINDS=["project","home"],StageFolderSchema=e.string().regex(/^[a-z][a-z0-9-]*\/$/u,"one lower-case word and /").refine(t=>!Object.values(SNAPSHOT_TREE).includes(t)&&!Object.values(SNAPSHOT_VIEW).includes(t),"a folder of the core's"),StageLoadSchema=j(S),StageRoutesSchema=e.record(e.string(),e.array(e.string()));const O=e.string().refine(t=>t.endsWith("/")&&m.safeParse(t.slice(0,-1)).success,"a folder of the tree, ending in /");export const ItemReachSchema=e.object({tree:e.array(m),files:e.array(m),own:e.record(m,g)}),SnapshotReachSchema=e.object({shared:e.array(O),items:e.record(e.string(),ItemReachSchema)}),SnapshotManifestSchema=e.object({format:e.literal(SNAPSHOT_FORMAT),kind:e.enum(SNAPSHOT_KINDS),project:e.object({name:e.string().min(1).max(255)}),host:e.object({version:e.string().min(1)}),madeAt:e.iso.datetime(),files:e.record(m,$),tree:e.record(m,g),conversations:e.array(ConversationEntrySchema),reach:SnapshotReachSchema.optional(),routes:StageRoutesSchema.optional()});export function scopedManifest(t,o){const s=t.reach,r=s!==void 0&&Object.hasOwn(s.items,o)?s.items[o]:void 0;if(s===void 0||r===void 0)return;const i={};for(const[n,c]of Object.entries(t.tree))s.shared.some(p=>n.startsWith(p))&&(i[n]=c);for(const n of r.tree){const c=Object.hasOwn(t.tree,n)?t.tree[n]:void 0;c!==void 0&&(i[n]=c)}Object.assign(i,r.own);const a={};for(const n of r.files){const c=Object.hasOwn(t.files,n)?t.files[n]:void 0;c!==void 0&&(a[n]=c)}return{format:t.format,kind:t.kind,project:t.project,host:t.host,madeAt:t.madeAt,files:a,tree:i,conversations:[],...t.routes===void 0?{}:{routes:t.routes}}}export const SNAPSHOT_SKIPPED=["node_modules",".allyhub",".playwright-cli"],SNAPSHOT_TREE={editor:"editor/",runtime:"runtime/",build:"build/",media:"media/",matte:"matte/",stills:"stills/",answers:"answers/",previews:"previews/",pages:"pages/"};function l(t){return Array.isArray(t)?t.map(l):t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(o=>[o,l(t[o])])):t}export const snapshotAnswerPath=(t,o)=>`${SNAPSHOT_TREE.answers}${t}/${encodeURIComponent(JSON.stringify(l(o??{})))}.json`,RecordedAnswerSchema=e.object({result:e.unknown().optional(),error:e.object({code:e.number(),message:e.string(),data:e.unknown().optional()}).optional()}),recordedReadPath=(t,o)=>snapshotAnswerPath(t,Object.fromEntries(Object.entries(o??{}).filter(([s,r])=>s!=="folder"&&r!==void 0))),stillPath=t=>`${SNAPSHOT_TREE.stills}${t}.webp`,stillsIndexPath=(t,o)=>`${SNAPSHOT_TREE.stills}index/${encodeURIComponent(t)}/${encodeURIComponent(o)}.json`,StillsIndexSchema=e.object({stills:e.record(e.string(),e.string().regex(/^[0-9a-f]{64}$/u))}),stillsIndexKey=t=>JSON.stringify(l(t));const w=e.object({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()});export const KindSnapshotSchema=e.object({stills:e.array(e.object({version:e.string(),components:e.array(w)})).optional(),shows:e.object({media:e.array(e.string()),data:e.array(e.string())}).optional(),routes:e.record(e.string(),e.array(e.string().min(1))).optional(),page:e.object({folder:e.string().optional(),file:e.string().optional()}).optional()}),snapshotPreviewPath=t=>`${SNAPSHOT_TREE.previews}${encodeURIComponent(t)}.json`,TREE_PAGES={stage:`${SNAPSHOT_TREE.runtime}stage.html`,viewer:`${SNAPSHOT_TREE.runtime}viewer.html`,probe:`${SNAPSHOT_TREE.runtime}probe.html`},pieceSourcePath=t=>`${SNAPSHOT_TREE.build}sources/${encodeURIComponent(t)}.json`,treeHref=t=>t.split("/").map(encodeURIComponent).join("/");export function stageCsp(t,o,s={}){const r=d=>`${t}${d}`,i=r(SNAPSHOT_TREE.runtime),a=r(SNAPSHOT_TREE.build),n=r(SNAPSHOT_TREE.media),c=r(SNAPSHOT_TREE.matte),p=d=>Object.entries(s).filter(([u,x])=>StageFolderSchema.safeParse(u).success&&x.some(f=>A(S,f)&&f===d)).map(([u])=>` ${r(u)}`).join("");return["default-src 'none'",`script-src 'unsafe-eval' 'wasm-unsafe-eval' ${i} ${a}${p("script")}`,"worker-src blob:",`style-src 'unsafe-inline' ${i} ${a}${p("style")}`,`font-src ${i} ${a} ${n}${p("font")} data:`,`img-src ${n} ${a}${p("img")} data: blob:`,`media-src ${n} ${c}${p("media")} blob:`,`connect-src ${n} ${c} ${a} ${i}${p("connect")} blob: data:`,`frame-ancestors ${o.length>0?o.join(" "):"'none'"}`].join("; ")}export function snapshotEditorUrl(t,o,s={}){const r=Object.entries({item:o,embed:s.share===!0?"share":"studio",snapshot:"1",...s.theme===void 0?{}:{theme:s.theme},...P(s.place)}).map(([i,a])=>`${i}=${encodeURIComponent(a)}`);return`${t.replace(/\/$/u,"")}/${SNAPSHOT_TREE.editor}?${r.join("&")}`}export const EXECUTOR_KINDS=["cloud","computer"],ExecutorSchema=e.object({kind:j(EXECUTOR_KINDS),here:e.boolean()}),SNAPSHOT_BLOBS_PATH="/api/snapshots/blobs",SNAPSHOTS_PATH="/api/snapshots",SnapshotCreateSchema=e.strictObject({project:e.strictObject({id:e.string().min(1).optional(),idMadeByMachine:e.boolean().optional(),kind:e.enum(SNAPSHOT_KINDS),name:e.string().min(1).max(255)}),manifest:b}),SnapshotCreatedSchema=e.object({id:e.string().min(1),projectId:e.string().min(1)}),SnapshotMissingSchema=e.object({missing:e.array(b)}),PROJECTS_PATH="/api/projects",SnapshotInfoSchema=e.object({id:e.string().min(1),madeAt:e.iso.datetime(),hostVersion:e.string()}),ProjectInfoSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),latest:SnapshotInfoSchema.nullable(),executor:ExecutorSchema.optional()}),ProjectsResponseSchema=e.object({projects:h(ProjectInfoSchema)}),projectPath=t=>`${PROJECTS_PATH}/${encodeURIComponent(t)}`,STORAGE_PATH="/api/storage",StorageSchema=e.object({keptBytes:e.number(),capBytes:e.number().nullable(),clearingBytes:e.number().optional()}),STORAGE_CLEARING_PATH=`${STORAGE_PATH}/clearing`,STORAGE_PAGE_SIZE=10,StoragePageSchema=e.strictObject({page:e.int().min(1)}),STORAGE_PROJECTS_PATH=`${STORAGE_PATH}/projects`,StoredProjectSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),bytes:e.number(),versions:e.number(),madeAt:e.iso.datetime().nullable()}),StoredProjectsSchema=e.object({items:h(StoredProjectSchema),total:e.number()}),STORAGE_FILES_PATH=`${STORAGE_PATH}/files`,StoredFileSchema=e.object({id:e.string().min(1),name:e.string(),contentType:e.string(),size:e.number(),keptUntil:e.iso.datetime()}),StoredFilesSchema=e.object({items:h(StoredFileSchema),total:e.number()}),snapshotViewPath=t=>`${SNAPSHOTS_PATH}/${encodeURIComponent(t)}/view`,SnapshotViewSchema=e.object({origin:e.url(),expiresAt:e.iso.datetime()}),SNAPSHOT_VIEW={manifest:"manifest.json",files:"files/",pages:"pages/",conversations:"conversations/"},PAGE_CSP=["sandbox allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox","default-src 'self' data: blob:","script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:","style-src 'self' 'unsafe-inline'","img-src 'self' data: blob:","font-src 'self' data:","connect-src 'self' data: blob:","media-src 'self' data: blob:"].join("; "),NEEDS_MACHINE=-32010,isNeedsMachine=t=>typeof t=="object"&&t!==null&&t.code===NEEDS_MACHINE;
2
+ import{z as e}from"zod";import{STAGE_LOADS as h}from"@allyhub/formats/contributed";import{BlobSchema as S,Sha256Schema as f,TreeFileSchema as g,TreePathSchema as r}from"./blobs.js";import{known as j,openEnum as x}from"./open.js";export const SNAPSHOT_FORMAT=1,ConversationEntrySchema=e.object({sessionId:e.string().min(1),agent:e.string().min(1),title:e.string().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),transcript:f}),SNAPSHOT_KINDS=["project","home"],StageFolderSchema=e.string().regex(/^[a-z][a-z0-9-]*\/$/u,"one lower-case word and /").refine(t=>!Object.values(SNAPSHOT_TREE).includes(t)&&!Object.values(SNAPSHOT_VIEW).includes(t),"a folder of the core's"),StageLoadSchema=x(h),StageRoutesSchema=e.record(e.string(),e.array(e.string()));const w=e.string().refine(t=>t.endsWith("/")&&r.safeParse(t.slice(0,-1)).success,"a folder of the tree, ending in /");export const ItemReachSchema=e.object({tree:e.array(r),files:e.array(r),own:e.record(r,g)}),SnapshotReachSchema=e.object({shared:e.array(w),items:e.record(e.string(),ItemReachSchema)}),SnapshotManifestSchema=e.object({format:e.literal(SNAPSHOT_FORMAT),kind:e.enum(SNAPSHOT_KINDS),project:e.object({name:e.string().min(1).max(255)}),host:e.object({version:e.string().min(1)}),madeAt:e.iso.datetime(),files:e.record(r,S),tree:e.record(r,g),conversations:e.array(ConversationEntrySchema),reach:SnapshotReachSchema.optional(),routes:StageRoutesSchema.optional()}),SNAPSHOT_TREE={editor:"editor/",runtime:"runtime/",build:"build/",media:"media/",matte:"matte/",stills:"stills/",answers:"answers/",previews:"previews/",pages:"pages/"};function m(t){return Array.isArray(t)?t.map(m):t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(o=>[o,m(t[o])])):t}export const snapshotAnswerPath=(t,o)=>`${SNAPSHOT_TREE.answers}${t}/${encodeURIComponent(JSON.stringify(m(o??{})))}.json`,RecordedAnswerSchema=e.object({result:e.unknown().optional(),error:e.object({code:e.number(),message:e.string(),data:e.unknown().optional()}).optional()}),stillPath=t=>`${SNAPSHOT_TREE.stills}${t}.webp`,stillsIndexPath=(t,o)=>`${SNAPSHOT_TREE.stills}index/${encodeURIComponent(t)}/${encodeURIComponent(o)}.json`,StillsIndexSchema=e.object({stills:e.record(e.string(),e.string().regex(/^[0-9a-f]{64}$/u))}),stillsIndexKey=t=>JSON.stringify(m(t));const y=e.object({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()});export const KindSnapshotSchema=e.object({stills:e.array(e.object({version:e.string(),components:e.array(y)})).optional(),shows:e.object({media:e.array(e.string()),data:e.array(e.string())}).optional(),routes:e.record(e.string(),e.array(e.string().min(1))).optional(),page:e.object({folder:e.string().optional(),file:e.string().optional()}).optional()}),snapshotPreviewPath=t=>`${SNAPSHOT_TREE.previews}${encodeURIComponent(t)}.json`,TREE_PAGES={stage:`${SNAPSHOT_TREE.runtime}stage.html`,viewer:`${SNAPSHOT_TREE.runtime}viewer.html`,probe:`${SNAPSHOT_TREE.runtime}probe.html`},pieceSourcePath=t=>`${SNAPSHOT_TREE.build}sources/${encodeURIComponent(t)}.json`,treeHref=t=>t.split("/").map(encodeURIComponent).join("/");export function stageCsp(t,o,b={}){const s=p=>`${t}${p}`,i=s(SNAPSHOT_TREE.runtime),a=s(SNAPSHOT_TREE.build),c=s(SNAPSHOT_TREE.media),d=s(SNAPSHOT_TREE.matte),n=p=>Object.entries(b).filter(([l,$])=>StageFolderSchema.safeParse(l).success&&$.some(u=>j(h,u)&&u===p)).map(([l])=>` ${s(l)}`).join("");return["default-src 'none'",`script-src 'unsafe-eval' 'wasm-unsafe-eval' ${i} ${a}${n("script")}`,"worker-src blob:",`style-src 'unsafe-inline' ${i} ${a}${n("style")}`,`font-src ${i} ${a} ${c}${n("font")} data:`,`img-src ${c} ${a}${n("img")} data: blob:`,`media-src ${c} ${d}${n("media")} blob:`,`connect-src ${c} ${d} ${a} ${i}${n("connect")} blob: data:`,`frame-ancestors ${o.length>0?o.join(" "):"'none'"}`].join("; ")}export const SNAPSHOT_VIEW={manifest:"manifest.json",files:"files/",pages:"pages/",conversations:"conversations/"},NEEDS_MACHINE=-32010,isNeedsMachine=t=>typeof t=="object"&&t!==null&&t.code===NEEDS_MACHINE;
@@ -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 t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number(),spent:t.number().optional()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string().optional()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],StudioOpenLineSchema=t.union([t.object({step:t.enum(STUDIO_OPEN_STEPS),first:t.boolean().optional()}),t.object({status:t.number(),error:t.object({code:t.string(),message:t.string(),data:t.record(t.string(),t.unknown()).optional()})}),StudioOpenedSchema]),STUDIO_TICKET_PATH="/api/studio/ticket",StudioTicketSchema=t.object({ticket:t.string().min(1)}),STUDIO_PREPARE_PATH="/api/studio/prepare",StudioPreparedSchema=t.object({prepared:t.boolean()}),STUDIO_PAUSE_PATH="/api/studio/pause",StudioPausedSchema=t.object({paused:t.boolean()}),STUDIO_WAKES_PATH="/api/studio/wakes",STUDIO_WAKE_OUTCOMES=["live","failed"],StudioWakeReportSchema=t.strictObject({outcome:t.enum(STUDIO_WAKE_OUTCOMES),error:t.string().max(500).optional(),server:StudioOpenStagesSchema.optional(),window:t.strictObject({open:t.number().optional(),connect:t.number().optional(),enter:t.number().optional(),total:t.number()}),first:t.boolean().optional()}),STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
2
+ import{z as t}from"zod";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))});
@@ -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{FolderSchema as n,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as c,ProjectKindSchema as g}from"./kinds.js";import{RPC_ERROR as f,RpcError as b,method as s,notification as o}from"./jsonrpc.js";export const VersionRef={item:t,version:e.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:t,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(t),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:t,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()}),FramedPageSchema=e.strictObject({url:e.string(),probe:e.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":s(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:n,entry:t,title:e.string().optional(),groups:e.array(e.string()),files:e.array(e.object({path:e.string().min(1),role:e.string().min(1).optional()})).optional(),kindInfo:c.optional()})),kinds:e.array(g).optional(),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"project/file":s(e.strictObject({path:t}),e.strictObject({item:e.strictObject({id:t,kind:e.string().min(1).optional(),dir:n,entry:t,title:e.string().optional(),groups:e.array(e.string()),kindInfo:c.optional()})}),"A file of the project as it opens in an editor, whether the list names it or not: the item it is, else the file in the editor that opens it by its name (an `editors` contribution's `files`); not found for a file that is not there or that no editor opens."),"items/preview":s(e.strictObject({item:t}),e.strictObject({preview:h.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"items/page":s(e.strictObject({item:t,folder:n.optional(),file:t.optional()}),e.strictObject({url:e.string()}),"The address of an item's page, for a frame (an HTML file's page, a website built as files): `item` an item of a kind or a file of the project an editor opens by its name (its path), `folder` served as the root of an origin of its own, the project's files alone (a file's page also what it names on https; its own requests the project's files alone), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":s(e.strictObject({kind:e.string().min(1),file:t,title:e.string().min(1).optional()}),e.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":s(e.strictObject({item:t}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":s(e.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":s(e.strictObject({...VersionRef,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":s(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":s(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":s(e.strictObject({item:t,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":s(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":s(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":s(e.strictObject({path:t}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","project/file":"asleep","items/preview":"asleep","items/page":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"},AGENT_DOES={"project/items":{files:"allyhub.yaml"},"project/file":{files:"the project's files"},"items/preview":{command:"frames"},"items/page":{command:"frames"},"work/add":{files:"allyhub.yaml"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"}};export function toolSpec(i){return Object.hasOwn(PROJECT_TOOLS,i)?PROJECT_TOOLS[i]:void 0}export function toolCaller(i){return async(p,r,l)=>{const{result:m}=await p["tools/call"]({name:r,arguments:l}),a=i[r]?.result.safeParse(m);if(!a?.success)throw new b(f.internal,`The answer to the tool ${r} is not what the protocol says.`);return a.data}}export const TOOL_NOTIFICATIONS={"project/changed":o(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"items/changed":o(e.strictObject({item:t,paths:e.array(e.string())}),`One of an item's inputs changed (docs/design/item-files.md, "An item's inputs"): a file its build lists, or one its pages loaded.`),"check/changed":o(CheckStateSchema,"The check started, ended or failed."),"export/changed":o(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":o(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":o(e.strictObject({job:d,item:t}),"A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
2
+ import{z as t}from"zod";import{FolderSchema as o,PathSchema as e}from"./files.js";import{JobSchema as m}from"./jobs.js";import{PreviewSchema as d}from"./app.js";import{ListedKindSchema as a,ProjectKindSchema as g}from"./kinds.js";import{RPC_ERROR as b,RpcError as f,method as i,notification as s}from"./jsonrpc.js";export const VersionRef={item:e,version:t.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=t.looseObject({code:t.string(),level:t.enum(["error","warn"]),message:t.string(),piece:t.string().optional(),part:t.string().optional(),t:t.number().optional()}),FactSchema=t.looseObject({kind:t.string(),data:t.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=t.strictObject({status:t.enum(CHECK_STATES),revision:t.int().nonnegative(),problems:t.array(ProblemSchema),facts:t.array(FactSchema),versions:t.strictObject({total:t.int(),loaded:t.int(),reused:t.int()}).optional(),error:t.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=t.record(t.string(),t.union([t.string(),t.boolean()])),ExportJobSchema=t.strictObject({id:t.string(),item:e,versions:t.array(t.string()),types:t.array(t.string()),options:ExportOptionsSchema.optional(),state:t.enum(EXPORT_STATES),progress:t.number().min(0).max(1),files:t.array(e),error:t.string().optional()}),IndexJobSchema=t.strictObject({file:e,status:t.enum(["running","done","failed"]),message:t.string(),share:t.number().min(0).max(1).optional()}),FramedPageSchema=t.strictObject({url:t.string(),probe:t.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":i(t.strictObject({}),t.strictObject({items:t.array(t.strictObject({id:e,kind:t.string().min(1).optional(),dir:o,entry:e,title:t.string().optional(),groups:t.array(t.string()),files:t.array(t.object({path:t.string().min(1),role:t.string().min(1).optional()})).optional(),kindInfo:a.optional()})),kinds:t.array(g).optional(),name:t.string(),scope:t.string(),revision:t.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"project/file":i(t.strictObject({path:e}),t.strictObject({item:t.strictObject({id:e,kind:t.string().min(1).optional(),dir:o,entry:e,title:t.string().optional(),groups:t.array(t.string()),kindInfo:a.optional()})}),"A file of the project as it opens in an editor, whether the list names it or not: the item it is, else the file in the editor that opens it by its name (an `editors` contribution's `files`); not found for a file that is not there or that no editor opens."),"items/preview":i(t.strictObject({item:e}),t.strictObject({preview:d.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"items/page":i(t.strictObject({item:e,folder:o.optional(),file:e.optional()}),t.strictObject({url:t.string()}),"The address of an item's page, for a frame (an HTML file's page, a website built as files): `item` an item of a kind or a file of the project an editor opens by its name (its path), `folder` served as the root of an origin of its own, the project's files alone (a file's page also what it names on https; its own requests the project's files alone), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":i(t.strictObject({kind:t.string().min(1),file:e,title:t.string().min(1).optional()}),t.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":i(t.strictObject({item:e}),t.strictObject({components:t.array(t.strictObject({of:t.string(),name:t.string(),label:t.union([t.string(),t.record(t.string(),t.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":i(t.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame: a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":i(t.strictObject({...VersionRef,components:t.array(t.strictObject({name:t.string(),props:t.record(t.string(),t.unknown()),width:t.number().positive(),height:t.number().positive(),t:t.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),t.strictObject({stills:t.array(t.strictObject({key:t.string(),url:t.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":i(t.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":i(t.strictObject({}),t.strictObject({}),"Runs the check again now."),"export/start":i(t.strictObject({item:e,versions:t.array(t.string()).optional(),types:t.array(t.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),t.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":i(t.strictObject({job:t.string()}),t.strictObject({}),"Stops an export."),"export/list":i(t.strictObject({}),t.strictObject({jobs:t.array(ExportJobSchema),reveal:t.boolean()}),"The exports asked for since the server started."),"export/reveal":i(t.strictObject({path:e}),t.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","project/file":"asleep","items/preview":"asleep","items/page":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"};export function toolCaller(c){return async(p,r,l)=>{const{result:h}=await p["tools/call"]({name:r,arguments:l}),n=c[r]?.result.safeParse(h);if(!n?.success)throw new f(b.internal,`The answer to the tool ${r} is not what the protocol says.`);return n.data}}export const TOOL_NOTIFICATIONS={"project/changed":s(t.strictObject({revision:t.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"items/changed":s(t.strictObject({item:e,paths:t.array(t.string())}),"One of an item's inputs changed: a file its build lists, or one its pages loaded."),"check/changed":s(CheckStateSchema,"The check started, ended or failed."),"export/changed":s(t.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":s(t.strictObject({jobs:t.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":s(t.strictObject({job:m,item:e}),"A job of the process the server runs in (a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
@@ -1,11 +1,51 @@
1
1
  {
2
2
  "name": "@allyhub/protocol",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
8
8
  "default": "./dist/index.js"
9
+ },
10
+ "./cli": {
11
+ "types": "./dist/cli.d.ts",
12
+ "default": "./dist/cli.js"
13
+ },
14
+ "./cloud": {
15
+ "types": "./dist/cloud.d.ts",
16
+ "default": "./dist/cloud.js"
17
+ },
18
+ "./auth": {
19
+ "types": "./dist/auth.d.ts",
20
+ "default": "./dist/auth.js"
21
+ },
22
+ "./events": {
23
+ "types": "./dist/events.d.ts",
24
+ "default": "./dist/events.js"
25
+ },
26
+ "./errors": {
27
+ "types": "./dist/errors.d.ts",
28
+ "default": "./dist/errors.js"
29
+ },
30
+ "./paywall": {
31
+ "types": "./dist/paywall.d.ts",
32
+ "default": "./dist/paywall.js"
33
+ },
34
+ "./teams": {
35
+ "types": "./dist/teams.d.ts",
36
+ "default": "./dist/teams.js"
37
+ },
38
+ "./blobs": {
39
+ "types": "./dist/blobs.d.ts",
40
+ "default": "./dist/blobs.js"
41
+ },
42
+ "./mail": {
43
+ "types": "./dist/mail.d.ts",
44
+ "default": "./dist/mail.js"
45
+ },
46
+ "./sites": {
47
+ "types": "./dist/sites.d.ts",
48
+ "default": "./dist/sites.js"
9
49
  }
10
50
  },
11
51
  "sideEffects": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/registry",
3
- "version": "0.18.0",
3
+ "version": "0.19.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{EXIT as s}from"@allyhub/protocol";export class RenderError extends Error{code;hint;exit;constructor(r,e,{hint:t,exit:o=s.usage}={}){super(e),this.name="RenderError",this.code=r,this.hint=t,this.exit=o}}
2
+ import{EXIT as s}from"@allyhub/protocol/cli";export class RenderError extends Error{code;hint;exit;constructor(r,e,{hint:t,exit:o=s.usage}={}){super(e),this.name="RenderError",this.code=r,this.hint=t,this.exit=o}}
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{spawn as g}from"node:child_process";import{problem as $}from"@allyhub/diagnostics";import"@allyhub/video-core";import{postGraph as P}from"./post.js";const d=64,m=36,l=30,w=30,u=3,S=new Map;function y(s,e,t,o){const n=[],r=`${String(t)}/(${String(l)}*TB)`;n.push(`color=c=gray:s=${String(d)}x${String(m)}:r=${String(l)}:d=${String((o+1)/l)},format=gbrp,setpts=PTS+${r},geq=r='mod(X*5+Y*3+T*900,256)':g='mod(X*2+T*600,256)':b='mod(Y*7+T*300,256)',setpts=PTS-${r}[src]`);const a=P(n,"src",e,{first:t,fps:l,alpha:!1,prefix:"post"});return n.push(`[${a}]format=rgb24[v]`),new Promise(p=>{const i=g(s,["-v","error","-filter_complex",n.join(";"),"-map","[v]","-frames:v",String(o),"-f","rawvideo","-"],{stdio:["ignore","pipe","pipe"]}),f=[];let h="";i.stdout.on("data",c=>f.push(c)),i.stderr.on("data",c=>{h+=c.toString()}),i.on("error",c=>{p({out:Buffer.alloc(0),err:c.message,code:-1})}),i.on("close",c=>{p({out:Buffer.concat(f),err:h,code:c})})})}function v(s){const e=s.split(`
2
+ import{spawn as g}from"node:child_process";import{problem as $}from"@allyhub/diagnostics";import{postGraph as P}from"./post.js";const d=64,m=36,l=30,w=30,u=3,S=new Map;function y(s,e,t,o){const n=[],r=`${String(t)}/(${String(l)}*TB)`;n.push(`color=c=gray:s=${String(d)}x${String(m)}:r=${String(l)}:d=${String((o+1)/l)},format=gbrp,setpts=PTS+${r},geq=r='mod(X*5+Y*3+T*900,256)':g='mod(X*2+T*600,256)':b='mod(Y*7+T*300,256)',setpts=PTS-${r}[src]`);const a=P(n,"src",e,{first:t,fps:l,alpha:!1,prefix:"post"});return n.push(`[${a}]format=rgb24[v]`),new Promise(p=>{const i=g(s,["-v","error","-filter_complex",n.join(";"),"-map","[v]","-frames:v",String(o),"-f","rawvideo","-"],{stdio:["ignore","pipe","pipe"]}),f=[];let h="";i.stdout.on("data",c=>f.push(c)),i.stderr.on("data",c=>{h+=c.toString()}),i.on("error",c=>{p({out:Buffer.alloc(0),err:c.message,code:-1})}),i.on("close",c=>{p({out:Buffer.concat(f),err:h,code:c})})})}function v(s){const e=s.split(`
3
3
  `).map(t=>t.replace(/^\[[^\]]*\]\s*/,"").trim()).filter(t=>t!==""&&!/^Error (?:initializing|while)/i.test(t));return[...new Set(e)].slice(-3).join("; ")||"it failed"}export function tryPost(s,e){const t=`${e}
4
4
  ${s}`;let o=S.get(t);return o||(o=(async()=>{const n=d*m*3,r=await y(e,s,w,u);if(r.code!==0)return{runs:!1,why:v(r.err)};if(r.out.length!==n*u)return{runs:!1,why:`it gave ${String(r.out.length/n)} frames of ${String(d)}×${String(m)} for ${String(u)}: a post chain keeps the frames' size and count`};const a=await y(e,s,w+u-1,1);return a.code!==0?{runs:!1,why:v(a.err)}:{runs:!0,depends:!r.out.subarray(n*(u-1)).equals(a.out)}})(),S.set(t,o)),o}export function postPlaces(s,e){const t=[];for(const o of e)for(const n of o.parts)n.post&&t.push({chain:n.post.filter,part:n.key});return[...s?[{chain:s}]:[],...t]}const x=new Map;export function ffmpegRuns(s){let e=x.get(s);return e||(e=new Promise(t=>{const o=g(s,["-version"],{stdio:"ignore"});o.on("error",()=>{t(!1)}),o.on("close",n=>{t(n===0)})}),x.set(s,e)),e}export async function postProblems(s,e,t){const o=[],n=new Set;for(const r of s){const a=`${r.part??""}
5
5
  ${r.chain}`;if(n.has(a))continue;n.add(a);const p=r.part===void 0?"video({ post })'s filter":`part ${r.part}'s post filter`,i={piece:e.piece,output:e.output,...r.part===void 0?{}:{part:r.part}},f=await tryPost(r.chain,t);f.runs?f.depends&&o.push($("AK-D002",`${p} "${r.chain}" draws a moment differently by where a segment starts (its n, a seed drawn anew each frame such as noise's allf=t, or a filter that reads the frames round it): a still is not the render's frame, and it starts over at every part. Use t, the film's time, and capture.grain for grain.`,i)):o.push($("AK-M001",`${p} "${r.chain}" does not run in ffmpeg: ${f.why}.`,i))}return o}
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "name": "@allyhub/render",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
8
8
  "default": "./dist/index.js"
9
+ },
10
+ "./errors": {
11
+ "types": "./dist/errors.d.ts",
12
+ "default": "./dist/errors.js"
13
+ },
14
+ "./encode": {
15
+ "types": "./dist/encode.d.ts",
16
+ "default": "./dist/encode.js"
9
17
  }
10
18
  },
11
19
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/runtime",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {