allyhub 0.21.0 → 0.23.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 (253) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/dev.js +5 -5
  3. package/dist/commands/export.js +1 -1
  4. package/dist/commands/index.js +1 -1
  5. package/dist/commands/list.js +1 -1
  6. package/dist/commands/run.js +2 -0
  7. package/dist/commands/schedule.js +4 -0
  8. package/dist/commands.json +1 -1
  9. package/dist/main.js +8 -8
  10. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  11. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  12. package/dist/node_modules/@allyhub/blocks/package.json +1 -1
  13. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  14. package/dist/node_modules/@allyhub/build/dist/migrate.js +1 -1
  15. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  16. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  17. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  18. package/dist/node_modules/@allyhub/build/package.json +1 -1
  19. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  20. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/check/package.json +1 -1
  23. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  24. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  25. package/dist/node_modules/@allyhub/cloud/dist/scheduled-tasks.js +2 -0
  26. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  27. package/dist/node_modules/@allyhub/components/package.json +1 -1
  28. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  29. package/dist/node_modules/@allyhub/dev-server/dist/record.js +2 -1
  30. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  31. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  32. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  33. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  34. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  35. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  36. package/dist/node_modules/@allyhub/export/package.json +1 -1
  37. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  38. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +3 -3
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +151 -151
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +173 -173
  42. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +1 -2
  43. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  46. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  48. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +106 -101
  49. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  50. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +26 -1
  51. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +1 -1
  52. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  53. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  54. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  55. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  56. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  57. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  58. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  61. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  62. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  63. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  64. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  65. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  66. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  67. package/dist/node_modules/@allyhub/media/package.json +1 -1
  68. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  69. package/dist/node_modules/@allyhub/model/package.json +1 -1
  70. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  71. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  72. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  73. package/dist/node_modules/@allyhub/project/package.json +1 -1
  74. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  75. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  76. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  77. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  78. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  79. package/dist/node_modules/@allyhub/protocol/dist/scheduled-tasks.js +2 -0
  80. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  81. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  82. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  83. package/dist/node_modules/@allyhub/render/package.json +1 -1
  84. package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
  85. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  86. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  87. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -6
  88. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  89. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  90. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  91. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  92. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  93. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  94. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  95. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  96. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  97. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -2
  98. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  99. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  100. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  101. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  102. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  103. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  104. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  105. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  106. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  107. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  108. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  109. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  110. package/dist/node_modules/@allyhub/website/package.json +1 -1
  111. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  112. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  113. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  114. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  115. package/dist/package.json +15 -15
  116. package/dist/run-register.js +2 -0
  117. package/dist/works.js +1 -1
  118. package/editor-web/assets/{abnfDiagram-WEYOIA3C-B4tvwU6C.js → abnfDiagram-WEYOIA3C-OIbGwO0P.js} +1 -1
  119. package/editor-web/assets/{architecture-WOLXFQ4H-V2fA0vY2.js → architecture-WOLXFQ4H-i87EDk8h.js} +1 -1
  120. package/editor-web/assets/{architectureDiagram-ZHVYKT53-B6B7XN0M.js → architectureDiagram-ZHVYKT53-DRsgKDbu.js} +1 -1
  121. package/editor-web/assets/article-BVbLqhwK.js +3 -0
  122. package/editor-web/assets/article-BxkgemqI.js +7 -0
  123. package/editor-web/assets/bar-button-BJ-_6g-F.js +1 -0
  124. package/editor-web/assets/{blockDiagram-RJAE7QA3-BizcUGOM.js → blockDiagram-RJAE7QA3-k_lanKyI.js} +1 -1
  125. package/editor-web/assets/{c4Diagram-XDPPPE54-CBHS0dQ0.js → c4Diagram-XDPPPE54-BFJTpM5w.js} +1 -1
  126. package/editor-web/assets/{calc-worker-Cr4a0xmt.js → calc-worker-BpAgQE9E.js} +3 -3
  127. package/editor-web/assets/channel-CDJSUIp1.js +1 -0
  128. package/editor-web/assets/chevron-right-7tjLd0X4.js +1 -0
  129. package/editor-web/assets/chip-lvclIKGj.js +1 -0
  130. package/editor-web/assets/{chunk-2E7WHVMD-CMPBck_Q.js → chunk-2E7WHVMD-Bbfj2q42.js} +1 -1
  131. package/editor-web/assets/{chunk-4EMNKR2T-Df22Adpt.js → chunk-4EMNKR2T-iKWsgYqL.js} +1 -1
  132. package/editor-web/assets/{chunk-55XCU76K-CYrZ6_Q7.js → chunk-55XCU76K-WwcsywWu.js} +1 -1
  133. package/editor-web/assets/{chunk-7S6XSTFO-BfdG9NNW.js → chunk-7S6XSTFO-BEEtZTsQ.js} +1 -1
  134. package/editor-web/assets/{chunk-AQDTSKZB-BCzZMoTJ.js → chunk-AQDTSKZB-ZT2PBdLK.js} +1 -1
  135. package/editor-web/assets/{chunk-DSNLSHJZ-DT0xT8Wf.js → chunk-DSNLSHJZ-BDlY4xos.js} +1 -1
  136. package/editor-web/assets/{chunk-HAGFOTED-Bg3-EotU.js → chunk-HAGFOTED-Yp6V4sx6.js} +1 -1
  137. package/editor-web/assets/{chunk-HNE4Q36P-BrSym24V.js → chunk-HNE4Q36P-C6IdGLw2.js} +1 -1
  138. package/editor-web/assets/{chunk-NQOKRVIF-CMxgkJWF.js → chunk-NQOKRVIF-D3gs_SMr.js} +1 -1
  139. package/editor-web/assets/{chunk-UHW7PFBP-DWEwoyPy.js → chunk-UHW7PFBP-Byf0dX4X.js} +1 -1
  140. package/editor-web/assets/{chunk-VQ5W62QI-eTFh5_T9.js → chunk-VQ5W62QI-n9lsvBOX.js} +1 -1
  141. package/editor-web/assets/{chunk-WQQL4CDK-4PTupr9T.js → chunk-WQQL4CDK-BW540sO1.js} +1 -1
  142. package/editor-web/assets/{chunk-YZO67HFG-D5XAAFWm.js → chunk-YZO67HFG-CWL9cioT.js} +1 -1
  143. package/editor-web/assets/{chunk-ZAUX2LTX-CPsdaisO.js → chunk-ZAUX2LTX-D9zlkFeQ.js} +1 -1
  144. package/editor-web/assets/{chunk-ZCHMQSOR-ClnuUyfy.js → chunk-ZCHMQSOR-nieSgKB5.js} +1 -1
  145. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CM21waNF.js → classDiagram-v2-4MYWR3UA-BXamBIDc.js} +1 -1
  146. package/editor-web/assets/{color-picker-BmKFn2ww.js → color-picker-XpkmmKxv.js} +1 -1
  147. package/editor-web/assets/context-menu-pSruvRyd.js +1 -0
  148. package/editor-web/assets/{cynefin-EF2NZ3EQ-CJUHTgee.js → cynefin-EF2NZ3EQ-CVKVgqFb.js} +1 -1
  149. package/editor-web/assets/{cynefinDiagram-WF24UDRP-C9RIfuIV.js → cynefinDiagram-WF24UDRP-r0bqUe5X.js} +1 -1
  150. package/editor-web/assets/{dagre-NK4GIZVX-g-01KdpO.js → dagre-NK4GIZVX-4q_IUjiM.js} +1 -1
  151. package/editor-web/assets/deck-cyd6f3QU.js +1 -0
  152. package/editor-web/assets/{diagram-CBK3MWTC-CbOjWUu-.js → diagram-CBK3MWTC-CDh12DaH.js} +1 -1
  153. package/editor-web/assets/{diagram-I5XIIV2D-C6psNS8J.js → diagram-I5XIIV2D-C_sqASp8.js} +1 -1
  154. package/editor-web/assets/{diagram-ODIL2UCW-C9PUE46P.js → diagram-ODIL2UCW-QgoMb-iS.js} +1 -1
  155. package/editor-web/assets/{diagram-PFBEJUXE-vJ_pnB33.js → diagram-PFBEJUXE-Djhv4RT6.js} +1 -1
  156. package/editor-web/assets/{diagram-RJA3I4VV-FwYlEfJ-.js → diagram-RJA3I4VV-CvVswF4l.js} +1 -1
  157. package/editor-web/assets/{diagram-TYUNFSNR-FKpIxeUc.js → diagram-TYUNFSNR-DLnbV741.js} +1 -1
  158. package/editor-web/assets/dist-BK-WZ2ce.js +3 -0
  159. package/editor-web/assets/dist-CQ8-PJqF.js +16 -0
  160. package/editor-web/assets/dist-CQElMvxC.js +4 -0
  161. package/editor-web/assets/{dist-Cg0Z26Kv.js → dist-D49XAtID.js} +4 -4
  162. package/editor-web/assets/{dist-DH8oJJw9.js → dist-DDQLLUz5.js} +3 -3
  163. package/editor-web/assets/{dist-BI_BaYhO.js → dist-DO2VygfS.js} +4 -4
  164. package/editor-web/assets/dist-DOoUVqs_.js +24 -0
  165. package/editor-web/assets/{dist-D2rGVz9C.js → dist-DUyJ8AI0.js} +1 -1
  166. package/editor-web/assets/dist-DlDgR_Er.js +1 -0
  167. package/editor-web/assets/dist-Dw7AH_ip.js +6 -0
  168. package/editor-web/assets/{dist-H0z_DXDz.js → dist-Dx3tLwZ1.js} +17 -17
  169. package/editor-web/assets/{dist-CtYjYJdv.js → dist-F7lLi27Y.js} +1 -1
  170. package/editor-web/assets/dist-OfUZ68xY.js +547 -0
  171. package/editor-web/assets/{dist-CB-_0-X4.js → dist-OyPpS4AG.js} +28 -28
  172. package/editor-web/assets/dist-QCvBWMrp.js +5 -0
  173. package/editor-web/assets/{dist-D07Kj8GR.js → dist-RppJbSHJ.js} +1 -1
  174. package/editor-web/assets/dist-ZFgjTFWK.js +19 -0
  175. package/editor-web/assets/{dist-BqijryYd.js → dist-onYtssQw.js} +1 -1
  176. package/editor-web/assets/{docx-draw-Dxb67W2d.js → docx-draw-BBI4k72R.js} +1 -1
  177. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DBymUM-F.js → ebnfDiagram-V4P3TTPT-BoiJRPsL.js} +1 -1
  178. package/editor-web/assets/{elk-QONTBCTQ-BNYR3OlS.js → elk-QONTBCTQ-BDiBwn0f.js} +1 -1
  179. package/editor-web/assets/{erDiagram-KYQIGQAA-cTNyOqW6.js → erDiagram-KYQIGQAA-DaA3jdNm.js} +1 -1
  180. package/editor-web/assets/esm-BWIRT8Yl.js +21 -0
  181. package/editor-web/assets/{eventmodeling-K75KTNOO-C6FUZeXP.js → eventmodeling-K75KTNOO-j7ZSOAed.js} +1 -1
  182. package/editor-web/assets/flowDiagram-IUGLLWBU-Cb-xQSAJ.js +1 -0
  183. package/editor-web/assets/{ganttDiagram-R7GPNTJY-LD9mqQ1x.js → ganttDiagram-R7GPNTJY-CyNcjwUZ.js} +1 -1
  184. package/editor-web/assets/{gitGraph-VSP46ZUC-CtCBcQFl.js → gitGraph-VSP46ZUC-BuzoK22Z.js} +1 -1
  185. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DYQpOozz.js → gitGraphDiagram-PDYL7XHY--lzum_QP.js} +1 -1
  186. package/editor-web/assets/index-BSd85XUU.js +28 -0
  187. package/editor-web/assets/{info-OHQRW6UA-IXInKPRO.js → info-OHQRW6UA-rs42SY_Y.js} +1 -1
  188. package/editor-web/assets/{infoDiagram-MVDRKAX5-Ds7Cei7T.js → infoDiagram-MVDRKAX5-BjedWKrM.js} +1 -1
  189. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-DWs3qtAX.js → ishikawaDiagram-HPEHV2GE-Dtqm_gq7.js} +1 -1
  190. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BkNKVYBA.js → journeyDiagram-BOSHW7O7-J0dA2yU0.js} +1 -1
  191. package/editor-web/assets/{kanban-definition-FNSA4HC5-D3dMswnI.js → kanban-definition-FNSA4HC5-DV13v0Uf.js} +1 -1
  192. package/editor-web/assets/layout-CuWN7_3k.js +1 -0
  193. package/editor-web/assets/{mermaid-parser.core-D_W_0X0N.js → mermaid-parser.core-B7bZFHzS.js} +3 -3
  194. package/editor-web/assets/{mermaid.core-Bkirj-s5.js → mermaid.core-DQ10-Otk.js} +4 -4
  195. package/editor-web/assets/{mindmap-definition-6OY57UG3-CMKkAAvI.js → mindmap-definition-6OY57UG3-DgdXGBCF.js} +1 -1
  196. package/editor-web/assets/{packet-JDAUHWVQ-CzCkgCfg.js → packet-JDAUHWVQ-ZNSLC_YL.js} +1 -1
  197. package/editor-web/assets/{panes-BexRuZd2.js → panes-1hRg6CCN.js} +2 -2
  198. package/editor-web/assets/{pegDiagram-ECIUJNBX-C8qHkx7M.js → pegDiagram-ECIUJNBX-nBIsHepE.js} +1 -1
  199. package/editor-web/assets/{pie-XZMESJXO-BJqgxMrD.js → pie-XZMESJXO-CXen6okO.js} +1 -1
  200. package/editor-web/assets/{pieDiagram-GNMPY74T-DyNntV5y.js → pieDiagram-GNMPY74T-BlimMsUq.js} +1 -1
  201. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BHa-69ir.js → quadrantDiagram-D57K4MC3-D_B7p8XB.js} +1 -1
  202. package/editor-web/assets/{radar-ABXABTNO-BeRPjBBR.js → radar-ABXABTNO-DFfRPPEM.js} +1 -1
  203. package/editor-web/assets/{railroad-I3PHUGI6-BaRQqRsK.js → railroad-I3PHUGI6-DS8ly7WZ.js} +1 -1
  204. package/editor-web/assets/{railroad-abnf-LNEFI6M7-BZfwomxZ.js → railroad-abnf-LNEFI6M7-Coohlgpw.js} +1 -1
  205. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DbgqpEF5.js → railroad-ebnf-DWYD2UWJ-CvcfKbZc.js} +1 -1
  206. package/editor-web/assets/{railroad-peg-JR7BVNR7-BYOf3PsQ.js → railroad-peg-JR7BVNR7-jRtVHKtg.js} +1 -1
  207. package/editor-web/assets/{railroadDiagram-Y72NRBL7-B5OAzOsD.js → railroadDiagram-Y72NRBL7-kWUIDPHg.js} +1 -1
  208. package/editor-web/assets/{requirementDiagram-EQYSW5RA-wqYNoqO0.js → requirementDiagram-EQYSW5RA-C39Gfdi-.js} +1 -1
  209. package/editor-web/assets/ribbon-tabs-5R-_EtHp.js +1 -0
  210. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Crf6GRsa.js → sankeyDiagram-SY24JHO5-DtSQ2N2q.js} +1 -1
  211. package/editor-web/assets/schemas-CnlOL0u4.js +1 -0
  212. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DUcHz4_d.js → sequenceDiagram-BLEHNHQU-BZx9gAR1.js} +1 -1
  213. package/editor-web/assets/{session--OJYv_B7.js → session-2pd0mFQm.js} +1 -1
  214. package/editor-web/assets/{snapshots-DYooVfOx.js → snapshots-8hCkRemI.js} +1 -1
  215. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DbeLdnpS.js → stateDiagram-v2-A6IESKWZ-E9qhWPa3.js} +1 -1
  216. package/editor-web/assets/{swimlanes-B3ENRKFQ-BDi6AeJI.js → swimlanes-B3ENRKFQ-C6vD9fmU.js} +1 -1
  217. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-D_DL_JP0.js +8 -0
  218. package/editor-web/assets/themes-D_ISkWVz.js +1 -0
  219. package/editor-web/assets/{timeline-definition-JXYKGLGB-B0awa2hh.js → timeline-definition-JXYKGLGB-CT8AKsKE.js} +1 -1
  220. package/editor-web/assets/{treeView-D4JQ5SDB-C91G0IGm.js → treeView-D4JQ5SDB-DA2iE5aC.js} +1 -1
  221. package/editor-web/assets/{treemap-SAJKECNS-CiOWiwl2.js → treemap-SAJKECNS-RgrBf6Sq.js} +1 -1
  222. package/editor-web/assets/{updating-D0GEtwnJ.js → updating--4wIxO0k.js} +1 -1
  223. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DMYM1MRe.js → usecaseDiagram-WPOLBNNX-DfIcy0_F.js} +1 -1
  224. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DQIJ5vvN.js → vennDiagram-Q3Y3IDCW-DxTSyNH7.js} +1 -1
  225. package/editor-web/assets/{video-mMOFXHYK.js → video-yjnj5UY2.js} +1 -1
  226. package/editor-web/assets/{wardley-7MLQ67FV-C3H9HG8r.js → wardley-7MLQ67FV-pow5gWxU.js} +1 -1
  227. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DgsjqY1Y.js → wardleyDiagram-IVAIDKWA-Dar0j9HS.js} +1 -1
  228. package/editor-web/assets/{workbook-NtMEyLgf.js → workbook-7fUt0Qgy.js} +1 -1
  229. package/editor-web/assets/{xychartDiagram-4URNHDU4-DzsGI527.js → xychartDiagram-4URNHDU4-qCxuQZMj.js} +1 -1
  230. package/editor-web/index.html +5 -3
  231. package/package.json +2 -2
  232. package/editor-web/assets/article-DW4eD_8K.js +0 -3
  233. package/editor-web/assets/article-Dm2dIEwc.js +0 -7
  234. package/editor-web/assets/bar-button-CJmpgNg4.js +0 -1
  235. package/editor-web/assets/channel-dyUtlVPg.js +0 -1
  236. package/editor-web/assets/chip-BdQRH3FL.js +0 -1
  237. package/editor-web/assets/deck-C0VxrlzX.js +0 -1
  238. package/editor-web/assets/dist-BaWFMuvr.js +0 -1
  239. package/editor-web/assets/dist-BdmMT8fP.js +0 -5
  240. package/editor-web/assets/dist-BgKyM9U6.js +0 -3
  241. package/editor-web/assets/dist-ByguWp3a.js +0 -16
  242. package/editor-web/assets/dist-CCP24Lel.js +0 -19
  243. package/editor-web/assets/dist-D3DwRF1k.js +0 -547
  244. package/editor-web/assets/dist-DCI21ljp.js +0 -6
  245. package/editor-web/assets/dist-DJvfQvM7.js +0 -24
  246. package/editor-web/assets/dist-DmCDcb2_.js +0 -4
  247. package/editor-web/assets/esm-Cl3GKSDd.js +0 -21
  248. package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +0 -1
  249. package/editor-web/assets/index-omhSywJb.js +0 -28
  250. package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +0 -1
  251. package/editor-web/assets/schemas-C21MyseF.js +0 -1
  252. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +0 -8
  253. package/editor-web/assets/tolerant-DM9s0Mt1.js +0 -1
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as r}from"zod";import{ConfigSchema as n}from"./data/config.js";import{DeckCodeSchema as m}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as f}from"./data/messages.js";import{InterpretationSchema as d}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as b}from"./data/slides.js";import{WebsiteFileSchema as g}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as F}from"./data/words.js";import{OPENPYXL_FIELDS as k,PPTX_FIELDS as j,readTolerantly as A}from"./tolerant.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:F,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.provenance"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:f,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:b,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:g,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:d,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:m,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:n,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:s,about:t}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:t,...r.toJSONSchema(s,{io:"input",unrepresentable:"any"})}}function o(e){if(e.code!=="invalid_union")return e.message;const s=e.errors.flatMap(t=>t.slice(0,1).map(a=>{const i=a.path.map(String).join(".");return i===""?o(a):`${i}: ${o(a)}`}));return s.length===0?e.message:`Fits none of its forms: ${[...new Set(s)].join("; ")}`}export function readDataFile(e,s){const t=DATA_FILES[e].schema.safeParse(s);return t.success?{ok:!0,value:t.data}:{ok:!1,problems:t.error.issues.map(a=>({path:a.path.map(String).join("."),message:o(a)}))}}export function readDataFileAsWritten(e,s){return A(DATA_FILES[e].schema,s,e==="slides"?j:k)}
2
+ import{z as r}from"zod";import{ConfigSchema as n}from"./data/config.js";import{DeckCodeSchema as m}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as d}from"./data/messages.js";import{InterpretationSchema as f}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as g}from"./data/slides.js";import{WebsiteFileSchema as b}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as F}from"./data/words.js";import{OPENPYXL_FIELDS as k,PPTX_FIELDS as j,readLeavingOutUnknownFields as v,readTolerantly as A}from"./tolerant.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:F,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.provenance"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:d,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:g,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:b,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:f,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:m,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:n,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function i(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const o=a.path.map(String).join(".");return o===""?i(a):`${o}: ${i(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=v(DATA_FILES[e].schema,t),a=s.leftOut.length===0?{}:{leftOut:s.leftOut};return s.success?{ok:!0,value:s.data,...a}:{ok:!1,problems:s.error.issues.map(o=>({path:o.path.map(String).join("."),message:i(o)})),...a}}export function readDataFileAsWritten(e,t){return A(DATA_FILES[e].schema,t,e==="slides"?j:k)}
@@ -27,12 +27,36 @@ export declare function problemsOf(value: unknown, issues: readonly Issue[]): {
27
27
  path: string;
28
28
  message: string;
29
29
  }[];
30
- /** A value read by its schema as a model writes it: taken, or what is wrong with it all at once and what the rest reads as. */
30
+ /** A field a value's schema does not know, left out of what it reads as: where it was, and what it was. */
31
+ export interface FieldLeftOut {
32
+ path: string;
33
+ message: string;
34
+ }
35
+ /**
36
+ * A value read by its schema, the fields it does not know left out (a
37
+ * newer AllyHub's, or a misspelling) and said: what it reads as, or the
38
+ * issues left once they are out.
39
+ */
40
+ export declare function readLeavingOutUnknownFields<S extends z.ZodType>(schema: S, given: unknown): {
41
+ success: true;
42
+ data: z.output<S>;
43
+ leftOut: FieldLeftOut[];
44
+ } | {
45
+ success: false;
46
+ error: z.ZodError;
47
+ leftOut: FieldLeftOut[];
48
+ };
49
+ /**
50
+ * A value read by its schema as a model writes it: taken, or what is wrong
51
+ * with it all at once and what the rest reads as; the fields it does not
52
+ * know left out of either and said (`leftOut`), never a problem.
53
+ */
31
54
  export declare function readTolerantly<S extends z.ZodType>(schema: S, given: unknown,
32
55
  /** Fields by other names, and the name each is here. */
33
56
  fields?: Readonly<Record<string, string>>): {
34
57
  ok: true;
35
58
  value: z.output<S>;
59
+ leftOut?: FieldLeftOut[];
36
60
  } | {
37
61
  ok: false;
38
62
  problems: {
@@ -40,6 +64,7 @@ fields?: Readonly<Record<string, string>>): {
40
64
  message: string;
41
65
  }[];
42
66
  partial?: z.output<S>;
67
+ leftOut?: FieldLeftOut[];
43
68
  };
44
69
  export {};
45
70
  //# sourceMappingURL=tolerant.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- const M=[["ctr","center","centre","middle","mid","centered","centred"],["t","top"],["b","bottom"],["l","left"],["r","right"],["just","justify","justified"],["out","outside","outer"],["in","inside","inner"]],$=new Map(M.flatMap(e=>e.map(o=>[o,e[0]])));function m(e){return e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").toLowerCase().split(/[\s_\-.]+/u).filter(o=>o!=="").map(o=>$.get(o)??o).join("")}export function spelledAs(e,o){for(const i of[m(e),m(`${e} clustered`)]){const r=o.filter(t=>typeof t=="string"&&m(t)===i);if(r.length===1)return r[0]}}export function valueOf(e,o){const i=v[m(e)];return spelledAs(e,o)??(i!==void 0&&o.includes(i)?i:void 0)}function y(e,o){const i=Array.from({length:e.length+1},(t,n)=>Array.from({length:o.length+1},(s,a)=>n===0?a:a===0?n:0)),r=(t,n)=>i[t]?.[n]??0;for(let t=1;t<=e.length;t++)for(let n=1;n<=o.length;n++){const s=e[t-1]===o[n-1]?0:1;let a=Math.min(r(t-1,n)+1,r(t,n-1)+1,r(t-1,n-1)+s);t>1&&n>1&&e[t-1]===o[n-2]&&e[t-2]===o[n-1]&&(a=Math.min(a,r(t-2,n-2)+1));const l=i[t];l&&(l[n]=a)}return r(e.length,o.length)}export function nearest(e,o){const i=e.toLowerCase();let r;for(const t of o){if(typeof t!="string")continue;const n=Math.min(y(i,t.toLowerCase()),y(m(e),m(t)));(r===void 0||n<r.d)&&(r={value:t,d:n})}return r&&r.d<=Math.max(1,Math.floor(i.length/3))?r.value:void 0}function x(e){return e.every(o=>o.path.length===0&&(o.code==="invalid_type"||o.code==="invalid_union"&&o.errors.every(x)))}function b(e,o=[]){const i=[...o,...e.path];if(e.code!=="invalid_union")return[{issue:e,at:i}];const r=e.errors.filter(s=>!x(s)),t=r.length>0?r:e.errors,n=Math.min(...t.map(s=>s.length));return t.filter(s=>s.length===n).flatMap(s=>s.flatMap(a=>b(a,i)))}const P=e=>e===null||e===!1||e==="none";function h(e,o){if(o.length===0)return;let i=e;for(const t of o.slice(0,-1)){if(i===null||typeof i!="object")return;i=i[t]}const r=o[o.length-1];if(!(i===null||typeof i!="object"||r===void 0))return{parent:i,key:r}}export const OPENPYXL_FIELDS={horizontal:"align",vertical:"valign",wrap_text:"wrap",wrapText:"wrap",shrink_to_fit:"shrink",shrinkToFit:"shrink",text_rotation:"rotation",textRotation:"rotation",number_format:"format",numFmt:"format",strikethrough:"strike",fill_type:"pattern",patternType:"pattern",fgColor:"color",start_color:"color",bgColor:"background",end_color:"background",freeze_panes:"freeze",merged_cells:"merges",tabColor:"tab",tab_color:"tab",showGridLines:"gridlines",show_gridlines:"gridlines",allow_blank:"blank",allowBlank:"blank"},PPTX_FIELDS={word_wrap:"wrap",wrap_text:"wrap",auto_size:"autofit",autosize:"autofit",auto_fit:"autofit",inset:"margin",insets:"margin",margins:"margin",padding:"margin",lIns:"margin_left",tIns:"margin_top",rIns:"margin_right",bIns:"margin_bottom",numCol:"columns",num_columns:"columns",column_count:"columns",spcCol:"column_spacing",column_gap:"column_spacing",marL:"margin_left",first_line_indent:"indent",alignment:"align",horizontal:"align",lnSpc:"line_spacing",spcBef:"space_before",spcAft:"space_after",exactly:"points",fixed:"points",vertical_anchor:"anchor",font_size:"size",font_name:"font",tick_label_position:"labels",major_tick_mark:"tick_marks",minor_tick_mark:"minor_tick_marks",log:"log_base",logBase:"log_base",display_units:"units",minor_unit:"minor",has_minor_gridlines:"minor_gridlines",tick_label_skip:"label_every",tickLblSkip:"label_every",subtotals:"totals",set_as_total:"totals",show_connector_lines:"connector_lines",connectors:"connector_lines",quartile_method:"quartiles",quartile_calculation:"quartiles",show_mean_markers:"mean_markers",show_mean_line:"mean_line",show_outlier_points:"outliers",show_outliers:"outliers",show_inner_points:"inner_points",show_nonoutliers:"inner_points",parent_label_layout:"parent_labels",hi_low_lines:"high_low_lines",hilo_lines:"high_low_lines",bubble_sizes:"sizes",bins:"bin_count",number_of_bins:"bin_count",bin_size:"bin_width",overflow_bin:"overflow",underflow_bin:"underflow",kpi:"stat",metric:"stat",kpis:"stats",metrics:"stats",scorecard:"stats",badge:"tag",pill:"tag",chip:"tag",alert:"callout",admonition:"callout",gauge:"progress",progress_bar:"progress",milestones:"timeline",process:"steps",stepper:"steps",avatar:"person",team:"people",alluvial:"sankey",roadmap:"gantt",gantt_chart:"gantt",timeline_gantt:"gantt",align:"text.align",bold:"text.bold",italic:"text.italic",size:"text.size",font:"text.font",anchor:"text.anchor",valign:"text.anchor",margin:"text.margin",autofit:"text.autofit",wrap:"text.wrap"};const O=["text","frame","textbox","geometry","fill","height","width","row"],v={shapetofittext:"grow",resizeshapetofittext:"grow",spautofit:"grow",resize:"grow",texttofitshape:"shrink",shrinktextonoverflow:"shrink",normautofit:"shrink",fit:"shrink",noautofit:"none",donotautofit:"none",bridge:"waterfall",bridgechart:"waterfall",box:"box-whisker",boxplot:"box-whisker",boxandwhisker:"box-whisker",boxandwhiskers:"box-whisker",boxwhiskers:"box-whisker",whisker:"box-whisker",spider:"radar",spiderweb:"radar",web:"radar",candlestick:"stock-ohlc",ohlc:"stock-ohlc",hlc:"stock-hlc",highlow:"stock-hlc",stock:"stock-hlc",range:"dumbbell",rangeplot:"dumbbell",arrow:"dumbbell",barbell:"dumbbell",slopegraph:"slope",bulletgraph:"bullet",tree:"treemap",rings:"sunburst",radialtreemap:"sunburst",conversionfunnel:"funnel",hist:"histogram",distribution:"histogram",paretochart:"pareto",inc:"inclusive",exc:"exclusive"},j=/^#?(?:[0-9a-fA-F]{2})?([0-9a-fA-F]{6})$/u;function L(e,o,i){let r=!1;for(const{issue:t,at:n}of o.flatMap(s=>b(s))){if(t.code==="unrecognized_keys"){const f=h(e,[...n,""]);if(!f||Array.isArray(f.parent))continue;const u=f.parent;for(const p of t.keys){const c=i[p];if(c===void 0)continue;const[g,_]=c.split(".");if(_!==void 0&&g!==void 0){if(!O.some(S=>S in u))continue;const k=u[g]??{};if(typeof k!="object"||Array.isArray(k))continue;const w=k;if(_ in w)continue;w[_]=u[p],u[g]=w}else{if(c in u)continue;u[c]=u[p]}Reflect.deleteProperty(u,p),r=!0}continue}if(t.code==="invalid_format"&&t.format==="regex"){const f=h(e,n);if(!f)continue;const u=f.parent[f.key],p=typeof u=="string"?j.exec(u):null;p?.[1]!==void 0&&String(t.pattern).includes("#")&&(f.parent[f.key]=`#${p[1].toUpperCase()}`,r=!0);continue}if(t.code!=="invalid_value")continue;const s=h(e,n);if(!s)continue;const{parent:a,key:l}=s,d=a[l];if(typeof d=="string"){const f=v[m(d)],u=spelledAs(d,t.values)??(f!==void 0&&t.values.includes(f)?f:void 0);if(u!==void 0){a[l]=u,r=!0;continue}}P(d)&&!Array.isArray(a)&&(Reflect.deleteProperty(a,l),r=!0)}return r}function C(e,o,i){if(e.code==="invalid_value"){const r=h(o,i),t=r&&r.parent[r.key],n=typeof t=="string"?nearest(t,e.values):void 0,s=e.values.length>12?e.values.slice(0,10):e.values,a=`${s.map(l=>JSON.stringify(l)).join(", ")}${s.length<e.values.length?", …":""}`;return`${n===void 0?"":`did you mean "${n}"? `}one of ${a}`}return e.message}function E(e,o,i){if(e.code!=="invalid_value")return;const r=h(o,i),t=r&&r.parent[r.key];return typeof t=="string"?nearest(t,e.values):void 0}export function problemsOf(e,o){const i=new Set,r=[];for(const t of o){const n=b(t),s=new Map;for(const a of n){const l=a.at.map(String).join(".");s.set(l,[...s.get(l)??[],a])}for(const[a,l]of s){const d=l.filter(c=>c.issue.code==="invalid_value"),f=l.filter(c=>c.issue.code!=="invalid_value"),p=t.code==="invalid_union"&&d.length>0&&new Set(f.map(c=>c.issue.message)).size===1?(()=>{const c=d[0],g=c?E(c.issue,e,c.at):void 0,_=f[0]?.issue.message??"";return[`${g===void 0?"":`did you mean "${g}"? `}${_}`]})():l.map(c=>C(c.issue,e,c.at));for(const c of p){const g=c.replace(/\.+$/u,""),_=`${a}\0${g}`;i.has(_)||(i.add(_),r.push({path:a,message:g}))}}}return r}function T(e,o){const i=new Map;let r=!1;for(const{at:t}of o.flatMap(n=>b(n))){const n=h(e,t);if(n){if(Array.isArray(n.parent)){const s=i.get(n.parent)??new Set;s.add(Number(n.key)),i.set(n.parent,s)}else if(n.key in n.parent)Reflect.deleteProperty(n.parent,n.key);else continue;r=!0}}for(const[t,n]of i)for(const s of[...n].sort((a,l)=>l-a))t.splice(s,1);return r}const z=12,A=e=>e===void 0?void 0:JSON.parse(JSON.stringify(e));export function readTolerantly(e,o,i=OPENPYXL_FIELDS){const r=e.safeParse(o);if(r.success)return{ok:!0,value:r.data};const t=A(o);let n=e.safeParse(t);for(let d=0;d<z&&!n.success&&L(t,n.error.issues,i);d++)n=e.safeParse(t);if(n.success)return{ok:!0,value:n.data};const s=problemsOf(t,n.error.issues),a=A(t);let l=e.safeParse(a);for(let d=0;d<z&&!l.success&&T(a,l.error.issues);d++)l=e.safeParse(a);return l.success?{ok:!1,problems:s,partial:l.data}:{ok:!1,problems:s}}
2
+ const P=[["ctr","center","centre","middle","mid","centered","centred"],["t","top"],["b","bottom"],["l","left"],["r","right"],["just","justify","justified"],["out","outside","outer"],["in","inside","inner"]],$=new Map(P.flatMap(e=>e.map(o=>[o,e[0]])));function h(e){return e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").toLowerCase().split(/[\s_\-.]+/u).filter(o=>o!=="").map(o=>$.get(o)??o).join("")}export function spelledAs(e,o){for(const s of[h(e),h(`${e} clustered`)]){const r=o.filter(t=>typeof t=="string"&&h(t)===s);if(r.length===1)return r[0]}}export function valueOf(e,o){const s=z[h(e)];return spelledAs(e,o)??(s!==void 0&&o.includes(s)?s:void 0)}function v(e,o){const s=Array.from({length:e.length+1},(t,n)=>Array.from({length:o.length+1},(i,a)=>n===0?a:a===0?n:0)),r=(t,n)=>s[t]?.[n]??0;for(let t=1;t<=e.length;t++)for(let n=1;n<=o.length;n++){const i=e[t-1]===o[n-1]?0:1;let a=Math.min(r(t-1,n)+1,r(t,n-1)+1,r(t-1,n-1)+i);t>1&&n>1&&e[t-1]===o[n-2]&&e[t-2]===o[n-1]&&(a=Math.min(a,r(t-2,n-2)+1));const u=s[t];u&&(u[n]=a)}return r(e.length,o.length)}export function nearest(e,o){const s=e.toLowerCase();let r;for(const t of o){if(typeof t!="string")continue;const n=Math.min(v(s,t.toLowerCase()),v(h(e),h(t)));(r===void 0||n<r.d)&&(r={value:t,d:n})}return r&&r.d<=Math.max(1,Math.floor(s.length/3))?r.value:void 0}function A(e){return e.every(o=>o.path.length===0&&(o.code==="invalid_type"||o.code==="invalid_union"&&o.errors.every(A)))}function b(e,o=[]){const s=[...o,...e.path];if(e.code!=="invalid_union")return[{issue:e,at:s}];const r=e.errors.filter(i=>!A(i)),t=r.length>0?r:e.errors,n=Math.min(...t.map(i=>i.length));return t.filter(i=>i.length===n).flatMap(i=>i.flatMap(a=>b(a,s)))}const j=e=>e===null||e===!1||e==="none";function m(e,o){if(o.length===0)return;let s=e;for(const t of o.slice(0,-1)){if(s===null||typeof s!="object")return;s=s[t]}const r=o[o.length-1];if(!(s===null||typeof s!="object"||r===void 0))return{parent:s,key:r}}export const OPENPYXL_FIELDS={horizontal:"align",vertical:"valign",wrap_text:"wrap",wrapText:"wrap",shrink_to_fit:"shrink",shrinkToFit:"shrink",text_rotation:"rotation",textRotation:"rotation",number_format:"format",numFmt:"format",strikethrough:"strike",fill_type:"pattern",patternType:"pattern",fgColor:"color",start_color:"color",bgColor:"background",end_color:"background",freeze_panes:"freeze",merged_cells:"merges",tabColor:"tab",tab_color:"tab",showGridLines:"gridlines",show_gridlines:"gridlines",allow_blank:"blank",allowBlank:"blank"},PPTX_FIELDS={word_wrap:"wrap",wrap_text:"wrap",auto_size:"autofit",autosize:"autofit",auto_fit:"autofit",inset:"margin",insets:"margin",margins:"margin",padding:"margin",lIns:"margin_left",tIns:"margin_top",rIns:"margin_right",bIns:"margin_bottom",numCol:"columns",num_columns:"columns",column_count:"columns",spcCol:"column_spacing",column_gap:"column_spacing",marL:"margin_left",first_line_indent:"indent",alignment:"align",horizontal:"align",lnSpc:"line_spacing",spcBef:"space_before",spcAft:"space_after",exactly:"points",fixed:"points",vertical_anchor:"anchor",font_size:"size",font_name:"font",tick_label_position:"labels",major_tick_mark:"tick_marks",minor_tick_mark:"minor_tick_marks",log:"log_base",logBase:"log_base",display_units:"units",minor_unit:"minor",has_minor_gridlines:"minor_gridlines",tick_label_skip:"label_every",tickLblSkip:"label_every",subtotals:"totals",set_as_total:"totals",show_connector_lines:"connector_lines",connectors:"connector_lines",quartile_method:"quartiles",quartile_calculation:"quartiles",show_mean_markers:"mean_markers",show_mean_line:"mean_line",show_outlier_points:"outliers",show_outliers:"outliers",show_inner_points:"inner_points",show_nonoutliers:"inner_points",parent_label_layout:"parent_labels",hi_low_lines:"high_low_lines",hilo_lines:"high_low_lines",bubble_sizes:"sizes",bins:"bin_count",number_of_bins:"bin_count",bin_size:"bin_width",overflow_bin:"overflow",underflow_bin:"underflow",kpi:"stat",metric:"stat",kpis:"stats",metrics:"stats",scorecard:"stats",badge:"tag",pill:"tag",chip:"tag",alert:"callout",admonition:"callout",gauge:"progress",progress_bar:"progress",milestones:"timeline",process:"steps",stepper:"steps",avatar:"person",team:"people",alluvial:"sankey",roadmap:"gantt",gantt_chart:"gantt",timeline_gantt:"gantt",align:"text.align",bold:"text.bold",italic:"text.italic",size:"text.size",font:"text.font",anchor:"text.anchor",valign:"text.anchor",margin:"text.margin",autofit:"text.autofit",wrap:"text.wrap"};const L=["text","frame","textbox","geometry","fill","height","width","row"],z={shapetofittext:"grow",resizeshapetofittext:"grow",spautofit:"grow",resize:"grow",texttofitshape:"shrink",shrinktextonoverflow:"shrink",normautofit:"shrink",fit:"shrink",noautofit:"none",donotautofit:"none",bridge:"waterfall",bridgechart:"waterfall",box:"box-whisker",boxplot:"box-whisker",boxandwhisker:"box-whisker",boxandwhiskers:"box-whisker",boxwhiskers:"box-whisker",whisker:"box-whisker",spider:"radar",spiderweb:"radar",web:"radar",candlestick:"stock-ohlc",ohlc:"stock-ohlc",hlc:"stock-hlc",highlow:"stock-hlc",stock:"stock-hlc",range:"dumbbell",rangeplot:"dumbbell",arrow:"dumbbell",barbell:"dumbbell",slopegraph:"slope",bulletgraph:"bullet",tree:"treemap",rings:"sunburst",radialtreemap:"sunburst",conversionfunnel:"funnel",hist:"histogram",distribution:"histogram",paretochart:"pareto",inc:"inclusive",exc:"exclusive"},C=/^#?(?:[0-9a-fA-F]{2})?([0-9a-fA-F]{6})$/u;function F(e,o,s){let r=!1;for(const{issue:t,at:n}of o.flatMap(i=>b(i))){if(t.code==="unrecognized_keys"){const c=m(e,[...n,""]);if(!c||Array.isArray(c.parent))continue;const l=c.parent;for(const d of t.keys){const f=s[d];if(f===void 0)continue;const[g,_]=f.split(".");if(_!==void 0&&g!==void 0){if(!L.some(M=>M in l))continue;const w=l[g]??{};if(typeof w!="object"||Array.isArray(w))continue;const y=w;if(_ in y)continue;y[_]=l[d],l[g]=y}else{if(f in l)continue;l[f]=l[d]}Reflect.deleteProperty(l,d),r=!0}continue}if(t.code==="invalid_format"&&t.format==="regex"){const c=m(e,n);if(!c)continue;const l=c.parent[c.key],d=typeof l=="string"?C.exec(l):null;d?.[1]!==void 0&&String(t.pattern).includes("#")&&(c.parent[c.key]=`#${d[1].toUpperCase()}`,r=!0);continue}if(t.code!=="invalid_value")continue;const i=m(e,n);if(!i)continue;const{parent:a,key:u}=i,p=a[u];if(typeof p=="string"){const c=z[h(p)],l=spelledAs(p,t.values)??(c!==void 0&&t.values.includes(c)?c:void 0);if(l!==void 0){a[u]=l,r=!0;continue}}j(p)&&!Array.isArray(a)&&(Reflect.deleteProperty(a,u),r=!0)}return r}function E(e,o,s){if(e.code==="invalid_value"){const r=m(o,s),t=r&&r.parent[r.key],n=typeof t=="string"?nearest(t,e.values):void 0,i=e.values.length>12?e.values.slice(0,10):e.values,a=`${i.map(u=>JSON.stringify(u)).join(", ")}${i.length<e.values.length?", …":""}`;return`${n===void 0?"":`did you mean "${n}"? `}one of ${a}`}return e.message}function R(e,o,s){if(e.code!=="invalid_value")return;const r=m(o,s),t=r&&r.parent[r.key];return typeof t=="string"?nearest(t,e.values):void 0}export function problemsOf(e,o){const s=new Set,r=[];for(const t of o){const n=b(t),i=new Map;for(const a of n){const u=a.at.map(String).join(".");i.set(u,[...i.get(u)??[],a])}for(const[a,u]of i){const p=u.filter(f=>f.issue.code==="invalid_value"),c=u.filter(f=>f.issue.code!=="invalid_value"),d=t.code==="invalid_union"&&p.length>0&&new Set(c.map(f=>f.issue.message)).size===1?(()=>{const f=p[0],g=f?R(f.issue,e,f.at):void 0,_=c[0]?.issue.message??"";return[`${g===void 0?"":`did you mean "${g}"? `}${_}`]})():u.map(f=>E(f.issue,e,f.at));for(const f of d){const g=f.replace(/\.+$/u,""),_=`${a}\0${g}`;s.has(_)||(s.add(_),r.push({path:a,message:g}))}}}return r}function T(e,o){const s=new Map;let r=!1;for(const{at:t}of o.flatMap(n=>b(n))){const n=m(e,t);if(n){if(Array.isArray(n.parent)){const i=s.get(n.parent)??new Set;i.add(Number(n.key)),s.set(n.parent,i)}else if(n.key in n.parent)Reflect.deleteProperty(n.parent,n.key);else continue;r=!0}}for(const[t,n]of s)for(const i of[...n].sort((a,u)=>u-a))t.splice(i,1);return r}const k=12,x=e=>e===void 0?void 0:JSON.parse(JSON.stringify(e));function O(e){return e.flatMap(o=>b(o)).flatMap(({issue:o,at:s})=>o.code==="unrecognized_keys"?o.keys.map(r=>({at:s,key:r})):[])}function S(e,o){const s=[];for(const{at:r,key:t}of O(o)){const n=m(e,[...r,""]);if(!n||Array.isArray(n.parent))continue;const i=n.parent;if(!(t in i))continue;Reflect.deleteProperty(i,t);const a=[...r,t].map(String).join(".");s.push({path:a,message:`"${t}" is not a field this AllyHub reads: left out`})}return s}export function readLeavingOutUnknownFields(e,o){const s=e.safeParse(o);if(s.success)return{success:!0,data:s.data,leftOut:[]};if(O(s.error.issues).length===0)return{success:!1,error:s.error,leftOut:[]};const r=x(o),t=[];let n=s;for(let i=0;i<k&&!n.success;i++){const a=S(r,n.error.issues);if(a.length===0)break;t.push(...a),n=e.safeParse(r)}return n.success?{success:!0,data:n.data,leftOut:t}:{success:!1,error:n.error,leftOut:t}}export function readTolerantly(e,o,s=OPENPYXL_FIELDS){const r=e.safeParse(o);if(r.success)return{ok:!0,value:r.data};const t=x(o);let n=e.safeParse(t);for(let l=0;l<k&&!n.success&&F(t,n.error.issues,s);l++)n=e.safeParse(t);const i=[];for(let l=0;l<k&&!n.success;l++){const d=S(t,n.error.issues);if(d.length===0)break;i.push(...d),n=e.safeParse(t)}const a=i.length===0?{}:{leftOut:i};if(n.success)return{ok:!0,value:n.data,...a};const u=problemsOf(t,n.error.issues),p=x(t);let c=e.safeParse(p);for(let l=0;l<k&&!c.success&&T(p,c.error.issues);l++)c=e.safeParse(p);return c.success?{ok:!1,problems:u,partial:c.data,...a}:{ok:!1,problems:u,...a}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/formats",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/html-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./tools": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/i18n",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-draw",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./build": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-measure",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-psd",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-render",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-runtime",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/image-sdk",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/jobs",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-model",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/linkedin-view",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/measure",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/media-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/model",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/office-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/ooxml",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/piece",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/project",
3
- "version": "0.21.0",
3
+ "version": "0.23.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 t}from"zod";import{FILE_METHODS as r,FILE_NOTIFICATIONS as a,FolderSchema as i,PathSchema as o}from"./files.js";import{method as e,notification as s}from"./jsonrpc.js";import{KindInfoSchema as h}from"./kinds.js";import{NoteRectSchema as c}from"./notes.js";import{PlaceSchema as n}from"./place.js";import{AgentHereSchema as m,PRESENCE_METHODS as l,PRESENCE_NOTIFICATIONS as p}from"./presence.js";import{TOOL_NOTIFICATIONS as d}from"./tools.js";export{PLACE_PARAM,PlaceSchema,placeIn,placeParams}from"./place.js";export const ThemeSchema=t.enum(["light","dark"]),EDITOR_MODES=["read","edit"],EditorModeSchema=t.enum(EDITOR_MODES),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),mode:EditorModeSchema,place:n.optional(),item:t.strictObject({id:o,kind:t.string().min(1).optional(),dir:i,entry:o,kindInfo:h}),editor:t.string().min(1)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"agent/here":e(m,t.strictObject({}),"Says whether the project's agent is in the item and what it does there, and whether the editor follows it, for a host that draws the agent's name itself (HostContext's `commands`); the host's button asks back with `editor/command`'s `follow` or `unfollow`."),"editor/place":e(t.strictObject({place:n}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`). The place is the editor's, in the shape its `editors` contribution's schema says; the host keeps it unread."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:c.optional(),selection:t.boolean().optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Mark up on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person pressed an Edit of the editor's own (a website's view, with no machine to run its server) in read mode (`mode`): the host wakes the machine that changes it; false where nothing does. Never sent for a key pressed in the item."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":s(HostContextSchema,"The language, theme or agent changed."),"editor/command":s(t.strictObject({command:t.string().min(1),open:t.boolean().optional()}),"The host around the editor asked it to run a command: what its own shortcut does (Export, ⌘E), or a command its extension contributes."),...a,...d,...p},EDITOR_HOST_METHODS={...r,...HOST_METHODS,...l};
2
+ import{z as t}from"zod";import{FILE_METHODS as r,FILE_NOTIFICATIONS as a,FolderSchema as i,PathSchema as o}from"./files.js";import{method as e,notification as s}from"./jsonrpc.js";import{KindInfoSchema as h}from"./kinds.js";import{NoteRectSchema as c}from"./notes.js";import{PlaceSchema as n}from"./place.js";import{AgentHereSchema as m,PRESENCE_METHODS as d,PRESENCE_NOTIFICATIONS as l}from"./presence.js";import{TOOL_NOTIFICATIONS as p}from"./tools.js";export{PLACE_PARAM,PlaceSchema,placeIn,placeParams}from"./place.js";export const ThemeSchema=t.enum(["light","dark"]),EDITOR_MODES=["read","edit"],EditorModeSchema=t.enum(EDITOR_MODES),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),mode:EditorModeSchema,place:n.optional(),item:t.strictObject({id:o,kind:t.string().min(1).optional(),dir:i,entry:o,kindInfo:h}),editor:t.string().min(1)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),PlayedSchema=t.strictObject({seconds:t.number().min(0),length:t.number().min(0),ended:t.boolean()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"agent/here":e(m,t.strictObject({}),"Says whether the project's agent is in the item and what it does there, and whether the editor follows it, for a host that draws the agent's name itself (HostContext's `commands`); the host's button asks back with `editor/command`'s `follow` or `unfollow`."),"editor/place":e(t.strictObject({place:n}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`). The place is the editor's, in the shape its `editors` contribution's schema says; the host keeps it unread."),"editor/played":e(PlayedSchema,t.strictObject({}),"Says a stretch of the item played, from the person pressing play to a pause, its end, or the editor going or its page hidden: how many seconds of it played and whether it reached its end. A host that counts nothing answers all the same."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:c.optional(),selection:t.boolean().optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Mark up on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person pressed an Edit of the editor's own (a website's view, with no machine to run its server) in read mode (`mode`): the host wakes the machine that changes it; false where nothing does. Never sent for a key pressed in the item."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":s(HostContextSchema,"The language, theme or agent changed."),"editor/command":s(t.strictObject({command:t.string().min(1),open:t.boolean().optional()}),"The host around the editor asked it to run a command: what its own shortcut does (Export, ⌘E), or a command its extension contributes."),...a,...p,...l},EDITOR_HOST_METHODS={...r,...HOST_METHODS,...d};
@@ -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 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)}),prompt_prefilled:e.strictObject({blanks:e.boolean(),from:EventWordSchema.optional()}),welcome_example_pressed:e.strictObject({index:e.number().int().min(1).max(9)}),plan_chosen:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,change:e.boolean(),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_ended_on_question:e.strictObject({turns_before:e.number().int().min(0)}),turn_started_with_blanks:e.strictObject({turns_before:e.number().int().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.",prompt_prefilled:"The composer opened with a prompt from a link (a tool page's Get started): whether it has blanks to fill in, and which tool page it came from. Never its words.",welcome_example_pressed:"In the first project, one of the welcome's examples was pressed: its number as shown. Never its words.",plan_chosen:"A plan's button was pressed on the plan page: which plan, monthly or yearly, whether it changes a plan already paid for, and whether the page was in Settings or the paywall.",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_ended_on_question:"An agent answered a person's message with a question alone: it ended as meant, changed and made nothing, and its answer ends in a question mark. How many messages the person had sent before it. Never a word of the message or the answer.",turn_started_with_blanks:"A person sent a message with a blank in square brackets still to fill in, as a tool page's prompt copied unfilled: how many messages they had sent before it. Never a word of the message.",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","plan_chosen","prompt_prefilled","welcome_example_pressed","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)});
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()}),item_played:e.strictObject({kind:EventWordSchema,seconds:e.number().min(0).max(1440*60),length:e.number().min(0).max(1440*60),ended:e.boolean()}),share_opened:e.strictObject({kind:EventWordSchema}),upgrade_clicked:e.strictObject({where:e.enum(UPGRADE_PLACES)}),prompt_prefilled:e.strictObject({blanks:e.boolean(),from:EventWordSchema.optional()}),welcome_example_pressed:e.strictObject({index:e.number().int().min(1).max(9)}),plan_chosen:e.strictObject({plan:EventWordSchema,interval:EventWordSchema,change:e.boolean(),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(),device:e.enum(["phone","tablet","computer"]).optional(),os:e.enum(["iOS","iPadOS","Android","macOS","Windows","ChromeOS","Linux","other"]).optional(),browser:e.enum(["Safari","Chrome","Edge","Firefox","Samsung Internet","Opera","in-app","other"]).optional()}),activated:e.strictObject({turns_before:e.number().int().min(0),hours_since_sign_up:e.number().min(0)}),turn_ended_on_question:e.strictObject({turns_before:e.number().int().min(0)}),turn_started_with_blanks:e.strictObject({turns_before:e.number().int().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 Ways to use AllyHub page, 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.",item_played:"A piece was played in Studio, from pressing play to a pause, its end or leaving it: its kind, the seconds that played, its length and whether it played to its end. Never which one.",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.",prompt_prefilled:"The composer opened with a prompt from a link (a tool page's Get started): whether it has blanks to fill in, and which tool page it came from. Never its words.",welcome_example_pressed:"In the first project, one of the welcome's examples was pressed: its number as shown. Never its words.",plan_chosen:"A plan's button was pressed on the plan page: which plan, monthly or yearly, whether it changes a plan already paid for, and whether the page was in Settings or the paywall.",page_viewed:"One of a few pages was arrived at: the Ways to use AllyHub page, 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_ended_on_question:"An agent answered a person's message with a question alone: it ended as meant, changed and made nothing, and its answer ends in a question mark. How many messages the person had sent before it. Never a word of the message or the answer.",turn_started_with_blanks:"A person sent a message with a blank in square brackets still to fill in, as a tool page's prompt copied unfilled: how many messages they had sent before it. Never a word of the message.",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","item_played","share_opened","upgrade_clicked","plan_chosen","prompt_prefilled","welcome_example_pressed","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
- import{z as e}from"zod";import{EDITOR_STATES as a,EditorModeSchema as h,ExportStateSchema as c,PlaceSchema as d,ThemeSchema as m}from"./editor.js";import{AgentHereSchema as p}from"./presence.js";import{PathSchema as s}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{HeldSchema as w,NoteFoundSchema as l,NotePickSchema as i,NotePictureSchema as g,NotePointSchema as f,NoteRectSchema as r,NoteShapeSchema as b}from"./notes.js";const n=e.strictObject({connection:e.string().min(1),message:e.unknown()});export const FRAME_METHODS={"note/hold":o(e.strictObject({selection:e.boolean().optional()}),w.extend({selected:e.array(i).optional()}),"Holds what moves by itself while the person marks a picture of it; says what is on show, and with `selection` what is selected in it."),"note/locate":o(e.strictObject({shape:b}),l,"What a mark is on: the editor's answer and every inset's under it, innermost first. Empty is an answer: the mark's place still goes."),"note/pick":o(e.strictObject({at:f}),e.strictObject({pick:i.optional()}),"The one thing in front at a point, with its edge: the innermost inset's under it that answers, else the editor's. None is an answer."),"note/pictures":o(e.strictObject({}),e.strictObject({pictures:e.array(g),uncovered:e.array(e.strictObject({name:e.string(),rect:r}))}),"The page as it shows now, drawn without the window's marks, then its insets' pictures, each at its rect, outermost first."),"note/release":o(e.strictObject({}),e.strictObject({}),"The person is done marking. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own."),"editor/upstream":t(e.discriminatedUnion("from",[e.strictObject({from:e.literal("snapshot"),root:e.url()}),e.strictObject({from:e.literal("window"),connection:e.string().min(1)})]),"Where the page reads and writes from now: a read view, or the project's server through the window. Each is a new upstream: the page makes its watches again there and its editor takes what differs as a change on disk."),"editor/context":t(e.strictObject({mode:h,theme:m}),"The editor's mode and the theme the window draws in, as they are now: the page's editor hears them as its host's context and changes where it stands."),"editor/message":t(n,"A message of the project's server for the page.")},FRAME_NOTIFICATIONS={"editor/ready":t(e.strictObject({}),"The page is loaded: the window tells it its upstream and its context."),"editor/send":t(n,"A message of the page for the project's server."),"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"window/key":t(e.strictObject({key:e.string(),code:e.string(),meta:e.boolean(),ctrl:e.boolean(),shift:e.boolean(),alt:e.boolean()}),"A key with ⌘ or Ctrl pressed in the page that its editor did not take: the window's shortcut (⌘⇧M, ⌘K), heard where the keys are in the page. A desktop shell's menu hears them itself, so a page framed there tells none."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:r.optional(),selection:e.boolean().optional()}),"The person asked for Mark up from the editor: the window shows its tools, or with `selection` begins with what is selected marked; `from` is what they pressed, in the page's viewport."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person pressed an Edit of the page's own on a read-only page, or the page needs the machine for what they asked: the window wakes it. Never for a key pressed in the item."),"editor/place":t(e.strictObject({item:s,place:d}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"item/open":t(e.strictObject({item:s}),"The person opened another item of the project from the editor (an embed's Open, a link to an item): the window opens it as its list would, so its header and list follow."),"export/state":t(c,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(a),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(p,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
2
+ import{z as e}from"zod";import{EDITOR_STATES as n,EditorModeSchema as h,ExportStateSchema as d,PlaceSchema as c,PlayedSchema as m,ThemeSchema as p}from"./editor.js";import{AgentHereSchema as w}from"./presence.js";import{PathSchema as s}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{HeldSchema as l,NoteFoundSchema as g,NotePickSchema as i,NotePictureSchema as f,NotePointSchema as b,NoteRectSchema as r,NoteShapeSchema as O}from"./notes.js";const a=e.strictObject({connection:e.string().min(1),message:e.unknown()});export const FRAME_METHODS={"note/hold":o(e.strictObject({selection:e.boolean().optional()}),l.extend({selected:e.array(i).optional()}),"Holds what moves by itself while the person marks a picture of it; says what is on show, and with `selection` what is selected in it."),"note/locate":o(e.strictObject({shape:O}),g,"What a mark is on: the editor's answer and every inset's under it, innermost first. Empty is an answer: the mark's place still goes."),"note/pick":o(e.strictObject({at:b}),e.strictObject({pick:i.optional()}),"The one thing in front at a point, with its edge: the innermost inset's under it that answers, else the editor's. None is an answer."),"note/pictures":o(e.strictObject({page:e.boolean().optional()}),e.strictObject({pictures:e.array(f),uncovered:e.array(e.strictObject({name:e.string(),rect:r}))}),"The page as it shows now, drawn without the window's marks (unless `page` is false), then its insets' pictures, each at its rect, outermost first."),"note/release":o(e.strictObject({}),e.strictObject({}),"The person is done marking. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own."),"editor/upstream":t(e.discriminatedUnion("from",[e.strictObject({from:e.literal("snapshot"),root:e.url()}),e.strictObject({from:e.literal("window"),connection:e.string().min(1)})]),"Where the page reads and writes from now: a read view, or the project's server through the window. Each is a new upstream: the page makes its watches again there and its editor takes what differs as a change on disk."),"editor/context":t(e.strictObject({mode:h,theme:p}),"The editor's mode and the theme the window draws in, as they are now: the page's editor hears them as its host's context and changes where it stands."),"editor/message":t(a,"A message of the project's server for the page.")},FRAME_NOTIFICATIONS={"editor/ready":t(e.strictObject({}),"The page is loaded: the window tells it its upstream and its context."),"editor/send":t(a,"A message of the page for the project's server."),"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"window/key":t(e.strictObject({key:e.string(),code:e.string(),meta:e.boolean(),ctrl:e.boolean(),shift:e.boolean(),alt:e.boolean()}),"A key with ⌘ or Ctrl pressed in the page that its editor did not take: the window's shortcut (⌘⇧M, ⌘K), heard where the keys are in the page. A desktop shell's menu hears them itself, so a page framed there tells none."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:r.optional(),selection:e.boolean().optional()}),"The person asked for Mark up from the editor: the window shows its tools, or with `selection` begins with what is selected marked; `from` is what they pressed, in the page's viewport."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person pressed an Edit of the page's own on a read-only page, or the page needs the machine for what they asked: the window wakes it. Never for a key pressed in the item."),"editor/place":t(e.strictObject({item:s,place:c}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"editor/played":t(m.extend({item:s}),"A stretch of an item that played, as its editor says it (`editor/played`), for the window to count."),"item/open":t(e.strictObject({item:s}),"The person opened another item of the project from the editor (an embed's Open, a link to an item): the window opens it as its list would, so its header and list follow."),"export/state":t(d,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(n),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(w,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
@@ -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"./page-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";
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"./page-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"./scheduled-tasks.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 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}}}
2
+ import{z as t}from"zod";import{known as l}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(),mostTasks:t.number().optional(),mostTasksWithPlan:t.number().optional()}),COMMAND_LINE_PAYWALL_MET="paywall-met",CommandLinePaywallMetSchema=t.object({reason:t.enum(PAYWALL_REASONS),what:t.enum(["tool","command","scheduled_task"]).default("command"),numbers:PaywallNumbersSchema.default({}),needsPlanFor:t.string().min(1).max(80).optional()});export function paywallReasonOfCode(n){if(typeof n!="string")return;const e=n.replaceAll("-","_");return l(PAYWALL_REASONS,e)?e:void 0}const s=(n,e)=>{const o=n[e];return typeof o=="number"&&Number.isFinite(o)?o:void 0};export function needsPlanForOfData(n){if(typeof n!="object"||n===null)return;const e=n.needsPlanFor;return typeof e=="string"&&e.length>0&&e.length<=80?e:void 0}export function paywallNumbersOfData(n){if(typeof n!="object"||n===null)return{};const e=n,o=s(e,"available"),r=s(e,"needed"),a=s(e,"keptBytes"),i=s(e,"capBytes"),d=s(e,"mostTasks"),u=s(e,"mostTasksWithPlan");return{...o===void 0?{}:{creditsLeft:o},...r===void 0?{}:{creditsNeeded:r},...a===void 0?{}:{keptBytes:a},...i===void 0?{}:{capBytes:i},...d===void 0?{}:{mostTasks:d},...u===void 0?{}:{mostTasksWithPlan:u}}}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as n}from"zod";import{openEnum as a,readable as s}from"./open.js";export const SCHEDULED_TASKS_PATH="/api/scheduled-tasks",scheduledTaskPath=e=>`${SCHEDULED_TASKS_PATH}/${encodeURIComponent(e)}`,scheduledTaskRunNowPath=e=>`${scheduledTaskPath(e)}/run`,scheduledTaskRunsPath=e=>`${scheduledTaskPath(e)}/runs`,SCHEDULED_TASK_TEXT_LIMITS={name:120,prompt:2e4};const t=n.iso.datetime({offset:!0});export const ScheduledTaskCreateSchema=n.strictObject({name:n.string().trim().min(1).max(SCHEDULED_TASK_TEXT_LIMITS.name).describe("What the list and each run's chat title say"),prompt:n.string().trim().min(1).max(SCHEDULED_TASK_TEXT_LIMITS.prompt).describe("The first message of each run, as written"),cron:n.string().trim().min(1).optional().describe("A 5-field cron expression, in `timeZone`"),at:t.optional().describe("One time it runs, ISO 8601"),timeZone:n.string().min(1).optional().describe("An IANA time zone; none: where the person is, as their window last said (UTC where no window said)"),endsAt:t.nullable().optional().describe("No run after it"),projectId:n.string().min(1).nullable().optional().describe("The project a run's chat is in; none: a chat in no project"),agentId:n.string().min(1).nullable().optional().describe("The agent a run uses; none: the person's default. The chat's agent where it continues one"),conversationId:n.string().min(1).nullable().optional().describe("The chat each run continues (of `agentId`), the prompt a message in it; none: each run a new chat"),model:n.string().min(1).nullable().optional(),paused:n.boolean().optional()}).refine(e=>e.cron===void 0!=(e.at===void 0),{message:"A task has a cron or an at, and not both."}).refine(e=>e.conversationId==null||e.agentId!=null,{message:"A chat a task continues is named with its agent (agentId)."}),ScheduledTaskChangeFieldsSchema=n.strictObject({name:n.string().trim().min(1).max(SCHEDULED_TASK_TEXT_LIMITS.name),prompt:n.string().trim().min(1).max(SCHEDULED_TASK_TEXT_LIMITS.prompt),cron:n.string().trim().min(1),at:t,timeZone:n.string().min(1),endsAt:t.nullable(),projectId:n.string().min(1).nullable(),agentId:n.string().min(1).nullable(),conversationId:n.string().min(1).nullable(),model:n.string().min(1).nullable(),paused:n.boolean()}).partial(),ScheduledTaskChangeSchema=ScheduledTaskChangeFieldsSchema.refine(e=>e.cron===void 0||e.at===void 0,{message:"A task has a cron or an at, and not both."}),SCHEDULED_TASK_RUN_STATUSES=["starting","running","ended","failed","skipped"],ScheduledTaskRunSchema=n.object({id:n.string(),taskId:n.string(),dueAt:n.string(),status:a(SCHEDULED_TASK_RUN_STATUSES),reason:n.string().nullable(),agentId:n.string().nullable(),conversationId:n.string().nullable(),folder:n.string().nullable(),startedAt:n.string().nullable(),endedAt:n.string().nullable(),stopReason:n.string().nullable()}),ScheduledTaskSchema=n.object({id:n.string(),name:n.string(),prompt:n.string(),cron:n.string().nullable(),at:n.string().nullable(),timeZone:n.string(),endsAt:n.string().nullable(),projectId:n.string().nullable(),agentId:n.string().nullable(),conversationId:n.string().nullable().default(null),model:n.string().nullable(),paused:n.boolean(),madeBy:a(["person","agent"]),createdAt:n.string(),updatedAt:n.string(),nextRunAt:n.string().nullable(),lastRun:ScheduledTaskRunSchema.nullable()}),ScheduledTasksSchema=n.object({tasks:s(ScheduledTaskSchema),mostTasks:n.number().optional(),mostTasksWithPlan:n.number().optional()}),ScheduledTaskRunsSchema=n.object({runs:s(ScheduledTaskRunSchema)});
@@ -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{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;
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(),pinned:e.boolean().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,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/protocol",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -43,6 +43,10 @@
43
43
  "types": "./dist/mail.d.ts",
44
44
  "default": "./dist/mail.js"
45
45
  },
46
+ "./scheduled-tasks": {
47
+ "types": "./dist/scheduled-tasks.d.ts",
48
+ "default": "./dist/scheduled-tasks.js"
49
+ },
46
50
  "./sites": {
47
51
  "types": "./dist/sites.d.ts",
48
52
  "default": "./dist/sites.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/registry",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/render",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/report-extension",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./theme": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/runtime",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/runtimes",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {