allyhub 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/commands/auth.js +4 -4
- package/dist/commands/cloud-tools.js +11 -11
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/orgs.js +2 -2
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- 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/components/r/callout.json +1 -1
- package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +50 -47
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +17 -2
- 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/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +132 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +153 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +4 -2
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +43 -188
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +51 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- 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/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- 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/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +4 -4
- package/dist/node_modules/@allyhub/sheet-extension/package.json +22 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +20 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.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 +1 -1
- 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 +5 -5
- 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/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +16 -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/phone.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
- package/dist/node_modules/@allyhub/x-extension/package.json +34 -4
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +10 -10
- package/dist/text/facts-text.js +5 -5
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-CjAmWsNR.js} +1 -1
- package/editor-web/assets/alt-DnBZJzEh.js +4 -0
- package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-DeeKhyhZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-b32qTaJg.js} +1 -1
- package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-L4YV_65f.js} +1 -1
- package/editor-web/assets/article-DLMjAdbP.js +73 -0
- package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-BFcM7G2L.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-BNbnMNmw.js} +1 -1
- package/editor-web/assets/button-Chk675Xu.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BEuemvMw.js} +1 -1
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/channel-EzYq4r0d.js +1 -0
- package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
- package/editor-web/assets/choice-BgmBh4yu.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-Zb5nPx_e.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-DSEM2reX.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-BOZa_65H.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-DeiGeVpB.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-fPuQFBJc.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-5vdnoak2.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DFF2mZJ1.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g6-ZLbTg.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-o3hNcHMJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BQiDI9dK.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-CJlMXWWz.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-pNBU8dXv.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-2x-BiWd-.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-etFStEM8.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-B3AYRhIY.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-6y2yX0oq.js} +1 -1
- package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
- package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-CX4BTQQe.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-LbDkOTy3.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-wCKQk7hi.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-a9fofQwk.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-UCLZWch5.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-CAEe88Lp.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-Cp1o45bs.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-c6OVxDyq.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-BVRWslDM.js} +1 -1
- package/editor-web/assets/{dist-CKyfo5RM.js → dist--KKyT5zP.js} +1 -1
- package/editor-web/assets/dist-1k0MHB3i.js +1 -0
- package/editor-web/assets/dist-B9KHJqL5.js +4 -0
- package/editor-web/assets/dist-BbJyrhIY.js +1 -0
- package/editor-web/assets/dist-CJXCQxQM.js +37 -0
- package/editor-web/assets/dist-D9xQGwe9.js +5 -0
- package/editor-web/assets/dist-DFiLzbx8.js +219 -0
- package/editor-web/assets/{dist-shKo7XVN.js → dist-DIPV6xfF.js} +1 -1
- package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
- package/editor-web/assets/dist-Duw28VxJ.js +16 -0
- package/editor-web/assets/{dist-9ymlIMhr.js → dist-DwGhfliS.js} +1 -1
- package/editor-web/assets/dist-OBE2IIYP.js +24 -0
- package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-KdOTJgFu.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Cmlrp7qB.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-CBM7-aQm.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-CEoJkbuW.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-D4S6ZSYD.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-BvkL6RSh.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-lTGguloH.js} +1 -1
- package/editor-web/assets/hint-BimUgJms.js +1 -0
- package/editor-web/assets/index-C-i_iuxN.js +28 -0
- package/editor-web/assets/index-Cxh_Shkm.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvKzqNvp.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-D7hCpehs.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bg93sZQe.js} +1 -1
- package/editor-web/assets/{italic-CDhZKo_q.js → italic-BQBwRTe8.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-CKm_KONJ.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-BKknnpTR.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-BzqkDnqL.js} +3 -3
- package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-CEpvTOAe.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-BJ0qG8Wi.js} +1 -1
- package/editor-web/assets/minus-oPj1GxwA.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-ew3kvyFm.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DqUS2xit.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-DTIAMPGm.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-DoKOE02-.js} +1 -1
- package/editor-web/assets/progress-CPEbDOoN.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-DauOpYun.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-BvMJXUU-.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-D3jdJmhM.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Dm8ZpmPj.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-CMrQL_7U.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-y99z0C7i.js} +1 -1
- package/editor-web/assets/react-DztDSW4P.js +1 -0
- package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-DJi4LW5C.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-jMr_uoF6.js} +1 -1
- package/editor-web/assets/row-ClBisiBs.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-DcUyx03Q.js} +1 -1
- package/editor-web/assets/schemas-68mjUjP5.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-R4X8wRCd.js} +1 -1
- package/editor-web/assets/session-2u9U7koW.js +1 -0
- package/editor-web/assets/slides-BByblSSR.js +1 -0
- package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
- package/editor-web/assets/sound-DExlNJbb.js +1 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-BqvXKbCA.js} +1 -1
- package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CyUBnGTl.js} +1 -1
- package/editor-web/assets/{svg-BjM9RazX.js → svg-lBRT-uhy.js} +1 -1
- package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-hjTXIc6M.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
- package/editor-web/assets/switch-D0K-K8-C.js +1 -0
- package/editor-web/assets/{syntax-CC6QYhCz.js → syntax-Bih_jv7W.js} +1 -1
- package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
- package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-Fu93tFO3.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-BcSoN4Dq.js} +1 -1
- package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BAKAeziW.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-CsFN2jrc.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DP1eqXJ2.js} +1 -1
- package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-DQ5CBmki.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-BGxa0osF.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-D2XhTF49.js} +1 -1
- package/editor-web/assets/video-CDbPX4Cr.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-DM3jMAbZ.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-Bf-DaZEg.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-dp-mdcWd.js} +1 -1
- package/editor-web/index.html +6 -5
- package/package.json +2 -2
- package/editor-web/assets/alt-BOVao_9S.js +0 -4
- package/editor-web/assets/article-B6YCzhj8.js +0 -73
- package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
- package/editor-web/assets/channel-C26aBI4o.js +0 -1
- package/editor-web/assets/chart-BOnxneyw.js +0 -1
- package/editor-web/assets/choice-O5nwc2N0.js +0 -1
- package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
- package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
- package/editor-web/assets/dist-C6NqUEG4.js +0 -16
- package/editor-web/assets/dist-C9UGmCG9.js +0 -6
- package/editor-web/assets/dist-CAk5bjBm.js +0 -1
- package/editor-web/assets/dist-CRaWqNwq.js +0 -37
- package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
- package/editor-web/assets/dist-DXRmkezB.js +0 -38
- package/editor-web/assets/dist-EKK5i0dG.js +0 -219
- package/editor-web/assets/dist-hHJlpLWo.js +0 -5
- package/editor-web/assets/dist-oYKcwWUj.js +0 -4
- package/editor-web/assets/dist-wrKxBrVu.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
- package/editor-web/assets/hint-_AQWCDMj.js +0 -1
- package/editor-web/assets/index-BsstP-cI.js +0 -28
- package/editor-web/assets/index-DQRcmxBO.css +0 -2
- package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
- package/editor-web/assets/progress-0B_TVsPi.js +0 -6
- package/editor-web/assets/react-BP46yLMB.js +0 -1
- package/editor-web/assets/react-pgBZqVxJ.js +0 -96
- package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
- package/editor-web/assets/session-DiI9KYRI.js +0 -1
- package/editor-web/assets/slides-CCwgBcGH.js +0 -1
- package/editor-web/assets/sound-CqryteNl.js +0 -1
- package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
- package/editor-web/assets/switch-DltnKqN-.js +0 -1
- package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
- package/editor-web/assets/video-DXFiCNGc.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Feature highlights from each AllyHub release.
|
|
4
4
|
|
|
5
|
+
## 0.10.0
|
|
6
|
+
|
|
7
|
+
- **Word, Excel and PowerPoint files that hold up in Office.** A deck's file holds what its preview shows; a workbook keeps iterative calculation, data tables and combination charts; a chart over dates shows dates.
|
|
8
|
+
- **Docs for professional work.** Figures and tables numbered, table heads and columns that never break a word, memo and business-letter pages; `allyhub render` says how a doc's pages printed.
|
|
9
|
+
- **`allyhub inspect` shows the important part first.** The most notable findings of each kind, with `--kind` and `--all` for the rest; a long answer is kept whole in a file.
|
|
10
|
+
- **A screen filmed by a phone looks filmed by default**, its colours following what fills the frame, and renders several times faster.
|
|
11
|
+
- **Mark up anywhere.** Mark up on a picture, an animation as it plays and an app in the conversation; a project's page shows its work as cards.
|
|
12
|
+
|
|
5
13
|
## 0.9.0
|
|
6
14
|
|
|
7
15
|
- **A project lists its work.** `allyhub.yaml` names each piece's file, which can have any name in any folder. A project made before this version needs one for Studio to show its work.
|
package/dist/commands/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{billingSummary as
|
|
3
|
-
On any computer, open ${
|
|
4
|
-
`)}}const
|
|
2
|
+
import{z as e}from"zod";import{billingSummary as b,hostsText as y,openBrowser as $,organizations as v,readCredentials as I,signIn as S,signInDevice as k,signInInBackground as _,signedInAs as A,SIGN_IN_WAIT_MS as m}from"@allyhub/cloud";import{API_KEY_ENV as x,EXIT as z}from"@allyhub/protocol";import{defineCommand as f}from"../command.js";import{cloudOf as w,cloudWork as p}from"./cloud.js";const O=e.looseObject({url:e.string()});export const authLogin=f({name:"auth login",summary:"Sign this computer in to AllyHub, for the cloud tools; once per computer, shared with AllyHub Studio",input:e.strictObject({wait:e.boolean().optional().describe(`Wait here for the browser (default in a terminal); --no-wait waits ${String(m/6e4)} minutes in the background and returns at once (default for an agent), then allyhub auth status says when it is done`),browser:e.boolean().default(!0).describe("Open the browser; --no-browser only prints the address"),device:e.boolean().default(!1).describe("Sign in with a code entered in a browser elsewhere (RFC 8628's device flow), for a computer with no browser of its own")}),output:e.looseObject({status:e.enum(["signed-in","waiting"]),email:e.string().optional(),url:e.string().optional(),hosts:O}),examples:["allyhub auth login","allyhub auth login --no-wait --no-browser","allyhub auth login --device"]},(d,u)=>p(async()=>{const n=w(u),t={url:n.url,from:n.config.from},l=`Signing in to AllyHub: ${y(n.config)}.`,o=await A(n);if(o)return{value:{status:"signed-in",email:o.email,hosts:t},text:`This computer is signed in to AllyHub as ${o.email}.`};if(d.device){const i=await k(n,s=>{u.progress(`${l}
|
|
3
|
+
On any computer, open ${s.verification_uri} and enter ${s.user_code}${s.verification_uri_complete===void 0?"":` (or open ${s.verification_uri_complete})`}.`)});return{value:{status:"signed-in",email:i.email,hosts:t},text:`Signed in as ${i.email}.`}}const a=i=>{d.browser&&$(i,u.env)};if(d.wait===!1||d.wait===void 0&&!process.stdout.isTTY){const i=await _(n,u.env);return a(i),{value:{status:"waiting",url:i,hosts:t},text:[l,"Sign in in the browser (opened, or open this address):",` ${i}`,`It waits ${String(m/6e4)} minutes in the background; allyhub auth status says when it is done.`].join(`
|
|
4
|
+
`)}}const r=await S(n,i=>{u.progress(`${l}
|
|
5
5
|
Sign in in your browser. If it did not open:
|
|
6
|
-
${
|
|
6
|
+
${i}`),a(i)});return{value:{status:"signed-in",email:r.email,hosts:t},text:`Signed in as ${r.email}. AllyHub Studio on this computer is signed in too.`}})),authStatus=f({name:"auth status",summary:"Whether this computer is signed in to AllyHub, as whom, and the account's credits; exits 4 when it is not",input:e.strictObject({}),output:e.looseObject({signedIn:e.boolean(),source:e.enum(["env","oauth"]).optional(),organization:e.string().optional(),organizationName:e.string().optional(),email:e.string().optional(),url:e.string(),credits:e.number().optional()})},(d,u)=>p(async()=>{const n=w(u),t=await n.key();if(!t)return{value:{signedIn:!1,url:n.url},text:"Not signed in. Run allyhub auth login.",exit:z.auth};const l=await b(n),o=t.source==="oauth"?await I(n.config):void 0,a=o?.account.organization,r=t.source==="env"?void 0:a!==void 0&&a.name!==""?a:await v(n).then(h=>{const c=h.find(g=>g.id===a?.id)??h.find(g=>g.dissolvedAt===null);return c===void 0?void 0:{id:c.id,name:c.name}}).catch(()=>a),i=t.source==="env"?`with the key in ${x}`:`as ${o?.account.email??"this computer's account"}${r===void 0?"":`, working in ${r.name||"their own organization"} (allyhub orgs use changes it)`}`,s=o===void 0?void 0:o.keychain!==void 0&&n.config.keychain?n.config.keychain.name:n.config.credentialsFile;return{value:{signedIn:!0,source:t.source,...o?{email:o.account.email}:{},...r===void 0?{}:{organization:r.id,organizationName:r.name},url:n.url,credits:l.credits,...s===void 0?{}:{tokensIn:s}},text:`Signed in ${i} at ${n.url}. Credits: ${String(l.credits)}.${s===void 0?"":` Tokens kept in ${s}.`}`}}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as
|
|
3
|
-
`)}}))}const v=(e,
|
|
4
|
-
${e.map(
|
|
2
|
+
import{readFile as L}from"node:fs/promises";import{join as D,resolve as W}from"node:path";import{z as s}from"zod";import{callTool as M,loadCatalog as h,resumeJob as H,uploadFiles as T}from"@allyhub/cloud";import{WORK_DIR as U}from"@allyhub/formats";import{EXIT as m}from"@allyhub/protocol";import{CommandError as g,defineCommand as F}from"../command.js";import{optionName as _}from"../args.js";import{requiredMissing as q,toolInput as B,toolOptions as K,exampleArgs as G,fieldLines as R}from"../tool-options.js";import{cloudOf as p,cloudWork as w,placeFrom as z,plural as $}from"./cloud.js";const j=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),X=8e3,f={input:s.string().optional().describe("The input as JSON, or a file of it: the whole of it, or the fields no option gives; an option given beside it wins"),file:s.string().optional().describe("The path of the file it makes, or for a tool that returns data, of its output as JSON (without an extension it takes the result's, or .json); the same call with the same input then keeps it, calling nothing, and while its call works waits for that call; default a folder under .allyhub/work/"),force:s.boolean().default(!1).describe("With --file: call even when the file was made from this input, and replace a file that has no record"),wait:s.boolean().default(!0).describe("Wait for a long tool (an audit, a video model); --no-wait returns its call at once"),resume:s.string().optional().describe("Wait for a call of this tool this computer made (from --no-wait, or a call that stopped waiting), and download its file")},k=(e,a)=>new g("usage",e,{exit:m.usage,...a===void 0?{}:{hint:a}}),P=e=>{const a=e.reduce((n,o)=>o.map((r,i)=>Math.max(n[i]??0,r.length)),[]);return e.map(n=>` ${n.map((o,r)=>r===n.length-1?o:o.padEnd(a[r]??0)).join(" ")}`.trimEnd())};export const wordOf=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/g,"");function Q(e){return F({name:e.id,summary:`${e.title}: ${e.description} Lists the tools, each a command`,input:s.strictObject({fresh:s.boolean().default(!1).describe("Read the catalog from AllyHub again, not the copy kept an hour")}),output:s.looseObject({work:s.string(),tools:s.array(s.looseObject({name:s.string()}))}),examples:[`allyhub ${e.id}`,`allyhub ${e.id} --json`]},(a,n)=>w(async()=>{const r=(await h(p(n),{refresh:a.fresh})).tools.filter(i=>i.work===e.id).sort((i,t)=>i.name.localeCompare(t.name));return{value:{work:e.id,title:e.title,tools:r.map(i=>({name:i.name,title:i.title,...i.shown?{shown:i.shown.name}:{},description:i.description,long:i.long}))},text:[`${e.title} (${$(r.length,"tool")}):`,...P(r.map(i=>[i.name,i.shown?`${i.title} (${i.shown.name} in AllyHub)`:i.title])),"",`Each costs credits when it worked; a failed call is free. allyhub help ${e.id} <tool> shows a tool's options and how its credits are counted.`].join(`
|
|
3
|
+
`)}}))}const v=(e,a)=>a.length>0?["",`${e}:`,...a]:[],V=100;export function readableJson(e,a=""){const n=o=>o===null||typeof o!="object";if(Array.isArray(e)){if(e.length===0)return"[]";if(e.every(n))return`[${e.map(r=>JSON.stringify(r)).join(", ")}]`;const o=`${a} `;return`[
|
|
4
|
+
${e.map(r=>o+readableJson(r,o)).join(`,
|
|
5
5
|
`)}
|
|
6
|
-
${
|
|
7
|
-
${
|
|
6
|
+
${a}]`}if(j(e)){const o=Object.entries(e).filter(([,t])=>t!==void 0);if(o.length===0)return"{}";const r=`{${o.map(([t,l])=>`${JSON.stringify(t)}: ${JSON.stringify(l)}`).join(", ")}}`;if(o.every(([,t])=>n(t))&&r.length<=V)return r;const i=`${a} `;return`{
|
|
7
|
+
${o.map(([t,l])=>`${i}${JSON.stringify(t)}: ${readableJson(l,i)}`).join(`,
|
|
8
8
|
`)}
|
|
9
|
-
${
|
|
9
|
+
${a}}`}return JSON.stringify(e)}function Y(e,a=5,n=160){const o=i=>{const t=i===void 0?"undefined":JSON.stringify(i);return t.length>n?`${t.slice(0,n-1)}…`:t},r=(i,t)=>[`${i?`${i}: `:""}${$(t.length,"item")}${t.length>a?`, the first ${String(a)}:`:":"}`,...t.slice(0,a).map((l,c)=>` [${String(c)}] ${o(l)}`)];return Array.isArray(e)?r("",e):typeof e!="object"||e===null?[o(e)]:Object.entries(e).flatMap(([i,t])=>Array.isArray(t)?r(i,t):[`${i}: ${o(t)}`])}function C(e,a){if("jobId"in e)return[`${e.tool} is still working (call ${e.jobId}).`,`Wait for it: allyhub ${a} --resume ${e.jobId}${e.file===void 0?"":" (or the same command again: it waits for this call)"}`].join(`
|
|
10
10
|
`);if(e.kept)return[`Kept ${e.file??""}: ${e.tool} made it from this same input on ${e.kept.at} (${e.gen??""}).`,"Nothing was called or charged. --force makes it again."].join(`
|
|
11
|
-
`);const n=readableJson(e.output),
|
|
12
|
-
`),...!
|
|
13
|
-
`)}const Z=e=>{const
|
|
11
|
+
`);const n=readableJson(e.output),o=n.length<=X;return[o?n:[`Output: ${String(Math.round(Buffer.byteLength(n)/1024))} KB of JSON, in short:`,...Y(e.output)].join(`
|
|
12
|
+
`),...!o&&e.outputFile&&e.outputFile!==e.file?[`Whole output: ${e.outputFile}`]:[],...e.file?[`File: ${e.file}${e.replaced?" (replaced: it was made from another input)":""}`]:[],...e.more?Object.entries(e.more).map(([r,i])=>`Also: ${i} (${r} in the output)`):[],...e.words?[`Words: ${e.words} (when each word is said: a part can say a stretch of the file)`]:[],...e.gen?[`Record: ${e.gen} (move it with the file)`]:[],`Credits used: ${e.credits===void 0?"not reported":String(e.credits)}`].join(`
|
|
13
|
+
`)}const Z=e=>{const a=Math.max(0,Math.round(e));return`${String(Math.floor(a/60))}:${String(a%60).padStart(2,"0")}`};async function ee(e,a){const n=e.trim().startsWith("{"),o=n?e:await L(W(a.cwd,e),"utf8").catch(i=>{throw new g("not-found",`--input: cannot read ${e}: ${i.message}`,{exit:m.notFound,hint:"Give a JSON object, or a file of one."})});let r;try{r=JSON.parse(o)}catch{r=void 0}if(!j(r))throw k(`--input: ${n?"the text":e} is not a JSON object.`,`Give '{"field": …}', or a file of it.`);return r}export function toolCommand(e){const a=`${e.work} ${e.name}`,n=K(e.input,Object.keys(f)),o=s.strictObject({...n.shape,...f,input:f.input.describe(n.inputOnly.length?`${f.input.description??""}. Fields only it gives: ${n.inputOnly.join(", ")}`:f.input.description??"")}),r=new Set(n.fields.values()),i=Object.keys(j(e.input.properties)?e.input.properties:{}).filter(l=>!r.has(l)),t=[...n.fields].filter(([,l])=>n.required.includes(l)).map(([l,c])=>`--${_(l)} <${c}>`);return{spec:{name:a,summary:e.description,input:o,output:s.looseObject({tool:s.string(),output:s.record(s.string(),s.unknown()).optional(),outputFile:s.string().optional(),credits:s.number().optional(),file:s.string().optional(),gen:s.string().optional(),more:s.record(s.string(),s.string()).optional(),words:s.string().optional(),jobId:s.string().optional()}),examples:[`allyhub ${[a,...e.example?G(n,e.example):t].join(" ")}`]},about:{lines:[e.title,...e.shown?[wordOf(e.shown.name)===e.name?`Shown to people in AllyHub as "${e.shown.name}".`:`Shown to people in AllyHub as "${e.shown.name}": allyhub ${e.work} ${wordOf(e.shown.name)} finds it too.`]:[],"","A call is charged once, when it worked, as the description says; a failed call is free.",...e.long?["A long tool: the command waits for it (--no-wait returns its call, --resume waits again)."]:[],...v("In --input",R(e.input,{only:i,required:!0})),...v("Output",R(e.output,{depth:3}))],value:{work:e.work,title:e.title,...e.shown?{shown:e.shown.name}:{},long:e.long,inputSchema:e.input,outputSchema:e.output}},run:(l,c)=>w(async()=>{const u=l,b=l,O=p(c),S=await z(c),y=B(n,b,u.input===void 0?{}:await ee(u.input,c));let A=0;const N={base:S,signal:c.signal,onRunning:d=>{Date.now()-A<3e4||(A=Date.now(),c.progress(`${e.name}: working · ${Z((Date.now()-Date.parse(d.createdAt))/1e3)} (call ${d.id})`))},onRetry:(d,E,I)=>{c.progress(`${e.name}: ${E.message}; reading call ${d} again in ${String(I)} s`)}};if(u.resume!==void 0){if(Object.keys(y).length>0||u.file!==void 0)throw k("--resume waits for a call as it was made: give it no input or --file.");const d=await H(O,u.resume,{...N,tool:e.name});return{value:{...d},text:C(d,a)}}const J=q(n,y);if(J.length>0)throw k(`${e.name} needs ${J.join(", ")}.`,`allyhub help ${a} shows its options.`);const x=await M(O,e.name,y,{...N,outDir:D(S,U,e.work,e.name),...u.file===void 0?{}:{file:W(c.cwd,u.file)},force:u.force,wait:u.wait});return{value:{...x},text:C(x,a)}})}}export const CLOUD_SOURCE={entries:[{name:"<work>",summary:"List a work's cloud tools (AllyHub's catalog), a line each; allyhub help lists the works"},{name:"<work> <tool>",summary:"Run a cloud tool with the account's credits, its input as options (allyhub help <work> <tool>, which says how its credits are counted)"}],async nouns(e){return(await h(p(e))).works.map(n=>({name:n.id,summary:`${n.title}: ${n.description}`}))},resolve:(e,a)=>w(async()=>{const[n,o]=e;if(n===void 0||n.startsWith("-"))return;let r;const i=(u,b)=>(r=u,b);let t=await h(p(a)).catch(i),l=t?.works.find(u=>u.id===n);if(l||(t=await h(p(a),{refresh:!0}).catch(u=>i(u,t)),l=t?.works.find(u=>u.id===n)),!t)throw new g("catalog-unreachable",`"${n}" is none of allyhub's own commands, and its cloud tools could not be read: ${r instanceof Error?r.message:String(r)}.`,{exit:m.failed,hint:"They need the network: run allyhub outside a sandbox that blocks it."});if(!l)return;if(o===void 0||o.startsWith("-"))return{command:Q(l),rest:e.slice(1),list:!0};const c=t.tools.find(u=>u.name===o)??t.tools.find(u=>u.work===l.id&&u.shown!==void 0&&wordOf(u.shown.name)===wordOf(o));if(c?.work!==l.id)throw new g("unknown-tool",c?`${o} is not a ${l.id} tool: it is in allyhub ${c.work}.`:`No ${l.id} tool ${o}.`,{exit:m.notFound,hint:c?`allyhub ${c.work} ${o}`:`allyhub ${l.id} lists its tools.`});return{command:toolCommand(c),rest:e.slice(2),list:!1}})},upload=F({name:"upload",summary:"Upload files from this computer for a cloud tool whose input takes a URL (a presenter photo, speech audio, a reference clip), and print a signed URL for each, which works for a few hours",input:s.strictObject({files:s.array(s.string()).min(1).describe("The files: images (.jpg, .png, .webp, .gif), sound (.mp3, .wav, .m4a, .aac, .ogg, .flac) or video (.mp4, .mov, .webm), 50 MB at most")}),positional:["files"],output:s.looseObject({files:s.array(s.looseObject({file:s.string(),ok:s.boolean(),url:s.string().optional()}))}),examples:["allyhub upload assets/media/presenter.jpg"]},(e,a)=>w(async()=>{const n=await T(p(a),e.files,{base:a.cwd}),o=n.filter(t=>!t.ok),r=n.map(t=>t.ok?`${t.file}
|
|
14
14
|
${t.url}${t.expiresAt===void 0?"":` (works until ${t.expiresAt})`}`:`${t.file}
|
|
15
|
-
failed: ${t.error.message}${t.error.hint?` ${t.error.hint}`:""}`);n.length>1&&
|
|
16
|
-
`),...
|
|
15
|
+
failed: ${t.error.message}${t.error.hint?` ${t.error.hint}`:""}`);n.length>1&&r.push(o.length===0?`${$(n.length,"file")} uploaded.`:`${String(n.length-o.length)} of ${$(n.length,"file")} uploaded; ${String(o.length)} failed.`);const i=o[0];return{value:{files:n.map(t=>t.ok?{...t}:{file:t.file,ok:!1,error:{code:t.error.code,message:t.error.message,...t.error.hint?{hint:t.error.hint}:{}}})},text:r.join(`
|
|
16
|
+
`),...i?{exit:i.error.exit}:{}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as
|
|
3
|
-
`),
|
|
2
|
+
import{readFile as V}from"node:fs/promises";import{basename as T,dirname as W,extname as k,join as _,resolve as y}from"node:path";import{compareImages as q}from"@allyhub/measure";import{filmTimes as X,partOf as Y}from"@allyhub/video-measure";import{probeVideo as H}from"@allyhub/media";import{EXIT as z}from"@allyhub/protocol";import{DELIVERY_LEAD as x,cropImage as K,parseEncode as Q,readPng as C,throughEncode as D,videoFrame as U,writePng as b}from"@allyhub/render";import{webp as v,webpPath as F}from"@allyhub/image-render/webp";import{CommandError as I}from"../../command.js";import{isPicture as Z,momentOf as ee,readPicture as L,save as E,secondsOf as ne,usage as p,workPath as te}from"./common.js";function M(e){const n=e.split(",").map(t=>Number(t.trim()));return n.length===4&&n.every(t=>Number.isFinite(t))&&(n[2]??0)>0&&(n[3]??0)>0?n:void 0}async function ie(e,n){const i=[`${e.slice(0,e.length-k(e).length)}.elements.json`,_(W(e),"elements.json")];for(const a of i){let o;try{o=await V(a,"utf8")}catch{continue}const s=JSON.parse(o),c=s[n];if(!c)throw new I("no-element",`${a} has no element ${n}.`,{exit:z.notFound,hint:`Elements: ${Object.keys(s).join(", ")||"none"}.`});return c}throw new I("no-element",`${n} is not a box (x,y,w,h), and there is no elements file beside ${e}.`,{exit:z.notFound,hint:`An element's name is read from ${i.join(" or ")}.`})}const A=(e,n,t)=>{const i=K(e,n);if(!i)throw p("bad-crop",`The box ${n.join(",")} is outside ${t} (${String(e.width)}×${String(e.height)}).`);return i},O=10,G=e=>Math.round(e*1e3)/1e3;async function ae(e,n,t){if((e.at?.length??0)>1)throw p("bad-time","A comparison takes one moment.");if(t){const r=t.timeline,h=r.parts.length===1?r.parts[0]:void 0,l=e.part===void 0?h:Y(r,e.part),m=e.at?.[0];if(m===void 0&&!l)throw p("missing-moment",`Which moment of the piece? Give --at, or --part: ${r.parts.map(S=>S.key).join(", ")}.`);const d=m===void 0?l?.still??0:X([ee(m)],r.parts,l)[0]??0;if(d<0||d>r.duration)throw p("bad-time",`${d.toFixed(2)} s is outside ${t.target.piece}, which is ${r.duration.toFixed(2)} s long.`);let $=await t.still(d),g;if(n){const S=Math.round(d*r.fps),J=Math.max(0,S-Math.round(x*r.fps)),w=[];for(let j=J;j<S;j++)w.push(await t.still(j/r.fps));w.push($),$=await D(w,r.fps,n),g={...n,lead:x,frames:w.length}}const f=m===void 0&&l?l.key:void 0;return{img:C($),label:`${t.target.piece}-${f?.replaceAll("/","-")??`${d.toFixed(2)}s`}`,what:{piece:t.target.piece,combo:t.target.combo,format:t.target.format,...f===void 0?{}:{part:f},t:G(d)},...g?{encoded:g}:{}}}const i=y(e.cwd,e.file??"");let a,o=30,s;if(Z(i)){if(e.at!==void 0)throw p("bad-option",`${e.file??""} is a picture: it has no moments.`);a=b(await L(i))}else{const r=await H(i);o=r.fps,s=ne(e.at??["0"])[0]??0;const h=Math.min(Math.round(s*o),Math.max(0,Math.round(r.duration*o)-1));a=await U(i,h,o)}let c;if(n){const r=Array.from({length:Math.round(x*o)+1},()=>a);a=await D(r,o,n),c={...n,lead:x,frames:r.length}}const u=T(i,k(i));return{img:C(a),label:s===void 0?u:`${u}-${s.toFixed(2)}s`,what:{file:i,...s===void 0?{}:{t:G(s)}},...c?{encoded:c}:{}}}export async function comparePictures(e,n){const t=y(e.cwd,e.reference);let i=await L(t);const a={};e.refCrop!==void 0&&(a.reference=M(e.refCrop)??await ie(t,e.refCrop),i=A(i,a.reference,e.reference));const o=e.encode===void 0?void 0:Q(e.encode);if(e.encode!==void 0&&!o)throw p("bad-encode",`--encode takes a codec and a bitrate in kbps, h264:<kbps> or hevc:<kbps>, not ${e.encode}.`,"For example --encode hevc:618.");const s=await ae(e,o,n);let c=s.img;if(e.crop!==void 0){const f=M(e.crop);if(!f)throw p("bad-crop",`Cannot read --crop ${e.crop}.`,"Write it as x,y,width,height in the candidate's pixels.");a.candidate=f,c=A(c,f,"the candidate")}const{result:u,heatmap:r,side:h,aligned:l}=q(i,c,e.options),m=f=>T(f,k(f)),d=e.out!==void 0?y(e.cwd,e.out):te(e.root,"compare",`${m(t)}${a.reference&&M(e.refCrop??"")===void 0?`-${e.refCrop??""}`:""}-vs-${s.label}`),$={heatmap:await E(F(`${d}.heatmap.png`),await v(b(r))),side:await E(F(`${d}.side.png`),await v(b(h))),candidate:await E(F(`${d}.candidate.png`),await v(b(l))),json:`${d}.json`},g={reference:t,candidate:s.what,crops:a,...s.encoded?{encode:s.encoded}:{},result:u,files:$};return await E($.json,`${JSON.stringify(g,null,2)}
|
|
3
|
+
`),g}const N=e=>Math.round(e*10)/10,P=(e,n=!1)=>{const t=i=>n&&i>0?`+${String(N(i))}`:String(N(i));return`luma ${t(e.luma.mean)} (p5 ${t(e.luma.p5)}, p50 ${t(e.luma.p50)}, p95 ${t(e.luma.p95)}), RGB ${e.rgb.map(t).join("/")}, L*a*b* ${e.lab.map(t).join("/")}`},R=e=>e===void 0?"no flat block":`sd ${String(e.sd)} levels (amount ${String(e.amount)}), neighbours ${String(e.correlation)} alike (size ${String(e.size)}), ${String(e.blocks)} of ${String(e.of)} blocks`,B=e=>e.p25===void 0?"no edges":`p25 ${String(e.p25)} px, median ${String(e.median)} px (${String(e.edges)} edges)`;export function compareText(e){const n=e.result,t=e.candidate,i=`${t.piece??t.file??""}${t.part!==void 0?`, part ${t.part}`:t.t===void 0?"":` at ${t.t.toFixed(2)} s`}`;return[`${e.reference}${e.crops.reference?` [${e.crops.reference.join(",")}]`:""} vs ${i}${e.crops.candidate?` [${e.crops.candidate.join(",")}]`:""}${e.encode?`, through ${e.encode.codec} at ${String(e.encode.kbps)} kbps (${String(e.encode.frames)} frames)`:""}`,`Reference ${String(n.reference.width)}×${String(n.reference.height)}, candidate ${String(n.candidate.width)}×${String(n.candidate.height)}${n.resized?`, resized (${n.resized.mode}) to ${n.resized.to.join("×")}, scale ${n.resized.scale.join(" × ")}`:""}; compared ${String(n.compared[2])}×${String(n.compared[3])} at offset ${String(n.offset.x)},${String(n.offset.y)}.`,...n.search?[`Offset search ±${String(n.search.range)} px: mean ΔE ${String(n.search.unshifted)} unshifted, ${String(n.search.best.meanDeltaE)} at ${String(n.search.best.x)},${String(n.search.best.y)}.`]:[],`Differing (ΔE > ${String(n.tolerance)}): ${String(n.differing)} of ${String(n.pixels)} pixels, ${n.pixels?(n.differing/n.pixels*100).toPrecision(3):"0"} %.`,`ΔE*ab mean ${String(n.deltaE.mean)}, p95 ${String(n.deltaE.p95)}, max ${String(n.deltaE.max)}; channels mean/max R ${String(n.channels.r.mean)}/${String(n.channels.r.max)} G ${String(n.channels.g.mean)}/${String(n.channels.g.max)} B ${String(n.channels.b.mean)}/${String(n.channels.b.max)} alpha ${String(n.channels.alpha.mean)}/${String(n.channels.alpha.max)}; SSIM ${String(n.ssim)}.`,`Levels (0–255 as encoded; L*a*b*): reference ${P(n.levels.reference)}; candidate ${P(n.levels.candidate)}; candidate less reference ${P(n.levels.difference,!0)}.`,`Grain where flat (${String(n.grain.share*100)} % of ${String(n.grain.block)} px blocks): reference ${R(n.grain.reference)}; candidate ${R(n.grain.candidate)}${n.grain.amount!==void 0?`; capture.grain.amount ${String(n.grain.amount)} added to the candidate's gives the reference's`:""}.`,`Edges (10–90 % rise of steps over ${String(n.edges.step)} levels within ${String(n.edges.span)} px): reference ${B(n.edges.reference)}, candidate ${B(n.edges.candidate)}${n.edges.soften!==void 0?`; capture.soften ${String(n.edges.soften)} (at 1080 lines) widens the candidate's sharper quarter to the reference's`:""}.`,`${String(n.regions.length)} region${n.regions.length===1?"":"s"}${n.regions.length>O?` (the ${String(O)} largest; --json has every one)`:""}:`,...n.regions.slice(0,O).map(a=>` ${a.box.join(",")} ${String(a.pixels)} px, ΔE mean ${String(a.meanDeltaE)}, max ${String(a.maxDeltaE)}`),e.files.side,e.files.heatmap].join(`
|
|
4
4
|
`)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{basename as J,resolve as S}from"node:path";import{DECK_OVERLAY_KEY as Q,OVERLAY_KEY as Z,frameOverlay as v,overlaySvg as tt}from"./overlay.js";import{Mattes as et}from"@allyhub/video-measure";import{filmTimes as it,partOf as nt}from"@allyhub/video-measure";import{GRID_WIDTH as st,MAX_TILES as W,defaultCols as ot,gridHtml as rt,gridLayout as at,labelSize as dt,probeVideo as ct,sheetHtml as pt,sheetTile as ft,stretchFrames as lt}from"@allyhub/media";import{clipTypeOf as ht,ffmpegOf as mt,hasFinalLook as ut,videoFrame as wt,writeClip as gt}from"@allyhub/render";import{inTime as K}from"@allyhub/build";import{EXIT as $t}from"@allyhub/protocol";import{CommandError as yt}from"../../command.js";import{drawPage as j,gridError as z,isFile as bt,looks as kt,momentOf as xt,pictureUrl as G,picturePath as P,save as Y,secondsName as D,usage as M,withCombo as H,workPath as Ft}from"./common.js";const A=t=>Math.round(t*1e3)/1e3,X=t=>({source:"piece",piece:t.target.piece,combo:t.target.combo,...t.target.id===void 0?{}:{id:t.target.id},format:t.target.format}),R=(t,e)=>Ft(e,"frames",t.target.piece);function L(t,e){const i=t.at(-1);return t.find(r=>e>=r.start&&e<r.end)??(i&&e>=i.end?i:void 0)}export async function stillsSheet(t,e){const i=t.timeline,r=t.version.summary?.text??[],h=i.parts.flatMap((n,a)=>{const y=n.steps??[n.still];return y.map((m,x)=>({p:n,t:m,slide:a,step:x,of:y.length}))}),p=i.parts.flatMap(n=>n.frame?[n.frame]:[]),u=p.length>0,E=new Set(p.map(n=>(n.width/n.height).toFixed(3))),d=u&&p[0]?E.size===1?p[0].width/p[0].height:1:i.width/i.height,w=d<1?4:3,o=d<1?1320:1600,g=!K(t.piece,t.prepared.kinds),$=t.prepared.kinds.find(n=>n.id===t.piece.kind)?.part??{noun:"part",plural:"parts"},C=[];if(g||u){const n=ft({width:o,cols:w});C.push(...await t.partStills(h.map(a=>({part:a.p.key,step:a.step,width:n,format:"webp"}))))}else for(const n of h)C.push(await t.still(n.t));const k=[];for(let n=0;n<h.length;n+=w)k.push({cells:h.slice(n,n+w).map(({p:a,slide:y,step:m,of:x},_)=>{const b=r.find(I=>I.key===a.key);return{image:C[n+_]??Buffer.alloc(0),label:g?`${String(y+1)}${x>1?`.${String(m)}`:""} · ${a.key}${a.hidden?" · hidden":""}`:a.frame?`${a.key} · ${String(a.frame.width)}×${String(a.frame.height)}`:`${a.key} · ${a.still.toFixed(2)} s`,text:b?.notes??b?.spoken??b?.onScreen.join(" · ")??""}})});const T=await j(t.opened.session.browser,{html:pt({title:g?`${t.target.piece} · ${i.parts.length===1?"1 slide":`${String(i.parts.length)} slides`}`:`${t.target.piece} · ${i.parts.length===1?`1 ${$.noun}`:`${String(i.parts.length)} ${$.plural}`}${u?"":` · ${i.duration.toFixed(2)} s`}`,rows:k,cols:w,width:o,aspect:d}),width:o}),O=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H("sheet",t.target)}.png`)),T);return{mode:"sheet",...g?{slides:!0}:{},unit:$,...X(t),out:O,parts:i.parts.map(n=>({key:n.key,t:A(n.still)}))}}export function clipKind(t){const e=ht(t);if(!e)throw M("bad-clip",`Cannot tell what kind of video ${t} is.`,"End --clip with .gif, .mp4 or .webm.");return e}async function St(t,e){if(!await bt(t))throw new yt("not-found",`There is no file ${t} (--beside).`,{exit:$t.notFound});const i=await ct(t),r=Math.max(1,Math.round(i.duration*i.fps)),h=[];for(const p of e){const u=Math.round(p*i.fps);h.push(p<0||u>r-1?void 0:await wt(t,u,i.fps))}return{info:i,shots:h}}export async function pieceMoments(t,e){const i=t.timeline,r=e.part===void 0?void 0:nt(i,e.part),h=r?.start??0,p=e.from!==void 0||e.to!==void 0;if(p&&e.at!==void 0)throw M("bad-option","Give --at or --from and --to, not both.");if(p&&(e.from===void 0||e.to===void 0))throw M("bad-option","A stretch needs --from and --to.");if(e.clip!==void 0&&!p)throw M("bad-option","--clip needs --from and --to.","For example --from 3.2 --to 4.4 --clip move.gif.");const u=e.clip===void 0?void 0:clipKind(e.clip),E=e.clip===void 0||e.out!==void 0;let d;try{d=e.from!==void 0&&e.to!==void 0?lt({from:h+e.from,to:h+e.to},{fps:i.fps,duration:i.duration,grid:E}):void 0}catch(s){throw z(s)}const w=(e.at??[]).map(xt),o=d?d.times:w.length===0&&r?[r.still]:it(w,i.parts,r);if(o.length>W&&E)throw M("bad-time",`${String(o.length)} moments; one picture holds at most ${String(W)}.`);for(const s of o)if(s<0||s>i.duration+1/i.fps)throw M("bad-time",`${s.toFixed(2)} s is outside ${t.target.piece}, which is ${i.duration.toFixed(2)} s long.`,r?`With --part, --at counts from the part's start; ${r.key} runs ${r.start.toFixed(2)}–${r.end.toFixed(2)} s.`:`Parts: ${i.parts.map(c=>`${c.key} ${c.start.toFixed(2)}–${c.end.toFixed(2)}`).join(", ")}.`);const g=s=>Math.min(s,i.duration),$={...X(t),final:ut(t.look,i),...d?{stretch:{from:d.from,to:d.to,every:d.every,frames:d.times.length}}:{}};if(o.length===1&&!d&&!e.overlay&&e.beside===void 0){const s=o[0]??0,c=r??L(i.parts,s),f=c?.key??"",l=c?.frame??{width:i.width,height:i.height},F=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H(e.at===void 0&&r?r.key:D(s),t.target)}.png`)),await t.still(g(s),{format:kt()}));return{mode:"frame",...$,out:F,t:A(s),part:f,width:l.width,height:l.height}}const k=[];for(const s of o)k.push(await t.still(g(s)));const T=e.clip!==void 0&&u?await gt(k,{file:S(e.cwd,e.clip),type:u,fps:i.fps/(d?.every??1)}):void 0;if(!E)return{mode:"clip",...$,clip:T};const O=[];if(e.overlay){const s=i.duration-1/i.fps,c=await t.version.measure(o.map(l=>Math.min(l,s))),f=new et({root:t.prepared.root,media:t.prepared.media,ffmpeg:await mt()});for(const l of o)O.push(await v(Math.min(l,s),i,c,t.prepared.media,f))}const n=e.beside===void 0?void 0:await St(S(e.cwd,e.beside),o),a=n?2:1,y=i.width/i.height;let m;try{m=at({count:o.length,cols:ot(o.length,y*a),width:st,aspect:y*a})}catch(s){throw z(s)}const x=(m.tiles[0]?.width??i.width)/a,_=Math.max(11,dt(x)-4),b=[...k],I=n?J(e.beside??""):"",B=o.map((s,c)=>{const f=O[c],l={src:G(c),label:K(t.piece,t.prepared.kinds)?`${s.toFixed(d?3:2)} s · ${L(i.parts,s)?.key??""}`:L(i.parts,s)?.key??"",...f?{over:tt(f,i.width,i.height,x/i.width,_)}:{}};if(!n)return{pictures:[l]};const F=n.shots[c];return F&&b.push(F),{pictures:[{src:F?G(b.length-1):void 0,label:`${I} · ${s.toFixed(2)} s${F?"":" · past its end"}`},l]}}),N=await j(t.opened.session.browser,{html:rt({layout:m,cells:B,...e.overlay?{legend:K(t.piece,t.prepared.kinds)?Z:Q}:{}}),width:m.width,pictures:b}),V=o[0]??0,U=o.at(-1)??V,q=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H(`${d?"stretch":"moments"}-${D(V)}-${D(U)}`,t.target)}.png`)),N);return{mode:"grid",...$,out:q,cols:m.cols,tiles:o.map((s,c)=>{const f=m.tiles[c],l=O[c];return{t:A(s),part:L(i.parts,s)?.key??"",...f?{box:[f.x,f.y,f.width,f.height]}:{},...l?{overlay:l}:{},...n?{beside:{t:A(s),shown:n.shots[c]!==void 0}}:{}}}),...n?{beside:{file:S(e.cwd,e.beside??""),video:{duration:n.info.duration,width:n.info.width,height:n.info.height,fps:n.info.fps}}}:{},...T?{clip:T}:{}}}
|
|
2
|
+
import{basename as J,resolve as S}from"node:path";import{DECK_OVERLAY_KEY as Q,OVERLAY_KEY as Z,frameOverlay as v,overlaySvg as tt}from"./overlay.js";import{Mattes as et}from"@allyhub/video-measure";import{filmTimes as it,partOf as nt}from"@allyhub/video-measure";import{GRID_WIDTH as st,MAX_TILES as W,defaultCols as ot,gridHtml as rt,gridLayout as at,labelSize as dt,probeVideo as ct,sheetHtml as pt,sheetTile as ft,stretchFrames as lt}from"@allyhub/media";import{clipTypeOf as ht,ffmpegOf as mt,hasFinalLook as ut,videoFrame as wt,writeClip as gt}from"@allyhub/render";import{inTime as K}from"@allyhub/build";import{EXIT as $t}from"@allyhub/protocol";import{CommandError as yt}from"../../command.js";import{drawPage as j,gridError as z,isFile as bt,looks as kt,momentOf as xt,pictureUrl as G,picturePath as P,save as Y,secondsName as D,usage as M,withCombo as H,workPath as Ft}from"./common.js";const A=t=>Math.round(t*1e3)/1e3,X=t=>({source:"piece",piece:t.target.piece,combo:t.target.combo,...t.target.id===void 0?{}:{id:t.target.id},format:t.target.format}),R=(t,e)=>Ft(e,"frames",t.target.piece);function L(t,e){const i=t.at(-1);return t.find(r=>e>=r.start&&e<r.end)??(i&&e>=i.end?i:void 0)}export async function stillsSheet(t,e){const i=t.timeline,r=t.version.summary?.text??[],h=i.parts.flatMap((n,a)=>{const y=n.steps??[n.still];return y.map((m,x)=>({p:n,t:m,slide:a,step:x,of:y.length}))}),p=i.parts.flatMap(n=>n.frame?[n.frame]:[]),u=p.length>0,E=new Set(p.map(n=>(n.width/n.height).toFixed(3))),d=u&&p[0]?E.size===1?p[0].width/p[0].height:1:i.width/i.height,w=h.length===1?1:d<1?4:3,o=d<1?1320:1600,g=!K(t.piece,t.prepared.kinds),$=t.prepared.kinds.find(n=>n.id===t.piece.kind)?.part??{noun:"part",plural:"parts"},C=[];if(g||u){const n=ft({width:o,cols:w});C.push(...await t.partStills(h.map(a=>({part:a.p.key,step:a.step,width:n,format:"webp"}))))}else for(const n of h)C.push(await t.still(n.t));const k=[];for(let n=0;n<h.length;n+=w)k.push({cells:h.slice(n,n+w).map(({p:a,slide:y,step:m,of:x},_)=>{const b=r.find(I=>I.key===a.key);return{image:C[n+_]??Buffer.alloc(0),label:g?`${String(y+1)}${x>1?`.${String(m)}`:""} · ${a.key}${a.hidden?" · hidden":""}`:a.frame?`${a.key} · ${String(a.frame.width)}×${String(a.frame.height)}`:`${a.key} · ${a.still.toFixed(2)} s`,text:b?.notes??b?.spoken??b?.onScreen.join(" · ")??""}})});const T=await j(t.opened.session.browser,{html:pt({title:g?`${t.target.piece} · ${i.parts.length===1?"1 slide":`${String(i.parts.length)} slides`}`:`${t.target.piece} · ${i.parts.length===1?`1 ${$.noun}`:`${String(i.parts.length)} ${$.plural}`}${u?"":` · ${i.duration.toFixed(2)} s`}`,rows:k,cols:w,width:o,aspect:d}),width:o}),O=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H("sheet",t.target)}.png`)),T);return{mode:"sheet",...g?{slides:!0}:{},unit:$,...X(t),out:O,parts:i.parts.map(n=>({key:n.key,t:A(n.still)}))}}export function clipKind(t){const e=ht(t);if(!e)throw M("bad-clip",`Cannot tell what kind of video ${t} is.`,"End --clip with .gif, .mp4 or .webm.");return e}async function St(t,e){if(!await bt(t))throw new yt("not-found",`There is no file ${t} (--beside).`,{exit:$t.notFound});const i=await ct(t),r=Math.max(1,Math.round(i.duration*i.fps)),h=[];for(const p of e){const u=Math.round(p*i.fps);h.push(p<0||u>r-1?void 0:await wt(t,u,i.fps))}return{info:i,shots:h}}export async function pieceMoments(t,e){const i=t.timeline,r=e.part===void 0?void 0:nt(i,e.part),h=r?.start??0,p=e.from!==void 0||e.to!==void 0;if(p&&e.at!==void 0)throw M("bad-option","Give --at or --from and --to, not both.");if(p&&(e.from===void 0||e.to===void 0))throw M("bad-option","A stretch needs --from and --to.");if(e.clip!==void 0&&!p)throw M("bad-option","--clip needs --from and --to.","For example --from 3.2 --to 4.4 --clip move.gif.");const u=e.clip===void 0?void 0:clipKind(e.clip),E=e.clip===void 0||e.out!==void 0;let d;try{d=e.from!==void 0&&e.to!==void 0?lt({from:h+e.from,to:h+e.to},{fps:i.fps,duration:i.duration,grid:E}):void 0}catch(s){throw z(s)}const w=(e.at??[]).map(xt),o=d?d.times:w.length===0&&r?[r.still]:it(w,i.parts,r);if(o.length>W&&E)throw M("bad-time",`${String(o.length)} moments; one picture holds at most ${String(W)}.`);for(const s of o)if(s<0||s>i.duration+1/i.fps)throw M("bad-time",`${s.toFixed(2)} s is outside ${t.target.piece}, which is ${i.duration.toFixed(2)} s long.`,r?`With --part, --at counts from the part's start; ${r.key} runs ${r.start.toFixed(2)}–${r.end.toFixed(2)} s.`:`Parts: ${i.parts.map(c=>`${c.key} ${c.start.toFixed(2)}–${c.end.toFixed(2)}`).join(", ")}.`);const g=s=>Math.min(s,i.duration),$={...X(t),final:ut(t.look,i),...d?{stretch:{from:d.from,to:d.to,every:d.every,frames:d.times.length}}:{}};if(o.length===1&&!d&&!e.overlay&&e.beside===void 0){const s=o[0]??0,c=r??L(i.parts,s),f=c?.key??"",l=c?.frame??{width:i.width,height:i.height},F=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H(e.at===void 0&&r?r.key:D(s),t.target)}.png`)),await t.still(g(s),{format:kt()}));return{mode:"frame",...$,out:F,t:A(s),part:f,width:l.width,height:l.height}}const k=[];for(const s of o)k.push(await t.still(g(s)));const T=e.clip!==void 0&&u?await gt(k,{file:S(e.cwd,e.clip),type:u,fps:i.fps/(d?.every??1)}):void 0;if(!E)return{mode:"clip",...$,clip:T};const O=[];if(e.overlay){const s=i.duration-1/i.fps,c=await t.version.measure(o.map(l=>Math.min(l,s))),f=new et({root:t.prepared.root,media:t.prepared.media,ffmpeg:await mt()});for(const l of o)O.push(await v(Math.min(l,s),i,c,t.prepared.media,f))}const n=e.beside===void 0?void 0:await St(S(e.cwd,e.beside),o),a=n?2:1,y=i.width/i.height;let m;try{m=at({count:o.length,cols:ot(o.length,y*a),width:st,aspect:y*a})}catch(s){throw z(s)}const x=(m.tiles[0]?.width??i.width)/a,_=Math.max(11,dt(x)-4),b=[...k],I=n?J(e.beside??""):"",B=o.map((s,c)=>{const f=O[c],l={src:G(c),label:K(t.piece,t.prepared.kinds)?`${s.toFixed(d?3:2)} s · ${L(i.parts,s)?.key??""}`:L(i.parts,s)?.key??"",...f?{over:tt(f,i.width,i.height,x/i.width,_)}:{}};if(!n)return{pictures:[l]};const F=n.shots[c];return F&&b.push(F),{pictures:[{src:F?G(b.length-1):void 0,label:`${I} · ${s.toFixed(2)} s${F?"":" · past its end"}`},l]}}),N=await j(t.opened.session.browser,{html:rt({layout:m,cells:B,...e.overlay?{legend:K(t.piece,t.prepared.kinds)?Z:Q}:{}}),width:m.width,pictures:b}),V=o[0]??0,U=o.at(-1)??V,q=await Y(P(e.cwd,e.out,S(R(t,e.root),`${H(`${d?"stretch":"moments"}-${D(V)}-${D(U)}`,t.target)}.png`)),N);return{mode:"grid",...$,out:q,cols:m.cols,tiles:o.map((s,c)=>{const f=m.tiles[c],l=O[c];return{t:A(s),part:L(i.parts,s)?.key??"",...f?{box:[f.x,f.y,f.width,f.height]}:{},...l?{overlay:l}:{},...n?{beside:{t:A(s),shown:n.shots[c]!==void 0}}:{}}}),...n?{beside:{file:S(e.cwd,e.beside??""),video:{duration:n.info.duration,width:n.info.width,height:n.info.height,fps:n.info.fps}}}:{},...T?{clip:T}:{}}}
|
package/dist/commands/frames.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{relative as
|
|
3
|
-
`)}}if(e.grid!==void 0)throw
|
|
4
|
-
`)}}const c=e.item===void 0?void 0:await te(d,a,e.item);if(c!==void 0){ne(e);const
|
|
5
|
-
`)}}if(e.page!==void 0)throw
|
|
6
|
-
`)}}const h=!l&&e.overlay,{result:
|
|
7
|
-
`)}}),framesCuts=b({name:"frames cuts",summary:"A review sheet per cut of a video (a cut take's jumps, part joins, a scenery camera's cuts): frames around it, waveform and level, the words each side, the sound at it",input:t.strictObject({...j,part:t.string().optional().describe("Only this part's cuts and its joins"),out:t.string().optional().describe("The folder the sheets go in; default .allyhub/work/cuts/"),params:
|
|
8
|
-
`)}});const
|
|
9
|
-
`)}}),framesWeb=b({name:"frames web",summary:"A web page's screenshot with its named elements' boxes in the image's pixels, for a screen demo",input:t.strictObject({url:t.string().describe("The page: an address, or an HTML file on this computer"),el:t.array(t.string()).optional().describe("An element to locate, name=selector (CSS, or text=<words>); [data-el] elements are found too"),click:t.array(t.string()).optional().describe("Selectors clicked in order before the shot (close a banner, open a dialog)"),full:t.boolean().default(!1).describe("The whole page, not one viewport"),out:t.string().optional().describe("Where the picture goes (a WebP), its boxes in <out>.elements.json beside it; default under .allyhub/work/pages/"),dir:
|
|
2
|
+
import{relative as _,sep as G}from"node:path";import{z as t}from"zod";import{formatConsole as N,formatProblem as R}from"../text/index.js";import{sizeOf as B}from"@allyhub/build";import{COMPARE_DEFAULTS as H}from"@allyhub/measure";import{CUT_REVIEW_DEFAULTS as U,cutLine as J,dbText as S,silenceText as V}from"@allyhub/video-measure";import{consoleJson as T}from"@allyhub/project";import{PAGE_CAPTURE_DEFAULTS as x}from"@allyhub/browser";import{itemIdOf as q}from"@allyhub/formats";import{EXIT as A}from"@allyhub/protocol";import{defineCommand as b}from"../command.js";import{dir as O}from"../fields.js";import{parameters as C}from"../parameters.js";import{tellPresence as D}from"../presence.js";import{projectRoot as w}from"../project.js";import{VERSION_FIELDS as j,commandError as E,withVersion as $}from"../version.js";import{compareText as P,comparePictures as W}from"./frames/compare.js";import{isPicture as k,isVideo as z,usage as f}from"./frames/common.js";import{cutSheets as X}from"./frames/cuts.js";import{fileFrames as K}from"./frames/file.js";import{pageShot as Q}from"./frames/page.js";import{pieceMoments as Y,stillsSheet as Z}from"./frames/piece.js";import{docPicture as ee}from"./frames/doc.js";import{findDoc as te}from"@allyhub/doc-extension/cli";import{sheetPicture as re}from"./frames/sheet.js";import{findSheet as M}from"@allyhub/sheet-extension/cli";function y(e){return[...e.problems.filter(a=>a.level==="error").map(R),...N(T(e.console))]}const v=e=>({problems:e.problems,...T(e.console)}),F=(e,s)=>w(e,s),oe=t.strictObject({...j,item:t.string().optional().describe("The piece (its id, its file without its extension, or its file; default the project's only one), a sheet, a doc, or a video file: a path ending in .mp4, .mov, .webm, .m4v, .qt, .mkv or .avi is a file"),range:t.string().optional().describe("A sheet's: what to draw, a sheet (Summary), a range (Summary!B3:D9, or B3:D9 on the first sheet), columns (A:C) or rows (1:20); default its sheets, from A1"),page:t.string().optional().describe("A doc's: the pages to draw large, counted from 1 (2, 2-4, 1,5); default every page, small, tiled"),at:t.array(t.string()).optional().describe("Moments: seconds (from the start of --part when given) or anchors (@press, @/map a stretch's end, @press+0.2); a video file's are seconds. One is written as the frame itself, several are tiled. Without it, --part's still, or every part's still on one sheet"),part:t.string().optional().describe("The part --at, --from and --to count from; alone, its still"),from:t.number().optional().describe("A stretch of consecutive frames from this second (with --to), instead of --at"),to:t.number().optional().describe("The stretch's last second"),clip:t.string().optional().describe("Write the stretch as a small silent video, .gif, .mp4 or .webm by its extension; with --out, the grid too"),overlay:t.boolean().default(!1).describe("Draw over each tile the face boxes with ids, the person matte's outline, the covered areas and the text boxes (a deck's: each shape's box and name, and the lines nearly in line); places nothing. Alone, over every part's still"),beside:t.string().optional().describe("Another video file (a reference) whose frame at the same time goes on each tile's left"),grid:t.number().int().min(4).optional().describe("A video file at one --at: the frame at its own size with numbered lines every this many pixels"),out:t.string().optional().describe("Where the picture goes, always a WebP whatever the extension; default under .allyhub/work/frames/")});function ae(e){const s=[["--combo",e.combo!==void 0],["--part",e.part!==void 0],["--beside",e.beside!==void 0],["--overlay",e.overlay]].filter(([,a])=>a).map(([a])=>a);if(s.length>0)throw f("bad-option",`${s.join(" and ")} ${s.length===1?"is":"are"} a piece's: a video file has no combos or parts.`)}function ne(e){const s=[["--at",e.at!==void 0],["--part",e.part!==void 0],["--from",e.from!==void 0],["--to",e.to!==void 0],["--clip",e.clip!==void 0],["--overlay",e.overlay],["--beside",e.beside!==void 0],["--range",e.range!==void 0],["--combo",e.combo!==void 0]].filter(([,a])=>a).map(([a])=>a);if(s.length>0)throw f("bad-option",`${s.join(" and ")} ${s.length===1?"is":"are"} not a doc's: a doc has pages (--page), not moments.`)}export const frames=b({name:"frames",summary:"Pictures of a piece over time, drawn as the render draws them: every part's still on a sheet (default), a moment, a stretch tiled or as a clip, overlays; a sheet's cells, or a range of them; a doc's pages as they print, with how many; or any video file's frames",input:oe,positional:["item"],output:t.looseObject({mode:t.enum(["sheet","frame","grid","clip"])}),examples:["allyhub frames launch/film","allyhub frames launch/film --at 2.5","allyhub frames launch/film --part hook --from 0 --to 1 --clip hook.gif","allyhub frames launch/film --at 1,2,3 --overlay","allyhub frames reference.mp4 --at 0,1,2","allyhub frames reference.mp4 --at 3 --grid 50","allyhub frames finance/budget --range 'Summary!A1:F20'","allyhub frames launch/plan","allyhub frames launch/plan --page 2-3"]},async(e,s)=>{const a=s.cwd;if(e.item!==void 0&&z(e.item)){ae(e);const r=await K({cwd:a,root:await F(a,e.dir),file:e.item,at:e.at,from:e.from,to:e.to,clip:e.clip,out:e.out,grid:e.grid}).catch(g=>{throw E(g)}),n=r.video,p=`${r.file} · ${n.duration.toFixed(2)} s · ${String(n.width)}×${String(n.height)} · ${String(n.fps)} fps`,u="clip"in r&&r.clip?`${r.clip.out} (${r.clip.type}, ${String(r.clip.frames)} frames at ${String(r.clip.fps)} fps, no sound)`:void 0;return{value:r,text:[p,..."out"in r?[`${r.out}${"tiles"in r?` (${String(r.tiles.length)} moments in ${String(r.cols)} columns)`:""}`]:[],...u?[u]:[]].join(`
|
|
3
|
+
`)}}if(e.grid!==void 0)throw f("bad-option","--grid draws a video file's frame at its own size: give the file.");const d=await w(a,e.dir);if(e.item!==void 0&&await M(d,a,e.item)!==void 0){const r=await re({cwd:a,root:d,item:e.item,range:e.range,out:e.out}),n=await M(d,a,e.item);return n!==void 0&&Object.keys(r.at).length>0&&await D(d,{doing:"looking",item:q(_(d,n).split(G).join("/")),place:r.at}),{value:r,text:[r.out,...r.cut].join(`
|
|
4
|
+
`)}}const c=e.item===void 0?void 0:await te(d,a,e.item);if(c!==void 0){ne(e);const r=await ee({cwd:a,root:d,file:c,page:e.page,out:e.out,progress:p=>{s.progress(p)}}),n=r.drawn.length===r.pages?"every page":`page${r.drawn.length===1?"":"s"} ${r.drawn.join(", ")}`;return{value:r,text:[r.out,`${r.doc}: ${String(r.pages)} page${r.pages===1?"":"s"} on ${String(r.paper.width)} × ${String(r.paper.height)} mm paper; ${n} drawn`].join(`
|
|
5
|
+
`)}}if(e.page!==void 0)throw f("bad-option","--page is a doc's: name the doc.");if(e.range!==void 0)throw f("bad-option","--range is a sheet's: name the sheet.");const l=e.at!==void 0||e.part!==void 0||e.from!==void 0||e.to!==void 0;if(!l&&(e.clip!==void 0||e.beside!==void 0))throw f("bad-option","--clip and --beside draw moments: give --at, --part, or --from and --to.");if(!l&&!e.overlay){const{result:r,...n}=await $(e,s,"render",g=>Z(g,{cwd:a,root:d,out:e.out})),{unit:p,...u}=r;return{value:{...u,...v(n)},text:[`${r.out} (${r.piece} · ${r.format} · ${String(r.parts.length)} ${r.parts.length===1?p.noun:p.plural})`,...y(n)].join(`
|
|
6
|
+
`)}}const h=!l&&e.overlay,{result:o,...i}=await $(e,s,"render",async r=>{const n=await Y(r,{cwd:a,root:d,at:h?r.timeline.parts.map(L=>String(L.still)):e.at,part:e.part,from:e.from,to:e.to,clip:e.clip,out:e.out,overlay:e.overlay,beside:e.beside}),p="tiles"in n?n.tiles[0]:void 0,u=n.mode==="frame"?n.t:n.stretch?.from??p?.t,g=n.mode==="frame"?n.part:p?.part;return u!==void 0&&!h&&await D(d,{doing:"looking",item:r.piece.place,place:{t:u,...g===void 0?{}:{part:g}}}),n}),m=[];if(o.mode==="frame"&&m.push(`${o.out} (${o.piece} · ${o.format} · ${o.part} · ${o.t.toFixed(2)} s)`),o.mode==="grid"){m.push(`${o.out} (${o.piece} · ${String(o.tiles.length)} moments in ${String(o.cols)} columns)`,` ${o.tiles.map(n=>`${n.t.toFixed(o.stretch?3:2)} ${n.part}`).join(" · ")}`);const r=[...new Set(o.tiles.flatMap(n=>n.overlay?.missing??[]))];r.length>0&&m.push(` Not measured: ${r.join(", ")}.`)}return o.stretch&&m.push(` Stretch ${o.stretch.from.toFixed(3)}–${o.stretch.to.toFixed(3)} s, one frame in ${String(o.stretch.every)}: ${String(o.stretch.frames)} frames.`),"clip"in o&&o.clip&&m.push(`${o.clip.out} (${o.clip.type}, ${String(o.clip.frames)} frames at ${String(o.clip.fps)} fps, no sound)`),{value:{...o,...v(i)},text:[...m,...y(i)].join(`
|
|
7
|
+
`)}}),framesCuts=b({name:"frames cuts",summary:"A review sheet per cut of a video (a cut take's jumps, part joins, a scenery camera's cuts): frames around it, waveform and level, the words each side, the sound at it",input:t.strictObject({...j,part:t.string().optional().describe("Only this part's cuts and its joins"),out:t.string().optional().describe("The folder the sheets go in; default .allyhub/work/cuts/"),params:C({span:t.number().positive().max(10).default(U.span).describe("Seconds shown on each side of a cut")})}),positional:["item"],output:t.looseObject({out:t.string(),cuts:t.array(t.looseObject({sheet:t.string()}))}),examples:["allyhub frames cuts launch/film","allyhub frames cuts launch/film --part hook"]},async(e,s)=>{const a=s.cwd,d=await w(a,e.dir),{result:c,...l}=await $(e,s,"render",i=>X(i,{cwd:a,root:d,part:e.part,out:e.out,review:{span:e.params.span}})),h=c.part===void 0?`${String(c.cuts.length)} cut${c.cuts.length===1?"":"s"}`:`${String(c.cuts.length)} of ${String(c.total)} cuts (part ${c.part} and its joins)`,o=[`${c.piece} · ${c.format} · ${h}; silence is sound under ${String(c.threshold)} dBFS`];for(const i of c.cuts){const m=i.sound?`level ${S(i.sound.levelDb)} / around ${S(i.sound.aroundDb)} dBFS, peak ${S(i.sound.peakDb)}, step ${i.sound.jumpDb<0?"−":"+"}${Math.abs(i.sound.jumpDb).toFixed(1)} dB`:"no sound";o.push(`${String(i.index).padStart(3)} ${i.t.toFixed(3).padStart(7)} s ${i.kind.padEnd(6)} ${J(i)}`,` silence at the cut: ${V(i.silence)} · ${m}`,` “${i.said.before}” | “${i.said.after}”${i.across?` · across the cut: “${i.across}”`:""}`,` ${i.sheet}`)}return{value:{...c,...v(l)},text:[...o,...y(l)].join(`
|
|
8
|
+
`)}});const I=H;export const framesCompare=b({name:"frames compare",summary:"How a candidate picture differs from a reference, as numbers (ΔE, channels, SSIM, levels, grain, edges, regions) with a heatmap and a side-by-side: a piece's moment, a picture file or a video file's frame",input:t.strictObject({reference:t.string().describe("The reference picture (PNG, WebP, JPEG…)"),candidate:t.string().optional().describe("A piece (its id, its file without its extension, or its file; default the project's only one) at --at or --part's still; or a file by its extension: a picture (.png, .jpg, .webp…), or a video file's frame at --at (.mp4, .mov, .webm…)"),combo:j.combo,dir:O,at:t.string().optional().describe("The moment: seconds (from the start of --part when given) or an anchor of the piece; a video file's are seconds (default 0)"),part:t.string().optional().describe("The piece's part --at counts from; alone, its still"),refCrop:t.string().optional().describe("Cut the reference to x,y,width,height, or to an element of the elements.json beside it (frames web writes one)"),crop:t.string().optional().describe("Cut the candidate to x,y,width,height before any resize"),encode:t.string().optional().describe("Draw the candidate through this encode first, as a platform serves it: codec:kbps, h264 or hevc (hevc:618)"),out:t.string().optional().describe("Where its files go, a path without extension; default under .allyhub/work/compare/"),params:C({resize:t.enum(["stretch","width","none"]).default(I.resize).describe("When sizes differ: stretch the candidate to the reference, scale it to its width, or compare the common area"),shift:t.number().int().min(0).max(32).default(I.shift).describe("Search the best offset within this many pixels each way")})}),positional:["reference","candidate"],output:t.looseObject({reference:t.string(),files:t.looseObject({side:t.string(),heatmap:t.string()})}),examples:["allyhub frames compare reference.png launch/film --at 2.5 --encode hevc:618","allyhub frames compare reference.png shot.webp --ref-crop cta","allyhub frames compare reference.png theirs.mp4 --at 3"]},async(e,s)=>{const a=s.cwd,d=e.params;if(!k(e.reference))throw f("bad-reference",`${e.reference} is not a picture: the reference comes first, a picture file (PNG, WebP, JPEG…), then the piece or file to compare with it.`,`For example: allyhub frames compare ${e.candidate!==void 0&&k(e.candidate)?e.candidate:"reference.png"} ${e.reference}`);const c=e.candidate!==void 0&&(k(e.candidate)||z(e.candidate))?e.candidate:void 0,l=m=>({cwd:a,root:m,reference:e.reference,file:c,at:e.at===void 0?void 0:[e.at],part:e.part,refCrop:e.refCrop,crop:e.crop,encode:e.encode,out:e.out,options:{shift:d.shift,resize:d.resize}});if(c!==void 0){if(e.combo!==void 0||e.part!==void 0)throw f("bad-option","--combo and --part are a piece's: the candidate is a file.");const m=await W(l(await F(a,e.dir)),void 0).catch(r=>{throw E(r)});return{value:m,text:P(m)}}const h=await w(a,e.dir),{result:o,...i}=await $({...e,item:e.candidate},s,"render",m=>W(l(h),m));return{value:{...o,...v(i)},text:[P(o),...y(i)].join(`
|
|
9
|
+
`)}}),framesWeb=b({name:"frames web",summary:"A web page's screenshot with its named elements' boxes in the image's pixels, for a screen demo",input:t.strictObject({url:t.string().describe("The page: an address, or an HTML file on this computer"),el:t.array(t.string()).optional().describe("An element to locate, name=selector (CSS, or text=<words>); [data-el] elements are found too"),click:t.array(t.string()).optional().describe("Selectors clicked in order before the shot (close a banner, open a dialog)"),full:t.boolean().default(!1).describe("The whole page, not one viewport"),out:t.string().optional().describe("Where the picture goes (a WebP), its boxes in <out>.elements.json beside it; default under .allyhub/work/pages/"),dir:O,size:t.string().default(`${String(x.width)}x${String(x.height)}`).describe("The viewport, WIDTHxHEIGHT in CSS pixels"),scale:t.number().min(1).max(4).default(x.scale).describe("Image pixels per CSS pixel; 2 draws a high-density screen, sharp when a camera goes in"),wait:t.number().int().min(0).optional().describe("Milliseconds to wait after loading and clicking")}),positional:["url"],output:t.looseObject({out:t.string(),elementsFile:t.string()}),examples:["allyhub frames web https://example.com --el cta=text=Sign\\ up --scale 2 --out assets/media/home","allyhub frames web page.html --click '#accept' --full"]},async(e,s)=>{const a=s.cwd,[d,c]=B(e.size),l=await Q({cwd:a,root:await F(a,e.dir),url:e.url,out:e.out,el:e.el,click:e.click,width:d,height:c,scale:e.scale,full:e.full,wait:e.wait});return{value:l,text:[`${l.out}: ${String(l.width)}×${String(l.height)}${l.scale===1?"":` (${String(l.scale)} image pixels per CSS pixel)`}, ${String(Object.keys(l.elements).length)} elements (${Object.keys(l.elements).join(", ")||"none"}) in ${l.elementsFile}`,...l.missing.length>0?[`Not found: ${l.missing.join(", ")} (the selector is wrong, or something must be opened with --click first).`]:[]].join(`
|
|
10
10
|
`),exit:l.missing.length>0?A.failed:A.ok}}),FRAMES_COMMANDS=[frames,framesCuts,framesCompare,framesWeb];
|
package/dist/commands/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{add as
|
|
2
|
+
import{add as s,addSearch as e}from"./add.js";import{align as n}from"./align.js";import{authLogin as p,authStatus as f}from"./auth.js";import{orgsList as l,orgsUse as S}from"./orgs.js";import{MAIL_COMMANDS as a}from"./mail.js";import{check as C}from"./check.js";import{dev as d}from"./dev.js";import{doctor as c}from"./doctor.js";import{EXTENSIONS_SOURCE as M,builtInCommands as O}from"./contributed.js";import{doctorExtensions as E}from"./extensions.js";import{FRAMES_COMMANDS as u}from"./frames.js";import{INSPECT_COMMANDS as o,VIEWS_SOURCE as N,inspectCommands as h}from"./inspect/index.js";import{render as A}from"./render.js";import{skills as _,skillsShow as D}from"./skills.js";import{CLOUD_SOURCE as U,upload as g}from"./cloud-tools.js";export const COMMANDS=[C,...o,A,...u,d,s,e,_,D,n,p,f,l,S,g,...a,c,E],COMMAND_SOURCES=[U,M,N];let t;export function allCommands(){return t??=Promise.all([h(),O()]).then(([m,i])=>{const r=COMMANDS.indexOf(o[0]);return[...COMMANDS.slice(0,r),...m,...COMMANDS.slice(r+o.length),...i]}),t}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as s}from"zod";import{FACTS_HEAD as
|
|
3
|
-
`)}
|
|
2
|
+
import{mkdirSync as d,writeFileSync as x}from"node:fs";import{dirname as g,join as h}from"node:path";import{z as s}from"zod";import{FACTS_HEAD as $,MOMENTS as b,STRETCH as y,allFindings as w}from"@allyhub/build";import{consoleJson as m}from"@allyhub/project";import{momentsIn as k}from"@allyhub/video-measure";import{EXIT as f}from"@allyhub/protocol";import{WORK_DIR as v}from"@allyhub/formats";import{countFacts as E}from"@allyhub/diagnostics";import{CommandError as p}from"../../command.js";import{builtInExtensions as F,extensionsAt as u,factKindsOf as c,factOwner as O}from"../extensions.js";import{formatConsole as T,formatFacts as a,formatProblem as j}from"../../text/index.js";import{known as S}from"../../version.js";export const plural=(e,t)=>`${String(e)} ${t}${e===1?"":"s"}`,sec=e=>e.toFixed(2),boxText=e=>`[${e.join(",")}]`,HEAD=$;export{b as MOMENTS,y as STRETCH};export const kind=s.array(s.string()).optional().describe(`Only facts of these kinds: ${c(F()).map(e=>e.kind).join(", ")}`),all=w;export function kindsOf(e,t){if(e===void 0)return;const n=c(u(t)).map(o=>o.kind);return e.map(o=>{if(!n.includes(o))throw new p("bad-kind",`There is no kind of fact ${o}.`,{exit:f.usage,hint:`Kinds: ${n.join(", ")}.`});return o})}export function momentsOf(e,t){if(e.at!==void 0&&e.every!==void 0)throw new p("bad-option","--at and --every do not go together.",{exit:f.usage});const n=e.at?.map(o=>{const r=Number(o.replace(/s$/u,""));return o.trim().startsWith("@")||!Number.isFinite(r)?o:r});return S(()=>k(t.timeline,{...n===void 0?{}:{at:n},...e.every===void 0?{}:{every:e.every},part:e.part,from:e.from,to:e.to},t.target))}export function pageLines(e){const t=e.problems.filter(n=>n.level==="error");return[...t.length>0?["Must fix (facts may be missing where they are):",...t.map(j)]:[],...T(m(e.console))]}export const pageJson=e=>({problems:e.problems.filter(t=>t.level==="error"),...m(e.console)});export function factLines(e,t,n){const o=a(e,{all:t});if(t||n===void 0)return o;const r=a(e,{all:!0});return o.some(i=>/^ {4}… \d+ more \(/u.test(i))?(d(g(n),{recursive:!0}),x(n,`${r.join(`
|
|
3
|
+
`)}
|
|
4
|
+
`),[...o,`Every finding, a line each: ${n}`]):o}export const factsFile=(e,t)=>h(e,v,"inspect",`${t.replace(/[^\w.-]+/gu,"-")}.txt`);export function factsResult(e,t,n,o=[]){return{value:{facts:e,counts:E(e),total:n.total??e.length,...n.extra,...pageJson(t)},text:[`${plural(e.length,"fact")} measured now: ${HEAD}`,...factLines(e,n.all,n.save),...o,...pageLines(t)].join(`
|
|
5
|
+
`)}}export function unseenKinds(e,t,n){const o=u(n);return(e??[]).flatMap(r=>{if(t.some(l=>l.kind===r))return[];const i=O(o,r);return i?[{kind:r,...i}]:[]})}export const unseenLines=e=>e.map(t=>`No ${t.kind} facts here. It is ${t.extension}'s: ${t.about}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as f}from"zod";import{itemKindBuild as S,projectItems as
|
|
3
|
-
`)}}const s=await
|
|
4
|
-
`)}}catch(n){throw
|
|
2
|
+
import{z as f}from"zod";import{itemKindBuild as S,projectItems as b}from"@allyhub/build";import{NEVER_CANCELLED as C}from"@allyhub/extension-api";import{consoleJson as A}from"@allyhub/project";import{countFacts as g,filterFacts as j}from"@allyhub/diagnostics";import{defineCommand as F}from"../../command.js";import{dir as N}from"../../fields.js";import{itemNamed as I,projectRoot as K}from"../../project.js";import{checkIndexed as R,combosOf as T,commandError as z}from"../../version.js";import{factLines as y,factsFile as $,HEAD as O,STRETCH as D,all as H,kind as P,kindsOf as B,pageLines as J,plural as h,unseenKinds as v,unseenLines as E}from"./common.js";import{extensionsAt as V,factKindsOf as _,kindsAt as x}from"../extensions.js";async function w(t,i,n){const e=V(t),o=await e.kindProvider(i.kind);if(!o?.facts)return;const r=new Set(_(e).map(s=>s.kind));return(await o.facts(i,{root:t,tool:s=>Promise.reject(new Error(`No project tool ${s} in the CLI.`))},n,C)??[]).filter(s=>r.has(s.kind))}async function q(t,i){const{items:n}=await b(t,x(t)),e=[];for(const o of n)e.push(...await w(t,o,i)??[]);return e}async function G(t,i,n){const e=x(t),{items:o}=await b(t,e),r=I(o,t,i,n);if(!r)return;const l=await S(e,r);return{item:r,onStage:l?.onStage===!0}}export const inspect=F({name:"inspect",summary:"The check's facts, for you to judge, never problems: by kind, part and time",input:f.strictObject({item:f.string().optional().describe("Only this item: its id (its file without its extension) or its file, or a folder of items"),combo:f.array(f.string()).optional().describe("Only combos matching name=value pairs joined with commas (lang=zh-cn,hook=b), or a combo's id (c03)"),kind:P,...D,all:H(),dir:N}),positional:["item"],output:f.looseObject({}),examples:["allyhub inspect","allyhub inspect launch/film --kind text-time,text-covered","allyhub inspect launch/film --part hook --all"]},async(t,i)=>{try{const n=await K(i.cwd,t.dir),e=B(t.kind,n),o=t.item===void 0?void 0:await G(n,i.cwd,t.item),r=o?.onStage===!1?o.item:void 0,l=r&&await w(n,r,{all:t.all});if(l){const d=l,m=j(d,{kinds:e}),p=v(e,m,n);return{value:{facts:m,counts:g(m),total:d.length,problems:[],...p.length>0?{unseen:p}:{}},text:[`${h(m.length,"fact")}: ${O}`,...y(m,t.all,$(n,`${t.item??"project"}.facts${t.kind?`.${t.kind.join("+")}`:""}`)),...E(p)].join(`
|
|
3
|
+
`)}}const s=await R({dir:n,...t.item===void 0?{}:{piece:t.item},combos:T(t)},i),a=[...s.facts,...t.item===void 0?await q(n,{all:t.all}):o===void 0?[]:await w(n,o.item,{all:t.all})??[]],c=j(a,{kinds:e,part:t.part,from:t.from,to:t.to}),k=s.problems.filter(d=>d.level==="error"),u=v(e,c,n),L=c.length===a.length?h(a.length,"fact"):`${h(c.length,"fact")} of ${String(a.length)}`;return{value:{facts:c,counts:g(c),total:a.length,problems:k,...u.length>0?{unseen:u}:{},...A(s.console)},text:[`${L}: ${O}`,...y(c,t.all,$(n,`${t.item??"project"}.facts${t.kind?`.${t.kind.join("+")}`:""}`)),...E(u),...J({problems:k,console:s.console})].join(`
|
|
4
|
+
`)}}catch(n){throw z(n)}});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as r}from"zod";import{measuredFacts as
|
|
2
|
+
import{z as r}from"zod";import{measuredFacts as k}from"@allyhub/video-measure";import{DECK_FACT_DEFAULTS as d,deckFacts as b}from"@allyhub/slides-core";import{stretchOf as w}from"@allyhub/video-measure";import{ffmpegOf as g}from"@allyhub/render";import{filterFacts as x}from"@allyhub/diagnostics";import{defineCommand as $}from"../../command.js";import{textOnScreen as v}from"../../text/index.js";import{VERSION_FIELDS as O,known as S,withVersion as A}from"../../version.js";import{MOMENTS as F,STRETCH as E,all as T,boxText as j,factsFile as C,factsResult as L,kind as N,kindsOf as D,momentsOf as M,sec as R}from"./common.js";export const inspectLayout=$({name:"inspect layout",summary:"One version's layout measured now, at its measured moments or at --at / --every; --texts lists every text block with its fonts",input:r.strictObject({...O,...F,...E,texts:r.boolean().default(!1).describe("List every text block at every moment, with its box and fonts"),within:r.number().positive().optional().describe(`A deck: lines up to this many points apart and not in line are near-alignment (default ${String(d.within)})`),drift:r.number().nonnegative().optional().describe(`A deck: places further apart than this, in points, are placement-drift (default ${String(d.drift)})`),level:r.array(r.enum(["master","layout","slide"])).optional().describe("A deck: measure only shapes of these levels (default every one): slide leaves out what a master or a layout draws on every slide"),except:r.array(r.string()).optional().describe("A deck: leave shapes of these names out of every fact, * for any letters (tick-*)"),room:r.string().regex(/^[\d.]+,[\d.]+$/u).optional().describe("A deck's read-size: a room as its screen's width and its farthest seat, in metres (3,12); without it no room is measured"),kind:N,all:T()}),positional:["item"],output:r.looseObject({}),examples:["allyhub inspect layout launch/film --at 1.5,@press --texts","allyhub inspect layout launch/film --every 0.5 --part hook","allyhub inspect layout launch/deck --kind near-alignment --within 10","allyhub inspect layout launch/deck --level slide --except 'tick-*'"]},async(e,p)=>{const n=await A(e,p,"render",async t=>{const s=t.timeline,{part:l}=S(()=>w(s,e)),o=await t.version.measure(M(e,t)),m=[...t.version.summary?.facts??[],...o.deck?b(o.deck,{width:o.width,height:o.height},{piece:t.target.piece,output:t.target.output,combo:t.target.combo,format:t.target.format},{...e.within===void 0?{}:{within:e.within},...e.drift===void 0?{}:{drift:e.drift},...e.level===void 0?{}:{levels:e.level},...e.except===void 0?{}:{except:e.except},...e.room===void 0?{}:{room:{screen:Number(e.room.split(",")[0]),distance:Number(e.room.split(",")[1])}}}):await k(o,s,t.target,{root:t.prepared.root,media:t.prepared.media,ffmpeg:await g()})];return{save:C(t.prepared.root,`${t.target.piece}.layout${e.kind?`.${e.kind.join("+")}`:""}`),facts:x(m,{kinds:D(e.kind,t.prepared.root),part:e.part}),total:m.length,moments:e.texts?o.moments.filter(i=>!l||i.part===l.key).map(i=>({t:i.t,part:i.part,...i.face?{face:i.face}:{},texts:o.deck?i.texts.map(c=>({...c,box:c.box.map(y=>Math.round(y/(o.deck?.pxPerPt??1)*2)/2)})):i.texts})):void 0}}),{facts:f,total:u,moments:a,save:h}=n.result;return L(f,n,{all:e.all,total:u,save:h,...a?{extra:{moments:a}}:{}},(a??[]).map(t=>` ${R(t.t)} ${t.part}${t.face?` face ${j(t.face)}`:""}: ${t.texts.map(v).join("; ")||"(no text)"}`))});
|
package/dist/commands/orgs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as
|
|
3
|
-
`)}}));
|
|
2
|
+
import{z as o}from"zod";import{chooseOrganization as d,organizations as l,readCredentials as p}from"@allyhub/cloud";import{defineCommand as u}from"../command.js";import{cloudOf as m,cloudWork as c}from"./cloud.js";const f=o.looseObject({id:o.string(),name:o.string(),slug:o.string(),role:o.string(),current:o.boolean()});export const orgsList=u({name:"orgs list",summary:"The organizations you are in, with your role; the one this computer acts in and pays from is marked",input:o.strictObject({}),output:o.looseObject({organizations:o.array(f)})},(e,s)=>c(async()=>{const r=m(s),a=await l(r),n=(await p(r.config))?.account.organization?.id,i=a.filter(t=>t.dissolvedAt===null).map((t,g)=>({id:t.id,name:t.name,slug:t.slug,role:t.role,current:n===void 0?g===0:t.id===n}));return{value:{organizations:i},text:i.map(t=>`${t.current?"*":" "} ${t.slug} ${t.name} ${t.role}`).join(`
|
|
3
|
+
`)}})),orgsUse=u({name:"orgs use",summary:"Work in and pay from another of your organizations on this computer: the CLI, Studio and every agent on it",input:o.strictObject({team:o.string().describe("The organization: its slug, as allyhub orgs list shows it, or its id")}),positional:["team"],output:o.looseObject({id:o.string(),name:o.string(),slug:o.string()}),examples:["allyhub orgs use acme"]},(e,s)=>c(async()=>{const r=m(s),n=(await l(r)).filter(i=>i.dissolvedAt===null).find(i=>i.slug===e.team||i.id===e.team);if(n===void 0)throw new Error(`You are in no organization ${e.team}. allyhub orgs list shows yours.`);return await d(r.config,{id:n.id,name:n.name}),{value:{id:n.id,name:n.name,slug:n.slug},text:`This computer now works in and pays from ${n.name}.`}}));
|
package/dist/help.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as
|
|
3
|
-
`)}export function groupHelp(
|
|
4
|
-
`)}export function workHelp(
|
|
5
|
-
`)}export function commandHelp(
|
|
2
|
+
import{join as E}from"node:path";import{z as w}from"zod";import{optionName as g,paramsOf as O,shapeOf as f}from"./args.js";import{GLOBAL as M,isGlobal as x,isHidden as D}from"./fields.js";import{WORKS as k,cloudNouns as S,workTitle as v}from"./works.js";const b=e=>e.description??"";function y(e,p){const r=f(p);return r.kind==="boolean"&&!r.list?`--${g(e)}`:`--${g(e)} <${r.kind==="number"?"n":"value"}${r.list?",…":""}>`}function H(e){return e===void 0?["The SDK's docs: none here. This project declares the SDK and has not installed it: run npm install.",""]:[`The SDK's docs, for the version this project builds with (read the ones a piece needs before writing it; README.md lists them): ${e}`,""]}export function listHelp(e,p,r,l){const i=["allyhub: check, render, measure and look at a project's content.","",...H(l),"Works (allyhub help <work> lists a work's commands in the order it uses them):"],c=Math.max(...k.map(n=>n.name.length));for(const n of k)i.push(` ${n.name.padEnd(c)} ${v(n,r)}`);i.push("","Commands:");const d=[...e.map(n=>({noun:n.name.split(" ")[0]??"",name:n.name,summary:n.summary})),...p.flatMap(n=>n.entries.map(a=>({noun:"<made>",...a}))),...(r??[]).map(n=>({noun:"<nouns>",...n}))],m=Math.max(...d.map(n=>n.name.length));let s="";for(const n of d)s!==""&&n.noun!==s&&i.push(""),s=n.noun,i.push(` ${n.name.padEnd(m)} ${n.summary}`);i.push("","Global options (each command lists those it takes):");const o=Object.entries(M).map(([n,a])=>[y(n,a),a.description??""]);o.push(["--json","Print the result as JSON (any command)"]);const t=Math.max(...o.map(([n])=>n.length));for(const[n,a]of o)i.push(` ${n.padEnd(t)} ${a}`);return i.push("","Environment:"," ALLYHUB_GPU=0|1 Draw on the CPU (the same pixels on every computer) or the GPU; default the GPU on a Mac"," ALLYHUB_NO_INDEX=1 Do not make face tracks and person mattes first: those layers are drawn their fallback way","","allyhub help <command> says what one does and every option it takes."),i.join(`
|
|
3
|
+
`)}export function groupHelp(e,p){const r=Math.max(...p.map(l=>l.name.length));return[`allyhub ${e}:`,"",...p.map(l=>` ${l.name.padEnd(r)} ${l.summary}`),"","allyhub help <command> says what one does and every option it takes."].join(`
|
|
4
|
+
`)}export function workHelp(e,p,r=[],l,i,c=[]){const d=Math.max(...e.commands.map(s=>s.length)),m=[`${e.title}: the commands, in the order the work uses them.`,""];if(e.cloud!==void 0){const s=i===void 0?[]:S(e,i);if(i===void 0)m.push("The cloud catalog could not be read: its works are not listed.");else if(s.length===0)m.push("The cloud catalog has no tools for this work yet.");else{const o=Math.max(...s.map(t=>t.name.length));m.push("The cloud catalog's works for it (allyhub <work> lists one's tools):");for(const t of s)m.push(` ${t.name.padEnd(o)} ${t.summary}`)}m.push("")}e.docs!==void 0&&e.docs.length>0&&m.push(l===void 0?`How it is written: the SDK's ${e.docs.join(", ")} (no SDK docs for this project: it declares the SDK and has not installed it; run npm install).`:`How it is written, read before writing it: ${e.docs.map(s=>E(l,s)).join(", ")}`,"");for(const s of e.commands){const o=p.find(t=>t.name===s)??r.flatMap(t=>t.entries).find(t=>t.name===s)??c.find(t=>t.name===s);m.push(` ${s.padEnd(d)} ${o?.summary??""}`)}return m.push("","allyhub help <command> says what one does and every option it takes."),m.join(`
|
|
5
|
+
`)}export function commandHelp(e,p=[],r=[]){const l=e.input.shape,i=[...e.positional??[]],c=i.map(t=>{const n=f(l[t]??w.string()),a=l[t]?.safeParse(void 0).success??!1,h=`<${t}>${n.list?"…":""}`;return a?`[${h}]`:h}),d=O(l.params),m=Object.entries(l).filter(([t,n])=>!i.includes(t)&&!(d&&t==="params")&&!x(n)&&!D(n)),s=Object.entries(l).filter(([,t])=>x(t)).map(([t,n])=>y(t,n).split(" ")[0]??""),o=[`allyhub ${[e.name,...c,m.length>0?"[options]":""].filter(Boolean).join(" ")}`,"",e.summary];if(p.length>0&&o.push("",...p),i.length>0){o.push("","Arguments:");for(const t of i)o.push(` <${t}> ${b(l[t]??w.string())}`)}if(m.length>0){o.push("","Options:");const t=m.map(([a,h])=>{const u=f(h),$=y(a,h),j=u.fallback===void 0||u.fallback===!1?"":` (default ${JSON.stringify(u.fallback)})`;return[$,`${b(h)}${j}`]}),n=Math.max(...t.map(([a])=>a.length));for(const[a,h]of t)o.push(` ${a.padEnd(n)} ${h}`)}if(d){o.push("","Parameters (--param name=value):");const t=Object.entries(d).map(([a,h])=>{const u=f(h),$=u.fallback===void 0?"":` (default ${JSON.stringify(u.fallback)})`;return[g(a),`${b(h)}${$}`]}),n=Math.max(...t.map(([a])=>a.length));for(const[a,h]of t)o.push(` ${a.padEnd(n)} ${h}`)}if(s.length>0&&o.push("",`Global options: ${s.join(", ")} (allyhub help)`),e.examples&&e.examples.length>0){o.push("","Examples:");for(const t of e.examples)o.push(` ${t}`)}if(r.length>0){const t=Math.max(...r.map(n=>n.name.length));o.push("",`Commands under ${e.name}:`);for(const n of r)o.push(` ${n.name.padEnd(t)} ${n.summary}`)}return o.join(`
|
|
6
6
|
`)}
|
package/dist/main.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import"@allyhub/stage-runtime/use";import{EXIT as d,describeCommand as
|
|
3
|
-
|
|
4
|
-
`)
|
|
5
|
-
`)},
|
|
6
|
-
`):a.
|
|
7
|
-
${
|
|
8
|
-
|
|
2
|
+
import{mkdir as U,writeFile as B}from"node:fs/promises";import{tmpdir as F}from"node:os";import{dirname as P,join as A}from"node:path";import"@allyhub/stage-runtime/use";import{EXIT as d,describeCommand as E}from"@allyhub/protocol";import{WORK_DIR as V}from"@allyhub/formats";import{projectAt as X}from"./project.js";import{cutLong as Y}from"./text/index.js";import{readArgs as q}from"./args.js";import{CLI_VERSION as j}from"./cli-version.js";import{CommandError as $}from"./command.js";import{COMMAND_SOURCES as D,COMMANDS as R,allCommands as z}from"./commands/index.js";import{contributedSpecs as Q}from"./commands/contributed.js";import{builtInExtensions as Z}from"./commands/extensions.js";import{commandHelp as T,groupHelp as tt,listHelp as nt,workHelp as et}from"./help.js";import{sdkDocs as ot}from"./sdk-docs.js";import{WORKS as rt,cloudNouns as it,withJoined as W,workNamed as st,workTitle as _}from"./works.js";const at={stdout:o=>process.stdout.write(o),stderr:o=>process.stderr.write(o),cwd:process.cwd(),env:process.env};export function findCommand(o,i=R){let u;for(const c of i){const s=c.spec.name.split(" ");s.every((w,e)=>o[e]===w)&&s.length>(u?.length??0)&&(u={command:c,length:s.length})}return u?{command:u.command,rest:o.slice(u.length)}:{rest:[...o]}}export async function resolveCommand(o,i,u=R,c=D){const s=findCommand(o,u);if(s.command){const w=s.command.spec.name;if(s.rest.length>0)for(const e of c.filter(l=>l.under===w)){const l=await e.resolve(o,i);if(l)return l}return s}for(const w of c){const e=await w.resolve(o,i);if(e)return e}return s}const J=o=>({...E(o.spec),...o.about?.value});export async function main(o,i=at,u,c=D){Z();const s=u??await z(),w=o.includes("--json"),e=o.filter(t=>t!=="--json"),l=async(t,n,p)=>{if(w){i.stdout(`${JSON.stringify(t,null,2)}
|
|
3
|
+
`);return}const f=await X(i.cwd),m=A(f===void 0?A(F(),"allyhub"):A(f,V),"out",`${p.replaceAll(" ","-")}.txt`),v=Y(n,m);v!==void 0&&(await U(P(m),{recursive:!0}),await B(m,`${n}
|
|
4
|
+
`)),i.stdout(`${v??n}
|
|
5
|
+
`)},I=s.map(t=>t.spec),S=t=>I.filter(n=>t.length>0&&n.name.startsWith(`${t.join(" ")} `)),x=new AbortController,b={cwd:i.cwd,env:{ALLYHUB_CLIENT:`AllyHub-CLI/${j}`,...i.env},progress:t=>{i.stderr(`${t}
|
|
6
|
+
`)},signal:x.signal};if(e[0]==="--version"||e[0]==="-v")return await l({version:j},j,"version"),d.ok;if(e.length===0||e[0]==="help"||e[0]==="--help"||e[0]==="-h"){const t=e.slice(1).findIndex(r=>r.startsWith("-")),n=(t<0?e.slice(1):e.slice(1,t+1)).flatMap(r=>r.split(" ").filter(a=>a!=="")),p=await ot(i.cwd).catch(()=>{}),f=async()=>{const r=await Promise.all(c.map(a=>a.nouns(b).then(G=>G.map(K=>({...K,work:a.works!==!1}))).catch(()=>{})));return r.some(a=>a===void 0)?void 0:r.flatMap(a=>a??[])},m=await Q(b);if(n.length===0){const r=await f();return await l({version:j,docs:p?.dir,works:rt.map(a=>({...W(a,m),title:_(a,r)})),commands:I.map(E),made:[...c.flatMap(a=>a.entries),...r??[]]},nt(I,c,r,p?.dir),"help"),d.ok}const v=n.length===1?st(n[0]??""):void 0,k=v&&W(v,m);if(k){const r=k.cloud===void 0?[]:await f();return await l({...k,title:_(k,r),...k.cloud===void 0?{}:{cloudWorks:r&&it(k,r)},docsDir:p?.dir},et(k,I,c,p?.dir,r,m),`help ${n.join(" ")}`),d.ok}let N;try{N=await resolveCommand(n,b,s,c)}catch(r){return y(r)}const{command:h,rest:L}=N;if(h&&N.list===!0)return await H(h,L);const O=S(n);return!h&&O.length>0?(await l({commands:O.map(E)},tt(n.join(" "),O),`help ${n.join(" ")}`),d.ok):!h||L.length>0?y(new $("unknown-command",`allyhub has no command "${n.join(" ")}".`,{exit:d.usage,hint:"allyhub help lists them and the works."})):(await l(J(h),T(h.spec,h.about?.lines,S(h.spec.name.split(" "))),`help ${h.spec.name}`),d.ok)}let M;try{M=await resolveCommand(e,b,s,c)}catch(t){return y(t)}const{command:g,rest:C}=M;if(!g){const t=S(e.slice(0,1));return y(new $("unknown-command",`allyhub has no command "${e.join(" ")}".`,{exit:d.usage,hint:t.length>0?`${e[0]??""} has these: ${t.map(n=>n.name).join(", ")}.`:"allyhub help lists them."}))}if(C.includes("--help")||C.includes("-h"))return await l(J(g),T(g.spec,g.about?.lines,S(g.spec.name.split(" "))),`${g.spec.name} help`),d.ok;return await H(g,C);async function H(t,n){const p=()=>{x.abort(new $("interrupted","Stopped.",{exit:d.interrupted}))};process.once("SIGINT",p);try{const f=q(t.spec,n),m=await t.run(f,b);return await l(m.value,m.text,t.spec.name),m.exit??d.ok}catch(f){return y(f)}finally{process.off("SIGINT",p)}}function y(t){const n=t instanceof $?t:x.signal.aborted?new $("interrupted","Stopped.",{exit:d.interrupted}):new $("failed",t instanceof Error?t.message:String(t));return w?i.stdout(`${JSON.stringify({error:{code:n.code,message:n.message,...n.hint?{hint:n.hint}:{}}},null,2)}
|
|
7
|
+
`):i.stderr(`${n.message}${n.hint?`
|
|
8
|
+
${n.hint}`:""}
|
|
9
|
+
`),n.exit}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/3d-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./tools": {
|
|
@@ -46,6 +46,20 @@
|
|
|
46
46
|
},
|
|
47
47
|
"noun": "3D scenery",
|
|
48
48
|
"editor": "allyhub.3d.viewer",
|
|
49
|
+
"shown": {
|
|
50
|
+
"line": {
|
|
51
|
+
"en": "3D scenes, drawn from any camera",
|
|
52
|
+
"zh-cn": "3D 场景,任意机位渲染",
|
|
53
|
+
"zh-tw": "3D 場景,任意機位渲染",
|
|
54
|
+
"ja": "どのカメラからも描ける 3D シーン",
|
|
55
|
+
"ko": "어느 카메라에서든 그리는 3D 장면",
|
|
56
|
+
"es": "Escenas 3D, vistas desde cualquier cámara",
|
|
57
|
+
"pt": "Cenas 3D, de qualquer câmera",
|
|
58
|
+
"de": "3D-Szenen, aus jeder Kamera gezeichnet",
|
|
59
|
+
"fr": "Scènes 3D, vues de n'importe quelle caméra"
|
|
60
|
+
},
|
|
61
|
+
"order": 80
|
|
62
|
+
},
|
|
49
63
|
"icon": "box",
|
|
50
64
|
"color": "kind-slate",
|
|
51
65
|
"build": "./dist/scenery-build.js"
|
|
@@ -76,6 +90,20 @@
|
|
|
76
90
|
},
|
|
77
91
|
"noun": "3D model",
|
|
78
92
|
"editor": "allyhub.3d.viewer",
|
|
93
|
+
"shown": {
|
|
94
|
+
"line": {
|
|
95
|
+
"en": "3D models, measured and lit",
|
|
96
|
+
"zh-cn": "3D 模型,精确尺寸与光照",
|
|
97
|
+
"zh-tw": "3D 模型,精確尺寸與光照",
|
|
98
|
+
"ja": "寸法と照明を持つ 3D モデル",
|
|
99
|
+
"ko": "치수와 조명을 갖춘 3D 모델",
|
|
100
|
+
"es": "Modelos 3D, medidos e iluminados",
|
|
101
|
+
"pt": "Modelos 3D, medidos e iluminados",
|
|
102
|
+
"de": "3D-Modelle, vermessen und beleuchtet",
|
|
103
|
+
"fr": "Modèles 3D, mesurés et éclairés"
|
|
104
|
+
},
|
|
105
|
+
"order": 81
|
|
106
|
+
},
|
|
79
107
|
"icon": "cylinder",
|
|
80
108
|
"color": "kind-slate",
|
|
81
109
|
"exports": {
|
|
@@ -102,7 +130,11 @@
|
|
|
102
130
|
"scenery",
|
|
103
131
|
"model"
|
|
104
132
|
],
|
|
105
|
-
"module": "@allyhub/scenery-viewer"
|
|
133
|
+
"module": "@allyhub/scenery-viewer",
|
|
134
|
+
"markup": [
|
|
135
|
+
"./markup/scenery",
|
|
136
|
+
"./markup/model"
|
|
137
|
+
]
|
|
106
138
|
}
|
|
107
139
|
],
|
|
108
140
|
"buildPlugins": [
|