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
package/dist/command.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CommandError as m,command as n}from"@allyhub/protocol/cli";export function defineCommand(o,r){return{spec:n(o),run:r}}export{m as CommandError};
2
+ import{CommandError as r,command as t}from"@allyhub/protocol/cli";export const inStudio=n=>{const o=n.ALLYHUB_STUDIO_HOST;return o!==void 0&&o!==""};export function defineCommand(n,o){return{spec:t(n),run:o}}export{r as CommandError};
@@ -1,7 +1,7 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{spawn as A}from"node:child_process";import{mkdir as T,open as C,readFile as v,rm as L,writeFile as P}from"node:fs/promises";import{dirname as w,join as f,resolve as _}from"node:path";import{fileURLToPath as $}from"node:url";import{z as l}from"zod";import{projectItems as N}from"@allyhub/build";import{openBrowser as b}from"@allyhub/cloud";import{startDevServer as y}from"@allyhub/dev-server";import{DEV_FILE as E}from"@allyhub/formats";import{EXIT as x}from"@allyhub/protocol";import{nodeCommand as G}from"@allyhub/runtimes/node";import{CommandError as c,defineCommand as M}from"../command.js";import{dir as F}from"../fields.js";import{itemNamed as U,projectRoot as B}from"../project.js";import{extensionsAt as H,fileEditorsAt as J,kindsAt as R}from"./extensions.js";export const PAGE=f(w($(import.meta.url)),"../../editor-web");const h=".allyhub/dev.log",V=f(w($(import.meta.url)),"../../bin/allyhub.js"),j=12e4,k=1e4,g=4340,Y=20;export async function start(t,e,n){const s={root:t,kinds:R(t),extensions:H(t),ui:PAGE,...n===void 0?{}:{exportsTo:()=>n}};if(e!==void 0)return y({...s,port:e}).catch(r=>{throw r.code==="EADDRINUSE"?new c("port-in-use",`Port ${String(e)} is in use.`,{hint:"Choose another with --port, or leave it out."}):r});for(let r=g;r<g+Y;r++)try{return await y({...s,port:r})}catch(o){if(o.code!=="EADDRINUSE")throw o}return y(s)}const D="allyhub dev";async function S(t){try{const e=JSON.parse(await v(f(t,E),"utf8"));return typeof e.url!="string"||typeof e.pid!="number"?void 0:(process.kill(e.pid,0),(await fetch(e.url,{signal:AbortSignal.timeout(2e3)})).ok?{url:e.url,pid:e.pid,mine:e.by===D}:void 0)}catch{return}}async function z(t){return(await S(t))?.url}function W(t){try{return process.kill(t,0),!0}catch{return!1}}const I=t=>new Promise(e=>setTimeout(e,t));async function X(t){return(await v(f(t,h),"utf8").catch(()=>"")).trim().split(`
2
+ import{spawn as O}from"node:child_process";import{mkdir as T,open as A,readFile as v,rm as C,writeFile as L}from"node:fs/promises";import{dirname as w,join as f,resolve as P}from"node:path";import{fileURLToPath as $}from"node:url";import{z as l}from"zod";import{projectItems as N}from"@allyhub/build";import{openBrowser as b}from"@allyhub/cloud";import{startDevServer as y}from"@allyhub/dev-server";import{DEV_FILE as E}from"@allyhub/formats";import{EXIT as x}from"@allyhub/protocol";import{nodeCommand as G}from"@allyhub/runtimes/node";import{CommandError as c,defineCommand as M}from"../command.js";import{dir as F}from"../fields.js";import{itemNamed as U,projectRoot as B}from"../project.js";import{extensionsAt as H,fileEditorsAt as J,kindsAt as I}from"./extensions.js";export const PAGE=f(w($(import.meta.url)),"../../editor-web");const h=".allyhub/dev.log",V=f(w($(import.meta.url)),"../../bin/allyhub.js"),R=12e4,_=1e4,g=4340,Y=20;export async function start(t,e,n){const s={root:t,kinds:I(t),extensions:H(t),ui:PAGE,...n===void 0?{}:{exportsTo:()=>n}};if(e!==void 0)return y({...s,port:e}).catch(r=>{throw r.code==="EADDRINUSE"?new c("port-in-use",`Port ${String(e)} is in use.`,{hint:"Choose another with --port, or leave it out."}):r});for(let r=g;r<g+Y;r++)try{return await y({...s,port:r})}catch(o){if(o.code!=="EADDRINUSE")throw o}return y(s)}const j="allyhub dev";async function S(t){try{const e=JSON.parse(await v(f(t,E),"utf8"));return typeof e.url!="string"||typeof e.pid!="number"?void 0:(process.kill(e.pid,0),(await fetch(e.url,{signal:AbortSignal.timeout(2e3)})).ok?{url:e.url,pid:e.pid,mine:e.by===j}:void 0)}catch{return}}async function z(t){return(await S(t))?.url}function W(t){try{return process.kill(t,0),!0}catch{return!1}}const k=t=>new Promise(e=>setTimeout(e,t));async function X(t){return(await v(f(t,h),"utf8").catch(()=>"")).trim().split(`
3
3
  `).slice(-20).join(`
4
- `)}async function q(t,e,n,s,r){const o=f(t,h);await T(w(o),{recursive:!0});const d=await C(o,"w");let i,a;try{const u=A(G(n),[V,"dev","--foreground","--no-open","--dir",t,...s===void 0?[]:["--port",String(s)],...r===void 0?[]:["--exports",r]],{cwd:e,env:{...n,ALLYHUB_NO_LOCAL:"1"},detached:!0,stdio:["ignore",d.fd,d.fd],windowsHide:!0});u.once("error",m=>{i=m.message}),u.once("exit",(m,O)=>{i=O??`exit code ${String(m)}`}),u.unref(),a=u.pid}finally{await d.close()}const p=Date.now()+j;for(;Date.now()<p&&i===void 0;){const u=await S(t);if(u!==void 0&&u.pid===a)return u.url;await I(150)}throw i===void 0&&a!==void 0&&process.kill(a,"SIGTERM"),new c("dev-failed",i===void 0?`allyhub dev did not answer within ${String(j/1e3)} s.`:`allyhub dev stopped as it started (${i}).`,{hint:`What it said, in ${h}:
5
- ${await X(t)||"(nothing)"}`})}async function K(t){const e=await S(t);if(e===void 0)return;if(!e.mine)throw new c("not-dev",`The server at ${e.url} is not one this allyhub dev started (it is AllyHub Studio's, or an older allyhub's), so it is left running.`,{hint:"Studio's stops with its project; an older allyhub dev stops with Ctrl+C where it runs."});process.kill(e.pid,"SIGTERM");const n=Date.now()+k;for(;W(e.pid);){if(Date.now()>n)throw new c("dev-stuck",`allyhub dev (process ${String(e.pid)}) did not stop within ${String(k/1e3)} s.`,{hint:`Stop it with: kill -9 ${String(e.pid)}`});await I(100)}return e.url}export async function pageOn(t,e,n,s){if(s===void 0)return n;const{listed:r}=await N(t,R(t),void 0,J(t)),o=U(r,t,e,s);if(!o)throw new c("not-found",`There is no item ${s} in the project's list.`,{exit:x.notFound,hint:`Its items: ${r.map(d=>d.id).join(", ")||"none"} (allyhub.yaml lists them).`});return`${n}?${new URLSearchParams({item:o.id}).toString()}`}export const dev=M({name:"dev",summary:"The project's items in the browser, each in its editor (docs, sheets, videos, 3D sceneries; websites listed), as their files change; serves from a process of its own until --stop, which outlives the shell that started it, and run again while it runs, opens its page and ends",input:l.strictObject({item:l.string().optional().describe("Open the page on this item: its id (its file without its extension) or its file; or on a file the list names with no kind, which an editor opens by its name (a canvas)"),dir:F,port:l.number().int().min(1).max(65535).optional().describe(`The port; default the first free one from ${String(g)}`),open:l.boolean().default(!0).describe("Open the page in the browser; --no-open only prints it"),foreground:l.boolean().default(!1).describe(`Serve from this process until Ctrl+C; default a detached process of its own, its output in ${h}`),stop:l.boolean().default(!1).describe("Stop the project's running allyhub dev"),exports:l.string().min(1).optional().describe("The folder an export from the page is saved in; default ~/Downloads (each file is made in .allyhub/out/ first)")}),positional:["item"],output:l.strictObject({url:l.string().optional().describe("The page; with --stop, the one stopped, none when none ran")}),examples:["allyhub dev","allyhub dev launch/plan","allyhub dev --port 4400 --no-open","allyhub dev --stop"]},async(t,e)=>{const n=await B(e.cwd,t.dir);if(t.stop){const i=await K(n);return e.progress(i===void 0?"No allyhub dev runs for this project.":`Stopped allyhub dev at ${i}`),{value:i===void 0?{}:{url:i},text:""}}const s=t.port===void 0?await z(n):void 0;if(s!==void 0){const i=await pageOn(n,e.cwd,s,t.item);return e.progress(`allyhub dev is already running at ${i}`),t.open&&b(i,e.env),{value:{url:i},text:""}}const r=t.exports===void 0?void 0:_(e.cwd,t.exports);if(!t.foreground){const i=await q(n,e.cwd,e.env,t.port,r),a=await pageOn(n,e.cwd,i,t.item);return e.progress(`allyhub dev is at ${a}
6
- It runs until allyhub dev --stop; what it says is in ${h}.`),t.open&&b(a,e.env),{value:{url:a},text:""}}const o=await start(n,t.port,r),d=f(n,E);try{const i=await pageOn(n,e.cwd,o.url,t.item);return await T(w(d),{recursive:!0}),await P(d,JSON.stringify({url:o.url,pid:process.pid,token:o.token,by:D})),e.progress(`allyhub dev is at ${i}
7
- Press Ctrl+C to stop.`),t.open&&b(i,e.env),await new Promise(a=>{const p=()=>{process.off("SIGTERM",p),e.signal.removeEventListener("abort",p),a()};e.signal.aborted&&a(),e.signal.addEventListener("abort",p),process.once("SIGTERM",p)}),{value:{url:i},text:""}}finally{(await v(d,"utf8").catch(()=>"")).includes(`"pid":${String(process.pid)}`)&&await L(d,{force:!0}),await o.close(),await o.project.extensions?.deactivate()}});
4
+ `)}async function q(t,e,n,s,r){const o=f(t,h);await T(w(o),{recursive:!0});const d=await A(o,"w");let i,a;try{const u=O(G(n),[V,"dev","--foreground","--no-open","--dir",t,...s===void 0?[]:["--port",String(s)],...r===void 0?[]:["--exports",r]],{cwd:e,env:{...n,ALLYHUB_NO_LOCAL:"1"},detached:!0,stdio:["ignore",d.fd,d.fd],windowsHide:!0});u.once("error",m=>{i=m.message}),u.once("exit",(m,D)=>{i=D??`exit code ${String(m)}`}),u.unref(),a=u.pid}finally{await d.close()}const p=Date.now()+R;for(;Date.now()<p&&i===void 0;){const u=await S(t);if(u!==void 0&&u.pid===a)return u.url;await k(150)}throw i===void 0&&a!==void 0&&process.kill(a,"SIGTERM"),new c("dev-failed",i===void 0?`allyhub dev did not answer within ${String(R/1e3)} s.`:`allyhub dev stopped as it started (${i}).`,{hint:`What it said, in ${h}:
5
+ ${await X(t)||"(nothing)"}`})}async function K(t){const e=await S(t);if(e===void 0)return;if(!e.mine)throw new c("not-dev",`The server at ${e.url} is not one this allyhub dev started (it is AllyHub Studio's, or an older allyhub's), so it is left running.`,{hint:"Studio's stops with its project; an older allyhub dev stops with Ctrl+C where it runs."});process.kill(e.pid,"SIGTERM");const n=Date.now()+_;for(;W(e.pid);){if(Date.now()>n)throw new c("dev-stuck",`allyhub dev (process ${String(e.pid)}) did not stop within ${String(_/1e3)} s.`,{hint:`Stop it with: kill -9 ${String(e.pid)}`});await k(100)}return e.url}export async function pageOn(t,e,n,s){if(s===void 0)return n;const{listed:r}=await N(t,I(t),void 0,J(t)),o=U(r,t,e,s);if(!o)throw new c("not-found",`There is no item ${s} in the project's list.`,{exit:x.notFound,hint:`Its items: ${r.map(d=>d.id).join(", ")||"none"} (allyhub.yaml lists them).`});return`${n}?${new URLSearchParams({item:o.id}).toString()}`}export const dev={...M({name:"dev",summary:"The project's items in the browser, each in its editor (docs, sheets, videos, 3D sceneries; websites listed), as their files change; serves from a process of its own until --stop, which outlives the shell that started it, and run again while it runs, opens its page and ends",input:l.strictObject({item:l.string().optional().describe("Open the page on this item: its id (its file without its extension) or its file; or on a file the list names with no kind, which an editor opens by its name (a canvas)"),dir:F,port:l.number().int().min(1).max(65535).optional().describe(`The port; default the first free one from ${String(g)}`),open:l.boolean().default(!0).describe("Open the page in the browser; --no-open only prints it"),foreground:l.boolean().default(!1).describe(`Serve from this process until Ctrl+C; default a detached process of its own, its output in ${h}`),stop:l.boolean().default(!1).describe("Stop the project's running allyhub dev"),exports:l.string().min(1).optional().describe("The folder an export from the page is saved in; default ~/Downloads (each file is made in .allyhub/out/ first)")}),positional:["item"],output:l.strictObject({url:l.string().optional().describe("The page; with --stop, the one stopped, none when none ran")}),examples:["allyhub dev","allyhub dev launch/plan","allyhub dev --port 4400 --no-open","allyhub dev --stop"]},async(t,e)=>{const n=await B(e.cwd,t.dir);if(t.stop){const i=await K(n);return e.progress(i===void 0?"No allyhub dev runs for this project.":`Stopped allyhub dev at ${i}`),{value:i===void 0?{}:{url:i},text:""}}const s=t.port===void 0?await z(n):void 0;if(s!==void 0){const i=await pageOn(n,e.cwd,s,t.item);return e.progress(`allyhub dev is already running at ${i}`),t.open&&b(i,e.env),{value:{url:i},text:""}}const r=t.exports===void 0?void 0:P(e.cwd,t.exports);if(!t.foreground){const i=await q(n,e.cwd,e.env,t.port,r),a=await pageOn(n,e.cwd,i,t.item);return e.progress(`allyhub dev is at ${a}
6
+ It runs until allyhub dev --stop; what it says is in ${h}.`),t.open&&b(a,e.env),{value:{url:a},text:""}}const o=await start(n,t.port,r),d=f(n,E);try{const i=await pageOn(n,e.cwd,o.url,t.item);return await T(w(d),{recursive:!0}),await L(d,JSON.stringify({url:o.url,pid:process.pid,token:o.token,by:j})),e.progress(`allyhub dev is at ${i}
7
+ Press Ctrl+C to stop.`),t.open&&b(i,e.env),await new Promise(a=>{const p=()=>{process.off("SIGTERM",p),e.signal.removeEventListener("abort",p),a()};e.signal.aborted&&a(),e.signal.addEventListener("abort",p),process.once("SIGTERM",p)}),{value:{url:i},text:""}}finally{(await v(d,"utf8").catch(()=>"")).includes(`"pid":${String(process.pid)}`)&&await C(d,{force:!0}),await o.close(),await o.project.extensions?.deactivate()}}),notInStudio:"In Studio, use present_item_or_file_to_person to show an item to the person."};
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CLOUD_SOURCE as l}from"./cloud-tools.js";import{EXTENSIONS_SOURCE as d,builtInCommands as y}from"./contributed.js";import{inspectListingViews as u}from"./inspect/index.js";import{VIEWS_SOURCE as f,builtInViews as S}from"./inspect/views.js";import{extensions as C}from"./found-extensions.js";const a=t=>async()=>((await C()).builtInExtensions(),t());export const COMMAND_MODULES=[a(async()=>[(await import("./check.js")).check]),a(async()=>[(await import("./migrate.js")).migrate]),a(async()=>[(await import("./run.js")).run]),a(async()=>[(await import("./inspect/facts.js")).inspect]),a(async()=>[(await import("./inspect/layout.js")).inspectLayout]),a(async()=>[(await import("./inspect/combos.js")).inspectCombos]),a(async()=>[(await import("./inspect/uses.js")).inspectUses]),a(async()=>[(await import("./export.js")).exportFiles]),a(async()=>(await import("./frames.js")).FRAMES_COMMANDS),a(async()=>[(await import("./dev.js")).dev]),a(async()=>{const{add:t,addSearch:i}=await import("./add.js");return[t,i]}),async()=>{const{skills:t,skillsShow:i}=await import("./skills.js");return[t,i]},a(async()=>[(await import("./align.js")).align]),async()=>{const{authLogin:t,authStatus:i}=await import("./auth.js");return[t,i]},async()=>{const{orgsList:t,orgsUse:i}=await import("./orgs.js");return[t,i]},async()=>[(await import("./cloud-tools.js")).upload],async()=>(await import("./mail.js")).MAIL_COMMANDS,a(async()=>[(await import("./doctor.js")).doctor]),a(async()=>[(await import("./extensions.js")).doctorExtensions]),async()=>[(await import("./upgrade.js")).upgrade]],COMMAND_SOURCES=[l,d,f];let m;export function allCommandsFrom(){return m??=(async()=>{const t=(await Promise.all(COMMAND_MODULES.map(async(n,p)=>(await n()).map(w=>({command:w,from:p}))))).flat(),[i,e]=await Promise.all([S(),y()]),r=t.findIndex(n=>n.command.spec.name==="inspect"),o=t[r],s=t.filter(n=>n.command.spec.name.startsWith("inspect "));if(o===void 0||s.length===0)throw new Error("The CLI's own commands have no inspect.");const c=t.indexOf(s[s.length-1]??o)+1;return[...t.slice(0,r),{...o,command:u(o.command,[...s.map(n=>n.command),...i])},...t.slice(r+1,c),...i.map(n=>({command:n,from:"view"})),...t.slice(c),...e.map(n=>({command:n,from:"contributed"}))]})(),m}export async function allCommands(){return(await allCommandsFrom()).map(t=>t.command)}
2
+ import{CLOUD_SOURCE as l}from"./cloud-tools.js";import{EXTENSIONS_SOURCE as d,builtInCommands as y}from"./contributed.js";import{inspectListingViews as u}from"./inspect/index.js";import{VIEWS_SOURCE as S,builtInViews as f}from"./inspect/views.js";import{extensions as C}from"./found-extensions.js";const a=t=>async()=>((await C()).builtInExtensions(),t());export const COMMAND_MODULES=[a(async()=>[(await import("./check.js")).check]),a(async()=>[(await import("./migrate.js")).migrate]),a(async()=>[(await import("./run.js")).run]),a(async()=>[(await import("./inspect/facts.js")).inspect]),a(async()=>[(await import("./inspect/layout.js")).inspectLayout]),a(async()=>[(await import("./inspect/combos.js")).inspectCombos]),a(async()=>[(await import("./inspect/uses.js")).inspectUses]),a(async()=>[(await import("./export.js")).exportFiles]),a(async()=>(await import("./frames.js")).FRAMES_COMMANDS),a(async()=>[(await import("./dev.js")).dev]),a(async()=>{const{add:t,addSearch:i}=await import("./add.js");return[t,i]}),async()=>{const{skills:t,skillsShow:i}=await import("./skills.js");return[t,i]},a(async()=>[(await import("./align.js")).align]),async()=>{const{authLogin:t,authStatus:i}=await import("./auth.js");return[t,i]},async()=>{const{orgsList:t,orgsUse:i}=await import("./orgs.js");return[t,i]},async()=>[(await import("./cloud-tools.js")).upload],async()=>(await import("./mail.js")).MAIL_COMMANDS,async()=>(await import("./schedule.js")).SCHEDULE_COMMANDS,a(async()=>[(await import("./doctor.js")).doctor]),a(async()=>[(await import("./extensions.js")).doctorExtensions]),async()=>[(await import("./upgrade.js")).upgrade]],COMMAND_SOURCES=[l,d,S];let m;export function allCommandsFrom(){return m??=(async()=>{const t=(await Promise.all(COMMAND_MODULES.map(async(n,p)=>(await n()).map(w=>({command:w,from:p}))))).flat(),[i,e]=await Promise.all([f(),y()]),r=t.findIndex(n=>n.command.spec.name==="inspect"),o=t[r],s=t.filter(n=>n.command.spec.name.startsWith("inspect "));if(o===void 0||s.length===0)throw new Error("The CLI's own commands have no inspect.");const c=t.indexOf(s[s.length-1]??o)+1;return[...t.slice(0,r),{...o,command:u(o.command,[...s.map(n=>n.command),...i])},...t.slice(r+1,c),...i.map(n=>({command:n,from:"view"})),...t.slice(c),...e.map(n=>({command:n,from:"contributed"}))]})(),m}export async function allCommands(){return(await allCommandsFrom()).map(t=>t.command)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readFile as p}from"node:fs/promises";import{describeCommand as f}from"@allyhub/protocol/cli";import{CLI_VERSION as t}from"../cli-version.js";import{commandHelp as d}from"../help.js";import{builtInCommand as w,builtInSpecs as l}from"./contributed.js";import{COMMAND_MODULES as y,allCommands as b,allCommandsFrom as h}from"./index.js";import{builtInView as x}from"./inspect/views.js";export const LIST_NAME="commands.json";const o=new URL(`../${LIST_NAME}`,import.meta.url),I=(n,e)=>e.filter(a=>a.name.startsWith(`${n} `));export function commandEntry(n,e){const a=f(n.spec);return{name:n.spec.name,summary:n.spec.summary,spec:a,described:{...a,...n.about?.value},help:d(n.spec,n.about?.lines,I(n.spec.name,e)),command:()=>Promise.resolve(n)}}export function entriesOf(n){const e=n.map(a=>a.spec);return n.map(a=>commandEntry(a,e))}async function m(){return(await l()).map(n=>({name:n.name,summary:n.summary,...n.work===void 0?{}:{work:n.work}}))}export async function commandList(){const n=await h(),e=n.map(a=>a.command.spec);return{version:t,joined:await m(),commands:n.map(({command:a,from:c})=>{const r=commandEntry(a,e);return{name:r.name,summary:r.summary,spec:r.spec,...a.about?.value===void 0?{}:{about:a.about.value},help:r.help,from:c}})}}async function L(n){const e=typeof n.from=="number"?(await y[n.from]?.())?.find(a=>a.spec.name===n.name):n.from==="view"?await x(n.name):await w(n.name);if(e===void 0)throw new Error(`The CLI's list of commands (${o.pathname}) names ${n.name}, which its code has not: build the CLI again.`);return e}let i;function s(){return i??=(async()=>{const n=await p(o,"utf8").catch(()=>{});if(n===void 0)return;const e=JSON.parse(n);return e.version===t&&e.commands!==void 0?{commands:e.commands,joined:e.joined??[]}:void 0})(),i}export async function joinedCommands(){return(await s())?.joined??await m()}let u;export function commandEntries(){return u??=(async()=>{const n=(await s())?.commands;return n===void 0?entriesOf(await b()):n.map(e=>{let a;return{name:e.name,summary:e.summary,spec:e.spec,described:{...e.spec,...e.about},help:e.help,command:()=>a??=L(e)}})})(),u}
2
+ import{readFile as d}from"node:fs/promises";import{describeCommand as p}from"@allyhub/protocol/cli";import{CLI_VERSION as a}from"../cli-version.js";import{commandHelp as f}from"../help.js";import{builtInCommand as w,builtInSpecs as I}from"./contributed.js";import{COMMAND_MODULES as y,allCommands as l,allCommandsFrom as S}from"./index.js";import{builtInView as b}from"./inspect/views.js";export const LIST_NAME="commands.json";const r=new URL(`../${LIST_NAME}`,import.meta.url),h=(n,e)=>e.filter(t=>t.name.startsWith(`${n} `));export function commandEntry(n,e){const t=p(n.spec);return{name:n.spec.name,summary:n.spec.summary,spec:t,described:{...t,...n.about?.value},help:f(n.spec,n.about?.lines,h(n.spec.name,e)),...n.notInStudio===void 0?{}:{notInStudio:n.notInStudio},command:()=>Promise.resolve(n)}}export function entriesOf(n){const e=n.map(t=>t.spec);return n.map(t=>commandEntry(t,e))}async function m(){return(await I()).map(n=>({name:n.name,summary:n.summary,...n.work===void 0?{}:{work:n.work}}))}export async function commandList(){const n=await S(),e=n.map(t=>t.command.spec);return{version:a,joined:await m(),commands:n.map(({command:t,from:c})=>{const o=commandEntry(t,e);return{name:o.name,summary:o.summary,spec:o.spec,...t.about?.value===void 0?{}:{about:t.about.value},help:o.help,...o.notInStudio===void 0?{}:{notInStudio:o.notInStudio},from:c}})}}async function x(n){const e=typeof n.from=="number"?(await y[n.from]?.())?.find(t=>t.spec.name===n.name):n.from==="view"?await b(n.name):await w(n.name);if(e===void 0)throw new Error(`The CLI's list of commands (${r.pathname}) names ${n.name}, which its code has not: build the CLI again.`);return e}let i;function u(){return i??=(async()=>{const n=await d(r,"utf8").catch(()=>{});if(n===void 0)return;const e=JSON.parse(n);return e.version===a&&e.commands!==void 0?{commands:e.commands,joined:e.joined??[]}:void 0})(),i}export async function joinedCommands(){return(await u())?.joined??await m()}let s;export function commandEntries(){return s??=(async()=>{const n=(await u())?.commands;return n===void 0?entriesOf(await l()):n.map(e=>{let t;return{name:e.name,summary:e.summary,spec:e.spec,described:{...e.spec,...e.about},help:e.help,...e.notInStudio===void 0?{}:{notInStudio:e.notInStudio},command:()=>t??=x(e)}})})(),s}
@@ -0,0 +1,4 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readFile as b}from"node:fs/promises";import{resolve as y}from"node:path";import{z as t}from"zod";import{changeScheduledTask as h,createScheduledTask as k,listRunsOfScheduledTask as v,listScheduledTasks as x,removeScheduledTask as j,runScheduledTaskNow as O}from"@allyhub/cloud";import{EXIT as m}from"@allyhub/protocol/cli";import{CommandError as p,defineCommand as a}from"../command.js";import{cloudOf as i,cloudWork as r}from"./cloud.js";const d=t.looseObject({id:t.string(),name:t.string(),nextRunAt:t.string().nullable()}),A=t.looseObject({id:t.string(),status:t.string()}),R=e=>e.cron!==null?`${e.cron} (${e.timeZone})`:`at ${e.at??"?"} (${e.timeZone})`,u=e=>[e.id,e.name,R(e),e.conversationId===null?"":`continues chat ${e.conversationId}`,e.paused?"paused":e.nextRunAt===null?"runs no more":`next ${e.nextRunAt}`,e.lastRun===null?"":`last ${e.lastRun.dueAt} ${e.lastRun.status}${e.lastRun.reason===null?"":`: ${e.lastRun.reason}`}`].filter(n=>n!=="").join(" "),I=e=>[e.dueAt,e.status,e.reason??"",e.conversationId===null?"":`chat ${e.conversationId}`,e.folder??"",e.stopReason===null?"":`ended ${e.stopReason}`].filter(n=>n!=="").join(" "),f={name:t.string().optional().describe("Its name: the list and each run's chat title say it"),prompt:t.string().optional().describe("The first message of each run; or --prompt-file"),promptFile:t.string().optional().describe("A file holding the prompt"),cron:t.string().optional().describe('When it runs: a 5-field cron expression (minute hour day month weekday), e.g. "0 8 * * 1" for Mondays at 8:00'),at:t.string().optional().describe("Or the one time it runs, ISO 8601 with its offset"),timeZone:t.string().optional().describe("The IANA time zone its cron is read in; where none is given, where the person is, as their window last said (UTC where none said)"),ends:t.string().optional().describe("No run after this time, ISO 8601 with its offset"),project:t.string().optional().describe("The project (its id) a run's chat is in; a chat in no project where none is given"),agent:t.string().optional().describe("The agent a run uses; the computer's first where none is given"),model:t.string().optional().describe("The model a run's chat is put on, where its agent offers it")};async function g(e,n){if(e.prompt!==void 0&&e.promptFile!==void 0)throw new p("two-prompts","Give the prompt with --prompt or --prompt-file, not both.",{exit:m.usage});return e.prompt??(e.promptFile===void 0?void 0:await b(y(n.cwd,e.promptFile),"utf8"))}export const scheduleList=a({name:"schedule list",summary:"Your scheduled tasks, the latest made first: each with when it runs, its next run and its last",input:t.strictObject({}),output:t.looseObject({tasks:t.array(d)}),examples:["allyhub schedule list"]},(e,n)=>r(async()=>{const s=await x(i(n));return{value:{tasks:s},text:s.length===0?"No scheduled tasks.":s.map(u).join(`
3
+ `)}}));const T=a({name:"schedule add",summary:"Schedule a prompt: each run is a new chat on your cloud computer, which is resumed for it at the organization's cost",input:t.strictObject({...f,paused:t.boolean().optional().describe("Made paused: it runs only when run with `schedule run`")}),output:d,examples:['allyhub schedule add --name "Complaint tracker" --prompt-file tracker.md --cron "0 8 * * 1" --time-zone America/Los_Angeles','allyhub schedule add --name "Launch check" --prompt "Check the launch page." --at 2026-12-01T09:00:00-08:00']},(e,n)=>r(async()=>{const s=await g(e,n);if(e.name===void 0||s===void 0)throw new p("missing","A task needs --name and --prompt (or --prompt-file).",{exit:m.usage});const o=await k(i(n),{name:e.name,prompt:s,...e.cron===void 0?{}:{cron:e.cron},...e.at===void 0?{}:{at:e.at},...e.timeZone===void 0?{}:{timeZone:e.timeZone},...e.ends===void 0?{}:{endsAt:e.ends},...e.project===void 0?{}:{projectId:e.project},...e.agent===void 0?{}:{agentId:e.agent},...e.model===void 0?{}:{model:e.model},...e.paused===void 0?{}:{paused:e.paused}});return{value:o,text:u(o)}}));export const scheduleAdd={...T,about:{lines:["Each run is a new chat, its first message the prompt, titled with the task's name and the day it ran. Its organization pays for it: the computer's time and the agent's calls.","A task whose runs continue a chat, each a message in it, is made from that chat on the cloud computer, with Studio's tool schedule_task_from_this_chat.","Runs are at least 60 minutes apart. A person has at most 1 task in an organization on no plan and 50 on a plan, paused ones counted (the services' defaults: a refusal says the values that hold).","A run is skipped while a turn of the task's run before (of the chat it continues) is not over, and where it could not start within a day of its time. A question the agent asks in a run's turn is cancelled after five minutes with no answer."]}};const c=t.string().describe("The task's id, as `schedule list` gives it");export const scheduleEdit=a({name:"schedule edit",summary:"Change a scheduled task: what you leave out stays; a --cron removes its --at, and an --at its --cron",input:t.strictObject({id:c,...f,noEnd:t.boolean().optional().describe("It ends no more"),noProject:t.boolean().optional().describe("Its runs' chats in no project"),newChat:t.boolean().optional().describe("Each run a new chat again, continuing none")}),positional:["id"],output:d,examples:['allyhub schedule edit 3f2c… --cron "0 9 * * 1-5"']},(e,n)=>r(async()=>{const s=await g(e,n),o={...e.name===void 0?{}:{name:e.name},...s===void 0?{}:{prompt:s},...e.cron===void 0?{}:{cron:e.cron},...e.at===void 0?{}:{at:e.at},...e.timeZone===void 0?{}:{timeZone:e.timeZone},...e.noEnd===!0?{endsAt:null}:e.ends===void 0?{}:{endsAt:e.ends},...e.noProject===!0?{projectId:null}:e.project===void 0?{}:{projectId:e.project},...e.agent===void 0?{}:{agentId:e.agent},...e.newChat===!0?{conversationId:null}:{},...e.model===void 0?{}:{model:e.model}},l=await h(i(n),e.id,o);return{value:l,text:u(l)}}));const w=e=>(n,s)=>r(async()=>{const o=await h(i(s),n.id,{paused:e});return{value:o,text:u(o)}});export const schedulePause=a({name:"schedule pause",summary:"Pause a scheduled task: kept, not run",input:t.strictObject({id:c}),positional:["id"],output:d,examples:["allyhub schedule pause 3f2c…"]},w(!0)),scheduleResume=a({name:"schedule resume",summary:"Run a paused task at its times again, from its next one",input:t.strictObject({id:c}),positional:["id"],output:d,examples:["allyhub schedule resume 3f2c…"]},w(!1)),scheduleRemove=a({name:"schedule remove",summary:"Remove a scheduled task; the chats of its runs stay",input:t.strictObject({id:c}),positional:["id"],output:t.looseObject({removed:t.boolean()}),examples:["allyhub schedule remove 3f2c…"]},(e,n)=>r(async()=>(await j(i(n),e.id),{value:{removed:!0},text:`Removed ${e.id}.`}))),scheduleRun=a({name:"schedule run",summary:"Run a scheduled task now, paused or not; its times after are as they were",input:t.strictObject({id:c}),positional:["id"],output:d,examples:["allyhub schedule run 3f2c…"]},(e,n)=>r(async()=>{const s=await O(i(n),e.id);return{value:s,text:u(s)}})),scheduleRuns=a({name:"schedule runs",summary:"A scheduled task's latest runs, the latest first: each its time, status, why it failed or was skipped, and its chat",input:t.strictObject({id:c}),positional:["id"],output:t.looseObject({runs:t.array(A)}),examples:["allyhub schedule runs 3f2c…"]},(e,n)=>r(async()=>{const s=await v(i(n),e.id);return{value:{runs:s},text:s.length===0?"No runs yet.":s.map(I).join(`
4
+ `)}})),SCHEDULE_COMMANDS=[scheduleList,scheduleAdd,scheduleEdit,schedulePause,scheduleResume,scheduleRemove,scheduleRun,scheduleRuns];