allyhub 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/export.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/run.js +2 -0
- package/dist/commands.json +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +4 -4
- 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/dist/elements.js +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +1 -1
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +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/call.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/client.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/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/dist/block-shapes.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/blocks.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -5
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +2 -2
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +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/page-data.d.ts +9 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +1 -1
- 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-extension/skills/allyhub/references/images.md +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/linkedin-view/src/style.css +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/cloud.js +1 -1
- 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/report-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +37 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +4 -0
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +23 -0
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +33 -0
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/package.json +185 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +180 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +15 -0
- 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 +8 -8
- 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/dist/html.js +10 -10
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/tile-shapes.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- 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/dist/cli/sheet.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +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/dist/cli/slides.js +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/dist/runtime.js +2 -2
- 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 -14
- package/dist/run-register.js +2 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-BkVJMd53.js → abnfDiagram-WEYOIA3C-D6qI3rai.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-C6rnaynZ.js → architecture-WOLXFQ4H-B3V6ggq8.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-D3vrh8LK.js → architectureDiagram-ZHVYKT53-IauNyxXn.js} +1 -1
- package/editor-web/assets/article-BHjKp5We.js +3 -0
- package/editor-web/assets/article-BlNKv1Cn.js +7 -0
- package/editor-web/assets/bar-button-CJmpgNg4.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BKngt8H7.js → blockDiagram-RJAE7QA3-yXhlfxbH.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-j7sUELqF.js → c4Diagram-XDPPPE54-B-anrhvt.js} +1 -1
- package/editor-web/assets/{calc-worker-Cr4a0xmt.js → calc-worker-BpAgQE9E.js} +3 -3
- package/editor-web/assets/channel-Bhb-_8v6.js +1 -0
- package/editor-web/assets/chip-pNQlYa2W.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-BXa-uRSi.js → chunk-2E7WHVMD-QPOni4XB.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-B3ntcsZN.js → chunk-4EMNKR2T-DG1FCRRI.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-AMvnFwUg.js → chunk-55XCU76K-mKuMXpnC.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-BA6esfFu.js → chunk-7S6XSTFO-CgZAazgt.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BT_vANXs.js → chunk-AQDTSKZB-BRU84phF.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-DoUgmzGB.js → chunk-DSNLSHJZ-zku9oeG3.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-DtnIrCZb.js → chunk-HAGFOTED-CaUkBv_0.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BlPwQx3_.js → chunk-HNE4Q36P-BQz4ZCJf.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-D2r7jp2r.js → chunk-NQOKRVIF-CHVBEDkg.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-Cmc0_F5o.js → chunk-UHW7PFBP-DrYeJo1e.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-nJSMqAr0.js → chunk-VQ5W62QI-D8ToVCUe.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-Btq2nbF6.js → chunk-WQQL4CDK-DZ0tyi9F.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-DTbcCoGt.js → chunk-YZO67HFG-BLe7PXER.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-DVwkg-2N.js → chunk-ZAUX2LTX-ByaeSIre.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-BV39jOOE.js → chunk-ZCHMQSOR-DdMJr_t5.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-Cj74-fhM.js → classDiagram-v2-4MYWR3UA-DDpq7fFC.js} +1 -1
- package/editor-web/assets/collaborator-CbTacvkB.js +1 -0
- package/editor-web/assets/color-picker-CDeICDN5.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-C0CkiipV.js → cynefin-EF2NZ3EQ-CMivy2fr.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-hdsnJ4cI.js → cynefinDiagram-WF24UDRP-GtxT_9wW.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-CC7WSgaK.js → dagre-NK4GIZVX-Bn1O2Hjl.js} +1 -1
- package/editor-web/assets/deck-Cohd-G5m.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DmaVm13J.js → diagram-CBK3MWTC-W715PWZw.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-De8jqp7b.js → diagram-I5XIIV2D-BKObZPn2.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-B5pBTulX.js → diagram-ODIL2UCW-UtQxEPoW.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BYsXg5_w.js → diagram-PFBEJUXE-CpLGEK-k.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DZ8f6bYe.js → diagram-RJA3I4VV-DGyMXoHb.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-qXHUsauD.js → diagram-TYUNFSNR-Dy_Ewr8V.js} +1 -1
- package/editor-web/assets/dist-0I0Obj60.js +19 -0
- package/editor-web/assets/dist-6ugUm4dS.js +6 -0
- package/editor-web/assets/dist-B0rUvCi2.js +1 -0
- package/editor-web/assets/{dist-DAhe-kFC.js → dist-B8_6sJ_V.js} +1 -1
- package/editor-web/assets/dist-CKD_paj_.js +1 -0
- package/editor-web/assets/dist-CKUW5NzS.js +3 -0
- package/editor-web/assets/dist-Ca9Gsuu0.js +24 -0
- package/editor-web/assets/dist-Cc8v9lfc.js +1 -0
- package/editor-web/assets/dist-CynBNzYv.js +1 -0
- package/editor-web/assets/{dist-9kuRjUTN.js → dist-D7M5YTq2.js} +6 -6
- package/editor-web/assets/dist-D9tsFc2N.js +16 -0
- package/editor-web/assets/dist-DNMKDcLg.js +35 -0
- package/editor-web/assets/dist-Doj7_HUI.js +547 -0
- package/editor-web/assets/dist-DptBQzJR.js +1 -0
- package/editor-web/assets/dist-DzKB210A.js +5 -0
- package/editor-web/assets/{dist-B3rd02Cg.js → dist-H9rTuNhb.js} +6 -6
- package/editor-web/assets/{dist-DA72-4WB.js → dist-QLXI7XGS.js} +1 -1
- package/editor-web/assets/dist-RyGsFHE0.js +4 -0
- package/editor-web/assets/dist-oeSWr2LE.js +19 -0
- package/editor-web/assets/dist-wD_hHJ8_.js +19 -0
- package/editor-web/assets/{docx-draw-L54blreB.js → docx-draw-B5cM77hc.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-B7-IfVI-.js → ebnfDiagram-V4P3TTPT-GPYcx6dU.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Gj_WaeBn.js → elk-QONTBCTQ-Bi0r4UFM.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BDF6Qoqx.js → erDiagram-KYQIGQAA-DrOSrnci.js} +1 -1
- package/editor-web/assets/esm-jIPnpbBD.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-elxVXXEe.js → eventmodeling-K75KTNOO-Dw-MjgUb.js} +1 -1
- package/editor-web/assets/eye-DwfE1USj.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-DbZTfPEP.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CEogW3jW.js → ganttDiagram-R7GPNTJY-Bwe8cQqi.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Bh9cRWFa.js → gitGraph-VSP46ZUC-DsAcAKP0.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BQAvdM_V.js → gitGraphDiagram-PDYL7XHY-aObRwdru.js} +1 -1
- package/editor-web/assets/hint-F4fIBnVU.js +1 -0
- package/editor-web/assets/index-Cah2zchD.css +2 -0
- package/editor-web/assets/index-D-MNVykg.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-CdPrqere.js → info-OHQRW6UA-DBPN8JFr.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-uwIMeP44.js → infoDiagram-MVDRKAX5-Bx26Hq7M.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-rtfvqK7E.js → ishikawaDiagram-HPEHV2GE-BJ_MCDwA.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-mmhfIyVG.js → journeyDiagram-BOSHW7O7-B5g4W2Dx.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Fe7jBsi-.js → kanban-definition-FNSA4HC5-U8YNlxN7.js} +1 -1
- package/editor-web/assets/layout-CuWN7_3k.js +1 -0
- package/editor-web/assets/{mermaid-parser.core-BxOSjBH9.js → mermaid-parser.core-DYLQlYDo.js} +3 -3
- package/editor-web/assets/{mermaid.core-BOln9YdH.js → mermaid.core-qNJmZ0b4.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-M3Q1LOtO.js → mindmap-definition-6OY57UG3-CI5aBWbK.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-Dbb0TUG6.js → packet-JDAUHWVQ-BBclMGlJ.js} +1 -1
- package/editor-web/assets/palette-DchDLJj6.js +1 -0
- package/editor-web/assets/panes-BShVq38A.js +3 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-BZMRpSFC.js → pegDiagram-ECIUJNBX-B3pljPTu.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-Ctm9XdKp.js → pie-XZMESJXO-B7WzimHm.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-cGbs5ZTl.js → pieDiagram-GNMPY74T-tM1Da50-.js} +1 -1
- package/editor-web/assets/progress-D1Uv3d1b.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-BUe_zsxT.js → quadrantDiagram-D57K4MC3-BEq_Shj9.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-CCmKtqLs.js → radar-ABXABTNO-v2jJSW5T.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-k-yhjhjA.js → railroad-I3PHUGI6-6W3Z4F8Y.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-B-PvntB3.js → railroad-abnf-LNEFI6M7-DxIN7Zrt.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-Ds2rua1h.js → railroad-ebnf-DWYD2UWJ-Bb5O7tAx.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-jNZ2wEp2.js → railroad-peg-JR7BVNR7-i2LjEP5t.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-CTqSQ15w.js → railroadDiagram-Y72NRBL7-DhsyVKbG.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-CUblhR5M.js → requirementDiagram-EQYSW5RA-Du2k7i1E.js} +1 -1
- package/editor-web/assets/ribbon-tabs-Bxuj_hct.js +1 -0
- package/editor-web/assets/row-DqS4-5b1.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-nSz6zDX3.js → sankeyDiagram-SY24JHO5-CDnRMu7J.js} +1 -1
- package/editor-web/assets/schemas-CnlOL0u4.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DxTpOYuo.js → sequenceDiagram-BLEHNHQU-BUXBhWYW.js} +1 -1
- package/editor-web/assets/{session-BhClkDyr.js → session--OJYv_B7.js} +1 -1
- package/editor-web/assets/{snapshots-DwGHDN3t.js → snapshots-DYooVfOx.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-C3e14iHY.js → stateDiagram-v2-A6IESKWZ-Enb8LZUA.js} +1 -1
- package/editor-web/assets/surface-BUoi7cmR.js +1 -0
- package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-DPPdzNzu.js → swimlanes-B3ENRKFQ-pnpjgTrl.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B-B2Eoc8.js +8 -0
- package/editor-web/assets/switch-b6GCy_ix.js +1 -0
- package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
- package/editor-web/assets/tablet-C6oePHEW.js +1 -0
- package/editor-web/assets/textarea-Bu6uPEqT.js +1 -0
- package/editor-web/assets/themes-D_ISkWVz.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-DRTJ1_Er.js → timeline-definition-JXYKGLGB-C4pR18kd.js} +1 -1
- package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-BYJ_m-i5.js → treeView-D4JQ5SDB-kzNGeAv6.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-BcU6I6Rg.js → treemap-SAJKECNS-Buhb5wzt.js} +1 -1
- package/editor-web/assets/updating-Cbxw83_O.js +1 -0
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-YV92pS4o.js → usecaseDiagram-WPOLBNNX-CL-xLQWl.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-oAvfHZtf.js → vennDiagram-Q3Y3IDCW-bwsyCcdK.js} +1 -1
- package/editor-web/assets/{video-SJvDRCJK.js → video-8MxWX9f5.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-BLNiqxtt.js → wardley-7MLQ67FV-DXsLgedI.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-SppgC6xW.js → wardleyDiagram-IVAIDKWA-Cn0ph953.js} +1 -1
- package/editor-web/assets/{words-BUlNNuH2.js → words-B2jQwWpp.js} +1 -1
- package/editor-web/assets/{words-zMedmPWc.js → words-DgMuEmDO.js} +1 -1
- package/editor-web/assets/workbook-BDWkQ149.js +41 -0
- package/editor-web/assets/x-BAJilkKD.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-BHMn_jwJ.js → xychartDiagram-4URNHDU4-CfXnqGWZ.js} +1 -1
- package/editor-web/index.html +6 -6
- package/package.json +5 -2
- package/editor-web/assets/article-DHf6mOY_.js +0 -7
- package/editor-web/assets/article-Dns1-Xh-.js +0 -3
- package/editor-web/assets/bar-button-CKPfx2AB.js +0 -1
- package/editor-web/assets/channel-CVWSV3su.js +0 -1
- package/editor-web/assets/chip-Bn_9JRRG.js +0 -1
- package/editor-web/assets/collaborator-XiHOxwGM.js +0 -1
- package/editor-web/assets/deck-DQpNIS2p.js +0 -1
- package/editor-web/assets/dist--z0ZHp4T.js +0 -16
- package/editor-web/assets/dist-B5GOGGEe.js +0 -1
- package/editor-web/assets/dist-Bx6q9kCu.js +0 -1
- package/editor-web/assets/dist-C4hHtrJr.js +0 -1
- package/editor-web/assets/dist-CCXJewsi.js +0 -19
- package/editor-web/assets/dist-CfK2BLl8.js +0 -4
- package/editor-web/assets/dist-Cmux3oJ_.js +0 -1
- package/editor-web/assets/dist-Cspf85KV.js +0 -6
- package/editor-web/assets/dist-DOrGo1GD.js +0 -19
- package/editor-web/assets/dist-DjiCHlSu.js +0 -35
- package/editor-web/assets/dist-Do4a40Wn.js +0 -19
- package/editor-web/assets/dist-FKEWS3Co.js +0 -547
- package/editor-web/assets/dist-QKd2i6kG.js +0 -5
- package/editor-web/assets/dist-SGnOfLhx.js +0 -24
- package/editor-web/assets/dist-VmVB7tl4.js +0 -3
- package/editor-web/assets/esm-PQD5Pn8a.js +0 -21
- package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +0 -1
- package/editor-web/assets/hint-CbwoSBMw.js +0 -1
- package/editor-web/assets/index-CXisi0Cj.css +0 -2
- package/editor-web/assets/index-wMlfx8aT.js +0 -28
- package/editor-web/assets/layout-SWqqA0yV.js +0 -1
- package/editor-web/assets/progress-DZQTiRLv.js +0 -6
- package/editor-web/assets/ribbon-DajdQ_Ya.js +0 -1
- package/editor-web/assets/row-Bei9HNEe.js +0 -1
- package/editor-web/assets/schemas-C21MyseF.js +0 -1
- package/editor-web/assets/split-DBAbwPZ5.js +0 -3
- package/editor-web/assets/surface-CIF0Ae0z.js +0 -1
- package/editor-web/assets/swatch-BUzr_XmH.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +0 -8
- package/editor-web/assets/switch-DrZxoPQS.js +0 -1
- package/editor-web/assets/syntax-emXV4DnN.js +0 -1
- package/editor-web/assets/tabs-BwU2E7bU.js +0 -1
- package/editor-web/assets/textarea-BX_ax3X8.js +0 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +0 -1
- package/editor-web/assets/type-CvZ0HZsV.js +0 -41
- package/editor-web/assets/workbook-BZKYx4WB.js +0 -41
|
@@ -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";import{ConfigSchema as n}from"./data/config.js";import{DeckCodeSchema as m}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as
|
|
2
|
+
import{z as r}from"zod";import{ConfigSchema as n}from"./data/config.js";import{DeckCodeSchema as m}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as d}from"./data/messages.js";import{InterpretationSchema as f}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as g}from"./data/slides.js";import{WebsiteFileSchema as b}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as F}from"./data/words.js";import{OPENPYXL_FIELDS as k,PPTX_FIELDS as j,readLeavingOutUnknownFields as v,readTolerantly as A}from"./tolerant.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:F,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.provenance"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:d,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:g,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:b,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:f,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:m,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:n,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function i(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const o=a.path.map(String).join(".");return o===""?i(a):`${o}: ${i(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=v(DATA_FILES[e].schema,t),a=s.leftOut.length===0?{}:{leftOut:s.leftOut};return s.success?{ok:!0,value:s.data,...a}:{ok:!1,problems:s.error.issues.map(o=>({path:o.path.map(String).join("."),message:i(o)})),...a}}export function readDataFileAsWritten(e,t){return A(DATA_FILES[e].schema,t,e==="slides"?j:k)}
|
|
@@ -27,12 +27,36 @@ export declare function problemsOf(value: unknown, issues: readonly Issue[]): {
|
|
|
27
27
|
path: string;
|
|
28
28
|
message: string;
|
|
29
29
|
}[];
|
|
30
|
-
/** A
|
|
30
|
+
/** A field a value's schema does not know, left out of what it reads as: where it was, and what it was. */
|
|
31
|
+
export interface FieldLeftOut {
|
|
32
|
+
path: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A value read by its schema, the fields it does not know left out (a
|
|
37
|
+
* newer AllyHub's, or a misspelling) and said: what it reads as, or the
|
|
38
|
+
* issues left once they are out.
|
|
39
|
+
*/
|
|
40
|
+
export declare function readLeavingOutUnknownFields<S extends z.ZodType>(schema: S, given: unknown): {
|
|
41
|
+
success: true;
|
|
42
|
+
data: z.output<S>;
|
|
43
|
+
leftOut: FieldLeftOut[];
|
|
44
|
+
} | {
|
|
45
|
+
success: false;
|
|
46
|
+
error: z.ZodError;
|
|
47
|
+
leftOut: FieldLeftOut[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* A value read by its schema as a model writes it: taken, or what is wrong
|
|
51
|
+
* with it all at once and what the rest reads as; the fields it does not
|
|
52
|
+
* know left out of either and said (`leftOut`), never a problem.
|
|
53
|
+
*/
|
|
31
54
|
export declare function readTolerantly<S extends z.ZodType>(schema: S, given: unknown,
|
|
32
55
|
/** Fields by other names, and the name each is here. */
|
|
33
56
|
fields?: Readonly<Record<string, string>>): {
|
|
34
57
|
ok: true;
|
|
35
58
|
value: z.output<S>;
|
|
59
|
+
leftOut?: FieldLeftOut[];
|
|
36
60
|
} | {
|
|
37
61
|
ok: false;
|
|
38
62
|
problems: {
|
|
@@ -40,6 +64,7 @@ fields?: Readonly<Record<string, string>>): {
|
|
|
40
64
|
message: string;
|
|
41
65
|
}[];
|
|
42
66
|
partial?: z.output<S>;
|
|
67
|
+
leftOut?: FieldLeftOut[];
|
|
43
68
|
};
|
|
44
69
|
export {};
|
|
45
70
|
//# sourceMappingURL=tolerant.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
const
|
|
2
|
+
const P=[["ctr","center","centre","middle","mid","centered","centred"],["t","top"],["b","bottom"],["l","left"],["r","right"],["just","justify","justified"],["out","outside","outer"],["in","inside","inner"]],$=new Map(P.flatMap(e=>e.map(o=>[o,e[0]])));function h(e){return e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").toLowerCase().split(/[\s_\-.]+/u).filter(o=>o!=="").map(o=>$.get(o)??o).join("")}export function spelledAs(e,o){for(const s of[h(e),h(`${e} clustered`)]){const r=o.filter(t=>typeof t=="string"&&h(t)===s);if(r.length===1)return r[0]}}export function valueOf(e,o){const s=z[h(e)];return spelledAs(e,o)??(s!==void 0&&o.includes(s)?s:void 0)}function v(e,o){const s=Array.from({length:e.length+1},(t,n)=>Array.from({length:o.length+1},(i,a)=>n===0?a:a===0?n:0)),r=(t,n)=>s[t]?.[n]??0;for(let t=1;t<=e.length;t++)for(let n=1;n<=o.length;n++){const i=e[t-1]===o[n-1]?0:1;let a=Math.min(r(t-1,n)+1,r(t,n-1)+1,r(t-1,n-1)+i);t>1&&n>1&&e[t-1]===o[n-2]&&e[t-2]===o[n-1]&&(a=Math.min(a,r(t-2,n-2)+1));const u=s[t];u&&(u[n]=a)}return r(e.length,o.length)}export function nearest(e,o){const s=e.toLowerCase();let r;for(const t of o){if(typeof t!="string")continue;const n=Math.min(v(s,t.toLowerCase()),v(h(e),h(t)));(r===void 0||n<r.d)&&(r={value:t,d:n})}return r&&r.d<=Math.max(1,Math.floor(s.length/3))?r.value:void 0}function A(e){return e.every(o=>o.path.length===0&&(o.code==="invalid_type"||o.code==="invalid_union"&&o.errors.every(A)))}function b(e,o=[]){const s=[...o,...e.path];if(e.code!=="invalid_union")return[{issue:e,at:s}];const r=e.errors.filter(i=>!A(i)),t=r.length>0?r:e.errors,n=Math.min(...t.map(i=>i.length));return t.filter(i=>i.length===n).flatMap(i=>i.flatMap(a=>b(a,s)))}const j=e=>e===null||e===!1||e==="none";function m(e,o){if(o.length===0)return;let s=e;for(const t of o.slice(0,-1)){if(s===null||typeof s!="object")return;s=s[t]}const r=o[o.length-1];if(!(s===null||typeof s!="object"||r===void 0))return{parent:s,key:r}}export const OPENPYXL_FIELDS={horizontal:"align",vertical:"valign",wrap_text:"wrap",wrapText:"wrap",shrink_to_fit:"shrink",shrinkToFit:"shrink",text_rotation:"rotation",textRotation:"rotation",number_format:"format",numFmt:"format",strikethrough:"strike",fill_type:"pattern",patternType:"pattern",fgColor:"color",start_color:"color",bgColor:"background",end_color:"background",freeze_panes:"freeze",merged_cells:"merges",tabColor:"tab",tab_color:"tab",showGridLines:"gridlines",show_gridlines:"gridlines",allow_blank:"blank",allowBlank:"blank"},PPTX_FIELDS={word_wrap:"wrap",wrap_text:"wrap",auto_size:"autofit",autosize:"autofit",auto_fit:"autofit",inset:"margin",insets:"margin",margins:"margin",padding:"margin",lIns:"margin_left",tIns:"margin_top",rIns:"margin_right",bIns:"margin_bottom",numCol:"columns",num_columns:"columns",column_count:"columns",spcCol:"column_spacing",column_gap:"column_spacing",marL:"margin_left",first_line_indent:"indent",alignment:"align",horizontal:"align",lnSpc:"line_spacing",spcBef:"space_before",spcAft:"space_after",exactly:"points",fixed:"points",vertical_anchor:"anchor",font_size:"size",font_name:"font",tick_label_position:"labels",major_tick_mark:"tick_marks",minor_tick_mark:"minor_tick_marks",log:"log_base",logBase:"log_base",display_units:"units",minor_unit:"minor",has_minor_gridlines:"minor_gridlines",tick_label_skip:"label_every",tickLblSkip:"label_every",subtotals:"totals",set_as_total:"totals",show_connector_lines:"connector_lines",connectors:"connector_lines",quartile_method:"quartiles",quartile_calculation:"quartiles",show_mean_markers:"mean_markers",show_mean_line:"mean_line",show_outlier_points:"outliers",show_outliers:"outliers",show_inner_points:"inner_points",show_nonoutliers:"inner_points",parent_label_layout:"parent_labels",hi_low_lines:"high_low_lines",hilo_lines:"high_low_lines",bubble_sizes:"sizes",bins:"bin_count",number_of_bins:"bin_count",bin_size:"bin_width",overflow_bin:"overflow",underflow_bin:"underflow",kpi:"stat",metric:"stat",kpis:"stats",metrics:"stats",scorecard:"stats",badge:"tag",pill:"tag",chip:"tag",alert:"callout",admonition:"callout",gauge:"progress",progress_bar:"progress",milestones:"timeline",process:"steps",stepper:"steps",avatar:"person",team:"people",alluvial:"sankey",roadmap:"gantt",gantt_chart:"gantt",timeline_gantt:"gantt",align:"text.align",bold:"text.bold",italic:"text.italic",size:"text.size",font:"text.font",anchor:"text.anchor",valign:"text.anchor",margin:"text.margin",autofit:"text.autofit",wrap:"text.wrap"};const L=["text","frame","textbox","geometry","fill","height","width","row"],z={shapetofittext:"grow",resizeshapetofittext:"grow",spautofit:"grow",resize:"grow",texttofitshape:"shrink",shrinktextonoverflow:"shrink",normautofit:"shrink",fit:"shrink",noautofit:"none",donotautofit:"none",bridge:"waterfall",bridgechart:"waterfall",box:"box-whisker",boxplot:"box-whisker",boxandwhisker:"box-whisker",boxandwhiskers:"box-whisker",boxwhiskers:"box-whisker",whisker:"box-whisker",spider:"radar",spiderweb:"radar",web:"radar",candlestick:"stock-ohlc",ohlc:"stock-ohlc",hlc:"stock-hlc",highlow:"stock-hlc",stock:"stock-hlc",range:"dumbbell",rangeplot:"dumbbell",arrow:"dumbbell",barbell:"dumbbell",slopegraph:"slope",bulletgraph:"bullet",tree:"treemap",rings:"sunburst",radialtreemap:"sunburst",conversionfunnel:"funnel",hist:"histogram",distribution:"histogram",paretochart:"pareto",inc:"inclusive",exc:"exclusive"},C=/^#?(?:[0-9a-fA-F]{2})?([0-9a-fA-F]{6})$/u;function F(e,o,s){let r=!1;for(const{issue:t,at:n}of o.flatMap(i=>b(i))){if(t.code==="unrecognized_keys"){const c=m(e,[...n,""]);if(!c||Array.isArray(c.parent))continue;const l=c.parent;for(const d of t.keys){const f=s[d];if(f===void 0)continue;const[g,_]=f.split(".");if(_!==void 0&&g!==void 0){if(!L.some(M=>M in l))continue;const w=l[g]??{};if(typeof w!="object"||Array.isArray(w))continue;const y=w;if(_ in y)continue;y[_]=l[d],l[g]=y}else{if(f in l)continue;l[f]=l[d]}Reflect.deleteProperty(l,d),r=!0}continue}if(t.code==="invalid_format"&&t.format==="regex"){const c=m(e,n);if(!c)continue;const l=c.parent[c.key],d=typeof l=="string"?C.exec(l):null;d?.[1]!==void 0&&String(t.pattern).includes("#")&&(c.parent[c.key]=`#${d[1].toUpperCase()}`,r=!0);continue}if(t.code!=="invalid_value")continue;const i=m(e,n);if(!i)continue;const{parent:a,key:u}=i,p=a[u];if(typeof p=="string"){const c=z[h(p)],l=spelledAs(p,t.values)??(c!==void 0&&t.values.includes(c)?c:void 0);if(l!==void 0){a[u]=l,r=!0;continue}}j(p)&&!Array.isArray(a)&&(Reflect.deleteProperty(a,u),r=!0)}return r}function E(e,o,s){if(e.code==="invalid_value"){const r=m(o,s),t=r&&r.parent[r.key],n=typeof t=="string"?nearest(t,e.values):void 0,i=e.values.length>12?e.values.slice(0,10):e.values,a=`${i.map(u=>JSON.stringify(u)).join(", ")}${i.length<e.values.length?", …":""}`;return`${n===void 0?"":`did you mean "${n}"? `}one of ${a}`}return e.message}function R(e,o,s){if(e.code!=="invalid_value")return;const r=m(o,s),t=r&&r.parent[r.key];return typeof t=="string"?nearest(t,e.values):void 0}export function problemsOf(e,o){const s=new Set,r=[];for(const t of o){const n=b(t),i=new Map;for(const a of n){const u=a.at.map(String).join(".");i.set(u,[...i.get(u)??[],a])}for(const[a,u]of i){const p=u.filter(f=>f.issue.code==="invalid_value"),c=u.filter(f=>f.issue.code!=="invalid_value"),d=t.code==="invalid_union"&&p.length>0&&new Set(c.map(f=>f.issue.message)).size===1?(()=>{const f=p[0],g=f?R(f.issue,e,f.at):void 0,_=c[0]?.issue.message??"";return[`${g===void 0?"":`did you mean "${g}"? `}${_}`]})():u.map(f=>E(f.issue,e,f.at));for(const f of d){const g=f.replace(/\.+$/u,""),_=`${a}\0${g}`;s.has(_)||(s.add(_),r.push({path:a,message:g}))}}}return r}function T(e,o){const s=new Map;let r=!1;for(const{at:t}of o.flatMap(n=>b(n))){const n=m(e,t);if(n){if(Array.isArray(n.parent)){const i=s.get(n.parent)??new Set;i.add(Number(n.key)),s.set(n.parent,i)}else if(n.key in n.parent)Reflect.deleteProperty(n.parent,n.key);else continue;r=!0}}for(const[t,n]of s)for(const i of[...n].sort((a,u)=>u-a))t.splice(i,1);return r}const k=12,x=e=>e===void 0?void 0:JSON.parse(JSON.stringify(e));function O(e){return e.flatMap(o=>b(o)).flatMap(({issue:o,at:s})=>o.code==="unrecognized_keys"?o.keys.map(r=>({at:s,key:r})):[])}function S(e,o){const s=[];for(const{at:r,key:t}of O(o)){const n=m(e,[...r,""]);if(!n||Array.isArray(n.parent))continue;const i=n.parent;if(!(t in i))continue;Reflect.deleteProperty(i,t);const a=[...r,t].map(String).join(".");s.push({path:a,message:`"${t}" is not a field this AllyHub reads: left out`})}return s}export function readLeavingOutUnknownFields(e,o){const s=e.safeParse(o);if(s.success)return{success:!0,data:s.data,leftOut:[]};if(O(s.error.issues).length===0)return{success:!1,error:s.error,leftOut:[]};const r=x(o),t=[];let n=s;for(let i=0;i<k&&!n.success;i++){const a=S(r,n.error.issues);if(a.length===0)break;t.push(...a),n=e.safeParse(r)}return n.success?{success:!0,data:n.data,leftOut:t}:{success:!1,error:n.error,leftOut:t}}export function readTolerantly(e,o,s=OPENPYXL_FIELDS){const r=e.safeParse(o);if(r.success)return{ok:!0,value:r.data};const t=x(o);let n=e.safeParse(t);for(let l=0;l<k&&!n.success&&F(t,n.error.issues,s);l++)n=e.safeParse(t);const i=[];for(let l=0;l<k&&!n.success;l++){const d=S(t,n.error.issues);if(d.length===0)break;i.push(...d),n=e.safeParse(t)}const a=i.length===0?{}:{leftOut:i};if(n.success)return{ok:!0,value:n.data,...a};const u=problemsOf(t,n.error.issues),p=x(t);let c=e.safeParse(p);for(let l=0;l<k&&!c.success&&T(p,c.error.issues);l++)c=e.safeParse(p);return c.success?{ok:!1,problems:u,partial:c.data,...a}:{ok:!1,problems:u,...a}}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
An image is any picture, or a set of pictures that ship together: a photo to change, a poster, a share card, a set of product pictures, a carousel. Each picture is a **board** with its own size and Photoshop's layers. Make an image for anything a person looks at as a still; a video for what moves, a deck for pages to flip through.
|
|
4
4
|
|
|
5
|
-
- `allyhub help images` lists the commands
|
|
5
|
+
- `allyhub help images` lists the commands and prints where the SDK's `image.md` and `pictures.md` are. Read them before writing an image.
|
|
6
6
|
- **A photo stays as it is.** New pixels (made, edited, extended, cut out) come from the cloud's image tools ([ai-media.md](ai-media.md)), each a new file beside the photo that a layer then shows. Words, a logo or a price go in a layer over a picture, where they stay sharp and editable.
|
|
7
7
|
- **The person asks for changes with Mark up**: their viewer shows the boards and their marks; make each change in the image's code, or its script for words.
|
|
8
8
|
- **A Photoshop file** becomes an image with `allyhub image import`, which lists each difference from the file.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ak-li{--ak-li-fg: rgba(0, 0, 0, .9);--ak-li-muted: rgba(0, 0, 0, .6);--ak-li-border: rgba(140, 140, 140, .2);--ak-li-pill: rgba(140, 140, 140, .2);--ak-li-card: #ffffff;--ak-li-page: #f4f2ee;--ak-li-link: #0a66c2;--ak-li-quote: #56687a;--ak-li-made: #eef3f8;--ak-li-code: #f4f2ee;--ak-li-over: #cb112d;--ak-li-avatar: #0a66c2;color:var(--ak-li-fg);font-family:Inter Variable,Inter,-apple-system,system-ui,Segoe UI,Roboto,Helvetica,Arial,Noto Sans SC,"Noto Color Emoji",sans-serif;font-size:14px;line-height:20px;width:552px;box-sizing:border-box}.ak-li[data-theme=dark]{--ak-li-fg: rgba(255, 255, 255, .9);--ak-li-muted: rgba(255, 255, 255, .6);--ak-li-border: rgba(140, 140, 140, .3);--ak-li-pill: rgba(140, 140, 140, .3);--ak-li-card: #1b1f23;--ak-li-page: #000000;--ak-li-link: #71b7fb;--ak-li-quote: #a8b5c2;--ak-li-made: #293138;--ak-li-code: #293138;--ak-li-avatar: #71b7fb}.ak-li *,.ak-li *:before,.ak-li *:after{box-sizing:border-box}.ak-li.ak-li-page{width:632px;background:var(--ak-li-card)}.ak-li-post{overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px;background:var(--ak-li-card)}.ak-li-author{display:flex;gap:8px;padding:12px 16px 0 12px}.ak-li-avatar{display:grid;flex:none;place-items:center;border-radius:9999px;background:var(--ak-li-avatar);color:var(--ak-li-card);font-size:20px;font-weight:600}.ak-li-who{display:flex;min-width:0;flex-direction:column;padding-top:1px}.ak-li-name{font-size:16px;font-weight:600;line-height:20px}.ak-li-headline,.ak-li-when{overflow:hidden;color:var(--ak-li-muted);font-size:12px;line-height:15px;text-overflow:ellipsis;white-space:nowrap}.ak-li-when{display:flex;align-items:center;gap:4px}.ak-li-when svg{width:14px;height:14px}.ak-li-words{padding:4px 12px 8px;margin-top:4px;overflow-wrap:anywhere;white-space:pre-wrap}.ak-li-link{color:var(--ak-li-link);font-weight:600}.ak-li-more{color:var(--ak-li-muted);white-space:nowrap}.ak-li-content{position:relative}.ak-li-single img,.ak-li-content>img{display:block;width:100%}.ak-li-made{display:grid;min-height:160px;padding:24px;place-items:center;background:var(--ak-li-made);color:var(--ak-li-muted);font-size:14px;text-align:center;overflow-wrap:anywhere}.ak-li-grid{display:grid;gap:3px;aspect-ratio:1}.ak-li-grid[data-count="2"]{grid-template-columns:1fr 1fr;aspect-ratio:2}.ak-li-grid[data-count="3"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.ak-li-grid[data-count="4"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr 1fr}.ak-li-grid[data-count="3"]>:first-child{grid-row:1 / 3}.ak-li-grid[data-count="4"]>:first-child{grid-row:1 / 4}.ak-li-grid[data-wide][data-count="3"]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="4"]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="3"]>:first-child{grid-row:auto;grid-column:1 / 3}.ak-li-grid[data-wide][data-count="4"]>:first-child{grid-row:auto;grid-column:1 / 4}.ak-li-cell{position:relative;min-width:0;min-height:0;overflow:hidden}.ak-li-cell>img,.ak-li-cell>.ak-li-made{display:block;width:100%;height:100%;min-height:0;object-fit:cover}.ak-li-hidden{position:absolute;inset:0;display:grid;place-items:center;background:#0000008c;color:#fff;font-size:32px;font-weight:600}.ak-li-video{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#000}.ak-li-video video{display:block;width:100%;height:100%;object-fit:contain}.ak-li-play{position:absolute;top:50%;left:50%;width:64px;height:64px;border-radius:9999px;background:#0009;transform:translate(-50%,-50%)}.ak-li-play:after{position:absolute;top:50%;left:54%;border-width:12px 0 12px 20px;border-style:solid;border-color:transparent transparent transparent #ffffff;content:"";transform:translate(-50%,-50%)}.ak-li-clock{position:absolute;bottom:8px;left:8px;padding:0 6px;border-radius:4px;background:#0009;color:#fff;font-size:12px;line-height:20px}.ak-li-document{background:var(--ak-li-made)}.ak-li-doc-bar{display:flex;align-items:center;height:40px;padding:0 12px;background:#000000bf;color:#fff;font-size:14px;font-weight:600}.ak-li-doc-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ak-li-document img{display:block;width:100%}.ak-li-doc-page{display:flex;min-height:420px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;color:var(--ak-li-muted);overflow-wrap:anywhere}.ak-li-doc-page svg{width:40px;height:40px}.ak-li-card{margin:0 12px 8px;overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-card-picture img,.ak-li-card-picture .ak-li-made{display:block;width:100%;aspect-ratio:1.91;object-fit:cover}.ak-li-card-text{display:flex;flex-direction:column;gap:2px;padding:8px 12px;background:var(--ak-li-page)}.ak-li-card-title{font-weight:600}.ak-li-card-site{display:flex;align-items:center;gap:4px;color:var(--ak-li-muted);font-size:12px;line-height:16px}.ak-li-card-site svg{width:12px;height:12px}.ak-li-poll{margin:0 12px 8px;padding:12px 16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-poll-question{font-size:16px;font-weight:600;line-height:20px}.ak-li-poll-hint{margin:2px 0 8px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-option{margin-top:8px;padding:6px 16px;border:1px solid var(--ak-li-link);border-radius:9999px;color:var(--ak-li-link);font-size:16px;font-weight:600;line-height:20px;text-align:center}.ak-li-poll-foot{margin-top:12px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-actions{display:flex;align-items:center;gap:28px;height:44px;padding:0 24px;color:var(--ak-li-muted)}.ak-li-actions svg{width:20px;height:20px}.ak-li-article{padding-bottom:32px}.ak-li-a-cover img,.ak-li-a-cover .ak-li-video{display:block;width:100%}.ak-li-a-title{margin:16px 24px;font-size:32px;font-weight:600;line-height:38.4px;overflow-wrap:anywhere}.ak-li-a-by{display:flex;align-items:center;gap:8px;margin:0 24px 32px}.ak-li-a-tools{display:flex;gap:12px;margin-left:auto;color:var(--ak-li-muted)}.ak-li-a-tools svg{width:20px;height:20px}.ak-li-a-body{font-size:16px;line-height:24px}.ak-li-a-body>p{margin:0 0 32px;overflow-wrap:anywhere}.ak-li-a-body>h2{margin:0 0 16px;font-size:24px;font-weight:600;line-height:30px}.ak-li-a-body>h3{margin:0 0 16px;font-size:20px;font-weight:600;line-height:25px}.ak-li-a-body strong{font-weight:600}.ak-li-a-link{color:var(--ak-li-link);font-weight:600}.ak-li-a-body>ul,.ak-li-a-body>ol{margin:0 0 32px;padding-left:32px}.ak-li-a-body>ul{list-style:disc}.ak-li-a-body>ol{list-style:decimal}.ak-li-a-body li{margin-bottom:8px}.ak-li-a-body>blockquote{margin:0 0 32px;padding-left:16px;border-left:4px solid var(--ak-li-quote);color:var(--ak-li-quote);font-size:20px;line-height:25px}.ak-li-a-body>pre{margin:0 0 32px;padding:16px;overflow-x:auto;border-radius:8px;background:var(--ak-li-code);font-family:SF Mono,Menlo,Consolas,monospace;font-size:14px;line-height:20px;white-space:pre}.ak-li-a-body>hr{margin:0 0 32px;border:none;border-top:1px solid var(--ak-li-border)}.ak-li-a-body>figure{margin:0 0 32px}.ak-li-a-body>figure img{display:block;width:100%}.ak-li-a-body figcaption{margin-top:8px;color:var(--ak-li-muted);font-size:14px;line-height:20px;text-align:center}.ak-li-embed{display:flex;align-items:center;gap:12px;margin:0 0 32px;padding:16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-embed svg{flex:none;width:32px;height:32px;color:var(--ak-li-muted)}.ak-li-embed-text{display:flex;min-width:0;flex-direction:column}.ak-li-embed-site{font-weight:600}.ak-li-embed-url{overflow:hidden;color:var(--ak-li-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
|
|
1
|
+
.ak-li{--ak-li-fg: rgba(0, 0, 0, .9);--ak-li-muted: rgba(0, 0, 0, .6);--ak-li-border: rgba(140, 140, 140, .2);--ak-li-pill: rgba(140, 140, 140, .2);--ak-li-card: #ffffff;--ak-li-page: #f4f2ee;--ak-li-link: #0a66c2;--ak-li-quote: #56687a;--ak-li-made: #eef3f8;--ak-li-code: #f4f2ee;--ak-li-over: #cb112d;--ak-li-avatar: #0a66c2;color:var(--ak-li-fg);font-family:Inter Variable,Inter,-apple-system,system-ui,Segoe UI,Roboto,Helvetica,Arial,Noto Sans SC,"Noto Color Emoji",sans-serif;font-size:14px;line-height:20px;width:552px;box-sizing:border-box}.ak-li[data-theme=dark]{--ak-li-fg: rgba(255, 255, 255, .9);--ak-li-muted: rgba(255, 255, 255, .6);--ak-li-border: rgba(140, 140, 140, .3);--ak-li-pill: rgba(140, 140, 140, .3);--ak-li-card: #1b1f23;--ak-li-page: #000000;--ak-li-link: #71b7fb;--ak-li-quote: #a8b5c2;--ak-li-made: #293138;--ak-li-code: #293138;--ak-li-avatar: #71b7fb}.ak-li *,.ak-li *:before,.ak-li *:after{box-sizing:border-box}.ak-li.ak-li-page{width:632px;background:var(--ak-li-card)}.ak-li-post{overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px;background:var(--ak-li-card)}.ak-li-author{display:flex;gap:8px;padding:12px 16px 0 12px}.ak-li-avatar{display:grid;flex:none;place-items:center;border-radius:9999px;background:var(--ak-li-avatar);color:var(--ak-li-card);font-size:20px;font-weight:600}.ak-li-who{display:flex;min-width:0;flex-direction:column;padding-top:1px}.ak-li-name{font-size:16px;font-weight:600;line-height:20px}.ak-li-headline,.ak-li-when{overflow:hidden;color:var(--ak-li-muted);font-size:12px;line-height:15px;text-overflow:ellipsis;white-space:nowrap}.ak-li-when{display:flex;align-items:center;gap:4px}.ak-li-when svg{width:14px;height:14px}.ak-li-words{padding:4px 12px 8px;margin-top:4px;overflow-wrap:anywhere;white-space:pre-wrap}.ak-li-link{color:var(--ak-li-link);font-weight:600}.ak-li-more{color:var(--ak-li-muted);white-space:nowrap}.ak-li-content{position:relative}.ak-li-single img,.ak-li-content>img{display:block;width:100%}.ak-li-made{display:grid;min-height:160px;padding:24px;place-items:center;background:var(--ak-li-made);color:var(--ak-li-muted);font-size:14px;text-align:center;overflow-wrap:anywhere}.ak-li-grid{display:grid;gap:3px;aspect-ratio:1}.ak-li-grid[data-count="2"]{grid-template-columns:1fr 1fr;aspect-ratio:2}.ak-li-grid[data-count="3"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.ak-li-grid[data-count="4"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr 1fr}.ak-li-grid[data-count="3"]>:first-child{grid-row:1 / 3}.ak-li-grid[data-count="4"]>:first-child{grid-row:1 / 4}.ak-li-grid[data-wide][data-count="3"]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="4"]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="3"]>:first-child{grid-row:auto;grid-column:1 / 3}.ak-li-grid[data-wide][data-count="4"]>:first-child{grid-row:auto;grid-column:1 / 4}.ak-li-cell{position:relative;min-width:0;min-height:0;overflow:hidden}.ak-li-cell>img,.ak-li-cell>.ak-li-made{display:block;width:100%;height:100%;min-height:0;object-fit:cover}.ak-li-hidden{position:absolute;inset:0;display:grid;place-items:center;background:#0000008c;color:#fff;font-size:32px;font-weight:600}.ak-li-video{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#000}.ak-li-video video{display:block;width:100%;height:100%;object-fit:contain}.ak-li-play{position:absolute;top:50%;left:50%;width:64px;height:64px;border-radius:9999px;background:#0009;transform:translate(-50%,-50%)}.ak-li-play:after{position:absolute;top:50%;left:54%;border-width:12px 0 12px 20px;border-style:solid;border-color:transparent transparent transparent #ffffff;content:"";transform:translate(-50%,-50%)}.ak-li-clock{position:absolute;bottom:8px;left:8px;padding:0 6px;border-radius:4px;background:#0009;color:#fff;font-size:12px;line-height:20px}.ak-li-document{background:var(--ak-li-made)}.ak-li-doc-bar{display:flex;align-items:center;height:40px;padding:0 12px;background:#000000bf;color:#fff;font-size:14px;font-weight:600}.ak-li-doc-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ak-li-document img{display:block;width:100%}.ak-li-doc-page{display:flex;min-height:420px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;color:var(--ak-li-muted);overflow-wrap:anywhere}.ak-li-doc-page svg{width:40px;height:40px}.ak-li-card{margin:0 12px 8px;overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-card-picture img,.ak-li-card-picture .ak-li-made{display:block;width:100%;aspect-ratio:1.91;object-fit:cover}.ak-li-card-text{display:flex;flex-direction:column;gap:2px;padding:8px 12px;background:var(--ak-li-page)}.ak-li-card-title{font-weight:600}.ak-li-card-site{display:flex;align-items:center;gap:4px;color:var(--ak-li-muted);font-size:12px;line-height:16px}.ak-li-card-site svg{width:12px;height:12px}.ak-li-poll{margin:0 12px 8px;padding:12px 16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-poll-question{font-size:16px;font-weight:600;line-height:20px}.ak-li-poll-hint{margin:2px 0 8px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-option{margin-top:8px;padding:6px 16px;border:1px solid var(--ak-li-link);border-radius:9999px;color:var(--ak-li-link);font-size:16px;font-weight:600;line-height:20px;text-align:center}.ak-li-poll-foot{margin-top:12px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-actions{display:flex;align-items:center;gap:28px;height:44px;padding:0 24px;color:var(--ak-li-muted)}.ak-li-actions svg{width:20px;height:20px}.ak-li-article{padding-bottom:32px}.ak-li-a-cover img,.ak-li-a-cover .ak-li-video{display:block;width:100%}.ak-li-a-title{margin:16px 24px;font-size:32px;font-weight:600;line-height:38.4px;overflow-wrap:anywhere}.ak-li-a-by{display:flex;align-items:center;gap:8px;margin:0 24px 32px}.ak-li-a-tools{display:flex;gap:12px;margin-left:auto;color:var(--ak-li-muted)}.ak-li-a-tools svg{width:20px;height:20px}.ak-li-a-body{font-size:16px;line-height:24px}.ak-li-article>.ak-li-a-body{padding:0 24px}.ak-li-a-body>p{margin:0 0 32px;overflow-wrap:anywhere}.ak-li-a-body>h2{margin:0 0 16px;font-size:24px;font-weight:600;line-height:30px}.ak-li-a-body>h3{margin:0 0 16px;font-size:20px;font-weight:600;line-height:25px}.ak-li-a-body strong{font-weight:600}.ak-li-a-link{color:var(--ak-li-link);font-weight:600}.ak-li-a-body>ul,.ak-li-a-body>ol{margin:0 0 32px;padding-left:32px}.ak-li-a-body>ul{list-style:disc}.ak-li-a-body>ol{list-style:decimal}.ak-li-a-body li{margin-bottom:8px}.ak-li-a-body>blockquote{margin:0 0 32px;padding-left:16px;border-left:4px solid var(--ak-li-quote);color:var(--ak-li-quote);font-size:20px;line-height:25px}.ak-li-a-body>pre{margin:0 0 32px;padding:16px;overflow-x:auto;border-radius:8px;background:var(--ak-li-code);font-family:SF Mono,Menlo,Consolas,monospace;font-size:14px;line-height:20px;white-space:pre}.ak-li-a-body>hr{margin:0 0 32px;border:none;border-top:1px solid var(--ak-li-border)}.ak-li-a-body>figure{margin:0 0 32px}.ak-li-a-body>figure img{display:block;width:100%}.ak-li-a-body figcaption{margin-top:8px;color:var(--ak-li-muted);font-size:14px;line-height:20px;text-align:center}.ak-li-embed{display:flex;align-items:center;gap:12px;margin:0 0 32px;padding:16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-embed svg{flex:none;width:32px;height:32px;color:var(--ak-li-muted)}.ak-li-embed-text{display:flex;min-width:0;flex-direction:column}.ak-li-embed-site{font-weight:600}.ak-li-embed-url{overflow:hidden;color:var(--ak-li-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -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{openEnum as r}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=e.object({credits:e.number(),held:e.number(),owed:e.number(),frozen:e.string().nullable().default(null),plan:e.object({id:e.string(),name:e.string(),interval:r(BILLING_INTERVALS),status:e.string(),renewsAt:e.iso.datetime().nullable(),endsAt:e.iso.datetime().nullable(),monthlyCredits:e.number().default(0),price:e.object({amountCents:e.number(),currency:e.string()}).nullable().default(null)}).nullable(),allowance:e.object({total:e.number(),used:e.number(),renewsAt:e.iso.datetime()}).nullable().default(null),bought:e.number().default(0),expiring:e.array(e.object({credits:e.number(),expiresAt:e.iso.datetime()})).default([]),customer:e.boolean().default(!1),autoTopUp:e.object({below:e.number(),amountCents:e.number(),monthlyLimitCents:e.number().nullable().default(null),chargedThisMonthCents:e.number().default(0),stopped:r(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),IDEMPOTENCY_KEY_HEADER="idempotency-key",BILLING_PAGE_PATH="/settings/plan",TEAM_PARAM="team",PLAN_VIEW_PARAM="view",PAID_PARAM="paid",UNPAID_PARAM="unpaid",PLAN_PAGE_OPENS=["plans","credits","paid"];export function planPageAddress(t,n={}){const o=new URLSearchParams;typeof n.open=="object"?o.set(UNPAID_PARAM,n.open.unpaid):n.open==="paid"?o.set(PAID_PARAM,"1"):n.open!==void 0&&o.set(PLAN_VIEW_PARAM,n.open),n.organization!==void 0&&o.set(TEAM_PARAM,n.organization);const i=o.toString();return`${t}${BILLING_PAGE_PATH}${i===""?"":`?${i}`}`}export const JsonSchemaSchema=e.record(e.string(),e.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],WORK_KINDS=["data","ai"],CatalogWorkSchema=e.object({id:e.string().min(1),title:e.string().min(1),description:e.string().min(1),kind:r(WORK_KINDS).default("data"),line:e.string().optional()}),CatalogToolSchema=e.object({name:e.string().min(1),work:e.string().min(1),title:e.string().min(1),description:e.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:e.boolean(),example:e.record(e.string(),e.unknown()).optional(),price:e.object({credits:e.number().nonnegative(),per:r(PRICE_UNITS),varies:e.boolean()}).optional(),shown:e.object({name:e.string(),line:e.string(),section:r(TOOL_SECTIONS)}).optional()}),CatalogSchema=e.object({version:e.string().min(1),works:e.array(CatalogWorkSchema),tools:e.array(CatalogToolSchema)}),toolCallsPath=t=>`/api/tools/${encodeURIComponent(t)}/calls`,callPath=t=>`/api/calls/${encodeURIComponent(t)}`,CALL_STATUS=["working","completed","failed"],ToolCallSchema=e.object({id:e.string().min(1),tool:e.string().min(1),status:r(CALL_STATUS),output:e.unknown().optional(),error:e.object({kind:e.string().min(1),message:e.string().min(1)}).optional(),credits:e.number().nonnegative().optional(),pollAfterMs:e.number().int().nonnegative().optional(),createdAt:e.string(),endedAt:e.string().optional()}),ALLY_FILE="ally://data-tool-results/";export function parseAllyFilePath(t){if(!t.startsWith(ALLY_FILE))return;const[n,o,...i]=t.slice(ALLY_FILE.length).split("/");if(!(!n||!o||i.length>0))try{return{id:decodeURIComponent(n),name:decodeURIComponent(o)}}catch(a){if(a instanceof URIError)return;throw a}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=e.strictObject({name:e.string().min(1).max(255),size:e.int().positive().max(FILE_MAX_BYTES),sha256:e.string().regex(/^[0-9a-f]{64}$/u),contentType:e.string().min(1).max(255)}),FileCreatedSchema=e.object({id:e.string().min(1),upload:e.object({url:e.url(),headers:e.record(e.string(),e.string())}).nullable()}),fileDonePath=t=>`${FILES_PATH}/${encodeURIComponent(t)}/done`,UploadedFileSchema=e.object({id:e.string().min(1),name:e.string()}),FileContentResponseSchema=e.object({url:e.url()});export function signedUntil(t){if(!URL.canParse(t))return;const n=new URL(t).searchParams,o=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/u.exec(n.get("X-Amz-Date")??""),i=Number(n.get("X-Amz-Expires"));if(o===null||!Number.isFinite(i)||i<=0)return;const[a,s,l,c,d,p]=o.slice(1).map(Number);return new Date(Date.UTC(a,s-1,l,c,d,p)+i*1e3)}export const fileContentPath=(t,n)=>`${FILES_PATH}/${encodeURIComponent(t)}/content?disposition=${n}`;
|
|
2
|
+
import{z as e}from"zod";import{openEnum as r}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=e.object({credits:e.number(),held:e.number(),owed:e.number(),frozen:e.string().nullable().default(null),plan:e.object({id:e.string(),name:e.string(),interval:r(BILLING_INTERVALS),status:e.string(),renewsAt:e.iso.datetime().nullable(),endsAt:e.iso.datetime().nullable(),monthlyCredits:e.number().default(0),price:e.object({amountCents:e.number(),currency:e.string()}).nullable().default(null)}).nullable(),allowance:e.object({total:e.number(),used:e.number(),renewsAt:e.iso.datetime()}).nullable().default(null),bought:e.number().default(0),expiring:e.array(e.object({credits:e.number(),expiresAt:e.iso.datetime()})).default([]),customer:e.boolean().default(!1),autoTopUp:e.object({below:e.number(),amountCents:e.number(),monthlyLimitCents:e.number().nullable().default(null),chargedThisMonthCents:e.number().default(0),stopped:r(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),IDEMPOTENCY_KEY_HEADER="idempotency-key",BILLING_PAGE_PATH="/settings/plan",TEAM_PARAM="team",PLAN_VIEW_PARAM="view",PAID_PARAM="paid",UNPAID_PARAM="unpaid",PLAN_PAGE_OPENS=["plans","credits","paid"];export function planPageAddress(t,n={}){const o=new URLSearchParams;typeof n.open=="object"?o.set(UNPAID_PARAM,n.open.unpaid):n.open==="paid"?o.set(PAID_PARAM,"1"):n.open!==void 0&&o.set(PLAN_VIEW_PARAM,n.open),n.organization!==void 0&&o.set(TEAM_PARAM,n.organization);const i=o.toString();return`${t}${BILLING_PAGE_PATH}${i===""?"":`?${i}`}`}export const JsonSchemaSchema=e.record(e.string(),e.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],TOOL_PACES=["data","measure","generate","video"],WORK_KINDS=["data","ai"],CatalogWorkSchema=e.object({id:e.string().min(1),title:e.string().min(1),description:e.string().min(1),kind:r(WORK_KINDS).default("data"),line:e.string().optional()}),CatalogToolSchema=e.object({name:e.string().min(1),work:e.string().min(1),title:e.string().min(1),description:e.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:e.boolean(),example:e.record(e.string(),e.unknown()).optional(),price:e.object({credits:e.number().nonnegative(),per:r(PRICE_UNITS),varies:e.boolean()}).optional(),pace:r(TOOL_PACES).optional(),shown:e.object({name:e.string(),line:e.string(),section:r(TOOL_SECTIONS)}).optional()}),CatalogSchema=e.object({version:e.string().min(1),works:e.array(CatalogWorkSchema),tools:e.array(CatalogToolSchema)}),toolCallsPath=t=>`/api/tools/${encodeURIComponent(t)}/calls`,callPath=t=>`/api/calls/${encodeURIComponent(t)}`,CALL_STATUS=["working","completed","failed"],ToolCallSchema=e.object({id:e.string().min(1),tool:e.string().min(1),status:r(CALL_STATUS),output:e.unknown().optional(),error:e.object({kind:e.string().min(1),message:e.string().min(1)}).optional(),credits:e.number().nonnegative().optional(),creditsLeft:e.number().optional(),pollAfterMs:e.number().int().nonnegative().optional(),createdAt:e.string(),endedAt:e.string().optional()}),ALLY_FILE="ally://data-tool-results/";export function parseAllyFilePath(t){if(!t.startsWith(ALLY_FILE))return;const[n,o,...i]=t.slice(ALLY_FILE.length).split("/");if(!(!n||!o||i.length>0))try{return{id:decodeURIComponent(n),name:decodeURIComponent(o)}}catch(a){if(a instanceof URIError)return;throw a}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=e.strictObject({name:e.string().min(1).max(255),size:e.int().positive().max(FILE_MAX_BYTES),sha256:e.string().regex(/^[0-9a-f]{64}$/u),contentType:e.string().min(1).max(255)}),FileCreatedSchema=e.object({id:e.string().min(1),upload:e.object({url:e.url(),headers:e.record(e.string(),e.string())}).nullable()}),fileDonePath=t=>`${FILES_PATH}/${encodeURIComponent(t)}/done`,UploadedFileSchema=e.object({id:e.string().min(1),name:e.string()}),FileContentResponseSchema=e.object({url:e.url()});export function signedUntil(t){if(!URL.canParse(t))return;const n=new URL(t).searchParams,o=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/u.exec(n.get("X-Amz-Date")??""),i=Number(n.get("X-Amz-Expires"));if(o===null||!Number.isFinite(i)||i<=0)return;const[a,s,l,c,d,p]=o.slice(1).map(Number);return new Date(Date.UTC(a,s-1,l,c,d,p)+i*1e3)}export const fileContentPath=(t,n)=>`${FILES_PATH}/${encodeURIComponent(t)}/content?disposition=${n}`;
|