allyhub 0.22.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 (218) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/dev.js +5 -5
  3. package/dist/commands/index.js +1 -1
  4. package/dist/commands/list.js +1 -1
  5. package/dist/commands/schedule.js +4 -0
  6. package/dist/commands.json +1 -1
  7. package/dist/main.js +8 -8
  8. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  9. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  10. package/dist/node_modules/@allyhub/blocks/package.json +1 -1
  11. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  12. package/dist/node_modules/@allyhub/build/package.json +1 -1
  13. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  14. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  15. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  16. package/dist/node_modules/@allyhub/check/package.json +1 -1
  17. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  18. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  19. package/dist/node_modules/@allyhub/cloud/dist/scheduled-tasks.js +2 -0
  20. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  21. package/dist/node_modules/@allyhub/components/package.json +1 -1
  22. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  23. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  24. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  25. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  26. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  27. package/dist/node_modules/@allyhub/export/package.json +1 -1
  28. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  29. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  30. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  31. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  32. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  33. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  34. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  35. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  36. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  37. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  38. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  39. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  40. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  41. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  42. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  43. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  44. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  45. package/dist/node_modules/@allyhub/media/package.json +1 -1
  46. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  47. package/dist/node_modules/@allyhub/model/package.json +1 -1
  48. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  49. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  50. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  51. package/dist/node_modules/@allyhub/project/package.json +1 -1
  52. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  53. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  54. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  55. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  56. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
  57. package/dist/node_modules/@allyhub/protocol/dist/scheduled-tasks.js +2 -0
  58. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  59. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  60. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  61. package/dist/node_modules/@allyhub/render/package.json +1 -1
  62. package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
  63. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  64. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  65. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  66. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  67. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  68. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  69. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  70. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  71. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  72. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  73. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  74. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  75. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  76. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  77. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  78. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  79. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  80. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  81. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  82. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  83. package/dist/node_modules/@allyhub/website/package.json +1 -1
  84. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  85. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  86. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  87. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  88. package/dist/package.json +15 -15
  89. package/dist/works.js +1 -1
  90. package/editor-web/assets/{abnfDiagram-WEYOIA3C-D6qI3rai.js → abnfDiagram-WEYOIA3C-OIbGwO0P.js} +1 -1
  91. package/editor-web/assets/{architecture-WOLXFQ4H-B3V6ggq8.js → architecture-WOLXFQ4H-i87EDk8h.js} +1 -1
  92. package/editor-web/assets/{architectureDiagram-ZHVYKT53-IauNyxXn.js → architectureDiagram-ZHVYKT53-DRsgKDbu.js} +1 -1
  93. package/editor-web/assets/article-BVbLqhwK.js +3 -0
  94. package/editor-web/assets/article-BxkgemqI.js +7 -0
  95. package/editor-web/assets/bar-button-BJ-_6g-F.js +1 -0
  96. package/editor-web/assets/{blockDiagram-RJAE7QA3-yXhlfxbH.js → blockDiagram-RJAE7QA3-k_lanKyI.js} +1 -1
  97. package/editor-web/assets/{c4Diagram-XDPPPE54-B-anrhvt.js → c4Diagram-XDPPPE54-BFJTpM5w.js} +1 -1
  98. package/editor-web/assets/channel-CDJSUIp1.js +1 -0
  99. package/editor-web/assets/chevron-right-7tjLd0X4.js +1 -0
  100. package/editor-web/assets/chip-lvclIKGj.js +1 -0
  101. package/editor-web/assets/{chunk-2E7WHVMD-QPOni4XB.js → chunk-2E7WHVMD-Bbfj2q42.js} +1 -1
  102. package/editor-web/assets/{chunk-4EMNKR2T-DG1FCRRI.js → chunk-4EMNKR2T-iKWsgYqL.js} +1 -1
  103. package/editor-web/assets/{chunk-55XCU76K-mKuMXpnC.js → chunk-55XCU76K-WwcsywWu.js} +1 -1
  104. package/editor-web/assets/{chunk-7S6XSTFO-CgZAazgt.js → chunk-7S6XSTFO-BEEtZTsQ.js} +1 -1
  105. package/editor-web/assets/{chunk-AQDTSKZB-BRU84phF.js → chunk-AQDTSKZB-ZT2PBdLK.js} +1 -1
  106. package/editor-web/assets/{chunk-DSNLSHJZ-zku9oeG3.js → chunk-DSNLSHJZ-BDlY4xos.js} +1 -1
  107. package/editor-web/assets/{chunk-HAGFOTED-CaUkBv_0.js → chunk-HAGFOTED-Yp6V4sx6.js} +1 -1
  108. package/editor-web/assets/{chunk-HNE4Q36P-BQz4ZCJf.js → chunk-HNE4Q36P-C6IdGLw2.js} +1 -1
  109. package/editor-web/assets/{chunk-NQOKRVIF-CHVBEDkg.js → chunk-NQOKRVIF-D3gs_SMr.js} +1 -1
  110. package/editor-web/assets/{chunk-UHW7PFBP-DrYeJo1e.js → chunk-UHW7PFBP-Byf0dX4X.js} +1 -1
  111. package/editor-web/assets/{chunk-VQ5W62QI-D8ToVCUe.js → chunk-VQ5W62QI-n9lsvBOX.js} +1 -1
  112. package/editor-web/assets/{chunk-WQQL4CDK-DZ0tyi9F.js → chunk-WQQL4CDK-BW540sO1.js} +1 -1
  113. package/editor-web/assets/{chunk-YZO67HFG-BLe7PXER.js → chunk-YZO67HFG-CWL9cioT.js} +1 -1
  114. package/editor-web/assets/{chunk-ZAUX2LTX-ByaeSIre.js → chunk-ZAUX2LTX-D9zlkFeQ.js} +1 -1
  115. package/editor-web/assets/{chunk-ZCHMQSOR-DdMJr_t5.js → chunk-ZCHMQSOR-nieSgKB5.js} +1 -1
  116. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DDpq7fFC.js → classDiagram-v2-4MYWR3UA-BXamBIDc.js} +1 -1
  117. package/editor-web/assets/{color-picker-CDeICDN5.js → color-picker-XpkmmKxv.js} +1 -1
  118. package/editor-web/assets/context-menu-pSruvRyd.js +1 -0
  119. package/editor-web/assets/{cynefin-EF2NZ3EQ-CMivy2fr.js → cynefin-EF2NZ3EQ-CVKVgqFb.js} +1 -1
  120. package/editor-web/assets/{cynefinDiagram-WF24UDRP-GtxT_9wW.js → cynefinDiagram-WF24UDRP-r0bqUe5X.js} +1 -1
  121. package/editor-web/assets/{dagre-NK4GIZVX-Bn1O2Hjl.js → dagre-NK4GIZVX-4q_IUjiM.js} +1 -1
  122. package/editor-web/assets/deck-cyd6f3QU.js +1 -0
  123. package/editor-web/assets/{diagram-CBK3MWTC-W715PWZw.js → diagram-CBK3MWTC-CDh12DaH.js} +1 -1
  124. package/editor-web/assets/{diagram-I5XIIV2D-BKObZPn2.js → diagram-I5XIIV2D-C_sqASp8.js} +1 -1
  125. package/editor-web/assets/{diagram-ODIL2UCW-UtQxEPoW.js → diagram-ODIL2UCW-QgoMb-iS.js} +1 -1
  126. package/editor-web/assets/{diagram-PFBEJUXE-CpLGEK-k.js → diagram-PFBEJUXE-Djhv4RT6.js} +1 -1
  127. package/editor-web/assets/{diagram-RJA3I4VV-DGyMXoHb.js → diagram-RJA3I4VV-CvVswF4l.js} +1 -1
  128. package/editor-web/assets/{diagram-TYUNFSNR-Dy_Ewr8V.js → diagram-TYUNFSNR-DLnbV741.js} +1 -1
  129. package/editor-web/assets/dist-BK-WZ2ce.js +3 -0
  130. package/editor-web/assets/dist-CQ8-PJqF.js +16 -0
  131. package/editor-web/assets/dist-CQElMvxC.js +4 -0
  132. package/editor-web/assets/{dist-H9rTuNhb.js → dist-D49XAtID.js} +1 -1
  133. package/editor-web/assets/{dist-DNMKDcLg.js → dist-DDQLLUz5.js} +1 -1
  134. package/editor-web/assets/{dist-oeSWr2LE.js → dist-DO2VygfS.js} +3 -3
  135. package/editor-web/assets/dist-DOoUVqs_.js +24 -0
  136. package/editor-web/assets/{dist-B0rUvCi2.js → dist-DUyJ8AI0.js} +1 -1
  137. package/editor-web/assets/dist-DlDgR_Er.js +1 -0
  138. package/editor-web/assets/dist-Dw7AH_ip.js +6 -0
  139. package/editor-web/assets/{dist-0I0Obj60.js → dist-Dx3tLwZ1.js} +17 -17
  140. package/editor-web/assets/{dist-DptBQzJR.js → dist-F7lLi27Y.js} +1 -1
  141. package/editor-web/assets/dist-OfUZ68xY.js +547 -0
  142. package/editor-web/assets/{dist-D7M5YTq2.js → dist-OyPpS4AG.js} +28 -28
  143. package/editor-web/assets/dist-QCvBWMrp.js +5 -0
  144. package/editor-web/assets/{dist-CKD_paj_.js → dist-RppJbSHJ.js} +1 -1
  145. package/editor-web/assets/dist-ZFgjTFWK.js +19 -0
  146. package/editor-web/assets/{dist-Cc8v9lfc.js → dist-onYtssQw.js} +1 -1
  147. package/editor-web/assets/{docx-draw-B5cM77hc.js → docx-draw-BBI4k72R.js} +1 -1
  148. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-GPYcx6dU.js → ebnfDiagram-V4P3TTPT-BoiJRPsL.js} +1 -1
  149. package/editor-web/assets/{elk-QONTBCTQ-Bi0r4UFM.js → elk-QONTBCTQ-BDiBwn0f.js} +1 -1
  150. package/editor-web/assets/{erDiagram-KYQIGQAA-DrOSrnci.js → erDiagram-KYQIGQAA-DaA3jdNm.js} +1 -1
  151. package/editor-web/assets/{esm-jIPnpbBD.js → esm-BWIRT8Yl.js} +1 -1
  152. package/editor-web/assets/{eventmodeling-K75KTNOO-Dw-MjgUb.js → eventmodeling-K75KTNOO-j7ZSOAed.js} +1 -1
  153. package/editor-web/assets/flowDiagram-IUGLLWBU-Cb-xQSAJ.js +1 -0
  154. package/editor-web/assets/{ganttDiagram-R7GPNTJY-Bwe8cQqi.js → ganttDiagram-R7GPNTJY-CyNcjwUZ.js} +1 -1
  155. package/editor-web/assets/{gitGraph-VSP46ZUC-DsAcAKP0.js → gitGraph-VSP46ZUC-BuzoK22Z.js} +1 -1
  156. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-aObRwdru.js → gitGraphDiagram-PDYL7XHY--lzum_QP.js} +1 -1
  157. package/editor-web/assets/index-BSd85XUU.js +28 -0
  158. package/editor-web/assets/{info-OHQRW6UA-DBPN8JFr.js → info-OHQRW6UA-rs42SY_Y.js} +1 -1
  159. package/editor-web/assets/{infoDiagram-MVDRKAX5-Bx26Hq7M.js → infoDiagram-MVDRKAX5-BjedWKrM.js} +1 -1
  160. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BJ_MCDwA.js → ishikawaDiagram-HPEHV2GE-Dtqm_gq7.js} +1 -1
  161. package/editor-web/assets/{journeyDiagram-BOSHW7O7-B5g4W2Dx.js → journeyDiagram-BOSHW7O7-J0dA2yU0.js} +1 -1
  162. package/editor-web/assets/{kanban-definition-FNSA4HC5-U8YNlxN7.js → kanban-definition-FNSA4HC5-DV13v0Uf.js} +1 -1
  163. package/editor-web/assets/{mermaid-parser.core-DYLQlYDo.js → mermaid-parser.core-B7bZFHzS.js} +3 -3
  164. package/editor-web/assets/{mermaid.core-qNJmZ0b4.js → mermaid.core-DQ10-Otk.js} +4 -4
  165. package/editor-web/assets/{mindmap-definition-6OY57UG3-CI5aBWbK.js → mindmap-definition-6OY57UG3-DgdXGBCF.js} +1 -1
  166. package/editor-web/assets/{packet-JDAUHWVQ-BBclMGlJ.js → packet-JDAUHWVQ-ZNSLC_YL.js} +1 -1
  167. package/editor-web/assets/{panes-BShVq38A.js → panes-1hRg6CCN.js} +2 -2
  168. package/editor-web/assets/{pegDiagram-ECIUJNBX-B3pljPTu.js → pegDiagram-ECIUJNBX-nBIsHepE.js} +1 -1
  169. package/editor-web/assets/{pie-XZMESJXO-B7WzimHm.js → pie-XZMESJXO-CXen6okO.js} +1 -1
  170. package/editor-web/assets/{pieDiagram-GNMPY74T-tM1Da50-.js → pieDiagram-GNMPY74T-BlimMsUq.js} +1 -1
  171. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BEq_Shj9.js → quadrantDiagram-D57K4MC3-D_B7p8XB.js} +1 -1
  172. package/editor-web/assets/{radar-ABXABTNO-v2jJSW5T.js → radar-ABXABTNO-DFfRPPEM.js} +1 -1
  173. package/editor-web/assets/{railroad-I3PHUGI6-6W3Z4F8Y.js → railroad-I3PHUGI6-DS8ly7WZ.js} +1 -1
  174. package/editor-web/assets/{railroad-abnf-LNEFI6M7-DxIN7Zrt.js → railroad-abnf-LNEFI6M7-Coohlgpw.js} +1 -1
  175. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-Bb5O7tAx.js → railroad-ebnf-DWYD2UWJ-CvcfKbZc.js} +1 -1
  176. package/editor-web/assets/{railroad-peg-JR7BVNR7-i2LjEP5t.js → railroad-peg-JR7BVNR7-jRtVHKtg.js} +1 -1
  177. package/editor-web/assets/{railroadDiagram-Y72NRBL7-DhsyVKbG.js → railroadDiagram-Y72NRBL7-kWUIDPHg.js} +1 -1
  178. package/editor-web/assets/{requirementDiagram-EQYSW5RA-Du2k7i1E.js → requirementDiagram-EQYSW5RA-C39Gfdi-.js} +1 -1
  179. package/editor-web/assets/ribbon-tabs-5R-_EtHp.js +1 -0
  180. package/editor-web/assets/{sankeyDiagram-SY24JHO5-CDnRMu7J.js → sankeyDiagram-SY24JHO5-DtSQ2N2q.js} +1 -1
  181. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BUXBhWYW.js → sequenceDiagram-BLEHNHQU-BZx9gAR1.js} +1 -1
  182. package/editor-web/assets/{session--OJYv_B7.js → session-2pd0mFQm.js} +1 -1
  183. package/editor-web/assets/{snapshots-DYooVfOx.js → snapshots-8hCkRemI.js} +1 -1
  184. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Enb8LZUA.js → stateDiagram-v2-A6IESKWZ-E9qhWPa3.js} +1 -1
  185. package/editor-web/assets/{swimlanes-B3ENRKFQ-pnpjgTrl.js → swimlanes-B3ENRKFQ-C6vD9fmU.js} +1 -1
  186. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-D_DL_JP0.js +8 -0
  187. package/editor-web/assets/{timeline-definition-JXYKGLGB-C4pR18kd.js → timeline-definition-JXYKGLGB-CT8AKsKE.js} +1 -1
  188. package/editor-web/assets/{treeView-D4JQ5SDB-kzNGeAv6.js → treeView-D4JQ5SDB-DA2iE5aC.js} +1 -1
  189. package/editor-web/assets/{treemap-SAJKECNS-Buhb5wzt.js → treemap-SAJKECNS-RgrBf6Sq.js} +1 -1
  190. package/editor-web/assets/{updating-Cbxw83_O.js → updating--4wIxO0k.js} +1 -1
  191. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-CL-xLQWl.js → usecaseDiagram-WPOLBNNX-DfIcy0_F.js} +1 -1
  192. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-bwsyCcdK.js → vennDiagram-Q3Y3IDCW-DxTSyNH7.js} +1 -1
  193. package/editor-web/assets/{video-8MxWX9f5.js → video-yjnj5UY2.js} +1 -1
  194. package/editor-web/assets/{wardley-7MLQ67FV-DXsLgedI.js → wardley-7MLQ67FV-pow5gWxU.js} +1 -1
  195. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Cn0ph953.js → wardleyDiagram-IVAIDKWA-Dar0j9HS.js} +1 -1
  196. package/editor-web/assets/{workbook-BDWkQ149.js → workbook-7fUt0Qgy.js} +1 -1
  197. package/editor-web/assets/{xychartDiagram-4URNHDU4-CfXnqGWZ.js → xychartDiagram-4URNHDU4-qCxuQZMj.js} +1 -1
  198. package/editor-web/index.html +4 -3
  199. package/package.json +2 -2
  200. package/editor-web/assets/article-BHjKp5We.js +0 -3
  201. package/editor-web/assets/article-BlNKv1Cn.js +0 -7
  202. package/editor-web/assets/bar-button-CJmpgNg4.js +0 -1
  203. package/editor-web/assets/channel-Bhb-_8v6.js +0 -1
  204. package/editor-web/assets/chip-pNQlYa2W.js +0 -1
  205. package/editor-web/assets/deck-Cohd-G5m.js +0 -1
  206. package/editor-web/assets/dist-6ugUm4dS.js +0 -6
  207. package/editor-web/assets/dist-CKUW5NzS.js +0 -3
  208. package/editor-web/assets/dist-Ca9Gsuu0.js +0 -24
  209. package/editor-web/assets/dist-CynBNzYv.js +0 -1
  210. package/editor-web/assets/dist-D9tsFc2N.js +0 -16
  211. package/editor-web/assets/dist-Doj7_HUI.js +0 -547
  212. package/editor-web/assets/dist-DzKB210A.js +0 -5
  213. package/editor-web/assets/dist-RyGsFHE0.js +0 -4
  214. package/editor-web/assets/dist-wD_hHJ8_.js +0 -19
  215. package/editor-web/assets/flowDiagram-IUGLLWBU-DbZTfPEP.js +0 -1
  216. package/editor-web/assets/index-D-MNVykg.js +0 -28
  217. package/editor-web/assets/ribbon-tabs-Bxuj_hct.js +0 -1
  218. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B-B2Eoc8.js +0 -8
