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
|
@@ -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 t}from"zod";import{LOCALE as m,FPS_HELP as u,VIDEO_FORMAT_HELP as b,formatSpecProblem as d,isVideoFormat as g,parseFps as f,RESERVED_DIMS as l}from"@allyhub/piece";import{OUTPUT_KINDS as h}from"./piece.js";import{musicTimeProblem as x}from"./music.js";export const VideoFormatSchema=t.string().refine(g,{message:`unknown format (${b})`}),ComboSchema=t.record(t.string(),t.string()),ProblemSchema=t.strictObject({code:t.string().regex(/^AK-[A-Z]\d{3}$/),level:t.enum(["error","warn"]),message:t.string(),piece:t.string().optional(),output:t.string().optional(),combo:ComboSchema.optional(),format:t.string().optional(),part:t.string().optional(),t:t.number().optional(),page:t.number().int().nonnegative().optional(),where:t.strictObject({file:t.string().optional(),line:t.number().int().optional(),selector:t.string().optional(),bbox:t.tuple([t.number(),t.number(),t.number(),t.number()]).optional()}).optional()}),Locale=t.string().regex(m,"must be a lower-case locale such as en or zh-cn"),PieceId=t.string().regex(/^[a-z0-9][a-z0-9._-]*(\/[a-z0-9][a-z0-9._-]*)*$/,"id: lowercase letters, digits, . _ -, with / between levels"),DimName=t.string().regex(/^[a-z][a-zA-Z0-9_-]*$/,"dimension name: starts with a letter; letters, digits, _ and -"),DimValue=t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/,"dimension value: letters, digits, . _ -"),OutputName=t.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/,"output name: starts with a letter; letters, digits, _ and -"),DimsSchema=t.record(DimName,t.array(DimValue).min(1)).superRefine((o,e)=>{for(const[n,a]of Object.entries(o)){if(l.includes(n)){e.addIssue({code:"custom",path:[n],message:n==="size"||n==="format"?`${n} is not a dimension: a piece has one format, format: "9x16", and another format is a piece of its own`:`${n} cannot name a dimension: the preview's address uses it. Choose another name`});continue}if(new Set(a).size!==a.length&&e.addIssue({code:"custom",path:[n],message:"the same value is listed twice"}),n==="lang")for(const s of a)m.test(s)||e.addIssue({code:"custom",path:[n],message:`lang value ${s} must be a lowercase language tag, such as en or zh-cn`})}});const O=o=>l.includes(o)?`${o} cannot name a slot: the framework uses it. Choose another name`:void 0;export const CandidateSchema=t.union([DimValue,t.strictObject({name:DimValue,tags:t.array(t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]*$/)).optional()})]),SlotSchema=t.union([t.array(CandidateSchema).min(1),t.strictObject({pool:t.string().min(1),tags:t.array(t.string().min(1)).optional()})]);const j=t.union([t.string().min(1),t.array(t.string().min(1)).min(1)]),r=t.record(t.string(),j);export const MatrixSchema=t.strictObject({dims:DimsSchema.optional(),slots:t.record(DimName,SlotSchema).optional(),structures:t.record(DimValue,t.array(DimName).min(1)).optional(),combos:t.array(t.record(DimName,DimValue)).min(1).max(1e4).optional(),pick:t.number().int().min(1).max(1e4).optional(),seed:t.union([t.number(),t.string()]).optional(),differ:t.strictObject({slots:t.number().int().min(1).optional(),first:t.union([t.number().int().min(1),t.array(DimName).min(1)]).optional()}).optional(),rules:t.array(t.strictObject({if:r.optional(),require:r.optional(),exclude:r.optional()})).optional()}).superRefine((o,e)=>{for(const n of Object.keys(o.slots??{})){const a=O(n);a&&e.addIssue({code:"custom",path:["slots",n],message:a})}if(o.structures&&!o.slots&&e.addIssue({code:"custom",path:["structures"],message:"structures order slots: declare matrix.slots too"}),o.combos&&!o.slots&&e.addIssue({code:"custom",path:["combos"],message:"combos choose candidates of slots: declare matrix.slots too"}),o.combos)for(const n of["pick","seed"])o[n]!==void 0&&e.addIssue({code:"custom",path:[n],message:`combos names the combos to make, so nothing is sampled: remove ${n}, which only steers sampling`})}),FormatSpecSchema=t.strictObject({format:t.string().min(1),safe:t.strictObject({top:t.number().optional(),bottom:t.number().optional(),left:t.number().optional(),right:t.number().optional()}).optional()}).superRefine((o,e)=>{const n=d(o);n&&e.addIssue({code:"custom",message:n})}),FormatEntrySchema=t.union([t.string().min(1),FormatSpecSchema]);const i=t.number().min(-70).max(0),c=t.unknown().superRefine((o,e)=>{const n=x(o);n&&e.addIssue({code:"custom",message:n})}),p=t.strictObject({from:c,to:c.optional()}),S=t.union([t.number().min(0),t.string().min(1),t.strictObject({part:t.string().min(1),at:t.union([t.number(),t.string().min(1)])})]);export const PartDefaultsSchema=t.strictObject({dur:t.number().positive().max(3600).optional(),lead:t.number().min(0).max(60).optional(),tail:t.number().min(0).max(60).optional()}),VideoOptionsMeta=t.strictObject({music:t.strictObject({file:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),from:t.number().min(0).optional(),loop:t.union([t.boolean(),p]).optional(),play:t.array(p).min(1).optional(),seam:t.number().min(0).max(5).optional(),meter:t.number().int().min(1).max(32).optional(),downbeat:t.number().min(0).optional(),end:t.enum(["film","bar","beat"]).optional(),snap:t.boolean().optional(),bpm:t.number().min(20).max(400).optional(),gain:t.array(t.strictObject({at:S,db:t.number().min(-60).max(24)})).min(1).optional(),filter:t.string().min(1).optional(),eq:t.array(t.unknown()).optional(),compress:t.unknown().optional()}).optional(),mix:t.strictObject({speech:i.optional(),music:i.optional(),musicAlone:i.optional(),sfx:i.optional(),footage:i.optional(),footageUnderSpeech:i.optional(),duck:t.strictObject({db:t.number().min(-60).max(0).optional(),attack:t.number().min(0).max(10).optional(),release:t.number().min(0).max(10).optional(),hold:t.number().min(0).max(60).optional()}).optional(),musicFade:t.strictObject({in:t.number().min(0).max(60).optional(),out:t.number().min(0).max(60).optional()}).optional()}).optional(),mic:t.union([t.string().min(1),t.record(t.string(),t.unknown()),t.literal(!1)]).optional(),look:t.string().min(1).optional(),defaults:t.strictObject({part:PartDefaultsSchema.optional()}).optional(),covers:t.literal(!0).optional(),fps:t.union([t.number(),t.string()]).refine(o=>f(o)!==void 0,{error:`A frame rate is ${u}`}).optional(),transparent:t.boolean().optional(),maxDuration:t.number().positive().optional(),loadLimit:t.number().positive().optional(),seekLimit:t.number().positive().optional(),deliverable:t.boolean().optional(),master:t.union([i,t.literal(!1),t.strictObject({lufs:t.union([i,t.literal(!1)]).optional(),truePeak:t.number().min(-9).max(0).optional()})]).optional(),motionBlur:t.strictObject({samples:t.number().int().min(2).max(16),shutter:t.number().gt(0).max(1).optional()}).optional(),capture:t.strictObject({bloom:t.strictObject({threshold:t.number().optional(),radius:t.number().optional(),strength:t.number().optional()}).optional(),aberration:t.number().optional(),soften:t.number().optional(),vignette:t.number().optional(),exposure:t.strictObject({drift:t.number().optional(),period:t.number().optional()}).optional(),grain:t.strictObject({amount:t.number().optional(),size:t.number().optional(),shadows:t.number().optional(),highlights:t.number().optional(),chroma:t.number().optional(),chromaSize:t.number().optional(),static:t.boolean().optional()}).optional(),sharpen:t.number().optional()}).optional(),post:t.strictObject({filter:t.string().min(1).optional(),lut:t.string().regex(/\.cube$/i,"A LUT is a .cube file").optional()}).optional()}),OutputMeta=t.strictObject({kind:t.enum(h),options:t.record(t.string(),t.unknown())}),PieceMeta=t.strictObject({id:PieceId.optional(),script:t.string().min(1).optional(),title:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),format:FormatEntrySchema.optional(),matrix:MatrixSchema.optional(),meta:t.record(t.string(),t.unknown()).optional(),outputs:t.record(OutputName,OutputMeta).refine(o=>Object.keys(o).length>0,"outputs needs at least one output")}),LookConfigSchema=t.strictObject({color:t.strictObject({bg:t.string().min(1).optional(),fg:t.string().min(1).optional(),accent:t.string().min(1).optional(),muted:t.string().min(1).optional(),surface:t.string().min(1).optional()}).optional(),font:t.strictObject({display:t.string().min(1).optional(),body:t.string().min(1).optional(),mono:t.string().min(1).optional(),emoji:t.string().min(1).optional()}).optional(),motion:t.strictObject({beat:t.number().positive().optional()}).optional(),sfx:t.record(t.string().regex(/^[a-z][a-z0-9-]*$/,"a sound's name: lowercase letters, digits and -"),t.string().min(1).refine(o=>!o.startsWith("/")&&!o.split(/[\\/]/).includes(".."),"a sound is an audio file relative to the workspace's root")).optional()}),PropSchemaEntry=t.looseObject({type:t.enum(["text","time","asset","color","number","boolean","list","object"])}),ComponentEntry=t.strictObject({name:t.string(),label:t.union([t.string(),t.record(t.string(),t.string())]),file:t.string(),props:t.record(t.string(),PropSchemaEntry),examples:t.array(t.string()),hidden:t.boolean()}),VideoConfigSchema=t.object({look:LookConfigSchema.optional(),defaults:t.strictObject({format:VideoFormatSchema.optional(),part:PartDefaultsSchema.optional()}).optional()});
|
|
2
|
+
import{z as t}from"zod";import{LOCALE as m,FPS_HELP as u,VIDEO_FORMAT_HELP as b,formatSpecProblem as d,isVideoFormat as g,parseFps as f,RESERVED_DIMS as l}from"@allyhub/piece";import{OUTPUT_KINDS as h}from"./piece.js";import{musicTimeProblem as x}from"./music.js";export const VideoFormatSchema=t.string().refine(g,{message:`unknown format (${b})`}),ComboSchema=t.record(t.string(),t.string()),ProblemSchema=t.strictObject({code:t.string().regex(/^AK-[A-Z]\d{3}$/),level:t.enum(["error","warn"]),message:t.string(),piece:t.string().optional(),output:t.string().optional(),combo:ComboSchema.optional(),format:t.string().optional(),part:t.string().optional(),t:t.number().optional(),page:t.number().int().nonnegative().optional(),where:t.strictObject({file:t.string().optional(),line:t.number().int().optional(),selector:t.string().optional(),bbox:t.tuple([t.number(),t.number(),t.number(),t.number()]).optional()}).optional()}),Locale=t.string().regex(m,"must be a lower-case locale such as en or zh-cn"),PieceId=t.string().regex(/^[a-z0-9][a-z0-9._-]*(\/[a-z0-9][a-z0-9._-]*)*$/,"id: lowercase letters, digits, . _ -, with / between levels"),DimName=t.string().regex(/^[a-z][a-zA-Z0-9_-]*$/,"dimension name: starts with a letter; letters, digits, _ and -"),DimValue=t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/,"dimension value: letters, digits, . _ -"),OutputName=t.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/,"output name: starts with a letter; letters, digits, _ and -"),DimsSchema=t.record(DimName,t.array(DimValue).min(1)).superRefine((o,e)=>{for(const[n,a]of Object.entries(o)){if(l.includes(n)){e.addIssue({code:"custom",path:[n],message:n==="size"||n==="format"?`${n} is not a dimension: a piece has one format, format: "9x16", and another format is a piece of its own`:`${n} cannot name a dimension: the preview's address uses it. Choose another name`});continue}if(new Set(a).size!==a.length&&e.addIssue({code:"custom",path:[n],message:"the same value is listed twice"}),n==="lang")for(const s of a)m.test(s)||e.addIssue({code:"custom",path:[n],message:`lang value ${s} must be a lowercase language tag, such as en or zh-cn`})}});const O=o=>l.includes(o)?`${o} cannot name a slot: the framework uses it. Choose another name`:void 0;export const CandidateSchema=t.union([DimValue,t.strictObject({name:DimValue,tags:t.array(t.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]*$/)).optional()})]),SlotSchema=t.union([t.array(CandidateSchema).min(1),t.strictObject({pool:t.string().min(1),tags:t.array(t.string().min(1)).optional()})]);const j=t.union([t.string().min(1),t.array(t.string().min(1)).min(1)]),r=t.record(t.string(),j);export const MatrixSchema=t.strictObject({dims:DimsSchema.optional(),slots:t.record(DimName,SlotSchema).optional(),structures:t.record(DimValue,t.array(DimName).min(1)).optional(),combos:t.array(t.record(DimName,DimValue)).min(1).max(1e4).optional(),pick:t.number().int().min(1).max(1e4).optional(),seed:t.union([t.number(),t.string()]).optional(),differ:t.strictObject({slots:t.number().int().min(1).optional(),first:t.union([t.number().int().min(1),t.array(DimName).min(1)]).optional()}).optional(),rules:t.array(t.strictObject({if:r.optional(),require:r.optional(),exclude:r.optional()})).optional()}).superRefine((o,e)=>{for(const n of Object.keys(o.slots??{})){const a=O(n);a&&e.addIssue({code:"custom",path:["slots",n],message:a})}if(o.structures&&!o.slots&&e.addIssue({code:"custom",path:["structures"],message:"structures order slots: declare matrix.slots too"}),o.combos&&!o.slots&&e.addIssue({code:"custom",path:["combos"],message:"combos choose candidates of slots: declare matrix.slots too"}),o.combos)for(const n of["pick","seed"])o[n]!==void 0&&e.addIssue({code:"custom",path:[n],message:`combos names the combos to make, so nothing is sampled: remove ${n}, which only steers sampling`})}),FormatSpecSchema=t.strictObject({format:t.string().min(1),safe:t.strictObject({top:t.number().optional(),bottom:t.number().optional(),left:t.number().optional(),right:t.number().optional()}).optional()}).superRefine((o,e)=>{const n=d(o);n&&e.addIssue({code:"custom",message:n})}),FormatEntrySchema=t.union([t.string().min(1),FormatSpecSchema]);const i=t.number().min(-70).max(0),c=t.unknown().superRefine((o,e)=>{const n=x(o);n&&e.addIssue({code:"custom",message:n})}),p=t.strictObject({from:c,to:c.optional()}),S=t.union([t.number().min(0),t.string().min(1),t.strictObject({part:t.string().min(1),at:t.union([t.number(),t.string().min(1)])})]);export const PartDefaultsSchema=t.strictObject({dur:t.number().positive().max(3600).optional(),lead:t.number().min(0).max(60).optional(),tail:t.number().min(0).max(60).optional()}),VideoOptionsMeta=t.strictObject({music:t.strictObject({file:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),from:t.number().min(0).optional(),loop:t.union([t.boolean(),p]).optional(),play:t.array(p).min(1).optional(),seam:t.number().min(0).max(5).optional(),meter:t.number().int().min(1).max(32).optional(),downbeat:t.number().min(0).optional(),end:t.enum(["film","bar","beat"]).optional(),snap:t.boolean().optional(),bpm:t.number().min(20).max(400).optional(),gain:t.array(t.strictObject({at:S,db:t.number().min(-60).max(24)})).min(1).optional(),filter:t.string().min(1).optional(),eq:t.array(t.unknown()).optional(),compress:t.unknown().optional()}).optional(),mix:t.strictObject({speech:i.optional(),music:i.optional(),musicAlone:i.optional(),sfx:i.optional(),footage:i.optional(),footageUnderSpeech:i.optional(),duck:t.strictObject({db:t.number().min(-60).max(0).optional(),attack:t.number().min(0).max(10).optional(),release:t.number().min(0).max(10).optional(),hold:t.number().min(0).max(60).optional()}).optional(),musicFade:t.strictObject({in:t.number().min(0).max(60).optional(),out:t.number().min(0).max(60).optional()}).optional()}).optional(),mic:t.union([t.string().min(1),t.record(t.string(),t.unknown()),t.literal(!1)]).optional(),look:t.string().min(1).optional(),defaults:t.strictObject({part:PartDefaultsSchema.optional()}).optional(),covers:t.literal(!0).optional(),fps:t.union([t.number(),t.string()]).refine(o=>f(o)!==void 0,{error:`A frame rate is ${u}`}).optional(),transparent:t.boolean().optional(),maxDuration:t.number().positive().optional(),loadLimit:t.number().positive().optional(),seekLimit:t.number().positive().optional(),deliverable:t.boolean().optional(),master:t.union([i,t.literal(!1),t.strictObject({lufs:t.union([i,t.literal(!1)]).optional(),truePeak:t.number().min(-9).max(0).optional()})]).optional(),motionBlur:t.strictObject({samples:t.number().int().min(2).max(16),shutter:t.number().gt(0).max(1).optional()}).nullable().optional(),capture:t.strictObject({bloom:t.strictObject({threshold:t.number().optional(),radius:t.number().optional(),strength:t.number().optional()}).optional(),aberration:t.number().optional(),soften:t.number().optional(),vignette:t.number().optional(),exposure:t.strictObject({drift:t.number().optional(),period:t.number().optional()}).optional(),grain:t.strictObject({amount:t.number().optional(),size:t.number().optional(),shadows:t.number().optional(),highlights:t.number().optional(),chroma:t.number().optional(),chromaSize:t.number().optional(),static:t.boolean().optional()}).optional(),sharpen:t.number().optional()}).optional(),post:t.strictObject({filter:t.string().min(1).optional(),lut:t.string().regex(/\.cube$/i,"A LUT is a .cube file").optional()}).optional()}),OutputMeta=t.strictObject({kind:t.enum(h),options:t.record(t.string(),t.unknown())}),PieceMeta=t.strictObject({id:PieceId.optional(),script:t.string().min(1).optional(),title:t.union([t.string().min(1),t.record(Locale,t.string().min(1))]).optional(),format:FormatEntrySchema.optional(),matrix:MatrixSchema.optional(),meta:t.record(t.string(),t.unknown()).optional(),outputs:t.record(OutputName,OutputMeta).refine(o=>Object.keys(o).length>0,"outputs needs at least one output")}),LookConfigSchema=t.strictObject({color:t.strictObject({bg:t.string().min(1).optional(),fg:t.string().min(1).optional(),accent:t.string().min(1).optional(),muted:t.string().min(1).optional(),surface:t.string().min(1).optional()}).optional(),font:t.strictObject({display:t.string().min(1).optional(),body:t.string().min(1).optional(),mono:t.string().min(1).optional(),emoji:t.string().min(1).optional()}).optional(),motion:t.strictObject({beat:t.number().positive().optional()}).optional(),sfx:t.record(t.string().regex(/^[a-z][a-z0-9-]*$/,"a sound's name: lowercase letters, digits and -"),t.string().min(1).refine(o=>!o.startsWith("/")&&!o.split(/[\\/]/).includes(".."),"a sound is an audio file relative to the workspace's root")).optional()}),PropSchemaEntry=t.looseObject({type:t.enum(["text","time","asset","color","number","boolean","list","object"])}),ComponentEntry=t.strictObject({name:t.string(),label:t.union([t.string(),t.record(t.string(),t.string())]),file:t.string(),props:t.record(t.string(),PropSchemaEntry),examples:t.array(t.string()),hidden:t.boolean()}),VideoConfigSchema=t.object({look:LookConfigSchema.optional(),defaults:t.strictObject({format:VideoFormatSchema.optional(),part:PartDefaultsSchema.optional()}).optional()});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/video-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./tools": {
|
|
@@ -52,6 +52,20 @@
|
|
|
52
52
|
},
|
|
53
53
|
"noun": "video",
|
|
54
54
|
"editor": "allyhub.video.editor",
|
|
55
|
+
"shown": {
|
|
56
|
+
"line": {
|
|
57
|
+
"en": "Demos, explainers and shorts, to the frame",
|
|
58
|
+
"zh-cn": "演示、讲解和短视频,精确到帧",
|
|
59
|
+
"zh-tw": "示範、講解和短影片,精確到幀",
|
|
60
|
+
"ja": "デモ、解説、ショート動画をフレーム単位で",
|
|
61
|
+
"ko": "데모, 설명 영상, 쇼츠를 프레임 단위로",
|
|
62
|
+
"es": "Demos, vídeos explicativos y shorts, al fotograma",
|
|
63
|
+
"pt": "Demos, explicativos e shorts, quadro a quadro",
|
|
64
|
+
"de": "Demos, Erklärvideos und Shorts, auf den Frame genau",
|
|
65
|
+
"fr": "Démos, vidéos explicatives et shorts, à l'image près"
|
|
66
|
+
},
|
|
67
|
+
"order": 40
|
|
68
|
+
},
|
|
55
69
|
"icon": "clapperboard",
|
|
56
70
|
"color": "kind-purple",
|
|
57
71
|
"exports": {
|
|
@@ -101,6 +115,7 @@
|
|
|
101
115
|
"video"
|
|
102
116
|
],
|
|
103
117
|
"module": "@allyhub/video-editor",
|
|
118
|
+
"markup": "./markup",
|
|
104
119
|
"place": {
|
|
105
120
|
"type": "object",
|
|
106
121
|
"properties": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as l}from"node:path";import{ProjectError as
|
|
2
|
+
import{join as l}from"node:path";import{ProjectError as d}from"@allyhub/build";import{parseAnchorRef as w}from"@allyhub/piece";import{finalStill as c,soundOf as $}from"@allyhub/render";import{webp as y}from"@allyhub/image-render/webp";import{graphicsPage as m}from"./graphics.js";export function lookOf(o){const t=o.options,e=t.motionBlur,a=t.post,n=t.capture,u=i=>typeof i=="object"&&i!==null?i:void 0,h=u(e),r=u(a),s=r?.filter,p=r?.lut;return{...t.transparent===!0?{transparent:!0}:{},...h&&typeof h.samples=="number"?{motionBlur:{samples:h.samples,...typeof h.shutter=="number"?{shutter:h.shutter}:{}}}:{},...u(n)?{capture:n}:{},...typeof s=="string"||typeof p=="string"?{post:{...typeof s=="string"?{filter:s}:{},...typeof p=="string"?{lut:p}:{}}}:{}}}export function projectMedia(o){return{root:o.root,media:o.media,path:t=>Object.hasOwn(o.media,t)?l(o.root,t):void 0}}export function versionSound(o,t,e,a={}){return $(projectMedia(o),t,e,a)}export function filmTimes(o,t,e){const n=(e?[e]:t).flatMap(r=>(r.anchors??[]).map(s=>({part:r.key,...s}))),u=new Set(n.map(r=>r.name)),h=n.length>0?`Anchors${e?` of ${e.key}`:""}: ${n.map(r=>`@${r.name} (${r.part} ${r.at.toFixed(2)}${r.end===void 0?"":`–${r.end.toFixed(2)}`})`).join(", ")}.`:`${e?`Part ${e.key}`:"It"} has no anchors: a part gives them with anchors: { name: seconds }, or its script's line with @{name}.`;return o.map(r=>{if(typeof r=="number")return e?e.start+r:r;const s=w(r,u),p=s?n.filter(f=>f.name===s.name):[],i=p[0];if(!s||!i)throw new d("no-anchor",`No anchor ${r}.`,"not-found",h);if(p.length>1)throw new d("bad-time",`${String(p.length)} parts have an anchor ${s.name}: ${p.map(f=>f.part).join(", ")}.`,"usage","Name the part.");if(s.end&&i.end===void 0)throw new d("bad-time",`${r} asks for the end of the anchor ${i.name} of ${i.part}, which is a point.`,"usage",`Use @${i.name}.`);const g=(s.end?i.end??i.at:i.at)+s.shift;return Math.round(g*1e3)/1e3})}export function partOf(o,t){const e=o.parts.filter(n=>n.key.startsWith(`${t}/`)),a=o.parts.find(n=>n.key===t)??(e.length===1?e[0]:void 0);if(!a)throw new d("no-part",`No part ${t}.`,"not-found",`Parts: ${o.parts.map(n=>n.key).join(", ")}.`);return a}export class OpenedFilm{opened;page;constructor(t){this.opened=t}get target(){return this.opened.target}get piece(){return this.opened.piece}get prepared(){return this.opened.prepared}get version(){return this.opened.version}get timeline(){return this.version.timeline}get look(){return lookOf(this.piece)}get media(){return projectMedia(this.prepared)}graphics(){return this.page??=m(this.version.stage,{gpu:this.opened.gpu}),this.page}async openPage(){const t=await this.opened.another();return m(t.stage,{gpu:this.opened.gpu})}code(){return this.opened.code()}still(t,e={}){return this.timeline.parts.find(n=>t>=n.start&&t<n.end)?.frame?this.ownFrame(t,e.format??"png"):c(this.graphics(),t,{target:this.target,look:this.look,media:this.media,...e.raw===void 0?{}:{raw:e.raw},...e.format===void 0?{}:{format:e.format},...e.ffmpeg===void 0?{}:{ffmpeg:e.ffmpeg}})}async ownFrame(t,e){return await this.version.seek(t),this.version.stage.capture({format:e})}sound(t={}){return versionSound(this.prepared,this.target,this.timeline,t)}draws(){return{compose:async(t,e,a)=>{if((this.timeline.footage??[]).some(u=>u.part===e))return c(m(t.stage,{gpu:this.opened.gpu}),a,{target:this.target,look:this.look,media:this.media})},webp:t=>y(t,"lossless")}}partStills(t){return this.opened.partStills(t,this.draws())}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{PHONE_CAMERA as
|
|
2
|
+
import{PHONE_CAMERA as s}from"@allyhub/scenery";export const PHONE_CAMERA={...s,capture:{soften:.3,grain:{amount:.013,size:.75,shadows:2,highlights:1,chroma:.4,chromaSize:3},sharpen:.9,vignette:.2,bloom:{threshold:.92,radius:14,strength:.15}},motionBlur:null};const i=t=>typeof t=="object"&&t!==null&&!Array.isArray(t);function u(t,n){if(!i(t)||!i(n))return n===void 0?t:n;const o={...t};for(const[r,e]of Object.entries(n))o[r]=e===void 0?t[r]:u(t[r],e);return o}export function phoneCamera(t={}){return u(PHONE_CAMERA,t)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{randomUUID as i}from"node:crypto";import{openPage as l,startBrowser as n}from"@allyhub/browser";const h=30*6e4;export class HeldPages{held=new Map;async hold(e,t){const s=await n({gpu:!1});try{const a=await l(s,{...t,allow:()=>!0});await a.goto(e),await a.evaluate("document.fonts.ready.then(() => true)");const o=i(),r=setTimeout(()=>{this.release(o)},h);return r.unref(),this.held.set(o,{browser:s,page:a,timer:r}),o}catch(a){throw await s.close(),a}}page(e){return this.held.get(e)?.page}async release(e){const t=this.held.get(e);t&&(this.held.delete(e),clearTimeout(t.timer),await t.browser.close())}async dispose(){for(const e of[...this.held.keys()])await this.release(e)}}
|
|
@@ -1,2 +1,25 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{resolve as
|
|
2
|
+
import{resolve as m}from"node:path";import{defineProjectTool as o}from"@allyhub/build";import{capturePage as P,openPage as S,startBrowser as v}from"@allyhub/browser";import{RPC_ERROR as c,RpcError as h}from"@allyhub/protocol";import{HeldPages as T}from"./held.js";import{Hosting as j}from"./hosting.js";import{Previews as x}from"./preview.js";import{WEBSITE_TOOLS as r}from"./tools.js";async function l(e,t){const n=(await e.items()).find(i=>i.id===t&&i.kind==="website");if(!n)throw new h(c.notFound,`There is no website ${t}.`);return n.entry}const L=`(points) => {
|
|
3
|
+
const part = (e) => e.tagName.toLowerCase() + (e.id ? "#" + e.id : "") +
|
|
4
|
+
[...e.classList].slice(0, 3).map((c) => "." + c).join("");
|
|
5
|
+
const seen = new Set();
|
|
6
|
+
const elements = [];
|
|
7
|
+
for (const p of points) {
|
|
8
|
+
const el = document.elementFromPoint(p.x, p.y);
|
|
9
|
+
if (!el || seen.has(el)) continue;
|
|
10
|
+
seen.add(el);
|
|
11
|
+
const path = [];
|
|
12
|
+
for (let e = el; e && path.length < 5; e = e.parentElement) path.unshift(part(e));
|
|
13
|
+
elements.push({
|
|
14
|
+
selector: path.join(" > "),
|
|
15
|
+
tag: el.tagName.toLowerCase(),
|
|
16
|
+
text: (el.innerText ?? el.textContent ?? "").trim().slice(0, 200),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
// The page itself (its html or body) only where nothing in it is there.
|
|
20
|
+
const inner = elements.filter((e) => e.tag !== "html" && e.tag !== "body");
|
|
21
|
+
return {
|
|
22
|
+
page: location.pathname + location.search,
|
|
23
|
+
elements: inner.length > 0 ? inner : elements,
|
|
24
|
+
};
|
|
25
|
+
}`,y=e=>e.held("website/held",()=>new T);function E(e,t){const n=y(e).page(t);if(!n)throw new h(c.notFound,`No page is held as ${t}: it was let go.`);return n}const g=e=>e.held("website/previews",()=>new x({env:e.env,forward:t=>e.forward(t),jobs:e.jobs}));function u(e){const t=e.cloud;if(t===void 0)throw new h(c.unavailable,"Publishing a website is a person's, from Studio: this server has no person's sign-in.");return e.kept("website/hosting",()=>new j({cloud:t,root:e.root,env:e.env,jobs:e.jobs}))}const N={"website/preview":o(r["website/preview"],async({item:e},t)=>{const n=await l(t,e);try{return{url:await g(t).open(m(t.root),n)}}catch(i){throw new h(c.unavailable,i instanceof Error?i.message:String(i))}}),"website/still":o(r["website/still"],async({item:e,width:t,height:n,scale:i,hold:s},a)=>{if(s!==void 0)return{image:{mime:"image/png",data:(await E(a,s).capture({format:"png"})).toString("base64")}};const w=await l(a,e),d=await g(a).open(m(a.root),w),f=await v({gpu:!1});try{return{image:{mime:"image/png",data:(await P(f,{url:d,width:t,height:n,scale:i,format:"png"})).picture.toString("base64")}}}finally{await f.close()}}),"website/hold":o(r["website/hold"],async({item:e,width:t,height:n,scale:i},s)=>{const a=await l(s,e),w=await g(s).open(m(s.root),a);return{hold:await y(s).hold(w,{width:t,height:n,scale:i})}}),"website/release":o(r["website/release"],async({hold:e},t)=>(await y(t).release(e),{})),"website/at":o(r["website/at"],async({item:e,width:t,height:n,points:i,hold:s},a)=>{const w=p=>p.evaluate(`(${L})(${JSON.stringify(i)})`);if(s!==void 0)return w(E(a,s));const d=await l(a,e),f=await g(a).open(m(a.root),d),b=await v({gpu:!1});try{const p=await S(b,{width:t,height:n,allow:()=>!0});return await p.goto(f),await p.evaluate("document.fonts.ready.then(() => true)"),await w(p)}finally{await b.close()}}),"website/status":o(r["website/status"],async({item:e},t)=>{const n=await l(t,e);return t.cloud===void 0?{hosting:!1}:u(t).status(n)}),"website/publish":o(r["website/publish"],async({item:e,slug:t,note:n,anew:i},s)=>u(s).publish(await l(s,e),{slug:t,note:n,anew:i})),"website/live":o(r["website/live"],async({item:e,version:t},n)=>u(n).live(await l(n,e),t)),"website/settings":o(r["website/settings"],async({item:e,autoPublish:t,indexing:n},i)=>u(i).settings(await l(i,e),{autoPublish:t,indexing:n})),"website/unpublish":o(r["website/unpublish"],async({item:e},t)=>u(t).unpublish(await l(t,e))),"website/remove":o(r["website/remove"],async({item:e},t)=>u(t).remove(await l(t,e)))};export default 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 e}from"zod";import{PathSchema as
|
|
2
|
+
import{z as e}from"zod";import{PathSchema as a,SiteDetailSchema as o,method as t,toolCaller as n}from"@allyhub/protocol";const s=e.strictObject({item:a});export const WebsiteStatusSchema=e.strictObject({hosting:e.boolean(),detail:o.optional(),elsewhere:e.boolean().optional(),changed:e.boolean().optional(),slug:e.string().optional(),domain:e.string().optional()});const i={confirm:e.string().optional()};export const WEBSITE_TOOLS={"website/preview":t(s,e.strictObject({url:e.string()}),"A website's address as its own dev server serves it, for a frame: its dependencies installed if it has none, then its website.json's dev command on a free port; it answers once the page does."),"website/still":t(s.extend({width:e.number().int().positive().max(4096),height:e.number().int().positive().max(4096),scale:e.number().positive().max(4).default(1),hold:e.string().optional()}),e.strictObject({image:e.strictObject({mime:e.string(),data:e.string()})}),"A website's page as its own dev server serves it, drawn at a frame's size from its top: what Mark up lays over a website's frame where the window cannot read another origin's pixels."),"website/hold":t(s.extend({width:e.number().int().positive().max(4096),height:e.number().int().positive().max(4096),scale:e.number().positive().max(4).default(1)}),e.strictObject({hold:e.string()}),"A website's page opened at a frame's size and kept as it is while a person marks it: website/still and website/at draw and read it as it was, until website/release."),"website/release":t(e.strictObject({hold:e.string()}),e.strictObject({}),"Lets a page held for notes go."),"website/at":t(s.extend({width:e.number().int().positive().max(4096),height:e.number().int().positive().max(4096),points:e.array(e.strictObject({x:e.number(),y:e.number()})).min(1).max(24),hold:e.string().optional()}),e.strictObject({page:e.string(),elements:e.array(e.strictObject({selector:e.string(),tag:e.string(),text:e.string()}))}),"What is at places of a website's page as its own dev server serves it, drawn at a frame's size from its top (as website/still draws it): what a person's mark on its frame is on."),"website/status":t(s,WebsiteStatusSchema,"A website's hosted site, its versions, and whether what is here differs from what is live; where the server has no person's sign-in, not hosted."),"website/publish":t(s.extend({slug:e.string().optional(),note:e.string().optional(),anew:e.boolean().optional()}),e.strictObject({live:e.boolean(),url:e.string(),...i}),"Builds a website, uploads it as a version and makes it live, for the person who pressed Publish. The first time, it waits for their yes in a browser (`confirm`, a page to open there)."),"website/live":t(s.extend({version:e.string().min(1)}),e.strictObject({live:e.boolean(),...i}),"Makes a version what the site serves, as the person asked."),"website/settings":t(s.extend({autoPublish:e.boolean().optional(),indexing:e.boolean().optional()}),e.strictObject({}),"Changes what the person controls of a site."),"website/unpublish":t(s,e.strictObject({}),"Takes a site offline; it keeps its address and versions."),"website/remove":t(s,e.strictObject({}),"Takes a site offline for good. Its address is never given to anyone else.")},callWebsiteTool=n(WEBSITE_TOOLS);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/website-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./tools": {
|
|
@@ -41,6 +41,20 @@
|
|
|
41
41
|
},
|
|
42
42
|
"noun": "website",
|
|
43
43
|
"editor": "allyhub.website.view",
|
|
44
|
+
"shown": {
|
|
45
|
+
"line": {
|
|
46
|
+
"en": "Sites, landing pages, docs and blogs",
|
|
47
|
+
"zh-cn": "网站、落地页、文档站和博客",
|
|
48
|
+
"zh-tw": "網站、到達頁、文件站和部落格",
|
|
49
|
+
"ja": "サイト、LP、ドキュメント、ブログ",
|
|
50
|
+
"ko": "사이트, 랜딩 페이지, 문서, 블로그",
|
|
51
|
+
"es": "Sitios, landing pages, documentación y blogs",
|
|
52
|
+
"pt": "Sites, landing pages, documentação e blogs",
|
|
53
|
+
"de": "Websites, Landingpages, Dokumentationen und Blogs",
|
|
54
|
+
"fr": "Sites, landing pages, documentation et blogs"
|
|
55
|
+
},
|
|
56
|
+
"order": 70
|
|
57
|
+
},
|
|
44
58
|
"icon": "globe",
|
|
45
59
|
"color": "kind-folder",
|
|
46
60
|
"build": "./dist/build.js"
|
|
@@ -52,7 +66,8 @@
|
|
|
52
66
|
"kinds": [
|
|
53
67
|
"website"
|
|
54
68
|
],
|
|
55
|
-
"module": "@allyhub/website-view"
|
|
69
|
+
"module": "@allyhub/website-view",
|
|
70
|
+
"markup": "./markup"
|
|
56
71
|
}
|
|
57
72
|
],
|
|
58
73
|
"rules": [
|
|
@@ -91,6 +106,38 @@
|
|
|
91
106
|
},
|
|
92
107
|
"module": "./dist/project-tools.js"
|
|
93
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"name": "website/still",
|
|
111
|
+
"source": "asleep",
|
|
112
|
+
"does": {
|
|
113
|
+
"files": "the website's own dev command, its website.json's dev, run in its folder; its page drawn in a browser"
|
|
114
|
+
},
|
|
115
|
+
"module": "./dist/project-tools.js"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "website/at",
|
|
119
|
+
"source": "asleep",
|
|
120
|
+
"does": {
|
|
121
|
+
"files": "the website's own dev command, its website.json's dev, run in its folder; its page read in a browser"
|
|
122
|
+
},
|
|
123
|
+
"module": "./dist/project-tools.js"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "website/hold",
|
|
127
|
+
"source": "asleep",
|
|
128
|
+
"does": {
|
|
129
|
+
"files": "the website's own dev command, its website.json's dev, run in its folder; its page kept open in a browser"
|
|
130
|
+
},
|
|
131
|
+
"module": "./dist/project-tools.js"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "website/release",
|
|
135
|
+
"source": "asleep",
|
|
136
|
+
"does": {
|
|
137
|
+
"files": "nothing the agent does: a page kept open for a person's notes closed"
|
|
138
|
+
},
|
|
139
|
+
"module": "./dist/project-tools.js"
|
|
140
|
+
},
|
|
94
141
|
{
|
|
95
142
|
"name": "website/status",
|
|
96
143
|
"source": "asleep",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/x-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json",
|
|
@@ -95,7 +95,21 @@
|
|
|
95
95
|
"entry": "{{name}}.yaml"
|
|
96
96
|
},
|
|
97
97
|
"build": "./dist/build.js",
|
|
98
|
-
"editor": "allyhub.x.post-editor"
|
|
98
|
+
"editor": "allyhub.x.post-editor",
|
|
99
|
+
"shown": {
|
|
100
|
+
"line": {
|
|
101
|
+
"en": "Posts and threads, as X shows them",
|
|
102
|
+
"zh-cn": "帖子和串推,所见即 X 上的样子",
|
|
103
|
+
"zh-tw": "貼文和串文,所見即 X 上的樣子",
|
|
104
|
+
"ja": "ポストとスレッドを X の見た目のまま",
|
|
105
|
+
"ko": "게시물과 스레드를 X에 보이는 그대로",
|
|
106
|
+
"es": "Publicaciones e hilos, tal como los muestra X",
|
|
107
|
+
"pt": "Posts e threads, como o X mostra",
|
|
108
|
+
"de": "Posts und Threads, wie X sie zeigt",
|
|
109
|
+
"fr": "Posts et fils, tels que X les affiche"
|
|
110
|
+
},
|
|
111
|
+
"order": 60
|
|
112
|
+
}
|
|
99
113
|
},
|
|
100
114
|
{
|
|
101
115
|
"id": "x-article",
|
|
@@ -123,6 +137,20 @@
|
|
|
123
137
|
},
|
|
124
138
|
"noun": "X article",
|
|
125
139
|
"editor": "allyhub.x.article-editor",
|
|
140
|
+
"shown": {
|
|
141
|
+
"line": {
|
|
142
|
+
"en": "Long-form articles on X",
|
|
143
|
+
"zh-cn": "X 上的长文章",
|
|
144
|
+
"zh-tw": "X 上的長文章",
|
|
145
|
+
"ja": "X の長文記事",
|
|
146
|
+
"ko": "X의 장문 아티클",
|
|
147
|
+
"es": "Artículos largos en X",
|
|
148
|
+
"pt": "Artigos longos no X",
|
|
149
|
+
"de": "Lange Artikel auf X",
|
|
150
|
+
"fr": "Articles longs sur X"
|
|
151
|
+
},
|
|
152
|
+
"order": 61
|
|
153
|
+
},
|
|
126
154
|
"icon": "newspaper",
|
|
127
155
|
"color": "kind-slate",
|
|
128
156
|
"exports": {
|
|
@@ -168,14 +196,16 @@
|
|
|
168
196
|
"kinds": [
|
|
169
197
|
"x-post"
|
|
170
198
|
],
|
|
171
|
-
"module": "@allyhub/x-editor"
|
|
199
|
+
"module": "@allyhub/x-editor",
|
|
200
|
+
"markup": "./markup/post"
|
|
172
201
|
},
|
|
173
202
|
{
|
|
174
203
|
"id": "allyhub.x.article-editor",
|
|
175
204
|
"kinds": [
|
|
176
205
|
"x-article"
|
|
177
206
|
],
|
|
178
|
-
"module": "@allyhub/x-editor/article"
|
|
207
|
+
"module": "@allyhub/x-editor/article",
|
|
208
|
+
"markup": "./markup/article"
|
|
179
209
|
}
|
|
180
210
|
],
|
|
181
211
|
"rules": [
|
|
@@ -1,67 +1,12 @@
|
|
|
1
1
|
# references/x.md
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
What will be published on X is written in X's own model, so what X counts and refuses is checked before it goes:
|
|
4
4
|
|
|
5
|
-
An X post
|
|
5
|
+
- **An X post** (`x-post`): a post, a thread or a long post, with its pictures, video and poll.
|
|
6
|
+
- **An X article** (`x-article`): a long piece in X's article blocks, with its title and cover.
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
reply_settings: following # who may reply to each post: following, mentionedUsers, subscribers or verified
|
|
9
|
-
posts:
|
|
10
|
-
- text: |
|
|
11
|
-
We shipped dark mode.
|
|
12
|
-
media:
|
|
13
|
-
- file: ./shots.ts#hero # an image's board, a video item, or a picture or video file, from this file's folder
|
|
14
|
-
alt: The dashboard in dark mode.
|
|
15
|
-
- text: Which do you use?
|
|
16
|
-
poll: { options: [Light, Dark], duration_minutes: 1440 }
|
|
17
|
-
```
|
|
8
|
+
Their pictures and videos can be the project's own items, an image's boards or a video, made when the post or article is rendered.
|
|
18
9
|
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
- **
|
|
22
|
-
- **Plain text.** The API publishes no bold or italics: write emphasis in the words. A link is its address.
|
|
23
|
-
- **Write a post's text as a block (`|`) or in quotes** when it holds ` #` (YAML reads the rest of the line as a comment), starts with `@`, `#` or a quote, or holds `: `. The line break a block ends in is not posted.
|
|
24
|
-
- **Media**: up to 4 pictures (JPEG, PNG or WebP, 5 MB each), or 1 GIF (15 MB), or 1 video (MP4 or MOV), never mixed. Alt text up to 1,000 characters. X publishes no picture size, crop or safe area. A video is checked against the widest of what X publishes: 0.5 s to 20 minutes (4 hours with Premium), 8 GB (16 GB), sides 32 px to 1920 on the long side and 1200 on the short, 1:3 to 3:1. X's ways of posting take less: its web upload 1:2.39 to 2.39:1 at 40 frames a second and 25 Mbps, and without Premium 140 seconds and 512 MB; its API's media guide 1280×1024 and 60 frames a second. A 1280×720 or 720×1280 H.264 MP4 at 30 frames a second under 140 seconds suits every way.
|
|
25
|
-
- **Another item's made file**: `./shots.ts#hero` is the image `shots`'s board `hero`, made first when the post is rendered; a video item's file is its first version. Its bytes are checked when it is made.
|
|
26
|
-
|
|
27
|
-
## An X article
|
|
28
|
-
|
|
29
|
-
An article is an `x-article`: a Markdown file listed in `allyhub.yaml` (`- { kind: x-article, file: launch/story.md }`), its title and cover in its front matter, its body in X's blocks alone:
|
|
30
|
-
|
|
31
|
-
```markdown
|
|
32
|
-
---
|
|
33
|
-
title: How we built dark mode
|
|
34
|
-
cover: ./shots.ts#cover # a picture file or an image's board; or { file, alt }
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
Paragraphs with **bold**, _italic_, ~~strikethrough~~ and [links](https://example.com).
|
|
38
|
-
|
|
39
|
-
# A heading (X has two: # a Heading, ## a Subheading)
|
|
40
|
-
|
|
41
|
-
- a list, one level deep
|
|
42
|
-
|
|
43
|
-
1. or numbered
|
|
44
|
-
|
|
45
|
-
> A quote.
|
|
46
|
-
|
|
47
|
-
<br />
|
|
48
|
-
|
|
49
|
-

|
|
50
|
-
|
|
51
|
-
https://x.com/allyhub/status/1234567890
|
|
52
|
-
|
|
53
|
-
https://example.com/launch
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
$$
|
|
58
|
-
e^{i\pi} + 1 = 0
|
|
59
|
-
$$
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
- **Each element is one of X's blocks**: a paragraph, a Heading (`#`) and a Subheading (`##`), lists a level deep, a quote, a picture, GIF or video on a line of its own (its alt text and its caption), a post's address on a line of its own (an embedded post), any other address on a line of its own (a link's card, as X's link preview), `---` (a divider), `$$ … $$` (an equation), a code block or a table (X's Markdown block: 10,000 together, weighted as X counts), and `<br />` alone on a line (an empty line, which X keeps). A third level of heading, a list inside a list, inline code, a picture or an equation inside a line and other HTML are not: each is a problem at its line.
|
|
63
|
-
- **A code block or a picture written inside a list item** stands after the list, and the list starts again after it, as X's editor places it: write the next numbered item as 1, or keep the list whole and put the block after it.
|
|
64
|
-
- **Media** are pictures (JPEG, PNG or WebP, 5 MB each), GIFs (15 MB) and videos (MP4 or MOV); the cover is a picture at 5:2. An image's board (`./shots.ts#chart`) or a video item (`./teaser.ts`) may be one, made first when the article is rendered. X publishes no most for a title or a body.
|
|
65
|
-
- **X Premium** writes articles. Through the API an article is drafted and published, and nothing else: it cannot be changed or deleted once published.
|
|
66
|
-
|
|
67
|
-
`allyhub check` reports what X refuses under `allyhub.x/…`, at its line. `allyhub inspect <post>` gives each post's weighted length beside 280 and 25,000, its links, mentions, hashtags and cashtags, and its media's bytes. `allyhub render <post>` writes POST /2/tweets's request for each post (`x-post`: `posts.json`, the media beside it) or each post's text (`--type txt`). `allyhub inspect <article>` gives its words, its weighted length, its headings, its media, its embedded posts and links' cards, and its code's weight against 10,000; `allyhub frames <post>` and `allyhub frames <article>` draw them as X shows them once published (a thread as the timeline does, an article in X's column), in Inter in place of X's own face; an embedded post and a link's card are drawn by their address, as their content is X's to fetch. `allyhub render <article>` writes POST /2/articles/draft's request (`x-article`: `article.json`, its media beside it with `media.json`). Publishing to X is not built.
|
|
10
|
+
- `allyhub help x` lists the commands and prints where the SDK's `x.md` is. Read it before writing a post or an article.
|
|
11
|
+
- `allyhub frames` draws a post or an article as X shows it once published, and `allyhub inspect` gives what X counts. Look with them before handing it over.
|
|
12
|
+
- **Publishing to X is not built.** `allyhub render` writes the requests X's API takes, or a post's text to paste.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{jsx as e,Fragment as h,jsxs as t}from"react/jsx-runtime";import m from"highlight.js/lib/common";import
|
|
2
|
+
import{jsx as e,Fragment as h,jsxs as t}from"react/jsx-runtime";import{useContext as x}from"react";import m from"highlight.js/lib/common";import k from"katex";import{Copy as v}from"lucide-react";import{markdownShown as N,mediaKind as g}from"@allyhub/x-model";import{Actions as w,PLACEHOLDER as u,VideoElement as y,clock as L}from"./post.js";import{runsOf as _,shownLink as p}from"./text.js";function A({text:n}){return e(h,{children:_(n).map((a,i)=>a.link===!0?e("span",{className:"ak-x-a-link",children:a.text},i):a.text)})}export function Equation({tex:n}){const a=k.renderToString(n,{displayMode:!0,output:"mathml",throwOnError:!1});return e("div",{className:"ak-x-a-math",dangerouslySetInnerHTML:{__html:a}})}export function CodeBlock({code:n,lang:a}){const r=a!==void 0&&m.getLanguage(a)!==void 0?m.highlight(n,{language:a,ignoreIllegals:!0}).value:void 0;return t("div",{className:"ak-x-a-code",children:[t("div",{className:"ak-x-a-code-bar",children:[e("span",{children:a??""}),e(v,{"aria-hidden":"true"})]}),r===void 0?e("pre",{children:n}):e("pre",{dangerouslySetInnerHTML:{__html:r}})]})}export function MarkdownBlock({markdown:n}){const a=N(n);if(a.type==="table"){const[i,...r]=a.rows;return t("table",{className:"ak-x-a-table",children:[i===void 0?null:e("thead",{children:e("tr",{children:i.map((d,l)=>e("th",{children:d},l))})}),e("tbody",{children:r.map((d,l)=>e("tr",{children:d.map((o,s)=>e("td",{children:o},s))},l))})]})}return a.type==="code"?e(CodeBlock,{code:a.code,lang:a.lang}):e("pre",{children:a.text})}export function LinkCard({url:n}){let a=n;try{a=new URL(n).host.replace(/^www\./u,"")}catch{}return t("div",{className:"ak-x-a-linkcard",children:[t("div",{className:"ak-x-a-linkcard-box",children:[e("span",{className:"ak-x-a-linkcard-host",children:a}),e("span",{className:"ak-x-a-linkcard-url",children:p(n)})]}),t("div",{className:"ak-x-a-from",children:["From ",a]})]})}function M({file:n,src:a,alt:i,measure:r}){const d=x(y),l=g(n.split("#")[0]?.split(".").pop()??"");if(a===void 0)return e("div",{className:"ak-x-made",children:n});if(l==="video"){const o=r?.width,s=r?.height,f=o!==void 0&&s!==void 0&&s>0?Math.max(o/s,1):16/9;return t("div",{className:"ak-x-a-video",style:{aspectRatio:String(f)},children:[d({src:`${a}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"},n),e("span",{className:"ak-x-play","aria-hidden":"true"}),r?.seconds===void 0?null:e("div",{className:"ak-x-labels",children:e("span",{className:"ak-x-label ak-x-clock",children:L(r.seconds)})})]})}return t("div",{className:"ak-x-a-picture",children:[e("img",{src:a,alt:i??"","data-gif":l==="gif"?"":void 0}),l==="gif"?e("div",{className:"ak-x-labels",children:e("span",{className:"ak-x-label",children:"GIF"})}):null]})}function j({run:n}){let a=n.link===void 0?e(A,{text:n.text}):n.text;return n.strike===!0&&(a=e("s",{children:a})),n.italic===!0&&(a=e("em",{children:a})),n.bold===!0&&(a=e("strong",{children:a})),n.link!==void 0&&(a=e("span",{className:"ak-x-a-link",children:a})),a}const c=({runs:n})=>e(h,{children:n.map((a,i)=>e(j,{run:a},i))});export function ArticleBlockView({block:n,source:a,measure:i}){switch(n.type){case"paragraph":return e("p",{dir:"auto",children:n.runs.length===0?e("br",{}):e(c,{runs:n.runs})});case"h1":return e("h1",{dir:"auto",children:e(c,{runs:n.runs})});case"h2":return e("h2",{dir:"auto",children:e(c,{runs:n.runs})});case"quote":return e("blockquote",{dir:"auto",children:e(c,{runs:n.runs})});case"ul":case"ol":{const r=n.type==="ul"?"ul":"ol";return e(r,{children:n.items.map((d,l)=>e("li",{dir:"auto",children:e(c,{runs:d})},l))})}case"image":return t("figure",{children:[e(M,{file:n.file,src:a(n.file),alt:n.alt,measure:i?.(n.file)}),n.caption===void 0?null:e("figcaption",{dir:"auto",children:n.caption})]});case"post":return e("div",{className:"ak-x-a-post",children:p(n.url)});case"link":return e(LinkCard,{url:n.url});case"divider":return e("hr",{});case"latex":return e(Equation,{tex:n.tex});case"markdown":return e(MarkdownBlock,{markdown:n.markdown})}}function B(){return t("div",{className:"ak-x-a-by",children:[e("div",{className:"ak-x-avatar","aria-hidden":"true",children:u.name.slice(0,1)}),t("div",{className:"ak-x-a-who",children:[e("span",{className:"ak-x-name",children:u.name}),t("span",{className:"ak-x-handle",children:["@",u.handle]})]})]})}export function ArticleBody({article:n,source:a,measure:i}){return e("div",{className:"ak-x-a-body",children:n.blocks.map((r,d)=>e(ArticleBlockView,{block:r,source:a,measure:i},d))})}export function ArticleView({article:n,source:a,measure:i}){const r=n.cover===void 0?void 0:a(n.cover.file);return t("article",{className:"ak-x-article",children:[e(B,{}),n.cover===void 0?null:e("div",{className:"ak-x-a-cover",children:r===void 0?e("div",{className:"ak-x-made",children:n.cover.file}):e("img",{src:r,alt:n.cover.alt??""})}),e("h1",{className:"ak-x-a-title",dir:"auto",children:n.title}),e(w,{}),e(ArticleBody,{article:n,source:a,measure:i})]})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export{Actions,FOLD,MediaGrid,PLACEHOLDER,Post,PostText,Quote,TIMELINE_WIDTH,Thread,clock,folded}from"./post.js";export{ArticleBlockView,ArticleBody,ArticleView,CodeBlock,Equation,LinkCard,MarkdownBlock}from"./article.js";export{runsOf,shownLink}from"./text.js";
|
|
2
|
+
export{Actions,FOLD,MediaGrid,PLACEHOLDER,Post,PostText,Quote,TIMELINE_WIDTH,Thread,VideoElement,clock,folded}from"./post.js";export{ArticleBlockView,ArticleBody,ArticleView,CodeBlock,Equation,LinkCard,MarkdownBlock}from"./article.js";export{runsOf,shownLink}from"./text.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{jsx as n,jsxs as l,Fragment as c}from"react/jsx-runtime";import{
|
|
3
|
-
`)?"":null]})}export function Post({post:e,joined:
|
|
2
|
+
import{jsx as n,jsxs as l,Fragment as c}from"react/jsx-runtime";import{createContext as o,useContext as u}from"react";import{Bookmark as h,ChartNoAxesColumn as x,Heart as f,MessageCircle as m,Repeat2 as k,Share as p}from"lucide-react";import{runsOf as N}from"./text.js";export const VideoElement=o(e=>n("video",{...e}));export function Actions(){return l("div",{className:"ak-x-actions","aria-hidden":"true",children:[n(m,{}),n(k,{}),n(f,{}),n(x,{}),l("span",{className:"ak-x-actions-end",children:[n(h,{}),n(p,{})]})]})}export const FOLD=280;export function folded(e){const t=Array.from(e);if(t.length<=FOLD)return;const a=t.slice(0,FOLD),d=t[FOLD]??"";if(!/\s/u.test(d)){const i=a.findLastIndex(r=>/\s/u.test(r));i>0&&(a.length=i)}return a.join("").trimEnd()}export const TIMELINE_WIDTH=598,PLACEHOLDER={name:"AllyHub",handle:"allyhub"};export function clock(e){const t=Math.round(e),a=Math.floor(t/3600),d=Math.floor(t%3600/60),i=r=>String(r).padStart(2,"0");return a>0?`${String(a)}:${i(d)}:${i(t%60)}`:`${String(d)}:${i(t%60)}`}function v({m:e}){const t=u(VideoElement),a=e.width!==void 0&&e.height!==void 0&&e.height>0?{aspectRatio:`${String(e.width)} / ${String(e.height)}`}:void 0;return l("div",{className:"ak-x-video",style:a,children:[e.src===void 0?null:t({src:`${e.src}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"},e.file),n("span",{className:"ak-x-play","aria-hidden":"true"})]})}function g({m:e,slot:t,alt:a}){const d=e.kind==="gif"?"GIF":e.kind==="video"&&e.seconds!==void 0?clock(e.seconds):void 0,i=a??(e.alt===void 0||e.alt===""?null:n("span",{className:"ak-x-label",children:"ALT"}));return l("div",{className:"ak-x-medium",children:[e.kind==="made"||e.src===void 0?n("div",{className:"ak-x-made",children:e.label}):e.kind==="video"?n(v,{m:e}):n("img",{src:e.src,alt:e.alt??"","data-gif":e.kind==="gif"?"":void 0}),d===void 0&&i===null?null:l("div",{className:"ak-x-labels",children:[d===void 0?null:n("span",{className:e.kind==="video"?"ak-x-label ak-x-clock":"ak-x-label",children:d}),i]}),t]})}export function Quote({id:e}){return l("div",{className:"ak-x-quote",children:["x.com/i/status/",e]})}export function MediaGrid({media:e,onMedium:t,onAlt:a}){return e.length===0?null:n("div",{className:"ak-x-media","data-count":Math.min(e.length,4),children:e.slice(0,4).map((d,i)=>n(g,{m:d,slot:t?.(i),alt:a?.(i)},i))})}export function PostText({text:e,whole:t=!1}){return l("div",{className:"ak-x-text",dir:"auto","aria-hidden":t?!0:void 0,children:[N(e,!t).map((a,d)=>a.link===!0?n("span",{className:"ak-x-link",children:a.text},d):a.text),t&&e.endsWith(`
|
|
3
|
+
`)?"":null]})}export function Post({post:e,joined:t=!1,slots:a={},published:d=!1}){const i=d?folded(e.text):void 0;return l("article",{className:"ak-x-post","data-joined":t?"":void 0,children:[l("div",{className:"ak-x-side",children:[n("div",{className:"ak-x-avatar","aria-hidden":"true",children:PLACEHOLDER.name.slice(0,1)}),t?n("div",{className:"ak-x-thread-line"}):null]}),l("div",{className:"ak-x-body",children:[l("header",{className:"ak-x-head",children:[n("span",{className:"ak-x-name",children:PLACEHOLDER.name}),l("span",{className:"ak-x-handle",children:["@",PLACEHOLDER.handle]}),a.aside===void 0?null:n("span",{className:"ak-x-aside",children:a.aside})]}),a.text??(e.text===""?null:i===void 0?n(PostText,{text:e.text}):l(c,{children:[n(PostText,{text:i}),n("div",{className:"ak-x-more",children:"Show more"})]})),n(MediaGrid,{media:e.media,onMedium:a.onMedium,onAlt:a.onAlt}),a.poll??(e.poll?n("div",{className:"ak-x-poll",children:e.poll.options.map((r,s)=>n("div",{className:"ak-x-option",dir:"auto",children:r},s))}):null),e.quote===void 0?null:n(Quote,{id:e.quote}),d?n(Actions,{}):null,a.after]})]})}export function Thread({posts:e}){return n("div",{className:"ak-x-thread",children:e.map((t,a)=>n(Post,{post:t,joined:a<e.length-1},a))})}
|
package/dist/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@allyhub/3d-extension": "0.
|
|
6
|
-
"@allyhub/canvas-extension": "0.
|
|
7
|
-
"@allyhub/doc-extension": "0.
|
|
8
|
-
"@allyhub/image-extension": "0.
|
|
9
|
-
"@allyhub/media-extension": "0.
|
|
10
|
-
"@allyhub/sheet-extension": "0.
|
|
11
|
-
"@allyhub/slides-extension": "0.
|
|
12
|
-
"@allyhub/video-extension": "0.
|
|
13
|
-
"@allyhub/website-extension": "0.
|
|
14
|
-
"@allyhub/x-extension": "0.
|
|
5
|
+
"@allyhub/3d-extension": "0.10.0",
|
|
6
|
+
"@allyhub/canvas-extension": "0.10.0",
|
|
7
|
+
"@allyhub/doc-extension": "0.10.0",
|
|
8
|
+
"@allyhub/image-extension": "0.10.0",
|
|
9
|
+
"@allyhub/media-extension": "0.10.0",
|
|
10
|
+
"@allyhub/sheet-extension": "0.10.0",
|
|
11
|
+
"@allyhub/slides-extension": "0.10.0",
|
|
12
|
+
"@allyhub/video-extension": "0.10.0",
|
|
13
|
+
"@allyhub/website-extension": "0.10.0",
|
|
14
|
+
"@allyhub/x-extension": "0.10.0"
|
|
15
15
|
}
|
|
16
16
|
}
|