allyhub 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +1 -1
- package/dist/commands/index.js +1 -1
- package/dist/commands/list.js +1 -1
- package/dist/commands/run.js +2 -0
- package/dist/commands/schedule.js +4 -0
- package/dist/commands.json +1 -1
- package/dist/main.js +8 -8
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/scheduled-tasks.js +2 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +2 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +3 -3
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +151 -151
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +173 -173
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +1 -2
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +106 -101
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +26 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/scheduled-tasks.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -6
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +15 -15
- package/dist/run-register.js +2 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-B4tvwU6C.js → abnfDiagram-WEYOIA3C-OIbGwO0P.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-V2fA0vY2.js → architecture-WOLXFQ4H-i87EDk8h.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-B6B7XN0M.js → architectureDiagram-ZHVYKT53-DRsgKDbu.js} +1 -1
- package/editor-web/assets/article-BVbLqhwK.js +3 -0
- package/editor-web/assets/article-BxkgemqI.js +7 -0
- package/editor-web/assets/bar-button-BJ-_6g-F.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BizcUGOM.js → blockDiagram-RJAE7QA3-k_lanKyI.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CBHS0dQ0.js → c4Diagram-XDPPPE54-BFJTpM5w.js} +1 -1
- package/editor-web/assets/{calc-worker-Cr4a0xmt.js → calc-worker-BpAgQE9E.js} +3 -3
- package/editor-web/assets/channel-CDJSUIp1.js +1 -0
- package/editor-web/assets/chevron-right-7tjLd0X4.js +1 -0
- package/editor-web/assets/chip-lvclIKGj.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-CMPBck_Q.js → chunk-2E7WHVMD-Bbfj2q42.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-Df22Adpt.js → chunk-4EMNKR2T-iKWsgYqL.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-CYrZ6_Q7.js → chunk-55XCU76K-WwcsywWu.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-BfdG9NNW.js → chunk-7S6XSTFO-BEEtZTsQ.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BCzZMoTJ.js → chunk-AQDTSKZB-ZT2PBdLK.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-DT0xT8Wf.js → chunk-DSNLSHJZ-BDlY4xos.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-Bg3-EotU.js → chunk-HAGFOTED-Yp6V4sx6.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BrSym24V.js → chunk-HNE4Q36P-C6IdGLw2.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-CMxgkJWF.js → chunk-NQOKRVIF-D3gs_SMr.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-DWEwoyPy.js → chunk-UHW7PFBP-Byf0dX4X.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-eTFh5_T9.js → chunk-VQ5W62QI-n9lsvBOX.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-4PTupr9T.js → chunk-WQQL4CDK-BW540sO1.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-D5XAAFWm.js → chunk-YZO67HFG-CWL9cioT.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CPsdaisO.js → chunk-ZAUX2LTX-D9zlkFeQ.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-ClnuUyfy.js → chunk-ZCHMQSOR-nieSgKB5.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CM21waNF.js → classDiagram-v2-4MYWR3UA-BXamBIDc.js} +1 -1
- package/editor-web/assets/{color-picker-BmKFn2ww.js → color-picker-XpkmmKxv.js} +1 -1
- package/editor-web/assets/context-menu-pSruvRyd.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-CJUHTgee.js → cynefin-EF2NZ3EQ-CVKVgqFb.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-C9RIfuIV.js → cynefinDiagram-WF24UDRP-r0bqUe5X.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-g-01KdpO.js → dagre-NK4GIZVX-4q_IUjiM.js} +1 -1
- package/editor-web/assets/deck-cyd6f3QU.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-CbOjWUu-.js → diagram-CBK3MWTC-CDh12DaH.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-C6psNS8J.js → diagram-I5XIIV2D-C_sqASp8.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-C9PUE46P.js → diagram-ODIL2UCW-QgoMb-iS.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-vJ_pnB33.js → diagram-PFBEJUXE-Djhv4RT6.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-FwYlEfJ-.js → diagram-RJA3I4VV-CvVswF4l.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-FKpIxeUc.js → diagram-TYUNFSNR-DLnbV741.js} +1 -1
- package/editor-web/assets/dist-BK-WZ2ce.js +3 -0
- package/editor-web/assets/dist-CQ8-PJqF.js +16 -0
- package/editor-web/assets/dist-CQElMvxC.js +4 -0
- package/editor-web/assets/{dist-Cg0Z26Kv.js → dist-D49XAtID.js} +4 -4
- package/editor-web/assets/{dist-DH8oJJw9.js → dist-DDQLLUz5.js} +3 -3
- package/editor-web/assets/{dist-BI_BaYhO.js → dist-DO2VygfS.js} +4 -4
- package/editor-web/assets/dist-DOoUVqs_.js +24 -0
- package/editor-web/assets/{dist-D2rGVz9C.js → dist-DUyJ8AI0.js} +1 -1
- package/editor-web/assets/dist-DlDgR_Er.js +1 -0
- package/editor-web/assets/dist-Dw7AH_ip.js +6 -0
- package/editor-web/assets/{dist-H0z_DXDz.js → dist-Dx3tLwZ1.js} +17 -17
- package/editor-web/assets/{dist-CtYjYJdv.js → dist-F7lLi27Y.js} +1 -1
- package/editor-web/assets/dist-OfUZ68xY.js +547 -0
- package/editor-web/assets/{dist-CB-_0-X4.js → dist-OyPpS4AG.js} +28 -28
- package/editor-web/assets/dist-QCvBWMrp.js +5 -0
- package/editor-web/assets/{dist-D07Kj8GR.js → dist-RppJbSHJ.js} +1 -1
- package/editor-web/assets/dist-ZFgjTFWK.js +19 -0
- package/editor-web/assets/{dist-BqijryYd.js → dist-onYtssQw.js} +1 -1
- package/editor-web/assets/{docx-draw-Dxb67W2d.js → docx-draw-BBI4k72R.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DBymUM-F.js → ebnfDiagram-V4P3TTPT-BoiJRPsL.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BNYR3OlS.js → elk-QONTBCTQ-BDiBwn0f.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-cTNyOqW6.js → erDiagram-KYQIGQAA-DaA3jdNm.js} +1 -1
- package/editor-web/assets/esm-BWIRT8Yl.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-C6FUZeXP.js → eventmodeling-K75KTNOO-j7ZSOAed.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-Cb-xQSAJ.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-LD9mqQ1x.js → ganttDiagram-R7GPNTJY-CyNcjwUZ.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-CtCBcQFl.js → gitGraph-VSP46ZUC-BuzoK22Z.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DYQpOozz.js → gitGraphDiagram-PDYL7XHY--lzum_QP.js} +1 -1
- package/editor-web/assets/index-BSd85XUU.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-IXInKPRO.js → info-OHQRW6UA-rs42SY_Y.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-Ds7Cei7T.js → infoDiagram-MVDRKAX5-BjedWKrM.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-DWs3qtAX.js → ishikawaDiagram-HPEHV2GE-Dtqm_gq7.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BkNKVYBA.js → journeyDiagram-BOSHW7O7-J0dA2yU0.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-D3dMswnI.js → kanban-definition-FNSA4HC5-DV13v0Uf.js} +1 -1
- package/editor-web/assets/layout-CuWN7_3k.js +1 -0
- package/editor-web/assets/{mermaid-parser.core-D_W_0X0N.js → mermaid-parser.core-B7bZFHzS.js} +3 -3
- package/editor-web/assets/{mermaid.core-Bkirj-s5.js → mermaid.core-DQ10-Otk.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CMKkAAvI.js → mindmap-definition-6OY57UG3-DgdXGBCF.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-CzCkgCfg.js → packet-JDAUHWVQ-ZNSLC_YL.js} +1 -1
- package/editor-web/assets/{panes-BexRuZd2.js → panes-1hRg6CCN.js} +2 -2
- package/editor-web/assets/{pegDiagram-ECIUJNBX-C8qHkx7M.js → pegDiagram-ECIUJNBX-nBIsHepE.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BJqgxMrD.js → pie-XZMESJXO-CXen6okO.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DyNntV5y.js → pieDiagram-GNMPY74T-BlimMsUq.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-BHa-69ir.js → quadrantDiagram-D57K4MC3-D_B7p8XB.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BeRPjBBR.js → radar-ABXABTNO-DFfRPPEM.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BaRQqRsK.js → railroad-I3PHUGI6-DS8ly7WZ.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BZfwomxZ.js → railroad-abnf-LNEFI6M7-Coohlgpw.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DbgqpEF5.js → railroad-ebnf-DWYD2UWJ-CvcfKbZc.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-BYOf3PsQ.js → railroad-peg-JR7BVNR7-jRtVHKtg.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-B5OAzOsD.js → railroadDiagram-Y72NRBL7-kWUIDPHg.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-wqYNoqO0.js → requirementDiagram-EQYSW5RA-C39Gfdi-.js} +1 -1
- package/editor-web/assets/ribbon-tabs-5R-_EtHp.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Crf6GRsa.js → sankeyDiagram-SY24JHO5-DtSQ2N2q.js} +1 -1
- package/editor-web/assets/schemas-CnlOL0u4.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DUcHz4_d.js → sequenceDiagram-BLEHNHQU-BZx9gAR1.js} +1 -1
- package/editor-web/assets/{session--OJYv_B7.js → session-2pd0mFQm.js} +1 -1
- package/editor-web/assets/{snapshots-DYooVfOx.js → snapshots-8hCkRemI.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DbeLdnpS.js → stateDiagram-v2-A6IESKWZ-E9qhWPa3.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BDi6AeJI.js → swimlanes-B3ENRKFQ-C6vD9fmU.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-D_DL_JP0.js +8 -0
- package/editor-web/assets/themes-D_ISkWVz.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-B0awa2hh.js → timeline-definition-JXYKGLGB-CT8AKsKE.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-C91G0IGm.js → treeView-D4JQ5SDB-DA2iE5aC.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-CiOWiwl2.js → treemap-SAJKECNS-RgrBf6Sq.js} +1 -1
- package/editor-web/assets/{updating-D0GEtwnJ.js → updating--4wIxO0k.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DMYM1MRe.js → usecaseDiagram-WPOLBNNX-DfIcy0_F.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DQIJ5vvN.js → vennDiagram-Q3Y3IDCW-DxTSyNH7.js} +1 -1
- package/editor-web/assets/{video-mMOFXHYK.js → video-yjnj5UY2.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-C3H9HG8r.js → wardley-7MLQ67FV-pow5gWxU.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DgsjqY1Y.js → wardleyDiagram-IVAIDKWA-Dar0j9HS.js} +1 -1
- package/editor-web/assets/{workbook-NtMEyLgf.js → workbook-7fUt0Qgy.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DzsGI527.js → xychartDiagram-4URNHDU4-qCxuQZMj.js} +1 -1
- package/editor-web/index.html +5 -3
- package/package.json +2 -2
- package/editor-web/assets/article-DW4eD_8K.js +0 -3
- package/editor-web/assets/article-Dm2dIEwc.js +0 -7
- package/editor-web/assets/bar-button-CJmpgNg4.js +0 -1
- package/editor-web/assets/channel-dyUtlVPg.js +0 -1
- package/editor-web/assets/chip-BdQRH3FL.js +0 -1
- package/editor-web/assets/deck-C0VxrlzX.js +0 -1
- package/editor-web/assets/dist-BaWFMuvr.js +0 -1
- package/editor-web/assets/dist-BdmMT8fP.js +0 -5
- package/editor-web/assets/dist-BgKyM9U6.js +0 -3
- package/editor-web/assets/dist-ByguWp3a.js +0 -16
- package/editor-web/assets/dist-CCP24Lel.js +0 -19
- package/editor-web/assets/dist-D3DwRF1k.js +0 -547
- package/editor-web/assets/dist-DCI21ljp.js +0 -6
- package/editor-web/assets/dist-DJvfQvM7.js +0 -24
- package/editor-web/assets/dist-DmCDcb2_.js +0 -4
- package/editor-web/assets/esm-Cl3GKSDd.js +0 -21
- package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +0 -1
- package/editor-web/assets/index-omhSywJb.js +0 -28
- package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +0 -1
- package/editor-web/assets/schemas-C21MyseF.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +0 -8
- package/editor-web/assets/tolerant-DM9s0Mt1.js +0 -1
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
|
|
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};
|
package/dist/commands/dev.js
CHANGED
|
@@ -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
|
|
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
|
|
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()+
|
|
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
|
|
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
|
|
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."};
|
package/dist/commands/export.js
CHANGED
|
@@ -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
|
|
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}});
|
package/dist/commands/index.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{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
|
|
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)}
|
package/dist/commands/list.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{readFile as
|
|
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,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"}}});
|
|
@@ -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];
|