allyhub 0.17.1 → 0.18.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/CHANGELOG.md +9 -0
- package/dist/commands/render.js +1 -1
- 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/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +7 -4
- 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/blobs.d.ts +21 -2
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- 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/offline-page.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- 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/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +4 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/html-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/html-extension/dist/page.js +6 -0
- package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -0
- package/dist/node_modules/@allyhub/html-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/markup.json +15 -0
- package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +36 -0
- package/dist/node_modules/@allyhub/html-extension/package.json +92 -0
- 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/dist/show.d.ts +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 +2 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +4 -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/kinds.d.ts +3 -2
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +2 -2
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +11 -4
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -7
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +2 -2
- package/dist/node_modules/@allyhub/protocol/package.json +1 -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/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- 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/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- 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 +2 -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 +14 -13
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CHNpVSPv.js → abnfDiagram-WEYOIA3C-Hy4-O0wN.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-gPsJqQwV.js → architecture-WOLXFQ4H-43JEVxqz.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-CEIDcC6r.js → architectureDiagram-ZHVYKT53-7bFTl41n.js} +1 -1
- package/editor-web/assets/article-CS48wwvk.js +3 -0
- package/editor-web/assets/{article-DfELjJ2o.js → article-Cyle57uq.js} +2 -2
- package/editor-web/assets/{blockDiagram-RJAE7QA3-CUzEGVet.js → blockDiagram-RJAE7QA3-DcoNo1WH.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CB94NR9s.js → c4Diagram-XDPPPE54-CsMt61gx.js} +1 -1
- package/editor-web/assets/channel-HUlo15J7.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-DFYo_Boi.js → chunk-2E7WHVMD-fj-TJIRG.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-CLLjmweX.js → chunk-4EMNKR2T-Du5cRy-Y.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-CkwQ_3m1.js → chunk-55XCU76K-BHXxBBtm.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-V-AvHpAB.js → chunk-7S6XSTFO-R5HW6X5I.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-PjHyYpb8.js → chunk-AQDTSKZB-C98F2BUb.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-QaczBS3J.js → chunk-DSNLSHJZ-NIGsJ2cK.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-aLaQB5Xu.js → chunk-HAGFOTED-BtHxtfW5.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-De3ftDQR.js → chunk-HNE4Q36P-BI8i7Vkk.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-CrhVQyvP.js → chunk-NQOKRVIF-DP_Z_zEA.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-BFmZ5ZLn.js → chunk-UHW7PFBP-C_8bui28.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CzppUHLA.js → chunk-VQ5W62QI-CKZgzWB2.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-BrAU7V6v.js → chunk-WQQL4CDK-Ff4DgCht.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-BSiF71qj.js → chunk-YZO67HFG-Csbx1-pi.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-BJc4r5b1.js → chunk-ZAUX2LTX-BO1kcV3w.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CkGTuehB.js → chunk-ZCHMQSOR-CxeNZYZG.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Byxc7J88.js → classDiagram-v2-4MYWR3UA-D8eHQa5i.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-BSxkVbdf.js → cynefin-EF2NZ3EQ-lIUY3WQQ.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-IkCgARNs.js → cynefinDiagram-WF24UDRP-CFOOhEEs.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-9PgeH6nY.js → dagre-NK4GIZVX-DdHVup2I.js} +1 -1
- package/editor-web/assets/deck-CtEtDHo2.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DRzeg3Ds.js → diagram-CBK3MWTC-CFAD9Y2B.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-B_zeKMN6.js → diagram-I5XIIV2D-DZJAn95A.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-FFm0O8SN.js → diagram-ODIL2UCW-BcIeYTaY.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-DrtCT8OA.js → diagram-PFBEJUXE-CnZmh_fl.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DtxJ3V0q.js → diagram-RJA3I4VV-DpDd9rGx.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-DmxF_8H_.js → diagram-TYUNFSNR-ouGiUQcR.js} +1 -1
- package/editor-web/assets/{dist-C56mWAec.js → dist-BBshIz1Q.js} +2 -2
- package/editor-web/assets/dist-BI8QjOsV.js +1 -0
- package/editor-web/assets/{dist-CEknsRDd.js → dist-BajH5QfK.js} +3 -3
- package/editor-web/assets/{dist-CbZAznNW.js → dist-Bl74xqMW.js} +6 -6
- package/editor-web/assets/{dist-BUD4ywMB.js → dist-BrUtQth3.js} +7 -7
- package/editor-web/assets/{dist-JLyDtl9X.js → dist-CN5A7Au2.js} +1 -1
- package/editor-web/assets/{dist-ZZlQa66J.js → dist-CcL6r6l3.js} +1 -1
- package/editor-web/assets/{dist-DDzjbKIg.js → dist-D2E3cgRP.js} +1 -1
- package/editor-web/assets/{dist-bQKpw3Zz.js → dist-DGKjn59H.js} +3 -3
- package/editor-web/assets/{dist-PBbWAsrV.js → dist-NQNQ5HqZ.js} +3 -3
- package/editor-web/assets/{dist-CAb3W9_P.js → dist-SV0sOVIC.js} +1 -1
- package/editor-web/assets/{dist-C21CkR7Z.js → dist-Y_XZZa8q.js} +7 -7
- package/editor-web/assets/dist-ZrBAbqyJ.js +3 -0
- package/editor-web/assets/dist-elglzHMT.js +6 -0
- package/editor-web/assets/{dist-Dr3o4vee.js → dist-hHcrvNn9.js} +1 -1
- package/editor-web/assets/{docx-draw-9Q_fArBC.js → docx-draw-C4aiB8HI.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-DSX1Aoty.js → ebnfDiagram-V4P3TTPT-HRjVlbUf.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-C7gy9q56.js → elk-QONTBCTQ-BFmtKyOf.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-CKx_HoY4.js → erDiagram-KYQIGQAA-C9gcGEgK.js} +1 -1
- package/editor-web/assets/{esm-BZb5QMQf.js → esm-DzxAod8Q.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-DL4HvSrd.js → eventmodeling-K75KTNOO-Bpma5Bdb.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-N-AP4slN.js → ganttDiagram-R7GPNTJY-CE5ut4C3.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-BKRGJKWm.js → gitGraph-VSP46ZUC-Dva3iGx2.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-ClwL7w2_.js → gitGraphDiagram-PDYL7XHY-CJXFsAWp.js} +1 -1
- package/editor-web/assets/index-Dvh1t1om.css +2 -0
- package/editor-web/assets/{index-DG2nHq4D.js → index-q7X6hdHp.js} +3 -3
- package/editor-web/assets/{info-OHQRW6UA-DpcY8t23.js → info-OHQRW6UA-BY0AOfex.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-ChtmtWni.js → infoDiagram-MVDRKAX5-4Up1gMvC.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BZNTuG_F.js → ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-C3uVmZbL.js → journeyDiagram-BOSHW7O7-BxV09WdR.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-puEhftGG.js → kanban-definition-FNSA4HC5-zTJtIDPG.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-Bw8re-WE.js → mermaid-parser.core-BWT9UQh_.js} +3 -3
- package/editor-web/assets/{mermaid.core-Cc2GIqBr.js → mermaid.core-DFf_Vg5X.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-C6MUl_S_.js → mindmap-definition-6OY57UG3-BYexiugS.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-C75RnvC5.js → packet-JDAUHWVQ-DX_kSrI6.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-ChjmsdV4.js → pegDiagram-ECIUJNBX-I3SrcMLp.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BaKxJQpj.js → pie-XZMESJXO-BmAFSw3E.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-CT2ez8pr.js → pieDiagram-GNMPY74T-DIZKcme5.js} +1 -1
- package/editor-web/assets/{props-form-D5oKHfpk.js → props-form-DUFxM5eb.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-BJItlTfk.js → quadrantDiagram-D57K4MC3-CO3oSqpQ.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-DnLzBlTo.js → radar-ABXABTNO-D5CkFrrb.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-D5hj6Yv3.js → railroad-I3PHUGI6-BeKY1p0K.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-DUZlZoPu.js → railroad-abnf-LNEFI6M7-CIYV9_3-.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-CDyyDC6d.js → railroad-ebnf-DWYD2UWJ-DN0zDl6d.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CC3ImNnT.js → railroad-peg-JR7BVNR7-Bd_GcO24.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-Bjw-8Se5.js → railroadDiagram-Y72NRBL7-DlFoiMhb.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-CDFnuEIO.js → requirementDiagram-EQYSW5RA-LWAEz8Gy.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-CQPVLY1w.js → sankeyDiagram-SY24JHO5-B_pZGwUK.js} +1 -1
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-BQzuLmBX.js → sequenceDiagram-BLEHNHQU-bNhyCq0C.js} +1 -1
- package/editor-web/assets/{session-s1I85rox.js → session-Beijw9EK.js} +1 -1
- package/editor-web/assets/snapshots-Dd0Wd_qM.js +1 -0
- package/editor-web/assets/{split-7CVjIkSU.js → split-zARio3J8.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DOuageUf.js → stateDiagram-v2-A6IESKWZ-DI-oM3qz.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-CXKkok7X.js → swimlanes-B3ENRKFQ-awDmoLdW.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +8 -0
- package/editor-web/assets/tabs-BHBvbekZ.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-DgAjAeZp.js → timeline-definition-JXYKGLGB-CayduPvL.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-C0Xvnhck.js → treeView-D4JQ5SDB-BVEuNzCO.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-aXfKAeSX.js → treemap-SAJKECNS-BOB14HP3.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-CvUlBa-L.js → usecaseDiagram-WPOLBNNX-DxT99uaq.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-qMJ1iCxs.js → vennDiagram-Q3Y3IDCW-CWUKom-r.js} +1 -1
- package/editor-web/assets/{video-DQrjo1TI.js → video-oJ3qa1Qv.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-DEdnH0by.js → wardley-7MLQ67FV-BAQyTneD.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js → wardleyDiagram-IVAIDKWA-CiIYz4lZ.js} +1 -1
- package/editor-web/assets/{workbook-FSSUiIp9.js → workbook-DznVDqoE.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DV4bSzTb.js → xychartDiagram-4URNHDU4-D_D5IGmd.js} +1 -1
- package/editor-web/index.html +3 -3
- package/package.json +2 -2
- package/editor-web/assets/article-BHTjq0_Y.js +0 -3
- package/editor-web/assets/channel-DCDCx5Es.js +0 -1
- package/editor-web/assets/deck-tTzKONci.js +0 -1
- package/editor-web/assets/dist-BEpzsYn_.js +0 -6
- package/editor-web/assets/dist-DaEbElXI.js +0 -3
- package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +0 -1
- package/editor-web/assets/index-BedbINE5.css +0 -2
- package/editor-web/assets/snapshots-BPJKywuN.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +0 -8
- package/editor-web/assets/tabs-CiF1N-pL.js +0 -1
|
@@ -24,7 +24,7 @@ export declare function roundLeft(seconds: number): {
|
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Which jobs show now, by when this window first saw each (its own clock,
|
|
27
|
-
* as a
|
|
27
|
+
* as a Studio server may be another computer): a running one once it has run
|
|
28
28
|
* `SHOW_AFTER_MS`; an ended one that showed, until it has shown
|
|
29
29
|
* `SHOW_AT_LEAST_MS`; a failure always. `next` is when that may change.
|
|
30
30
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/media-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"icon": "image",
|
|
45
45
|
"color": "kind-teal",
|
|
46
|
+
"share": true,
|
|
46
47
|
"module": "@allyhub/media-viewer",
|
|
47
48
|
"markup": [
|
|
48
49
|
"./viewer/markup",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/office-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json"
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"icon": "table-2",
|
|
46
46
|
"color": "kind-green",
|
|
47
|
+
"share": true,
|
|
47
48
|
"module": "@allyhub/office-viewer",
|
|
48
49
|
"markup": [
|
|
49
50
|
"./markup/csv",
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
},
|
|
81
82
|
"icon": "file-text",
|
|
82
83
|
"color": "kind-blue",
|
|
84
|
+
"share": true,
|
|
83
85
|
"module": "@allyhub/office-viewer",
|
|
84
86
|
"markup": "./markup/document"
|
|
85
87
|
},
|
|
@@ -113,6 +115,7 @@
|
|
|
113
115
|
},
|
|
114
116
|
"icon": "presentation",
|
|
115
117
|
"color": "kind-orange",
|
|
118
|
+
"share": true,
|
|
116
119
|
"module": "@allyhub/office-viewer",
|
|
117
120
|
"markup": "./markup/presentation"
|
|
118
121
|
}
|
|
@@ -96,8 +96,9 @@ export type ProjectKind = z.infer<typeof ProjectKindSchema>;
|
|
|
96
96
|
export declare function listedKind(spec: KindSpec): ListedKind;
|
|
97
97
|
/**
|
|
98
98
|
* What a listing gives of a file an editor opens by its name, in a listed
|
|
99
|
-
* kind's shape: its name and heading, its sign and colour,
|
|
100
|
-
*
|
|
99
|
+
* kind's shape: its name and heading, its sign and colour, the editor, and
|
|
100
|
+
* whether it is shared alone (its editor's `share`); no starter and no
|
|
101
|
+
* Export: a file of a pattern is no item.
|
|
101
102
|
*/
|
|
102
103
|
export declare function listedFileEditor(spec: FileEditorSpec): ListedKind;
|
|
103
104
|
/** A listed kind's name in a language: English where its manifest has none in it, its noun where it has none at all. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as r}from"zod";const m=r.object({name:r.string().min(1),only:r.array(r.string().min(1)),values:r.array(r.string().min(1)).optional()});export const ExportOfferSchema=r.object({types:r.array(r.string().min(1)),extras:r.array(r.string().min(1)),options:r.array(m),names:r.record(r.string(),r.record(r.string(),r.string())).optional()});const
|
|
2
|
+
import{z as r}from"zod";const m=r.object({name:r.string().min(1),only:r.array(r.string().min(1)),values:r.array(r.string().min(1)).optional()});export const ExportOfferSchema=r.object({types:r.array(r.string().min(1)),extras:r.array(r.string().min(1)),options:r.array(m),names:r.record(r.string(),r.record(r.string(),r.string())).optional()});const u={noun:r.string().min(1),icon:r.string().min(1).optional(),color:r.string().min(1).optional(),editor:r.string().min(1).optional(),exports:ExportOfferSchema.optional(),share:r.boolean().optional()};export const KindInfoSchema=r.object({name:r.string().min(1),...u}),ListedKindSchema=r.object({name:r.record(r.string(),r.string().min(1)),plural:r.record(r.string(),r.string().min(1)).optional(),starter:r.object({files:r.record(r.string().min(1),r.string()),entry:r.string().min(1)}).optional(),order:r.number().optional(),turnInto:r.boolean().optional(),...u}),ProjectKindSchema=ListedKindSchema.extend({id:r.string().min(1)});export function listedKind(n){return{name:n.name??{en:n.noun},...n.plural===void 0?{}:{plural:{...n.plural}},...n.starter===void 0?{}:{starter:{files:{...n.starter.files},entry:n.starter.entry}},...n.order===void 0?{}:{order:n.order},...n.turnInto===!1?{turnInto:!1}:{},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},...n.editor===void 0?{}:{editor:n.editor},...n.exports===void 0?{}:{exports:{types:[...n.exports.types],extras:[...n.exports.extras],options:n.exports.options.map(o=>({name:o.name,only:[...o.only],...o.values===void 0?{}:{values:[...o.values]}})),...n.exports.names===void 0?{}:{names:Object.fromEntries(Object.entries(n.exports.names).map(([o,e])=>[o,{...e}]))}}},...n.share===void 0?{}:{share:n.share}}}export function listedFileEditor(n){return{name:{...n.name},...n.plural===void 0?{}:{plural:{...n.plural}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},editor:n.id,...n.share===!0?{share:!0}:{}}}export const kindNameIn=(n,o)=>n.name[o]??n.name.en??n.noun,kindPluralIn=(n,o)=>n.plural?.[o]??n.plural?.en??kindNameIn(n,o);const s=/\.(ya?ml|json)$/u;export function starterFiles(n,o,e,i){const a=t=>t.replaceAll("{{locale}}",e).replaceAll("{{name}}",i);return{files:Object.entries(n.files).map(([t,d])=>{const l=a(t),f=s.test(l)?JSON.stringify(o):o;return{path:l,text:d.replaceAll("{{locale}}",e).replaceAll("{{name}}",i).replaceAll("{{title}}",()=>f)}}),entry:a(n.entry)}}export function kindInfoIn(n,o,e){return o===void 0?{name:n??"file",noun:n??"file"}:{name:kindNameIn(o,e),noun:o.noun,...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.editor===void 0?{}:{editor:o.editor},...o.exports===void 0?{}:{exports:o.exports},...o.share===void 0?{}:{share:o.share}}}export function downloadOffered(n){return n.kindInfo?.exports!==void 0?"formats":n.kind===void 0?"file as it is":"nothing"}
|
|
@@ -122,8 +122,8 @@ export declare function paywallNumbersOfData(data: unknown): PaywallNumbers;
|
|
|
122
122
|
/**
|
|
123
123
|
* The paywall an error is, whatever carried it: its own `code` (the
|
|
124
124
|
* services' envelope, a CLI's CloudError, kebab case), its data's
|
|
125
|
-
* `reason` or `code` (as a
|
|
126
|
-
*
|
|
125
|
+
* `reason` or `code` (as a Studio server relays a refusal, which also
|
|
126
|
+
* gives AllyHub's own data as `said`), or the same of an error
|
|
127
127
|
* it was caused by. With the numbers its data said. Nothing for any other
|
|
128
128
|
* failure.
|
|
129
129
|
*/
|
|
@@ -83,7 +83,7 @@ export declare const SharesResponseSchema: z.ZodObject<{
|
|
|
83
83
|
export declare const sharePath: (id: string) => string;
|
|
84
84
|
/** `PUT { project, manifest }` or `{ projectId }`: the share shows the item as it is now (Update shared content); its link stays. Answered as a `Share`, or 409 with what storage lacks. */
|
|
85
85
|
export declare const shareVersionPath: (id: string) => string;
|
|
86
|
-
/** A share's snapshot as a
|
|
86
|
+
/** A share's snapshot as a Studio server records it: the item's reach, as a project's manifest. */
|
|
87
87
|
export declare const ShareSnapshotSchema: z.ZodObject<{
|
|
88
88
|
project: z.ZodObject<{
|
|
89
89
|
name: z.ZodString;
|
|
@@ -12,9 +12,9 @@ export declare const ConversationEntrySchema: z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type ConversationEntry = z.infer<typeof ConversationEntrySchema>;
|
|
14
14
|
/**
|
|
15
|
-
* A conversation as the window replays it: the messages Studio
|
|
16
|
-
*
|
|
17
|
-
* notifications), in order.
|
|
15
|
+
* A conversation as the window replays it: the messages a Studio server
|
|
16
|
+
* (or the Host before it, removed on 2026-11-20) relayed to its clients
|
|
17
|
+
* (ACP's `session/update` and Studio's own notifications), in order.
|
|
18
18
|
*/
|
|
19
19
|
export declare const TranscriptSchema: z.ZodObject<{
|
|
20
20
|
sessionId: z.ZodString;
|
|
@@ -25,7 +25,7 @@ export declare const TranscriptSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
export type Transcript = z.infer<typeof TranscriptSchema>;
|
|
27
27
|
/**
|
|
28
|
-
* What a snapshot is of: a project, or
|
|
28
|
+
* What a snapshot is of: a project, or a Studio's own home (its settings,
|
|
29
29
|
* schedules, skills, plugins and the agents' stores of their
|
|
30
30
|
* conversations; files only, no tree), one per person's Studio.
|
|
31
31
|
*/
|
|
@@ -173,6 +173,13 @@ export declare const SNAPSHOT_TREE: {
|
|
|
173
173
|
readonly answers: "answers/";
|
|
174
174
|
/** Each item's gallery preview, by its id (snapshotPreviewPath). */
|
|
175
175
|
readonly previews: "previews/";
|
|
176
|
+
/**
|
|
177
|
+
* A person's HTML file kept offline, by its project path: the page
|
|
178
|
+
* written again to name what it loaded from https, and those files
|
|
179
|
+
* (`_net/<host>/…` beside it). A read view's `pages/` serves these before
|
|
180
|
+
* the project's files, and nothing serves them elsewhere.
|
|
181
|
+
*/
|
|
182
|
+
readonly pages: "pages/";
|
|
176
183
|
};
|
|
177
184
|
/**
|
|
178
185
|
* Where a project tool's recorded answer is in the tree: by the tool's
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{STAGE_LOADS as S}from"@allyhub/formats";import{z as e}from"zod";import{BlobSchema as $,Sha256Schema as b,TreeFileSchema as g,TreePathSchema as m}from"./blobs.js";import{placeParams as P}from"./editor.js";import{known as A,openEnum as j,readable as h}from"./open.js";export const SNAPSHOT_FORMAT=1,ConversationEntrySchema=e.object({sessionId:e.string().min(1),agent:e.string().min(1),title:e.string().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),transcript:b}),TranscriptSchema=e.object({sessionId:e.string().min(1),messages:e.array(e.object({method:e.string().min(1),params:e.unknown()}))}),SNAPSHOT_KINDS=["project","home"],StageFolderSchema=e.string().regex(/^[a-z][a-z0-9-]*\/$/u,"one lower-case word and /").refine(t=>!Object.values(SNAPSHOT_TREE).includes(t)&&!Object.values(SNAPSHOT_VIEW).includes(t),"a folder of the core's"),StageLoadSchema=j(S),StageRoutesSchema=e.record(e.string(),e.array(e.string()));const O=e.string().refine(t=>t.endsWith("/")&&m.safeParse(t.slice(0,-1)).success,"a folder of the tree, ending in /");export const ItemReachSchema=e.object({tree:e.array(m),files:e.array(m),own:e.record(m,g)}),SnapshotReachSchema=e.object({shared:e.array(O),items:e.record(e.string(),ItemReachSchema)}),SnapshotManifestSchema=e.object({format:e.literal(SNAPSHOT_FORMAT),kind:e.enum(SNAPSHOT_KINDS),project:e.object({name:e.string().min(1).max(255)}),host:e.object({version:e.string().min(1)}),madeAt:e.iso.datetime(),files:e.record(m,$),tree:e.record(m,g),conversations:e.array(ConversationEntrySchema),reach:SnapshotReachSchema.optional(),routes:StageRoutesSchema.optional()});export function scopedManifest(t,o){const s=t.reach,r=s!==void 0&&Object.hasOwn(s.items,o)?s.items[o]:void 0;if(s===void 0||r===void 0)return;const i={};for(const[n,c]of Object.entries(t.tree))s.shared.some(p=>n.startsWith(p))&&(i[n]=c);for(const n of r.tree){const c=Object.hasOwn(t.tree,n)?t.tree[n]:void 0;c!==void 0&&(i[n]=c)}Object.assign(i,r.own);const a={};for(const n of r.files){const c=Object.hasOwn(t.files,n)?t.files[n]:void 0;c!==void 0&&(a[n]=c)}return{format:t.format,kind:t.kind,project:t.project,host:t.host,madeAt:t.madeAt,files:a,tree:i,conversations:[],...t.routes===void 0?{}:{routes:t.routes}}}export const SNAPSHOT_SKIPPED=["node_modules",".allyhub",".playwright-cli"],SNAPSHOT_TREE={editor:"editor/",runtime:"runtime/",build:"build/",media:"media/",matte:"matte/",stills:"stills/",answers:"answers/",previews:"previews/"};function l(t){return Array.isArray(t)?t.map(l):t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(o=>[o,l(t[o])])):t}export const snapshotAnswerPath=(t,o)=>`${SNAPSHOT_TREE.answers}${t}/${encodeURIComponent(JSON.stringify(l(o??{})))}.json`,RecordedAnswerSchema=e.object({result:e.unknown().optional(),error:e.object({code:e.number(),message:e.string(),data:e.unknown().optional()}).optional()}),recordedReadPath=(t,o)=>snapshotAnswerPath(t,Object.fromEntries(Object.entries(o??{}).filter(([s,r])=>s!=="folder"&&r!==void 0))),stillPath=t=>`${SNAPSHOT_TREE.stills}${t}.webp`,stillsIndexPath=(t,o)=>`${SNAPSHOT_TREE.stills}index/${encodeURIComponent(t)}/${encodeURIComponent(o)}.json`,StillsIndexSchema=e.object({stills:e.record(e.string(),e.string().regex(/^[0-9a-f]{64}$/u))}),stillsIndexKey=t=>JSON.stringify(l(t));const w=e.object({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()});export const KindSnapshotSchema=e.object({stills:e.array(e.object({version:e.string(),components:e.array(w)})).optional(),shows:e.object({media:e.array(e.string()),data:e.array(e.string())}).optional(),routes:e.record(e.string(),e.array(e.string().min(1))).optional(),page:e.object({folder:e.string().optional(),file:e.string().optional()}).optional()}),snapshotPreviewPath=t=>`${SNAPSHOT_TREE.previews}${encodeURIComponent(t)}.json`,TREE_PAGES={stage:`${SNAPSHOT_TREE.runtime}stage.html`,viewer:`${SNAPSHOT_TREE.runtime}viewer.html`,probe:`${SNAPSHOT_TREE.runtime}probe.html`},pieceSourcePath=t=>`${SNAPSHOT_TREE.build}sources/${encodeURIComponent(t)}.json`,treeHref=t=>t.split("/").map(encodeURIComponent).join("/");export function stageCsp(t,o,s={}){const r=d=>`${t}${d}`,i=r(SNAPSHOT_TREE.runtime),a=r(SNAPSHOT_TREE.build),n=r(SNAPSHOT_TREE.media),c=r(SNAPSHOT_TREE.matte),p=d=>Object.entries(s).filter(([u,x])=>StageFolderSchema.safeParse(u).success&&x.some(f=>A(S,f)&&f===d)).map(([u])=>` ${r(u)}`).join("");return["default-src 'none'",`script-src 'unsafe-eval' 'wasm-unsafe-eval' ${i} ${a}${p("script")}`,"worker-src blob:",`style-src 'unsafe-inline' ${i} ${a}${p("style")}`,`font-src ${i} ${a} ${n}${p("font")} data:`,`img-src ${n} ${a}${p("img")} data: blob:`,`media-src ${n} ${c}${p("media")} blob:`,`connect-src ${n} ${c} ${a} ${i}${p("connect")} blob: data:`,`frame-ancestors ${o.length>0?o.join(" "):"'none'"}`].join("; ")}export function snapshotEditorUrl(t,o,s={}){const r=Object.entries({item:o,embed:s.share===!0?"share":"studio",snapshot:"1",...s.theme===void 0?{}:{theme:s.theme},...P(s.place)}).map(([i,a])=>`${i}=${encodeURIComponent(a)}`);return`${t.replace(/\/$/u,"")}/${SNAPSHOT_TREE.editor}?${r.join("&")}`}export const EXECUTOR_KINDS=["cloud","computer"],ExecutorSchema=e.object({kind:j(EXECUTOR_KINDS),here:e.boolean()}),SNAPSHOT_BLOBS_PATH="/api/snapshots/blobs",SNAPSHOTS_PATH="/api/snapshots",SnapshotCreateSchema=e.strictObject({project:e.strictObject({id:e.string().min(1).optional(),idMadeByMachine:e.boolean().optional(),kind:e.enum(SNAPSHOT_KINDS),name:e.string().min(1).max(255)}),manifest:b}),SnapshotCreatedSchema=e.object({id:e.string().min(1),projectId:e.string().min(1)}),SnapshotMissingSchema=e.object({missing:e.array(b)}),PROJECTS_PATH="/api/projects",SnapshotInfoSchema=e.object({id:e.string().min(1),madeAt:e.iso.datetime(),hostVersion:e.string()}),ProjectInfoSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),latest:SnapshotInfoSchema.nullable(),executor:ExecutorSchema.optional()}),ProjectsResponseSchema=e.object({projects:h(ProjectInfoSchema)}),projectPath=t=>`${PROJECTS_PATH}/${encodeURIComponent(t)}`,STORAGE_PATH="/api/storage",StorageSchema=e.object({keptBytes:e.number(),capBytes:e.number().nullable(),clearingBytes:e.number().optional()}),STORAGE_CLEARING_PATH=`${STORAGE_PATH}/clearing`,STORAGE_PAGE_SIZE=10,StoragePageSchema=e.strictObject({page:e.int().min(1)}),STORAGE_PROJECTS_PATH=`${STORAGE_PATH}/projects`,StoredProjectSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),bytes:e.number(),versions:e.number(),madeAt:e.iso.datetime().nullable()}),StoredProjectsSchema=e.object({items:h(StoredProjectSchema),total:e.number()}),STORAGE_FILES_PATH=`${STORAGE_PATH}/files`,StoredFileSchema=e.object({id:e.string().min(1),name:e.string(),contentType:e.string(),size:e.number(),keptUntil:e.iso.datetime()}),StoredFilesSchema=e.object({items:h(StoredFileSchema),total:e.number()}),snapshotViewPath=t=>`${SNAPSHOTS_PATH}/${encodeURIComponent(t)}/view`,SnapshotViewSchema=e.object({origin:e.url(),expiresAt:e.iso.datetime()}),SNAPSHOT_VIEW={manifest:"manifest.json",files:"files/",pages:"pages/",conversations:"conversations/"},PAGE_CSP=["sandbox allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox","default-src 'self' data: blob:","script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:","style-src 'self' 'unsafe-inline'","img-src 'self' data: blob:","font-src 'self' data:","connect-src 'self' data: blob:","media-src 'self' data: blob:"].join("; "),NEEDS_MACHINE=-32010,isNeedsMachine=t=>typeof t=="object"&&t!==null&&t.code===NEEDS_MACHINE;
|
|
2
|
+
import{STAGE_LOADS as S}from"@allyhub/formats";import{z as e}from"zod";import{BlobSchema as $,Sha256Schema as b,TreeFileSchema as g,TreePathSchema as m}from"./blobs.js";import{placeParams as P}from"./editor.js";import{known as A,openEnum as j,readable as h}from"./open.js";export const SNAPSHOT_FORMAT=1,ConversationEntrySchema=e.object({sessionId:e.string().min(1),agent:e.string().min(1),title:e.string().optional(),createdAt:e.iso.datetime(),updatedAt:e.iso.datetime(),transcript:b}),TranscriptSchema=e.object({sessionId:e.string().min(1),messages:e.array(e.object({method:e.string().min(1),params:e.unknown()}))}),SNAPSHOT_KINDS=["project","home"],StageFolderSchema=e.string().regex(/^[a-z][a-z0-9-]*\/$/u,"one lower-case word and /").refine(t=>!Object.values(SNAPSHOT_TREE).includes(t)&&!Object.values(SNAPSHOT_VIEW).includes(t),"a folder of the core's"),StageLoadSchema=j(S),StageRoutesSchema=e.record(e.string(),e.array(e.string()));const O=e.string().refine(t=>t.endsWith("/")&&m.safeParse(t.slice(0,-1)).success,"a folder of the tree, ending in /");export const ItemReachSchema=e.object({tree:e.array(m),files:e.array(m),own:e.record(m,g)}),SnapshotReachSchema=e.object({shared:e.array(O),items:e.record(e.string(),ItemReachSchema)}),SnapshotManifestSchema=e.object({format:e.literal(SNAPSHOT_FORMAT),kind:e.enum(SNAPSHOT_KINDS),project:e.object({name:e.string().min(1).max(255)}),host:e.object({version:e.string().min(1)}),madeAt:e.iso.datetime(),files:e.record(m,$),tree:e.record(m,g),conversations:e.array(ConversationEntrySchema),reach:SnapshotReachSchema.optional(),routes:StageRoutesSchema.optional()});export function scopedManifest(t,o){const s=t.reach,r=s!==void 0&&Object.hasOwn(s.items,o)?s.items[o]:void 0;if(s===void 0||r===void 0)return;const i={};for(const[n,c]of Object.entries(t.tree))s.shared.some(p=>n.startsWith(p))&&(i[n]=c);for(const n of r.tree){const c=Object.hasOwn(t.tree,n)?t.tree[n]:void 0;c!==void 0&&(i[n]=c)}Object.assign(i,r.own);const a={};for(const n of r.files){const c=Object.hasOwn(t.files,n)?t.files[n]:void 0;c!==void 0&&(a[n]=c)}return{format:t.format,kind:t.kind,project:t.project,host:t.host,madeAt:t.madeAt,files:a,tree:i,conversations:[],...t.routes===void 0?{}:{routes:t.routes}}}export const SNAPSHOT_SKIPPED=["node_modules",".allyhub",".playwright-cli"],SNAPSHOT_TREE={editor:"editor/",runtime:"runtime/",build:"build/",media:"media/",matte:"matte/",stills:"stills/",answers:"answers/",previews:"previews/",pages:"pages/"};function l(t){return Array.isArray(t)?t.map(l):t!==null&&typeof t=="object"?Object.fromEntries(Object.keys(t).sort().map(o=>[o,l(t[o])])):t}export const snapshotAnswerPath=(t,o)=>`${SNAPSHOT_TREE.answers}${t}/${encodeURIComponent(JSON.stringify(l(o??{})))}.json`,RecordedAnswerSchema=e.object({result:e.unknown().optional(),error:e.object({code:e.number(),message:e.string(),data:e.unknown().optional()}).optional()}),recordedReadPath=(t,o)=>snapshotAnswerPath(t,Object.fromEntries(Object.entries(o??{}).filter(([s,r])=>s!=="folder"&&r!==void 0))),stillPath=t=>`${SNAPSHOT_TREE.stills}${t}.webp`,stillsIndexPath=(t,o)=>`${SNAPSHOT_TREE.stills}index/${encodeURIComponent(t)}/${encodeURIComponent(o)}.json`,StillsIndexSchema=e.object({stills:e.record(e.string(),e.string().regex(/^[0-9a-f]{64}$/u))}),stillsIndexKey=t=>JSON.stringify(l(t));const w=e.object({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()});export const KindSnapshotSchema=e.object({stills:e.array(e.object({version:e.string(),components:e.array(w)})).optional(),shows:e.object({media:e.array(e.string()),data:e.array(e.string())}).optional(),routes:e.record(e.string(),e.array(e.string().min(1))).optional(),page:e.object({folder:e.string().optional(),file:e.string().optional()}).optional()}),snapshotPreviewPath=t=>`${SNAPSHOT_TREE.previews}${encodeURIComponent(t)}.json`,TREE_PAGES={stage:`${SNAPSHOT_TREE.runtime}stage.html`,viewer:`${SNAPSHOT_TREE.runtime}viewer.html`,probe:`${SNAPSHOT_TREE.runtime}probe.html`},pieceSourcePath=t=>`${SNAPSHOT_TREE.build}sources/${encodeURIComponent(t)}.json`,treeHref=t=>t.split("/").map(encodeURIComponent).join("/");export function stageCsp(t,o,s={}){const r=d=>`${t}${d}`,i=r(SNAPSHOT_TREE.runtime),a=r(SNAPSHOT_TREE.build),n=r(SNAPSHOT_TREE.media),c=r(SNAPSHOT_TREE.matte),p=d=>Object.entries(s).filter(([u,x])=>StageFolderSchema.safeParse(u).success&&x.some(f=>A(S,f)&&f===d)).map(([u])=>` ${r(u)}`).join("");return["default-src 'none'",`script-src 'unsafe-eval' 'wasm-unsafe-eval' ${i} ${a}${p("script")}`,"worker-src blob:",`style-src 'unsafe-inline' ${i} ${a}${p("style")}`,`font-src ${i} ${a} ${n}${p("font")} data:`,`img-src ${n} ${a}${p("img")} data: blob:`,`media-src ${n} ${c}${p("media")} blob:`,`connect-src ${n} ${c} ${a} ${i}${p("connect")} blob: data:`,`frame-ancestors ${o.length>0?o.join(" "):"'none'"}`].join("; ")}export function snapshotEditorUrl(t,o,s={}){const r=Object.entries({item:o,embed:s.share===!0?"share":"studio",snapshot:"1",...s.theme===void 0?{}:{theme:s.theme},...P(s.place)}).map(([i,a])=>`${i}=${encodeURIComponent(a)}`);return`${t.replace(/\/$/u,"")}/${SNAPSHOT_TREE.editor}?${r.join("&")}`}export const EXECUTOR_KINDS=["cloud","computer"],ExecutorSchema=e.object({kind:j(EXECUTOR_KINDS),here:e.boolean()}),SNAPSHOT_BLOBS_PATH="/api/snapshots/blobs",SNAPSHOTS_PATH="/api/snapshots",SnapshotCreateSchema=e.strictObject({project:e.strictObject({id:e.string().min(1).optional(),idMadeByMachine:e.boolean().optional(),kind:e.enum(SNAPSHOT_KINDS),name:e.string().min(1).max(255)}),manifest:b}),SnapshotCreatedSchema=e.object({id:e.string().min(1),projectId:e.string().min(1)}),SnapshotMissingSchema=e.object({missing:e.array(b)}),PROJECTS_PATH="/api/projects",SnapshotInfoSchema=e.object({id:e.string().min(1),madeAt:e.iso.datetime(),hostVersion:e.string()}),ProjectInfoSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),latest:SnapshotInfoSchema.nullable(),executor:ExecutorSchema.optional()}),ProjectsResponseSchema=e.object({projects:h(ProjectInfoSchema)}),projectPath=t=>`${PROJECTS_PATH}/${encodeURIComponent(t)}`,STORAGE_PATH="/api/storage",StorageSchema=e.object({keptBytes:e.number(),capBytes:e.number().nullable(),clearingBytes:e.number().optional()}),STORAGE_CLEARING_PATH=`${STORAGE_PATH}/clearing`,STORAGE_PAGE_SIZE=10,StoragePageSchema=e.strictObject({page:e.int().min(1)}),STORAGE_PROJECTS_PATH=`${STORAGE_PATH}/projects`,StoredProjectSchema=e.object({id:e.string().min(1),kind:e.enum(SNAPSHOT_KINDS),name:e.string(),bytes:e.number(),versions:e.number(),madeAt:e.iso.datetime().nullable()}),StoredProjectsSchema=e.object({items:h(StoredProjectSchema),total:e.number()}),STORAGE_FILES_PATH=`${STORAGE_PATH}/files`,StoredFileSchema=e.object({id:e.string().min(1),name:e.string(),contentType:e.string(),size:e.number(),keptUntil:e.iso.datetime()}),StoredFilesSchema=e.object({items:h(StoredFileSchema),total:e.number()}),snapshotViewPath=t=>`${SNAPSHOTS_PATH}/${encodeURIComponent(t)}/view`,SnapshotViewSchema=e.object({origin:e.url(),expiresAt:e.iso.datetime()}),SNAPSHOT_VIEW={manifest:"manifest.json",files:"files/",pages:"pages/",conversations:"conversations/"},PAGE_CSP=["sandbox allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox","default-src 'self' data: blob:","script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:","style-src 'self' 'unsafe-inline'","img-src 'self' data: blob:","font-src 'self' data:","connect-src 'self' data: blob:","media-src 'self' data: blob:"].join("; "),NEEDS_MACHINE=-32010,isNeedsMachine=t=>typeof t=="object"&&t!==null&&t.code===NEEDS_MACHINE;
|
|
@@ -110,13 +110,6 @@ export declare const NDJSON = "application/x-ndjson";
|
|
|
110
110
|
* or the first time), its Host started. A step not needed is not said.
|
|
111
111
|
*/
|
|
112
112
|
export declare const STUDIO_OPEN_STEPS: readonly ["machine", "install", "start"];
|
|
113
|
-
/**
|
|
114
|
-
* The environment variable a cloud Studio's Host is started with: a value
|
|
115
|
-
* new to each start, which its `/health` says back as `start`, so its
|
|
116
|
-
* control plane knows the Host answering is the one it started (not one
|
|
117
|
-
* before it that did not stop). A Host older than it ignores it.
|
|
118
|
-
*/
|
|
119
|
-
export declare const STUDIO_START_ENV = "ALLYHUB_STUDIO_START";
|
|
120
113
|
export type StudioOpenStep = (typeof STUDIO_OPEN_STEPS)[number];
|
|
121
114
|
export declare const StudioOpenLineSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
122
115
|
step: z.ZodEnum<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number(),spent:t.number().optional()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string().optional()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],
|
|
2
|
+
import{z as t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number(),spent:t.number().optional()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string().optional()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],StudioOpenLineSchema=t.union([t.object({step:t.enum(STUDIO_OPEN_STEPS),first:t.boolean().optional()}),t.object({status:t.number(),error:t.object({code:t.string(),message:t.string(),data:t.record(t.string(),t.unknown()).optional()})}),StudioOpenedSchema]),STUDIO_TICKET_PATH="/api/studio/ticket",StudioTicketSchema=t.object({ticket:t.string().min(1)}),STUDIO_PREPARE_PATH="/api/studio/prepare",StudioPreparedSchema=t.object({prepared:t.boolean()}),STUDIO_PAUSE_PATH="/api/studio/pause",StudioPausedSchema=t.object({paused:t.boolean()}),STUDIO_WAKES_PATH="/api/studio/wakes",STUDIO_WAKE_OUTCOMES=["live","failed"],StudioWakeReportSchema=t.strictObject({outcome:t.enum(STUDIO_WAKE_OUTCOMES),error:t.string().max(500).optional(),server:StudioOpenStagesSchema.optional(),window:t.strictObject({open:t.number().optional(),connect:t.number().optional(),enter:t.number().optional(),total:t.number()}),first:t.boolean().optional()}),STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{FolderSchema as n,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as c,ProjectKindSchema as g}from"./kinds.js";import{RPC_ERROR as
|
|
2
|
+
import{z as e}from"zod";import{FolderSchema as n,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as c,ProjectKindSchema as g}from"./kinds.js";import{RPC_ERROR as f,RpcError as b,method as s,notification as o}from"./jsonrpc.js";export const VersionRef={item:t,version:e.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:t,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(t),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:t,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()}),FramedPageSchema=e.strictObject({url:e.string(),probe:e.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":s(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:n,entry:t,title:e.string().optional(),groups:e.array(e.string()),files:e.array(e.object({path:e.string().min(1),role:e.string().min(1).optional()})).optional(),kindInfo:c.optional()})),kinds:e.array(g).optional(),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"project/file":s(e.strictObject({path:t}),e.strictObject({item:e.strictObject({id:t,kind:e.string().min(1).optional(),dir:n,entry:t,title:e.string().optional(),groups:e.array(e.string()),kindInfo:c.optional()})}),"A file of the project as it opens in an editor, whether the list names it or not: the item it is, else the file in the editor that opens it by its name (an `editors` contribution's `files`); not found for a file that is not there or that no editor opens."),"items/preview":s(e.strictObject({item:t}),e.strictObject({preview:h.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"items/page":s(e.strictObject({item:t,folder:n.optional(),file:t.optional()}),e.strictObject({url:e.string()}),"The address of an item's page, for a frame (an HTML file's page, a website built as files): `item` an item of a kind or a file of the project an editor opens by its name (its path), `folder` served as the root of an origin of its own, the project's files alone (a file's page also what it names on https; its own requests the project's files alone), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":s(e.strictObject({kind:e.string().min(1),file:t,title:e.string().min(1).optional()}),e.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":s(e.strictObject({item:t}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":s(e.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":s(e.strictObject({...VersionRef,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":s(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":s(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":s(e.strictObject({item:t,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":s(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":s(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":s(e.strictObject({path:t}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","project/file":"asleep","items/preview":"asleep","items/page":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"},AGENT_DOES={"project/items":{files:"allyhub.yaml"},"project/file":{files:"the project's files"},"items/preview":{command:"frames"},"items/page":{command:"frames"},"work/add":{files:"allyhub.yaml"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"}};export function toolSpec(i){return Object.hasOwn(PROJECT_TOOLS,i)?PROJECT_TOOLS[i]:void 0}export function toolCaller(i){return async(p,r,l)=>{const{result:m}=await p["tools/call"]({name:r,arguments:l}),a=i[r]?.result.safeParse(m);if(!a?.success)throw new b(f.internal,`The answer to the tool ${r} is not what the protocol says.`);return a.data}}export const TOOL_NOTIFICATIONS={"project/changed":o(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"items/changed":o(e.strictObject({item:t,paths:e.array(e.string())}),`One of an item's inputs changed (docs/design/item-files.md, "An item's inputs"): a file its build lists, or one its pages loaded.`),"check/changed":o(CheckStateSchema,"The check started, ended or failed."),"export/changed":o(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":o(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":o(e.strictObject({job:d,item:t}),"A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
|
|
@@ -6,7 +6,7 @@ export declare const turnPath: (traceId: string) => string;
|
|
|
6
6
|
export declare const TURN_QUERY_AT_MOST = 32000;
|
|
7
7
|
/** The most characters of an error kept. */
|
|
8
8
|
export declare const TURN_ERROR_AT_MOST = 2000;
|
|
9
|
-
/** A turn began:
|
|
9
|
+
/** A turn began: a Studio server's `PUT turnPath(traceId)`. Strict, as everything the services receive. */
|
|
10
10
|
export declare const TurnStartedSchema: z.ZodObject<{
|
|
11
11
|
at: z.ZodISODateTime;
|
|
12
12
|
agent: z.ZodString;
|
|
@@ -40,7 +40,7 @@ export declare const TurnStepSchema: z.ZodObject<{
|
|
|
40
40
|
ms: z.ZodOptional<z.ZodNumber>;
|
|
41
41
|
}, z.core.$strict>;
|
|
42
42
|
export type TurnStep = z.infer<typeof TurnStepSchema>;
|
|
43
|
-
/** A turn ended:
|
|
43
|
+
/** A turn ended: a Studio server's `PATCH turnPath(traceId)`. */
|
|
44
44
|
export declare const TurnEndedSchema: z.ZodObject<{
|
|
45
45
|
at: z.ZodISODateTime;
|
|
46
46
|
durationMs: z.ZodNumber;
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
270
|
"node": {
|
|
271
|
-
"about": "Node.js and its npm, the official builds: what
|
|
271
|
+
"about": "Node.js and its npm, the official builds: what the Studio server's package runs on, and Studio's agents on the desktop",
|
|
272
272
|
"version": "24.22.2",
|
|
273
273
|
"license": "MIT",
|
|
274
274
|
"homepage": "https://nodejs.org",
|