allyhub 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/align.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- 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 +2 -2
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/migrate.js +3 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
- 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/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/migrate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +5 -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 +1 -1
- 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/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/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/block-shapes.js +2 -0
- 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/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 +67 -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 +12 -3
- 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 +1 -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 +2 -2
- 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 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.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/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/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 +8 -2
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
- 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/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.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/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +37 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +4 -0
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +23 -0
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +33 -0
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/package.json +185 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +180 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +15 -0
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +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 +1 -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/package.json +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/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/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +8 -8
- 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/tile-shapes.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +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/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/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/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/limit.js +2 -0
- 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/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 +2 -25
- 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/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 +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -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/package.json +3 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
- 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/package.json +15 -14
- package/dist/self-upgrade.js +2 -0
- 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-DYaMS_BB.js → abnfDiagram-WEYOIA3C-B4tvwU6C.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-V2fA0vY2.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-B6B7XN0M.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-DW4eD_8K.js +3 -0
- package/editor-web/assets/article-Dm2dIEwc.js +7 -0
- package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
- package/editor-web/assets/{bar-button-J9vbfzTx.js → bar-button-CJmpgNg4.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BizcUGOM.js} +1 -1
- package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-CBHS0dQ0.js} +1 -1
- package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
- package/editor-web/assets/channel-dyUtlVPg.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-BdQRH3FL.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-CMPBck_Q.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-Df22Adpt.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-CYrZ6_Q7.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BfdG9NNW.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BCzZMoTJ.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DT0xT8Wf.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-Bg3-EotU.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BrSym24V.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-CMxgkJWF.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-DWEwoyPy.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-eTFh5_T9.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-4PTupr9T.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-D5XAAFWm.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-CPsdaisO.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-ClnuUyfy.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-CM21waNF.js} +1 -1
- package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
- package/editor-web/assets/{collaborator-BU4qU7O3.js → collaborator-CbTacvkB.js} +1 -1
- package/editor-web/assets/color-picker-BmKFn2ww.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-CtcknEQ_.js → cynefin-EF2NZ3EQ-CJUHTgee.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-C9RIfuIV.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-g-01KdpO.js} +1 -1
- package/editor-web/assets/deck-C0VxrlzX.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-CbOjWUu-.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-C6psNS8J.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-C9PUE46P.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-vJ_pnB33.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-FwYlEfJ-.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-FKpIxeUc.js} +1 -1
- package/editor-web/assets/{dist-DruvDNQe.js → dist-B8_6sJ_V.js} +5 -5
- package/editor-web/assets/dist-BI_BaYhO.js +19 -0
- package/editor-web/assets/dist-BaWFMuvr.js +1 -0
- package/editor-web/assets/dist-BdmMT8fP.js +5 -0
- package/editor-web/assets/dist-BgKyM9U6.js +3 -0
- package/editor-web/assets/dist-BqijryYd.js +1 -0
- package/editor-web/assets/dist-ByguWp3a.js +16 -0
- package/editor-web/assets/dist-CB-_0-X4.js +41 -0
- package/editor-web/assets/dist-CCP24Lel.js +19 -0
- package/editor-web/assets/dist-Cg0Z26Kv.js +6 -0
- package/editor-web/assets/dist-CtYjYJdv.js +1 -0
- package/editor-web/assets/dist-D07Kj8GR.js +1 -0
- package/editor-web/assets/dist-D2rGVz9C.js +1 -0
- package/editor-web/assets/dist-D3DwRF1k.js +547 -0
- package/editor-web/assets/dist-DCI21ljp.js +6 -0
- package/editor-web/assets/dist-DH8oJJw9.js +35 -0
- package/editor-web/assets/dist-DIJnhQFK.js +9 -0
- package/editor-web/assets/dist-DJvfQvM7.js +24 -0
- package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
- package/editor-web/assets/dist-DmCDcb2_.js +4 -0
- package/editor-web/assets/dist-H0z_DXDz.js +19 -0
- package/editor-web/assets/dist-QLXI7XGS.js +82 -0
- package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-Dxb67W2d.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-DBymUM-F.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-BNYR3OlS.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-cTNyOqW6.js} +1 -1
- package/editor-web/assets/esm-Cl3GKSDd.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-C6FUZeXP.js} +1 -1
- package/editor-web/assets/eye-DwfE1USj.js +1 -0
- package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-LD9mqQ1x.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-CtCBcQFl.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-DYQpOozz.js} +1 -1
- package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
- package/editor-web/assets/{hint-rlht0uxG.js → hint-F4fIBnVU.js} +1 -1
- package/editor-web/assets/index-Cah2zchD.css +2 -0
- package/editor-web/assets/index-omhSywJb.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-IXInKPRO.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-Ds7Cei7T.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-DWs3qtAX.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-DeSVfmm7.js → journeyDiagram-BOSHW7O7-BkNKVYBA.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-D3dMswnI.js} +1 -1
- package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-D_W_0X0N.js} +3 -3
- package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-Bkirj-s5.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-CMKkAAvI.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-CzCkgCfg.js} +1 -1
- package/editor-web/assets/palette-DchDLJj6.js +1 -0
- package/editor-web/assets/panes-BexRuZd2.js +3 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-C8qHkx7M.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-BJqgxMrD.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-DyNntV5y.js} +1 -1
- package/editor-web/assets/{progress-CwKcXARv.js → progress-D1Uv3d1b.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BHa-69ir.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-BeRPjBBR.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-BaRQqRsK.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-BZfwomxZ.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-DbgqpEF5.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-BYOf3PsQ.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-B5OAzOsD.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-DLdzkQk5.js → requirementDiagram-EQYSW5RA-wqYNoqO0.js} +1 -1
- package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +1 -0
- package/editor-web/assets/row-DqS4-5b1.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-Crf6GRsa.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-DoC-ZoBr.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-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DUcHz4_d.js} +1 -1
- package/editor-web/assets/{session-DMlLCFWg.js → session--OJYv_B7.js} +1 -1
- package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
- package/editor-web/assets/snapshots-DYooVfOx.js +1 -0
- package/editor-web/assets/sound-DkR3qxSt.js +1 -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-D103CiMX.js → stateDiagram-v2-A6IESKWZ-DbeLdnpS.js} +1 -1
- package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
- package/editor-web/assets/{surface-DtCjIlrq.js → surface-BUoi7cmR.js} +1 -1
- package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-BDi6AeJI.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +8 -0
- package/editor-web/assets/{switch-8MU4Nfxe.js → switch-b6GCy_ix.js} +1 -1
- package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
- package/editor-web/assets/table-BW43XXVd.js +1 -0
- package/editor-web/assets/tablet-C6oePHEW.js +1 -0
- package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
- package/editor-web/assets/{textarea-D7TnPwv1.js → textarea-Bu6uPEqT.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-B0awa2hh.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-C91G0IGm.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-CiOWiwl2.js} +1 -1
- package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
- package/editor-web/assets/updating-D0GEtwnJ.js +1 -0
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-DMYM1MRe.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-DQIJ5vvN.js} +1 -1
- package/editor-web/assets/video-mMOFXHYK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-C3H9HG8r.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-DgsjqY1Y.js} +1 -1
- package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
- package/editor-web/assets/{words-CaUHhQHf.js → words-B2jQwWpp.js} +3 -3
- package/editor-web/assets/words-DgMuEmDO.js +3 -0
- package/editor-web/assets/workbook-NtMEyLgf.js +41 -0
- package/editor-web/assets/{x-DlhyIKuu.js → x-BAJilkKD.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-DzsGI527.js} +1 -1
- package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
- package/editor-web/index.html +9 -9
- package/package.json +6 -3
- package/CHANGELOG.md +0 -251
- package/dist/commands/render.js +0 -3
- 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-8evPh712.js +0 -3
- package/editor-web/assets/article-BhRtWYMd.js +0 -7
- package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
- package/editor-web/assets/channel-wIj_OqDm.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
- package/editor-web/assets/code-CD-CbJG9.js +0 -1
- package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
- package/editor-web/assets/dist-3iovns9K.js +0 -16
- package/editor-web/assets/dist-BkHnbOEj.js +0 -4
- package/editor-web/assets/dist-BvOrNcK-.js +0 -19
- package/editor-web/assets/dist-CEIszq39.js +0 -1
- package/editor-web/assets/dist-CU5RbLNH.js +0 -1
- package/editor-web/assets/dist-CWZj8IAm.js +0 -1
- package/editor-web/assets/dist-C_Mtrnif.js +0 -17
- package/editor-web/assets/dist-CdqpwdCV.js +0 -24
- package/editor-web/assets/dist-CjT76RAw.js +0 -43
- package/editor-web/assets/dist-CpzEn9T8.js +0 -6
- package/editor-web/assets/dist-CrFYWl5-.js +0 -3
- package/editor-web/assets/dist-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-D4eBFGVL.js +0 -1
- package/editor-web/assets/dist-DTcjb3cP.js +0 -18
- package/editor-web/assets/dist-D_WSM29I.js +0 -17
- package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
- package/editor-web/assets/dist-J-tPYKGS.js +0 -5
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
- package/editor-web/assets/index-BQWZnyAQ.js +0 -28
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/layout-SWqqA0yV.js +0 -1
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/props-form-BpSXbrSF.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-CQ_UU8-Z.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.js +0 -1
- package/editor-web/assets/slides-7xWhREpt.js +0 -1
- package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
- package/editor-web/assets/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-tFGKk-x8.js +0 -3
- package/editor-web/assets/strikethrough-BwXWi4zg.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-DKzB_wSf.js +0 -8
- package/editor-web/assets/syntax-CU_WPKxt.js +0 -1
- package/editor-web/assets/table-DRbddzx0.js +0 -1
- package/editor-web/assets/tabs-CuEawka3.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/video-D0uTbHWx.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
|
@@ -5,8 +5,8 @@ What will be published on LinkedIn is written in LinkedIn's own model, so what L
|
|
|
5
5
|
- **A LinkedIn post** (`linkedin-post`): one post, its words with pictures, a video, a document (a carousel), a poll or a link's card.
|
|
6
6
|
- **A LinkedIn article** (`linkedin-article`): a long piece in LinkedIn's article blocks, with its title and cover.
|
|
7
7
|
|
|
8
|
-
A post's pictures, video and document can be the project's own items: an image's board, a video, or an image's boards or a deck as one PDF (a carousel)
|
|
8
|
+
A post's pictures, video and document can be the project's own items: an image's board, a video, or an image's boards or a deck as one PDF (a carousel).
|
|
9
9
|
|
|
10
10
|
- `allyhub help linkedin` lists the commands and prints where the SDK's `linkedin.md` is. Read it before writing a post or an article.
|
|
11
|
-
- `allyhub frames` draws a post as LinkedIn's feed shows it, folded at "… more" and opened, and an article as its page shows it; `allyhub inspect` gives what LinkedIn counts.
|
|
12
|
-
- **To publish**, the person downloads a post's text to paste, or copies an article from its editor to paste into LinkedIn's, and posts it.
|
|
11
|
+
- `allyhub frames` draws a post as LinkedIn's feed shows it, folded at "… more" and opened, and an article as its page shows it; `allyhub inspect` gives what LinkedIn counts.
|
|
12
|
+
- **To publish**, the person downloads a post's text to paste, or copies an article from its editor to paste into LinkedIn's, and posts it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ak-li{--ak-li-fg: rgba(0, 0, 0, .9);--ak-li-muted: rgba(0, 0, 0, .6);--ak-li-border: rgba(140, 140, 140, .2);--ak-li-pill: rgba(140, 140, 140, .2);--ak-li-card: #ffffff;--ak-li-page: #f4f2ee;--ak-li-link: #0a66c2;--ak-li-quote: #56687a;--ak-li-made: #eef3f8;--ak-li-code: #f4f2ee;--ak-li-over: #cb112d;--ak-li-avatar: #0a66c2;color:var(--ak-li-fg);font-family:Inter Variable,Inter,-apple-system,system-ui,Segoe UI,Roboto,Helvetica,Arial,Noto Sans SC,"Noto Color Emoji",sans-serif;font-size:14px;line-height:20px;width:552px;box-sizing:border-box}.ak-li[data-theme=dark]{--ak-li-fg: rgba(255, 255, 255, .9);--ak-li-muted: rgba(255, 255, 255, .6);--ak-li-border: rgba(140, 140, 140, .3);--ak-li-pill: rgba(140, 140, 140, .3);--ak-li-card: #1b1f23;--ak-li-page: #000000;--ak-li-link: #71b7fb;--ak-li-quote: #a8b5c2;--ak-li-made: #293138;--ak-li-code: #293138;--ak-li-avatar: #71b7fb}.ak-li *,.ak-li *:before,.ak-li *:after{box-sizing:border-box}.ak-li.ak-li-page{width:632px;background:var(--ak-li-card)}.ak-li-post{overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px;background:var(--ak-li-card)}.ak-li-author{display:flex;gap:8px;padding:12px 16px 0 12px}.ak-li-avatar{display:grid;flex:none;place-items:center;border-radius:9999px;background:var(--ak-li-avatar);color:var(--ak-li-card);font-size:20px;font-weight:600}.ak-li-who{display:flex;min-width:0;flex-direction:column;padding-top:1px}.ak-li-name{font-size:16px;font-weight:600;line-height:20px}.ak-li-headline,.ak-li-when{overflow:hidden;color:var(--ak-li-muted);font-size:12px;line-height:15px;text-overflow:ellipsis;white-space:nowrap}.ak-li-when{display:flex;align-items:center;gap:4px}.ak-li-when svg{width:14px;height:14px}.ak-li-words{padding:4px 12px 8px;margin-top:4px;overflow-wrap:anywhere;white-space:pre-wrap}.ak-li-link{color:var(--ak-li-link);font-weight:600}.ak-li-more{color:var(--ak-li-muted);white-space:nowrap}.ak-li-content{position:relative}.ak-li-single img,.ak-li-content>img{display:block;width:100%}.ak-li-made{display:grid;min-height:160px;padding:24px;place-items:center;background:var(--ak-li-made);color:var(--ak-li-muted);font-size:14px;text-align:center;overflow-wrap:anywhere}.ak-li-grid{display:grid;gap:3px;aspect-ratio:1}.ak-li-grid[data-count="2"]{grid-template-columns:1fr 1fr;aspect-ratio:2}.ak-li-grid[data-count="3"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.ak-li-grid[data-count="4"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr 1fr}.ak-li-grid[data-count="3"]>:first-child{grid-row:1 / 3}.ak-li-grid[data-count="4"]>:first-child{grid-row:1 / 4}.ak-li-grid[data-wide][data-count="3"]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="4"]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="3"]>:first-child{grid-row:auto;grid-column:1 / 3}.ak-li-grid[data-wide][data-count="4"]>:first-child{grid-row:auto;grid-column:1 / 4}.ak-li-cell{position:relative;min-width:0;min-height:0;overflow:hidden}.ak-li-cell>img,.ak-li-cell>.ak-li-made{display:block;width:100%;height:100%;min-height:0;object-fit:cover}.ak-li-hidden{position:absolute;inset:0;display:grid;place-items:center;background:#0000008c;color:#fff;font-size:32px;font-weight:600}.ak-li-video{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#000}.ak-li-video video{display:block;width:100%;height:100%;object-fit:contain}.ak-li-play{position:absolute;top:50%;left:50%;width:64px;height:64px;border-radius:9999px;background:#0009;transform:translate(-50%,-50%)}.ak-li-play:after{position:absolute;top:50%;left:54%;border-width:12px 0 12px 20px;border-style:solid;border-color:transparent transparent transparent #ffffff;content:"";transform:translate(-50%,-50%)}.ak-li-clock{position:absolute;bottom:8px;left:8px;padding:0 6px;border-radius:4px;background:#0009;color:#fff;font-size:12px;line-height:20px}.ak-li-document{background:var(--ak-li-made)}.ak-li-doc-bar{display:flex;align-items:center;height:40px;padding:0 12px;background:#000000bf;color:#fff;font-size:14px;font-weight:600}.ak-li-doc-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ak-li-document img{display:block;width:100%}.ak-li-doc-page{display:flex;min-height:420px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;color:var(--ak-li-muted);overflow-wrap:anywhere}.ak-li-doc-page svg{width:40px;height:40px}.ak-li-card{margin:0 12px 8px;overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-card-picture img,.ak-li-card-picture .ak-li-made{display:block;width:100%;aspect-ratio:1.91;object-fit:cover}.ak-li-card-text{display:flex;flex-direction:column;gap:2px;padding:8px 12px;background:var(--ak-li-page)}.ak-li-card-title{font-weight:600}.ak-li-card-site{display:flex;align-items:center;gap:4px;color:var(--ak-li-muted);font-size:12px;line-height:16px}.ak-li-card-site svg{width:12px;height:12px}.ak-li-poll{margin:0 12px 8px;padding:12px 16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-poll-question{font-size:16px;font-weight:600;line-height:20px}.ak-li-poll-hint{margin:2px 0 8px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-option{margin-top:8px;padding:6px 16px;border:1px solid var(--ak-li-link);border-radius:9999px;color:var(--ak-li-link);font-size:16px;font-weight:600;line-height:20px;text-align:center}.ak-li-poll-foot{margin-top:12px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-actions{display:flex;align-items:center;gap:28px;height:44px;padding:0 24px;color:var(--ak-li-muted)}.ak-li-actions svg{width:20px;height:20px}.ak-li-article{padding-bottom:32px}.ak-li-a-cover img,.ak-li-a-cover .ak-li-video{display:block;width:100%}.ak-li-a-title{margin:16px 24px;font-size:32px;font-weight:600;line-height:38.4px;overflow-wrap:anywhere}.ak-li-a-by{display:flex;align-items:center;gap:8px;margin:0 24px 32px}.ak-li-a-tools{display:flex;gap:12px;margin-left:auto;color:var(--ak-li-muted)}.ak-li-a-tools svg{width:20px;height:20px}.ak-li-a-body{font-size:16px;line-height:24px}.ak-li-a-body>p{margin:0 0 32px;overflow-wrap:anywhere}.ak-li-a-body>h2{margin:0 0 16px;font-size:24px;font-weight:600;line-height:30px}.ak-li-a-body>h3{margin:0 0 16px;font-size:20px;font-weight:600;line-height:25px}.ak-li-a-body strong{font-weight:600}.ak-li-a-link{color:var(--ak-li-link);font-weight:600}.ak-li-a-body>ul,.ak-li-a-body>ol{margin:0 0 32px;padding-left:32px}.ak-li-a-body>ul{list-style:disc}.ak-li-a-body>ol{list-style:decimal}.ak-li-a-body li{margin-bottom:8px}.ak-li-a-body>blockquote{margin:0 0 32px;padding-left:16px;border-left:4px solid var(--ak-li-quote);color:var(--ak-li-quote);font-size:20px;line-height:25px}.ak-li-a-body>pre{margin:0 0 32px;padding:16px;overflow-x:auto;border-radius:8px;background:var(--ak-li-code);font-family:SF Mono,Menlo,Consolas,monospace;font-size:14px;line-height:20px;white-space:pre}.ak-li-a-body>hr{margin:0 0 32px;border:none;border-top:1px solid var(--ak-li-border)}.ak-li-a-body>figure{margin:0 0 32px}.ak-li-a-body>figure img{display:block;width:100%}.ak-li-a-body figcaption{margin-top:8px;color:var(--ak-li-muted);font-size:14px;line-height:20px;text-align:center}.ak-li-embed{display:flex;align-items:center;gap:12px;margin:0 0 32px;padding:16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-embed svg{flex:none;width:32px;height:32px;color:var(--ak-li-muted)}.ak-li-embed-text{display:flex;min-width:0;flex-direction:column}.ak-li-embed-site{font-weight:600}.ak-li-embed-url{overflow:hidden;color:var(--ak-li-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
|
|
1
|
+
.ak-li{--ak-li-fg: rgba(0, 0, 0, .9);--ak-li-muted: rgba(0, 0, 0, .6);--ak-li-border: rgba(140, 140, 140, .2);--ak-li-pill: rgba(140, 140, 140, .2);--ak-li-card: #ffffff;--ak-li-page: #f4f2ee;--ak-li-link: #0a66c2;--ak-li-quote: #56687a;--ak-li-made: #eef3f8;--ak-li-code: #f4f2ee;--ak-li-over: #cb112d;--ak-li-avatar: #0a66c2;color:var(--ak-li-fg);font-family:Inter Variable,Inter,-apple-system,system-ui,Segoe UI,Roboto,Helvetica,Arial,Noto Sans SC,"Noto Color Emoji",sans-serif;font-size:14px;line-height:20px;width:552px;box-sizing:border-box}.ak-li[data-theme=dark]{--ak-li-fg: rgba(255, 255, 255, .9);--ak-li-muted: rgba(255, 255, 255, .6);--ak-li-border: rgba(140, 140, 140, .3);--ak-li-pill: rgba(140, 140, 140, .3);--ak-li-card: #1b1f23;--ak-li-page: #000000;--ak-li-link: #71b7fb;--ak-li-quote: #a8b5c2;--ak-li-made: #293138;--ak-li-code: #293138;--ak-li-avatar: #71b7fb}.ak-li *,.ak-li *:before,.ak-li *:after{box-sizing:border-box}.ak-li.ak-li-page{width:632px;background:var(--ak-li-card)}.ak-li-post{overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px;background:var(--ak-li-card)}.ak-li-author{display:flex;gap:8px;padding:12px 16px 0 12px}.ak-li-avatar{display:grid;flex:none;place-items:center;border-radius:9999px;background:var(--ak-li-avatar);color:var(--ak-li-card);font-size:20px;font-weight:600}.ak-li-who{display:flex;min-width:0;flex-direction:column;padding-top:1px}.ak-li-name{font-size:16px;font-weight:600;line-height:20px}.ak-li-headline,.ak-li-when{overflow:hidden;color:var(--ak-li-muted);font-size:12px;line-height:15px;text-overflow:ellipsis;white-space:nowrap}.ak-li-when{display:flex;align-items:center;gap:4px}.ak-li-when svg{width:14px;height:14px}.ak-li-words{padding:4px 12px 8px;margin-top:4px;overflow-wrap:anywhere;white-space:pre-wrap}.ak-li-link{color:var(--ak-li-link);font-weight:600}.ak-li-more{color:var(--ak-li-muted);white-space:nowrap}.ak-li-content{position:relative}.ak-li-single img,.ak-li-content>img{display:block;width:100%}.ak-li-made{display:grid;min-height:160px;padding:24px;place-items:center;background:var(--ak-li-made);color:var(--ak-li-muted);font-size:14px;text-align:center;overflow-wrap:anywhere}.ak-li-grid{display:grid;gap:3px;aspect-ratio:1}.ak-li-grid[data-count="2"]{grid-template-columns:1fr 1fr;aspect-ratio:2}.ak-li-grid[data-count="3"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.ak-li-grid[data-count="4"]{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr 1fr}.ak-li-grid[data-count="3"]>:first-child{grid-row:1 / 3}.ak-li-grid[data-count="4"]>:first-child{grid-row:1 / 4}.ak-li-grid[data-wide][data-count="3"]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="4"]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:2fr 1fr}.ak-li-grid[data-wide][data-count="3"]>:first-child{grid-row:auto;grid-column:1 / 3}.ak-li-grid[data-wide][data-count="4"]>:first-child{grid-row:auto;grid-column:1 / 4}.ak-li-cell{position:relative;min-width:0;min-height:0;overflow:hidden}.ak-li-cell>img,.ak-li-cell>.ak-li-made{display:block;width:100%;height:100%;min-height:0;object-fit:cover}.ak-li-hidden{position:absolute;inset:0;display:grid;place-items:center;background:#0000008c;color:#fff;font-size:32px;font-weight:600}.ak-li-video{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#000}.ak-li-video video{display:block;width:100%;height:100%;object-fit:contain}.ak-li-play{position:absolute;top:50%;left:50%;width:64px;height:64px;border-radius:9999px;background:#0009;transform:translate(-50%,-50%)}.ak-li-play:after{position:absolute;top:50%;left:54%;border-width:12px 0 12px 20px;border-style:solid;border-color:transparent transparent transparent #ffffff;content:"";transform:translate(-50%,-50%)}.ak-li-clock{position:absolute;bottom:8px;left:8px;padding:0 6px;border-radius:4px;background:#0009;color:#fff;font-size:12px;line-height:20px}.ak-li-document{background:var(--ak-li-made)}.ak-li-doc-bar{display:flex;align-items:center;height:40px;padding:0 12px;background:#000000bf;color:#fff;font-size:14px;font-weight:600}.ak-li-doc-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ak-li-document img{display:block;width:100%}.ak-li-doc-page{display:flex;min-height:420px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;color:var(--ak-li-muted);overflow-wrap:anywhere}.ak-li-doc-page svg{width:40px;height:40px}.ak-li-card{margin:0 12px 8px;overflow:hidden;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-card-picture img,.ak-li-card-picture .ak-li-made{display:block;width:100%;aspect-ratio:1.91;object-fit:cover}.ak-li-card-text{display:flex;flex-direction:column;gap:2px;padding:8px 12px;background:var(--ak-li-page)}.ak-li-card-title{font-weight:600}.ak-li-card-site{display:flex;align-items:center;gap:4px;color:var(--ak-li-muted);font-size:12px;line-height:16px}.ak-li-card-site svg{width:12px;height:12px}.ak-li-poll{margin:0 12px 8px;padding:12px 16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-poll-question{font-size:16px;font-weight:600;line-height:20px}.ak-li-poll-hint{margin:2px 0 8px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-option{margin-top:8px;padding:6px 16px;border:1px solid var(--ak-li-link);border-radius:9999px;color:var(--ak-li-link);font-size:16px;font-weight:600;line-height:20px;text-align:center}.ak-li-poll-foot{margin-top:12px;color:var(--ak-li-muted);font-size:12px;line-height:15px}.ak-li-actions{display:flex;align-items:center;gap:28px;height:44px;padding:0 24px;color:var(--ak-li-muted)}.ak-li-actions svg{width:20px;height:20px}.ak-li-article{padding-bottom:32px}.ak-li-a-cover img,.ak-li-a-cover .ak-li-video{display:block;width:100%}.ak-li-a-title{margin:16px 24px;font-size:32px;font-weight:600;line-height:38.4px;overflow-wrap:anywhere}.ak-li-a-by{display:flex;align-items:center;gap:8px;margin:0 24px 32px}.ak-li-a-tools{display:flex;gap:12px;margin-left:auto;color:var(--ak-li-muted)}.ak-li-a-tools svg{width:20px;height:20px}.ak-li-a-body{font-size:16px;line-height:24px}.ak-li-article>.ak-li-a-body{padding:0 24px}.ak-li-a-body>p{margin:0 0 32px;overflow-wrap:anywhere}.ak-li-a-body>h2{margin:0 0 16px;font-size:24px;font-weight:600;line-height:30px}.ak-li-a-body>h3{margin:0 0 16px;font-size:20px;font-weight:600;line-height:25px}.ak-li-a-body strong{font-weight:600}.ak-li-a-link{color:var(--ak-li-link);font-weight:600}.ak-li-a-body>ul,.ak-li-a-body>ol{margin:0 0 32px;padding-left:32px}.ak-li-a-body>ul{list-style:disc}.ak-li-a-body>ol{list-style:decimal}.ak-li-a-body li{margin-bottom:8px}.ak-li-a-body>blockquote{margin:0 0 32px;padding-left:16px;border-left:4px solid var(--ak-li-quote);color:var(--ak-li-quote);font-size:20px;line-height:25px}.ak-li-a-body>pre{margin:0 0 32px;padding:16px;overflow-x:auto;border-radius:8px;background:var(--ak-li-code);font-family:SF Mono,Menlo,Consolas,monospace;font-size:14px;line-height:20px;white-space:pre}.ak-li-a-body>hr{margin:0 0 32px;border:none;border-top:1px solid var(--ak-li-border)}.ak-li-a-body>figure{margin:0 0 32px}.ak-li-a-body>figure img{display:block;width:100%}.ak-li-a-body figcaption{margin-top:8px;color:var(--ak-li-muted);font-size:14px;line-height:20px;text-align:center}.ak-li-embed{display:flex;align-items:center;gap:12px;margin:0 0 32px;padding:16px;border:1px solid var(--ak-li-border);border-radius:8px}.ak-li-embed svg{flex:none;width:32px;height:32px;color:var(--ak-li-muted)}.ak-li-embed-text{display:flex;min-width:0;flex-direction:column}.ak-li-embed-site{font-weight:600}.ak-li-embed-url{overflow:hidden;color:var(--ak-li-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{cloudFrom as
|
|
2
|
+
import{cloudFrom as f}from"../cloud.js";import{indexMedia as m}from"../vision/index-media.js";const u={async run(e,{root:r,sha256:a,env:d,spans:o,signal:t,onProgress:c}){await m(e,{projectRoot:r,sha256:a,faces:!0,cloud:f(d),...o?{spans:o}:{},...t?{signal:t}:{},...c?{onProgress:c}:{}})}};export default u;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{stat as l}from"node:fs/promises";import{join as m,resolve as x}from"node:path";import{z as e}from"zod";import{toSpeechWav as S,toSpeechOpus as $,MediaError as h}from"@allyhub/media";import{inWork as y,measured as R,uploaded as v}from"../cloud.js";export const TRANSCRIBE_TOOL="transcribe";const
|
|
2
|
+
import{stat as l}from"node:fs/promises";import{join as m,resolve as x}from"node:path";import{z as e}from"zod";import{toSpeechWav as S,toSpeechOpus as $,MediaError as h}from"@allyhub/media";import{inWork as y,measured as R,uploaded as v}from"../cloud.js";export const TRANSCRIBE_TOOL="transcribe";const C=e.object({words:e.array(e.object({text:e.string(),start:e.number(),end:e.number()}))});export async function transcribe(w,t){const r=x(w);if(!(await l(r).catch(()=>{}))?.isFile())throw new h("not_found",`Cannot find the file ${r}.`);const o=t.stretch;return y("transcribe",async c=>{t.onProgress?.({step:"audio",message:o?`Reading the sound of ${r} from ${String(o.from)} s to ${String(o.to)} s`:`Reading the sound of ${r}`});const i=m(c,"speech.wav");await S(r,i,{...t,stretch:o});const d=Math.max(0,((await l(i)).size-44)/32e3),u=m(c,"speech.ogg");await $(i,u,t),t.onProgress?.({step:"decode",message:`Recognising ${String(Math.round(d))} s of speech in AllyHub's cloud`});const p=await v(t.cloud,u),f=t.lang?.split("-")[0]?.toLowerCase(),{output:b}=await R(t.cloud,TRANSCRIBE_TOOL,{audio:p,...f?{languageCode:f}:{}},{dir:c,signal:t.signal}),g=C.safeParse(b);if(!g.success)throw new h("cloud","AllyHub's cloud answered a transcript without its words.");const s=o?.from??0,a=n=>Math.round(n*1e3)/1e3;return{words:g.data.words.map(n=>({text:n.text,start:a(n.start+s),end:a(n.end+s)})),duration:a(d),model:TRANSCRIBE_TOOL,confidence:!1,...o?{stretch:{from:s,to:a(s+d)}}:{}}})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{writeFile as A}from"node:fs/promises";import{join as x}from"node:path";import{z as o}from"zod";import{cached as M,MediaError as T,mapLimit as w,frameAt as L,probeVideo as E}from"@allyhub/media";import{inWork as P,measured as R,uploaded as S}from"../cloud.js";export const READ_TEXT_TOOL="read-text";const b=20,_=720;export function sampleTimes(a,t,l=[]){const s=1/t,r=[];for(let e=s/2;e<a;e+=s)r.push(e);for(const e of l)e>=0&&e<a&&r.push(e);r.sort((e,c)=>e-c);const i=[];for(const e of r){const c=i[i.length-1];(c===void 0||e-c>=.1)&&i.push(Math.round(e*1e3)/1e3)}return i}const $=o.object({pictures:o.array(o.object({lines:o.array(o.object({text:o.string(),box:o.tuple([o.number(),o.number(),o.number(),o.number()])})),unread:o.boolean().optional()}))}),H=a=>{const t=e=>Math.round(e*1e4)/1e4,[l,s,r,i]=a.box;return{text:a.text,box:[t(l),t(s),t(r),t(i)]}};export async function screenText(a,t){const l=t.rate??2,s=await E(a,t),r=sampleTimes(s.duration,l,t.extra),i=await M(a,"text",{version:4,options:{engine:READ_TEXT_TOOL,times:r}},t,()=>P("text",async e=>{const c=Math.min(_,s.width),y=Math.round(c*s.height/s.width/2)*2;let
|
|
2
|
+
import{writeFile as A}from"node:fs/promises";import{join as x}from"node:path";import{z as o}from"zod";import{cached as M,MediaError as T,mapLimit as w,frameAt as L,probeVideo as E}from"@allyhub/media";import{inWork as P,measured as R,uploaded as S}from"../cloud.js";export const READ_TEXT_TOOL="read-text";const b=20,_=720;export function sampleTimes(a,t,l=[]){const s=1/t,r=[];for(let e=s/2;e<a;e+=s)r.push(e);for(const e of l)e>=0&&e<a&&r.push(e);r.sort((e,c)=>e-c);const i=[];for(const e of r){const c=i[i.length-1];(c===void 0||e-c>=.1)&&i.push(Math.round(e*1e3)/1e3)}return i}const $=o.object({pictures:o.array(o.object({lines:o.array(o.object({text:o.string(),box:o.tuple([o.number(),o.number(),o.number(),o.number()])})),unread:o.boolean().optional()}))}),H=a=>{const t=e=>Math.round(e*1e4)/1e4,[l,s,r,i]=a.box;return{text:a.text,box:[t(l),t(s),t(r),t(i)]}};export async function screenText(a,t){const l=t.rate??2,s=await E(a,t),r=sampleTimes(s.duration,l,t.extra),i=await M(a,"text",{version:4,options:{engine:READ_TEXT_TOOL,times:r}},t,()=>P("text",async e=>{const c=Math.min(_,s.width),y=Math.round(c*s.height/s.width/2)*2;let g=0;const h=`Reading the text in ${String(r.length)} frames of ${a} in AllyHub's cloud`;t.onProgress?.({step:"decode",message:h});const f=await w(r,4,async(n,d)=>{const m=await L(a,n,{width:c,format:"jpeg",runtimes:t.runtimes,signal:t.signal}),u=x(e,`${String(d).padStart(5,"0")}.jpg`);return await A(u,m),S(t.cloud,u)}),p=[];for(let n=0;n<f.length;n+=b)p.push(f.slice(n,n+b));return(await w(p,2,async(n,d)=>{const{output:m}=await R(t.cloud,READ_TEXT_TOOL,{images:n.map(j=>({url:j,width:c,height:y}))},{dir:x(e,`call-${String(d)}`),signal:t.signal}),u=$.safeParse(m);if(!u.success||u.data.pictures.length!==n.length)throw new T("cloud","AllyHub's cloud answered the text in a form not known.");return g+=n.length,t.onProgress?.({step:"decode",message:h,done:g,total:r.length,unit:"frames"}),u.data.pictures})).flat().map((n,d)=>({t:r[d]??0,lines:n.lines.map(H),...n.unread===!0?{unread:!0}:{}}))}));return{engine:READ_TEXT_TOOL,frames:i}}
|
|
@@ -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
|
|
2
|
+
import{mkdir as D}from"node:fs/promises";import{join as v}from"node:path";import{z as m}from"zod";import{mergeSpans as A}from"@allyhub/formats";import{MediaError as U,ffmpegPath as L,mapLimit as T}from"@allyhub/media";import{inWork as j,measured as z,uploaded as K}from"../cloud.js";import{CHUNKS_AT_ONCE as W,CHUNK_SECONDS as I,CHUNK_WAIT_SECONDS as B,UPLOAD_LONG_SIDE as G,evenSize as R,fitted as q,formatSeconds as _,prepare as J,sampleFpsOf as Q,uploadCopy as V}from"./common.js";import{buildTrack as X}from"./track.js";export const FACES_TOOL="detect-faces",SPAN_PAD=.5;const Y=m.object({frames:m.array(m.object({faces:m.array(m.tuple([m.number(),m.number(),m.number(),m.number()]))}))});export function framesWanted(s,e,r){const n=Math.max(1,Math.round(s*e));return r===void 0?[{first:0,frames:n}]:A(r.map(([o,a])=>[Math.max(0,Math.floor((o-SPAN_PAD)*e)),Math.min(n,Math.ceil((a+SPAN_PAD)*e))])).map(([o,a])=>({first:o,frames:a-o}))}export function framesMissing(s,e,r){const n=[];for(const t of s){let o=-1;const a=i=>{for(let f=o;f<i;f+=r)n.push({first:f,frames:Math.min(r,i-f)});o=-1};for(let i=t.first;i<t.first+t.frames;i++)e.has(i)?o>=0&&a(i):o<0&&(o=i);o>=0&&a(t.first+t.frames)}return n}function Z(s,e,r,n){const t=A(s.map(a=>[a,a+1])),[o]=t;if(!(t.length===1&&o?.[0]===0&&o[1]>=n))return t.map(([a,i])=>[Math.round(a/e*1e3)/1e3,Math.round(Math.min(r,i/e)*1e3)/1e3])}export async function runFaces(s,e){const r=Q(e),{path:n,probe:t}=await J(s,e),o=await L(e),a=Math.max(1,Math.round(t.duration*r)),i=e.found?.fps===r&&e.found.model===FACES_TOOL?e.found.frames:[],f=new Map(i.filter(([c])=>c>=0&&c<a)),p=e.chunkSeconds??I;if(!(p>0))throw new RangeError(`chunkSeconds must be more than 0, not ${String(p)}`);const O=Math.max(1,Math.round(p*r)),y=framesMissing(framesWanted(t.duration,r,e.spans),new Set(f.keys()),O),g=y.reduce((c,d)=>c+d.frames,0);let w=Promise.resolve();if(g>0){const c=`Finding the faces in ${String(g)} frames of ${n} (${_(g/r)} of its ${_(t.duration)}, at ${String(r)} per second) in AllyHub's cloud`;e.onProgress?.({step:"decode",message:c}),await j("faces",async d=>{const h=R(t.width,t.height,G);await T(y,W,async(u,S)=>{const l=v(d,`chunk-${String(S)}`);await D(l,{recursive:!0});const k=v(l,"faces.mp4");await V(n,k,{fps:r,size:h,from:u.first/r,frames:u.frames,ffmpeg:o,signal:e.signal});const N=await K(e.cloud,k),{output:P}=await z(e.cloud,FACES_TOOL,{video:N,width:h.width,height:h.height},{dir:l,signal:e.signal,timeoutSeconds:B}),x=Y.safeParse(P);if(!x.success)throw new U("cloud","AllyHub's cloud answered the faces in a form not known.");q(x.data.frames,u.frames,{faces:[]}).forEach(($,H)=>f.set(u.first+H,$.faces)),w=w.then(()=>e.onFound?.(C(f,r))),await w})})}const E=[...f.keys()].sort((c,d)=>c-d),M=Z(E,r,t.duration,a),F=Array.from({length:a},(c,d)=>(f.get(d)??[]).map(([h,u,S,l])=>({box:[h*t.width,u*t.height,S*t.width,l*t.height],score:1}))),b=X({frames:F,fps:r,width:t.width,height:t.height,model:FACES_TOOL,...e.smoothing===void 0?{}:{smoothing:e.smoothing}});return{track:M?ee(b,M):b,provider:"AllyHub's cloud",found:C(f,r)}}function C(s,e){return{version:1,model:FACES_TOOL,fps:e,frames:[...s.entries()].sort((r,n)=>r[0]-n[0])}}function ee(s,e){const r=n=>e.some(([t,o])=>n>=t-1e-6&&n<=o+1e-6);return{...s,faces:s.faces.map(n=>({...n,samples:n.samples.filter(t=>r(t.t))})).filter(n=>n.samples.length>0),covered:e}}export async function trackFaces(s,e){return(await runFaces(s,e)).track}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{resolve as
|
|
3
|
-
`),
|
|
2
|
+
import{readFile as k}from"node:fs/promises";import{join as g,resolve as h}from"node:path";import{spansCovered as x}from"@allyhub/formats";import{sha256Of as O}from"@allyhub/runtimes";import{facesPath as A,hasMatte as I,mediaIndexDir as w,matteInfoPath as J,matteJson as M,mattePath as N,readFaceTrack as j,readMatteInfo as P,writeAtomic as c}from"@allyhub/media";import{runFaces as S}from"./faces.js";import{runMatte as b}from"./matte.js";export const FOUND_FILE="faces-found.json";async function D(r){try{const e=JSON.parse(await k(r,"utf8"));return e.version===1&&typeof e.model=="string"&&typeof e.fps=="number"&&Array.isArray(e.frames)?e:void 0}catch{return}}export async function indexMedia(r,e){const d=h(r),n=h(e.projectRoot),m=e.faces!==!0&&e.matte!==!0,t=e.sha256??await O(d),s={sha256:t,dir:w(n,t)};if(m||e.faces===!0){const o=A(n,t),a=e.force?void 0:await j(n,t),f=a&&(e.spans===void 0?a.covered===void 0:x(a,e.spans));if(a&&f)s.faces={path:o,written:!1,...l(a)};else{const i=g(w(n,t),FOUND_FILE),u=F=>c(i,`${JSON.stringify(F)}
|
|
3
|
+
`),{track:p,provider:v,found:y}=await S(d,{...e,found:e.force?void 0:await D(i),onFound:u});await u(y),await c(o,`${JSON.stringify(p)}
|
|
4
|
+
`),s.faces={path:o,written:!0,...l(p),provider:v}}}if(m||e.matte===!0){const o=N(n,t),a=J(n,t),f=!e.force&&await I(n,t)?await P(n,t):void 0;if(f)s.matte={path:o,info:a,written:!1,matte:f};else{const i=await b(d,o,e);await c(a,M(i.info)),s.matte={path:o,info:a,written:!0,matte:i.info,provider:i.provider}}}return s}function l(r){return{faces:r.faces.map(e=>({id:e.id,samples:e.samples.length,from:e.samples[0]?.t??0,to:e.samples.at(-1)?.t??0})),...r.speaker===void 0?{}:{speaker:r.speaker}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const EXT_ELEMENTS={"p14:media":"p14:CT_Media","p14:creationId":"x:CT_Val","p14:modId":"x:CT_Val","a16:creationId":"x:CT_Id","a14:useLocalDpi":"x:CT_Val","asvg:svgBlip":"asvg:CT_SVGBlip","p14:sectionLst":"p14:CT_SectionList","p159:morph":"p159:CT_Morph","p14:reveal":"p14:CT_RevealTransition","p14:warp":"p14:CT_InOutTransition"},EXT_TYPES={"p14:CT_Media":{a:{"r:embed":["s"],"r:link":["s"]},c:{"p14:trim":"p14:CT_MediaTrim","p14:fade":"p14:CT_MediaFade","p14:bmkLst":"x:CT_Any","p14:extLst":"x:CT_Any"}},"p14:CT_MediaTrim":{a:{st:["s"],end:["s"]}},"p14:CT_SectionList":{c:{"p14:section":"p14:CT_Section","p14:extLst":"x:CT_Any"}},"p14:CT_Section":{a:{name:["s"],id:["s"]},c:{"p14:sldIdLst":"p14:CT_SectionSlideIdList","p14:extLst":"x:CT_Any"}},"p14:CT_SectionSlideIdList":{c:{"p14:sldId":"p14:CT_SectionSlideIdListEntry"}},"p14:CT_SectionSlideIdListEntry":{a:{id:["n"]}},"p14:CT_MediaFade":{a:{in:["s"],out:["s"]}},"asvg:CT_SVGBlip":{a:{"r:embed":["s"],"r:link":["s"]}},"p159:CT_Morph":{a:{option:["p159:ST_MorphOption","byObject"]}},"p14:CT_RevealTransition":{a:{thruBlk:["b","false"],dir:["s","l"]}},"p14:CT_InOutTransition":{a:{dir:["s","out"]}},"x:CT_Val":{a:{val:["s"]}},"x:CT_Id":{a:{id:["s"]}},"x:CT_Any":{any:!0}},EXT_ATTRS={"p:CT_SlideTransition":{"p14:dur":["n"]}},EXT_ENUMS={"p159:ST_MorphOption":["byObject","byWord","byChar"]};
|
|
2
|
+
export const EXT_ELEMENTS={"p14:media":"p14:CT_Media","p14:creationId":"x:CT_Val","p14:modId":"x:CT_Val","a16:creationId":"x:CT_Id","a14:useLocalDpi":"x:CT_Val","adec:decorative":"adec:CT_Decorative","asvg:svgBlip":"asvg:CT_SVGBlip","p14:sectionLst":"p14:CT_SectionList","p159:morph":"p159:CT_Morph","p14:reveal":"p14:CT_RevealTransition","p14:warp":"p14:CT_InOutTransition","cx:chart":"cx:CT_RelId","cx:chartSpace":"cx:CT_ChartSpace"},EXT_TYPES={"p14:CT_Media":{a:{"r:embed":["s"],"r:link":["s"]},c:{"p14:trim":"p14:CT_MediaTrim","p14:fade":"p14:CT_MediaFade","p14:bmkLst":"x:CT_Any","p14:extLst":"x:CT_Any"}},"p14:CT_MediaTrim":{a:{st:["s"],end:["s"]}},"p14:CT_SectionList":{c:{"p14:section":"p14:CT_Section","p14:extLst":"x:CT_Any"}},"p14:CT_Section":{a:{name:["s"],id:["s"]},c:{"p14:sldIdLst":"p14:CT_SectionSlideIdList","p14:extLst":"x:CT_Any"}},"p14:CT_SectionSlideIdList":{c:{"p14:sldId":"p14:CT_SectionSlideIdListEntry"}},"p14:CT_SectionSlideIdListEntry":{a:{id:["n"]}},"p14:CT_MediaFade":{a:{in:["s"],out:["s"]}},"asvg:CT_SVGBlip":{a:{"r:embed":["s"],"r:link":["s"]}},"adec:CT_Decorative":{a:{val:["b"]}},"p159:CT_Morph":{a:{option:["p159:ST_MorphOption","byObject"]}},"p14:CT_RevealTransition":{a:{thruBlk:["b","false"],dir:["s","l"]}},"p14:CT_InOutTransition":{a:{dir:["s","out"]}},"x:CT_Val":{a:{val:["s"]}},"x:CT_Id":{a:{id:["s"]}},"x:CT_Any":{any:!0},"cx:CT_Aggregation":{},"cx:CT_Axis":{a:{id:["n"],hidden:["b"]},c:{"cx:catScaling":"cx:CT_CategoryAxisScaling","cx:valScaling":"cx:CT_ValueAxisScaling","cx:title":"cx:CT_AxisTitle","cx:units":"cx:CT_AxisUnits","cx:majorGridlines":"cx:CT_Gridlines","cx:minorGridlines":"cx:CT_Gridlines","cx:majorTickMarks":"cx:CT_TickMarks","cx:minorTickMarks":"cx:CT_TickMarks","cx:tickLabels":"cx:CT_TickLabels","cx:numFmt":"cx:CT_NumberFormat","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_AxisTitle":{c:{"cx:tx":"cx:CT_Text","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:offset":"cx:CT_Offset","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_AxisUnits":{a:{unit:["s"]},c:{"cx:unitsLabel":"cx:CT_AxisUnitsLabel","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_AxisUnitsLabel":{c:{"cx:tx":"cx:CT_Text","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_Binning":{a:{intervalClosed:["s"],underflow:["s"],overflow:["s"]},c:{"cx:binSize":"cx:CT_Val","cx:binCount":"cx:CT_Val"}},"cx:CT_CategoryAxisScaling":{a:{gapWidth:["s"]}},"cx:CT_Chart":{c:{"cx:title":"cx:CT_ChartTitle","cx:plotArea":"cx:CT_PlotArea","cx:legend":"cx:CT_Legend","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_ChartData":{c:{"cx:externalData":"cx:CT_ExternalData","cx:data":"cx:CT_Data","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_ChartSpace":{a:{version:["s"],featureList:["s"],fallbackImg:["s"]},c:{"cx:chartData":"cx:CT_ChartData","cx:chart":"cx:CT_Chart","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:clrMapOvr":"a:CT_ColorMapping","cx:fmtOvrs":"cx:CT_FormatOverrides","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_ChartTitle":{a:{pos:["s"],align:["s"],overlay:["b"]},c:{"cx:tx":"cx:CT_Text","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:offset":"cx:CT_Offset","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_Data":{a:{id:["n"]},c:{"cx:numDim":"cx:CT_NumericDimension","cx:strDim":"cx:CT_StringDimension","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_DataId":{a:{val:["n"]}},"cx:CT_DataLabel":{a:{idx:["n"],pos:["s"]},c:{"cx:numFmt":"cx:CT_NumberFormat","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:visibility":"cx:CT_DataLabelVisibilities","cx:separator":"cx:CT_Leaf","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_DataLabelHidden":{a:{idx:["n"]}},"cx:CT_DataLabelVisibilities":{a:{seriesName:["b"],categoryName:["b"],value:["b"]}},"cx:CT_DataLabels":{a:{pos:["s"]},c:{"cx:numFmt":"cx:CT_NumberFormat","cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:visibility":"cx:CT_DataLabelVisibilities","cx:separator":"cx:CT_Leaf","cx:dataLabel":"cx:CT_DataLabel","cx:dataLabelHidden":"cx:CT_DataLabelHidden","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_DataPoint":{a:{idx:["n"]},c:{"cx:spPr":"a:CT_ShapeProperties","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_Extension":{a:{uri:["s"]}},"cx:CT_ExtensionList":{c:{"cx:ext":"cx:CT_Extension"}},"cx:CT_ExternalData":{a:{"r:id":["s"],"cx:autoUpdate":["b"]}},"cx:CT_ExtremeValueColorPosition":{},"cx:CT_FormatOverride":{a:{idx:["n"]},c:{"cx:spPr":"a:CT_ShapeProperties","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_FormatOverrides":{c:{"cx:fmtOvr":"cx:CT_FormatOverride"}},"cx:CT_Formula":{a:{dir:["s"]},t:!0},"cx:CT_Gridlines":{c:{"cx:spPr":"a:CT_ShapeProperties","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_Leaf":{t:!0},"cx:CT_Legend":{a:{pos:["s"],align:["s"],overlay:["b"]},c:{"cx:spPr":"a:CT_ShapeProperties","cx:txPr":"a:CT_TextBody","cx:offset":"cx:CT_Offset","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_NumberColorPosition":{a:{val:["n"]}},"cx:CT_NumberFormat":{a:{formatCode:["s"],sourceLinked:["b"]}},"cx:CT_NumericDimension":{a:{type:["s"]},c:{"cx:f":"cx:CT_Formula","cx:nf":"cx:CT_Formula","cx:lvl":"cx:CT_NumericLevel"}},"cx:CT_NumericLevel":{a:{ptCount:["n"],formatCode:["s"],name:["s"]},c:{"cx:pt":"cx:CT_NumericValue"}},"cx:CT_NumericValue":{a:{idx:["n"]},t:!0},"cx:CT_Offset":{a:{top:["n"],left:["n"]}},"cx:CT_ParentLabelLayout":{a:{val:["s"]}},"cx:CT_PercentageColorPosition":{a:{val:["n"]}},"cx:CT_PlotArea":{c:{"cx:plotAreaRegion":"cx:CT_PlotAreaRegion","cx:axis":"cx:CT_Axis","cx:spPr":"a:CT_ShapeProperties","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_PlotAreaRegion":{c:{"cx:plotSurface":"cx:CT_PlotSurface","cx:series":"cx:CT_Series","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_PlotSurface":{c:{"cx:spPr":"a:CT_ShapeProperties","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_RelId":{a:{"r:id":["s"]}},"cx:CT_Series":{a:{layoutId:["s"],hidden:["b"],ownerIdx:["n"],uniqueId:["s"],formatIdx:["n"]},c:{"cx:tx":"cx:CT_Text","cx:spPr":"a:CT_ShapeProperties","cx:valueColors":"cx:CT_ValueColors","cx:valueColorPositions":"cx:CT_ValueColorPositions","cx:dataPt":"cx:CT_DataPoint","cx:dataLabels":"cx:CT_DataLabels","cx:dataId":"cx:CT_DataId","cx:layoutPr":"cx:CT_SeriesLayoutProperties","cx:axisId":"cx:CT_Val","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_SeriesElementVisibilities":{a:{connectorLines:["b"],meanLine:["b"],meanMarker:["b"],nonoutliers:["b"],outliers:["b"]}},"cx:CT_SeriesLayoutProperties":{c:{"cx:parentLabelLayout":"cx:CT_ParentLabelLayout","cx:visibility":"cx:CT_SeriesElementVisibilities","cx:aggregation":"cx:CT_Aggregation","cx:binning":"cx:CT_Binning","cx:statistics":"cx:CT_Statistics","cx:subtotals":"cx:CT_Subtotals","cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_Statistics":{a:{quartileMethod:["s"]}},"cx:CT_StringDimension":{a:{type:["s"]},c:{"cx:f":"cx:CT_Formula","cx:nf":"cx:CT_Formula","cx:lvl":"cx:CT_StringLevel"}},"cx:CT_StringLevel":{a:{ptCount:["n"],name:["s"]},c:{"cx:pt":"cx:CT_StringValue"}},"cx:CT_StringValue":{a:{idx:["n"]},t:!0},"cx:CT_Subtotals":{c:{"cx:idx":"c:CT_UnsignedInt"}},"cx:CT_Text":{c:{"cx:txData":"cx:CT_TextData","cx:rich":"a:CT_TextBody"}},"cx:CT_TextData":{c:{"cx:f":"cx:CT_Formula","cx:v":"cx:CT_Leaf"}},"cx:CT_TickLabels":{c:{"cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_TickMarks":{a:{type:["s"]},c:{"cx:extLst":"cx:CT_ExtensionList"}},"cx:CT_Val":{a:{val:["n"]},t:!0},"cx:CT_ValueAxisScaling":{a:{max:["s"],min:["s"],majorUnit:["s"],minorUnit:["s"]}},"cx:CT_ValueColorEndPosition":{c:{"cx:extremeValue":"cx:CT_ExtremeValueColorPosition","cx:number":"cx:CT_NumberColorPosition","cx:percent":"cx:CT_PercentageColorPosition"}},"cx:CT_ValueColorMiddlePosition":{c:{"cx:number":"cx:CT_NumberColorPosition","cx:percent":"cx:CT_PercentageColorPosition"}},"cx:CT_ValueColorPositions":{a:{count:["n"]},c:{"cx:min":"cx:CT_ValueColorEndPosition","cx:mid":"cx:CT_ValueColorMiddlePosition","cx:max":"cx:CT_ValueColorEndPosition"}},"cx:CT_ValueColors":{c:{"cx:minColor":"a:CT_SolidColorFillProperties","cx:midColor":"a:CT_SolidColorFillProperties","cx:maxColor":"a:CT_SolidColorFillProperties"}}},EXT_ATTRS={"p:CT_SlideTransition":{"p14:dur":["n"]}},EXT_ENUMS={"p159:ST_MorphOption":["byObject","byWord","byChar"]};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{knowsElement as
|
|
2
|
+
import{knowsElement as b}from"./node.js";import{NAMESPACES as s}from"./ns.js";const h=s.mc,v=new Set(Object.values(s).filter(n=>n.startsWith("http://schemas.openxmlformats.org/")||n===s.p14||n===s.p159||n===s.a14||n===s.a16||n===s.asvg||n===s.cx||n===s.cx1||n===s.cx2));export const understands=n=>v.has(n);const x=(n,c)=>(c??"").split(/\s+/u).filter(i=>i!=="").map(i=>n.scope[i]??`?${i}`);function C(n,c){const i=x(n,n.attrs.find(e=>e.key==="Requires"&&e.uri==="")?.value),a=i.find(e=>!understands(e)&&!c.has(e));if(a!==void 0)return{ok:!1,why:a};const l=new Set(i),f=[...n.children];for(let e=f.pop();e;e=f.pop()){if(l.has(e.uri)&&!c.has(e.uri)&&!b(e.key))return{ok:!1,why:e.key};f.push(...e.children)}return{ok:!0,why:""}}export function applyMce(n,{understood:c=[],dropped:i=[]}={}){const a=new Set(c),l=[],f=(e,w)=>{const m=e.attrs.find(t=>t.uri===h&&t.local==="Ignorable"),d=m?new Set([...w,...x(e,m.value)]):w;e.attrs=e.attrs.filter(t=>t.uri===h?!1:d.has(t.uri)&&!understands(t.uri)&&!a.has(t.uri)?(l.push({what:t.key,detail:`an attribute of ${e.key} in an extension not read`,line:e.line}),!1):!0);const u=[];for(const t of e.children){if(t.uri===h&&t.local==="AlternateContent"){const S=t.children.filter(r=>r.uri===h&&r.local==="Choice");let p;for(const r of S){const o=C(r,a);if(o.ok){p=r;break}l.push({what:"mc:Choice",detail:`it requires ${o.why}, which is not read: its fallback is`,line:r.line})}const k=t.children.find(r=>r.uri===h&&r.local==="Fallback");if(p&&k){const r=[...k.children];for(let o=r.pop();o;o=r.pop()){for(const y of o.attrs)y.uri===s.r&&i.push(y.value);r.push(...o.children)}}p??=k;for(const r of p?.children??[])r.parent=e,u.push(r);continue}if(d.has(t.uri)&&!understands(t.uri)&&!a.has(t.uri)){l.push({what:t.key,detail:"an element in an extension not read",line:t.line});continue}u.push(t)}e.children=u;for(const t of u)f(t,d)};return f(n,new Set),l}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{EXT_ATTRS as c,EXT_ELEMENTS as h,EXT_ENUMS as p,EXT_TYPES as d}from"./ext.js";import{ENUMS as l}from"./generated/enums.js";import{ELEMENTS as m,TYPES as
|
|
2
|
+
import{EXT_ATTRS as c,EXT_ELEMENTS as h,EXT_ENUMS as p,EXT_TYPES as d}from"./ext.js";import{ENUMS as l}from"./generated/enums.js";import{ELEMENTS as m,TYPES as f}from"./generated/spec.js";const a={...f,...d},k={...l,...p},E=c,u=h,o=m;export const rootType=s=>o[s]??u[s]??"*";export function childType(s,t){const e=a[s];return e?.c?.[t]??(e?.any?u[t]??o[t]:void 0)??"*"}export function knowsElement(s){return w.has(s)}const w=new Set([...Object.keys(o),...Object.keys(u),...Object.values(a).flatMap(s=>Object.keys(s.c??{}))]);export function attrSpec(s,t){const e=a[s]?.a?.[t]??E[s]?.[t];if(!e)return;const[r,n]=e;return n===void 0?{kind:r??"s"}:{kind:r??"s",default:n}}const T=/^(-?[0-9]+(?:\.[0-9]+)?)(mm|cm|in|pt|pc|pi)$/u,S={mm:36e3,cm:36e4,in:914400,pt:12700,pc:152400,pi:152400};export function parseValue(s,t){switch(s){case"b":return t==="1"||t==="true"||t==="on";case"n":return Number(t);case"pct":return t.endsWith("%")?Number(t.slice(0,-1))*1e3:Number(t);case"emu":case"tpt":{const e=T.exec(t);if(!e)return Number(t);const r=Number(e[1])*(S[e[2]??""]??1);return Math.round(s==="emu"?r:r/127)}default:return t}}export const inEnum=(s,t)=>k[s]?.includes(t)??!0;export class Marks{read=new WeakSet;attrs=new WeakMap;skipped=new WeakMap;labels=new WeakMap;reasons=new Map}export const as=s=>s;export class XEl{el;type;marks;constructor(t,e,r){this.el=t,this.type=e,this.marks=r}get key(){return this.el.key}wrap(t,e){return new XEl(t,childType(this.type,e),this.marks)}use(){return this.marks.read.add(this.el),this}one(t){const e=this.el.children.find(r=>r.key===t);return e?this.wrap(e,t).use():void 0}all(t){return this.el.children.filter(e=>e.key===t).map(e=>this.wrap(e,t).use())}has(t){return this.one(t)!==void 0}kids(){return this.el.children.map(t=>this.wrap(t,t.key))}choice(...t){const e=this.el.children.find(r=>t.includes(r.key));return e?this.wrap(e,e.key).use():void 0}mark(t){let e=this.marks.attrs.get(this.el);e||this.marks.attrs.set(this.el,e=new Set),e.add(t)}attr(t){const e=this.el.attrs.find(i=>i.key===t);if(!e)return;this.mark(t);const r=attrSpec(this.type,t)?.kind??"s",n=parseValue(r,e.value);return typeof n=="number"&&Number.isNaN(n)?void 0:n}attrOr(t){const e=this.attr(t);if(e!==void 0)return e;const r=attrSpec(this.type,t);return parseValue(r?.kind??"s",r?.default??"")}text(){return this.use(),this.el.text}consume(){const t=[this.el];for(let e=t.pop();e;e=t.pop())this.marks.read.add(e),this.marks.attrs.set(e,new Set(e.attrs.map(r=>r.key))),t.push(...e.children);return this}ignore(t,e){const r=t.filter(n=>this.el.attrs.some(i=>i.key===n));for(const n of r)this.mark(n);return r.length>0&&this.marks.reasons.set(e,(this.marks.reasons.get(e)??0)+1),this}skip(t){this.marks.skipped.set(this.el,t),this.marks.reasons.set(t,(this.marks.reasons.get(t)??0)+1)}label(t){return this.marks.labels.set(this.el,t),this}}export function rootOf(s,t){return new XEl(s,rootType(s.key),t).use()}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const NAMESPACES={a:"http://schemas.openxmlformats.org/drawingml/2006/main",p:"http://schemas.openxmlformats.org/presentationml/2006/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",c:"http://schemas.openxmlformats.org/drawingml/2006/chart",cdr:"http://schemas.openxmlformats.org/drawingml/2006/chartDrawing",pic:"http://schemas.openxmlformats.org/drawingml/2006/picture",dgm:"http://schemas.openxmlformats.org/drawingml/2006/diagram",lc:"http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas",s:"http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",rel:"http://schemas.openxmlformats.org/package/2006/relationships",ct:"http://schemas.openxmlformats.org/package/2006/content-types",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",xsi:"http://www.w3.org/2001/XMLSchema-instance",ep:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xml:"http://www.w3.org/XML/1998/namespace",p14:"http://schemas.microsoft.com/office/powerpoint/2010/main",p15:"http://schemas.microsoft.com/office/powerpoint/2012/main",p159:"http://schemas.microsoft.com/office/powerpoint/2015/09/main",a14:"http://schemas.microsoft.com/office/drawing/2010/main",a16:"http://schemas.microsoft.com/office/drawing/2014/main",asvg:"http://schemas.microsoft.com/office/drawing/2016/SVG/main",dsp:"http://schemas.microsoft.com/office/drawing/2008/diagram",c14:"http://schemas.microsoft.com/office/drawing/2007/8/2/chart",c16:"http://schemas.microsoft.com/office/drawing/2014/chart",c16r2:"http://schemas.microsoft.com/office/drawing/2015/06/chart",v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office"};const
|
|
2
|
+
export const NAMESPACES={a:"http://schemas.openxmlformats.org/drawingml/2006/main",p:"http://schemas.openxmlformats.org/presentationml/2006/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",c:"http://schemas.openxmlformats.org/drawingml/2006/chart",cdr:"http://schemas.openxmlformats.org/drawingml/2006/chartDrawing",pic:"http://schemas.openxmlformats.org/drawingml/2006/picture",dgm:"http://schemas.openxmlformats.org/drawingml/2006/diagram",lc:"http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas",s:"http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",rel:"http://schemas.openxmlformats.org/package/2006/relationships",ct:"http://schemas.openxmlformats.org/package/2006/content-types",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",xsi:"http://www.w3.org/2001/XMLSchema-instance",ep:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xml:"http://www.w3.org/XML/1998/namespace",p14:"http://schemas.microsoft.com/office/powerpoint/2010/main",p15:"http://schemas.microsoft.com/office/powerpoint/2012/main",p159:"http://schemas.microsoft.com/office/powerpoint/2015/09/main",a14:"http://schemas.microsoft.com/office/drawing/2010/main",a16:"http://schemas.microsoft.com/office/drawing/2014/main",asvg:"http://schemas.microsoft.com/office/drawing/2016/SVG/main",adec:"http://schemas.microsoft.com/office/drawing/2017/decorative",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",dsp:"http://schemas.microsoft.com/office/drawing/2008/diagram",c14:"http://schemas.microsoft.com/office/drawing/2007/8/2/chart",c16:"http://schemas.microsoft.com/office/drawing/2014/chart",c16r2:"http://schemas.microsoft.com/office/drawing/2015/06/chart",v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",w10:"urn:schemas-microsoft-com:office:word"};const r=new Map(Object.entries(NAMESPACES).map(([o,t])=>[t,o])),m={"http://purl.oclc.org/ooxml/officeDocument/extendedProperties":NAMESPACES.ep,"http://purl.oclc.org/ooxml/officeDocument/customProperties":"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties":"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","http://purl.oclc.org/ooxml/officeDocument/relationships/customProperties":"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","http://purl.oclc.org/ooxml/officeDocument/relationships/metadata/core-properties":"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"},c="http://purl.oclc.org/ooxml/";export function transitional(o){if(!o.startsWith(c))return o;const t=m[o];if(t!==void 0)return t;const[e,...s]=o.slice(c.length).split("/");return`http://schemas.openxmlformats.org/${e??""}/2006/${s.join("/")}`}export const isStrict=o=>o.startsWith(c);export function qname(o,t){if(o==="")return t;const e=r.get(o);return e===void 0?`{${o}}${t}`:`${e}:${t}`}export const uriOf=o=>NAMESPACES[o];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{strFromU8 as
|
|
2
|
+
import{strFromU8 as d}from"fflate";import{applyMce as u}from"./mce.js";import{Marks as m,rootOf as c,rootType as y}from"./node.js";import{transitional as k}from"./ns.js";import{leftovers as g}from"./report.js";import{attrOf as n,parseXml as w}from"./xml.js";export function resolvePart(l,t){if(t.startsWith("/"))return t.slice(1);const e=l.split("/").slice(0,-1);for(const s of decodeURI(t).split("/"))s===".."?e.pop():s!=="."&&s!==""&&e.push(s);return e.join("/")}export class Package{parts;opened=new Map;failed=new Map;left=new Map;used=new Set;relsCache=new Map;types;bookkeeping=new Map;ignoreExtensions(t,e){for(const s of t)this.bookkeeping.set(s,e)}entries=[];constructor(t){this.parts=t,this.types={defaults:new Map,overrides:new Map};const e=this.xmlOf("[Content_Types].xml");for(const s of e?.children??[]){const o=n(s,"ContentType")??"";s.local==="Default"?this.types.defaults.set((n(s,"Extension")??"").toLowerCase(),o):s.local==="Override"&&this.types.overrides.set((n(s,"PartName")??"").replace(/^\//u,""),o)}}xmlOf(t){const e=this.parts[t];if(e)try{return w(d(e))}catch(s){this.failed.set(t,s instanceof Error?s.message:String(s));return}}contentType(t){return this.types.overrides.get(t)??this.types.defaults.get(t.split(".").pop()?.toLowerCase()??"")}rels(t){const e=this.relsCache.get(t);if(e)return e;const s=t.split("/").slice(0,-1).join("/"),o=t.split("/").pop()??"",a=`${s===""?"":`${s}/`}_rels/${o}.rels`,i=(this.xmlOf(a)?.children??[]).map(r=>{const p=n(r,"TargetMode")==="External",h=n(r,"Target")??"";return{id:n(r,"Id")??"",type:k(n(r,"Type")??""),target:p?h:resolvePart(t,h),external:p}});return this.relsCache.set(t,i),i}rel(t,e){return e===void 0?void 0:this.rels(t).find(s=>s.id===e)}relOfType(t,e){return this.rels(t).find(s=>s.type.endsWith(`/${e}`))}open(t){const e=this.opened.get(t);if(e)return c(e.root,e.marks);const s=this.xmlOf(t);if(!s)return;const o=[],a=u(s,{dropped:o});for(const i of o){const r=this.rel(t,i);r&&!r.external&&this.leave(r.target,"the picture of a choice the file holds for an app that cannot read it")}const f=new m;return this.opened.set(t,{root:s,marks:f,events:a}),c(s,f)}bytes(t){const e=this.parts[t];return e&&this.used.add(t),e}leave(t,e){this.left.set(t,e)}report(){const t=[];for(const[e,s]of this.opened){for(const o of s.events)t.push({kind:"extension",part:e,what:o.what,detail:o.detail});t.push(...g(e,s.root,y(s.root.key),s.marks,this.bookkeeping))}for(const[e,s]of this.failed)t.push({kind:"part",part:e,what:e,detail:`not read: ${s}`});for(const e of Object.keys(this.parts).sort())this.opened.has(e)||this.failed.has(e)||this.left.has(e)||this.used.has(e)||e==="[Content_Types].xml"||/(^|\/)_rels\/[^/]*\.rels$/u.test(e)||e.endsWith("/")||t.push({kind:"part",part:e,what:this.contentType(e)??e,detail:"not opened"});return[...t,...this.entries]}reasons(){const t=new Map;for(const e of this.opened.values())for(const[s,o]of e.marks.reasons)t.set(s,(t.get(s)??0)+o);for(const e of this.left.values())t.set(e,(t.get(e)??0)+1);return t}}
|
|
@@ -73,7 +73,7 @@ export type FileType = keyof typeof FILE_TYPES;
|
|
|
73
73
|
export declare function isFileType(v: string): v is FileType;
|
|
74
74
|
/**
|
|
75
75
|
* The one file the platform stores for an export: the
|
|
76
|
-
* file type's own file, except PNG, which `allyhub
|
|
76
|
+
* file type's own file, except PNG, which `allyhub export` writes a page
|
|
77
77
|
* per file; the platform stores those pages as one zip.
|
|
78
78
|
*/
|
|
79
79
|
export declare function exportFile(type: FileType): {
|
|
@@ -253,6 +253,8 @@ export interface DeckShapeLayout {
|
|
|
253
253
|
box: Box;
|
|
254
254
|
/** It hides what is under it: filled, a picture, a movie. */
|
|
255
255
|
opaque: boolean;
|
|
256
|
+
/** PowerPoint's Mark as Decorative: it only decorates, so its text past the slide's edge or over other text is meant. */
|
|
257
|
+
decorative?: boolean;
|
|
256
258
|
/** Not drawn at this moment: its entrance is to come, or its exit has been. */
|
|
257
259
|
hidden?: boolean;
|
|
258
260
|
text?: DeckTextLayout;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ThemeSetting } from "@allyhub/formats";
|
|
1
2
|
import type { PartDefaults } from "./source.js";
|
|
2
3
|
/** A look: the variables components draw with (@allyhub/sdk's docs/video.md, "The look"). */
|
|
3
4
|
export interface Look {
|
|
@@ -47,7 +48,7 @@ export interface LookConfig {
|
|
|
47
48
|
* the clean one, under the clean one's name (the default every video and
|
|
48
49
|
* deck uses). Undefined when the project sets none.
|
|
49
50
|
*/
|
|
50
|
-
export declare function projectLooks(look: LookConfig | undefined): Record<string, Look> | undefined;
|
|
51
|
+
export declare function projectLooks(look: LookConfig | undefined, theme?: ThemeSetting): Record<string, Look> | undefined;
|
|
51
52
|
/**
|
|
52
53
|
* What a BuildSource carries of allyhub.config.ts: `{ looks }` when it
|
|
53
54
|
* sets a look, `{ partDefaults }` when it sets `defaults.part`.
|
|
@@ -57,10 +58,17 @@ export declare function looksOf(config: {
|
|
|
57
58
|
defaults?: {
|
|
58
59
|
part?: PartDefaults | undefined;
|
|
59
60
|
} | undefined;
|
|
60
|
-
}): {
|
|
61
|
+
}, theme?: ThemeSetting): {
|
|
61
62
|
looks?: Record<string, Look>;
|
|
62
63
|
partDefaults?: PartDefaults;
|
|
64
|
+
theme?: ThemeSetting;
|
|
63
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* A theme's colours as a look's (the project's theme, allyhub.yaml's): its
|
|
68
|
+
* accent 1 the accent, dark 1 the text, light 1 the background, light 2 the
|
|
69
|
+
* surface; none without a theme. The project's look says over them.
|
|
70
|
+
*/
|
|
71
|
+
export declare function themeLookColors(theme: ThemeSetting | undefined): Partial<Look["color"]>;
|
|
64
72
|
/** The look as CSS custom properties (--ak-color-bg, --ak-font-display…). */
|
|
65
73
|
export declare function lookCss(look: Look): Record<string, string>;
|
|
66
74
|
//# sourceMappingURL=look.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const BUILTIN_SFX=["whoosh","tick","pop"];export function isBuiltinSfx(o){return BUILTIN_SFX.includes(o)}export const CLEAN_LOOK={name:"clean",color:{bg:"#ffffff",fg:"#16181d",accent:"#2f5bea",muted:"#5d6470",surface:"#f3f4f6"},font:{display:'"Inter Variable", "Noto Sans SC", "Noto Sans CJK SC", sans-serif',body:'"Inter Variable", "Noto Sans SC", "Noto Sans CJK SC", sans-serif',mono:'ui-monospace, "SF Mono", Menlo, monospace',emoji:'"Noto Color Emoji"'},motion:{beat:.5},sfx:{}};export function projectLooks(o){if(o)return{clean:{...CLEAN_LOOK,color:{...CLEAN_LOOK.color,...o
|
|
2
|
+
import{colorsOfTheme as r}from"@allyhub/formats";export const BUILTIN_SFX=["whoosh","tick","pop"];export function isBuiltinSfx(o){return BUILTIN_SFX.includes(o)}export const CLEAN_LOOK={name:"clean",color:{bg:"#ffffff",fg:"#16181d",accent:"#2f5bea",muted:"#5d6470",surface:"#f3f4f6"},font:{display:'"Inter Variable", "Noto Sans SC", "Noto Sans CJK SC", sans-serif',body:'"Inter Variable", "Noto Sans SC", "Noto Sans CJK SC", sans-serif',mono:'ui-monospace, "SF Mono", Menlo, monospace',emoji:'"Noto Color Emoji"'},motion:{beat:.5},sfx:{}};export function projectLooks(o,n){if(!(!o&&n===void 0))return{clean:{...CLEAN_LOOK,color:{...CLEAN_LOOK.color,...themeLookColors(n),...o?.color},font:{...CLEAN_LOOK.font,...o?.font},motion:{...CLEAN_LOOK.motion,...o?.motion},sfx:{...CLEAN_LOOK.sfx,...o?.sfx}}}}export function looksOf(o,n){const t=projectLooks(o.look,n),e=o.defaults?.part;return{...t?{looks:t}:{},...e?{partDefaults:e}:{},...n===void 0?{}:{theme:n}}}export function themeLookColors(o){if(o===void 0)return{};const n=r(o);return{accent:n.accent1,fg:n.dk1,bg:n.lt1,surface:n.lt2}}export function lookCss(o){const n={};for(const[t,e]of Object.entries(o.color))n[`--ak-color-${t}`]=e;for(const[t,e]of Object.entries(o.font))n[`--ak-font-${t}`]=e;return n["--ak-motion-beat"]=`${String(o.motion.beat)}s`,n}
|
|
@@ -113,7 +113,7 @@ export declare const INDEX_DIR = ".allyhub/cache/index";
|
|
|
113
113
|
/** A file of a media file's index entry: `.allyhub/cache/index/<sha256>/<name>`. */
|
|
114
114
|
export declare function indexPath(sha256: string, name: string): string;
|
|
115
115
|
export type { FaceSample, FaceTrack, TrackedFace } from "@allyhub/formats";
|
|
116
|
-
import type { FaceTrack } from "@allyhub/formats";
|
|
116
|
+
import type { FaceTrack, Span } from "@allyhub/formats";
|
|
117
117
|
type FaceBox = [number, number, number, number];
|
|
118
118
|
/**
|
|
119
119
|
* The box of face `id` (default: the track's speaker) at t, linear
|
|
@@ -228,7 +228,13 @@ export interface ModelInfo {
|
|
|
228
228
|
export interface IndexNeed {
|
|
229
229
|
/** The file, from the project's folder. */
|
|
230
230
|
file: string;
|
|
231
|
-
|
|
231
|
+
/**
|
|
232
|
+
* The seconds of the file the timelines read, in order and apart: an
|
|
233
|
+
* analysis that can (the face track) measures only those, since each
|
|
234
|
+
* frame it looks at is paid for. Absent: the whole file.
|
|
235
|
+
*/
|
|
236
|
+
spans?: Span[];
|
|
237
|
+
[analysis: string]: string | true | Span[] | undefined;
|
|
232
238
|
}
|
|
233
239
|
/** A take's level per frame as the media value carries it: base64 of −dB per 10 ms. */
|
|
234
240
|
export type Envelope = string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{isSpoken as g}from"./messages.js";import{hasAnchors as O,hasSpans as S,readAnchors as j,spokenLine as w}from"./anchors.js";const k=/^[A-Za-z0-9_-]+$/,$=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),E=t=>t.length===0?"(root)":t.map((
|
|
2
|
+
import{isSpoken as g}from"./messages.js";import{hasAnchors as O,hasSpans as S,readAnchors as j,spokenLine as w}from"./anchors.js";const k=/^[A-Za-z0-9_-]+$/,$=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),E=t=>t.length===0?"(root)":t.map((a,s)=>typeof a=="number"?`[${String(a)}]`:`${s?".":""}${a}`).join("");function _(t){const a=u=>Array.isArray(u)&&u.every(o=>typeof o=="string"),s=t.match;if(!$(s)||!Object.values(s).every(u=>typeof u=="string"))return"match must map each case to its text";const p=t.declarations??[],m=t.selectors??[];if(!a(p)||!a(m))return"declarations and selectors must be lists of strings";const x=Object.keys(t).filter(u=>!["declarations","selectors","match"].includes(u));return x.length>0?`unknown key ${x.join(", ")}`:{declarations:p,selectors:m,match:s}}function M(t){if(typeof t=="string")return t;if(g(t))return Object.keys(t).length===2?t:"has more than display and speak";if($(t)&&"match"in t)return _(t)}export function parseScript(t){const a=[],s=(e,n)=>{a.push(`${E(e)}: ${n}`)},p=(e,n)=>{const i=M(e);if(i===void 0||typeof i=="string"&&i!==e){s(n,typeof i=="string"?i:typeof e=="number"||typeof e=="boolean"?`${String(e)} is not text: put it in quotes`:"must be text, { display, speak }, or a plural or selection");return}return i},m=(e,n)=>{if(!$(e)){s(n,"must be names with their text");return}const i={};let d;for(const[r,l]of Object.entries(e)){const c=d===void 0?void 0:i[d];if(l===null&&!k.test(r)&&d!==void 0&&typeof c=="string"){i[d]=`${c}, ${r}`;continue}d=r;const h=x(l,[...n,r]);k.test(r)?h!==void 0&&(i[r]=h):s([...n,r],"a name has only letters, digits, _ and -")}return i},x=(e,n)=>{if(Array.isArray(e)){const i=e.map((d,r)=>x(d,[...n,r]));return i.every(d=>d!==void 0)?i:void 0}return $(e)&&!g(e)&&!("match"in e)?m(e,n):p(e,n)};if(t==null)return{script:{parts:[]}};if(!$(t))return{problems:["(root): must be title, text, parts, slides or boards"]};const u={parts:[]};for(const e of Object.keys(t))["title","text","parts","slides","boards"].includes(e)||s([e],"unknown key: a script has title, text, parts, slides and boards");if(t.title!==void 0&&(typeof t.title=="string"?u.title=t.title:s(["title"],"must be text")),t.text!==void 0){const e=m(t.text,["text"]);e&&(u.text=e)}const o=t.parts??[];if(!Array.isArray(o))s(["parts"],"must be a list of parts");else{const e=new Set;o.forEach((n,i)=>{const d=["parts",i];if(!$(n)){s(d,"must be a part: id, say, screen");return}for(const c of Object.keys(n))["id","say","screen"].includes(c)||s([...d,c],"unknown key: a part has id, say and screen");const r=n.id;if(typeof r!="string"||!k.test(r)){s([...d,"id"],"a part needs an id of letters, digits, _ and -");return}if(e.has(r)){s([...d,"id"],`two parts have the id ${r}`);return}e.add(r);const l={id:r};if(n.say!==void 0){const c=p(n.say,[...d,"say"]);if(g(c))s([...d,"say"],"is one line: write a piece that is shown one way and said another inside it, as <shown|said>");else if(c!==void 0){l.say=c;for(const h of L(c))s([...d,"say"],h)}}if(n.screen!==void 0){const c=m(n.screen,[...d,"screen"]);c&&(l.screen=c)}u.parts.push(l)})}const f=t.slides??[];if(!Array.isArray(f))s(["slides"],"must be a list of slides");else{const e=new Set,n=[];f.forEach((i,d)=>{const r=["slides",d];if(!$(i)){s(r,"must be a slide: id, text, alt, notes");return}for(const b of Object.keys(i))["id","text","alt","notes"].includes(b)||s([...r,b],"unknown key: a slide has id, text, alt and notes");const l=i.id;if(typeof l!="string"||!k.test(l)){s([...r,"id"],"a slide needs an id of letters, digits, _ and -");return}if(e.has(l)){s([...r,"id"],`two slides have the id ${l}`);return}e.add(l);const c={id:l};if(i.text!==void 0){const b=m(i.text,[...r,"text"]);b&&(c.text=b)}const h=i.alt;if(h!==void 0&&($(h)&&Object.entries(h).every(([b,A])=>k.test(b)&&typeof A=="string")?c.alt=h:s([...r,"alt"],"is each shape's alternative text, by name")),i.notes!==void 0){const b=p(i.notes,[...r,"notes"]);typeof b=="string"||b!==void 0&&!g(b)?c.notes=b:b!==void 0&&s([...r,"notes"],"is text")}n.push(c)}),n.length>0&&(u.slides=n)}const y=t.boards??[];if(!Array.isArray(y))s(["boards"],"must be a list of boards");else{const e=new Set,n=[];y.forEach((i,d)=>{const r=["boards",d];if(!$(i)){s(r,"must be a board: id, text");return}for(const h of Object.keys(i))["id","text"].includes(h)||s([...r,h],"unknown key: a board has id and text");const l=i.id;if(typeof l!="string"||!k.test(l)){s([...r,"id"],"a board needs an id of letters, digits, _ and -");return}if(e.has(l)){s([...r,"id"],`two boards have the id ${l}`);return}e.add(l);const c={id:l};if(i.text!==void 0){const h=m(i.text,[...r,"text"]);h&&(c.text=h)}n.push(c)}),n.length>0&&(u.boards=n)}return a.length>0?{problems:a}:{script:u}}function L(t){return typeof t=="string"?j(t).problems:g(t)?[]:Object.values(t.match).some(a=>O(a)||S(a))?["a plural or a selection cannot have anchors or <shown|said>"]:[]}export function saidOf(t){if(typeof t!="string")return{value:t,anchors:[]};const a=j(t);if(a.spans.length===0)return{value:a.text,anchors:a.anchors};const s=w(a);return{value:{display:a.text,speak:s.text},anchors:a.anchors.map(p=>({name:p.name,at:s.at(p.at,!1),...p.end===void 0?{}:{end:s.at(p.end,!0)}}))}}const q=t=>typeof t=="string"||!Array.isArray(t)&&(g(t)||"match"in t);export function scriptKeys(t,a){const s=[],p=new Set,m=[],x=(o,f,y,e=[])=>{p.has(o)?m.push(o):(p.add(o),s.push({key:o,value:f,path:y,...e.length>0?{anchors:e}:{}}))},u=(o,f,y)=>{if(q(f))x(o,f,y);else if(Array.isArray(f))f.forEach((e,n)=>{u(`${o}.${String(n)}`,e,[...y,n])});else for(const[e,n]of Object.entries(f))u(`${o}.${e}`,n,[...y,e])};a.title!==void 0&&x(`${t}.title`,a.title,["title"]);for(const[o,f]of Object.entries(a.text??{}))u(`${t}.${o}`,f,["text",o]);return a.parts.forEach((o,f)=>{const y=`${t}.${o.id}`;if(o.say!==void 0){const e=saidOf(o.say);x(`${y}.say`,e.value,["parts",f,"say"],e.anchors)}for(const[e,n]of Object.entries(o.screen??{}))u(`${y}.${e}`,n,["parts",f,"screen",e])}),(a.slides??[]).forEach((o,f)=>{const y=`${t}.${o.id}`;for(const[e,n]of Object.entries(o.text??{}))u(`${y}.${e}`,n,["slides",f,"text",e]);o.notes!==void 0&&x(`${y}.notes`,o.notes,["slides",f,"notes"]);for(const[e,n]of Object.entries(o.alt??{}))x(`${y}.alt.${e}`,n,["slides",f,"alt",e])}),(a.boards??[]).forEach((o,f)=>{const y=`${t}.${o.id}`;for(const[e,n]of Object.entries(o.text??{}))u(`${y}.${e}`,n,["boards",f,"text",e])}),{keys:s,twice:m}}export function scriptMessages(t,a){return Object.fromEntries(scriptKeys(t,a).keys.map(s=>[s.key,s.value]))}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ThemeSetting } from "@allyhub/formats";
|
|
1
2
|
import type { Look } from "./look.js";
|
|
2
3
|
import type { Combo, Dims, MatrixRule, MatrixSpace } from "./matrix.js";
|
|
3
4
|
import type { MediaInfo } from "./media.js";
|
|
@@ -94,6 +95,8 @@ export interface BuildSource {
|
|
|
94
95
|
data?: Record<string, DataFile>;
|
|
95
96
|
/** Looks by name; the built-in clean is always there. */
|
|
96
97
|
looks?: Record<string, Look>;
|
|
98
|
+
/** The project's theme (allyhub.yaml's), which an item takes unless it names its own. */
|
|
99
|
+
theme?: ThemeSetting;
|
|
97
100
|
/** The project's part defaults (allyhub.config.ts `defaults.part`). */
|
|
98
101
|
partDefaults?: PartDefaults;
|
|
99
102
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as j}from"node:path";import{pathToFileURL as v}from"node:url";import{formatBytes as
|
|
2
|
+
import{join as j}from"node:path";import{pathToFileURL as v}from"node:url";import{mergeSpans as P}from"@allyhub/formats";import{formatBytes as x}from"@allyhub/media";import{sha256Of as S}from"@allyhub/runtimes";export const analysesAsked=n=>Object.keys(n).filter(t=>t!=="file"&&n[t]===!0);export function indexNeeds(n){const t=new Map,f=new Set;for(const i of n)for(const e of i.timeline?.index??[]){const r=t.get(e.file)??{file:e.file};for(const d of analysesAsked(e))r[d]=!0;e.spans===void 0?f.add(e.file):r.spans=P([...r.spans??[],...e.spans]),t.set(e.file,r)}for(const i of f)delete t.get(i)?.spans;return[...t.values()].sort((i,e)=>i.file.localeCompare(e.file))}export function needText(n,t){const f=analysesAsked(n);return`${[...t.filter(e=>f.includes(e.id)).map(e=>e.what),...f.filter(e=>!t.some(r=>r.id===e))].join(" and ")} of ${n.file}`}const $=new Map;function E(n){let t=$.get(n.module);return t||(t=import(n.module.includes("://")?n.module:v(n.module).href).then(i=>{const e=i.default;if(typeof e?.run!="function")throw new Error(`${n.extension}'s media analysis ${n.id} (${n.module}) has no default export with a run().`);return e}),$.set(n.module,t)),t}export async function makeIndex(n,t,f,i){const e=i.onProgress??(()=>{}),r=i.signal,d=[],m=[];if(t.length===0)return{done:d,failed:m};const u=(s,l)=>{m.push({need:s,error:l}),e({status:"failed",file:s.file,message:l})};for(const s of t){if(r?.aborted)break;const l=analysesAsked(s),h=l.filter(o=>!f.some(g=>g.id===o));if(h.length>0){u(s,`No extension measures ${h.join(" and ")} of a media file (contributes.mediaAnalyses).`);continue}const y=f.filter(o=>l.includes(o.id));let c;try{c=await Promise.all(y.map(E))}catch(o){u(s,o instanceof Error?o.message:String(o));continue}const p=c.map(o=>o.unsupported?.()).find(o=>o!==void 0);if(p!==void 0){u(s,p);continue}e({status:"running",file:s.file,message:`Indexing ${needText(s,f)}`});try{const o=j(n,s.file),g=await S(o);for(const k of c)await k.run(o,{root:n,sha256:g,env:i.env,...s.spans?{spans:s.spans}:{},...r?{signal:r}:{},onProgress:a=>{const w=a.done!==void 0&&a.total?Math.min(1,a.done/a.total):void 0,b=a.done!==void 0&&a.total!==void 0&&a.unit!=="frames"?` (${x(a.done)} of ${x(a.total)})`:"";e({status:"running",file:s.file,message:`${a.message}${b}`,...w===void 0?{}:{share:w}})}});d.push(s),e({status:"done",file:s.file,message:`Indexed ${needText(s,f)}`,share:1})}catch(o){u(s,o instanceof Error?o.message:String(o))}}return{done:d,failed:m}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as
|
|
2
|
+
import{z as i}from"zod";export const CliErrorSchema=i.strictObject({error:i.strictObject({code:i.string().regex(/^[a-z][a-z0-9-]*$/u),message:i.string().min(1),hint:i.string().optional()})}),EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},PROBLEMS_FOUND="problems-found",COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const s=Object.keys(t.input.shape);for(const n of t.positional??[])if(!s.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,e]of Object.entries(t.input.shape))if(!e.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:i.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:i.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export class CommandError extends Error{code;hint;exit;constructor(s,n,e={}){super(n,e.cause===void 0?void 0:{cause:e.cause}),this.name="CommandError",this.code=s,this.hint=e.hint,this.exit=e.exit??EXIT.failed}}export const CLI_PROGRAM="AllyHub-CLI";const p=/^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z.-]+)?$/u;export function compareVersions(t,s){const n=p.exec(t.trim()),e=p.exec(s.trim());if(!n||!e)return;for(const o of[1,2,3]){const r=Number(n[o])-Number(e[o]);if(r!==0)return Math.sign(r)}const[a,d]=[n[4],e[4]];if(a===void 0||d===void 0)return a===d?0:a===void 0?1:-1;const c=a.split("."),f=d.split(".");for(let o=0;o<Math.max(c.length,f.length);o++){const[r,u]=[c[o],f[o]];if(r===void 0)return-1;if(u===void 0)return 1;if(r===u)continue;const[m,l]=[/^\d+$/u.test(r),/^\d+$/u.test(u)];return m&&l?Math.sign(Number(r)-Number(u)):m!==l?m?-1:1:r<u?-1:1}return 0}
|