@@ -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.22.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.22.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.22.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.22.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.22.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.22.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/scaffold",
3
- "version": "0.22.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/scenery",
3
- "version": "0.22.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/scenery-host",
3
- "version": "0.22.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/sheet",
3
- "version": "0.22.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/sheet-extension",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./code": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/slides-core",
3
- "version": "0.22.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/slides-extension",
3
- "version": "0.22.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/slides-pptx",
3
- "version": "0.22.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/slides-runtime",
3
- "version": "0.22.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/stage",
3
- "version": "0.22.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/stage-page",
3
- "version": "0.22.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/stage-runtime",
3
- "version": "0.22.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/telemetry",
3
- "version": "0.22.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/text-extension",
3
- "version": "0.22.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/video-core",
3
- "version": "0.22.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/video-extension",
3
- "version": "0.22.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/video-measure",
3
- "version": "0.22.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/video-sdk",
3
- "version": "0.22.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/website",
3
- "version": "0.22.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/website-extension",
3
- "version": "0.22.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/x-extension",
3
- "version": "0.22.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/x-model",
3
- "version": "0.22.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/x-view",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/dist/package.json CHANGED
@@ -2,20 +2,20 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@allyhub/3d-extension": "0.22.0",
6
- "@allyhub/canvas-extension": "0.22.0",
7
- "@allyhub/doc-extension": "0.22.0",
8
- "@allyhub/html-extension": "0.22.0",
9
- "@allyhub/image-extension": "0.22.0",
10
- "@allyhub/linkedin-extension": "0.22.0",
11
- "@allyhub/media-extension": "0.22.0",
12
- "@allyhub/office-extension": "0.22.0",
13
- "@allyhub/report-extension": "0.22.0",
14
- "@allyhub/sheet-extension": "0.22.0",
15
- "@allyhub/slides-extension": "0.22.0",
16
- "@allyhub/text-extension": "0.22.0",
17
- "@allyhub/video-extension": "0.22.0",
18
- "@allyhub/website-extension": "0.22.0",
19
- "@allyhub/x-extension": "0.22.0"
5
+ "@allyhub/3d-extension": "0.23.0",
6
+ "@allyhub/canvas-extension": "0.23.0",
7
+ "@allyhub/doc-extension": "0.23.0",
8
+ "@allyhub/html-extension": "0.23.0",
9
+ "@allyhub/image-extension": "0.23.0",
10
+ "@allyhub/linkedin-extension": "0.23.0",
11
+ "@allyhub/media-extension": "0.23.0",
12
+ "@allyhub/office-extension": "0.23.0",
13
+ "@allyhub/report-extension": "0.23.0",
14
+ "@allyhub/sheet-extension": "0.23.0",
15
+ "@allyhub/slides-extension": "0.23.0",
16
+ "@allyhub/text-extension": "0.23.0",
17
+ "@allyhub/video-extension": "0.23.0",
18
+ "@allyhub/website-extension": "0.23.0",
19
+ "@allyhub/x-extension": "0.23.0"
20
20
  }
