allyhub 0.18.0 → 0.19.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 +8 -0
- package/bin/allyhub.js +10 -0
- package/dist/args.js +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/auth.js +1 -1
- package/dist/commands/cloud-tools.js +1 -1
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +1 -1
- package/dist/commands/found-extensions.js +2 -0
- package/dist/commands/frames/common.js +1 -1
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +3 -3
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/views.js +1 -1
- package/dist/commands/list.js +2 -0
- package/dist/commands/mail.js +1 -1
- package/dist/commands/render.js +1 -1
- package/dist/commands/run-context.js +2 -0
- package/dist/commands.json +1 -0
- package/dist/fields.js +1 -1
- package/dist/main.js +7 -7
- package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/package.json +3 -2
- 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/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
- 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/scan.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
- package/dist/node_modules/@allyhub/build/package.json +9 -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/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +5 -1
- package/dist/node_modules/@allyhub/components/package.json +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/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/workspace.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/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +24 -7
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +25 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +5 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +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/dist/layer.d.ts +1 -2
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -2
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
- 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/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- 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/package.json +41 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +9 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +9 -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/dist/bundle.js +3 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/html.js +6 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
- 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/dist/fonts/arimo/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
- 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/dist/doc.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
- 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/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +6 -2
- package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +4 -4
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +8 -2
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
- package/dist/package.json +14 -14
- package/dist/project.js +1 -1
- package/dist/resources.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/slot.js +4 -0
- package/dist/telemetry.js +1 -1
- package/dist/version.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-DYaMS_BB.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-g_Tjfl_y.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-CqdhofOL.js} +1 -1
- package/editor-web/assets/{article-CS48wwvk.js → article-8evPh712.js} +1 -1
- package/editor-web/assets/{article-Cyle57uq.js → article-BhRtWYMd.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-Bc-28Bci.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-CTGJb8FB.js} +1 -1
- package/editor-web/assets/{calc-worker-BdHh5LXM.js → calc-worker-oEIqrrTM.js} +1 -1
- package/editor-web/assets/channel-wIj_OqDm.js +1 -0
- package/editor-web/assets/{chart-file-CfbWK9l1.js → chart-file-dGiRgFcH.js} +1 -1
- package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-B2MPOVTU.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-BUV1ZHP0.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-BZlpspL5.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-CpKeisWE.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BJqwAPyo.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-D6oPWl_W.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-B5pk4MZF.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-DHbSPvxQ.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-CcL_GcRA.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-YgiOL6XE.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-p14b4UYc.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-BWW0x-XH.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-oG3qd68C.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-CpcheH0u.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-cWQvLl1w.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-7PG7YcdU.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-CtcknEQ_.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-Ca7VIsjN.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-BzcSLtsr.js} +1 -1
- package/editor-web/assets/deck-C7fN0Qtn.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DpRmTGlG.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-BTrs_AX8.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-CkIVjPqH.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BlFMbAG1.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-D3f8VJ-D.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-Bbpngj6F.js} +1 -1
- package/editor-web/assets/{dist-DGKjn59H.js → dist-3iovns9K.js} +1 -1
- package/editor-web/assets/dist-BkHnbOEj.js +4 -0
- package/editor-web/assets/dist-BvOrNcK-.js +19 -0
- package/editor-web/assets/dist-CEIszq39.js +1 -0
- package/editor-web/assets/{dist-BI8QjOsV.js → dist-CU5RbLNH.js} +1 -1
- package/editor-web/assets/dist-CWZj8IAm.js +1 -0
- package/editor-web/assets/{dist-NQNQ5HqZ.js → dist-C_Mtrnif.js} +3 -3
- package/editor-web/assets/{dist-BajH5QfK.js → dist-CdqpwdCV.js} +4 -4
- package/editor-web/assets/{dist-SV0sOVIC.js → dist-CjT76RAw.js} +1 -1
- package/editor-web/assets/{dist-elglzHMT.js → dist-CpzEn9T8.js} +1 -1
- package/editor-web/assets/dist-CrFYWl5-.js +3 -0
- package/editor-web/assets/{dist-hHcrvNn9.js → dist-D4eBFGVL.js} +1 -1
- package/editor-web/assets/dist-DTcjb3cP.js +18 -0
- package/editor-web/assets/dist-D_WSM29I.js +17 -0
- package/editor-web/assets/{dist-Y_XZZa8q.js → dist-Dp_9ISjP.js} +10 -10
- package/editor-web/assets/{dist-BBshIz1Q.js → dist-J-tPYKGS.js} +4 -4
- package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-CoK1oqQD.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-BaKj-yL6.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Cn2qv1_U.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-Bd7AEIDo.js} +1 -1
- package/editor-web/assets/{esm-DzxAod8Q.js → esm-Cjv8ogpP.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-Sfp7_461.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CBqcGdHI.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-WTokXKTW.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BIWZHD9q.js} +1 -1
- package/editor-web/assets/index-BQWZnyAQ.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-COC6G-_J.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-DpaqdKBD.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js} +1 -1
- package/editor-web/assets/{iso-ahTwmFwH.js → iso-DoC-ZoBr.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-DeSVfmm7.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Bfg0lj7B.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-CyhovuYE.js} +3 -3
- package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-Dx1fBVUG.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-QEU2HF_m.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-ReJTa_hw.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-Bo1jFrvb.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-BrtYafNA.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-Cj0zQqs_.js} +1 -1
- package/editor-web/assets/{props-form-DUFxM5eb.js → props-form-BpSXbrSF.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-D5npDAVn.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-C8RDrRqi.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-ebDrmYTK.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-BxKuqg6V.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-DOclnfpr.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-DN0A1fpq.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-B3PjoVWw.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-DLdzkQk5.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-Dip4Piv_.js} +1 -1
- package/editor-web/assets/schemas-CQ_UU8-Z.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-QnPcoybL.js} +1 -1
- package/editor-web/assets/{session-Beijw9EK.js → session-DMlLCFWg.js} +1 -1
- package/editor-web/assets/slides-7xWhREpt.js +1 -0
- package/editor-web/assets/snapshots-BLX4NTQC.js +1 -0
- package/editor-web/assets/{split-zARio3J8.js → split-tFGKk-x8.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-D103CiMX.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-y4gCqEoa.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +8 -0
- package/editor-web/assets/{tabs-BHBvbekZ.js → tabs-CuEawka3.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-BMp76v4V.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-Q_GYyk0b.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-B5lRWdQB.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX--QRllA-U.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-CzkATPA3.js} +1 -1
- package/editor-web/assets/{video-oJ3qa1Qv.js → video-D0uTbHWx.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BXzwcdJa.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-BQvC8Agx.js} +1 -1
- package/editor-web/assets/{words-0Ww2RyT4.js → words-CaUHhQHf.js} +1 -1
- package/editor-web/assets/workbook-CiCXkjmN.js +45 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-aY-lsD5o.js} +1 -1
- package/editor-web/index.html +3 -3
- package/package.json +2 -2
- package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
- package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
- package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
- package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
- package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
- package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
- package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
- package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
- package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
- package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
- package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
- package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
- package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
- package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
- package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
- package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
- package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
- package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
- package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
- package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
- package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
- package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
- package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
- package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
- package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
- package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
- package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
- package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
- package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
- package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
- package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
- package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
- package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
- package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
- package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
- package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
- package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
- package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
- package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
- package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
- package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
- package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
- package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
- package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
- package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
- package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
- package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
- package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
- package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
- package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
- package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
- package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
- package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
- package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
- package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
- package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
- package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
- package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
- package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
- package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
- package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
- package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
- package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
- package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
- package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
- package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
- package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
- package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
- package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
- package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
- package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
- package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
- package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
- package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
- package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
- package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
- package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
- package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
- package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
- package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
- package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
- package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
- package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
- package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
- package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
- package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
- package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
- package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
- package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
- package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
- package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
- package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
- package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
- package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
- package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
- package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
- package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
- package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
- package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
- package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
- package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
- package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
- package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
- package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
- package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
- package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
- package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
- package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
- package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
- package/editor-web/assets/channel-HUlo15J7.js +0 -1
- package/editor-web/assets/deck-CtEtDHo2.js +0 -1
- package/editor-web/assets/dist-Bl74xqMW.js +0 -19
- package/editor-web/assets/dist-BrUtQth3.js +0 -18
- package/editor-web/assets/dist-CN5A7Au2.js +0 -1
- package/editor-web/assets/dist-CcL6r6l3.js +0 -1
- package/editor-web/assets/dist-D2E3cgRP.js +0 -4
- package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
- package/editor-web/assets/dist-d4dayaWE.js +0 -17
- package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
- package/editor-web/assets/index-q7X6hdHp.js +0 -28
- package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
- package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
- package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
- package/editor-web/assets/workbook-DznVDqoE.js +0 -45
- /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Feature highlights from each AllyHub release.
|
|
4
4
|
|
|
5
|
+
## 0.19.0
|
|
6
|
+
|
|
7
|
+
- **Auto runs on a stronger model.** Without a subscription, AllyHub's agent runs on Auto, which now makes better decks, videos and research for about the same credits; choosing a model by name needs a subscription.
|
|
8
|
+
- **A plan bought or ended counts at once** in Studio, on your Mac and in the cloud, with nothing to restart.
|
|
9
|
+
- **Commands start faster.** Each `allyhub` command loads only what it uses, and the install is smaller.
|
|
10
|
+
- **Links in sheets open on a click** and look like links, as in Excel.
|
|
11
|
+
- **The agent says what a task's tools cost** when they came to 100 credits or more, after the task, and never stops to ask first.
|
|
12
|
+
|
|
5
13
|
## 0.18.0
|
|
6
14
|
|
|
7
15
|
- **HTML files open as their page**, at a desktop's, a tablet's or a phone's width, and you can mark them up and share them. Any file can be shared on its own.
|
package/bin/allyhub.js
CHANGED
|
@@ -30,6 +30,15 @@ function local() {
|
|
|
30
30
|
const versionOf = (dir) =>
|
|
31
31
|
JSON.parse(readFileSync(join(dir, "package.json"), "utf8")).version;
|
|
32
32
|
|
|
33
|
+
// Run by an agent in Studio, a command waits for one of the machine's
|
|
34
|
+
// slots before it loads anything more (src/slot.ts); what it hands the run
|
|
35
|
+
// to, or starts, runs in the same slot.
|
|
36
|
+
const { SLOT_HELD, takeSlot } = await import("../dist/slot.js");
|
|
37
|
+
const slot = await takeSlot(process.env, process.argv.slice(2), (line) =>
|
|
38
|
+
process.stderr.write(`${line}\n`),
|
|
39
|
+
);
|
|
40
|
+
if (slot.held) process.env[SLOT_HELD] = "1";
|
|
41
|
+
|
|
33
42
|
const theirs = local();
|
|
34
43
|
if (theirs !== undefined) {
|
|
35
44
|
const [mine, project] = [versionOf(own), versionOf(theirs)];
|
|
@@ -41,4 +50,5 @@ if (theirs !== undefined) {
|
|
|
41
50
|
} else {
|
|
42
51
|
const { run } = await import("../dist/main.js");
|
|
43
52
|
process.exitCode = await run(process.argv.slice(2));
|
|
53
|
+
slot.release();
|
|
44
54
|
}
|
package/dist/args.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{parseArgs as T}from"node:util";import{z as x}from"zod";import{EXIT as z}from"@allyhub/protocol";import{CommandError as E}from"./command.js";const k=s=>s._zod.def;export function shapeOf(s){let r=s,a;for(;;){const n=k(r);if((n.type==="default"||n.type==="prefault")&&(a=typeof n.defaultValue=="function"?n.defaultValue():n.defaultValue),(n.type==="optional"||n.type==="default"||n.type==="prefault"||n.type==="nullable")&&n.innerType){r=n.innerType;continue}const l=f=>{const o=k(f).type;if(o==="boolean")return"boolean";if(o==="number"||o==="int")return"number";if(o==="union"){const m=new Set((k(f).options??[]).map(l));return m.size===1?[...m][0]??"string":"string"}return"string"};return n.type==="array"&&n.element?{kind:l(n.element),list:!0,...a===void 0?{}:{fallback:a}}:{kind:l(r),list:!1,...a===void 0?{}:{fallback:a}}}}export function paramsOf(s){let r=s;for(;r;){const a=k(r);if(a.type==="object")return r.shape;r=a.innerType}}export const optionName=s=>s.replaceAll(/[A-Z]/gu,r=>`-${r.toLowerCase()}`);export function splitList(s){const r=[];let a=0,n=!1,l=0;for(let f=0;f<s.length;f++){const o=s[f];n?o==="\\"?f++:o==='"'&&(n=!1):o==='"'&&a>0?n=!0:o==="["||o==="{"?a++:(o==="]"||o==="}")&&a>0?a--:o===","&&a===0&&(r.push(s.slice(l,f)),l=f+1)}return r.push(s.slice(l)),r}const g=(s,r)=>new E("usage",s,{exit:z.usage,...r===void 0?{}:{hint:r}});function M(s,r){const a=[];for(let n=0;n<s.length;n++){const l=s[n]??"",f=s[n+1],o=l.startsWith("--")&&!l.includes("=")?l.slice(2):"";o!==""&&r(o)&&f!==void 0&&/^-\.?\d/u.test(f)?(a.push(`${l}=${f}`),n++):a.push(l)}return a}export function readArgs(s,r){const a=s.input.shape,n=Object.entries(a),l=[...s.positional??[]],f=new Map(n.map(([t,e])=>[t,shapeOf(e)])),o={},m=new Map,h=paramsOf(a.params);h&&(o.param={type:"string",multiple:!0});for(const[t]of n){if(l.includes(t)||h&&t==="params")continue;const e=f.get(t);if(!e)continue;const i=optionName(t);m.set(i,t),o[i]={type:e.kind==="boolean"&&!e.list?"boolean":"string",...e.list?{multiple:!0}:{}},e.kind==="boolean"&&!e.list&&(o[`no-${i}`]={type:"boolean"})}let $;try{$=T({args:M(r,t=>o[t]?.type==="string"),options:o,allowPositionals:!0,strict:!0})}catch(t){const e=[...m.keys()].map(i=>`--${i}`).join(", ");throw g(t.message,e?`${s.name} takes ${e}.`:`${s.name} takes no options.`)}const d={},y=(t,e)=>{if(f.get(t)?.kind!=="number")return e;const p=Number(e);if(e.trim()===""||!Number.isFinite(p))throw g(`--${optionName(t)} is a number, not "${e}".`);return p};if(h){const t={};for(const e of $.values.param??[]){const i=e.indexOf("="),p=i<0?e:e.slice(0,i),u=Object.keys(h).find(c=>optionName(c)===p||c===p);if(u===void 0||i<0)throw g(i<0?`--param ${e}: write it as name=value.`:`--param: ${s.name} has no parameter "${p}".`,`Its parameters: ${Object.keys(h).map(optionName).join(", ")}.`);const w=e.slice(i+1),{kind:O,list:A}=shapeOf(h[u]??x.string()),v=c=>{if(O==="number"){const N=Number(c);if(c.trim()===""||!Number.isFinite(N))throw g(`--param ${p} is a number, not "${c}".`);return N}return O==="boolean"?c==="true"||c==="1"||c==="yes":c};t[u]=A?splitList(w).filter(c=>c!=="").map(v):v(w)}d.params=t}for(const[t,e]of Object.entries($.values)){if(t==="param"&&h)continue;if(t.startsWith("no-")&&m.has(t.slice(3))){const u=m.get(t.slice(3))??"";e===!0&&(d[u]=!1);continue}const i=m.get(t);if(i===void 0)continue;const p=f.get(i);Array.isArray(e)?d[i]=e.flatMap(u=>splitList(String(u))).filter(u=>u!=="").map(u=>y(i,u)):typeof e=="boolean"?d[i]=e:typeof e=="string"&&(d[i]=p?.list?splitList(e).map(u=>y(i,u)):y(i,e))}const b=[...$.positionals];if(l.forEach((t,e)=>{const i=f.get(t),p=e===l.length-1;if(i?.list&&p){b.length>0&&(d[t]=b.splice(0).map(w=>y(t,w)));return}const u=b.shift();u!==void 0&&(d[t]=y(t,u))}),b.length>0)throw g(`${s.name} does not take "${b.join(" ")}".`);const j=s.input.safeParse(d);if(!j.success){const t=j.error.issues[0],e=String(t?.path[0]??""),i=l.includes(e)?`<${e}>`:e?`--${optionName(e)}`:s.name;throw g(`${i}: ${t?.message??"not valid"}.`)}return j.data}
|
|
2
|
+
import{parseArgs as T}from"node:util";import{z as x}from"zod";import{EXIT as z}from"@allyhub/protocol/cli";import{CommandError as E}from"./command.js";const k=s=>s._zod.def;export function shapeOf(s){let r=s,a;for(;;){const n=k(r);if((n.type==="default"||n.type==="prefault")&&(a=typeof n.defaultValue=="function"?n.defaultValue():n.defaultValue),(n.type==="optional"||n.type==="default"||n.type==="prefault"||n.type==="nullable")&&n.innerType){r=n.innerType;continue}const l=f=>{const o=k(f).type;if(o==="boolean")return"boolean";if(o==="number"||o==="int")return"number";if(o==="union"){const m=new Set((k(f).options??[]).map(l));return m.size===1?[...m][0]??"string":"string"}return"string"};return n.type==="array"&&n.element?{kind:l(n.element),list:!0,...a===void 0?{}:{fallback:a}}:{kind:l(r),list:!1,...a===void 0?{}:{fallback:a}}}}export function paramsOf(s){let r=s;for(;r;){const a=k(r);if(a.type==="object")return r.shape;r=a.innerType}}export const optionName=s=>s.replaceAll(/[A-Z]/gu,r=>`-${r.toLowerCase()}`);export function splitList(s){const r=[];let a=0,n=!1,l=0;for(let f=0;f<s.length;f++){const o=s[f];n?o==="\\"?f++:o==='"'&&(n=!1):o==='"'&&a>0?n=!0:o==="["||o==="{"?a++:(o==="]"||o==="}")&&a>0?a--:o===","&&a===0&&(r.push(s.slice(l,f)),l=f+1)}return r.push(s.slice(l)),r}const g=(s,r)=>new E("usage",s,{exit:z.usage,...r===void 0?{}:{hint:r}});function M(s,r){const a=[];for(let n=0;n<s.length;n++){const l=s[n]??"",f=s[n+1],o=l.startsWith("--")&&!l.includes("=")?l.slice(2):"";o!==""&&r(o)&&f!==void 0&&/^-\.?\d/u.test(f)?(a.push(`${l}=${f}`),n++):a.push(l)}return a}export function readArgs(s,r){const a=s.input.shape,n=Object.entries(a),l=[...s.positional??[]],f=new Map(n.map(([t,e])=>[t,shapeOf(e)])),o={},m=new Map,h=paramsOf(a.params);h&&(o.param={type:"string",multiple:!0});for(const[t]of n){if(l.includes(t)||h&&t==="params")continue;const e=f.get(t);if(!e)continue;const i=optionName(t);m.set(i,t),o[i]={type:e.kind==="boolean"&&!e.list?"boolean":"string",...e.list?{multiple:!0}:{}},e.kind==="boolean"&&!e.list&&(o[`no-${i}`]={type:"boolean"})}let $;try{$=T({args:M(r,t=>o[t]?.type==="string"),options:o,allowPositionals:!0,strict:!0})}catch(t){const e=[...m.keys()].map(i=>`--${i}`).join(", ");throw g(t.message,e?`${s.name} takes ${e}.`:`${s.name} takes no options.`)}const d={},y=(t,e)=>{if(f.get(t)?.kind!=="number")return e;const p=Number(e);if(e.trim()===""||!Number.isFinite(p))throw g(`--${optionName(t)} is a number, not "${e}".`);return p};if(h){const t={};for(const e of $.values.param??[]){const i=e.indexOf("="),p=i<0?e:e.slice(0,i),u=Object.keys(h).find(c=>optionName(c)===p||c===p);if(u===void 0||i<0)throw g(i<0?`--param ${e}: write it as name=value.`:`--param: ${s.name} has no parameter "${p}".`,`Its parameters: ${Object.keys(h).map(optionName).join(", ")}.`);const w=e.slice(i+1),{kind:O,list:A}=shapeOf(h[u]??x.string()),v=c=>{if(O==="number"){const N=Number(c);if(c.trim()===""||!Number.isFinite(N))throw g(`--param ${p} is a number, not "${c}".`);return N}return O==="boolean"?c==="true"||c==="1"||c==="yes":c};t[u]=A?splitList(w).filter(c=>c!=="").map(v):v(w)}d.params=t}for(const[t,e]of Object.entries($.values)){if(t==="param"&&h)continue;if(t.startsWith("no-")&&m.has(t.slice(3))){const u=m.get(t.slice(3))??"";e===!0&&(d[u]=!1);continue}const i=m.get(t);if(i===void 0)continue;const p=f.get(i);Array.isArray(e)?d[i]=e.flatMap(u=>splitList(String(u))).filter(u=>u!=="").map(u=>y(i,u)):typeof e=="boolean"?d[i]=e:typeof e=="string"&&(d[i]=p?.list?splitList(e).map(u=>y(i,u)):y(i,e))}const b=[...$.positionals];if(l.forEach((t,e)=>{const i=f.get(t),p=e===l.length-1;if(i?.list&&p){b.length>0&&(d[t]=b.splice(0).map(w=>y(t,w)));return}const u=b.shift();u!==void 0&&(d[t]=y(t,u))}),b.length>0)throw g(`${s.name} does not take "${b.join(" ")}".`);const j=s.input.safeParse(d);if(!j.success){const t=j.error.issues[0],e=String(t?.path[0]??""),i=l.includes(e)?`<${e}>`:e?`--${optionName(e)}`:s.name;throw g(`${i}: ${t?.message??"not valid"}.`)}return j.data}
|
package/dist/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{CommandError as m,command as n}from"@allyhub/protocol";export function defineCommand(o,r){return{spec:n(o),run:r}}export{m as CommandError};
|
|
2
|
+
import{CommandError as m,command as n}from"@allyhub/protocol/cli";export function defineCommand(o,r){return{spec:n(o),run:r}}export{m as CommandError};
|
package/dist/commands/add.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as Y}from"node:fs/promises";import{join as x,posix as B,relative as V}from"node:path";import{fileURLToPath as W}from"node:url";import{z as h}from"zod";import{modelInfo as q}from"@allyhub/build";import{COMPONENTS_DIR as I}from"@allyhub/formats";import{EXIT as f}from"@allyhub/protocol";import{ASSET_DEFAULTS as G,ASSET_TYPES as K,PolyHaven as X,PolyHavenError as Z,RegistryError as J,applyAdd as T,fetchBakes as Q,folderRegistry as D,planAdd as L,searchIndex as O}from"@allyhub/registry";import{cacheHome as ee}from"@allyhub/runtimes";import{CLI_VERSION as te}from"../cli-version.js";import{CommandError as S,defineCommand as C}from"../command.js";import{projectRoot as ne}from"../project.js";import{dir as oe}from"../fields.js";import{resourcesIndex as R}from"../resources.js";const _=W(new URL(".",import.meta.resolve("@allyhub/components/registry.json"))),se=Object.keys(K),A=["component","3d-model","scenery","skill","template","lib","@polyhaven"],ae={"allyhub:component":"component","allyhub:model":"3d-model","allyhub:scenery":"scenery","allyhub:skill":"skill","allyhub:template":"template","allyhub:lib":"lib"},H=e=>ae[e]??e.replace(/^allyhub:/u,""),E=e=>`${H(e.type)}/${e.name}`;function ie(e){const n=/^(@?[a-z0-9-]+)\/(.+)$/u.exec(e),i=A.find(d=>d===n?.[1]);if(i===void 0||n?.[2]===void 0)throw new S("usage",n===null?`Name what to add as <type>/<name>: ${e} has no type.`:`${n[1]??""} is not a type: name what to add as <type>/<name>.`,{exit:f.usage,hint:`Types: ${A.join(", ")} (3d-model/monitor, scenery/home-desk-demo-day, skill/web-product-demos, component/caption-line, @polyhaven/<id>). allyhub add lists every one.`});return{type:i,name:n[2]}}const le={"allyhub:model":"3D models","allyhub:scenery":"3D sceneries","allyhub:skill":"Skills","allyhub:template":"Templates","allyhub:component":"Components","allyhub:lib":"Libs (added with what uses them)"};function F(e,n){if(e.from==="none")return["AllyHub's resources (models, sceneries) could not be read: check the connection."];const i=n??e.index?.items??[],d=Math.max(0,...i.map(s=>E(s).length)),r=[`AllyHub's resources (allyhub add <type>/<name> copies one with what it needs, its Poly Haven assets and its baked light)${e.from==="stale"?", as last read (the registry cannot be read now)":""}:`];for(const[s,p]of Object.entries(le)){const c=i.filter(u=>u.type===s);c.length!==0&&r.push(` ${p}:`,...c.map(u=>` ${E(u).padEnd(d)} ${u.description}`))}return r}const N=20,z=e=>e.replace(/\.(?:ts|js)$/u,"").replaceAll(/[A-Z]/gu,n=>`-${n.toLowerCase()}`).replace(/^-/u,"");function M(e){return e instanceof J?new S(e.code,e.message,{exit:e.code==="conflict"?f.conflict:e.code==="no-item"?f.notFound:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof Z?new S(e.code,e.message,{exit:e.code==="network"?f.platform:e.code==="not-found"?f.notFound:e.code==="bad-choice"?f.usage:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e}const P=e=>new X({userAgent:`AllyHub/${te} (+https://allyhub.com)`,cacheDir:x(ee(e.env),"polyhaven"),...e.env.ALLYHUB_POLYHAVEN_API?{api:e.env.ALLYHUB_POLYHAVEN_API}:{}}),k=e=>`${e.toFixed(3)} m`;function de(e){const n=[e.type,e.category,e.size?`${k(e.size.width)} wide, ${k(e.size.depth)} deep, ${k(e.size.height)} tall`:void 0,e.covers?`one tile covers ${e.covers.map(k).join(" × ")}`:void 0,e.polycount!==void 0?`${e.polycount.toLocaleString("en")} polygons`:void 0,e.maxResolution?`up to ${String(e.maxResolution[0])} px`:void 0,e.authors.length>0?`by ${e.authors.join(", ")}`:void 0].filter(i=>i!==void 0);return` @polyhaven/${e.id}: ${e.name} (${n.join("; ")})
|
|
2
|
+
import{readFile as Y}from"node:fs/promises";import{join as x,posix as B,relative as V}from"node:path";import{fileURLToPath as W}from"node:url";import{z as h}from"zod";import{modelInfo as q}from"@allyhub/build";import{COMPONENTS_DIR as I}from"@allyhub/formats";import{EXIT as f}from"@allyhub/protocol";import{ASSET_DEFAULTS as G,ASSET_TYPES as K,PolyHaven as X,PolyHavenError as Z,RegistryError as J,applyAdd as T,fetchBakes as Q,folderRegistry as D,planAdd as L,searchIndex as O}from"@allyhub/registry";import{cacheHome as ee}from"@allyhub/runtimes/home";import{CLI_VERSION as te}from"../cli-version.js";import{CommandError as S,defineCommand as C}from"../command.js";import{projectRoot as ne}from"../project.js";import{dir as oe}from"../fields.js";import{resourcesIndex as R}from"../resources.js";const _=W(new URL(".",import.meta.resolve("@allyhub/components/registry.json"))),se=Object.keys(K),A=["component","3d-model","scenery","skill","template","lib","@polyhaven"],ae={"allyhub:component":"component","allyhub:model":"3d-model","allyhub:scenery":"scenery","allyhub:skill":"skill","allyhub:template":"template","allyhub:lib":"lib"},H=e=>ae[e]??e.replace(/^allyhub:/u,""),E=e=>`${H(e.type)}/${e.name}`;function ie(e){const n=/^(@?[a-z0-9-]+)\/(.+)$/u.exec(e),i=A.find(d=>d===n?.[1]);if(i===void 0||n?.[2]===void 0)throw new S("usage",n===null?`Name what to add as <type>/<name>: ${e} has no type.`:`${n[1]??""} is not a type: name what to add as <type>/<name>.`,{exit:f.usage,hint:`Types: ${A.join(", ")} (3d-model/monitor, scenery/home-desk-demo-day, skill/web-product-demos, component/caption-line, @polyhaven/<id>). allyhub add lists every one.`});return{type:i,name:n[2]}}const le={"allyhub:model":"3D models","allyhub:scenery":"3D sceneries","allyhub:skill":"Skills","allyhub:template":"Templates","allyhub:component":"Components","allyhub:lib":"Libs (added with what uses them)"};function F(e,n){if(e.from==="none")return["AllyHub's resources (models, sceneries) could not be read: check the connection."];const i=n??e.index?.items??[],d=Math.max(0,...i.map(s=>E(s).length)),r=[`AllyHub's resources (allyhub add <type>/<name> copies one with what it needs, its Poly Haven assets and its baked light)${e.from==="stale"?", as last read (the registry cannot be read now)":""}:`];for(const[s,p]of Object.entries(le)){const c=i.filter(u=>u.type===s);c.length!==0&&r.push(` ${p}:`,...c.map(u=>` ${E(u).padEnd(d)} ${u.description}`))}return r}const N=20,z=e=>e.replace(/\.(?:ts|js)$/u,"").replaceAll(/[A-Z]/gu,n=>`-${n.toLowerCase()}`).replace(/^-/u,"");function M(e){return e instanceof J?new S(e.code,e.message,{exit:e.code==="conflict"?f.conflict:e.code==="no-item"?f.notFound:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e instanceof Z?new S(e.code,e.message,{exit:e.code==="network"?f.platform:e.code==="not-found"?f.notFound:e.code==="bad-choice"?f.usage:f.failed,...e.hint===void 0?{}:{hint:e.hint}}):e}const P=e=>new X({userAgent:`AllyHub/${te} (+https://allyhub.com)`,cacheDir:x(ee(e.env),"polyhaven"),...e.env.ALLYHUB_POLYHAVEN_API?{api:e.env.ALLYHUB_POLYHAVEN_API}:{}}),k=e=>`${e.toFixed(3)} m`;function de(e){const n=[e.type,e.category,e.size?`${k(e.size.width)} wide, ${k(e.size.depth)} deep, ${k(e.size.height)} tall`:void 0,e.covers?`one tile covers ${e.covers.map(k).join(" × ")}`:void 0,e.polycount!==void 0?`${e.polycount.toLocaleString("en")} polygons`:void 0,e.maxResolution?`up to ${String(e.maxResolution[0])} px`:void 0,e.authors.length>0?`by ${e.authors.join(", ")}`:void 0].filter(i=>i!==void 0);return` @polyhaven/${e.id}: ${e.name} (${n.join("; ")})
|
|
3
3
|
found in ${e.matchedIn.join(", ")||"everything"}; tags ${e.tags.join(", ")}`}async function U(e,n){const i=[`${n.name} from Poly Haven (CC0, by ${n.source.authors.join(", ")||"its authors"}): ${String(n.files.length)} files in ${n.dir}/, ${n.fetched>0?`${String(n.fetched)} fetched`:"all already there"}. Records: ${n.records.join(", ")}.`];if(n.type==="model"){const r=n.main[0]??"",s=await q(e,r,await Y(x(e,r))),p=s.bounds;return i.push(p?`Measured: ${p.size.map(c=>c.toFixed(3)).join(" × ")} m along x, y (up), z; from ${p.min.map(c=>c.toFixed(3)).join(", ")} to ${p.max.map(c=>c.toFixed(3)).join(", ")}.`:`Not measured: ${s.contentsMissing??"no contents"}.`,...s.missing.length>0?[`Missing: ${s.missing.join(", ")}.`]:[],`In a scenery: const m = await w.load("${r}");`),{lines:i,model:s}}if(n.type==="hdri")return i.push(`In a scenery: await w.environment("${n.main[0]??""}", { background: true });`),{lines:i};const d=n.covers;return i.push(d&&d.length>=2?`One tile covers ${k(d[0]??0)} × ${k(d[1]??0)} (Poly Haven's dimensions): a surface's repeat is its size over that.`:"Poly Haven gives no size for one tile.",...n.main.map((r,s)=>{const p=n.maps?.[s]??"";return` ${p}: await w.texture("${r}"${p==="diffuse"?"":', { colorSpace: "linear" }'})`})),{lines:i}}export const add=C({name:"add",summary:"Adds to the project what AllyHub and Poly Haven have, each named <type>/<name>: a starter component, a 3D model, a 3D scenery, a skill or a template from AllyHub's registry, or a CC0 model, HDRI or texture from Poly Haven; alone it lists everything AllyHub has, by type",input:h.strictObject({name:h.array(h.string()).optional().describe("What to add, each <type>/<name>: component/caption-line, 3d-model/monitor, scenery/home-desk-demo-day, skill/web-product-demos (a skill goes in .agents/skills, linked from .claude/skills), template/<name>, lib/<name>, or @polyhaven/<id> (as allyhub add search prints it)"),to:h.string().optional().describe(`The folder the files go in, from the project (default ${I} for a component; for an asset, its kind's folder under assets/media/ and its id)`),force:h.boolean().default(!1).describe("Replace a component's copy the project changed (its changes are lost)"),res:h.string().optional().describe(`An asset's resolution, of its textures or of the HDRI (default ${G.resolution})`),dir:oe}),positional:["name"],output:h.looseObject({}),examples:["allyhub add","allyhub add component/caption-line","allyhub add 3d-model/monitor scenery/home-desk-demo-day","allyhub add @polyhaven/metal_office_desk --res 2k"]},async(e,n)=>{const i=D(_);try{const d=await i.index();if(!e.name||e.name.length===0){const t=Math.max(...d.items.map(y=>`component/${y.name}`.length)),l=await R(n);return{value:{components:d.items,resources:l.index?.items??[]},text:["Starter components (allyhub add component/<name> copies one into components/; allyhub add search <words> finds among everything, Poly Haven's models, HDRIs and textures too):",...d.items.map(y=>` ${`component/${y.name}`.padEnd(t)} ${y.description}`),"",...F(l,void 0)].join(`
|
|
4
4
|
`)}}const r=e.name.map(ie),s=await ne(n.cwd,e.dir),p=new Set(d.items.map(t=>t.name)),c=t=>t.type==="component"&&p.has(z(t.name)),u=r.filter(c).map(t=>z(t.name)),v=r.filter(t=>t.type==="@polyhaven").map(t=>t.name),g=r.filter(t=>t.type!=="@polyhaven"&&!c(t)),b=g.length>0?await R(n):void 0;for(const t of g){const l=b?.index?.items.find(y=>y.name===t.name);if(!l)throw new S("no-item",`There is no ${t.type}/${t.name}.`,{exit:f.notFound,hint:b?.from==="none"?"AllyHub's registry could not be read: check the connection.":`allyhub add search --type ${t.type} lists them.`});if(H(l.type)!==t.type)throw new S("usage",`${t.name} is a ${H(l.type)}, not a ${t.type}.`,{exit:f.usage,hint:`allyhub add ${E(l)}`})}const w=g.map(t=>t.name),a=[],j={};if(u.length>0){const t=e.to??I,l=await L(i,u,{root:s,dir:t,force:e.force});await T(s,l);const y=m=>m==="up to date"?"Up to date":m==="added"?"Added":"Replaced";a.push(...l.files.map(m=>`${y(m.status)} ${m.path}`));const $=l.items.find(m=>m.name===u[0]),o=$?.files[0]?.target.replaceAll("{dir}",t);if($&&o){const m=V(x(s,"name"),x(s,o)).split("\\").join("/").replace(/\.ts$/u,".js");a.push(`Import it from a piece's file one folder down (<folder>/<file>.ts): import { ${$.title} } from "${m.startsWith(".")?m:`./${m}`}"; one "../" more for each folder the file is deeper.`,"The file is the project's: change it as you like. allyhub add component/<name> --force puts the registry's back.")}l.missing.length>0&&a.push(`It needs packages the project does not declare: ${l.missing.join(", ")}.`),j.components=l.files.map(m=>({item:m.item,path:m.path,status:m.status})),j.missing=l.missing}if(b&&w.length>0){const t=await L(b.source,w,{root:s,dir:".",force:e.force});await T(s,t),a.length>0&&a.push(""),a.push(...t.files.map(o=>`${o.status==="up to date"?"Up to date":o.status==="added"?"Added":"Replaced"} ${o.path}`));const l=P(n);for(const o of t.assets){const m=await l.add(o.id,{root:s,...o.resolution===void 0?{}:{resolution:o.resolution},...o.maps===void 0?{}:{maps:o.maps}});a.push(...(await U(s,m)).lines)}const y=await Q(s,t.bakes);a.push(...y.map(o=>`${o.status==="added"?"Downloaded":"Up to date"} the baked light for ${o.bake.scenery}: ${o.path}`),"The files are the project's: change them as you like (a changed scenery is drawn unbaked until allyhub scenery bake bakes it again). allyhub add <type>/<name> --force puts the registry's back.");const $=t.files.filter(o=>o.path.endsWith("/README.md"));$.length>0&&a.push(`Read first, for its screens and cameras: ${$.map(o=>o.path).join(", ")}`),j.resources={files:t.files.map(o=>({item:o.item,path:o.path,status:o.status})),assets:t.assets,bakes:y.map(o=>({path:o.path,status:o.status}))}}if(v.length>0){const t=P(n),l=[];for(const y of v){const $=await t.add(y,{root:s,...e.to===void 0||u.length>0?{}:{to:B.normalize(e.to)},...e.res===void 0?{}:{resolution:e.res}}),o=await U(s,$);a.length>0&&a.push(""),a.push(...o.lines),l.push({...$,...o.model===void 0?{}:{model:o.model}})}j.assets=l}return{value:j,text:a.join(`
|
|
5
5
|
`)}}catch(d){throw M(d)}}),addSearch=C({name:"add search",summary:"Finds the starter components, AllyHub's resources (models, sceneries) and Poly Haven's CC0 models, HDRIs and textures whose names, tags, categories or descriptions hold every word, each with where its words were found; with no words, lists every one",input:h.strictObject({words:h.array(h.string()).default([]).describe("The words to find (a word may start one of theirs); none lists every one"),type:h.array(h.enum(A)).optional().describe(`Only these types (default all): ${A.join(", ")} (@polyhaven: Poly Haven's models, HDRIs and textures)`),all:h.boolean().default(!1).describe(`Every match; default the first ${String(N)} Poly Haven assets`)}),positional:["words"],output:h.looseObject({}),examples:["allyhub add search --type 3d-model",'allyhub add search "office desk" --type @polyhaven',"allyhub add search caption --type component"]},async(e,n)=>{const i=e.words.join(" ").trim(),d=i===""?"":` hold "${i}"`;try{const r=e.type??A,s=r.includes("component")?O(await D(_).index(),i):[],p=r.filter(a=>a!=="@polyhaven"),c=p.length>0?await R(n):void 0,u=c?.index?O(c.index,i).filter(a=>p.includes(H(a.type))):[],v=r.includes("@polyhaven")?se:[],{found:g,total:b}=v.length>0?await P(n).search(i,v):{found:[],total:0},w=e.all?g:g.slice(0,N);return{value:{query:i,components:s,resources:u,assets:{total:b,matches:g.length,found:w}},text:[...r.includes("component")?[`Starter components: ${String(s.length)}${d}.`,...s.map(a=>` component/${a.name} (${a.title}): ${a.description}`)]:[],...c?c.from==="none"?F(c,[]):[`AllyHub's resources: ${String(u.length)}${d}${c.from==="stale"?" (as last read)":""}.`,...u.map(a=>` ${E(a)} (${a.title}): ${a.description}`)]:[],...v.length>0?[`From Poly Haven (CC0): ${String(g.length)} of ${String(b)} assets${d}${w.length<g.length?`; the first ${String(w.length)} (--all for every one)`:""}.`,...w.map(de)]:[],"","Add one: allyhub add <type>/<name>"].join(`
|
package/dist/commands/auth.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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{billingSummary as b,hostsText as y,openBrowser as $,organizations as v,readCredentials as I,signIn as S,signInDevice as k,signInInBackground as _,signedInAs as A,SIGN_IN_WAIT_MS as m}from"@allyhub/cloud";import{API_KEY_ENV as x
|
|
2
|
+
import{z as e}from"zod";import{billingSummary as b,hostsText as y,openBrowser as $,organizations as v,readCredentials as I,signIn as S,signInDevice as k,signInInBackground as _,signedInAs as A,SIGN_IN_WAIT_MS as m}from"@allyhub/cloud";import{API_KEY_ENV as x}from"@allyhub/protocol/cloud";import{EXIT as z}from"@allyhub/protocol/cli";import{defineCommand as f}from"../command.js";import{cloudOf as w,cloudWork as p}from"./cloud.js";const O=e.looseObject({url:e.string()});export const authLogin=f({name:"auth login",summary:"Sign this computer in to AllyHub, for the cloud tools; once per computer, shared with AllyHub Studio",input:e.strictObject({wait:e.boolean().optional().describe(`Wait here for the browser (default in a terminal); --no-wait waits ${String(m/6e4)} minutes in the background and returns at once (default for an agent), then allyhub auth status says when it is done`),browser:e.boolean().default(!0).describe("Open the browser; --no-browser only prints the address"),device:e.boolean().default(!1).describe("Sign in with a code entered in a browser elsewhere (RFC 8628's device flow), for a computer with no browser of its own")}),output:e.looseObject({status:e.enum(["signed-in","waiting"]),email:e.string().optional(),url:e.string().optional(),hosts:O}),examples:["allyhub auth login","allyhub auth login --no-wait --no-browser","allyhub auth login --device"]},(d,u)=>p(async()=>{const n=w(u),t={url:n.url,from:n.config.from},l=`Signing in to AllyHub: ${y(n.config)}.`,o=await A(n);if(o)return{value:{status:"signed-in",email:o.email,hosts:t},text:`This computer is signed in to AllyHub as ${o.email}.`};if(d.device){const i=await k(n,s=>{u.progress(`${l}
|
|
3
3
|
On any computer, open ${s.verification_uri} and enter ${s.user_code}${s.verification_uri_complete===void 0?"":` (or open ${s.verification_uri_complete})`}.`)});return{value:{status:"signed-in",email:i.email,hosts:t},text:`Signed in as ${i.email}.`}}const a=i=>{d.browser&&$(i,u.env)};if(d.wait===!1||d.wait===void 0&&!process.stdout.isTTY){const i=await _(n,u.env);return a(i),{value:{status:"waiting",url:i,hosts:t},text:[l,"Sign in in the browser (opened, or open this address):",` ${i}`,`It waits ${String(m/6e4)} minutes in the background; allyhub auth status says when it is done.`].join(`
|
|
4
4
|
`)}}const r=await S(n,i=>{u.progress(`${l}
|
|
5
5
|
Sign in in your browser. If it did not open:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as L}from"node:fs/promises";import{join as D,resolve as W}from"node:path";import{z as s}from"zod";import{callTool as M,loadCatalog as h,resumeJob as H,uploadFiles as T}from"@allyhub/cloud";import{WORK_DIR as U}from"@allyhub/formats";import{EXIT as m}from"@allyhub/protocol";import{CommandError as g,defineCommand as F}from"../command.js";import{optionName as _}from"../args.js";import{requiredMissing as q,toolInput as B,toolOptions as K,exampleArgs as G,fieldLines as R}from"../tool-options.js";import{cloudOf as p,cloudWork as w,placeFrom as z,plural as $}from"./cloud.js";const j=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),X=8e3,f={input:s.string().optional().describe("The input as JSON, or a file of it: the whole of it, or the fields no option gives; an option given beside it wins"),file:s.string().optional().describe("The path of the file it makes, or for a tool that returns data, of its output as JSON (without an extension it takes the result's, or .json); the same call with the same input then keeps it, calling nothing, and while its call works waits for that call; default a folder under .allyhub/work/"),force:s.boolean().default(!1).describe("With --file: call even when the file was made from this input, and replace a file that has no record"),wait:s.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:s.string().optional().describe("Wait for a call of this tool this computer made (from --no-wait, or a call that stopped waiting), and download its file")},k=(e,a)=>new g("usage",e,{exit:m.usage,...a===void 0?{}:{hint:a}}),P=e=>{const a=e.reduce((n,o)=>o.map((r,i)=>Math.max(n[i]??0,r.length)),[]);return e.map(n=>` ${n.map((o,r)=>r===n.length-1?o:o.padEnd(a[r]??0)).join(" ")}`.trimEnd())};export const wordOf=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/g,"");function Q(e){return F({name:e.id,summary:`${e.title}: ${e.description} Lists the tools, each a command`,input:s.strictObject({fresh:s.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:s.looseObject({work:s.string(),tools:s.array(s.looseObject({name:s.string()}))}),examples:[`allyhub ${e.id}`,`allyhub ${e.id} --json`]},(a,n)=>w(async()=>{const r=(await h(p(n),{refresh:a.fresh})).tools.filter(i=>i.work===e.id).sort((i,t)=>i.name.localeCompare(t.name));return{value:{work:e.id,title:e.title,tools:r.map(i=>({name:i.name,title:i.title,...i.shown?{shown:i.shown.name}:{},description:i.description,long:i.long}))},text:[`${e.title} (${$(r.length,"tool")}):`,...P(r.map(i=>[i.name,i.shown?`${i.title} (${i.shown.name} in AllyHub)`:i.title])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${e.id} <tool> shows a tool's options and how its credits are counted.`].join(`
|
|
2
|
+
import{readFile as L}from"node:fs/promises";import{join as D,resolve as W}from"node:path";import{z as s}from"zod";import{callTool as M,loadCatalog as h,resumeJob as H,uploadFiles as T}from"@allyhub/cloud/tools";import{WORK_DIR as U}from"@allyhub/formats/layout";import{EXIT as m}from"@allyhub/protocol/cli";import{CommandError as g,defineCommand as F}from"../command.js";import{optionName as _}from"../args.js";import{requiredMissing as q,toolInput as B,toolOptions as K,exampleArgs as G,fieldLines as R}from"../tool-options.js";import{cloudOf as p,cloudWork as w,placeFrom as z,plural as $}from"./cloud.js";const j=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),X=8e3,f={input:s.string().optional().describe("The input as JSON, or a file of it: the whole of it, or the fields no option gives; an option given beside it wins"),file:s.string().optional().describe("The path of the file it makes, or for a tool that returns data, of its output as JSON (without an extension it takes the result's, or .json); the same call with the same input then keeps it, calling nothing, and while its call works waits for that call; default a folder under .allyhub/work/"),force:s.boolean().default(!1).describe("With --file: call even when the file was made from this input, and replace a file that has no record"),wait:s.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:s.string().optional().describe("Wait for a call of this tool this computer made (from --no-wait, or a call that stopped waiting), and download its file")},k=(e,a)=>new g("usage",e,{exit:m.usage,...a===void 0?{}:{hint:a}}),P=e=>{const a=e.reduce((n,o)=>o.map((r,i)=>Math.max(n[i]??0,r.length)),[]);return e.map(n=>` ${n.map((o,r)=>r===n.length-1?o:o.padEnd(a[r]??0)).join(" ")}`.trimEnd())};export const wordOf=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/g,"");function Q(e){return F({name:e.id,summary:`${e.title}: ${e.description} Lists the tools, each a command`,input:s.strictObject({fresh:s.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:s.looseObject({work:s.string(),tools:s.array(s.looseObject({name:s.string()}))}),examples:[`allyhub ${e.id}`,`allyhub ${e.id} --json`]},(a,n)=>w(async()=>{const r=(await h(p(n),{refresh:a.fresh})).tools.filter(i=>i.work===e.id).sort((i,t)=>i.name.localeCompare(t.name));return{value:{work:e.id,title:e.title,tools:r.map(i=>({name:i.name,title:i.title,...i.shown?{shown:i.shown.name}:{},description:i.description,long:i.long}))},text:[`${e.title} (${$(r.length,"tool")}):`,...P(r.map(i=>[i.name,i.shown?`${i.title} (${i.shown.name} in AllyHub)`:i.title])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${e.id} <tool> shows a tool's options and how its credits are counted.`].join(`
|
|
3
3
|
`)}}))}const v=(e,a)=>a.length>0?["",`${e}:`,...a]:[],V=100;export function readableJson(e,a=""){const n=o=>o===null||typeof o!="object";if(Array.isArray(e)){if(e.length===0)return"[]";if(e.every(n))return`[${e.map(r=>JSON.stringify(r)).join(", ")}]`;const o=`${a} `;return`[
|
|
4
4
|
${e.map(r=>o+readableJson(r,o)).join(`,
|
|
5
5
|
`)}
|
package/dist/commands/cloud.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{Cloud as t,cloudConfig as p,cloudWork as l}from"@allyhub/cloud";import{projectRoot as d}from"../project.js";export const cloudOf=o=>new t(p(o.env));export{l as cloudWork};export const placeFrom=o=>d(o.cwd).catch(()=>o.cwd),plural=(o,r,c=`${r}s`)=>`${String(o)} ${o===1?r:c}`;
|
|
2
|
+
import{Cloud as t,cloudConfig as p,cloudWork as l}from"@allyhub/cloud/tools";import{projectRoot as d}from"../project.js";export const cloudOf=o=>new t(p(o.env));export{l as cloudWork};export const placeFrom=o=>d(o.cwd).catch(()=>o.cwd),plural=(o,r,c=`${r}s`)=>`${String(o)} ${o===1?r:c}`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{pathToFileURL as
|
|
2
|
+
import{pathToFileURL as f}from"node:url";import{defineCommand as c}from"../command.js";import{extensions as s,projectHost as p}from"./found-extensions.js";const l=new Map;function w(n){let e=l.get(n.module);return e||(e=import(f(n.module).href).then(t=>{if(typeof t.default!="object"||t.default===null)throw new Error(`${n.extension}'s CLI commands (${n.module}) have no default export.`);return t.default}),l.set(n.module,e)),e}async function u(n){const t=(await w(n))[n.name];if(!t)throw new Error(`${n.extension} contributes the CLI command "${n.name}" but its module (${n.module}) has none of that name.`);const o=c({name:n.name,summary:n.summary,input:t.input,...t.positional?{positional:[...t.positional]}:{},output:t.output,examples:[...t.examples]},async(i,a)=>{const{commandContext:m}=await import("./run-context.js");return t.run(i,m(a))});return t.about===void 0?o:{...o,about:{lines:t.about.lines,...t.about.value===void 0?{}:{value:t.about.value}}}}const b=n=>Promise.all(n.cliCommands().map(u));let d;export function builtInCommands(){return d??=s().then(n=>b(n.builtInExtensions())),d}export async function builtInSpecs(){return(await s()).builtInExtensions().cliCommands()}export async function builtInCommand(n){const e=(await builtInSpecs()).find(t=>t.name===n);return e===void 0?void 0:u(e)}async function r(n){const e=await p(n);if(e===void 0)return[];const t=new Set((await builtInSpecs()).map(o=>o.name));return e.cliCommands().filter(o=>!t.has(o.name))}export async function contributedSpecs(n,e){return[...e,...(await r(n)).map(t=>({name:t.name,summary:`${t.summary} (${t.extension})`,...t.work===void 0?{}:{work:t.work}}))]}export const EXTENSIONS_SOURCE={works:!1,entries:[],async nouns(n){return(await r(n)).map(e=>({name:e.name,summary:`${e.summary} (${e.extension})`}))},async resolve(n,e){const t=await r(e);for(const o of[3,2,1]){if(n.length<o)continue;const i=n.slice(0,o).join(" "),a=t.find(m=>m.name===i);if(a)return{command:await u(a),rest:n.slice(o),list:!1}}}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{access as o}from"node:fs/promises";import{join as r}from"node:path";import{PACKAGE_FILE as i}from"@allyhub/formats/layout";import{projectRoot as c}from"../project.js";export const extensions=()=>import("./extensions.js");export async function projectHost(e){const t=await c(e.cwd).catch(()=>{});if(t===void 0||!await o(r(t,i)).then(()=>!0,()=>!1))return;const{extensionsAt:n}=await extensions();try{return n(t)}catch{return}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdir as c,readFile as u,stat as p,writeFile as d}from"node:fs/promises";import{dirname as f,extname as
|
|
2
|
+
import{mkdir as c,readFile as u,stat as p,writeFile as d}from"node:fs/promises";import{dirname as f,extname as s,join as w,resolve as g}from"node:path";import{drawHtml as h}from"@allyhub/browser";import{WORK_DIR as x}from"@allyhub/formats";import{GridError as l}from"@allyhub/media";import{EXIT as o}from"@allyhub/protocol";import{lookFormat as b,webpPath as $}from"@allyhub/image-render/webp";import{comboKey as y}from"@allyhub/piece";import{CommandError as i}from"../../command.js";export function momentOf(e){const t=e.trim();if(/^@\/?[^@\s]+$/u.test(t))return t;const r=t===""?NaN:Number(t.replace(/s$/u,""));if(!Number.isFinite(r))throw new i("bad-time",`Cannot read the moment "${e}".`,{exit:o.usage,hint:"Write seconds or anchors joined with commas: --at 0.5,3,7.25 or --at @press,@/map (allyhub inspect timeline lists each part's anchors)."});return r}export function secondsOf(e){return e.map(t=>{const r=momentOf(t);if(typeof r=="string")throw new i("bad-time",`${r} is an anchor: a video file's moments are seconds.`,{exit:o.usage});return r})}export const usage=(e,t,r)=>new i(e,t,{exit:o.usage,...r===void 0?{}:{hint:r}});export function gridError(e){return e instanceof l?new i(`grid-${e.code}`,e.message,{exit:o.usage,...e.hint===void 0?{}:{hint:e.hint}}):e}export const comboName=e=>{if(e.id!==void 0)return e.id;const t=y(e.combo);return t==="default"?"":t},withCombo=(e,t)=>{const r=comboName(t);return r===""?e:`${e}.${r}`},secondsName=e=>`${e.toFixed(2)}s`;export function picturePath(e,t,r){return $(t===void 0?r:g(e,t))}export async function save(e,t){return await c(f(e),{recursive:!0}),await d(e,t),e}export const looks=()=>b();export async function drawPage(e,t){const r=(t.pictures??[]).map((a,m)=>({at:pictureUrl(m),body:a,type:v(a)})),n=looks();return h(e,{html:t.html,width:t.width,...t.height===void 0?{}:{height:t.height},format:n,...n==="webp"?{quality:90}:{},mounts:r})}export const pictureUrl=e=>`/pictures/${String(e)}`;const v=e=>e[0]===137&&e[1]===80?"image/png":e.toString("ascii",8,12)==="WEBP"?"image/webp":"image/jpeg";export const isFile=async e=>(await p(e).catch(()=>{}))?.isFile()===!0;export async function readPicture(e){let t;try{t=await u(e)}catch{throw new i("not-found",`Cannot read ${e}.`,{exit:o.notFound})}const{readPng:r,videoFrame:n}=await import("@allyhub/render");try{return r(t.toString("ascii",1,4)==="PNG"?t:await n(e,0,1))}catch(a){throw new i("bad-picture",`${e} is not a picture ffmpeg reads: ${a.message}`,{exit:o.usage})}}export const isPicture=e=>[".png",".jpg",".jpeg",".webp",".bmp",".tif",".tiff"].includes(s(e).toLowerCase());const F=new Set(["mp4","mov","webm","m4v","qt","mkv","avi"]);export const isVideo=e=>F.has(s(e).slice(1).toLowerCase()),workPath=(e,...t)=>w(e,x,...t);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{dirname as m,join as u,relative as a,sep as g}from"node:path";import{fromBuild as l,pagesOf as w}from"@allyhub/doc-extension/cli";import{itemIdOf as h}from"@allyhub/formats";import{EXIT as P}from"@allyhub/protocol";import{DocPageError as j,docPages as k}from"@allyhub/doc-print";import{CommandError as E}from"../../command.js";import{projectSession as $}from"../
|
|
2
|
+
import{dirname as m,join as u,relative as a,sep as g}from"node:path";import{fromBuild as l,pagesOf as w}from"@allyhub/doc-extension/cli";import{itemIdOf as h}from"@allyhub/formats";import{EXIT as P}from"@allyhub/protocol";import{DocPageError as j,docPages as k}from"@allyhub/doc-print";import{CommandError as E}from"../../command.js";import{projectSession as $}from"../run-context.js";import{looks as v,picturePath as x,save as y,workPath as F}from"./common.js";export async function docPicture(e){const t=a(e.root,m(e.file)),i=e.page===void 0?void 0:w(e.page),s=h(a(e.root,e.file).split(g).join("/")),{stills:p,data:n,sources:c}=await l(e.file,s,o=>$(e.root,o));let r;try{r=await k({root:e.root,doc:{file:a(e.root,e.file),dir:t,path:t,...n===void 0?{}:{data:n},sources:c},pages:i,stills:p,format:v(),onFetch:()=>{e.progress?.("Getting pdf.js, once, to draw a doc's pages…")}})}catch(o){throw o instanceof j?new E("not-found",o.message,{exit:P.notFound,hint:`Pages are 1 to ${String(o.count)}.`}):o}const d=i===void 0?"pages":`page-${e.page?.replace(/[^\d]+/gu,"-")??""}`,f=await y(x(e.cwd,e.out,u(F(e.root,"frames",t),`${d}.png`)),r.picture);return{mode:"frame",source:"doc",doc:t,out:f,pages:r.count,paper:r.paper,drawn:r.drawn}}
|
package/dist/commands/frames.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{relative as _,sep as G}from"node:path";import{z as t}from"zod";import{formatConsole as N,formatProblem as R}from"../text/index.js";import{sizeOf as B}from"@allyhub/build";import{COMPARE_DEFAULTS as H}from"@allyhub/measure";import{CUT_REVIEW_DEFAULTS as U,cutLine as J,dbText as
|
|
3
|
-
`)}}if(e.grid!==void 0)throw
|
|
4
|
-
`)}}const
|
|
5
|
-
`)}}if(e.page!==void 0)throw
|
|
6
|
-
`)}}const h=!
|
|
7
|
-
`)}}),framesCuts
|
|
8
|
-
`)}});const
|
|
9
|
-
`)}}),framesWeb
|
|
10
|
-
`),exit:
|
|
2
|
+
import{relative as _,sep as G}from"node:path";import{z as t}from"zod";import{formatConsole as N,formatProblem as R}from"../text/index.js";import{sizeOf as B}from"@allyhub/build";import{COMPARE_DEFAULTS as H}from"@allyhub/measure";import{CUT_REVIEW_DEFAULTS as U,cutLine as J,dbText as k,silenceText as V}from"@allyhub/video-measure/cut-sheet";import{consoleJson as C}from"@allyhub/project";import{PAGE_CAPTURE_DEFAULTS as F}from"@allyhub/browser";import{itemIdOf as q}from"@allyhub/formats";import{EXIT as D}from"@allyhub/protocol";import{defineCommand as $}from"../command.js";import{dir as E}from"../fields.js";import{parameters as P}from"../parameters.js";import{tellPresence as W}from"../presence.js";import{projectRoot as y}from"../project.js";import{VERSION_FIELDS as T,commandError as z,withVersion as v}from"../version.js";import{isPicture as A,isVideo as M,usage as u}from"./frames/common.js";import{findDoc as X}from"@allyhub/doc-extension/cli";import{findSheet as I}from"@allyhub/sheet-extension/cli";function S(e){return[...e.problems.filter(a=>a.level==="error").map(R),...N(C(e.console))]}const x=e=>({problems:e.problems,...C(e.console)}),O=(e,n)=>y(e,n),K=t.strictObject({...T,item:t.string().optional().describe("The piece (its id, its file without its extension, or its file; default the project's only one), a sheet, a doc, or a video file: a path ending in .mp4, .mov, .webm, .m4v, .qt, .mkv or .avi is a file"),range:t.string().optional().describe("A sheet's: what to draw, a sheet (Summary), a range (Summary!B3:D9, or B3:D9 on the first sheet), columns (A:C) or rows (1:20); default its sheets, from A1"),page:t.string().optional().describe("A doc's: the pages to draw large, counted from 1 (2, 2-4, 1,5); default every page, small, tiled"),at:t.array(t.string()).optional().describe("Moments: seconds (from the start of --part when given) or anchors (@press, @/map a stretch's end, @press+0.2); a video file's are seconds. One is written as the frame itself, several are tiled. Without it, --part's still, or every part's still on one sheet."),part:t.string().optional().describe("The part --at, --from and --to count from; alone, its still"),from:t.number().optional().describe("A stretch of consecutive frames from this second (with --to), instead of --at"),to:t.number().optional().describe("The stretch's last second"),clip:t.string().optional().describe("Write the stretch as a small silent video, .gif, .mp4 or .webm by its extension; with --out, the grid too"),overlay:t.boolean().default(!1).describe("Draw over each tile the face boxes with ids, the person matte's outline, the covered areas and the text boxes (a deck's: each shape's box and name, and the lines nearly in line); places nothing. Alone, over every part's still"),beside:t.string().optional().describe("Another video file (a reference) whose frame at the same time goes on each tile's left"),grid:t.number().int().min(4).optional().describe("A video file at one --at: the frame at its own size with numbered lines every this many pixels"),out:t.string().optional().describe("Where the picture goes, always a WebP whatever the extension; default under .allyhub/work/frames/")});function Q(e){const n=[["--combo",e.combo!==void 0],["--part",e.part!==void 0],["--beside",e.beside!==void 0],["--overlay",e.overlay]].filter(([,a])=>a).map(([a])=>a);if(n.length>0)throw u("bad-option",`${n.join(" and ")} ${n.length===1?"is":"are"} a piece's: a video file has no combos or parts.`)}function Y(e){const n=[["--at",e.at!==void 0],["--part",e.part!==void 0],["--from",e.from!==void 0],["--to",e.to!==void 0],["--clip",e.clip!==void 0],["--overlay",e.overlay],["--beside",e.beside!==void 0],["--range",e.range!==void 0],["--combo",e.combo!==void 0]].filter(([,a])=>a).map(([a])=>a);if(n.length>0)throw u("bad-option",`${n.join(" and ")} ${n.length===1?"is":"are"} not a doc's: a doc has pages (--page), not moments.`)}export const frames=$({name:"frames",summary:"Pictures of a piece over time, drawn as the render draws them: every part's still on a sheet (default), a moment, a stretch tiled or as a clip, overlays; a sheet's cells, or a range of them; a doc's pages as they print, with how many; or any video file's frames",input:K,positional:["item"],output:t.looseObject({mode:t.enum(["sheet","frame","grid","clip"])}),examples:["allyhub frames launch/film","allyhub frames launch/film --at 2.5","allyhub frames launch/film --part hook --from 0 --to 1 --clip hook.gif","allyhub frames launch/film --at 1,2,3 --overlay","allyhub frames reference.mp4 --at 0,1,2","allyhub frames reference.mp4 --at 3 --grid 50","allyhub frames finance/budget --range 'Summary!A1:F20'","allyhub frames launch/plan","allyhub frames launch/plan --page 2-3"]},async(e,n)=>{const a=n.cwd;if(e.item!==void 0&&M(e.item)){Q(e);const{fileFrames:i}=await import("./frames/file.js"),r=await i({cwd:a,root:await O(a,e.dir),file:e.item,at:e.at,from:e.from,to:e.to,clip:e.clip,out:e.out,grid:e.grid}).catch(j=>{throw z(j)}),d=r.video,f=`${r.file} · ${d.duration.toFixed(2)} s · ${String(d.width)}×${String(d.height)} · ${String(d.fps)} fps`,b="clip"in r&&r.clip?`${r.clip.out} (${r.clip.type}, ${String(r.clip.frames)} frames at ${String(r.clip.fps)} fps, no sound)`:void 0;return{value:r,text:[f,..."out"in r?[`${r.out}${"tiles"in r?` (${String(r.tiles.length)} moments in ${String(r.cols)} columns)`:""}`]:[],...b?[b]:[]].join(`
|
|
3
|
+
`)}}if(e.grid!==void 0)throw u("bad-option","--grid draws a video file's frame at its own size: give the file.");const l=await y(a,e.dir);if(e.item!==void 0&&await I(l,a,e.item)!==void 0){const{sheetPicture:i}=await import("./frames/sheet.js"),r=await i({cwd:a,root:l,item:e.item,range:e.range,out:e.out}),d=await I(l,a,e.item);return d!==void 0&&Object.keys(r.at).length>0&&await W(l,{doing:"looking",item:q(_(l,d).split(G).join("/")),place:r.at}),{value:r,text:[r.out,...r.cut].join(`
|
|
4
|
+
`)}}const m=e.item===void 0?void 0:await X(l,a,e.item);if(m!==void 0){Y(e);const{docPicture:i}=await import("./frames/doc.js"),r=await i({cwd:a,root:l,file:m,page:e.page,out:e.out,progress:f=>{n.progress(f)}}),d=r.drawn.length===r.pages?"every page":`page${r.drawn.length===1?"":"s"} ${r.drawn.join(", ")}`;return{value:r,text:[r.out,`${r.doc}: ${String(r.pages)} page${r.pages===1?"":"s"} on ${String(r.paper.width)} × ${String(r.paper.height)} mm paper; ${d} drawn`].join(`
|
|
5
|
+
`)}}if(e.page!==void 0)throw u("bad-option","--page is a doc's: name the doc.");if(e.range!==void 0)throw u("bad-option","--range is a sheet's: name the sheet.");const s=e.at!==void 0||e.part!==void 0||e.from!==void 0||e.to!==void 0;if(!s&&(e.clip!==void 0||e.beside!==void 0))throw u("bad-option","--clip and --beside draw moments: give --at, --part, or --from and --to.");const{pieceMoments:c,stillsSheet:w}=await import("./frames/piece.js");if(!s&&!e.overlay){const{result:i,...r}=await v(e,n,"render",b=>w(b,{cwd:a,root:l,out:e.out})),{unit:d,...f}=i;return{value:{...f,...x(r)},text:[`${i.out} (${i.piece} · ${i.format} · ${String(i.parts.length)} ${i.parts.length===1?d.noun:d.plural})`,...S(r)].join(`
|
|
6
|
+
`)}}const h=!s&&e.overlay,{result:o,...g}=await v(e,n,"render",async i=>{const r=await c(i,{cwd:a,root:l,at:h?i.timeline.parts.map(j=>String(j.still)):e.at,part:e.part,from:e.from,to:e.to,clip:e.clip,out:e.out,overlay:e.overlay,beside:e.beside}),d="tiles"in r?r.tiles[0]:void 0,f=r.mode==="frame"?r.t:r.stretch?.from??d?.t,b=r.mode==="frame"?r.part:d?.part;return f!==void 0&&!h&&await W(l,{doing:"looking",item:i.piece.place,place:{t:f,...b===void 0?{}:{part:b}}}),r}),p=[];if(o.mode==="frame"&&p.push(`${o.out} (${o.piece} · ${o.format} · ${o.part} · ${o.t.toFixed(2)} s)`),o.mode==="grid"){p.push(`${o.out} (${o.piece} · ${String(o.tiles.length)} moments in ${String(o.cols)} columns)`,` ${o.tiles.map(r=>`${r.t.toFixed(o.stretch?3:2)} ${r.part}`).join(" · ")}`);const i=[...new Set(o.tiles.flatMap(r=>r.overlay?.missing??[]))];i.length>0&&p.push(` Not measured: ${i.join(", ")}.`)}return o.stretch&&p.push(` Stretch ${o.stretch.from.toFixed(3)}–${o.stretch.to.toFixed(3)} s, one frame in ${String(o.stretch.every)}: ${String(o.stretch.frames)} frames.`),"clip"in o&&o.clip&&p.push(`${o.clip.out} (${o.clip.type}, ${String(o.clip.frames)} frames at ${String(o.clip.fps)} fps, no sound)`),{value:{...o,...x(g)},text:[...p,...S(g)].join(`
|
|
7
|
+
`)}}),framesCuts=$({name:"frames cuts",summary:"A review sheet per cut of a video (a cut take's jumps, part joins, a scenery camera's cuts): frames around it, waveform and level, the words each side, the sound at it",input:t.strictObject({...T,part:t.string().optional().describe("Only this part's cuts and its joins"),out:t.string().optional().describe("The folder the sheets go in; default .allyhub/work/cuts/"),params:P({span:t.number().positive().max(10).default(U.span).describe("Seconds shown on each side of a cut")})}),positional:["item"],output:t.looseObject({out:t.string(),cuts:t.array(t.looseObject({sheet:t.string()}))}),examples:["allyhub frames cuts launch/film","allyhub frames cuts launch/film --part hook"]},async(e,n)=>{const a=n.cwd,l=await y(a,e.dir),{cutSheets:m}=await import("./frames/cuts.js"),{result:s,...c}=await v(e,n,"render",o=>m(o,{cwd:a,root:l,part:e.part,out:e.out,review:{span:e.params.span}})),w=s.part===void 0?`${String(s.cuts.length)} cut${s.cuts.length===1?"":"s"}`:`${String(s.cuts.length)} of ${String(s.total)} cuts (part ${s.part} and its joins)`,h=[`${s.piece} · ${s.format} · ${w}; silence is sound under ${String(s.threshold)} dBFS`];for(const o of s.cuts){const g=o.sound?`level ${k(o.sound.levelDb)} / around ${k(o.sound.aroundDb)} dBFS, peak ${k(o.sound.peakDb)}, step ${o.sound.jumpDb<0?"−":"+"}${Math.abs(o.sound.jumpDb).toFixed(1)} dB`:"no sound";h.push(`${String(o.index).padStart(3)} ${o.t.toFixed(3).padStart(7)} s ${o.kind.padEnd(6)} ${J(o)}`,` silence at the cut: ${V(o.silence)} · ${g}`,` “${o.said.before}” | “${o.said.after}”${o.across?` · across the cut: “${o.across}”`:""}`,` ${o.sheet}`)}return{value:{...s,...x(c)},text:[...h,...S(c)].join(`
|
|
8
|
+
`)}});const L=H;export const framesCompare=$({name:"frames compare",summary:"How a candidate picture differs from a reference, as numbers (ΔE, channels, SSIM, levels, grain, edges, regions) with a heatmap and a side-by-side: a piece's moment, a picture file or a video file's frame",input:t.strictObject({reference:t.string().describe("The reference picture (PNG, WebP, JPEG…)"),candidate:t.string().optional().describe("A piece (its id, its file without its extension, or its file; default the project's only one) at --at or --part's still; or a file by its extension: a picture (.png, .jpg, .webp…), or a video file's frame at --at (.mp4, .mov, .webm…)"),combo:T.combo,dir:E,at:t.string().optional().describe("The moment: seconds (from the start of --part when given) or an anchor of the piece; a video file's are seconds (default 0)"),part:t.string().optional().describe("The piece's part --at counts from; alone, its still"),refCrop:t.string().optional().describe("Cut the reference to x,y,width,height, or to an element of the elements.json beside it (frames web writes one)"),crop:t.string().optional().describe("Cut the candidate to x,y,width,height before any resize"),encode:t.string().optional().describe("Draw the candidate through this encode first, as a platform serves it: codec:kbps, h264 or hevc (hevc:618)"),out:t.string().optional().describe("Where its files go, a path without extension; default under .allyhub/work/compare/"),params:P({resize:t.enum(["stretch","width","none"]).default(L.resize).describe("When sizes differ: stretch the candidate to the reference, scale it to its width, or compare the common area"),shift:t.number().int().min(0).max(32).default(L.shift).describe("Search the best offset within this many pixels each way")})}),positional:["reference","candidate"],output:t.looseObject({reference:t.string(),files:t.looseObject({side:t.string(),heatmap:t.string()})}),examples:["allyhub frames compare reference.png launch/film --at 2.5 --encode hevc:618","allyhub frames compare reference.png shot.webp --ref-crop cta","allyhub frames compare reference.png theirs.mp4 --at 3"]},async(e,n)=>{const a=n.cwd,l=e.params;if(!A(e.reference))throw u("bad-reference",`${e.reference} is not a picture: the reference comes first, a picture file (PNG, WebP, JPEG…), then the piece or file to compare with it.`,`For example: allyhub frames compare ${e.candidate!==void 0&&A(e.candidate)?e.candidate:"reference.png"} ${e.reference}`);const m=e.candidate!==void 0&&(A(e.candidate)||M(e.candidate))?e.candidate:void 0,{compareText:s,comparePictures:c}=await import("./frames/compare.js"),w=p=>({cwd:a,root:p,reference:e.reference,file:m,at:e.at===void 0?void 0:[e.at],part:e.part,refCrop:e.refCrop,crop:e.crop,encode:e.encode,out:e.out,options:{shift:l.shift,resize:l.resize}});if(m!==void 0){if(e.combo!==void 0||e.part!==void 0)throw u("bad-option","--combo and --part are a piece's: the candidate is a file.");const p=await c(w(await O(a,e.dir)),void 0).catch(i=>{throw z(i)});return{value:p,text:s(p)}}const h=await y(a,e.dir),{result:o,...g}=await v({...e,item:e.candidate},n,"render",p=>c(w(h),p));return{value:{...o,...x(g)},text:[s(o),...S(g)].join(`
|
|
9
|
+
`)}}),framesWeb=$({name:"frames web",summary:"A web page's screenshot with its named elements' boxes in the image's pixels, for a screen demo",input:t.strictObject({url:t.string().describe("The page: an address, or an HTML file on this computer"),el:t.array(t.string()).optional().describe("An element to locate, name=selector (CSS, or text=<words>); [data-el] elements are found too"),click:t.array(t.string()).optional().describe("Selectors clicked in order before the shot (close a banner, open a dialog)"),full:t.boolean().default(!1).describe("The whole page, not one viewport"),out:t.string().optional().describe("Where the picture goes (a WebP), its boxes in <out>.elements.json beside it; default under .allyhub/work/pages/"),dir:E,size:t.string().default(`${String(F.width)}x${String(F.height)}`).describe("The viewport, WIDTHxHEIGHT in CSS pixels"),scale:t.number().min(1).max(4).default(F.scale).describe("Image pixels per CSS pixel; 2 draws a high-density screen, sharp when a camera goes in"),wait:t.number().int().min(0).optional().describe("Milliseconds to wait after loading and clicking")}),positional:["url"],output:t.looseObject({out:t.string(),elementsFile:t.string()}),examples:["allyhub frames web https://example.com --el cta=text=Sign\\ up --scale 2 --out assets/media/home","allyhub frames web page.html --click '#accept' --full"]},async(e,n)=>{const a=n.cwd,[l,m]=B(e.size),{pageShot:s}=await import("./frames/page.js"),c=await s({cwd:a,root:await O(a,e.dir),url:e.url,out:e.out,el:e.el,click:e.click,width:l,height:m,scale:e.scale,full:e.full,wait:e.wait});return{value:c,text:[`${c.out}: ${String(c.width)}×${String(c.height)}${c.scale===1?"":` (${String(c.scale)} image pixels per CSS pixel)`}, ${String(Object.keys(c.elements).length)} elements (${Object.keys(c.elements).join(", ")||"none"}) in ${c.elementsFile}`,...c.missing.length>0?[`Not found: ${c.missing.join(", ")} (the selector is wrong, or something must be opened with --click first).`]:[]].join(`
|
|
10
|
+
`),exit:c.missing.length>0?D.failed:D.ok}}),FRAMES_COMMANDS=[frames,framesCuts,framesCompare,framesWeb];
|
package/dist/commands/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
2
|
+
import{CLOUD_SOURCE as l}from"./cloud-tools.js";import{EXTENSIONS_SOURCE as d,builtInCommands as y}from"./contributed.js";import{inspectListingViews as u}from"./inspect/index.js";import{VIEWS_SOURCE as f,builtInViews as S}from"./inspect/views.js";import{extensions as C}from"./found-extensions.js";const a=t=>async()=>((await C()).builtInExtensions(),t());export const COMMAND_MODULES=[a(async()=>[(await import("./check.js")).check]),a(async()=>[(await import("./inspect/facts.js")).inspect]),a(async()=>[(await import("./inspect/layout.js")).inspectLayout]),a(async()=>[(await import("./inspect/combos.js")).inspectCombos]),a(async()=>[(await import("./inspect/uses.js")).inspectUses]),a(async()=>[(await import("./render.js")).render]),a(async()=>(await import("./frames.js")).FRAMES_COMMANDS),a(async()=>[(await import("./dev.js")).dev]),a(async()=>{const{add:t,addSearch:i}=await import("./add.js");return[t,i]}),async()=>{const{skills:t,skillsShow:i}=await import("./skills.js");return[t,i]},a(async()=>[(await import("./align.js")).align]),async()=>{const{authLogin:t,authStatus:i}=await import("./auth.js");return[t,i]},async()=>{const{orgsList:t,orgsUse:i}=await import("./orgs.js");return[t,i]},async()=>[(await import("./cloud-tools.js")).upload],async()=>(await import("./mail.js")).MAIL_COMMANDS,a(async()=>[(await import("./doctor.js")).doctor]),a(async()=>[(await import("./extensions.js")).doctorExtensions])],COMMAND_SOURCES=[l,d,f];let e;export function allCommandsFrom(){return e??=(async()=>{const t=(await Promise.all(COMMAND_MODULES.map(async(n,p)=>(await n()).map(w=>({command:w,from:p}))))).flat(),[i,m]=await Promise.all([S(),y()]),r=t.findIndex(n=>n.command.spec.name==="inspect"),o=t[r],s=t.filter(n=>n.command.spec.name.startsWith("inspect "));if(o===void 0||s.length===0)throw new Error("The CLI's own commands have no inspect.");const c=t.indexOf(s[s.length-1]??o)+1;return[...t.slice(0,r),{...o,command:u(o.command,[...s.map(n=>n.command),...i])},...t.slice(r+1,c),...i.map(n=>({command:n,from:"view"})),...t.slice(c),...m.map(n=>({command:n,from:"contributed"}))]})(),e}export async function allCommands(){return(await allCommandsFrom()).map(t=>t.command)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdirSync as
|
|
2
|
+
import{mkdirSync as a,writeFileSync as u}from"node:fs";import{dirname as d,join as x}from"node:path";import{z as s}from"zod";import{FACTS_HEAD as $,MOMENTS as g,STRETCH as h,allFindings as b}from"@allyhub/build";import{consoleJson as m}from"@allyhub/project";import{EXIT as w}from"@allyhub/protocol";import{WORK_DIR as E}from"@allyhub/formats";import{countFacts as k}from"@allyhub/diagnostics";import{CommandError as y}from"../../command.js";import{builtInExtensions as F,extensionsAt as c,factKindsOf as f,factOwner as T}from"../extensions.js";import{formatConsole as j,formatFacts as l,formatProblem as O}from"../../text/index.js";export const plural=(n,e)=>`${String(n)} ${e}${n===1?"":"s"}`,sec=n=>n.toFixed(2),boxText=n=>`[${n.join(",")}]`,HEAD=$;export{g as MOMENTS,h as STRETCH};export const kind=s.array(s.string()).optional().describe(`Only facts of these kinds: ${f(F()).map(n=>n.kind).join(", ")}`),all=b;export function kindsOf(n,e){if(n===void 0)return;const t=f(c(e)).map(o=>o.kind);return n.map(o=>{if(!t.includes(o))throw new y("bad-kind",`There is no kind of fact ${o}.`,{exit:w.usage,hint:`Kinds: ${t.join(", ")}.`});return o})}export function pageLines(n){const e=n.problems.filter(t=>t.level==="error");return[...e.length>0?["Must fix, to measure every fact:",...e.map(O)]:[],...j(m(n.console))]}export const pageJson=n=>({problems:n.problems.filter(e=>e.level==="error"),...m(n.console)});export function factLines(n,e,t){const o=l(n,{all:e});if(e||t===void 0)return o;const r=l(n,{all:!0});return o.some(i=>/^ {4}… \d+ more \(/u.test(i))?(a(d(t),{recursive:!0}),u(t,`${r.join(`
|
|
3
3
|
`)}
|
|
4
|
-
`),[...o,`Every finding, a line each: ${
|
|
5
|
-
`)}}export function unseenKinds(e,t
|
|
4
|
+
`),[...o,`Every finding, a line each: ${t}`]):o}export const factsFile=(n,e)=>x(n,E,"inspect",`${e.replace(/[^\w.-]+/gu,"-")}.txt`);export function factsResult(n,e,t,o=[]){return{value:{facts:n,counts:k(n),total:t.total??n.length,...t.extra,...pageJson(e)},text:[`${plural(n.length,"fact")} measured now: ${HEAD}`,...factLines(n,t.all,t.save),...o,...pageLines(e)].join(`
|
|
5
|
+
`)}}export function unseenKinds(n,e,t){const o=c(t);return(n??[]).flatMap(r=>{if(e.some(p=>p.kind===r))return[];const i=T(o,r);return i?[{kind:r,...i}]:[]})}export const unseenLines=n=>n.map(e=>`No ${e.kind} facts here. It is ${e.extension}'s: ${e.about}`);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
|
|
2
|
+
export function inspectListingViews(s,a){const n=Math.max(...a.map(e=>e.spec.name.length))-8;return{...s,about:{lines:["Views, each a measurement now (allyhub help inspect <view> says what one takes):",...a.map(e=>` ${e.spec.name.slice(8).padEnd(n)} ${e.spec.summary}`)],value:{views:a.map(e=>({name:e.spec.name.slice(8),summary:e.spec.summary}))}}}}
|
|
@@ -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{measuredFacts as k}from"@allyhub/video-measure";import{DECK_FACT_DEFAULTS as
|
|
2
|
+
import{z as r}from"zod";import{measuredFacts as k}from"@allyhub/video-measure";import{DECK_FACT_DEFAULTS as u,deckFacts as g}from"@allyhub/slides-core";import{momentsIn as w,stretchOf as x}from"@allyhub/video-measure";import{EXIT as v}from"@allyhub/protocol";import{ffmpegOf as $}from"@allyhub/render";import{filterFacts as O}from"@allyhub/diagnostics";import{CommandError as E,defineCommand as F}from"../../command.js";import{textOnScreen as S}from"../../text/index.js";import{VERSION_FIELDS as A,known as h,withVersion as T}from"../../version.js";import{MOMENTS as N,STRETCH as C,all as j,boxText as I,factsFile as L,factsResult as D,kind as M,kindsOf as R,sec as _}from"./common.js";function z(e,s){if(e.at!==void 0&&e.every!==void 0)throw new E("bad-option","--at and --every do not go together.",{exit:v.usage});const n=e.at?.map(a=>{const m=Number(a.replace(/s$/u,""));return a.trim().startsWith("@")||!Number.isFinite(m)?a:m});return h(()=>w(s.timeline,{...n===void 0?{}:{at:n},...e.every===void 0?{}:{every:e.every},part:e.part,from:e.from,to:e.to},s.target))}export const inspectLayout=F({name:"inspect layout",summary:"One version's layout measured now, at its measured moments or at --at / --every; --texts lists every text block with its fonts",input:r.strictObject({...A,...N,...C,texts:r.boolean().default(!1).describe("List every text block at every moment, with its box and fonts"),within:r.number().positive().optional().describe(`A deck: lines up to this many points apart and not in line are near-alignment (default ${String(u.within)})`),drift:r.number().nonnegative().optional().describe(`A deck: places further apart than this, in points, are placement-drift (default ${String(u.drift)})`),level:r.array(r.enum(["master","layout","slide"])).optional().describe("A deck: measure only shapes of these levels (default every one): slide leaves out what a master or a layout draws on every slide"),except:r.array(r.string()).optional().describe("A deck: leave shapes of these names out of every fact, * for any letters (tick-*)"),room:r.string().regex(/^[\d.]+,[\d.]+$/u).optional().describe("A deck's read-size: a room as its screen's width and its farthest seat, in metres (3,12); the room is measured when given"),kind:M,all:j()}),positional:["item"],output:r.looseObject({}),examples:["allyhub inspect layout launch/film --at 1.5,@press --texts","allyhub inspect layout launch/film --every 0.5 --part hook","allyhub inspect layout launch/deck --kind near-alignment --within 10","allyhub inspect layout launch/deck --level slide --except 'tick-*'"]},async(e,s)=>{const n=await T(e,s,"render",async t=>{const l=t.timeline,{part:c}=h(()=>x(l,e)),o=await t.version.measure(z(e,t)),p=[...t.version.summary?.facts??[],...o.deck?g(o.deck,{width:o.width,height:o.height},{piece:t.target.piece,output:t.target.output,combo:t.target.combo,format:t.target.format},{...e.within===void 0?{}:{within:e.within},...e.drift===void 0?{}:{drift:e.drift},...e.level===void 0?{}:{levels:e.level},...e.except===void 0?{}:{except:e.except},...e.room===void 0?{}:{room:{screen:Number(e.room.split(",")[0]),distance:Number(e.room.split(",")[1])}}}):await k(o,l,t.target,{root:t.prepared.root,media:t.prepared.media,ffmpeg:await $()})];return{save:L(t.prepared.root,`${t.target.piece}.layout${e.kind?`.${e.kind.join("+")}`:""}`),facts:O(p,{kinds:R(e.kind,t.prepared.root),part:e.part}),total:p.length,moments:e.texts?o.moments.filter(i=>!c||i.part===c.key).map(i=>({t:i.t,part:i.part,...i.face?{face:i.face}:{},texts:o.deck?i.texts.map(f=>({...f,box:f.box.map(b=>Math.round(b/(o.deck?.pxPerPt??1)*2)/2)})):i.texts})):void 0}}),{facts:a,total:m,moments:d,save:y}=n.result;return D(a,n,{all:e.all,total:m,save:y,...d?{extra:{moments:d}}:{}},(d??[]).map(t=>` ${_(t.t)} ${t.part}${t.face?` face ${I(t.face)}`:""}: ${t.texts.map(S).join("; ")||"(no text)"}`))});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{pathToFileURL as
|
|
2
|
+
import{pathToFileURL as d}from"node:url";import{z as w}from"zod";import{defineCommand as x}from"../../command.js";import{extensions as r,projectHost as u}from"../found-extensions.js";const m=new Map;function h(t){let n=m.get(t.module);return n||(n=import(d(t.module).href).then(e=>{if(typeof e.default!="object"||e.default===null)throw new Error(`${t.extension}'s inspect views (${t.module}) have no default export.`);return e.default}),m.set(t.module,n)),n}async function s(t){const e=(await h(t))[t.name];if(!e)throw new Error(`${t.extension} contributes the inspect view "${t.name}" but its module (${t.module}) has none of that name.`);return x({name:`inspect ${t.name}`,summary:t.summary,input:e.input,...e.positional?{positional:[...e.positional]}:{},output:w.looseObject({}),examples:[...e.examples]},async(i,a)=>{const{viewContext:f}=await import("../run-context.js"),{commandError:p}=await import("../../version.js");try{const o=await e.run(i,f(a));return{value:o.value,text:o.text,...o.exit===void 0?{}:{exit:o.exit}}}catch(o){throw p(o)}})}export async function viewCommands(t){return Promise.all(t.inspectViews().map(s))}let l;export function builtInViews(){return l??=r().then(t=>viewCommands(t.builtInExtensions())),l}const c=async()=>(await r()).builtInExtensions().inspectViews();export async function builtInView(t){const n=(await c()).find(e=>`inspect ${e.name}`===t);return n===void 0?void 0:s(n)}export const VIEWS_SOURCE={works:!1,under:"inspect",entries:[],async nouns(t){const n=await u(t);if(!n)return[];const e=new Set((await c()).map(i=>i.name));return n.inspectViews().filter(i=>!e.has(i.name)).map(i=>({name:`inspect ${i.name}`,summary:`${i.summary} (${i.extension})`}))},async resolve(t,n){if(t[0]!=="inspect"||t[1]===void 0)return;const i=(await u(n))?.inspectViews().find(a=>a.name===t[1]);if(i)return{command:await s(i),rest:t.slice(2),list:!1}}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{readFile as p}from"node:fs/promises";import{describeCommand as f}from"@allyhub/protocol/cli";import{CLI_VERSION as t}from"../cli-version.js";import{commandHelp as d}from"../help.js";import{builtInCommand as w,builtInSpecs as l}from"./contributed.js";import{COMMAND_MODULES as y,allCommands as b,allCommandsFrom as h}from"./index.js";import{builtInView as x}from"./inspect/views.js";export const LIST_NAME="commands.json";const o=new URL(`../${LIST_NAME}`,import.meta.url),I=(n,e)=>e.filter(a=>a.name.startsWith(`${n} `));export function commandEntry(n,e){const a=f(n.spec);return{name:n.spec.name,summary:n.spec.summary,spec:a,described:{...a,...n.about?.value},help:d(n.spec,n.about?.lines,I(n.spec.name,e)),command:()=>Promise.resolve(n)}}export function entriesOf(n){const e=n.map(a=>a.spec);return n.map(a=>commandEntry(a,e))}async function m(){return(await l()).map(n=>({name:n.name,summary:n.summary,...n.work===void 0?{}:{work:n.work}}))}export async function commandList(){const n=await h(),e=n.map(a=>a.command.spec);return{version:t,joined:await m(),commands:n.map(({command:a,from:c})=>{const r=commandEntry(a,e);return{name:r.name,summary:r.summary,spec:r.spec,...a.about?.value===void 0?{}:{about:a.about.value},help:r.help,from:c}})}}async function L(n){const e=typeof n.from=="number"?(await y[n.from]?.())?.find(a=>a.spec.name===n.name):n.from==="view"?await x(n.name):await w(n.name);if(e===void 0)throw new Error(`The CLI's list of commands (${o.pathname}) names ${n.name}, which its code has not: build the CLI again.`);return e}let i;function s(){return i??=(async()=>{const n=await p(o,"utf8").catch(()=>{});if(n===void 0)return;const e=JSON.parse(n);return e.version===t&&e.commands!==void 0?{commands:e.commands,joined:e.joined??[]}:void 0})(),i}export async function joinedCommands(){return(await s())?.joined??await m()}let u;export function commandEntries(){return u??=(async()=>{const n=(await s())?.commands;return n===void 0?entriesOf(await b()):n.map(e=>{let a;return{name:e.name,summary:e.summary,spec:e.spec,described:{...e.spec,...e.about},help:e.help,command:()=>a??=L(e)}})})(),u}
|
package/dist/commands/mail.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as b}from"node:fs/promises";import{basename as k,resolve as R}from"node:path";import{setTimeout as D}from"node:timers/promises";import{lookup as L}from"mrmime";import{z as t}from"zod";import{CloudError as F,createMailAlias as N,mailbox as C,rawMail as E,readMail as y,replyMail as H,searchMail as w,sendMail as z}from"@allyhub/cloud";import{EXIT as x
|
|
2
|
+
import{readFile as b}from"node:fs/promises";import{basename as k,resolve as R}from"node:path";import{setTimeout as D}from"node:timers/promises";import{lookup as L}from"mrmime";import{z as t}from"zod";import{CloudError as F,createMailAlias as N,mailbox as C,rawMail as E,readMail as y,replyMail as H,searchMail as w,sendMail as z}from"@allyhub/cloud";import{EXIT as x}from"@allyhub/protocol/cli";import{MAIL_LIMITS as f,MAIL_DIRECTIONS as _,MAIL_ORDERS as W}from"@allyhub/protocol/mail";import{CommandError as j,defineCommand as r}from"../command.js";import{cloudOf as l,cloudWork as d}from"./cloud.js";const Z=t.looseObject({address:t.string(),name:t.string()}),u=t.looseObject({id:t.string(),receivedAt:t.string(),to:t.string(),from:Z.nullable(),subject:t.string(),threadId:t.string()}),$=u.extend({text:t.string(),links:t.array(t.looseObject({href:t.string(),text:t.string()}))}),B=e=>e instanceof F&&(e.code==="network"||e.status!==void 0&&e.status>=500),O={to:t.string().optional().describe("Sent to this address (or its part before @), with or without its +tag"),from:t.string().optional().describe("A part of the sender's address or name"),subject:t.string().optional().describe("A part of the subject"),text:t.string().optional().describe("A part of the text"),project:t.string().optional().describe("Sent to an address labelled with this project"),thread:t.string().optional().describe("In this thread (a thread id)")},S=e=>e.from===null?"(no sender)":e.from.name===""?e.from.address:`${e.from.name} <${e.from.address}>`,v=e=>e.direction==="out"&&e.recipients.length>0?e.recipients.map(s=>s.address).join(", "):e.to,P=e=>`${e.id} ${e.receivedAt} ${S(e)}
|
|
3
3
|
to ${v(e)}: ${e.subject===""?"(no subject)":e.subject}`;function p(e){const s=[`From: ${S(e)}`,`To: ${v(e)}`,`Subject: ${e.subject}`,`Received: ${e.receivedAt}`,`Id: ${e.id} Thread: ${e.threadId}`,"",e.text===""?"(no text)":e.text];return e.textCut&&s.push("","(The text is cut; --raw prints all of it.)"),e.links.length>0&&s.push("","Links:",...e.links.map(a=>` ${a.href}${a.text===""?"":` (${a.text})`}`)),e.attachments.length>0&&s.push("","Attachments:",...e.attachments.map(a=>` ${a.name??"(no name)"} ${a.type} ${String(a.size)} bytes`)),s.join(`
|
|
4
4
|
`)}export const mailAddresses=r({name:"mail addresses",summary:"Your mailbox's addresses in this organization, which your agents use as their own (made the first time); mail to any of them, with any +tag, comes to the same mailbox. The mailbox comes with a plan for the organization",input:t.strictObject({}),output:t.looseObject({domain:t.string(),displayName:t.string(),addresses:t.array(t.looseObject({address:t.string(),kind:t.string(),project:t.string().nullable()}))}),examples:["allyhub mail addresses"]},(e,s)=>d(async()=>{const a=await C(l(s));return{value:a,text:[...a.addresses.map(i=>`${i.address} ${i.kind}${i.project===null?"":` project ${i.project}`}`),`Sent as "${a.displayName}"; mail is kept ${String(a.retentionDays)} days.`].join(`
|
|
5
5
|
`)}})),mailAlias=r({name:"mail alias",summary:"Add an address of its own to your mailbox (<name>.<team>@<domain>), for a site that refuses +tags or wants a different address for each account",input:t.strictObject({name:t.string().describe("Its name: 2 to 40 lowercase letters, digits and hyphens"),project:t.string().optional().describe("A project to label it with, to search its mail by")}),positional:["name"],output:t.looseObject({address:t.string()}),examples:["allyhub mail alias launch-test2 --project acme-launch"]},(e,s)=>d(async()=>{const a=await N(l(s),{name:e.name,...e.project===void 0?{}:{project:e.project}});return{value:a,text:a.address}})),mailSearch=r({name:"mail search",summary:"List the mail your mailbox received and sent, newest first; each option narrows it",input:t.strictObject({...O,direction:t.enum(_).optional().describe("in (received) or out (sent); both by default"),since:t.string().optional().describe("Received after this moment (ISO 8601, as 2026-11-05T10:00:00Z)"),order:t.enum(W).default("newest").describe("newest or oldest first"),limit:t.number().int().min(1).max(f.listed).default(20).describe(`How many to list, at most ${String(f.listed)}`)}),output:t.looseObject({messages:t.array(u)}),examples:["allyhub mail search --from shop.example --limit 5","allyhub mail search --to ada.acme+staging --since 2026-11-05T10:00:00Z"]},(e,s)=>d(async()=>{const a=await w(l(s),e);return{value:{messages:a},text:a.length===0?"No mail matches.":a.map(P).join(`
|
package/dist/commands/render.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as x,resolve as w}from"node:path";import{z as e}from"zod";import{formatConsole as v,formatProblem as k}from"../text/index.js";import{exportProject as P}from"@allyhub/export";import{GIF_ENCODE as m,SHARE_ENCODE as n}from"@allyhub/render";import{consoleJson as p}from"@allyhub/project";import{OUT_DIR as $}from"@allyhub/formats";import{EXIT as c}from"@allyhub/protocol";import{madeNotes as A}from"@allyhub/build";import{defineCommand as j}from"../command.js";import{parameters as O}from"../parameters.js";import{projectRoot as S}from"../project.js";import{combosOf as F,commandError as D}from"../version.js";import{dir as E,indexing as T}from"../fields.js";import{extensionsAt as h,kindsAt as N}from"./extensions.js";const z={codec:e.enum(["h264","h265"]).default("h264").describe("The mp4's video codec; h265 is smaller"),crf:e.number().int().min(0).max(63).optional().describe(`Quality, lower is better: default ${String(n.crf)} for an mp4, ready to share, 30 for a webm`),maxBitrate:e.number().int().min(0).max(5e5).optional().describe(`An mp4's most video bitrate, kbit/s, 0 for none: default ${String(n.maxKbps)} at 1080p ${String(n.fps)} fps, scaled by the frame's pixels and the frames a second (16000 at 1080p 60, 32000 at 4K 30), so the file is ready to share`),audioBitrate:e.number().int().min(32).max(512).optional().describe("The sound's bitrate, kbit/s: default 192 (AAC in an mp4), 160 (Opus in a webm); a mov keeps PCM"),gifWidth:e.number().int().min(0).max(16384).optional().describe(`A gif's width in pixels, its height in proportion, up to the video's: default ${String(m.width)}; 0 for the video's own`),gifFps:e.number().min(0).max(120).optional().describe(`A gif's frames a second, up to the video's: default ${String(m.fps)}; 0 for the video's own`),steps:e.boolean().default(!1).describe("A deck's pdf, png and pptx: a page, a file or a slide per step of each page (default each page's last step)"),values:e.enum(["data","shown"]).optional().describe("A sheet's csv, json and md: each value as data (a date 2026-01-15, a time 09:30, a duration 36:00, a number to 15 digits; csv's and json's default) or as its format shows it (15 Jan 2026, $1,200.00; md's default)"),bom:e.boolean().default(!0).describe("A sheet's csv starts with a UTF-8 byte-order mark, by which Excel reads its letters right (é, €, 中文); false for a tool that reads plain UTF-8"),quality:e.number().int().min(0).max(100).optional().describe("An image's jpeg and webp, 0–100: default 90 for a jpeg, a webp lossless"),scale:e.number().min(.25).max(4).optional().describe("An image's png, jpeg, webp and zip: each board's picture this many times its size, its layout kept (type and shapes drawn sharp, a picture as many pixels as its file has); default 1"),width:e.number().int().min(1).optional().describe("An image's pictures each this many pixels wide, the height in proportion: a scale for each board"),height:e.number().int().min(1).optional().describe("An image's pictures each this many pixels high, the width in proportion: a scale for each board"),maxKb:e.number().min(1).optional().describe("An image's jpeg and webp: each board's file at most this many KB, at the best quality under it (said); a png is made when it fits under it"),psd:e.enum(["psd","psb"]).default("psd").describe("An image's psd: psd, or psb (Photoshop's large document format); a board is at most 16384 pixels a side, which a psd holds"),pptx:e.enum(["native","picture"]).default("native").describe("A deck's pptx: native, PowerPoint's own model, editable there (the deck's masters, layouts, placeholders, shapes, text, pictures, videos and notes, a component as its picture); or picture, each slide a picture of the page")},C=(s,i)=>`${String(s)} ${i}${s===1?"":"s"}`;export const render=j({name:"render",summary:"The files: a video, its frames, subtitles, cover and mastered mix; a batch's table of ads; a deck's PDF, PPTX and PNGs; a doc's PDF and Markdown; a sheet's Excel workbook with live formulas, PDF, PNG, CSV, Markdown and JSON; an image's pictures, PDF and layered PSDs; a 3D model's GLB",input:e.strictObject({items:e.array(e.string()).optional().describe("Only these items: each an id (its file without its extension) or its file, or a folder of items; default every one"),combo:e.array(e.string()).optional().describe("Only the combos matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03)"),type:e.array(e.string()).optional().describe("File types: mp4, mov, webm, gif, png, srt, vtt (cues cut as the piece's captions layer cuts them, else by default), cover, wav (the mix, mastered as the render masters it: 48 kHz, 16 bits, the film's length); csv for a piece with slots, its table of ads (<piece>.ads.csv: a row per ad with its combo, picks, length, file, name and generated media); a doc's pdf, docx, png; a sheet's xlsx (every sheet, formulas live with their values cached), pdf, png, csv (a file a sheet); an image's png, jpeg, webp (a file a board), pdf, zip and psd (a layered Photoshop file a board: each layer of its kind, its pixels drawn by Chrome); a deck's pdf, png, pptx; a LinkedIn or X post's linkedin-post or x-post (its API request, its media beside), txt (its text as written, its media and their alt text beside), png; an article's linkedin-article or x-article, png; a 3D model's glb. Default mp4 for a video, pdf for a deck and a doc, xlsx for a sheet, png for an image, glb for a model; each item makes the types it has"),out:e.string().optional().describe("The folder the files go in; default .allyhub/out"),name:e.string().optional().describe("Name a video's or deck's files <name>.<ext> in its folder of the output, with what tells its versions apart before the extension when there are several (<name>.zh-cn.mp4, <name>.c03.mp4); default <output>.<combo>.<ext>"),params:O(z),dir:E}),positional:["items"],output:e.looseObject({out:e.string(),files:e.array(e.looseObject({name:e.string(),path:e.string(),type:e.string()})),failed:e.array(e.looseObject({name:e.string(),code:e.string()}))}),examples:["allyhub render","allyhub render launch/film --type mp4,srt","allyhub render launch/film --type wav","allyhub render ads/tidyform --type csv","allyhub render launch/plan --type pdf,md","allyhub render finance/budget --type xlsx,pdf","allyhub render finance/budget --type csv --param bom=false","allyhub render launch/deck --type pptx --param pptx=picture","allyhub render launch/poster --type psd","allyhub render launch/poster --type jpeg --param scale=2 --param max-kb=2000","allyhub render --combo lang=zh-cn --param crf=16","allyhub render launch/film --name launch-film --param max-bitrate=0"]},async(s,i)=>{const o=await S(i.cwd,s.dir),f=w(i.cwd,s.out??x(o,$)),u=Object.fromEntries(Object.entries(s.params).filter(([,a])=>a!==void 0));let d=0,t;try{t=await P({root:o,kinds:N(o),out:f,...s.items===void 0?{}:{items:s.items},combos:F(s),...s.type===void 0?{}:{types:s.type},...s.name===void 0?{}:{name:s.name},params:u,index:T(i.env),analyses:h(o).mediaAnalyses(),env:i.env,processors:h(o).exportProcessors(),log:a=>{i.progress(a)},onProgress:a=>{const r=Math.floor(a*10);r<=d||r>=10||(d=r,i.progress(`${String(r*10)}%`))},signal:i.signal})}catch(a){throw D(a)}const b=a=>a?` (${a.integrated.toFixed(1)} LUFS, true peak ${a.truePeak===void 0?"–":a.truePeak.toFixed(1)} dBTP)`:"",g=t.problems.filter(a=>a.level==="error"),l=t.files.flatMap(a=>a.files.length>1?a.files.map(r=>` ${r}`):[` ${a.path}${b(a.loudness)}`]),y=[`${C(l.length,"file")} in ${t.out}:`,...l,...t.failed.length>0?["Not made:",...t.failed.map(a=>` ${a.name}: ${a.message}${a.hint?` ${a.hint}`:""}`)]:[],...t.unindexed.map(a=>`Not indexed, drawn the fallback way: ${a.file} (${a.error})`),...A(t.files),...g.map(k),...v(p(t.console))];return{value:{out:t.out,files:t.files.map(a=>({...a})),failed:t.failed.map(a=>({...a})),problems:t.problems,...t.unindexed.length>0?{unindexed:t.unindexed}:{},...p(t.console)},text:y.join(`
|
|
2
|
+
import{join as x,resolve as w}from"node:path";import{z as e}from"zod";import{formatConsole as v,formatProblem as k}from"../text/index.js";import{exportProject as P}from"@allyhub/export";import{GIF_ENCODE as m,SHARE_ENCODE as n}from"@allyhub/render/encode";import{consoleJson as p}from"@allyhub/project";import{OUT_DIR as $}from"@allyhub/formats";import{EXIT as c}from"@allyhub/protocol";import{madeNotes as A}from"@allyhub/build";import{defineCommand as j}from"../command.js";import{parameters as O}from"../parameters.js";import{projectRoot as S}from"../project.js";import{combosOf as F,commandError as D}from"../version.js";import{dir as E,indexing as T}from"../fields.js";import{extensionsAt as h,kindsAt as N}from"./extensions.js";const z={codec:e.enum(["h264","h265"]).default("h264").describe("The mp4's video codec; h265 is smaller"),crf:e.number().int().min(0).max(63).optional().describe(`Quality, lower is better: default ${String(n.crf)} for an mp4, ready to share, 30 for a webm`),maxBitrate:e.number().int().min(0).max(5e5).optional().describe(`An mp4's most video bitrate, kbit/s, 0 for none: default ${String(n.maxKbps)} at 1080p ${String(n.fps)} fps, scaled by the frame's pixels and the frames a second (16000 at 1080p 60, 32000 at 4K 30), so the file is ready to share`),audioBitrate:e.number().int().min(32).max(512).optional().describe("The sound's bitrate, kbit/s: default 192 (AAC in an mp4), 160 (Opus in a webm); a mov keeps PCM"),gifWidth:e.number().int().min(0).max(16384).optional().describe(`A gif's width in pixels, its height in proportion, up to the video's: default ${String(m.width)}; 0 for the video's own`),gifFps:e.number().min(0).max(120).optional().describe(`A gif's frames a second, up to the video's: default ${String(m.fps)}; 0 for the video's own`),steps:e.boolean().default(!1).describe("A deck's pdf, png and pptx: a page, a file or a slide per step of each page (default each page's last step)"),values:e.enum(["data","shown"]).optional().describe("A sheet's csv, json and md: each value as data (a date 2026-01-15, a time 09:30, a duration 36:00, a number to 15 digits; csv's and json's default) or as its format shows it (15 Jan 2026, $1,200.00; md's default)"),bom:e.boolean().default(!0).describe("A sheet's csv starts with a UTF-8 byte-order mark, by which Excel reads its letters right (é, €, 中文); false for a tool that reads plain UTF-8"),quality:e.number().int().min(0).max(100).optional().describe("An image's jpeg and webp, 0–100: default 90 for a jpeg, a webp lossless"),scale:e.number().min(.25).max(4).optional().describe("An image's png, jpeg, webp and zip: each board's picture this many times its size, its layout kept (type and shapes drawn sharp, a picture as many pixels as its file has); default 1"),width:e.number().int().min(1).optional().describe("An image's pictures each this many pixels wide, the height in proportion: a scale for each board"),height:e.number().int().min(1).optional().describe("An image's pictures each this many pixels high, the width in proportion: a scale for each board"),maxKb:e.number().min(1).optional().describe("An image's jpeg and webp: each board's file at most this many KB, at the best quality under it (said); a png is made when it fits under it"),psd:e.enum(["psd","psb"]).default("psd").describe("An image's psd: psd, or psb (Photoshop's large document format); a board is at most 16384 pixels a side, which a psd holds"),pptx:e.enum(["native","picture"]).default("native").describe("A deck's pptx: native, PowerPoint's own model, editable there (the deck's masters, layouts, placeholders, shapes, text, pictures, videos and notes, a component as its picture); or picture, each slide a picture of the page")},C=(s,i)=>`${String(s)} ${i}${s===1?"":"s"}`;export const render=j({name:"render",summary:"The files: a video, its frames, subtitles, cover and mastered mix; a batch's table of ads; a deck's PDF, PPTX and PNGs; a doc's PDF and Markdown; a sheet's Excel workbook with live formulas, PDF, PNG, CSV, Markdown and JSON; an image's pictures, PDF and layered PSDs; a 3D model's GLB",input:e.strictObject({items:e.array(e.string()).optional().describe("Only these items: each an id (its file without its extension) or its file, or a folder of items; default every one"),combo:e.array(e.string()).optional().describe("Only the combos matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03)"),type:e.array(e.string()).optional().describe("File types: mp4, mov, webm, gif, png, srt, vtt (cues cut as the piece's captions layer cuts them, else by default), cover, wav (the mix, mastered as the render masters it: 48 kHz, 16 bits, the film's length); csv for a piece with slots, its table of ads (<piece>.ads.csv: a row per ad with its combo, picks, length, file, name and generated media); a doc's pdf, docx, png; a sheet's xlsx (every sheet, formulas live with their values cached), pdf, png, csv (a file a sheet); an image's png, jpeg, webp (a file a board), pdf, zip and psd (a layered Photoshop file a board: each layer of its kind, its pixels drawn by Chrome); a deck's pdf, png, pptx; a LinkedIn or X post's linkedin-post or x-post (its API request, its media beside), txt (its text as written, its media and their alt text beside), png; an article's linkedin-article or x-article, png; a 3D model's glb. Default mp4 for a video, pdf for a deck and a doc, xlsx for a sheet, png for an image, glb for a model; each item makes the types it has"),out:e.string().optional().describe("The folder the files go in; default .allyhub/out"),name:e.string().optional().describe("Name a video's or deck's files <name>.<ext> in its folder of the output, with what tells its versions apart before the extension when there are several (<name>.zh-cn.mp4, <name>.c03.mp4); default <output>.<combo>.<ext>"),params:O(z),dir:E}),positional:["items"],output:e.looseObject({out:e.string(),files:e.array(e.looseObject({name:e.string(),path:e.string(),type:e.string()})),failed:e.array(e.looseObject({name:e.string(),code:e.string()}))}),examples:["allyhub render","allyhub render launch/film --type mp4,srt","allyhub render launch/film --type wav","allyhub render ads/tidyform --type csv","allyhub render launch/plan --type pdf,md","allyhub render finance/budget --type xlsx,pdf","allyhub render finance/budget --type csv --param bom=false","allyhub render launch/deck --type pptx --param pptx=picture","allyhub render launch/poster --type psd","allyhub render launch/poster --type jpeg --param scale=2 --param max-kb=2000","allyhub render --combo lang=zh-cn --param crf=16","allyhub render launch/film --name launch-film --param max-bitrate=0"]},async(s,i)=>{const o=await S(i.cwd,s.dir),f=w(i.cwd,s.out??x(o,$)),u=Object.fromEntries(Object.entries(s.params).filter(([,a])=>a!==void 0));let d=0,t;try{t=await P({root:o,kinds:N(o),out:f,...s.items===void 0?{}:{items:s.items},combos:F(s),...s.type===void 0?{}:{types:s.type},...s.name===void 0?{}:{name:s.name},params:u,index:T(i.env),analyses:h(o).mediaAnalyses(),env:i.env,processors:h(o).exportProcessors(),log:a=>{i.progress(a)},onProgress:a=>{const r=Math.floor(a*10);r<=d||r>=10||(d=r,i.progress(`${String(r*10)}%`))},signal:i.signal})}catch(a){throw D(a)}const b=a=>a?` (${a.integrated.toFixed(1)} LUFS, true peak ${a.truePeak===void 0?"–":a.truePeak.toFixed(1)} dBTP)`:"",g=t.problems.filter(a=>a.level==="error"),l=t.files.flatMap(a=>a.files.length>1?a.files.map(r=>` ${r}`):[` ${a.path}${b(a.loudness)}`]),y=[`${C(l.length,"file")} in ${t.out}:`,...l,...t.failed.length>0?["Not made:",...t.failed.map(a=>` ${a.name}: ${a.message}${a.hint?` ${a.hint}`:""}`)]:[],...t.unindexed.map(a=>`Not indexed, drawn the fallback way: ${a.file} (${a.error})`),...A(t.files),...g.map(k),...v(p(t.console))];return{value:{out:t.out,files:t.files.map(a=>({...a})),failed:t.failed.map(a=>({...a})),problems:t.problems,...t.unindexed.length>0?{unindexed:t.unindexed}:{},...p(t.console)},text:y.join(`
|
|
3
3
|
`),exit:t.failed.length>0?c.failed:c.ok}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{CheckSession as m,OpenedVersion as l,consoleJson as a,keyedMeasures as c,keyedStills as f}from"@allyhub/project";import{tellPresence as w}from"../presence.js";import{projectRoot as u}from"../project.js";import{formatConsole as g,formatFacts as k,formatProblem as y}from"../text/index.js";import{commandError as b,withOpened as S}from"../version.js";import{kindsAt as d}from"./extensions.js";import{factsResult as v,kindsOf as h,pageJson as C,pageLines as L}from"./inspect/common.js";export async function projectSession(r,e,n={}){const o=await m.open({root:r,kinds:d(r),...n.browser===void 0?{}:{browser:n.browser}});try{return await e({prepared:o.prepared,browser:o.browser,open:(s,i)=>o.open(s,i),async version(s,i,t){const p=await l.open({root:r,item:s,purpose:i,session:o});try{return await t(p)}finally{await p.close()}},componentStills:(s,i,t)=>f(i,{prepared:o.prepared,item:s,combo:t,gpu:o.gpu,withSession:p=>p(o)}),componentMeasures:(s,i,t)=>c(i,{prepared:o.prepared,item:s,combo:t,gpu:o.gpu,withSession:p=>p(o)})})}finally{await o.close()}}export function viewContext(r){return{cwd:r.cwd,env:r.env,progress:e=>{r.progress(e)},signal:r.signal,root:e=>u(r.cwd,e),kinds:d,session:projectSession,version:(e,n,o)=>S(e,r,n,o),looking:(e,{item:n,place:o})=>w(e,{doing:"looking",item:n,...o===void 0?{}:{place:o}}),factKinds:(e,n)=>h(e,n),factLines:(e,n)=>k(e,n),pageLines:L,pageJson:C,measured:(e,n,o,s=[])=>v(e,n,o,s)}}export function commandContext(r){return{...viewContext(r),error:b,problemLines:e=>e.map(y),consoleLines:e=>g(a(e)),consoleJson:e=>({...a(e)})}}
|