allyhub 0.21.0 → 0.22.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 (222) hide show
  1. package/dist/commands/export.js +1 -1
  2. package/dist/commands/index.js +1 -1
  3. package/dist/commands/run.js +2 -0
  4. package/dist/commands.json +1 -1
  5. package/dist/main.js +4 -4
  6. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  7. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  8. package/dist/node_modules/@allyhub/blocks/package.json +1 -1
  9. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  10. package/dist/node_modules/@allyhub/build/dist/migrate.js +1 -1
  11. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  12. package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
  13. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  14. package/dist/node_modules/@allyhub/build/package.json +1 -1
  15. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  16. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  17. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  18. package/dist/node_modules/@allyhub/check/package.json +1 -1
  19. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  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/dist/index.js +1 -1
  23. package/dist/node_modules/@allyhub/dev-server/dist/record.js +2 -1
  24. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  25. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  26. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  27. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  28. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  29. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  30. package/dist/node_modules/@allyhub/export/package.json +1 -1
  31. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  32. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  33. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +3 -3
  34. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +151 -151
  35. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +173 -173
  36. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +1 -2
  37. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  38. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  40. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +2 -0
  41. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  42. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +106 -101
  43. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +26 -1
  45. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +1 -1
  46. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  47. package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
  48. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  49. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  50. package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
  51. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  52. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  53. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  54. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  55. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  56. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  57. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
  58. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  59. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  60. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  61. package/dist/node_modules/@allyhub/media/package.json +1 -1
  62. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  63. package/dist/node_modules/@allyhub/model/package.json +1 -1
  64. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  65. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  66. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  67. package/dist/node_modules/@allyhub/project/package.json +1 -1
  68. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  69. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  70. package/dist/node_modules/@allyhub/render/package.json +1 -1
  71. package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
  72. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  73. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  74. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -6
  75. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  76. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  77. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  78. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  79. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  80. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  81. package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
  82. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  83. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  84. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -2
  85. package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
  86. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  87. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  88. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  89. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  90. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  91. package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
  92. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  93. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  94. package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
  95. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  96. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  97. package/dist/node_modules/@allyhub/website/package.json +1 -1
  98. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  99. package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
  100. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  101. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  102. package/dist/package.json +15 -15
  103. package/dist/run-register.js +2 -0
  104. package/dist/works.js +1 -1
  105. package/editor-web/assets/{abnfDiagram-WEYOIA3C-B4tvwU6C.js → abnfDiagram-WEYOIA3C-D6qI3rai.js} +1 -1
  106. package/editor-web/assets/{architecture-WOLXFQ4H-V2fA0vY2.js → architecture-WOLXFQ4H-B3V6ggq8.js} +1 -1
  107. package/editor-web/assets/{architectureDiagram-ZHVYKT53-B6B7XN0M.js → architectureDiagram-ZHVYKT53-IauNyxXn.js} +1 -1
  108. package/editor-web/assets/{article-DW4eD_8K.js → article-BHjKp5We.js} +1 -1
  109. package/editor-web/assets/{article-Dm2dIEwc.js → article-BlNKv1Cn.js} +1 -1
  110. package/editor-web/assets/{blockDiagram-RJAE7QA3-BizcUGOM.js → blockDiagram-RJAE7QA3-yXhlfxbH.js} +1 -1
  111. package/editor-web/assets/{c4Diagram-XDPPPE54-CBHS0dQ0.js → c4Diagram-XDPPPE54-B-anrhvt.js} +1 -1
  112. package/editor-web/assets/{calc-worker-Cr4a0xmt.js → calc-worker-BpAgQE9E.js} +3 -3
  113. package/editor-web/assets/channel-Bhb-_8v6.js +1 -0
  114. package/editor-web/assets/{chip-BdQRH3FL.js → chip-pNQlYa2W.js} +1 -1
  115. package/editor-web/assets/{chunk-2E7WHVMD-CMPBck_Q.js → chunk-2E7WHVMD-QPOni4XB.js} +1 -1
  116. package/editor-web/assets/{chunk-4EMNKR2T-Df22Adpt.js → chunk-4EMNKR2T-DG1FCRRI.js} +1 -1
  117. package/editor-web/assets/{chunk-55XCU76K-CYrZ6_Q7.js → chunk-55XCU76K-mKuMXpnC.js} +1 -1
  118. package/editor-web/assets/{chunk-7S6XSTFO-BfdG9NNW.js → chunk-7S6XSTFO-CgZAazgt.js} +1 -1
  119. package/editor-web/assets/{chunk-AQDTSKZB-BCzZMoTJ.js → chunk-AQDTSKZB-BRU84phF.js} +1 -1
  120. package/editor-web/assets/{chunk-DSNLSHJZ-DT0xT8Wf.js → chunk-DSNLSHJZ-zku9oeG3.js} +1 -1
  121. package/editor-web/assets/{chunk-HAGFOTED-Bg3-EotU.js → chunk-HAGFOTED-CaUkBv_0.js} +1 -1
  122. package/editor-web/assets/{chunk-HNE4Q36P-BrSym24V.js → chunk-HNE4Q36P-BQz4ZCJf.js} +1 -1
  123. package/editor-web/assets/{chunk-NQOKRVIF-CMxgkJWF.js → chunk-NQOKRVIF-CHVBEDkg.js} +1 -1
  124. package/editor-web/assets/{chunk-UHW7PFBP-DWEwoyPy.js → chunk-UHW7PFBP-DrYeJo1e.js} +1 -1
  125. package/editor-web/assets/{chunk-VQ5W62QI-eTFh5_T9.js → chunk-VQ5W62QI-D8ToVCUe.js} +1 -1
  126. package/editor-web/assets/{chunk-WQQL4CDK-4PTupr9T.js → chunk-WQQL4CDK-DZ0tyi9F.js} +1 -1
  127. package/editor-web/assets/{chunk-YZO67HFG-D5XAAFWm.js → chunk-YZO67HFG-BLe7PXER.js} +1 -1
  128. package/editor-web/assets/{chunk-ZAUX2LTX-CPsdaisO.js → chunk-ZAUX2LTX-ByaeSIre.js} +1 -1
  129. package/editor-web/assets/{chunk-ZCHMQSOR-ClnuUyfy.js → chunk-ZCHMQSOR-DdMJr_t5.js} +1 -1
  130. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CM21waNF.js → classDiagram-v2-4MYWR3UA-DDpq7fFC.js} +1 -1
  131. package/editor-web/assets/{color-picker-BmKFn2ww.js → color-picker-CDeICDN5.js} +1 -1
  132. package/editor-web/assets/{cynefin-EF2NZ3EQ-CJUHTgee.js → cynefin-EF2NZ3EQ-CMivy2fr.js} +1 -1
  133. package/editor-web/assets/{cynefinDiagram-WF24UDRP-C9RIfuIV.js → cynefinDiagram-WF24UDRP-GtxT_9wW.js} +1 -1
  134. package/editor-web/assets/{dagre-NK4GIZVX-g-01KdpO.js → dagre-NK4GIZVX-Bn1O2Hjl.js} +1 -1
  135. package/editor-web/assets/deck-Cohd-G5m.js +1 -0
  136. package/editor-web/assets/{diagram-CBK3MWTC-CbOjWUu-.js → diagram-CBK3MWTC-W715PWZw.js} +1 -1
  137. package/editor-web/assets/{diagram-I5XIIV2D-C6psNS8J.js → diagram-I5XIIV2D-BKObZPn2.js} +1 -1
  138. package/editor-web/assets/{diagram-ODIL2UCW-C9PUE46P.js → diagram-ODIL2UCW-UtQxEPoW.js} +1 -1
  139. package/editor-web/assets/{diagram-PFBEJUXE-vJ_pnB33.js → diagram-PFBEJUXE-CpLGEK-k.js} +1 -1
  140. package/editor-web/assets/{diagram-RJA3I4VV-FwYlEfJ-.js → diagram-RJA3I4VV-DGyMXoHb.js} +1 -1
  141. package/editor-web/assets/{diagram-TYUNFSNR-FKpIxeUc.js → diagram-TYUNFSNR-Dy_Ewr8V.js} +1 -1
  142. package/editor-web/assets/{dist-H0z_DXDz.js → dist-0I0Obj60.js} +14 -14
  143. package/editor-web/assets/{dist-DCI21ljp.js → dist-6ugUm4dS.js} +1 -1
  144. package/editor-web/assets/{dist-D2rGVz9C.js → dist-B0rUvCi2.js} +1 -1
  145. package/editor-web/assets/{dist-D07Kj8GR.js → dist-CKD_paj_.js} +1 -1
  146. package/editor-web/assets/{dist-BgKyM9U6.js → dist-CKUW5NzS.js} +1 -1
  147. package/editor-web/assets/{dist-DJvfQvM7.js → dist-Ca9Gsuu0.js} +1 -1
  148. package/editor-web/assets/{dist-BqijryYd.js → dist-Cc8v9lfc.js} +1 -1
  149. package/editor-web/assets/{dist-BaWFMuvr.js → dist-CynBNzYv.js} +1 -1
  150. package/editor-web/assets/{dist-CB-_0-X4.js → dist-D7M5YTq2.js} +1 -1
  151. package/editor-web/assets/{dist-ByguWp3a.js → dist-D9tsFc2N.js} +1 -1
  152. package/editor-web/assets/{dist-DH8oJJw9.js → dist-DNMKDcLg.js} +3 -3
  153. package/editor-web/assets/{dist-D3DwRF1k.js → dist-Doj7_HUI.js} +17 -17
  154. package/editor-web/assets/{dist-CtYjYJdv.js → dist-DptBQzJR.js} +1 -1
  155. package/editor-web/assets/{dist-BdmMT8fP.js → dist-DzKB210A.js} +1 -1
  156. package/editor-web/assets/{dist-Cg0Z26Kv.js → dist-H9rTuNhb.js} +4 -4
  157. package/editor-web/assets/{dist-DmCDcb2_.js → dist-RyGsFHE0.js} +1 -1
  158. package/editor-web/assets/{dist-BI_BaYhO.js → dist-oeSWr2LE.js} +4 -4
  159. package/editor-web/assets/dist-wD_hHJ8_.js +19 -0
  160. package/editor-web/assets/{docx-draw-Dxb67W2d.js → docx-draw-B5cM77hc.js} +1 -1
  161. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DBymUM-F.js → ebnfDiagram-V4P3TTPT-GPYcx6dU.js} +1 -1
  162. package/editor-web/assets/{elk-QONTBCTQ-BNYR3OlS.js → elk-QONTBCTQ-Bi0r4UFM.js} +1 -1
  163. package/editor-web/assets/{erDiagram-KYQIGQAA-cTNyOqW6.js → erDiagram-KYQIGQAA-DrOSrnci.js} +1 -1
  164. package/editor-web/assets/esm-jIPnpbBD.js +21 -0
  165. package/editor-web/assets/{eventmodeling-K75KTNOO-C6FUZeXP.js → eventmodeling-K75KTNOO-Dw-MjgUb.js} +1 -1
  166. package/editor-web/assets/flowDiagram-IUGLLWBU-DbZTfPEP.js +1 -0
  167. package/editor-web/assets/{ganttDiagram-R7GPNTJY-LD9mqQ1x.js → ganttDiagram-R7GPNTJY-Bwe8cQqi.js} +1 -1
  168. package/editor-web/assets/{gitGraph-VSP46ZUC-CtCBcQFl.js → gitGraph-VSP46ZUC-DsAcAKP0.js} +1 -1
  169. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DYQpOozz.js → gitGraphDiagram-PDYL7XHY-aObRwdru.js} +1 -1
  170. package/editor-web/assets/index-D-MNVykg.js +28 -0
  171. package/editor-web/assets/{info-OHQRW6UA-IXInKPRO.js → info-OHQRW6UA-DBPN8JFr.js} +1 -1
  172. package/editor-web/assets/{infoDiagram-MVDRKAX5-Ds7Cei7T.js → infoDiagram-MVDRKAX5-Bx26Hq7M.js} +1 -1
  173. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-DWs3qtAX.js → ishikawaDiagram-HPEHV2GE-BJ_MCDwA.js} +1 -1
  174. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BkNKVYBA.js → journeyDiagram-BOSHW7O7-B5g4W2Dx.js} +1 -1
  175. package/editor-web/assets/{kanban-definition-FNSA4HC5-D3dMswnI.js → kanban-definition-FNSA4HC5-U8YNlxN7.js} +1 -1
  176. package/editor-web/assets/layout-CuWN7_3k.js +1 -0
  177. package/editor-web/assets/{mermaid-parser.core-D_W_0X0N.js → mermaid-parser.core-DYLQlYDo.js} +3 -3
  178. package/editor-web/assets/{mermaid.core-Bkirj-s5.js → mermaid.core-qNJmZ0b4.js} +4 -4
  179. package/editor-web/assets/{mindmap-definition-6OY57UG3-CMKkAAvI.js → mindmap-definition-6OY57UG3-CI5aBWbK.js} +1 -1
  180. package/editor-web/assets/{packet-JDAUHWVQ-CzCkgCfg.js → packet-JDAUHWVQ-BBclMGlJ.js} +1 -1
  181. package/editor-web/assets/{panes-BexRuZd2.js → panes-BShVq38A.js} +1 -1
  182. package/editor-web/assets/{pegDiagram-ECIUJNBX-C8qHkx7M.js → pegDiagram-ECIUJNBX-B3pljPTu.js} +1 -1
  183. package/editor-web/assets/{pie-XZMESJXO-BJqgxMrD.js → pie-XZMESJXO-B7WzimHm.js} +1 -1
  184. package/editor-web/assets/{pieDiagram-GNMPY74T-DyNntV5y.js → pieDiagram-GNMPY74T-tM1Da50-.js} +1 -1
  185. package/editor-web/assets/{quadrantDiagram-D57K4MC3-BHa-69ir.js → quadrantDiagram-D57K4MC3-BEq_Shj9.js} +1 -1
  186. package/editor-web/assets/{radar-ABXABTNO-BeRPjBBR.js → radar-ABXABTNO-v2jJSW5T.js} +1 -1
  187. package/editor-web/assets/{railroad-I3PHUGI6-BaRQqRsK.js → railroad-I3PHUGI6-6W3Z4F8Y.js} +1 -1
  188. package/editor-web/assets/{railroad-abnf-LNEFI6M7-BZfwomxZ.js → railroad-abnf-LNEFI6M7-DxIN7Zrt.js} +1 -1
  189. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DbgqpEF5.js → railroad-ebnf-DWYD2UWJ-Bb5O7tAx.js} +1 -1
  190. package/editor-web/assets/{railroad-peg-JR7BVNR7-BYOf3PsQ.js → railroad-peg-JR7BVNR7-i2LjEP5t.js} +1 -1
  191. package/editor-web/assets/{railroadDiagram-Y72NRBL7-B5OAzOsD.js → railroadDiagram-Y72NRBL7-DhsyVKbG.js} +1 -1
  192. package/editor-web/assets/{requirementDiagram-EQYSW5RA-wqYNoqO0.js → requirementDiagram-EQYSW5RA-Du2k7i1E.js} +1 -1
  193. package/editor-web/assets/{ribbon-tabs-B3IC9WOt.js → ribbon-tabs-Bxuj_hct.js} +1 -1
  194. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Crf6GRsa.js → sankeyDiagram-SY24JHO5-CDnRMu7J.js} +1 -1
  195. package/editor-web/assets/schemas-CnlOL0u4.js +1 -0
  196. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DUcHz4_d.js → sequenceDiagram-BLEHNHQU-BUXBhWYW.js} +1 -1
  197. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DbeLdnpS.js → stateDiagram-v2-A6IESKWZ-Enb8LZUA.js} +1 -1
  198. package/editor-web/assets/{swimlanes-B3ENRKFQ-BDi6AeJI.js → swimlanes-B3ENRKFQ-pnpjgTrl.js} +1 -1
  199. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B-B2Eoc8.js +8 -0
  200. package/editor-web/assets/themes-D_ISkWVz.js +1 -0
  201. package/editor-web/assets/{timeline-definition-JXYKGLGB-B0awa2hh.js → timeline-definition-JXYKGLGB-C4pR18kd.js} +1 -1
  202. package/editor-web/assets/{treeView-D4JQ5SDB-C91G0IGm.js → treeView-D4JQ5SDB-kzNGeAv6.js} +1 -1
  203. package/editor-web/assets/{treemap-SAJKECNS-CiOWiwl2.js → treemap-SAJKECNS-Buhb5wzt.js} +1 -1
  204. package/editor-web/assets/{updating-D0GEtwnJ.js → updating-Cbxw83_O.js} +1 -1
  205. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DMYM1MRe.js → usecaseDiagram-WPOLBNNX-CL-xLQWl.js} +1 -1
  206. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DQIJ5vvN.js → vennDiagram-Q3Y3IDCW-bwsyCcdK.js} +1 -1
  207. package/editor-web/assets/{video-mMOFXHYK.js → video-8MxWX9f5.js} +1 -1
  208. package/editor-web/assets/{wardley-7MLQ67FV-C3H9HG8r.js → wardley-7MLQ67FV-DXsLgedI.js} +1 -1
  209. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DgsjqY1Y.js → wardleyDiagram-IVAIDKWA-Cn0ph953.js} +1 -1
  210. package/editor-web/assets/{workbook-NtMEyLgf.js → workbook-BDWkQ149.js} +1 -1
  211. package/editor-web/assets/{xychartDiagram-4URNHDU4-DzsGI527.js → xychartDiagram-4URNHDU4-CfXnqGWZ.js} +1 -1
  212. package/editor-web/index.html +2 -1
  213. package/package.json +2 -2
  214. package/editor-web/assets/channel-dyUtlVPg.js +0 -1
  215. package/editor-web/assets/deck-C0VxrlzX.js +0 -1
  216. package/editor-web/assets/dist-CCP24Lel.js +0 -19
  217. package/editor-web/assets/esm-Cl3GKSDd.js +0 -21
  218. package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +0 -1
  219. package/editor-web/assets/index-omhSywJb.js +0 -28
  220. package/editor-web/assets/schemas-C21MyseF.js +0 -1
  221. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +0 -8
  222. package/editor-web/assets/tolerant-DM9s0Mt1.js +0 -1
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{join as y,resolve as w}from"node:path";import{z as e}from"zod";import{formatConsole as v,formatProblem as k}from"../text/index.js";import{exportProject as P}from"@allyhub/export";import{GIF_ENCODE as p,SHARE_ENCODE as n}from"@allyhub/render/encode";import{consoleJson as m}from"@allyhub/project";import{OUT_DIR as A}from"@allyhub/formats";import{EXIT as c}from"@allyhub/protocol";import{madeNotes as j}from"@allyhub/build";import{defineCommand as $}from"../command.js";import{parameters as O}from"../parameters.js";import{projectRoot as D}from"../project.js";import{combosOf as F,commandError as S}from"../version.js";import{dir as C,indexing as E}from"../fields.js";import{extensionsAt as h,kindsAt as T}from"./extensions.js";const N={codec:e.enum(["h264","h265"]).default("h264").describe("The mp4's video codec; h265 is smaller"),crf:e.number().int().min(0).max(63).optional().describe(`Constant rate factor, lower keeping more detail in a larger file: default ${String(n.crf)} for an mp4, 30 for a webm`),maxBitrate:e.number().int().min(0).max(5e5).optional().describe(`An mp4's most video bitrate, kbit/s, 0 for none: default ${String(n.maxKbps)} at 1080p ${String(n.fps)} fps, scaled by the frame's pixels and the frames a second (16000 at 1080p 60, 32000 at 4K 30)`),audioBitrate:e.number().int().min(32).max(512).optional().describe("The sound's bitrate, kbit/s: default 192 (AAC in an mp4), 160 (Opus in a webm); a mov keeps PCM"),gifWidth:e.number().int().min(0).max(16384).optional().describe(`A gif's width in pixels, its height in proportion, up to the video's: default ${String(p.width)}; 0 for the video's own`),gifFps:e.number().min(0).max(120).optional().describe(`A gif's frames a second, up to the video's: default ${String(p.fps)}; 0 for the video's own`),steps:e.boolean().default(!1).describe("A deck's pdf, png and pptx: a page, a file or a slide per step of each page (default each page's last step)"),values:e.enum(["data","shown"]).optional().describe("A sheet's csv, json and md: each value as data (a date 2026-01-15, a time 09:30, a duration 36:00, a number to 15 digits; csv's and json's default) or as its format shows it (15 Jan 2026, $1,200.00; md's default)"),bom:e.boolean().default(!0).describe("A sheet's csv starts with a UTF-8 byte-order mark, by which Excel reads its letters right (é, €, 中文); false for a tool that reads plain UTF-8"),quality:e.number().int().min(0).max(100).optional().describe("An image's jpeg and webp, 0–100: default 90 for a jpeg, a webp lossless"),scale:e.number().min(.25).max(4).optional().describe("An image's png, jpeg, webp and zip: each board's picture this many times its size, its layout kept (type and shapes drawn sharp, a picture as many pixels as its file has); default 1"),width:e.number().int().min(1).optional().describe("An image's pictures each this many pixels wide, the height in proportion: a scale for each board"),height:e.number().int().min(1).optional().describe("An image's pictures each this many pixels high, the width in proportion: a scale for each board"),maxKb:e.number().min(1).optional().describe("An image's jpeg and webp: each board's file at most this many KB, at the best quality under it (said); a png is made when it fits under it"),psd:e.enum(["psd","psb"]).default("psd").describe("An image's psd: psd, or psb (Photoshop's large document format); a board is at most 16384 pixels a side, which a psd holds. Each layer a Photoshop layer by its key: a picture a pixel layer, a text layer a type layer Photoshop redraws on opening, a shape a shape layer, a fill a fill layer, an adjustment an adjustment layer, a component a smart object of its pixels, a group a group; Photoshop draws blends, masks, effects and text by its own formulas"),since:e.string().optional().describe("A doc's docx: what changed since this file (another doc's .mdx, or the Word file it came from, from the project's root) written as Word's revisions, Track Changes, as Word's Compare Documents sets them: words put in and taken out, whole blocks put in or taken out"),changes:e.boolean().default(!1).describe("A doc's docx: what changed since the Word file allyhub doc import kept beside it (<name>.original.docx), as --since does; the editor's Download offers it"),author:e.string().optional().describe("Whose revisions --since writes, as Word names them: default AllyHub"),alike:e.number().min(0).max(1).optional().describe("With --since: the share of their words two blocks of a type must share to be compared word by word, 0–1, default 0.4; under it the one is taken out and the other put in"),pptx:e.enum(["native","picture"]).default("native").describe("A deck's pptx: native, PowerPoint's own model, editable there (the deck's masters, layouts, placeholders, shapes, text, pictures, videos and notes, a component as its picture); or picture, each slide a picture of the page")},z=(s,o)=>`${String(s)} ${o}${s===1?"":"s"}`;export const exportFiles=$({name:"export",summary:"The files: a video, its frames, subtitles, cover and mastered mix; a batch's table of ads; a deck's PDF, PPTX and PNGs; a doc's PDF and Markdown; a sheet's Excel workbook with live formulas, PDF, PNG, CSV, Markdown and JSON; an image's pictures, PDF and layered PSDs; a 3D model's GLB",input:e.strictObject({items:e.array(e.string()).optional().describe("Only these items: each an id (its file without its extension) or its file, or a folder of items; default every one"),combo:e.array(e.string()).optional().describe("Only the combos matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03)"),type:e.array(e.string()).optional().describe("File types: mp4, mov, webm, gif, png, srt, vtt (cues cut as the piece's captions layer cuts them, else by default), cover, wav (the mix, mastered as the export masters it: 48 kHz, 16 bits, the film's length); csv for a piece with slots, its table of ads (<piece>.ads.csv: a row per ad with its combo, picks, length, file, name and generated media); a doc's pdf, docx, png; a sheet's xlsx (every sheet, formulas live with their values cached), pdf, png, csv (a file a sheet); an image's png, jpeg, webp (a file a board), pdf, zip and psd (a layered Photoshop file a board: each layer of its kind, its pixels drawn by Chrome); a deck's pdf, png, pptx; a LinkedIn or X post's linkedin-post or x-post (its API request, its media beside), txt (its text as written, its media and their alt text beside), png; an article's linkedin-article or x-article, png; a 3D model's glb. Default mp4 for a video, pdf for a deck and a doc, xlsx for a sheet, png for an image, glb for a model; each item makes the types it has"),out:e.string().optional().describe("The folder the files go in; default .allyhub/out"),name:e.string().optional().describe("Name a video's or deck's files <name>.<ext> in its folder of the output, with what tells its versions apart before the extension when there are several (<name>.zh-cn.mp4, <name>.c03.mp4); default <output>.<combo>.<ext>"),params:O(N),dir:C}),positional:["items"],output:e.looseObject({out:e.string(),files:e.array(e.looseObject({name:e.string(),path:e.string(),type:e.string()})),failed:e.array(e.looseObject({name:e.string(),code:e.string()}))}),examples:["allyhub export","allyhub export launch/film --type mp4,srt","allyhub export launch/film --type wav","allyhub export ads/tidyform --type csv","allyhub export launch/plan --type pdf,md","allyhub export legal/contract --type docx --param since=legal/contract.original.mdx --param author=Legal","allyhub export finance/budget --type xlsx,pdf","allyhub export finance/budget --type csv --param bom=false","allyhub export launch/deck --type pptx --param pptx=picture","allyhub export launch/poster --type psd","allyhub export launch/poster --type jpeg --param scale=2 --param max-kb=2000","allyhub export --combo lang=zh-cn --param crf=16","allyhub export launch/film --name launch-film --param max-bitrate=0"]},async(s,o)=>{const r=await D(o.cwd,s.dir),f=w(o.cwd,s.out??y(r,A)),u=Object.fromEntries(Object.entries(s.params).filter(([,a])=>a!==void 0));let l=0,t;try{t=await P({root:r,kinds:T(r),out:f,...s.items===void 0?{}:{items:s.items},combos:F(s),...s.type===void 0?{}:{types:s.type},...s.name===void 0?{}:{name:s.name},params:u,index:E(o.env),analyses:h(r).mediaAnalyses(),env:o.env,processors:h(r).exportProcessors(),log:a=>{o.progress(a)},onProgress:a=>{const i=Math.floor(a*10);i<=l||i>=10||(l=i,o.progress(`${String(i*10)}%`))},signal:o.signal})}catch(a){throw S(a)}const b=a=>a?` (${a.integrated.toFixed(1)} LUFS, true peak ${a.truePeak===void 0?"–":a.truePeak.toFixed(1)} dBTP)`:"",g=t.problems.filter(a=>a.level==="error"),d=t.files.flatMap(a=>a.files.length>1?a.files.map(i=>` ${i}`):[` ${a.path}${b(a.loudness)}`]),x=[`${z(d.length,"file")} in ${t.out}:`,...d,...t.failed.length>0?["Not made:",...t.failed.map(a=>` ${a.name}: ${a.message}${a.hint?` ${a.hint}`:""}`)]:[],...t.unindexed.map(a=>`Not indexed, drawn the fallback way: ${a.file} (${a.error})`),...j(t.files),...g.map(k),...v(m(t.console))];return{value:{out:t.out,files:t.files.map(a=>({...a})),failed:t.failed.map(a=>({...a})),problems:t.problems,...t.unindexed.length>0?{unindexed:t.unindexed}:{},...m(t.console)},text:x.join(`
2
+ import{join as y,resolve as w}from"node:path";import{z as e}from"zod";import{formatConsole as v,formatProblem as k}from"../text/index.js";import{exportProject as P}from"@allyhub/export";import{GIF_ENCODE as p,SHARE_ENCODE as n}from"@allyhub/render/encode";import{consoleJson as m}from"@allyhub/project";import{OUT_DIR as A}from"@allyhub/formats";import{EXIT as c}from"@allyhub/protocol";import{madeNotes as j}from"@allyhub/build";import{defineCommand as $}from"../command.js";import{parameters as D}from"../parameters.js";import{projectRoot as F}from"../project.js";import{combosOf as O,commandError as S}from"../version.js";import{dir as T,indexing as C}from"../fields.js";import{extensionsAt as h,kindsAt as E}from"./extensions.js";const N={codec:e.enum(["h264","h265"]).default("h264").describe("The mp4's video codec; h265 is smaller"),crf:e.number().int().min(0).max(63).optional().describe(`Constant rate factor, lower keeping more detail in a larger file: default ${String(n.crf)} for an mp4, 30 for a webm`),maxBitrate:e.number().int().min(0).max(5e5).optional().describe(`An mp4's most video bitrate, kbit/s, 0 for none: default ${String(n.maxKbps)} at 1080p ${String(n.fps)} fps, scaled by the frame's pixels and the frames a second (16000 at 1080p 60, 32000 at 4K 30)`),audioBitrate:e.number().int().min(32).max(512).optional().describe("The sound's bitrate, kbit/s: default 192 (AAC in an mp4), 160 (Opus in a webm); a mov keeps PCM"),gifWidth:e.number().int().min(0).max(16384).optional().describe(`A gif's width in pixels, its height in proportion, up to the video's: default ${String(p.width)}; 0 for the video's own`),gifFps:e.number().min(0).max(120).optional().describe(`A gif's frames a second, up to the video's: default ${String(p.fps)}; 0 for the video's own`),steps:e.boolean().default(!1).describe("A deck's pdf, png and pptx: a page, a file or a slide per step of each page (default each page's last step)"),values:e.enum(["data","shown"]).optional().describe("A sheet's csv, json and md: each value as data (a date 2026-01-15, a time 09:30, a duration 36:00, a number to 15 digits; csv's and json's default) or as its format shows it (15 Jan 2026, $1,200.00; md's default)"),bom:e.boolean().default(!0).describe("A sheet's csv starts with a UTF-8 byte-order mark, by which Excel reads its letters right (é, €, 中文); false for a tool that reads plain UTF-8"),quality:e.number().int().min(0).max(100).optional().describe("An image's jpeg and webp, 0–100: default 90 for a jpeg, a webp lossless"),scale:e.number().min(.25).max(4).optional().describe("An image's png, jpeg, webp and zip: each board's picture this many times its size, its layout kept (type and shapes drawn sharp, a picture as many pixels as its file has); default 1"),width:e.number().int().min(1).optional().describe("An image's pictures each this many pixels wide, the height in proportion: a scale for each board"),height:e.number().int().min(1).optional().describe("An image's pictures each this many pixels high, the width in proportion: a scale for each board"),maxKb:e.number().min(1).optional().describe("An image's jpeg and webp: each board's file at most this many KB, at the best quality under it (said); a png is made when it fits under it"),psd:e.enum(["psd","psb"]).default("psd").describe("An image's psd: psd, or psb (Photoshop's large document format); a board is at most 16384 pixels a side, which a psd holds. Each layer a Photoshop layer by its key: a picture a pixel layer, a text layer a type layer Photoshop redraws on opening, a shape a shape layer, a fill a fill layer, an adjustment an adjustment layer, a component a smart object of its pixels, a group a group; Photoshop draws blends, masks, effects and text by its own formulas"),since:e.string().optional().describe("A doc's docx: what changed since this file (another doc's .mdx, or the Word file it came from, from the project's root) written as Word's revisions, Track Changes, as Word's Compare Documents sets them: words put in and taken out, whole blocks put in or taken out"),changes:e.boolean().default(!1).describe("A doc's docx: what changed since the Word file allyhub doc import kept beside it (<name>.original.docx), as --since does; the editor's Download offers it"),author:e.string().optional().describe("Whose revisions --since writes, as Word names them: default AllyHub"),alike:e.number().min(0).max(1).optional().describe("With --since: the share of their words two blocks of a type must share to be compared word by word, 0–1, default 0.4; under it the one is taken out and the other put in"),pptx:e.enum(["native","picture"]).default("native").describe("A deck's pptx: native, PowerPoint's own model, editable there (the deck's masters, layouts, placeholders, shapes, text, pictures, videos and notes, a component as its picture); or picture, each slide a picture of the page")},W=(s,o)=>`${String(s)} ${o}${s===1?"":"s"}`;export const exportFiles=$({name:"export",summary:"The files: a video, its frames, subtitles, cover and mastered mix; a batch's table of ads; a deck's PDF, PPTX and PNGs; a doc's PDF, Word document and PNGs; a report's PDF, picture and one HTML file; a sheet's Excel workbook with live formulas, PDF, PNG, CSV, Markdown and JSON; an image's pictures, PDF and layered PSDs; a 3D model's GLB",input:e.strictObject({items:e.array(e.string()).optional().describe("Only these items: each an id (its file without its extension) or its file, or a folder of items; default every one"),combo:e.array(e.string()).optional().describe("Only the combos matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03)"),type:e.array(e.string()).optional().describe("File types: mp4, mov, webm, gif, png, srt, vtt (cues cut as the piece's captions layer cuts them, else by default), cover, wav (the mix, mastered as the export masters it: 48 kHz, 16 bits, the film's length); csv for a piece with slots, its table of ads (<piece>.ads.csv: a row per ad with its combo, picks, length, file, name and generated media); a doc's pdf, docx, png; a sheet's xlsx (every sheet, formulas live with their values cached), pdf, png, csv (a file a sheet); an image's png, jpeg, webp (a file a board), pdf, zip and psd (a layered Photoshop file a board: each layer of its kind, its pixels drawn by Chrome); a deck's pdf, png, pptx; a LinkedIn or X post's linkedin-post or x-post (its API request, its media beside), txt (its text as written, its media and their alt text beside), png; an article's linkedin-article or x-article, png; a 3D model's glb. Default mp4 for a video, pdf for a deck and a doc, xlsx for a sheet, png for an image, glb for a model; each item makes the types it has"),out:e.string().optional().describe("The folder the files go in; default .allyhub/out"),name:e.string().optional().describe("Name a video's or deck's files <name>.<ext> in its folder of the output, with what tells its versions apart before the extension when there are several (<name>.zh-cn.mp4, <name>.c03.mp4); default <output>.<combo>.<ext>"),params:D(N),dir:T}),positional:["items"],output:e.looseObject({out:e.string(),files:e.array(e.looseObject({name:e.string(),path:e.string(),type:e.string()})),failed:e.array(e.looseObject({name:e.string(),code:e.string()}))}),examples:["allyhub export","allyhub export launch/film --type mp4,srt","allyhub export launch/film --type wav","allyhub export ads/tidyform --type csv","allyhub export launch/plan --type pdf,docx","allyhub export legal/contract --type docx --param since=legal/contract.original.mdx --param author=Legal","allyhub export finance/budget --type xlsx,pdf","allyhub export finance/budget --type csv --param bom=false","allyhub export launch/deck --type pptx --param pptx=picture","allyhub export launch/poster --type psd","allyhub export launch/poster --type jpeg --param scale=2 --param max-kb=2000","allyhub export --combo lang=zh-cn --param crf=16","allyhub export launch/film --name launch-film --param max-bitrate=0"]},async(s,o)=>{const r=await F(o.cwd,s.dir),f=w(o.cwd,s.out??y(r,A)),u=Object.fromEntries(Object.entries(s.params).filter(([,a])=>a!==void 0));let l=0,t;try{t=await P({root:r,kinds:E(r),out:f,...s.items===void 0?{}:{items:s.items},combos:O(s),...s.type===void 0?{}:{types:s.type},...s.name===void 0?{}:{name:s.name},params:u,index:C(o.env),analyses:h(r).mediaAnalyses(),env:o.env,processors:h(r).exportProcessors(),log:a=>{o.progress(a)},onProgress:a=>{const i=Math.floor(a*10);i<=l||i>=10||(l=i,o.progress(`${String(i*10)}%`))},signal:o.signal})}catch(a){throw S(a)}const b=a=>a?` (${a.integrated.toFixed(1)} LUFS, true peak ${a.truePeak===void 0?"–":a.truePeak.toFixed(1)} dBTP)`:"",g=t.problems.filter(a=>a.level==="error"),d=t.files.flatMap(a=>a.files.length>1?a.files.map(i=>` ${i}`):[` ${a.path}${b(a.loudness)}`]),x=[`${W(d.length,"file")} in ${t.out}:`,...d,...t.failed.length>0?["Not made:",...t.failed.map(a=>` ${a.name}: ${a.message}${a.hint?` ${a.hint}`:""}`)]:[],...t.unindexed.map(a=>`Not indexed, drawn the fallback way: ${a.file} (${a.error})`),...j(t.files),...g.map(k),...v(m(t.console))];return{value:{out:t.out,files:t.files.map(a=>({...a})),failed:t.failed.map(a=>({...a})),problems:t.problems,...t.unindexed.length>0?{unindexed:t.unindexed}:{},...m(t.console)},text:x.join(`
3
3
  `),exit:t.failed.length>0?c.failed:c.ok}});
@@ -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("./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 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)}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{spawn as w}from"node:child_process";import{stat as g}from"node:fs/promises";import{resolve as b}from"node:path";import{fileURLToPath as v}from"node:url";import{z as r}from"zod";import{nodeLending as j}from"@allyhub/build";import{CommandError as y,EXIT as e}from"@allyhub/protocol";import{nodeCommand as L}from"@allyhub/runtimes/node";import{defineCommand as N}from"../command.js";import{projectRoot as k}from"../project.js";import{kindsAt as I}from"./extensions.js";export const run=N({name:"run",summary:"Run a script with Node, its imports of @allyhub/sdk and three.js the ones allyhub brings where the project has not installed them",input:r.strictObject({file:r.string().describe("The script: .ts, .mts, .js or .mjs"),args:r.array(r.string()).default([]).describe("What the script is given, after -- where one starts with -")}),positional:["file","args"],output:r.looseObject({exit:r.number()}),examples:["allyhub run scripts/make-budget.ts","allyhub run scripts/import.ts -- --from data/orders.csv"]},async(i,t)=>{const n=b(t.cwd,i.file);if(!(await g(n).catch(()=>{}))?.isFile())throw new y("not-found",`${i.file} is not there.`,{exit:e.notFound});const a=await k(t.cwd),m=await j(I(a),a),l={sdk:m.sdk??{},lent:m.lent??{},cli:import.meta.url},p=v(new URL(import.meta.url.endsWith(".ts")?"../run-register.ts":"../run-register.js",import.meta.url)),o=await new Promise((c,f)=>{const s=w(L(t.env),["--import",p,n,...i.args],{cwd:t.cwd,env:{...t.env,ALLYHUB_RUN_LENDING:JSON.stringify(l)},stdio:"inherit"}),d=()=>s.kill("SIGINT");t.signal.addEventListener("abort",d,{once:!0}),s.on("error",f),s.on("exit",(u,h)=>{t.signal.removeEventListener("abort",d),c(u??(h==="SIGINT"?e.interrupted:e.failed))})});return{value:{exit:o},text:"",...o===0?{}:{exit:o===e.interrupted?e.interrupted:e.failed,code:"script-failed"}}});