21
21
  }
package/dist/works.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect contrast","inspect seams","inspect loop","inspect combos","inspect uses","audio","add search","add","dev","export"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","export"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect uses","dev","export"],docs:["slides.md","blocks.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","inspect uses","dev","export"],docs:["docs.md","blocks.md"]},{name:"reports",title:"Making a report: a page written freely in HTML, read on a screen and sent as a link",commands:["report style list","report style show","check","dev","export"],docs:["reports.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect uses","sheet","run","check","dev","export"],docs:["sheets.md","blocks.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","export"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","export","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","export"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","export"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"setup",title:"This computer, the account, AllyHub's skills, this CLI's release and the project's formats",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions","upgrade","migrate"]}];export function withJoined(e,a){const t=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return t.length===0?e:{...e,commands:[...e.commands,...t]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(n=>n.cloud?.works??[])),s=e.cloud.works;return a.filter(n=>n.work!==!1&&(s===void 0?!t.has(n.name):s.includes(n.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,a);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(s=>s.name).join(", ")}`}
2
+ export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect contrast","inspect seams","inspect loop","inspect combos","inspect uses","audio","add search","add","dev","export"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","export"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect uses","dev","export"],docs:["slides.md","blocks.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","inspect uses","dev","export"],docs:["docs.md","blocks.md"]},{name:"reports",title:"Making a report: a page written freely in HTML, read on a screen and sent as a link",commands:["report style list","report style show","check","dev","export"],docs:["reports.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect uses","sheet","run","check","dev","export"],docs:["sheets.md","blocks.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","export"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","export","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","export"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","export"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"scheduled-tasks",title:"A prompt run at set times on your cloud computer, woken for it: each run a new chat, or a message in the chat it continues",commands:["schedule add","schedule list","schedule runs","schedule run","schedule edit","schedule pause","schedule resume","schedule remove"]},{name:"setup",title:"This computer, the account, AllyHub's skills, this CLI's release and the project's formats",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions","upgrade","migrate"]}];export function withJoined(e,a){const t=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return t.length===0?e:{...e,commands:[...e.commands,...t]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const t=new Set(WORKS.flatMap(n=>n.cloud?.works??[])),s=e.cloud.works;return a.filter(n=>n.work!==!1&&(s===void 0?!t.has(n.name):s.includes(n.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const t=cloudNouns(e,a);return t.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${t.map(s=>s.name).join(", ")}`}
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-DYLQlYDo.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-zku9oeG3.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-QPOni4XB.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-qNJmZ0b4.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-B7bZFHzS.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-BDlY4xos.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-Bbfj2q42.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DQ10-Otk.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-DYLQlYDo.js";
1
+ import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-B7bZFHzS.js";