allyhub 0.18.0 → 0.20.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/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/align.js +1 -1
- package/dist/commands/auth.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +2 -2
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- 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/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/combos.js +1 -1
- package/dist/commands/inspect/common.js +3 -3
- package/dist/commands/inspect/facts.js +2 -2
- 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/migrate.js +3 -0
- package/dist/commands/run-context.js +2 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -0
- package/dist/fields.js +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -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 +4 -3
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
- package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
- package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
- package/dist/node_modules/@allyhub/blocks/package.json +19 -0
- package/dist/node_modules/@allyhub/browser/dist/html.js +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/fonts.js +9 -3
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
- 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/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +13 -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/dist/chart-file.js +2 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
- package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
- package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
- package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
- 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 +4 -4
- 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/storage.js +2 -0
- 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 +2 -2
- 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/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
- package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
- package/dist/node_modules/@allyhub/doc/package.json +5 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
- package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +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/data/blocks-flow.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
- package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +36 -10
- 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/dist/schemas.d.ts +3260 -290
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
- package/dist/node_modules/@allyhub/formats/package.json +25 -1
- package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
- package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
- package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
- 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/dist/block.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +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 -3
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
- 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/analyses/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
- 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/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
- package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +9 -3
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +5 -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/dist/media-index.js +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/page-frame.js +2 -0
- 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/dist/footage.js +1 -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/packages.js +2 -2
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/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/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.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/calc/server.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- 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/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +9 -9
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +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/archivo/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
- 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/ibm-plex-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
- 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/plus-jakarta-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
- 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/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
- package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
- 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/limit.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.js +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/dist/cli/reference-text.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +7 -26
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
- 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/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.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/free.js +1 -1
- 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/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
- 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 +6 -6
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +8 -4
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
- 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/self-upgrade.js +2 -0
- package/dist/slot.js +4 -0
- package/dist/telemetry.js +1 -1
- package/dist/text/batch-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/update-notice.js +3 -0
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
- package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
- package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
- package/editor-web/assets/article-DHf6mOY_.js +7 -0
- package/editor-web/assets/article-Dns1-Xh-.js +3 -0
- package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
- package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
- package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
- package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
- package/editor-web/assets/channel-CVWSV3su.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
- package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
- package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
- package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
- package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
- package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
- package/editor-web/assets/deck-DQpNIS2p.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
- package/editor-web/assets/dist--z0ZHp4T.js +16 -0
- package/editor-web/assets/dist-9kuRjUTN.js +41 -0
- package/editor-web/assets/dist-B3rd02Cg.js +6 -0
- package/editor-web/assets/dist-B5GOGGEe.js +1 -0
- package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
- package/editor-web/assets/dist-C4hHtrJr.js +1 -0
- package/editor-web/assets/dist-CCXJewsi.js +19 -0
- package/editor-web/assets/dist-CfK2BLl8.js +4 -0
- package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
- package/editor-web/assets/dist-Cspf85KV.js +6 -0
- package/editor-web/assets/dist-DA72-4WB.js +82 -0
- package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
- package/editor-web/assets/dist-DIJnhQFK.js +9 -0
- package/editor-web/assets/dist-DOrGo1GD.js +19 -0
- package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
- package/editor-web/assets/dist-DjiCHlSu.js +35 -0
- package/editor-web/assets/dist-Do4a40Wn.js +19 -0
- package/editor-web/assets/dist-FKEWS3Co.js +547 -0
- package/editor-web/assets/dist-QKd2i6kG.js +5 -0
- package/editor-web/assets/dist-SGnOfLhx.js +24 -0
- package/editor-web/assets/dist-VmVB7tl4.js +3 -0
- package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-L54blreB.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
- package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
- package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
- package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
- package/editor-web/assets/hint-CbwoSBMw.js +1 -0
- package/editor-web/assets/index-CXisi0Cj.css +2 -0
- package/editor-web/assets/index-wMlfx8aT.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-CdPrqere.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
- package/editor-web/assets/iso-UwGLGD3F.js +1 -0
- package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
- package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
- package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-BOln9YdH.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
- package/editor-web/assets/progress-DZQTiRLv.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
- package/editor-web/assets/react-Byupo4pA.js +1 -0
- package/editor-web/assets/replace-CLLMtF4e.js +1 -0
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
- package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
- package/editor-web/assets/row-Bei9HNEe.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-ahTwmFwH.js → schemas-DlRAoVtq.js} +1 -1
- package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
- package/editor-web/assets/search-D75Bi2GU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
- package/editor-web/assets/{session-Beijw9EK.js → session-BhClkDyr.js} +1 -1
- package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
- package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
- package/editor-web/assets/sound-DkR3qxSt.js +1 -0
- package/editor-web/assets/split-DBAbwPZ5.js +3 -0
- package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
- package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
- package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
- package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
- package/editor-web/assets/switch-DrZxoPQS.js +1 -0
- package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
- package/editor-web/assets/table-BW43XXVd.js +1 -0
- package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
- package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
- package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
- package/editor-web/assets/type-CvZ0HZsV.js +41 -0
- package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
- package/editor-web/assets/video-SJvDRCJK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
- package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
- package/editor-web/assets/{words-0Ww2RyT4.js → words-BUlNNuH2.js} +3 -3
- package/editor-web/assets/words-zMedmPWc.js +3 -0
- package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
- package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
- package/editor-web/index.html +9 -8
- package/package.json +3 -3
- package/CHANGELOG.md +0 -243
- package/dist/commands/render.js +0 -3
- 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/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
- package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
- package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
- package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
- package/editor-web/assets/article-CS48wwvk.js +0 -3
- package/editor-web/assets/article-Cyle57uq.js +0 -7
- package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
- package/editor-web/assets/calc-worker-BdHh5LXM.js +0 -45
- package/editor-web/assets/channel-HUlo15J7.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-CfbWK9l1.js +0 -1
- package/editor-web/assets/code-CD-CbJG9.js +0 -1
- package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
- package/editor-web/assets/deck-CtEtDHo2.js +0 -1
- package/editor-web/assets/dist-BBshIz1Q.js +0 -5
- package/editor-web/assets/dist-BI8QjOsV.js +0 -1
- package/editor-web/assets/dist-BajH5QfK.js +0 -24
- 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-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-DGKjn59H.js +0 -16
- package/editor-web/assets/dist-NQNQ5HqZ.js +0 -17
- package/editor-web/assets/dist-SV0sOVIC.js +0 -43
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/dist-Y_XZZa8q.js +0 -531
- package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
- package/editor-web/assets/dist-d4dayaWE.js +0 -17
- package/editor-web/assets/dist-elglzHMT.js +0 -6
- package/editor-web/assets/dist-hHcrvNn9.js +0 -1
- package/editor-web/assets/esm-DzxAod8Q.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
- package/editor-web/assets/hint-rlht0uxG.js +0 -1
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/index-q7X6hdHp.js +0 -28
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/progress-CwKcXARv.js +0 -6
- package/editor-web/assets/props-form-DUFxM5eb.js +0 -1
- package/editor-web/assets/react-Edyoga_4.js +0 -1
- package/editor-web/assets/row-C_svyL8o.js +0 -1
- package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.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/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-zARio3J8.js +0 -3
- package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
- package/editor-web/assets/surface-DtCjIlrq.js +0 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
- package/editor-web/assets/swatch-DhztHwPU.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
- package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
- package/editor-web/assets/table-DRbddzx0.js +0 -1
- package/editor-web/assets/tabs-BHBvbekZ.js +0 -1
- package/editor-web/assets/tag-CIfWT8B_.js +0 -1
- package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
- package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
- package/editor-web/assets/video-oJ3qa1Qv.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-DznVDqoE.js +0 -45
- package/editor-web/assets/x-DlhyIKuu.js +0 -41
- /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{RECIPE_CHART_TYPES as P}from"@allyhub/formats";import{accentOf as R,CHART_AXIS as I,CHART_DEFAULTS as S,CHART_GRID as O,chartDrawing as V,chartScale as H,formatValue as C,scaleShare as G,seeThrough as T,textWidth as Z}from"./chart.js";const f=e=>String(Number(e.toFixed(3))),B=new Set(P);export const isRecipe=e=>B.has(e),isRadar=e=>e.startsWith("radar"),isStock=e=>e.startsWith("stock");export function recipeOrder(e){const t=e.series.length;return e.type!=="bullet"||t<2?Array.from({length:t},(r,o)=>o):[...Array.from({length:t-2},(r,o)=>t-1-o),0,1]}const z=[.32,.2,.11,.06];export function recipeDef(e,t=300){return isAcross(e)?e:e.type==="dumbbell"?{...e,type:"line-markers",high_low_lines:!0,series:e.series.map((r,o)=>({...r,line_width:0,marker_symbol:r.marker_symbol??"circle",marker_size:r.marker_size??9,color:r.color??R(o)}))}:e.type==="slope"?J(e,t):e.type==="bullet"?U(e):e}function J(e,t){const r=e.labels?.size??e.font_size??S.fontSize,o=Math.max(0,e.categories.length-1),c=e.series.flatMap(n=>n.values.filter(a=>a!==null)),x=Math.min(0,...c),b=Math.max(0,...c)-x||1,u=t*.8,h=n=>{const m=[...e.series.map((d,s)=>({i:s,y:u*(1-((d.values[n]??0)-x)/b)}))].sort((d,s)=>d.y-s.y),g=r*1.25,M=new Map;let w=-1/0;for(const d of m){const s=Math.max(d.y,w+g);M.set(d.i,s-d.y),w=s}return M},l=h(0),i=h(o);return{...e,type:"line-markers",category_axis:{tick_label_position:"high",...e.category_axis},value_axis:{visible:!1,has_major_gridlines:!1,...e.value_axis},series:e.series.map((n,a)=>{const m=n.values[0],g=(d,s,p)=>{const y=s.get(a)??0;return{index:d,text:p,position:d===0?"l":"r",...Math.abs(y)>.01?{dy:Number((y/t).toFixed(4))}:{}}},M=n.number_format,w=n.values[o];return{...n,point_labels:[g(0,l,`${n.name} ${m==null?"":C(m,M)}`),g(o,i,w==null?"":C(w,M))]}})}}export const isAcross=e=>(e.type==="bullet"||e.type==="dumbbell")&&e.orientation!=="vertical";const W=60,K=.4;export const ACROSS_TICK=.3,TARGET_WIDTH=2.5,JOIN_WIDTH=2;export function acrossBase(e){const t=e.series.flatMap(n=>n.values.filter(a=>a!==null)),[r,o]=[Math.min(0,...t),Math.max(1,...t)],{major:c}=H(r,o,300,60,e.value_axis),x={min:Math.floor(r/c)*c,max:Math.ceil(o/c)*c},v=(n,a)=>({...n,values:n.values.map(()=>null),color:n.color??a}),[b,u,...h]=e.series,l=e.type==="bullet"?[...N(h),...b?[v(b,R(0))]:[],...u?[v(u,"tx1")]:[]]:e.series.map((n,a)=>v(n,R(a))),i={...e};return delete i.orientation,delete i.high_low_lines,{...i,type:"bar-clustered",overlap:100,gap_width:e.gap_width??W,category_axis:{...e.category_axis,reverse_order:!0,crosses:"max"},value_axis:{...e.type==="bullet"?{has_major_gridlines:!1}:{},...e.value_axis,...e.value_axis?.minimum_scale!==void 0&&e.value_axis.maximum_scale!==void 0?{}:{major_unit:e.value_axis?.major_unit??c},minimum_scale:e.value_axis?.minimum_scale??x.min,maximum_scale:e.value_axis?.maximum_scale??x.max},series:l}}export const actualThickness=(e,t)=>t/Math.max(1,e.categories.length)/(1+(e.gap_width??W)/100)*K;export function acrossDrawing(e,t,r){const o=acrossBase(e),c=V(o,t,r),x=c.scales?.value;if(!x)return c;const{plot:v}=c,b=v.height/Math.max(1,e.categories.length),u=l=>v.y+(l+.5)*b,h=l=>v.x+G(x,Math.min(x.max,Math.max(x.min,l)))*v.width;if(e.type==="bullet"){const[l,i]=e.series,n=Math.max(0,e.series.length-2),a=actualThickness(o,v.height);return l?.values.forEach((m,g)=>{if(m===null)return;const[M,w]=[h(0),h(m)].sort((d,s)=>d-s);c.boxes.push({x:M,y:u(g)-a/2,width:w-M,height:a,color:T(l.color??R(0),l.transparency),series:n,category:g})}),i?.values.forEach((m,g)=>{m!==null&&c.lines.push({d:`M${f(h(m))} ${f(u(g)-b*ACROSS_TICK)} V${f(u(g)+b*ACROSS_TICK)}`,color:i.color??"tx1",width:TARGET_WIDTH,series:n+1,category:g})}),c}e.categories.forEach((l,i)=>{const n=e.series.flatMap(a=>{const m=a.values[i];return m==null?[]:[m]});n.length<2||c.lines.push({d:`M${f(h(Math.min(...n)))} ${f(u(i))} H${f(h(Math.max(...n)))}`,color:I,width:JOIN_WIDTH,category:i})}),e.series.forEach((l,i)=>{const n=T(l.color??R(i),l.transparency);l.values.forEach((a,m)=>{a!==null&&c.dots.push({x:h(a),y:u(m),r:(l.marker_size??9)/2,color:n})})});for(const l of c.keys)l.marker=!0;return c}function N(e){return[...e].reverse().map((t,r)=>({...t,color:t.color??T("tx1",1-(z[e.length-1-r]??z[3]))}))}function U(e){const[t,r,...o]=e.series,c=e.series.flatMap(b=>b.values.filter(u=>u!==null)),x=H(0,Math.max(1,...c),300,30,e.value_axis),v={minimum_scale:e.value_axis?.minimum_scale??0,maximum_scale:e.value_axis?.maximum_scale??x.max};return{...e,type:"column-clustered",overlap:100,gap_width:e.gap_width??60,secondary_gap_width:e.secondary_gap_width??260,value_axis:{...e.value_axis,...v},secondary_axis:{...v,visible:!1,has_major_gridlines:!1},series:[...N(o),...t?[{...t,secondary:!0,color:t.color??R(0)}]:[],...r?[{...r,type:"line-markers",secondary:!0,line_width:0,marker_symbol:r.marker_symbol??"dash",marker_size:r.marker_size??22,color:r.color??"tx1"}]:[]]}}export function radarDrawing(e,t,r,o,c,x=Z){const v=Math.max(1,e.categories.length),b=Math.max(0,...e.categories.map(s=>x(s,o)))+o,u=Math.max(0,Math.min((r.right-r.left)/2-b,(r.bottom-r.top)/2-o*1.6)),h=(r.left+r.right)/2,l=(r.top+r.bottom)/2;t.plot={x:h-u,y:l-u,width:u*2,height:u*2};const i=e.series.flatMap(s=>s.values.filter(p=>p!==null)),n=e.value_axis??{},a=H(Math.min(0,...i),Math.max(1,...i),u,o*2.4,{...n,minimum_scale:n.minimum_scale??0});t.scales={value:a};const m=s=>s/v*Math.PI*2,g=(s,p)=>{const y=a.max>a.min?(Math.min(a.max,Math.max(a.min,p))-a.min)/(a.max-a.min):0;return[h+u*y*Math.sin(m(s)),l-u*y*Math.cos(m(s))]},M=s=>`${e.categories.map((p,y)=>{const[$,k]=g(y,s);return`${y===0?"M":"L"}${f($)} ${f(k)}`}).join(" ")} Z`,w=n.number_format??e.series[0]?.number_format??"General";for(const s of a.ticks)if((n.has_major_gridlines??!0)&&t.grid.push({d:M(s),color:n.gridline_color??O,width:S.gridWidth}),n.visible!==!1){const[,p]=g(0,s);t.words.push({x:h-o*.3,y:p,text:C(s,w),size:o*.85,anchor:"end",color:c})}e.categories.forEach((s,p)=>{const[y,$]=g(p,a.max);t.axes.push({d:`M${f(h)} ${f(l)} L${f(y)} ${f($)}`,color:O,width:S.gridWidth});const k=Math.sin(m(p)),D=Math.cos(m(p));t.words.push({x:y+k*o*.6,y:$-D*o*(Math.abs(k)<.2?1.4:.8),text:s,size:o,anchor:Math.abs(k)<.2?"middle":k>0?"start":"end",color:c})});const d=e.type==="radar-filled";e.series.forEach((s,p)=>{const y=s.color??R(p),$=e.categories.map((A,j)=>g(j,s.values[j]??0)),k=`${$.map(([A,j],_)=>`${_===0?"M":"L"}${f(A)} ${f(j)}`).join(" ")} Z`;if(d?t.shapes.push({d:k,color:y,width:0,fill:T(y,s.transparency??.5),series:p}):t.lines.push({d:k,color:T(y,s.transparency),width:s.line_width??S.lineWidth,series:p}),s.marker_symbol===void 0?e.type==="radar-markers":s.marker_symbol!=="none")for(const[A,j]of $)t.dots.push({x:A,y:j,r:(s.marker_size??S.marker)/2,color:y})})}export function stockDrawing(e,t,r){const o=e.type==="stock-ohlc",[c,x,v,b]=o?e.series:[void 0,...e.series.slice(0,3)],u=e.series.flatMap(l=>l.values.filter(i=>i!==null)),h=r(u.length>0?Math.min(...u):0,u.length>0?Math.max(...u):1);e.categories.forEach((l,i)=>{const n=h.band(i),a=n.x+n.width/2,m=x?.values[i],g=v?.values[i];typeof m=="number"&&typeof g=="number"&&t.lines.push({d:`M${f(a)} ${f(h.y(m))} V${f(h.y(g))}`,color:I,width:S.gridWidth*1.5,category:i});const M=b?.values[i],w=c?.values[i],d=n.width/2.5;if(o&&typeof w=="number"&&typeof M=="number"){const s=h.y(Math.max(w,M)),p=h.y(Math.min(w,M));t.boxes.push({x:a-d/2,y:s,width:d,height:Math.max(.75,p-s),color:M>=w?"bg1":"tx1",series:0,category:i}),t.lines.push({d:`M${f(a-d/2)} ${f(s)} H${f(a+d/2)} V${f(p)} H${f(a-d/2)} Z`,color:"tx1",width:S.gridWidth,category:i})}else typeof M=="number"&&t.lines.push({d:`M${f(a)} ${f(h.y(M))} H${f(a+d/2)}`,color:b?.color??"tx1",width:S.lineWidth,category:i})})}const F=e=>JSON.stringify(e,(t,r)=>typeof r=="number"?Number(r.toFixed(5)):r),X=(e,t)=>e.color!==void 0&&t!==void 0&&F(T(e.color,e.transparency))===F(t);export function acrossFrom(e,t){const r=t.find(_=>_.kind==="actual"),o=t.find(_=>_.kind==="target"),c=t.filter(_=>_.kind==="dot"),x=r!==void 0;if(!x&&(o!==void 0||c.length===0))return;const v=e.categories.length,b=_=>({name:_.name,values:Array.from({length:v},(E,L)=>_.values[L]??null),..._.color===void 0?{}:{color:_.color},..._.transparency===void 0?{}:{transparency:_.transparency},..._.marker_size===void 0||_.marker_size===9?{}:{marker_size:_.marker_size}}),u=x?[b(r),...o?[b(o)]:[],...[...e.series].reverse()]:c.map(b),h=_=>{const E={..._};return delete E.color,delete E.transparency,E},{gap_width:l,category_axis:i,value_axis:n,...a}=e;delete a.vary_by_categories,delete a.overlap;const m={...a,type:x?"bullet":"dumbbell",series:u.map(h)},g=acrossBase(m),M=recipeOrder(m),w=[];M.forEach((_,E)=>{w[_]=g.series[E]?.color});const{crosses:d,...s}=i??{};delete s.reverse_order;const{minimum_scale:p,maximum_scale:y,major_unit:$,has_major_gridlines:k,...D}=n??{},A=g.value_axis??{},j={...D,...p===void 0||p===A.minimum_scale?{}:{minimum_scale:p},...y===void 0||y===A.maximum_scale?{}:{maximum_scale:y},...$===void 0||$===A.major_unit?{}:{major_unit:$},...k===void 0||k===(A.has_major_gridlines??!0)?{}:{has_major_gridlines:k}};return{...m,series:u.map((_,E)=>X(_,w[E])?h(_):_),...l===void 0||l===W?{}:{gap_width:l},...Object.keys(j).length>0?{value_axis:j}:{},...Object.keys(s).length>0||d!==void 0&&d!=="max"?{category_axis:{...s,...d===void 0||d==="max"?{}:{crosses:d}}}:{}}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{strToU8 as
|
|
3
|
-
`,
|
|
2
|
+
import{strToU8 as A,zipSync as I}from"fflate";import{isScatter as T}from"./chart.js";import{chartSpaceXml as R}from"./chart-xml.js";import{chartExXml as M}from"./chartex-xml.js";import{isExtended as j,withTotals as O}from"./extended.js";import{isRecipe as b,recipeDef as C}from"./classic.js";const X=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
`,z={"&":"&","<":"<",">":">",'"':"""},E=t=>t.replace(/[&<>"]/gu,s=>z[s]??s),n=t=>t<26?String.fromCharCode(65+t):n(Math.floor(t/26)-1)+String.fromCharCode(65+t%26);export function embeddedChartXml(t,s,a,m={}){const c=b(t.type)?C(t,s.height):t,l=c.type==="bubble"?3:2,i=c.categories.length,p=o=>n(o+1),d=T(c.type),f=(o,S)=>{const h=String((c.series[o]?.values.length??0)+1);return`Sheet1!$${n(o*l+S)}$2:$${n(o*l+S)}$${h}`};return R(c,{refs:d?{name:o=>`Sheet1!$${n(o*l+1)}$1`,categories:void 0,values:o=>f(o,1),x:o=>f(o,0),...l===3?{sizes:o=>f(o,2)}:{}}:{name:o=>`Sheet1!$${p(o)}$1`,categories:`Sheet1!$A$2:$A$${String(i+1)}`,values:o=>`Sheet1!$${p(o)}$2:$${p(o)}$${String(i+1)}`},frame:s,...m.frameless===!0?{frameless:!0}:{},tail:`<c:externalData r:id="${E(a)}"><c:autoUpdate val="0"/></c:externalData>`})}export function embeddedChartExXml(t,s,a={}){const m=Math.max(t.categories.length,...t.series.map(i=>i.values.length)),c=String(m+1),l=t.category_levels?.[0]?.length??1;return M(t,{refs:{name:i=>`Sheet1!$${n(i+l)}$1`,categories:t.categories.length===0?void 0:`Sheet1!$A$2:$${n(l-1)}$${c}`,values:i=>`Sheet1!$${n(i+l)}$2:$${n(i+l)}$${c}`},workbook:s,...a.frameless===!0?{frameless:!0}:{}})}const D="http://schemas.openxmlformats.org/spreadsheetml/2006/main",v="http://schemas.openxmlformats.org/officeDocument/2006/relationships",F=new Date(1980,0,1);export function chartBook(t){const s=O(b(t.type)?C(t):t),a=s.type==="bubble"?3:2,m=(r,e)=>`<c r="${r}" t="inlineStr"><is><t>${E(e)}</t></is></c>`,c=T(s.type),l=s.category_levels?.[0]?.length??1,i=(c?s.series.flatMap((r,e)=>[m(`${n(e*a)}1`,"X"),m(`${n(e*a+1)}1`,r.name),...a===3?[m(`${n(e*a+2)}1`,"Size")]:[]]):[m("A1",""),...s.series.map((r,e)=>m(`${n(e+l)}1`,r.name))]).join(""),p=(r,e)=>e==null?"":`<c r="${r}"><v>${String(e)}</v></c>`,d=Math.max(0,...s.series.map(r=>r.values.length)),f=Array.from({length:d},(r,e)=>{const $=String(e+2),x=s.series.flatMap((u,g)=>[p(`${n(g*a)}${$}`,u.x?.[e]),p(`${n(g*a+1)}${$}`,u.values[e]),...a===3?[p(`${n(g*a+2)}${$}`,u.sizes?.[e])]:[]]);return`<row r="${$}">${x.join("")}</row>`}),o=Math.max(s.categories.length,j(s.type)?d:0),S=Array.from({length:o},(r,e)=>{const $=s.categories[e],x=String(e+2),u=s.series.map((k,y)=>{const w=k.values[e];return w==null?"":`<c r="${n(y+l)}${x}"><v>${String(w)}</v></c>`}),g=s.category_levels?.[e],_=g?g.map((k,y)=>k===""?"":m(`${n(y)}${x}`,k)).join(""):$===void 0?"":m(`A${x}`,$);return`<row r="${x}">${_}${u.join("")}</row>`}),h=r=>[A(X+r),{mtime:F}];return I({"[Content_Types].xml":h('<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/></Types>'),"_rels/.rels":h(`<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="${v}/officeDocument" Target="xl/workbook.xml"/></Relationships>`),"xl/workbook.xml":h(`<workbook xmlns="${D}" xmlns:r="${v}"><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets></workbook>`),"xl/_rels/workbook.xml.rels":h(`<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="${v}/worksheet" Target="worksheets/sheet1.xml"/></Relationships>`),"xl/worksheets/sheet1.xml":h(`<worksheet xmlns="${D}"><sheetData><row r="1">${i}</row>${(c?f:S).join("")}</sheetData></worksheet>`)})}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{EXTENDED_CHART_TYPES as Y}from"@allyhub/formats";import{chartTree as Z,funnelDrawing as k,sunburstDrawing as J,treemapDrawing as Q}from"./tree.js";import{accentOf as G,axisTitleRoom as z,axisTitleWords as tt,CHART_AXIS as j,CHART_DEFAULTS as B,CHART_GRID as et,chartScale as K,formatValue as F,labelsAt as V,scaleShare as nt,seeThrough as X,textWidth as P}from"./chart.js";const ot=new Set(Y);export const isExtended=t=>ot.has(t),needsCategories=t=>t!=="box-whisker"&&t!=="histogram"&&t!=="pareto"&&t!=="bubble"&&!t.startsWith("scatter"),isHierarchical=t=>t==="treemap"||t==="sunburst";export function defaultLabels(t){if(t==="waterfall"||t==="funnel")return{show_value:!0};if(isHierarchical(t))return{show_category_name:!0,show_value:!1}}export const isBinned=t=>t.type==="histogram"||t.type==="pareto"&&t.categories.length===0;const h=t=>String(Number(t.toFixed(3)));export function quartile(t,e,o="exclusive"){const n=t.length;if(n===0)return Number.NaN;const f=o==="exclusive"?e*(n+1):1+e*(n-1);if(f<=1)return t[0]??Number.NaN;if(f>=n)return t[n-1]??Number.NaN;const s=Math.floor(f),i=t[s-1]??0,d=t[s]??i;return i+(f-s)*(d-i)}export function boxStats(t,e="exclusive"){const o=t.filter(a=>typeof a=="number"&&Number.isFinite(a)).sort((a,y)=>a-y);if(o.length===0)return;const n=quartile(o,.25,e),f=quartile(o,.5,e),s=quartile(o,.75,e),i=(s-n)*1.5,d=o.filter(a=>a>=n-i&&a<=s+i);return{q1:n,median:f,q3:s,mean:o.reduce((a,y)=>a+y,0)/o.length,low:d[0]??n,high:d.at(-1)??s,outliers:o.filter(a=>a<n-i||a>s+i),inner:d,count:o.length}}export function boxGroups(t){const e=t.categories.length>0,o=e?[...new Set(t.categories)]:[""],n=o.map(f=>t.series.map(s=>s.values.filter((i,d)=>!e||t.categories[d]===f)));return{names:o,values:n}}export function waterfallSteps(t,e=[]){let o=0;return t.map((n,f)=>{if(e.includes(f))return o=n??o,{from:0,to:o,kind:"total"};const s=o;return o+=n??0,{from:s,to:o,kind:(n??0)<0?"decrease":"increase"}})}export function withTotals(t){const e=t.series[0];if(t.type!=="waterfall"||!e||(t.totals??[]).length===0)return t;const o=waterfallSteps(e.values,t.totals),n=e.values.map((f,s)=>f===null&&t.totals?.includes(s)===!0?o[s]?.to??null:f);return{...t,series:[{...e,values:n},...t.series.slice(1)]}}const C=(t,e,o)=>e===void 0||e==="General"?String(Number(t.toFixed(Math.min(6,Math.max(0,1-Math.floor(Math.log10(o||1))))))):F(t,e);export function histogramBins(t,e={},o){const n=t.filter(r=>typeof r=="number"&&Number.isFinite(r));if(n.length===0)return[];const f=Math.min(...n),s=Math.max(...n),i=e.underflow!==void 0&&e.overflow!==void 0&&e.underflow>=e.overflow,d=i?void 0:e.underflow,a=i?void 0:e.overflow;let y=d??f,l=a??s;y>=l&&(y=f,l=s);let x,w;if(n.length<2||y===l)x=1,w=Math.max(1,l-y);else if(e.bin_width!==void 0)w=e.bin_width,x=Math.max(1,Math.ceil((l-y)/w-1e-9));else if(e.bin_count!==void 0)x=e.bin_count,w=(l-y)/x;else{const r=n.reduce((g,_)=>g+_,0)/n.length;w=3.5*Math.sqrt(n.reduce((g,_)=>g+(_-r)**2,0)/(n.length-1))/Math.cbrt(n.length),x=w>0?Math.max(1,Math.ceil((l-y)/w-1e-9)):1,w>0||(w=(l-y)/x)}x=Math.min(x,1e3);const S=e.interval_closed==="left",u=[];d!==void 0&&u.push({from:d,to:d,count:n.filter(r=>r<=d).length,label:`≤${C(d,o,w)}`});for(let r=0;r<x;r++){const m=y+r*w,g=r===x-1?a??Math.max(l,m+w):m+w,_=r===0&&d===void 0,c=r===x-1&&a===void 0,E=$=>S?($>=m||_&&$>=y)&&($<g||c&&$<=g):($>m||_&&$>=m)&&$<=g,T=n.filter($=>E($)&&!(d!==void 0&&$<=d)&&!(a!==void 0&&$>a)),v=S?`[${C(m,o,w)}, ${C(g,o,w)}${c?"]":")"}`:`${_?"[":"("}${C(m,o,w)}, ${C(g,o,w)}]`;u.push({from:m,to:g,count:T.length,label:v})}return a!==void 0&&u.push({from:a,to:a,count:n.filter(r=>r>a).length,label:`>${C(a,o,w)}`}),u}export function paretoBars(t){const e=t.series[0];let o;if(isBinned(t))o=histogramBins(e?.values??[],t,e?.number_format).map(s=>[s.label,s.count]);else{const s=new Map;t.categories.forEach((i,d)=>{const a=e?.values[d];typeof a=="number"&&s.set(i,(s.get(i)??0)+a)}),o=[...s]}o.sort((s,i)=>i[1]-s[1]);const n=o.reduce((s,[,i])=>s+i,0);let f=0;return{names:o.map(([s])=>s),values:o.map(([,s])=>s),cumulative:o.map(([,s])=>(f+=s,n>0?f/n:0))}}export const WATERFALL_COLORS={increase:"accent1",decrease:"accent2",total:"accent3"};const st={increase:"Increase",decrease:"Decrease",total:"Total"};export function extendedLegend(t){if(t.type==="treemap"||t.type==="sunburst")return Z(t).children.map(e=>({name:e.name,color:t.category_colors?.[e.branch]??G(e.branch)}));if(t.type==="waterfall"){const e=["increase","decrease"];return(t.totals??[]).length>0&&e.push("total"),e.map(o=>({name:st[o],color:WATERFALL_COLORS[o]}))}if(t.type==="pareto"){const e=t.series[0];return[{name:e?.name??"",color:e?.color??G(0)},{name:"Pareto",color:PARETO_LINE}]}return t.series.slice(0,t.type==="histogram"?1:void 0).map((e,o)=>({name:e.name,color:e.color??G(o)}))}export const PARETO_LINE="accent2",HISTOGRAM_EDGE=.75,BOX_LOOK={fillTransparency:.6,lineWidth:1.5,point:2.5,gap:1},WATERFALL_GAP=.5,categoryFrame=(...t)=>I(...t);function I(t,e,o,n,f,s,i,d,a=P){const y=B,l=t.value_axis??{},x=t.category_axis??{},w=z(o,x.title,l.title,n),S=l.number_format??t.series[0]?.number_format??"General",u=n*.5,r=l.visible!==!1&&l.tick_label_position!=="none",m=d.some(p=>p!=="")&&x.visible!==!1&&x.tick_label_position!=="none",g=Math.max(1,d.length),_=(o.right-o.left-n*3)/g,c=(p,A)=>{const H=[];for(const N of p.split(" ")){const D=H.at(-1);D!==void 0&&a(`${D} ${N}`,n)<=A?H[H.length-1]=`${D} ${N}`:H.push(N)}return H},E=d.map(p=>c(p,_-n*.4)),v=E.every(p=>p.length<=3&&p.every(A=>a(A,n)<=_))?E:d.map(p=>[p]),$=Math.max(1,...v.map(p=>p.length)),b=m?n*1.2*$+u:0,R=K(s,i,o.bottom-o.top-b,n*2.4,l),W=r?Math.max(0,...R.ticks.map(p=>a(F(p,S),n)))+u:0,M={x:o.left+W,y:o.top,width:Math.max(0,o.right-o.left-W),height:Math.max(0,o.bottom-o.top-b)};e.plot=M,tt(e,M,w,x.title,l.title,n,f);const L=K(s,i,M.height,n*2.4,l);e.scales={value:L};const q=p=>M.y+M.height-nt(L,p)*M.height;for(const p of L.ticks)(l.has_major_gridlines??!0)&&e.grid.push({d:`M${h(M.x)} ${h(q(p))} H${h(M.x+M.width)}`,color:l.gridline_color??et,width:y.gridWidth}),r&&e.words.push({x:M.x-u,y:q(p),text:F(p,S),size:n,anchor:"end",color:f});const O=M.width/g;if(x.visible!==!1){const p=q(Math.max(L.min,Math.min(L.max,0)));e.axes.push({d:`M${h(M.x)} ${h(p)} H${h(M.x+M.width)}`,color:x.line_color??j,width:y.gridWidth})}if(m){const p=Math.max(0,...v.flatMap(H=>H.map(N=>a(N,n))))+n*.4,A=x.label_interval??Math.max(1,Math.ceil(p/O));v.forEach((H,N)=>{N%A===0&&H.forEach((D,U)=>{e.words.push({x:M.x+(N+.5)*O,y:M.y+M.height+u+n*(.6+U*1.2),text:D,size:n,anchor:"middle",color:f})})})}return{plot:M,scale:L,y:q,band:p=>({x:M.x+p*O,width:O})}}export function extendedDrawing(t,e,o,n,f,s=P){t.type==="waterfall"?at(t,e,o,n,f,s):t.type==="box-whisker"?it(t,e,o,n,f,s):t.type==="treemap"?Q(t,e,o,n,s):t.type==="sunburst"?J(t,e,o,n,s):t.type==="funnel"?k(t,e,o,n,f,s):rt(t,e,o,n,f,s)}function rt(t,e,o,n,f,s=P){const i=t.series[0],d=t.type==="pareto"?paretoBars(t):void 0,a=d?void 0:histogramBins(i?.values??[],t,i?.number_format),y=d?.names??a?.map(c=>c.label)??[],l=d?.values??a?.map(c=>c.count)??[],x=n*.5,w=d?s("100%",n)+x:0,S=I({...t,...a?{series:[{name:"",values:[]}]}:{}},e,{...o,right:o.right-w},n,f,0,Math.max(1,...l),y,s),u=t.gap_width!==void 0?t.gap_width/100:d&&!isBinned(t)?PARETO_GAP:0,r=X(i?.color??G(0),i?.transparency),m=i?V(t,i,0):void 0;if(l.forEach((c,E)=>{const T=S.band(E),v=T.width/(1+u),$=T.x+(T.width-v)/2,b=S.y(c),R=u===0?HISTOGRAM_EDGE/2:0;e.boxes.push({x:$+R,y:b,width:Math.max(.5,v-R*2),height:Math.max(0,S.y(0)-b),color:i?.point_colors?.[E]??r,series:0,category:E}),m&&e.words.push({x:$+v/2,y:b-(m.size??n)*.8,text:F(c,m.number_format??(a?"General":i?.number_format)),size:m.size??n,anchor:"middle",color:m.color??f})}),!d)return;const{plot:g}=S,_=c=>g.y+g.height*(1-c);for(let c=0;c<=10;c+=2)e.words.push({x:g.x+g.width+x,y:_(c/10),text:`${String(c*10)}%`,size:n,anchor:"start",color:f});e.lines.push({d:d.cumulative.map((c,E)=>{const T=S.band(E);return`${E===0?"M":"L"}${h(T.x+T.width/2)} ${h(_(c))}`}).join(" "),color:PARETO_LINE,width:B.lineWidth,series:1})}export const PARETO_GAP=.5;function at(t,e,o,n,f,s=P){const i=t.series[0],d=t.categories.map((u,r)=>i?.values[r]??null),a=waterfallSteps(d,t.totals),y=a.flatMap(u=>[u.from,u.to]),l=I(t,e,o,n,f,Math.min(0,...y),Math.max(0,...y),t.categories,s),x=t.gap_width===void 0?WATERFALL_GAP:t.gap_width/100,w=t.labels?.size??n,S=u=>u.kind==="total"?u.to:u.to-u.from;a.forEach((u,r)=>{if(d[r]===null&&u.kind!=="total")return;const m=l.band(r),g=m.width/(1+x),_=m.x+(m.width-g)/2,c=l.y(Math.max(u.from,u.to)),E=l.y(Math.min(u.from,u.to));if(e.boxes.push({x:_,y:c,width:g,height:Math.max(.5,E-c),color:X(i?.point_colors?.[r]??WATERFALL_COLORS[u.kind],i?.transparency),series:0,category:r}),a[r+1]&&t.connector_lines!==!1){const $=(u.kind==="total",u.to),b=l.band(r+1),R=b.x+(b.width-b.width/(1+x))/2;e.lines.push({d:`M${h(_+g)} ${h(l.y($))} H${h(R)}`,color:j,width:B.gridWidth})}const v=i?V(t,i,r):void 0;if(v&&i){const $=u.to>=u.from;e.words.push({x:_+g/2,y:$?c-w*.8:E+w*.8,text:F(S(u),v.number_format??i.number_format),size:v.size??w,anchor:"middle",color:v.color??f,...v.bold===!0?{bold:!0}:{}})}})}function it(t,e,o,n,f,s=P){const i=t.quartile_method??"exclusive",d=boxGroups(t),a=d.values.map(r=>r.map(m=>boxStats(m,i))),y=a.flat().flatMap(r=>r?[r.low,r.high,r.q1,r.q3,...t.show_outliers===!1?[]:r.outliers]:[]),l=I(t,e,o,n,f,y.length>0?Math.min(...y):0,y.length>0?Math.max(...y):1,d.names,s),x=Math.max(1,t.series.length),w=t.gap_width===void 0?BOX_LOOK.gap:t.gap_width/100,S=BOX_LOOK.lineWidth,u=t.series.map(()=>[]);a.forEach((r,m)=>{const g=l.band(m),_=g.width/(x+w);r.forEach((c,E)=>{if(!c)return;const T=t.series[E],v=T?.color??G(E),$=g.x+(g.width-_*x)/2+E*_,b=$+_/2,R=_*.1,[W,M]=[$+R,$+_-R],L=l.y(c.q3),q=l.y(c.q1);e.boxes.push({x:W,y:L,width:M-W,height:Math.max(.5,q-L),color:X(v,T?.transparency??BOX_LOOK.fillTransparency),series:E,category:m});const O=(M-W)/4,p=D=>{e.lines.push({d:D,color:v,width:S,series:E,category:m})};p(`M${h(W)} ${h(L)} H${h(M)} V${h(q)} H${h(W)} Z`),p(`M${h(W)} ${h(l.y(c.median))} H${h(M)}`),p(`M${h(b)} ${h(L)} V${h(l.y(c.high))}`),p(`M${h(b)} ${h(q)} V${h(l.y(c.low))}`),p(`M${h(b-O)} ${h(l.y(c.high))} H${h(b+O)}`),p(`M${h(b-O)} ${h(l.y(c.low))} H${h(b+O)}`);const A=BOX_LOOK.point;if(t.show_mean_markers!==!1){const D=l.y(c.mean);p(`M${h(b-A)} ${h(D-A)} L${h(b+A)} ${h(D+A)} M${h(b-A)} ${h(D+A)} L${h(b+A)} ${h(D-A)}`)}u[E]?.push([b,l.y(c.mean)]);const H=[...t.show_outliers===!1?[]:c.outliers,...t.show_inner_points===!0?c.inner:[]];for(const D of H)e.dots.push({x:b,y:l.y(D),r:A,color:v});const N=T?V(t,T,m):void 0;N&&T&&e.words.push({x:M+n*.3,y:l.y(c.median),text:F(c.median,N.number_format??T.number_format),size:N.size??n,anchor:"start",color:N.color??f,...N.bold===!0?{bold:!0}:{}})})}),t.show_mean_line===!0&&u.forEach((r,m)=>{r.length<2||e.lines.push({d:r.map(([g,_],c)=>`${c===0?"M":"L"}${h(g)} ${h(_)}`).join(" "),color:t.series[m]?.color??G(m),width:S,series:m})})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export*from"./color.js";export*from"./chart.js";export*from"./chart-file.js";export*from"./chart-xml.js";export*from"./embedded.js";export*from"./svg.js";
|
|
2
|
+
export*from"./color.js";export*from"./chart.js";export*from"./extended.js";export*from"./tree.js";export*from"./classic.js";export*from"./chart-file.js";export*from"./chart-xml.js";export*from"./chartex-xml.js";export*from"./embedded.js";export*from"./svg.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{colorRgb as
|
|
2
|
+
import{colorRgb as w}from"./color.js";import{chartDrawing as p}from"./chart.js";export const OFFICE_COLORS={dk1:"#000000",lt1:"#FFFFFF",dk2:"#44546A",lt2:"#E7E6E6",accent1:"#4472C4",accent2:"#ED7D31",accent3:"#A5A5A5",accent4:"#FFC000",accent5:"#5B9BD5",accent6:"#70AD47",hlink:"#0563C1",folHlink:"#954F72"};const k={"&":"&","<":"<",">":">",'"':"""},i=r=>r.replace(/[&<>"]/gu,o=>k[o]??o),e=r=>String(Number(r.toFixed(3)));function F(r,o){const c=t=>{const l=t.fill===void 0?"none":o(t.fill),$=t.width>0?o(t.color):"none",s=t.dash===void 0?"":` stroke-dasharray="${i(t.dash)}"`;return`<path d="${i(t.d)}" fill="${l}" stroke="${$}" stroke-width="${e(t.width)}" stroke-linejoin="round"${s}/>`},n=[];for(const t of[...r.grid,...r.shapes])n.push(c(t));for(const t of[...r.boxes,...r.keys])n.push(t.line!==void 0||t.marker===!0?`${t.line===void 0?"":`<path d="M${e(t.x)} ${e(t.y+t.height/2)} H${e(t.x+t.width)}" fill="none" stroke="${o(t.color)}" stroke-width="${e(t.line.width)}"${t.line.dash===void 0?"":` stroke-dasharray="${i(t.line.dash)}"`}/>`}${t.marker===!0?`<circle cx="${e(t.x+t.width/2)}" cy="${e(t.y+t.height/2)}" r="${e(Math.min(t.height/2,3))}" fill="${o(t.color)}"/>`:""}`:t.hollow===!0?`<rect x="${e(t.x)}" y="${e(t.y)}" width="${e(t.width)}" height="${e(t.height)}" fill="none" stroke="${o(t.color)}" stroke-width="1.5"/>`:`<rect x="${e(t.x)}" y="${e(t.y)}" width="${e(t.width)}" height="${e(t.height)}" fill="${o(t.color)}"/>`);for(const t of[...r.axes,...r.lines])n.push(c(t));for(const t of r.dots)n.push(t.d===void 0?`<circle cx="${e(t.x)}" cy="${e(t.y)}" r="${e(t.r)}" fill="${o(t.color)}"/>`:`<path d="${i(t.d)}" fill="${o(t.color)}"/>`);for(const t of r.words){const l=t.rotate===void 0?"":` transform="rotate(${e(t.rotate)} ${e(t.x)} ${e(t.y)})"`;n.push(`<text x="${e(t.x)}" y="${e(t.y)}" font-size="${e(t.size)}" text-anchor="${t.anchor}" dominant-baseline="central" fill="${o(t.color)}"${l}>${i(t.text)}</text>`)}return n.join("")}export function chartSvg(r,o,c,n={}){const t=n.pointsPerPixel??.75,l=o*t,$=c*t,s=n.colors??OFFICE_COLORS,d=g=>w(g,s),f=n.font??"Carlito, Calibri, Arial, sans-serif",h=n.paper??"#FFFFFF",a=n.edge??"#D9D9D9",u=n.label===void 0?"":` role="img" aria-label="${i(n.label)}"`,x=h==="none"&&a==="none"?"":`<rect x="0.375" y="0.375" width="${e(l-.75)}" height="${e($-.75)}" fill="${i(h)}" stroke="${i(a)}" stroke-width="${a==="none"?"0":"0.75"}"/>`;return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${e(l)} ${e($)}" width="${e(o)}" height="${e(c)}" font-family="${i(f)}"${u}>${x}${F(p(r,l,$,n.measure),d)}</svg>`}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{accentOf as A,formatValue as k,textWidth as D}from"./chart.js";const z=t=>String(Number(t.toFixed(3)));export function chartTree(t){const s={name:"",value:0,children:[],depth:0,branch:0},e=t.series[0]?.values??[];return t.categories.forEach((y,r)=>{const p=e[r];if(typeof p!="number"||!(p>0))return;const l=(t.category_levels?.[r]??[y]).filter(i=>i!=="");let c=s;s.value+=p,l.forEach((i,d)=>{let f=c.children.find(g=>g.name===i);f||(f={name:i,value:0,children:[],depth:d+1,branch:d===0?s.children.length:c.branch},c.children.push(f)),f.value+=p,d===l.length-1&&(f.point=r),c=f})}),s}const q=t=>[...t].sort((s,e)=>e.value-s.value);function V(t,s){const e=new Map,y=(1+Math.sqrt(5))/2;let{x0:r,y0:p}=s;const{x1:l,y1:c}=s;let i=t.reduce((g,x)=>g+x.value,0),d=0;const f=t.length;for(;d<f;){const g=l-r,x=c-p;let a=d,n=t[a++]?.value??0,h=n,o=n;const w=Math.max(x/g,g/x)/(i*y);let b=n*n*w,v=Math.max(o/b,b/h);for(;a<f;a++){const u=t[a]?.value??0;n+=u,h=Math.min(h,u),o=Math.max(o,u),b=n*n*w;const M=Math.max(o/b,b/h);if(M>v){n-=u;break}v=M}const m=t.slice(d,a);if(g<x){const u=i>0?p+x*n/i:c;let M=r;for(const $ of m){const _=n>0?g*$.value/n:0;e.set($,{x0:M,y0:p,x1:M+_,y1:u}),M+=_}p=u}else{const u=i>0?r+g*n/i:l;let M=p;for(const $ of m){const _=n>0?x*$.value/n:0;e.set($,{x0:r,y0:M,x1:u,y1:M+_}),M+=_}r=u}i-=n,d=a}return e}function F(t,s){const e=t.labels,y=t.series[0],r=[];return e&&(e.show_category_name===!0&&r.push(s.name),e.show_value===!0&&r.push(k(s.value,e.number_format??y?.number_format))),r}export function treemapDrawing(t,s,e,y,r=D){const p=chartTree(t),l={x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top};s.plot=l;const c=t.labels?.size??y,i=(t.parent_labels??"banner")==="banner",d=c*1.6,f=a=>(a.point!==void 0?t.series[0]?.point_colors?.[a.point]:void 0)??t.category_colors?.[a.branch]??A(a.branch),g=(a,n,h=!1)=>{const o=n.x1-n.x0-c*.8;n.y1-n.y0<c*1.4*a.length||a.forEach((w,b)=>{r(w,c)>o||s.words.push({x:n.x0+c*.4,y:n.y0+c*(.9+b*1.2),text:w,size:c,anchor:"start",color:t.labels?.color??"lt1",...h?{bold:!0}:{}})})},x=(a,n)=>{for(const[h,o]of V(q(a),n)){if(h.children.length===0){s.boxes.push({x:o.x0,y:o.y0,width:o.x1-o.x0,height:o.y1-o.y0,color:f(h),series:0,category:h.point??0}),s.lines.push({d:`M${z(o.x0)} ${z(o.y0)} H${z(o.x1)} V${z(o.y1)} H${z(o.x0)} Z`,color:"lt1",width:1}),g(F(t,h),o);continue}const w=h.depth===1&&i;w&&(s.boxes.push({x:o.x0,y:o.y0,width:o.x1-o.x0,height:Math.min(d,o.y1-o.y0),color:f(h),series:0,category:0}),g([h.name],{...o,y1:o.y0+d},!0)),x(h.children,{...o,y0:w?Math.min(o.y1,o.y0+d):o.y0}),h.depth===1&&t.parent_labels==="overlapping"&&g([h.name],o,!0)}};x(p.children,{x0:l.x,y0:l.y,x1:l.x+l.width,y1:l.y+l.height})}function W(t,s,e,y,r,p){const l=(d,f)=>`${z(t+d*Math.sin(f))} ${z(s-d*Math.cos(f))}`,c=p-r>=Math.PI*2?r+Math.PI*2-1e-4:p,i=c-r>Math.PI?1:0;return`M${l(y,r)} A${z(y)} ${z(y)} 0 ${String(i)} 1 ${l(y,c)} L${l(e,c)} A${z(e)} ${z(e)} 0 ${String(i)} 0 ${l(e,r)} Z`}export function sunburstDrawing(t,s,e,y,r=D){const p=chartTree(t),l=h=>h.children.length===0?h.depth:Math.max(...h.children.map(l)),c=Math.max(1,l(p)),i=Math.max(0,Math.min(e.right-e.left,e.bottom-e.top)/2),d=(e.left+e.right)/2,f=(e.top+e.bottom)/2;s.plot={x:d-i,y:f-i,width:i*2,height:i*2};const g=i/(c*2+1),x=(i-g)/c,a=t.labels?.size??y,n=(h,o,w)=>{const b=h.reduce((m,u)=>m+u.value,0);let v=o;for(const m of q(h)){const u=v+(b>0?(w-o)*m.value/b:0),M=g+x*(m.depth-1),$=M+x;s.shapes.push({d:W(d,f,M,$,v,u),color:"lt1",width:1,fill:(m.point!==void 0?t.series[0]?.point_colors?.[m.point]:void 0)??t.category_colors?.[m.branch]??A(m.branch),series:0,category:m.point??0});const _=(v+u)/2,E=(M+$)/2,S=F(t,m),N=(u-v)*E,O=(P,I)=>1/Math.hypot(Math.sin(_)/P,Math.cos(_)/I),H=O(x*.9,N*.9),L=O(N*.9,x*.9);S.every(P=>r(P,a)<H)&&L>a*1.2*S.length&&S.forEach((P,I)=>{s.words.push({x:d+E*Math.sin(_),y:f-E*Math.cos(_)+a*1.2*(I-(S.length-1)/2),text:P,size:a,anchor:"middle",color:t.labels?.color??"lt1"})}),n(m.children,v,u),v=u}};n(p.children,0,Math.PI*2)}export const FUNNEL_GAP=.06;export function funnelDrawing(t,s,e,y,r,p=D){const l=t.series[0],c=t.categories.map((v,m)=>Math.max(0,l?.values[m]??0)),i=Math.max(0,...c),d=y*.5,f=t.category_axis??{},g=f.visible!==!1&&f.tick_label_position!=="none",x=g?Math.max(0,...t.categories.map(v=>p(v,y)))+d:0,a={x:e.left+x,y:e.top,width:Math.max(0,e.right-e.left-x),height:Math.max(0,e.bottom-e.top)};s.plot=a;const n=a.height/Math.max(1,c.length),h=t.gap_width===void 0?FUNNEL_GAP:t.gap_width/100,o=n/(1+h),w=t.labels,b=w?.size??y;c.forEach((v,m)=>{const u=i>0?a.width*v/i:0,M=a.x+(a.width-u)/2,$=a.y+m*n+(n-o)/2;if(s.boxes.push({x:M,y:$,width:u,height:o,color:l?.point_colors?.[m]??l?.color??A(0),series:0,category:m}),g&&s.words.push({x:a.x-d,y:$+o/2,text:t.categories[m]??"",size:y,anchor:"end",color:r}),w&&w.show_value!==!1){const _=k(v,w.number_format??l?.number_format),E=p(_,b)<u-b;s.words.push({x:E?M+u/2:M+u+b*.4,y:$+o/2,text:_,size:b,anchor:E?"middle":"start",color:w.color??(E?"lt1":r),...w.bold===!0?{bold:!0}:{}})}})}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{itemFiles as Me,
|
|
3
|
-
`)}}async function
|
|
2
|
+
import{itemFiles as Me,kindsUsed as Ce,listsFile as Le,within as Pe}from"@allyhub/formats";import{createHash as ae}from"node:crypto";import{uniformInt as de}from"pure-rand/distribution/uniformInt";import{xoroshiro128plus as Ie}from"pure-rand/generator/xoroshiro128plus";import{fileProblems as ve,listedFileProblems as De,inTime as fe,itemKindBuild as N}from"@allyhub/build";import{readPng as ue}from"@allyhub/measure";import{countLevels as Ee,problem as me}from"@allyhub/diagnostics";import{comboIdOf as j,comboKey as le,comboMatches as Fe,coverCombos as Oe,pieceNamed as B,CONSOLE_LIMIT as Ke}from"@allyhub/piece";import{OutputCache as _e,cacheKey as Ae,checkerId as Te}from"./cache.js";import{consoleOf as Ne,baseDigest as je,outputDigest as pe,dedupe as he,StuckError as we,CheckSession as Be,runtimeDigest as He,extraCombos as Re,measureParts as ze,kindsNeeded as Ue}from"@allyhub/project";export function checkStats(e,i,n,t=0){const o=i.length;return{loaded:i,reused:n,outputs:{total:e,checked:o,reused:Math.max(0,e-o-t),covered:t}}}export const plural=(e,i)=>`${String(e)} ${i}${e===1?"":"s"}`;const be=e=>Ie(ae("sha256").update(e).digest().readInt32BE(0));export function samplesFor(e,i,n,t){const o=new Set(e.slice(0,t)),r=be(n),c=Math.floor(i*30);for(let a=0;o.size<Math.min(t,c)&&a<t*20;a++)o.add(de(r,0,c-1)/30);return[...o]}export function shuffled(e,i){const n=[...e],t=be(i);for(let o=n.length-1;o>0;o--){const r=de(t,0,o),c=n[o],a=n[r];c===void 0||a===void 0||(n[o]=a,n[r]=c)}return n}export const RASTER_NOISE=3,RASTER_SPECKS=8;export function frameDifference(e,i){const n=ue(e),t=ue(i);if(n.width!==t.width||n.height!==t.height)return{max:255,pixels:Math.max(n.width*n.height,1)};let o=0,r=0;for(let c=0;c<n.data.length;c+=4){let a=0;for(let p=0;p<4;p++)a=Math.max(a,Math.abs((n.data[c+p]??0)-(t.data[c+p]??0)));a>RASTER_NOISE&&r++,a>o&&(o=a)}return{max:o,pixels:r}}const ge=e=>ae("sha256").update(e).digest("hex");export async function determinism(e,i,n){const t=e.timeline,o=samplesFor(t.parts.map(d=>d.still),t.duration,i,n),r=new Map;for(const d of[...o].sort((u,k)=>u-k))r.set(d,await e.shot(d));const c=[];let a=0;for(const d of shuffled(o,`${i}:shuffle`)){const u=r.get(d),k=await e.shot(d);if(!u||ge(k)===ge(u))continue;const S=frameDifference(u,k);S.pixels>RASTER_SPECKS&&(c.push(d),a=Math.max(a,S.max))}if(c.length===0)return[];c.sort((d,u)=>d-u);const p=[...new Set(c.flatMap(d=>t.parts.filter(u=>d>=u.start&&d<u.end).map(u=>u.key)))];return[me("AK-D002",`${plural(c.length,"moment")} drew differently in order and out of order (${c.map(d=>`${d.toFixed(2)}s`).join(", ")}; pixels differ by up to ${String(a)} levels). render must depend only on t, not on state left by an earlier frame.`,{piece:e.target.piece,output:e.target.output,combo:e.target.combo,format:e.target.format,t:c[0]??0,...p.length===1&&p[0]?{part:p[0]}:{}})]}function Ge(e,i){const n=e.piece===void 0?void 0:i.pieces.find(o=>o.id===e.piece)?.place??e.piece,t=e.where?.file;return i.items.filter(o=>o.id===n||t!==void 0&&Le(Me(o),t))}export function askedProblems(e,i){return e.problems.filter(n=>{if(i===void 0)return!0;const t=Ge(n,e);return t.length===0||t.some(o=>B({id:o.id,path:o.entry},i))})}export function summarize(e){const i=Ee(e);return{status:i.errors>0?"failed":i.warnings>0?"warnings":"passed",...i}}function Ye(e,i){const n=r=>[r.piece??"",r.output??"",r.combo?le(r.combo):"",r.format??"",r.part??"",r.where?.file??"",String(r.where?.line??0).padStart(6,"0"),r.code].join("\0"),t=n(e),o=n(i);return t<o?-1:t>o?1:0}class qe{spent=new Map;on=process.env.ALLYHUB_CHECK_TIMINGS==="1";async time(i,n){if(!this.on)return n();const t=performance.now();try{return await n()}finally{this.spent.set(i,(this.spent.get(i)??0)+(performance.now()-t)/1e3)}}report(){if(!this.on)return;const i=[...this.spent].sort((n,t)=>t[1]-n[1]);process.stderr.write(`Check timings (s): ${i.map(([n,t])=>`${n} ${t.toFixed(2)}`).join(", ")}
|
|
3
|
+
`)}}const Je=(e,i)=>{const n=new Set(Ce(e,i));return e.filter(t=>n.has(t)||t.layers===!0)};async function Qe(e){const i=[],n=new Set;for(const t of e){if(t.layers!==!0)continue;const o=await N(e,{kind:t.id});!o?.layers||n.has(o)||(n.add(o),i.push(o.layers))}return i}export async function runCheck(e){const i=new qe,n=e.session??await i.time("prepare (discover, metadata, bundle)",()=>Be.open({root:e.dir,kinds:Ue(e.kinds),...e.buildDir===void 0?{}:{buildDir:e.buildDir},...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit}}));try{const t=n.prepared,o=e.samples??12,r=n.consoleLimit,c=await He(),a=await _e.open(t.root,await Te({kinds:Je(t.kinds,t.items),runtimeSha:c,samples:o,gpu:n.gpu,...r===Ke?{}:{consoleLimit:r}})),p=e.facts!==!1,d=await Qe(t.kinds),u=[],k=[...askedProblems(t,e.piece),...e.files===void 0?[]:await ve(t.root,t.files.filter(s=>e.piece===void 0||Pe(s,e.piece.replace(/^\.\//u,"").replace(/\/+$/u,""))),t.items,e.files),...e.files===void 0||e.piece!==void 0?[]:await De(t.root,t.files,t.kinds,e.files)];let S=[];const K=[],H=[],R=[];let z=0,U=0;const G=[],ke=t.pieces.filter(s=>e.piece===void 0||B({id:s.id,path:s.place},e.piece));for(const s of ke){if(!t.bundle?.chunks.entries[s.id.replaceAll("/","__")])continue;const w=s.kind,M=s.format,q=await je(t,s,c),J=async y=>{const $={problems:[],facts:[]},W=new Set,v=[...s.combos.filter(m=>!e.combos?.length||e.combos.some(h=>Fe(m,h,j(s.matrix,m)))),...Re(s,e.combos)],Se=new Set(s.matrix?Oe(s.matrix.space,s.dims,v):v.keys()),X=[],Z=m=>{H.push(m);for(const h of m.reads?.media??[])W.add(h.path);m.timeline&&X.push({...m,timeline:m.timeline})};let T=!1;const $e=(m,h,D)=>{if(e.fresh===!0)return;const f=a.get(m),C=f?.result.reads,E=f?.result.timeline;return!f||!C||!E||D&&!f.sampled||f.factless===!0&&p?void 0:pe(t,q,s,h,C)===f.digest?f:void 0};for(const[m,h]of v.entries()){const D=j(s.matrix,h),f={piece:s.id,output:w,combo:h,format:M},C=le(h);if(K.push({...f,...D?{id:D}:{},key:C}),!Se.has(m)){U++;continue}const E=fe(s,t.kinds)&&!T,F=Ae(s.id,w,C,M),x=$e(F,h,E);if(x){z++,x.sampled&&(T=!0),$.problems.push(...x.problems),$.facts.push(...x.facts),u.push({version:f,log:x.console}),Z({...x.result,digest:x.digest}),a.set(F,x);continue}R.push(`${s.id}/${w}/${C}/${M}`);const b=await i.time("load (mount, stills)",()=>n.open(s,f));try{const g=b.summary,L=[],P=[...g?.facts??[]],ee={problems:L,facts:P},te={target:f,layout:()=>i.time("layout measure",()=>fe(s,t.kinds)?b.measure():ze(n,s,b,{fresh:e.fresh===!0}))};let ne=!1;try{if(g){try{await y.layout?.(b,ee,te)}catch(l){if(l instanceof we)throw l}if(p)for(const l of d){const I=l.facts?.bind(l);I&&P.push(...await i.time("layers' facts",()=>I(b)))}}if(g&&E&&(T=!0,ne=!0,L.push(...await i.time("determinism",()=>determinism(b,`${s.id}:${w}:${M}`,o))),await y.timing?.(b,ee,te)),g&&p)for(const l of d){const I=l.readBack?.bind(l);I&&P.push(...await i.time("layers read back",()=>I(b)))}}catch(l){if(!(l instanceof we))throw l;l.kept||L.push(me("AK-P003",l.message,{piece:f.piece,output:f.output,combo:f.combo,format:f.format}))}L.push(...await b.problems());const ie=he(L);$.problems.push(...ie);const se=y.keep?.bind(y),oe=se?P.filter(l=>se(l)):P;$.facts.push(...oe);const re=await b.console();u.push({version:f,log:re});const O=g?pe(t,q,s,h,g.reads):void 0,ce={...f,...g?{timeline:g.timeline,reads:g.reads}:{}};Z({...ce,...O?{digest:O}:{}}),O&&a.set(F,{digest:O,result:ce,problems:ie,facts:oe,sampled:ne,...p?{}:{factless:!0},console:re})}finally{await b.close()}}return{...$,loaded:X,combos:v.map(m=>{const h=j(s.matrix,m);return{combo:m,...h===void 0?{}:{id:h}}}),media:W}},Q=await N(t.kinds,s),xe={root:t.root,piece:s,prepared:t,facts:p,...e.ffmpeg===void 0?{}:{ffmpeg:e.ffmpeg},mediaPath:y=>n.mediaPath(y),time:(y,$)=>i.time(y,$),versions:J},V=Q?.checkPiece?.bind(Q),A=V?await V(xe):await J({});k.push(...A.problems),S.push(...A.facts),G.push(...A.wholes??[])}for(const s of t.items){const w=await N(t.kinds,s);if(!w?.check||e.piece!==void 0&&!B({id:s.id,path:s.entry},e.piece))continue;const M=w.check.bind(w);k.push(...await i.time("items' own checks",()=>M(s,{root:t.root,data:t.data})))}await a.save(new Set(t.pieces.map(s=>s.id)));const Y=he(k).sort(Ye);for(const s of d){const w=s.current?.bind(s);w&&(S=await w(S,{root:t.root}))}i.report();const ye=new Set(t.pieces.map(s=>s.place)),_={};for(const s of t.items)ye.has(s.id)||(_[s.kind]=(_[s.kind]??0)+1);return{targets:K,items:_,check:summarize(Y),problems:Y,facts:S,results:H,wholes:G,stats:checkStats(K.length,R,z,U),console:Ne(r,u)}}finally{e.session||await n.close()}}
|
|
@@ -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 S,readFile as
|
|
2
|
+
import{mkdir as S,readFile as w,writeFile as g}from"node:fs/promises";import{dirname as k}from"node:path";import{BLOBS_MAX as y,BlobsResponseSchema as M}from"@allyhub/protocol/blobs";import{z as r}from"zod";import{sha256Of as O}from"./hashes.js";import{putToStorage as E}from"./storage.js";export class BlobsUnavailable extends Error{sha256s;constructor(e){super(`${String(e.length)} blob(s) storage lacks cannot be put from here: their bytes are not here any more.`),this.name="BlobsUnavailable",this.sha256s=e}}const v=r.object({scope:r.string(),held:r.array(r.string())}),N=4,B=30*6e4,T=3*6e4;export class BlobStore{cloud;path;file;known;delaysMs;constructor(e,t){this.cloud=e,this.path=t.path,this.file=t.file,this.delaysMs=t.delaysMs}async scope(){const e=await this.cloud.requireKey();return JSON.stringify([e.account,e.organization??null])}async load(){const e=await this.scope();return this.known?.scope!==e&&(this.known={scope:e,held:await this.read(e)}),this.known.held}async read(e){if(this.file===void 0)return new Set;let t;try{t=JSON.parse(await w(this.file,"utf8"))}catch(a){if(a instanceof SyntaxError||a instanceof Error&&"code"in a&&a.code==="ENOENT")return new Set;throw a}const s=v.safeParse(t);return s.success&&s.data.scope===e?new Set(s.data.held):new Set}async save(){this.file===void 0||this.known===void 0||(await S(k(this.file),{recursive:!0}),await g(this.file,JSON.stringify({scope:this.known.scope,held:[...this.known.held]})))}async bytesOf(e){if(e.bytes!==void 0)return e.bytes;if(e.file===void 0)return;let t;try{t=await w(e.file)}catch(s){if(s instanceof Error&&"code"in s&&s.code==="ENOENT")return;throw s}return e.checkBytes===!0&&O(t)!==e.sha256?void 0:t}async forget(e){const t=await this.load();for(const s of e)t.delete(s);await this.save()}async put(e){let t=0;const s=await this.load(),a=new Map;for(const i of e)s.has(i.sha256)||a.set(i.sha256,i);const l=[...a.values()],o=[];for(let i=0;i<l.length;i+=y){const d=l.slice(i,i+y),{uploads:c}=M.parse(await this.cloud.json(this.path,{method:"POST",signal:AbortSignal.timeout(T),body:{blobs:d.map(n=>({sha256:n.sha256,size:n.size,contentType:n.type}))}}));let f=0;const m=async()=>{for(;f<c.length;){const n=c[f++],h=n&&a.get(n.sha256);if(!n||!h)continue;const u=await this.bytesOf(h);if(u===void 0){o.push(h.sha256);continue}await E(this.cloud.config.fetch,n.url,{headers:n.headers,body:u,timeoutMs:B,what:"a blob",code:"blob-refused",...this.delaysMs===void 0?{}:{delaysMs:this.delaysMs}}),t+=1}};await Promise.all(Array.from({length:Math.min(N,c.length)},m));const b=new Set(o);for(const n of d)b.has(n.sha256)||s.add(n.sha256);await this.save()}if(o.length>0)throw new BlobsUnavailable(o);return t}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{randomUUID as X}from"node:crypto";import{mkdir as
|
|
3
|
-
`),r}async function dt(t,e){const i=S(t)===""?`${t}.json`:t;return await
|
|
4
|
-
`),i}const
|
|
5
|
-
`)}const P=(t,e)=>q(C(t,e),{force:!0});async function ht(t,e,i){const n=await Y(
|
|
2
|
+
import{randomUUID as X}from"node:crypto";import{mkdir as A,readdir as Y,readFile as T,rm as q,writeFile as D}from"node:fs/promises";import{basename as $,dirname as k,extname as S,join as j}from"node:path";import{EXIT as p}from"@allyhub/protocol/cli";import{FileContentResponseSchema as Q,ToolCallSchema as R,callPath as V,fileContentPath as tt,parseAllyFilePath as I,toolCallsPath as et}from"@allyhub/protocol/cloud";import{genFileFor as U}from"@allyhub/formats/data/gen";import{CloudError as d}from"./errors.js";import{genRecord as H,inputHash as nt,namedFile as it,readGen as at,toolWords as ot,writeGen as M,writeWords as rt}from"./records.js";import{TRANSIENT_STATUSES as st}from"./storage.js";import{withKnownUploads as lt}from"./uploads.js";export const WAIT_SECONDS=900,POLL_SECONDS={least:1,most:60},RETRY_SECONDS={least:1,most:30},READ_SECONDS=120;const ft=t=>t instanceof d&&(t.code==="network"||t.status!==void 0&&st.has(t.status));function ut(t){if(!/^https?:\/\//iu.test(t))return t;let e;try{e=new URL(t)}catch{return t}if(e.search==="")return t.replace(/^https?:\/\//iu,"");const i=/filename\*?=(?:UTF-8'')?"?([^";]+)/iu.exec(e.searchParams.get("response-content-disposition")??"")?.[1];return i===void 0?void 0:decodeURIComponent(i)}export function inputSlug(t){return Object.values(t).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>typeof e=="string").flatMap(e=>ut(e)??[]).join("-").replace(/[^\p{L}\p{N}._]+/gu,"-").replace(/^-+|-+$/gu,"").slice(0,40).replace(/-+$/u,"")}const L=t=>t.replace(/[^A-Za-z0-9_-]/gu,"_").slice(0,8),W=(t,e)=>{const i=S(t);return`${$(t,i)}-${L(e)}${i}`};async function ct(t,e,i,n,o){await A(t,{recursive:!0});const s=[e,inputSlug(i),L(n)].filter(Boolean).join("-"),r=j(t,`${s}.output.json`);return await D(r,`${JSON.stringify(o,null,2)}
|
|
3
|
+
`),r}async function dt(t,e){const i=S(t)===""?`${t}.json`:t;return await A(k(i),{recursive:!0}),await D(i,`${JSON.stringify(e,null,2)}
|
|
4
|
+
`),i}const E=t=>j(t.config.cacheDir,"jobs"),C=(t,e)=>j(E(t),`${e.replace(/[^A-Za-z0-9_-]/gu,"_")}.json`);async function wt(t,e,i){await A(k(C(t,e)),{recursive:!0}),await D(C(t,e),`${JSON.stringify(i,null,2)}
|
|
5
|
+
`)}const P=(t,e)=>q(C(t,e),{force:!0});async function ht(t,e,i){const n=await Y(E(t)).catch(()=>[]);for(const o of n.filter(s=>s.endsWith(".json")).sort()){const s=await T(j(E(t),o),"utf8").then(r=>JSON.parse(r)).catch(()=>{});if(s?.jobId!==void 0&&s.file===e&&s.inputHash===i)return s.jobId}}async function pt(t,e){try{return JSON.parse(await T(C(t,e),"utf8"))}catch{throw new d("unknown-job",`No job ${e} was started on this computer.`,{exit:p.notFound,hint:"Call the tool again: that is a new call."})}}async function B(t,e,i,n,o){const{url:s}=Q.parse(await t.json(tt(e,"attachment"),{signal:v(o)}));let r;try{const u=await t.config.fetch(s,o?{signal:o}:{});if(!u.ok)throw new d("download-failed",`Downloading ${i} answered ${String(u.status)}.`,{exit:p.platform,status:u.status});r=Buffer.from(await u.arrayBuffer())}catch(u){throw u instanceof d||o?.aborted===!0?u:new d("network",`Downloading ${i} failed: ${u instanceof Error?u.message:String(u)}`,{exit:p.platform,cause:u})}const w="dir"in n?j(n.dir,$(n.name??i)):S(n.file)?n.file:`${n.file}${S(i)}`;return await A(k(w),{recursive:!0}),await D(w,r),w}const v=t=>t?AbortSignal.any([t,AbortSignal.timeout(READ_SECONDS*1e3)]):AbortSignal.timeout(READ_SECONDS*1e3),z=(t,e)=>new Promise((i,n)=>{const o=setTimeout(i,t*1e3);e?.addEventListener("abort",()=>{clearTimeout(o),n(e.reason instanceof Error?e.reason:new Error("Stopped."))},{once:!0})});export async function callTool(t,e,i,n){const o=n.file,s=await lt(t,i,n.base),r=nt(e,s);let w=n.jobId,u=!1;if(o!==void 0&&w===void 0){w=await ht(t,o,r);const f=w===void 0?await it(o):void 0,l=f?await at(f):void 0;if(n.force===!0)u=l!==void 0;else{if(f&&!l)throw new d("file-exists",`${f} is there, without a record (${$(U(f))}) saying a tool call made it.`,{exit:p.conflict,hint:"Choose another --file, or pass --force to replace it."});if(f&&l){if(l.tool===e&&l.inputHash===r)return{tool:e,output:typeof l.output?.allyFilePath=="string"?l.output:JSON.parse(await T(f,"utf8")),file:f,gen:U(f),kept:{at:l.at}};throw new d("file-exists",`${f} was made by ${l.tool??"another tool"} from another input on ${l.at}.`,{exit:p.conflict,hint:"Choose another --file to keep it, or pass --force to make it again over it (charged again)."})}}}const m=Date.now()+(n.timeoutSeconds??WAIT_SECONDS)*1e3,g=n.signal;let a=w===void 0?R.parse(await t.json(et(e),{method:"POST",body:{input:i},idempotencyKey:X(),...g?{signal:g}:{}})):await G(t,w,m,n);a.status==="working"&&w===void 0&&await wt(t,a.id,{jobId:a.id,tool:e,input:{...i},inputHash:r,outDir:n.outDir,...o===void 0?{}:{file:o}});const K=()=>({tool:e,jobId:a.id,status:"running",elapsedSeconds:(Date.now()-Date.parse(a.createdAt))/1e3,...o===void 0?{}:{file:o}});for(;a.status==="working";){if(n.wait===!1||Date.now()>m)return K();n.onRunning?.(a),await z(Math.min(Math.max((a.pollAfterMs??0)/1e3,POLL_SECONDS.least),POLL_SECONDS.most),g),a=await G(t,a.id,m,n)}if(a.status==="failed")throw await P(t,a.id),new d(`tool-${(a.error?.kind??"failed").replaceAll("_","-")}`,a.error?.message??"The tool failed.",{exit:a.error?.kind==="input"?p.usage:p.platform,hint:a.error?.kind==="input"||a.error?.kind==="not_found"?"A failed call is not charged. Change the input and call again.":a.error?.kind==="unavailable"?"A failed call is not charged. Calling it again will not help until AllyHub sets it up or fixes it.":"A failed call is not charged. Call it again; a supplier's failure often passes."});if(a.status!=="completed")throw new d("tool-state",`The call ${a.id} is ${a.status}, a state this version of allyhub does not know.`,{exit:p.platform,hint:"Update allyhub in the project (npm install allyhub@latest) and call it again."});const h=typeof a.output=="object"&&a.output!==null?a.output:{value:a.output},J=h.allyFilePath,y=typeof J=="string"?I(J):void 0,b=!y&&o!==void 0?await dt(o,h):void 0,c={tool:e,output:h,outputFile:b??await ct(n.outputDir??n.outDir,e,i,a.id,h),...a.credits===void 0?{}:{credits:a.credits}};if(y){const f=a.id,l=await _(f,()=>B(t,y.id,y.name,o!==void 0?{file:o}:{dir:n.outDir,name:W(y.name,f)},g),m,n);c.file=l,c.gen=await M(l,await H(l,{tool:e,input:s,output:h,credits:a.credits}));const x=ot(h),N=h.durationSeconds;x&&(c.words=await rt(l,x,typeof N=="number"&&N>=0?N:void 0)),u&&(c.replaced=!0)}else b!==void 0&&(c.file=b,c.gen=await M(b,await H(b,{tool:e,input:s,output:h,credits:a.credits})),u&&(c.replaced=!0));const O={},Z=c.file===void 0?n.outDir:k(c.file),F=c.file;for(const f of mt(h)){const l=I(f);if(!l)continue;const x=F===void 0?W(l.name,a.id):`${$(F,S(F))}.${$(l.name)}`;O[f]=await _(a.id,()=>B(t,l.id,l.name,{dir:Z,name:x},g),m,n)}return Object.keys(O).length>0&&(c.more=O),await P(t,a.id),c}function mt(t){const e=[],i=(n,o)=>{if(Array.isArray(n))for(const s of n)i(s,!1);else if(typeof n=="object"&&n!==null)for(const[s,r]of Object.entries(n))s==="allyFilePath"&&!o&&typeof r=="string"?e.push(r):i(r,!1)};return i(t,!0),e}async function G(t,e,i,n){try{return await _(e,async()=>R.parse(await t.json(V(e),{signal:v(n.signal)})),i,n)}catch(o){throw o instanceof d&&o.status===404&&await P(t,e),o}}async function _(t,e,i,n){const o=n.retrySeconds??RETRY_SECONDS;for(let s=o.least;;)try{return await e()}catch(r){if(!ft(r)||n.signal?.aborted===!0)throw r;if(Date.now()+s*1e3>i)throw new d(r.code,r.message,{exit:r.exit,...r.status===void 0?{}:{status:r.status},hint:`Call ${t} goes on at AllyHub, charged once when it works: --resume ${t} waits for it again (so does the same call to the same --file).`,cause:r});n.onRetry?.(t,r,s),await z(s,n.signal),s=Math.min(s*2,o.most)}}export async function resumeJob(t,e,i){const n=await pt(t,e);if(i.tool!==void 0&&i.tool!==n.tool)throw new d("wrong-job",`Job ${e} is ${n.tool}'s, not ${i.tool}'s.`,{exit:p.usage,hint:`Resume it with ${n.tool}.`});return await callTool(t,n.tool,n.input,{...i,outDir:n.outDir,...n.file===void 0?{}:{file:n.file},jobId:e})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as w}from"node:crypto";import{mkdir as h,readFile as d,writeFile as g}from"node:fs/promises";import{dirname as p,join as m}from"node:path";import{CATALOG_PATH as i,CatalogSchema as s
|
|
2
|
+
import{createHash as w}from"node:crypto";import{mkdir as h,readFile as d,writeFile as g}from"node:fs/promises";import{dirname as p,join as m}from"node:path";import{CATALOG_PATH as i,CatalogSchema as s}from"@allyhub/protocol/cloud";import{EXIT as c}from"@allyhub/protocol/cli";import{CloudError as f,unreachable as k}from"./errors.js";export const CATALOG_CACHE_SECONDS=3600;const y=a=>m(a.config.cacheDir,`catalog-${w("sha256").update(a.url).digest("hex").slice(0,12)}.json`);async function $(a){try{const e=JSON.parse(await d(a,"utf8")),o=s.safeParse(e.catalog);return o.success&&typeof e.at=="number"?{at:e.at,catalog:o.data}:void 0}catch{return}}async function l(a,e){await h(p(a),{recursive:!0}),await g(a,JSON.stringify({at:Date.now(),catalog:e}))}export async function loadCatalog(a,e={}){const o=y(a),t=await $(o);if(t&&e.refresh!==!0&&Date.now()-t.at<CATALOG_CACHE_SECONDS*1e3)return t.catalog;let r;try{r=await a.config.fetch(`${a.url}${i}`,{redirect:"error",signal:AbortSignal.timeout(3e4),headers:{accept:"application/json",...t?{"if-none-match":`"${t.catalog.version}"`}:{}}})}catch(u){if(t)return t.catalog;throw k(a.url,u)}if(r.status===304&&t)return await l(o,t.catalog),t.catalog;const n=r.ok?s.safeParse(await r.json().catch(()=>{})):void 0;if(!n?.success){if(t)return t.catalog;throw new f("api-error",`${a.url}${i} answered ${r.ok?"something that is not a catalog":String(r.status)}.`,{exit:c.platform})}return await l(o,n.data),n.data}export async function findTool(a,e){let o=await loadCatalog(a),t=o.tools.find(r=>r.name===e);if(t||(o=await loadCatalog(a,{refresh:!0}),t=o.tools.find(r=>r.name===e)),t)return t;throw new f("unknown-tool",`No tool ${e}.`,{exit:c.notFound,hint:`allyhub <work> lists a work's tools; the works are ${o.works.map(r=>r.id).join(", ")}.`})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{AsyncLocalStorage as _}from"node:async_hooks";import{createHash as b}from"node:crypto";import{BACKGROUND_HEADER as A,
|
|
2
|
+
import{AsyncLocalStorage as _}from"node:async_hooks";import{createHash as b}from"node:crypto";import{BACKGROUND_HEADER as A,DEVICE_HEADER as E,ORGANIZATION_HEADER as g}from"@allyhub/protocol/auth";import{COMMAND_LINE_PAYWALL_MET as O,paywallNumbersOfData as k,paywallReasonOfCode as S}from"@allyhub/protocol/paywall";import{EXIT as r}from"@allyhub/protocol/cli";import{IDEMPOTENCY_KEY_HEADER as $,planPageAddress as p}from"@allyhub/protocol/cloud";import{accessOf as N,SignedOut as x}from"./credentials.js";import{userAgent as z}from"./device.js";import{CloudError as l,notSignedIn as y,unreachable as m}from"./errors.js";export function scrub(u,n){let t=u.replace(/(authorization)\s*[:=]\s*[^\r\n]+/giu,"$1: <redacted>");return t=t.replace(/\bahk_[A-Za-z0-9_-]+/gu,"<api-key>"),t=t.replace(/\beyJ[\w-]+\.[\w-]+\.[\w-]+/gu,"<token>"),n&&(t=t.split(n).join("<key>")),t}const I="/api/tools",w=new _;export function callsMadeInBackground(u){return w.run(!0,u)}export class Cloud{config;constructor(n){this.config=n}async tellStudio(n,t,i){const s=this.config.studioHost;if(s===void 0)return;const c={reason:n,what:t.startsWith(I)?"tool":"command",numbers:k(i)},e=(d,o)=>fetch(`${s}/${d}`,{method:"POST",signal:AbortSignal.timeout(1e3),...o===void 0?{}:{headers:{"content-type":"application/json"},body:o}}).then(async f=>(await f.body?.cancel(),f.status),()=>{});await e(O,JSON.stringify(c))===404&&n==="insufficient_credits"&&await e("out-of-credits")}get url(){return this.config.url}async key(n={}){const t=this.config.apiKey;if(t)return{key:t,source:"env",account:b("sha256").update(t).digest("hex")};try{const i=await N(this.config,n);if(!i)return;const s=i.credentials.account.organization?.id,c=i.credentials.device;return{key:i.token,source:"oauth",account:i.credentials.account.id,expiresAt:i.expiresAt,...s===void 0?{}:{organization:s},...c===void 0?{}:{device:c}}}catch(i){if(i instanceof x)return;throw m(this.url,i)}}async requireKey(){const n=await this.key();if(!n)throw y();return n}keyedFetch=async(n,t)=>{const i=this.config.client===void 0?void 0:await z(this.config.client),s=d=>{const o=new Headers(t?.headers);return o.set("authorization",`Bearer ${d.key}`),i!==void 0&&!o.has("user-agent")&&o.set("user-agent",i),this.config.traceparent!==void 0&&!o.has("traceparent")&&o.set("traceparent",this.config.traceparent),d.organization!==void 0&&!o.has(g)&&o.set(g,d.organization),d.device!==void 0&&o.set(E,d.device),w.getStore()===!0&&o.set(A,"1"),this.config.fetch(n,{...t,headers:o})},c=await this.requireKey(),e=await s(c);if(e.status!==401||c.source!=="oauth"||t?.body instanceof ReadableStream||n instanceof Request)return e;const a=await this.key({refused:c.key});return a===void 0?e:(await e.body?.cancel(),s(a))};async json(n,t={}){const i=t.auth!==!1,s=i?await this.requireKey():void 0,c=s?.key,e=t.organization??s?.organization;let a;try{a=await(i?this.keyedFetch:this.config.fetch)(`${this.url}${n}`,{redirect:"error",signal:t.signal??AbortSignal.timeout(3e4),method:t.method??"GET",headers:{accept:"application/json",...t.body===void 0?{}:{"content-type":"application/json"},...t.organization===void 0?{}:{[g]:t.organization},...t.idempotencyKey===void 0?{}:{[$]:t.idempotencyKey}},...t.body===void 0?{}:{body:JSON.stringify(t.body)}})}catch(h){throw h instanceof l?h:m(this.url,h)}const d=await a.text(),o=a.ok?void 0:T(d,a.status,c,this.url,e),f=S(o?.code);if(f!==void 0&&await this.tellStudio(f,n,o?.data),o&&a.status!==401)throw o;if(a.status===403)throw new l("forbidden","This AllyHub account does not have access to this operation.",{exit:r.auth,status:403});if(a.status===401)throw y(i?"This computer's AllyHub sign-in is not valid any more.":void 0);if(!a.ok)throw new l("api-error",`${this.url}${n} answered ${String(a.status)}: ${scrub(d.slice(0,300),c)}`,{exit:a.status>=500?r.platform:r.usage,status:a.status});if(a.status!==204)try{return JSON.parse(d)}catch{throw new l("api-error",`${this.url}${n} did not answer JSON.`,{exit:r.platform,status:a.status})}}}const R={bad_input:r.usage,insufficient_credits:r.auth,plan_required:r.auth,tool_off:r.auth,storage_full:r.auth,limit_reached:r.auth,forbidden:r.auth,not_found:r.notFound,conflict:r.conflict,cli_outdated:r.platform};function T(u,n,t,i,s){let c;try{c=JSON.parse(u)}catch{return}const e=c?.error;if(typeof e?.code!="string"||typeof e.message!="string")return;const a=e.code==="insufficient_credits"?`Buy credits at ${p(i,{organization:s,open:"credits"})}, or ask an owner or admin of the team to.`:e.code==="plan_required"?`Subscribe at ${p(i,{organization:s,open:"plans"})}, or ask an owner or admin of the team to.`:e.code==="tool_off"?`Turn it on in Capabilities at ${i}/, or ask an owner or admin of the team to.`:typeof e.hint=="string"?e.hint:void 0;return new l(e.code.replaceAll("_","-"),scrub(e.message,t),{exit:R[e.code]??r.platform,status:n,...a===void 0?{}:{hint:a},...typeof e.data=="object"&&e.data!==null?{data:e.data}:{}})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{homedir as d}from"node:os";import{join as u}from"node:path";import{API_KEY_ENV as l
|
|
2
|
+
import{homedir as d}from"node:os";import{join as u}from"node:path";import{API_KEY_ENV as l}from"@allyhub/protocol/cloud";import{CREDENTIALS_FILE as a}from"@allyhub/protocol/auth";import{cacheHome as A}from"@allyhub/runtimes/home";import{osKeychain as E}from"./keychain.js";const T="https://app.allyhub.com",_=["ALLYHUB_URL"],h=/^00-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$/u,H=o=>o.replace(/\/+$/u,"");export function cloudConfig(o,r={}){const c=o[l]?.trim(),t=H(o.ALLYHUB_URL??T),e=o.ALLYHUB_HOME,i=r.client??o.ALLYHUB_CLIENT,n=h.exec(o.TRACEPARENT?.trim()??"")?.[0],f=u(e??d(),a),m=o.ALLYHUB_CREDENTIALS_STORE,L=m==="keychain"||m!=="file"&&e===void 0?E({service:"AllyHub",account:e===void 0?t:`${t} ${f}`}):void 0;return{url:t,from:_.filter(s=>o[s]!==void 0),credentialsFile:f,...L?{keychain:L}:{},cacheDir:u(A(o),"cloud"),...c?{apiKey:c}:{},fetch:r.fetch??fetch,...i===void 0?{}:{client:i},...n===void 0?{}:{traceparent:n},...o.ALLYHUB_STUDIO_HOST?{studioHost:o.ALLYHUB_STUDIO_HOST}:{}}}export function hostsText(o){return o.from.length>0?`${o.url} (from ${o.from.join(", ")})`:o.url}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{randomBytes as T}from"node:crypto";import{chmod as C,mkdir as m,readFile as b,rename as P,rm as h,stat as O,writeFile as z}from"node:fs/promises";import{dirname as x}from"node:path";import*as y from"zod";import{ACCOUNT_PATH as I,AccountSchema as j,AuthServerSchema as N,CLIENT_ID as w,CredentialsFileSchema as $,DeviceAuthorizationSchema as R,METADATA_PATH as J,OAuthErrorSchema as L,SCOPES as U,TokenResponseSchema as B}from"@allyhub/protocol";import{deviceHeaders as W,newDeviceId as E}from"./device.js";import{notSignedIn as G}from"./errors.js";export class SignedOut extends Error{}const K=6e4,p={waitMs:15e3,staleMs:3e4,stepMs:50},g=new Map;export function authServer(e){let n=g.get(e.url);return n||(n=(async()=>{const t=await e.fetch(`${e.url}${J}`,{redirect:"error",headers:{accept:"application/json"},signal:AbortSignal.timeout(3e4)});if(!t.ok)throw new Error(`AllyHub's sign-in metadata answered ${String(t.status)}.`);return N.parse(await t.json())})(),n.catch(()=>g.delete(e.url)),g.set(e.url,n)),n}const V=y.object({revision:y.string().min(1),refreshToken:y.string().min(1),access:$.shape.access}),k=new Map;async function q(e,n,t){const r=k.get(e.credentialsFile);if(!t&&r?.revision===n)return r;if(e.keychain)try{const i=await e.keychain.get(),a=V.safeParse(i===void 0?void 0:JSON.parse(i));return!a.success||a.data.revision!==n?void 0:(k.set(e.credentialsFile,a.data),a.data)}catch{return}}export async function readCredentials(e,n=!1){for(let t=0;t<3;t+=1){let r;try{const a=$.safeParse(JSON.parse(await b(e.credentialsFile,"utf8")));if(!a.success||a.data.url!==e.url)return;r=a.data}catch{return}if(r.keychain===void 0)return r.refreshToken===void 0?void 0:{...r,refreshToken:r.refreshToken};const i=await q(e,r.keychain,n||t>0);if(i){const{access:a,refreshToken:o}=i;return{...r,refreshToken:o,...a?{access:a}:{}}}await new Promise(a=>setTimeout(a,p.stepMs))}}export async function writeCredentials(e,n){const{refreshToken:t,access:r,...i}=n,a={version:i.version,url:i.url,issuer:i.issuer,account:i.account,since:i.since,...i.device===void 0?{}:{device:i.device}};let o={...a,refreshToken:t,...r?{access:r}:{}};if(e.keychain){const f={revision:T(9).toString("base64url"),refreshToken:t,...r?{access:r}:{}},A=JSON.stringify(f);try{if(await e.keychain.set(A),await e.keychain.get()!==A)throw new Error(`${e.keychain.name} did not keep the sign-in.`);k.set(e.credentialsFile,f),o={...a,keychain:f.revision}}catch{}}const d=e.credentialsFile,u=`${JSON.stringify(o,null,2)}
|
|
2
|
+
import{randomBytes as T}from"node:crypto";import{chmod as C,mkdir as m,readFile as b,rename as P,rm as h,stat as O,writeFile as z}from"node:fs/promises";import{dirname as x}from"node:path";import*as y from"zod";import{ACCOUNT_PATH as I,AccountSchema as j,AuthServerSchema as N,CLIENT_ID as w,CredentialsFileSchema as $,DeviceAuthorizationSchema as R,METADATA_PATH as J,OAuthErrorSchema as L,SCOPES as U,TokenResponseSchema as B}from"@allyhub/protocol/auth";import{deviceHeaders as W,newDeviceId as E}from"./device.js";import{notSignedIn as G}from"./errors.js";export class SignedOut extends Error{}const K=6e4,p={waitMs:15e3,staleMs:3e4,stepMs:50},g=new Map;export function authServer(e){let n=g.get(e.url);return n||(n=(async()=>{const t=await e.fetch(`${e.url}${J}`,{redirect:"error",headers:{accept:"application/json"},signal:AbortSignal.timeout(3e4)});if(!t.ok)throw new Error(`AllyHub's sign-in metadata answered ${String(t.status)}.`);return N.parse(await t.json())})(),n.catch(()=>g.delete(e.url)),g.set(e.url,n)),n}const V=y.object({revision:y.string().min(1),refreshToken:y.string().min(1),access:$.shape.access}),k=new Map;async function q(e,n,t){const r=k.get(e.credentialsFile);if(!t&&r?.revision===n)return r;if(e.keychain)try{const i=await e.keychain.get(),a=V.safeParse(i===void 0?void 0:JSON.parse(i));return!a.success||a.data.revision!==n?void 0:(k.set(e.credentialsFile,a.data),a.data)}catch{return}}export async function readCredentials(e,n=!1){for(let t=0;t<3;t+=1){let r;try{const a=$.safeParse(JSON.parse(await b(e.credentialsFile,"utf8")));if(!a.success||a.data.url!==e.url)return;r=a.data}catch{return}if(r.keychain===void 0)return r.refreshToken===void 0?void 0:{...r,refreshToken:r.refreshToken};const i=await q(e,r.keychain,n||t>0);if(i){const{access:a,refreshToken:o}=i;return{...r,refreshToken:o,...a?{access:a}:{}}}await new Promise(a=>setTimeout(a,p.stepMs))}}export async function writeCredentials(e,n){const{refreshToken:t,access:r,...i}=n,a={version:i.version,url:i.url,issuer:i.issuer,account:i.account,since:i.since,...i.device===void 0?{}:{device:i.device}};let o={...a,refreshToken:t,...r?{access:r}:{}};if(e.keychain){const f={revision:T(9).toString("base64url"),refreshToken:t,...r?{access:r}:{}},A=JSON.stringify(f);try{if(await e.keychain.set(A),await e.keychain.get()!==A)throw new Error(`${e.keychain.name} did not keep the sign-in.`);k.set(e.credentialsFile,f),o={...a,keychain:f.revision}}catch{}}const d=e.credentialsFile,u=`${JSON.stringify(o,null,2)}
|
|
3
3
|
`,c=await O(d).catch(()=>{});if(c!==void 0&&(c.mode&511)===384&&await b(d,"utf8").catch(()=>{})===u)return;await m(x(d),{recursive:!0,mode:448});const s=`${d}.${T(6).toString("hex")}.tmp`;try{await z(s,u,{mode:384}),await C(s,384),await P(s,d)}finally{await h(s,{force:!0})}}export async function forgetCredentials(e,n){if(n!==void 0){const t=await readCredentials(e,!0);if(t!==void 0&&t.refreshToken!==n)return}await h(e.credentialsFile,{force:!0}),k.delete(e.credentialsFile),await e.keychain?.delete().catch(()=>{})}async function _(e,n){const t=`${e}.lock`;await m(x(e),{recursive:!0,mode:448});const r=Date.now()+p.waitMs;for(;;)try{await m(t);break}catch{const i=await O(t).catch(()=>{});if(i&&Date.now()-i.mtimeMs>p.staleMs){await h(t,{recursive:!0,force:!0});continue}if(Date.now()>r)throw new Error("Another AllyHub program holds the sign-in's lock.");await new Promise(a=>setTimeout(a,p.stepMs))}try{return await n()}finally{await h(t,{recursive:!0,force:!0})}}async function l(e,n,t,r,i={}){return e.fetch(n,{method:"POST",redirect:"error",headers:{...i,"content-type":"application/x-www-form-urlencoded",accept:"application/json"},body:new URLSearchParams(t).toString(),signal:r??AbortSignal.timeout(3e4)})}async function v(e){const n=await e.json().catch(()=>({}));if(e.ok)return B.parse(n);const t=L.safeParse(n);return{error:t.success?t.data.error:`http_${String(e.status)}`}}const D=e=>({token:e.access_token,expiresAt:new Date(Date.now()+e.expires_in*1e3).toISOString()});export async function accountOf(e,n){const t=await e.fetch(`${e.url}${I}`,{redirect:"error",headers:{authorization:`Bearer ${n}`,accept:"application/json"},signal:AbortSignal.timeout(3e4)});if(t.status===401)throw new SignedOut("This computer is signed out of AllyHub.");if(!t.ok)throw new Error(`Reading the account: AllyHub answered ${String(t.status)}.`);const r=await t.json();return j.parse({id:r.id,email:r.email,...r.name?{name:r.name}:{},...r.organization?{organization:r.organization}:{}})}const Q=e=>e.client??"AllyHub",S=(e,n)=>W(Q(e),n),F=async e=>(await readCredentials(e).catch(()=>{}))?.device??E();async function H(e,n,t){if(n.refresh_token===void 0)throw new Error("AllyHub gave no refresh token.");const r=await authServer(e),i={version:1,url:e.url,issuer:r.issuer,account:await accountOf(e,n.access_token),refreshToken:n.refresh_token,access:D(n),since:new Date().toISOString(),device:t},a=await readCredentials(e).catch(()=>{});return await writeCredentials(e,i),a!==void 0&&a.device===void 0&&a.refreshToken!==i.refreshToken&&await M(e,r.revocation_endpoint,a.refreshToken).then(o=>o.body?.cancel()).catch(()=>{}),i}const M=(e,n,t)=>l(e,n,{token:t,token_type_hint:"refresh_token",client_id:w});export async function signInWithCode(e,n){const t=await authServer(e),r=await F(e),i=await v(await l(e,t.token_endpoint,{grant_type:"authorization_code",client_id:w,code:n.code,redirect_uri:n.redirectUri,code_verifier:n.codeVerifier,resource:e.url},void 0,await S(e,r)));if("error"in i)throw new Error(`Signing in: AllyHub refused the code (${i.error}).`);return H(e,i,r)}export async function signInWithDevice(e,n,t){const r=await authServer(e),i=await l(e,r.device_authorization_endpoint,{client_id:w,scope:U,resource:e.url});if(!i.ok)throw new Error(`Asking for a device's code: AllyHub answered ${String(i.status)}.`);const a=R.parse(await i.json()),o=await F(e),d=await S(e,o);n(a);let u=(a.interval??5)*1e3;const c=Date.now()+a.expires_in*1e3;for(;Date.now()<c;){if(await new Promise(f=>setTimeout(f,u)),t?.aborted===!0)throw new Error("Signing in was stopped.");const s=await v(await l(e,r.token_endpoint,{grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:w,device_code:a.device_code,resource:e.url},void 0,d));if(!("error"in s))return H(e,s,o);if(s.error!=="authorization_pending"){if(s.error==="slow_down"){u+=5e3;continue}throw new Error(s.error==="access_denied"?"The sign-in was turned down.":`Signing in: AllyHub refused (${s.error}).`)}}throw new Error("The device's code ran out before it was entered.")}export async function accessOf(e,n={}){const t=o=>o?.access!==void 0&&o.access.token!==n.refused&&Date.parse(o.access.expiresAt)-K>Date.now()?{token:o.access.token,expiresAt:o.access.expiresAt,credentials:o}:void 0;let r=await readCredentials(e);if(!r||(e.keychain&&r.keychain===void 0&&(r=await _(e.credentialsFile,async()=>{const o=await readCredentials(e,!0);return o&&o.keychain===void 0&&await writeCredentials(e,o),o})),!r))return;const i=t(r);if(i)return i;const a=await authServer(e);return _(e.credentialsFile,async()=>{const o=await readCredentials(e,!0);if(!o)return;const d=t(o);if(d)return d;const u=o.device??E(),c=await v(await l(e,a.token_endpoint,{grant_type:"refresh_token",client_id:w,refresh_token:o.refreshToken,resource:e.url},void 0,await S(e,u)));if("error"in c)throw c.error==="invalid_grant"?(await forgetCredentials(e,o.refreshToken),new SignedOut("This computer is signed out of AllyHub.")):new Error(`Renewing the sign-in: AllyHub answered ${c.error}.`);const s={...o,refreshToken:c.refresh_token??o.refreshToken,access:D(c),device:u};return await writeCredentials(e,s),{token:s.access?.token??c.access_token,expiresAt:s.access?.expiresAt??"",credentials:s}})}export async function signOut(e,n){await forgetCredentials(e,n.refreshToken);const t=await authServer(e),r=await M(e,t.revocation_endpoint,n.refreshToken);if(await r.body?.cancel(),!r.ok&&r.status!==400)throw new Error(`Signing out: AllyHub answered ${String(r.status)}.`)}export async function chooseOrganization(e,n){await _(e.credentialsFile,async()=>{const t=await readCredentials(e,!0);if(!t)throw G();await writeCredentials(e,{...t,account:{...t.account,organization:n}})})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{execFile as m}from"node:child_process";import{randomBytes as l}from"node:crypto";import{arch as p,hostname as w,platform as s,release as r}from"node:os";import{DEVICE_HEADER as d,DEVICE_NAME_HEADER as f}from"@allyhub/protocol";const a=(e,t)=>new Promise(n=>{m(e,t,{timeout:2e3},(c,u)=>{const o=u.trim();n(c===null&&o!==""?o:void 0)})});let i;export function thisComputer(){return i??=(async()=>{const e=w().replace(/\.local$/u,"");switch(s()){case"darwin":{const[t,n]=await Promise.all([a("/usr/sbin/scutil",["--get","ComputerName"]),a("/usr/bin/sw_vers",["-productVersion"])]);return{name:t??e,os:`macOS ${n??r()}`}}case"win32":return{name:e,os:`Windows ${r()}`};case"linux":return{name:e,os:`Linux ${r()}`};default:return{name:e,os:`${s()} ${r()}`}}})(),i}export const newDeviceId=()=>l(18).toString("base64url");export async function userAgent(e){const t=await thisComputer();return`${e} (${t.os}; ${p()})`}export async function deviceHeaders(e,t){const n=await thisComputer();return{"user-agent":await userAgent(e),[d]:t,[f]:encodeURIComponent(n.name)}}
|
|
2
|
+
import{execFile as m}from"node:child_process";import{randomBytes as l}from"node:crypto";import{arch as p,hostname as w,platform as s,release as r}from"node:os";import{DEVICE_HEADER as d,DEVICE_NAME_HEADER as f}from"@allyhub/protocol/auth";const a=(e,t)=>new Promise(n=>{m(e,t,{timeout:2e3},(c,u)=>{const o=u.trim();n(c===null&&o!==""?o:void 0)})});let i;export function thisComputer(){return i??=(async()=>{const e=w().replace(/\.local$/u,"");switch(s()){case"darwin":{const[t,n]=await Promise.all([a("/usr/sbin/scutil",["--get","ComputerName"]),a("/usr/bin/sw_vers",["-productVersion"])]);return{name:t??e,os:`macOS ${n??r()}`}}case"win32":return{name:e,os:`Windows ${r()}`};case"linux":return{name:e,os:`Linux ${r()}`};default:return{name:e,os:`${s()} ${r()}`}}})(),i}export const newDeviceId=()=>l(18).toString("base64url");export async function userAgent(e){const t=await thisComputer();return`${e} (${t.os}; ${p()})`}export async function deviceHeaders(e,t){const n=await thisComputer();return{"user-agent":await userAgent(e),[d]:t,[f]:encodeURIComponent(n.name)}}
|
|
@@ -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 o,EXIT as r}from"@allyhub/protocol";export class CloudError extends Error{code;hint;exit;status;data;constructor(t,i,n={}){super(i,n.cause===void 0?void 0:{cause:n.cause}),this.name="CloudError",this.code=t,this.hint=n.hint,this.exit=n.exit??r.failed,this.status=n.status,this.data=n.data}}export async function cloudWork(e){try{return await e()}catch(t){throw t instanceof CloudError?new o(t.code,t.message,{exit:t.exit,...t.hint===void 0?{}:{hint:t.hint},cause:t}):t}}export const SIGN_IN="Run allyhub auth login (or set ALLYHUB_API_KEY).",notSignedIn=(e,t)=>new CloudError("not-signed-in",e??"This computer is not signed in to AllyHub.",{exit:r.auth,hint:t??SIGN_IN}),unreachable=(e,t)=>new CloudError("network",`Cannot reach ${e}: ${t instanceof Error?t.message:String(t)}`,{exit:r.platform,hint:"Check the connection; ALLYHUB_URL sets another address.",cause:t});
|
|
2
|
+
import{CommandError as o,EXIT as r}from"@allyhub/protocol/cli";export class CloudError extends Error{code;hint;exit;status;data;constructor(t,i,n={}){super(i,n.cause===void 0?void 0:{cause:n.cause}),this.name="CloudError",this.code=t,this.hint=n.hint,this.exit=n.exit??r.failed,this.status=n.status,this.data=n.data}}export async function cloudWork(e){try{return await e()}catch(t){throw t instanceof CloudError?new o(t.code,t.message,{exit:t.exit,...t.hint===void 0?{}:{hint:t.hint},cause:t}):t}}export const SIGN_IN="Run allyhub auth login (or set ALLYHUB_API_KEY).",notSignedIn=(e,t)=>new CloudError("not-signed-in",e??"This computer is not signed in to AllyHub.",{exit:r.auth,hint:t??SIGN_IN}),unreachable=(e,t)=>new CloudError("network",`Cannot reach ${e}: ${t instanceof Error?t.message:String(t)}`,{exit:r.platform,hint:"Check the connection; ALLYHUB_URL sets another address.",cause:t});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export
|
|
2
|
+
export*from"./tools.js";export{SignedOut,accessOf,accountOf,authServer,chooseOrganization,forgetCredentials,readCredentials,signInWithCode,signInWithDevice,signOut,writeCredentials}from"./credentials.js";export{SIGN_IN_WAIT_MS,openBrowser,signIn,signInByEmail,signInDevice,signInInBackground,signedInAs}from"./signin.js";export{osKeychain}from"./keychain.js";export{LoopbackError,startLoopback}from"./loopback.js";export{pkcePair,randomState}from"./pkce.js";export{billingSummary,browserLink,organizations,webLink}from"./token.js";export{BlobStore,BlobsUnavailable}from"./blobs.js";export{Hashes,hashFolder,sha256Of}from"./hashes.js";export{addDeployment,changeSite,createSite,goLive,listSites,removeSite,siteDetail,unpublishSite}from"./sites.js";export{createMailAlias,mailbox,rawMail,readMail,replyMail,searchMail,sendMail}from"./mail.js";export{BASE64_FROM,LARGE_FROM,canonical,genRecord,inputHash,isSecretName,namedFile,readGen,recordInput,recordOutput,toolWords,withoutSignature,writeGen,writeWords}from"./records.js";export{makeSay,sayInput}from"./voice.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{timingSafeEqual as y}from"node:crypto";
|
|
2
|
+
import{timingSafeEqual as y}from"node:crypto";const{createServer:x}=process.getBuiltinModule("node:http"),k=3e4,h="/callback";export class LoopbackError extends Error{code;constructor(n,i){super(i),this.name="LoopbackError",this.code=n}}export async function startLoopback(e){let n={ok:()=>{},fail:()=>{}};const i=new Promise((a,o)=>{n={ok:a,fail:o}});let t,r;const l=a=>{const o=t;t=void 0,clearTimeout(r),!(o===void 0||o.writableEnded)&&(a!==void 0?c(o,200,s("Sign-in failed.",a.message)):e.landing!==void 0?o.writeHead(303,{location:e.landing,"cache-control":"no-store",connection:"close"}).end():c(o,200,s("You're signed in.","You can close this tab and go back to AllyHub.")))},d=x((a,o)=>{T(a,o,e.state,{...n,ok:b=>{t=o,r=setTimeout(()=>{t===void 0||t.writableEnded||(c(t,200,s("Returning to AllyHub…","You can close this tab.")),t=void 0)},k),n.ok(b)}})});await A(d);const{port:m}=d.address(),p=`http://127.0.0.1:${String(m)}${h}`;let f=!1;const u=async()=>{f||(f=!0,clearTimeout(w),n.fail(new LoopbackError("sign-in-cancelled","Sign-in was cancelled.")),l(),d.closeAllConnections(),await new Promise(a=>{d.close(()=>{a()})}))},w=setTimeout(()=>{n.fail(new LoopbackError("sign-in-timeout",`Nobody signed in within ${String(Math.round(e.timeoutMs/6e4))} minutes.`)),u()},e.timeoutMs);return i.catch(u),{result:i,redirectUri:p,finish:async a=>{l(a),await u()},close:u}}async function A(e){await new Promise((n,i)=>{e.once("error",i),e.listen(0,"127.0.0.1",()=>{e.off("error",i),n()})})}function T(e,n,i,t){if(e.method!=="GET"){n.writeHead(405,{"content-type":"text/plain"}).end();return}const r=new URL(e.url??"/","http://127.0.0.1");if(r.pathname!==h){n.writeHead(404,{"content-type":"text/plain"}).end();return}if(!S(r.searchParams.get("state")??"",i)){c(n,400,s("This sign-in link is not valid.","Run allyhub auth login again.")),t.fail(new LoopbackError("sign-in-state","The sign-in did not match this one."));return}if(r.searchParams.get("error")==="access_denied"){c(n,200,s("Sign-in cancelled.","You can close this tab.")),t.fail(new LoopbackError("sign-in-denied","The sign-in was cancelled in the browser."));return}const l=r.searchParams.get("code");if(!l){c(n,400,s("Sign-in failed.","Run allyhub auth login again.")),t.fail(new LoopbackError("sign-in-failed","The browser came back without a code."));return}t.ok(l)}function S(e,n){const i=Buffer.from(e),t=Buffer.from(n);return i.length===t.length&&y(i,t)}function c(e,n,i){e.writeHead(n,{"content-type":"text/html; charset=utf-8","cache-control":"no-store",connection:"close"}).end(i)}const g=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""");function s(e,n){return`<!doctype html><html><head><meta charset="utf-8"><title>AllyHub</title>
|
|
3
3
|
<style>body{font-family:system-ui,sans-serif;display:flex;align-items:center;justify-content:center;height:100vh;margin:0;background:#f7f7f6;color:#1b1b19}main{max-width:440px;text-align:center;padding:32px;border-radius:10px;background:#fff;border:1px solid #dfdfdc}h1{font-family:Piazzolla,Georgia,serif;font-size:20px;font-weight:600;margin:0 0 8px}p{margin:0;color:#605f5a}</style>
|
|
4
|
-
</head><body><main><h1>${
|
|
4
|
+
</head><body><main><h1>${g(e)}</h1><p>${g(n)}</p></main></body></html>`}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{MAIL_ALIASES_PATH as S,MAIL_MESSAGES_PATH as n,MAIL_PATH as h,MAIL_SEND_PATH as p,MailAddressSchema as y,MailMessageSchema as M,MailSearchResponseSchema as A,MailSummarySchema as o,MailboxSchema as d,mailMessagePath as i,mailRawPath as c,mailReplyPath as w}from"@allyhub/protocol";export const mailbox=async a=>d.parse(await a.json(h)),createMailAlias=async(a,e)=>y.parse(await a.json(S,{method:"POST",body:e}));export async function searchMail(a,e,t){const r=new URLSearchParams;for(const[m,s]of Object.entries(e))s!==void 0&&r.set(m,String(s));const l=r.size===0?n:`${n}?${r.toString()}`;return A.parse(await a.json(l,t===void 0?{}:{signal:t})).messages}export const readMail=async(a,e,t={})=>M.parse(await a.json(t.html===!0?`${i(e)}?html=1`:i(e)));export async function rawMail(a,e){const t=await a.keyedFetch(`${a.url}${c(e)}`,{redirect:"error",signal:AbortSignal.timeout(6e4)});if(t.ok)return new Uint8Array(await t.arrayBuffer());throw await t.body?.cancel(),await a.json(c(e)),new Error(`The message could not be read (${String(t.status)}).`)}export const sendMail=async(a,e)=>o.parse(await a.json(p,{method:"POST",body:e,signal:AbortSignal.timeout(12e4)})),replyMail=async(a,e,t)=>o.parse(await a.json(w(e),{method:"POST",body:t,signal:AbortSignal.timeout(12e4)}));
|
|
2
|
+
import{MAIL_ALIASES_PATH as S,MAIL_MESSAGES_PATH as n,MAIL_PATH as h,MAIL_SEND_PATH as p,MailAddressSchema as y,MailMessageSchema as M,MailSearchResponseSchema as A,MailSummarySchema as o,MailboxSchema as d,mailMessagePath as i,mailRawPath as c,mailReplyPath as w}from"@allyhub/protocol/mail";export const mailbox=async a=>d.parse(await a.json(h)),createMailAlias=async(a,e)=>y.parse(await a.json(S,{method:"POST",body:e}));export async function searchMail(a,e,t){const r=new URLSearchParams;for(const[m,s]of Object.entries(e))s!==void 0&&r.set(m,String(s));const l=r.size===0?n:`${n}?${r.toString()}`;return A.parse(await a.json(l,t===void 0?{}:{signal:t})).messages}export const readMail=async(a,e,t={})=>M.parse(await a.json(t.html===!0?`${i(e)}?html=1`:i(e)));export async function rawMail(a,e){const t=await a.keyedFetch(`${a.url}${c(e)}`,{redirect:"error",signal:AbortSignal.timeout(6e4)});if(t.ok)return new Uint8Array(await t.arrayBuffer());throw await t.body?.cancel(),await a.json(c(e)),new Error(`The message could not be read (${String(t.status)}).`)}export const sendMail=async(a,e)=>o.parse(await a.json(p,{method:"POST",body:e,signal:AbortSignal.timeout(12e4)})),replyMail=async(a,e,t)=>o.parse(await a.json(w(e),{method:"POST",body:t,signal:AbortSignal.timeout(12e4)}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as x}from"node:crypto";import{readdir as S,readFile as p,rename as O,stat as b,writeFile as l}from"node:fs/promises";import{basename as F,dirname as o,extname as $,join as h}from"node:path";import{GenFileSchema as y,
|
|
2
|
+
import{createHash as x}from"node:crypto";import{readdir as S,readFile as p,rename as O,stat as b,writeFile as l}from"node:fs/promises";import{basename as F,dirname as o,extname as $,join as h}from"node:path";import{GenFileSchema as y,genFileFor as a}from"@allyhub/formats/data/gen";import{WordsFileSchema as A,wordsFileFor as j}from"@allyhub/formats/data/words";const u=t=>x("sha256").update(t).digest("hex");export function canonical(t){if(Array.isArray(t))return`[${t.map(canonical).join(",")}]`;if(typeof t=="object"&&t!==null){const e=t;return`{${Object.keys(e).filter(n=>e[n]!==void 0).sort().map(n=>`${JSON.stringify(n)}:${canonical(e[n])}`).join(",")}}`}return JSON.stringify(t??null)}export function inputHash(t,e){return u(canonical({tool:t,input:e}))}export const BASE64_FROM=1024,LARGE_FROM=2e3;const k=t=>t.replace(/([a-z0-9])([A-Z])/gu,"$1_$2").toLowerCase().split(/[^a-z0-9]+/u).filter(Boolean),N=new Set(["apikey","token","secret","password","passwd","passphrase","authorization","credential","credentials","cookie","bearer"]),E=new Set(["api","access","secret","private","auth","signing"]);export function isSecretName(t){const e=k(t);return e.some(n=>N.has(n))?!0:e.some((n,r)=>n==="key"&&E.has(e[r-1]??""))}function W(t){if(t.length<BASE64_FROM)return;const e=/^data:[^,]*;base64,/u.exec(t),n=e?t.slice(e[0].length):t;if(/^[A-Za-z0-9+/_-]+(?:\r?\n[A-Za-z0-9+/_-]+)*={0,2}\s*$/u.test(n))return Buffer.from(n,"base64")}const _=/^(x-amz-(signature|credential|security-token)|x-goog-(signature|credential)|signature|sig|se|sp|token|expires|key-pair-id|policy)$/iu;export function withoutSignature(t){if(!/^https?:\/\//iu.test(t))return t;let e;try{e=new URL(t)}catch{return t}return[...e.searchParams.keys()].some(n=>_.test(n))?(e.search="",`${e.toString()}?[signature redacted]`):t}const g=t=>({omitted:!0,sha256:u(t),bytes:typeof t=="string"?Buffer.byteLength(t):t.length});function c(t,e){if(e!==void 0&&isSecretName(e))return t==null?t:"[redacted]";if(typeof t=="string"){const n=W(t);return n?g(n):withoutSignature(t)}return Array.isArray(t)?t.map(n=>c(n,void 0)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([n,r])=>[n,c(r,n)])):t}export function recordInput(t){return c(t,void 0)}export function recordOutput(t){const e={};for(const[n,r]of Object.entries(recordInput(t))){const i=r===void 0?"null":JSON.stringify(r);e[n]=i.length>LARGE_FROM?g(i):r}return e}const m=t=>typeof t=="string"&&t!==""?t:void 0;export async function genRecord(t,e){const n=await p(t),r=e.model??m(e.output.model)??m(e.input.model);return y.parse({version:1,ai:!0,tool:e.tool,...r?{model:r}:{},input:recordInput(e.input),inputHash:inputHash(e.tool,e.input),output:recordOutput(e.output),...e.credits===void 0?{}:{credits:e.credits},at:(e.at??new Date).toISOString(),sha256:u(n),bytes:n.length})}export async function writeGen(t,e){const n=a(t);return await l(`${n}.part`,`${JSON.stringify(e,null,2)}
|
|
3
3
|
`),await O(`${n}.part`,n),n}export async function readGen(t){try{const e=y.safeParse(JSON.parse(await p(a(t),"utf8")));return e.success&&e.data.inputHash!==void 0?e.data:void 0}catch{return}}const d=a("");export async function namedFile(t){if($(t))return(await b(t).catch(()=>{}))?.isFile()?t:void 0;const e=F(t),r=(await S(o(t)).catch(()=>[])).filter(s=>s.startsWith(`${e}.`)),i=r.find(s=>s.endsWith(d)&&r.includes(s.slice(0,-d.length)));if(i)return h(o(t),i.slice(0,-d.length));const f=r.find(s=>!s.endsWith(".json")&&/^\.[^.]+$/u.test(s.slice(e.length)));return f?h(o(t),f):void 0}const w=t=>Math.round(t*1e3)/1e3;export function toolWords(t){const n=(Array.isArray(t.words)?t.words:[]).flatMap(r=>{const i=r;return typeof i.text=="string"&&i.text!==""&&typeof i.start=="number"&&typeof i.end=="number"&&i.end>=i.start&&i.start>=0?[{text:i.text,start:w(i.start),end:w(i.end)}]:[]});return n.length>0?n:void 0}export async function writeWords(t,e,n){const r=j(t),i=A.parse({version:1,...n===void 0?{}:{duration:n},words:e});return await l(r,`${JSON.stringify(i,null,1)}
|
|
4
4
|
`),r}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{spawn as k}from"node:child_process";import{mkdtemp as j,open as E,readFile as m,rename as O,rm as
|
|
2
|
+
import{spawn as k}from"node:child_process";import{mkdtemp as j,open as E,readFile as m,rename as O,rm as p,writeFile as N}from"node:fs/promises";import{tmpdir as U}from"node:os";import{join as s}from"node:path";import{fileURLToPath as b}from"node:url";import{CLIENT_ID as P,SCOPES as L,SIGN_IN_LINK_PATH as R,signedInAddress as v}from"@allyhub/protocol/auth";import{EXIT as g}from"@allyhub/protocol/cli";import{accessOf as $,authServer as A,SignedOut as D,signInWithCode as W,signInWithDevice as C}from"./credentials.js";import{nodeCommand as J}from"@allyhub/runtimes/node";import{CloudError as l,unreachable as u}from"./errors.js";import{LoopbackError as B,startLoopback as h}from"./loopback.js";import{pkcePair as z,randomState as F}from"./pkce.js";const H="idp_hint";export const SIGN_IN_WAIT_MS=5*6e4;const M=3e4;function y(){return{state:F(),...z()}}async function I(t,e,o,r={}){const i=await A(t),n=new URLSearchParams({response_type:"code",client_id:P,redirect_uri:o,scope:L,state:e.state,code_challenge:e.challenge,code_challenge_method:"S256",resource:t.url});return r.with!==void 0&&n.set(H,r.with),r.email!==void 0&&n.set("login_hint",r.email),`${i.authorization_endpoint}?${n.toString()}`}export function openBrowser(t,e){if(e.BROWSER==="none")return;const[o,r]=process.platform==="darwin"?["open",[t]]:process.platform==="win32"?["cmd",["/c","start","",t]]:["xdg-open",[t]];try{const i=k(o,r,{stdio:"ignore",detached:!0});i.on("error",()=>{}),i.unref()}catch{}}export async function signedInAs(t){try{return(await $(t.config))?.credentials.account}catch(e){if(e instanceof D)return;throw u(t.url,e)}}const S=t=>new l(t instanceof B?t.code:"sign-in-failed",t instanceof Error?t.message:String(t),{exit:g.auth,hint:"Run allyhub auth login again."});async function _(t,e,o){let r;try{r=await o.result}catch(n){throw S(n)}let i;try{i=(await W(t,{code:r,codeVerifier:e.verifier,redirectUri:o.redirectUri})).account}catch(n){const a=S(n);throw await o.finish(a),a}return await o.finish(),i}const x=(t,e={})=>v(t.url,{desktop:e.desktop});export async function signIn(t,e,o=SIGN_IN_WAIT_MS,r={}){const i=y(),n=await h({state:i.state,timeoutMs:o,landing:x(t.config,r)});try{e(await I(t.config,i,n.redirectUri,r))}catch(a){throw await n.close(),u(t.url,a)}return _(t.config,i,n)}export async function signInByEmail(t,e,o,r=SIGN_IN_WAIT_MS,i={}){const n=t.config,a=y(),f=await h({state:a.state,timeoutMs:r,landing:x(n,i)});try{const d={email:e,authorization:await I(n,a,f.redirectUri)},c=await n.fetch(`${n.url}${R}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(d)});if(!c.ok)throw new l("sign-in-failed",`AllyHub did not send the link (${String(c.status)}): ${(await c.text()).slice(0,300)}`,{exit:g.auth,status:c.status});await c.body?.cancel()}catch(d){throw await f.close(),d instanceof l?d:u(t.url,d)}return o(),_(n,a,f)}export async function signInDevice(t,e,o){try{return(await C(t.config,e,o)).account}catch(r){throw S(r)}}const G=b(new URL("./signin-worker.js",import.meta.url));export async function signInInBackground(t,e,o=SIGN_IN_WAIT_MS){const r=y(),i=await j(s(U(),"allyhub-sign-in-"));await N(s(i,"flow.json"),JSON.stringify({flow:r,timeoutMs:o}),{mode:384});const n=await E(s(i,"worker.log"),"w"),a=k(J(e),[G,i],{detached:!0,stdio:["ignore","ignore",n.fd],env:{...e}});await n.close();const f={exited:!1};a.once("exit",()=>{f.exited=!0}),a.unref();const d=Date.now()+M;for(;Date.now()<d;)try{const w=JSON.parse(await m(s(i,"ready.json"),"utf8"));return await I(t.config,r,w.redirectUri)}catch(w){if(w instanceof Error&&!("code"in w))throw u(t.url,w);if(f.exited)break;await new Promise(T=>setTimeout(T,50))}const c=(await m(s(i,"worker.log"),"utf8").catch(()=>"")).trim().split(`
|
|
3
3
|
`).slice(-5).join(`
|
|
4
|
-
`);throw await
|
|
4
|
+
`);throw await p(i,{recursive:!0,force:!0}),new l("sign-in-failed",c?`The sign-in listener did not start: ${c}`:"The sign-in listener did not start.",{exit:g.platform})}export async function serveSignIn(t,e){const{flow:o,timeoutMs:r}=JSON.parse(await m(s(e,"flow.json"),"utf8"));await p(s(e,"flow.json"),{force:!0});const i=await h({state:o.state,timeoutMs:r,landing:x(t)});await N(s(e,"ready.json.tmp"),JSON.stringify({redirectUri:i.redirectUri})),await O(s(e,"ready.json.tmp"),s(e,"ready.json"));try{await _(t,o,i)}finally{await new Promise(n=>setTimeout(n,200)),await p(e,{recursive:!0,force:!0})}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{DeploymentMadeSchema as S,SITES_PATH as n,SITE_PERSON_QUERY as p,SiteDetailSchema as m,SiteLiveAnswerSchema as h,SiteSchema as o,SitesResponseSchema as y,siteDeploymentsPath as d,siteLivePath as i,sitePath as r,siteSettingsPath as P}from"@allyhub/protocol";export const listSites=async e=>y.parse(await e.json(n)),createSite=async(e,t)=>o.parse(await e.json(n,{method:"POST",body:t})),addDeployment=async(e,t,s)=>S.parse(await e.json(d(t),{method:"POST",body:s,signal:AbortSignal.timeout(12e4)})),siteDetail=async(e,t)=>m.parse(await e.json(r(t)));const a=(e,t)=>t?`${e}?${p}`:e;export const goLive=async(e,t,s,c={})=>h.parse(await e.json(a(i(t),c.person===!0),{method:"PUT",body:{deployment:s}})),unpublishSite=async(e,t)=>o.parse(await e.json(a(i(t),!0),{method:"DELETE"})),removeSite=async(e,t)=>{await e.json(a(r(t),!0),{method:"DELETE"})},changeSite=async(e,t,s)=>o.parse(await e.json(a(P(t),!0),{method:"PUT",body:s}));
|
|
2
|
+
import{DeploymentMadeSchema as S,SITES_PATH as n,SITE_PERSON_QUERY as p,SiteDetailSchema as m,SiteLiveAnswerSchema as h,SiteSchema as o,SitesResponseSchema as y,siteDeploymentsPath as d,siteLivePath as i,sitePath as r,siteSettingsPath as P}from"@allyhub/protocol/sites";export const listSites=async e=>y.parse(await e.json(n)),createSite=async(e,t)=>o.parse(await e.json(n,{method:"POST",body:t})),addDeployment=async(e,t,s)=>S.parse(await e.json(d(t),{method:"POST",body:s,signal:AbortSignal.timeout(12e4)})),siteDetail=async(e,t)=>m.parse(await e.json(r(t)));const a=(e,t)=>t?`${e}?${p}`:e;export const goLive=async(e,t,s,c={})=>h.parse(await e.json(a(i(t),c.person===!0),{method:"PUT",body:{deployment:s}})),unpublishSite=async(e,t)=>o.parse(await e.json(a(i(t),!0),{method:"DELETE"})),removeSite=async(e,t)=>{await e.json(a(r(t),!0),{method:"DELETE"})},changeSite=async(e,t,s)=>o.parse(await e.json(a(P(t),!0),{method:"PUT",body:s}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{CloudError as m}from"./errors.js";export const TRANSIENT_STATUSES=new Set([408,429,500,502,503,504]),PUT_ATTEMPTS=3;const c={base:500,cap:4e3},h=()=>Array.from({length:PUT_ATTEMPTS-1},(t,n)=>Math.round(Math.random()*Math.min(c.cap,c.base*2**n))),l=t=>!(t instanceof Error&&(t.name==="AbortError"||t.name==="TimeoutError"));export async function putToStorage(t,n,e){const o=e.delaysMs??h(),s=Math.min(PUT_ATTEMPTS,o.length+1);for(let a=1;;a++){let r;try{r=await t(n,{method:"PUT",headers:e.headers,body:new Uint8Array(e.body),signal:AbortSignal.timeout(e.timeoutMs)})}catch(i){if(a>=s||!l(i))throw i;await d(o[a-1]??0);continue}if(r.ok){await r.body?.cancel();return}const u=(await r.text()).slice(0,200);if(a<s&&TRANSIENT_STATUSES.has(r.status)){await d(o[a-1]??0);continue}throw new m(e.code,`Storage refused ${e.what}: ${String(r.status)} ${u}${a>1?` (after ${String(a)} attempts)`:""}`,{status:r.status,...e.exit===void 0?{}:{exit:e.exit}})}}const d=t=>t<=0?Promise.resolve():new Promise(n=>setTimeout(n,t));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{BILLING_SUMMARY_PATH as
|
|
2
|
+
import{BILLING_SUMMARY_PATH as i,BillingSummarySchema as e}from"@allyhub/protocol/cloud";import{BROWSER_LINK_PATH as o,BrowserLinkSchema as t}from"@allyhub/protocol/auth";import{ORGANIZATIONS_PATH as s,OrganizationsSchema as c}from"@allyhub/protocol/teams";export async function billingSummary(n){return e.parse(await n.json(i))}export async function organizations(n){return c.parse(await n.json(s)).organizations}export async function browserLink(n,a){return t.parse(await n.json(o,{method:"POST",body:{to:a}})).url}export async function webLink(n,a){const r=new URL(a,n.config.url);return n.config.apiKey!==void 0?r.href:browserLink(n,`${r.pathname}${r.search}`).catch(()=>r.href)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export{cloudConfig,hostsText}from"./config.js";export{CloudError,cloudWork,notSignedIn,SIGN_IN}from"./errors.js";export{Cloud,callsMadeInBackground,scrub}from"./client.js";export{CATALOG_CACHE_SECONDS,findTool,loadCatalog}from"./catalog.js";export{POLL_SECONDS,READ_SECONDS,RETRY_SECONDS,WAIT_SECONDS,callTool,resumeJob}from"./call.js";export{REUSE_LEFT_MS,UPLOAD_CONCURRENCY,UPLOAD_TYPES,uploadFiles,urlExpiry,withKnownUploads}from"./uploads.js";
|