@allyhub/sdk 0.8.0 → 0.9.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 +11 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +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/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -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/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
- 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/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +8 -6
- package/docs/batches.md +5 -5
- package/docs/contract.md +2 -2
- package/docs/defaults.md +278 -20
- package/docs/docs.md +77 -63
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +11 -11
- package/docs/sheets.md +26 -25
- package/docs/slides.md +73 -65
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
- /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
- /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import * as free from "./free.js";
|
|
2
2
|
import { type FootageFn, type PartFn, type TakeFn } from "./parts.js";
|
|
3
|
+
import { type PictureFn } from "@allyhub/image-sdk/picture";
|
|
3
4
|
import { type VideoFn } from "./piece.js";
|
|
4
|
-
import { type SdkModule } from "
|
|
5
|
-
export type { SdkModule } from "
|
|
5
|
+
import { type SdkModule } from "@allyhub/image-sdk/written";
|
|
6
|
+
export type { SdkModule } from "@allyhub/image-sdk/written";
|
|
6
7
|
/** The functions that name files, and so are made for a module. */
|
|
7
|
-
export declare const BOUND: readonly ["video", "part", "take", "footage"];
|
|
8
|
+
export declare const BOUND: readonly ["video", "part", "take", "footage", "picture"];
|
|
8
9
|
/** The functions sdkFor makes for a module. */
|
|
9
10
|
export interface BoundSdk {
|
|
10
11
|
video: VideoFn;
|
|
11
12
|
part: PartFn;
|
|
12
13
|
take: TakeFn;
|
|
13
14
|
footage: FootageFn;
|
|
15
|
+
picture: PictureFn;
|
|
14
16
|
}
|
|
15
17
|
/** The whole authoring API, bound to one module. */
|
|
16
18
|
export type Sdk = typeof free & BoundSdk;
|
|
17
19
|
/**
|
|
18
20
|
* The authoring API for the module `module.file` (a project path; "" the
|
|
19
|
-
* project's root): the paths its parts, takes, footage and pieces name
|
|
21
|
+
* project's root): the paths its parts, takes, footage, pictures and pieces name
|
|
20
22
|
* are from that module's folder.
|
|
21
23
|
*/
|
|
22
24
|
export declare function sdkFor(module: SdkModule): Sdk;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import*as e from"./free.js";import{footageFor as i,partFor as p,takeFor as a}from"./parts.js";import{pictureFor as f}from"@allyhub/image-sdk/picture";import{videoFor as m}from"./piece.js";import{writtenIn as n}from"@allyhub/image-sdk/written";export const BOUND=["video","part","take","footage","picture"];export function sdkFor(r){const o=n(r),t={video:m(o),part:p(o),take:a(o),footage:i(o),picture:f(o)};return{...e,...t}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type
|
|
1
|
+
import { type WordRef } from "@allyhub/piece";
|
|
2
|
+
import { type VoiceSetting, type FootageLayer, type FootageOptions, type LayerSpec, type MediaRef, type PartAnchors, type PartSpec, type RoomTone, type SaySpeech, type SoundSpec, type SpeechSpec, type TakeSpeech, type TransitionInput, type VideoSpeech } from "@allyhub/video-core";
|
|
3
|
+
import { type GraphicLayer } from "@allyhub/piece";
|
|
4
|
+
import type { Written } from "@allyhub/image-sdk/written";
|
|
5
|
+
import { type PictureProps } from "@allyhub/image-sdk/picture";
|
|
3
6
|
import { type VideoItem } from "./piece.js";
|
|
4
|
-
export type {
|
|
7
|
+
export type { GraphicLayer, LayerTiming, WordRef } from "@allyhub/piece";
|
|
8
|
+
export type { BoxKey, FootageBackground, FootageBox, PerOrient, PunchIn, Pullback, Reframe, FootageLayer, FootageOptions, LayerSpec, LayerSpec as Layer, PartAnchors, PartSpec, Rect, RoomTone, SaySpeech, SoundSpec, SpeechSpec, TakeSpeech, VideoSpeech, Direction, TransitionChannel, TransitionInput, TransitionPicture, TransitionSpec, TransitionType, } from "@allyhub/video-core";
|
|
5
9
|
export interface PartOptions {
|
|
6
10
|
/** Unique in the output; stable across combos. */
|
|
7
11
|
key: string;
|
|
@@ -182,7 +186,7 @@ export interface VideoTake extends VideoSpeech {
|
|
|
182
186
|
export interface SayOptions {
|
|
183
187
|
/** The voice tool's voice id. */
|
|
184
188
|
voice?: string;
|
|
185
|
-
/** The voice tool; default
|
|
189
|
+
/** The voice tool; default speak. */
|
|
186
190
|
tool?: string;
|
|
187
191
|
/**
|
|
188
192
|
* More input for the voice tool, as plain JSON: the fields its schema
|
|
@@ -208,9 +212,14 @@ export interface SayOptions {
|
|
|
208
212
|
export declare function say(text: string, opts?: SayOptions): SaySpeech;
|
|
209
213
|
/**
|
|
210
214
|
* A video on the part: footage("./broll.mp4", { at: "inbox", dur: 1.5 }).
|
|
211
|
-
* Without a file it is the part's own take, in sync with its speech.
|
|
215
|
+
* Without a file it is the part's own take, in sync with its speech. A
|
|
216
|
+
* still (an image) is drawn as picture() draws it.
|
|
212
217
|
*/
|
|
213
|
-
export
|
|
218
|
+
export interface FootageFn {
|
|
219
|
+
(opts?: FootageOptions): FootageLayer;
|
|
220
|
+
(video: VideoItem, opts?: FootageOptions): FootageLayer;
|
|
221
|
+
(file: MediaRef, opts?: FootageOptions): FootageLayer | GraphicLayer<PictureProps>;
|
|
222
|
+
}
|
|
214
223
|
/** footage() for the module `at` names: its paths are from its folder. */
|
|
215
224
|
export declare const footageFor: (at: Written) => FootageFn;
|
|
216
225
|
//# sourceMappingURL=parts.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{shapeProblem as T,voiceProblem as _}from"@allyhub/audio";import{LAYER_BRAND as h}from"@allyhub/piece";import{BACKDROP_BLUR_MAX as $,EASES as E,MATTE_FEATHER_MAX as S,MATTE_SHRINK_MAX as m,ORIENT_KEYS as N,PART_BRAND as M,SPEECH_BRAND as g,isPerOrient as Y,notJson as G,partAnchorsProblem as C,speechSpeedProblem as x,transitionProblem as L}from"@allyhub/video-core";import{MEDIA_BRAND as K,mediaKindOf as q}from"@allyhub/piece";import{pictureLayer as H}from"@allyhub/image-sdk/picture";import{enginePiece as O,isItemPiece as j}from"./piece.js";export const partFor=r=>e=>{const{key:t,layers:n,...i}=e;if(typeof t!="string"||t==="")throw new Error("part: every part needs a key");if(i.title!==void 0&&(typeof i.title!="string"||i.title.trim()===""))throw new Error(`part ${t}: title is a name, not ${JSON.stringify(i.title)}`);for(const a of["before","after"]){const s=e.overlap?.[a];if(s!==void 0&&(!Number.isFinite(s)||s<0||s>10))throw new Error(`part ${t}: overlap.${a} is seconds from 0 to 10, not ${String(s)}`)}for(const[a,s]of(e.sounds??[]).entries()){if(!(typeof s=="object"&&(typeof s.at=="string"||typeof s.at=="number")&&(typeof s.sound=="string"||typeof s.sound=="object"&&"path"in s.sound)))throw new Error(`part ${t}: sounds[${String(a)}] is { at, sound, gainDb? }: at a word reference or seconds, sound a name or an audio file`);if(s.gainDb!==void 0&&(!Number.isFinite(s.gainDb)||s.gainDb<-60||s.gainDb>24))throw new Error(`part ${t}: sounds[${String(a)}].gainDb is dB from -60 to 24, not ${String(s.gainDb)}`);if(s.shape!==void 0){const f=T(s.shape);if(f!==void 0)throw new Error(`part ${t}: sounds[${String(a)}].shape: ${f}`)}}if(e.speechGainDb!==void 0&&(typeof e.speechGainDb!="number"||!Number.isFinite(e.speechGainDb)||e.speechGainDb<-40||e.speechGainDb>24))throw new Error(`part ${t}: speechGainDb is dB from -40 to 24, not ${String(e.speechGainDb)}`);if(e.anchors!==void 0){const a=C(e.anchors);if(a!==void 0)throw new Error(`part ${t}: anchors ${a}`)}if(e.transition!==void 0){const a=L(e.transition);if(a!==void 0)throw new Error(`part ${t}: transition ${a}`)}if(e.mic!==void 0){const a=_(e.mic);if(a!==void 0)throw new Error(`part ${t}: ${a}`)}if(e.post!==void 0){const a=e.post.filter;if(typeof a!="string"||a.trim()==="")throw new Error(`part ${t}: post: post is { filter: an ffmpeg filter chain }`)}const o=e.speech?.kind==="take"||e.speech?.kind==="say"?e.speech.tempo??1:1;if(o!==1&&(n??[]).some(a=>a[h]==="footage"&&a.file===void 0&&a.video===void 0))throw new Error(`part ${t}: footage() shows the part's take, which plays at speed ${String(o)}; a take's picture is drawn only at its own speed. Play the take at speed 1, or show other footage.`);return{[M]:!0,key:t,layers:n??[],...i,base:r.base}};function b(r,...e){const t={...r};for(const n of e)Reflect.deleteProperty(t,n);return t}function A(r,e){const t=i=>A(r,i);return{...{[g]:!0,...e},range(i,o){const a=b(e,"line","from","to");return t({...a,from:i,...o===void 0?{}:{to:o}})},saying(i){return t({...b(e,"from","to"),line:i})},edits(i){if(typeof i!="string"||!/\.json$/i.test(i))throw new Error(`take(…).edits(path): a JSON file relative to the file that names it, such as "./edits/host.json" (not ${JSON.stringify(i)})`);return t({...e,editsFile:i,editsBase:r.base})},speed(i){const o=x(i);if(o!==void 0)throw new Error(`take(…).speed(times): ${o}`);const a=b(e,"tempo");return t(i===1?a:{...a,tempo:i})},denoise(i=12){if(!Number.isFinite(i)||i<=0||i>97)throw new Error(`take(…).denoise(db): the noise reduction in dB, over 0 and up to 97 (not ${String(i)})`);return t({...e,denoiseDb:i})},roomTone(i){if(i===!1)return t({...e,room:!1});const o="take(…).roomTone(tone): false, or { from, to, match, gainDb, limitDb, fade }";if(typeof i!="object"||Array.isArray(i))throw new Error(`${o} (not ${JSON.stringify(i)})`);const{from:a,to:s,match:d,gainDb:f,limitDb:u,fade:c}=i,k=Object.keys(i).filter(R=>!["from","to","match","gainDb","limitDb","fade"].includes(R));if(k.length>0)throw new Error(`${o}: it has no ${k.join(", ")}`);if((a!==void 0||s!==void 0)&&(a===void 0||s===void 0||!Number.isFinite(a)||!Number.isFinite(s)||a<0||s-a<.05))throw new Error(`${o}: from and to are seconds of the file, both given, at least 0.05 s apart`);if(d!==void 0&&typeof d!="boolean")throw new Error(`${o}: match is true or false`);if(f!==void 0&&(!Number.isFinite(f)||f<-60||f>24))throw new Error(`${o}: gainDb is dB from -60 to 24, not ${String(f)}`);if(u!==void 0&&(!Number.isFinite(u)||u<0||u>60))throw new Error(`${o}: limitDb is dB from 0 to 60, not ${String(u)}`);if(c!==void 0&&(!Number.isFinite(c)||c<0||c>1))throw new Error(`${o}: fade is seconds from 0 to 1, not ${String(c)}`);return t({...e,room:{...a===void 0||s===void 0?{}:{from:a,to:s},...d===void 0?{}:{match:d},...f===void 0?{}:{gainDb:f},...u===void 0?{}:{limitDb:u},...c===void 0?{}:{fade:c}}})}}}export function takeFor(r){function e(t){return j(t)?J({kind:"video",piece:O(t)}):A(r,{kind:"take",file:t,...typeof t=="string"?{fileBase:r.base}:{}})}return e}const D=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0||typeof r=="string"&&r.trim()!=="";function J(r){return{[g]:!0,...r,range(e,t){for(const[n,i]of[["from",e],["to",t]])if(i!==void 0&&!D(i))throw new Error(`take(video).range(from, to): ${n} is seconds from 0, an anchor ("@turn") or a part's key (not ${JSON.stringify(i)}).`);if(typeof e=="number"&&typeof t=="number"&&!(t>e))throw new Error(`take(video).range(${String(e)}, ${String(t)}): to comes after from.`);return J({...r,from:e,...t===void 0?{}:{to:t}})}}}export function say(r,e={}){if(e.speed!==void 0){const n=x(e.speed);if(n!==void 0)throw new Error(`say(): ${n}`)}const t=e.params;if(t!==void 0){if(typeof t!="object"||t===null||Array.isArray(t))throw new Error("say() params is not an object: give the voice tool's extra input as { name: value }.");const n=G(t,"params");if(n!==void 0)throw new Error(`say() ${n} is not plain JSON: use strings, finite numbers, booleans, null, arrays and plain objects.`);for(const[i,o]of[["text","say()'s text"],["voiceId","the voice option"]])if(i in t)throw new Error(`say() params.${i} is not allowed: give it as ${o}.`)}return{[g]:!0,kind:"say",text:r,...e.voice===void 0?{}:{voice:e.voice},...e.tool===void 0?{}:{tool:e.tool},...t&&Object.keys(t).length>0?{params:structuredClone(t)}:{},...e.speed===void 0||e.speed===1?{}:{tempo:e.speed}}}const l=r=>typeof r=="string"||typeof r=="object"&&r!==null&&(K in r||"sha256"in r),p=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0&&r<=1;function w(r,e){if(e===void 0)return;if(!(typeof e=="object"&&e!==null&&p(e.x)&&p(e.y)))throw new Error(`footage() ${r} ${JSON.stringify(e)} is not a point { x, y } with each from 0 to 1.`)}function F(r,e){if(e!==void 0&&(typeof e!="number"||!(e>0)||e>30))throw new Error(`footage() ${r} ${JSON.stringify(e)} is not seconds over 0 and up to 30.`)}function v(r,e){if(!(e===void 0||E.includes(e)))throw new Error(`footage() ${r} ${JSON.stringify(e)} is not one of ${E.map(t=>`"${t}"`).join(", ")}.`)}function X(r){if(!(r===void 0||r==="face"||r==="center")){if(typeof r=="object"&&r!==null&&"face"in r){const e=r;if(e.face!==!0)throw new Error(`footage() reframe ${JSON.stringify(r)}: face is true, as in { face: true, faceY: 0.4 }.`);if(e.faceY!==void 0&&!p(e.faceY))throw new Error(`footage() reframe faceY ${JSON.stringify(e.faceY)} is not from 0 (the crop's top) to 1 (its bottom); 0.4 is a little above the middle.`);return}if(typeof r=="object"&&r!==null&&"x"in r){w("reframe",r);return}throw new Error(`footage() reframe ${JSON.stringify(r)} is not "face", { face: true, faceY }, "center" or a point { x, y }.`)}}function U(r){if(r===void 0)return;if(typeof r!="object"||r===null||Array.isArray(r))throw new Error(`footage() background ${JSON.stringify(r)} is not an object such as { blur: 24 }, { dim: 0.4, desaturate: 1 }, { color: "#101418" } or { image: "./backdrop.jpg" }.`);const e=r,t=["blur","dim","desaturate","color","image","feather","shrink"],n=Object.keys(e).find(o=>!t.includes(o));if(n!==void 0)throw new Error(`footage() background has no option "${n}": it takes ${t.join(", ")}.`);const i=o=>typeof o=="number"&&Number.isFinite(o);if(e.blur!==void 0&&!(i(e.blur)&&e.blur>=0&&e.blur<=$))throw new Error(`footage() background blur ${JSON.stringify(e.blur)} is not a number from 0 to ${String($)}: the blur's standard deviation in px at 1080p (24 is a soft room).`);for(const o of["dim","desaturate"])if(e[o]!==void 0&&!p(e[o]))throw new Error(`footage() background ${o} ${JSON.stringify(e[o])} is not a number from 0 (as it is) to 1.`);if(e.color!==void 0&&(typeof e.color!="string"||e.color.trim()===""))throw new Error(`footage() background color ${JSON.stringify(e.color)} is not a CSS colour such as "#101418", "var(--ak-color-bg)" or "transparent".`);if(e.image!==void 0&&!l(e.image))throw new Error(`footage() background image ${JSON.stringify(e.image)} is not an image: a path relative to the piece, or an imported file.`);if(e.color!==void 0&&e.image!==void 0)throw new Error("footage() background takes a color or an image, not both.");if(e.color!==void 0){const o=["blur","dim","desaturate"].find(a=>e[a]!==void 0);if(o!==void 0)throw new Error(`footage() background ${o} does nothing with a color, which replaces the background: leave one out.`)}if(e.feather!==void 0&&!(i(e.feather)&&e.feather>=0&&e.feather<=S))throw new Error(`footage() background feather ${JSON.stringify(e.feather)} is not a number from 0 to ${String(S)}: the softness of the person's edge in px at 1080p (2 by default).`);if(e.shrink!==void 0&&!(i(e.shrink)&&Math.abs(e.shrink)<=m))throw new Error(`footage() background shrink ${JSON.stringify(e.shrink)} is not a number from −${String(m)} to ${String(m)}: how far the person's edge is pulled in, px at 1080p (4 by default).`)}function I(r){if(r===void 0||r==="full"||!Array.isArray(r))return;const e=r.length>0&&typeof r[0]=="object"?r.map(n=>n.box):[r],t=1e-6;for(const n of e){if(n==="full"||!Array.isArray(n)||n.length!==4)continue;const[i,o,a,s]=n;if(!([i,o,a,s].every(d=>typeof d=="number"&&Number.isFinite(d))&&(i??0)>=-t&&(o??0)>=-t&&(a??0)>0&&(s??0)>0&&(i??0)+(a??0)<=1+t&&(o??0)+(s??0)<=1+t))throw new Error(`footage() box ${JSON.stringify(n)} is not inside the frame: [x, y, width, height] are fractions of it, with x + width and y + height at most 1. A box is where the picture shows, so it cannot grow past the frame; for a slow push in use punchIn, eased in over its \`in\` seconds centred on \`at\` ({ at: 4, in: 8, until: 8, scale: 1.07, ease: "linear" } pushes in over the first 8 s), and for a slow pull out pullback ({ scale: 1.07, dur: 8 }).`)}}function y(r,e){if(e===void 0)return[];if(!Y(e))return[e];const t=N,n=Object.keys(e).filter(i=>!t.includes(i));if(n.length>0)throw new Error(`footage() ${r} has ${n.map(i=>JSON.stringify(i)).join(", ")}, which is not a frame shape: a per-shape ${r} is { ${N.join(", ")} } (each optional; an output takes the one for its orientation, else default).`);return Object.values(e).filter(i=>i!==void 0)}function Q(r){const t=Array.isArray(r)?r:[],[n,i,o,a]=t;if(!(t.length===4&&typeof n=="number"&&typeof i=="number"&&typeof o=="number"&&typeof a=="number"&&[n,i,o,a].every(s=>Number.isFinite(s))&&n>=-1e-6&&i>=-1e-6&&o>0&&a>0&&n+o<=1+1e-6&&i+a<=1+1e-6))throw new Error(`footage() crop ${JSON.stringify(r)} is not a part of the source: [x, y, width, height] are fractions of it, with x + width and y + height at most 1.`)}function B(r){if(r===void 0)return;const e=r.scale;if(e!==void 0&&!(Number.isFinite(e)&&e>0&&e<=4))throw new Error(`footage() quality.scale ${String(e)} is outside (0, 4]: 0.5 is the fastest, 1 every pixel.`)}function V(r,e){const t=["crop","reframe","speaker","punchIn","sharpen","pullback","background","shape","radius"].filter(n=>e[n]!==void 0);if(t.length>0)throw new Error(`footage() of a video item takes at, until, dur, from, speed, box, fit, audio, gainDb, camera, cameras and quality; not ${t.join(", ")}.`);if(e.from!==void 0&&!D(e.from))throw new Error(`footage() from ${JSON.stringify(e.from)} is seconds from 0, an anchor ("@click") or a part's key of the video.`);if(e.speed!==void 0&&(!Number.isFinite(e.speed)||e.speed<=0||e.speed>16))throw new Error(`footage() speed ${String(e.speed)} is not a number over 0 and up to 16 (1 is normal speed).`);if(e.audio===!0&&e.speed!==void 0&&e.speed!==1)throw new Error("footage() of a video item plays its sound only at its own speed: speed 1, or audio off.");for(const n of y("box",e.box))I(n);return B(e.quality),{[h]:"footage",video:r,...e}}const z=r=>typeof r=="string"?q(r)==="image":r.kind==="image",P=["at","until","dur","box","fit","crop","reframe","shape","radius"];function W(r,e,t){const n=typeof r=="string"?r:r.path,i=Object.keys(e).filter(f=>!P.includes(f)&&e[f]!==void 0);if(i.length>0)throw new Error(`footage() of the still ${n} takes ${P.join(", ")}; not ${i.join(", ")}: a still has no time or sound of its own (picture() takes a mask, a blend and a filter).`);const o=e.box;if(o!==void 0&&o!=="full"&&!(Array.isArray(o)&&o.length===4&&typeof o[0]=="number"))throw new Error(`footage() of the still ${n}: box ${JSON.stringify(o)} is one rectangle [x, y, w, h] or "full", not keyframes or one per frame shape.`);const a=e.crop;if(a!==void 0&&!Array.isArray(a))throw new Error(`footage() of the still ${n}: crop ${JSON.stringify(a)} is one rectangle [x, y, w, h] of the source, not one per frame shape.`);const s=e.reframe;if(s==="face"||typeof s=="object"&&"face"in s)throw new Error(`footage() of the still ${n}: reframe "face" reads a face track, which a still does not have yet; give its focal point, reframe: { x, y }.`);const d=s===void 0?void 0:s==="center"?[.5,.5]:[s.x,s.y];return H({src:r,...e.at===void 0?{}:{at:e.at},...e.until===void 0?{}:{until:e.until},...e.dur===void 0?{}:{dur:e.dur},...o===void 0||o==="full"?{}:{box:o},...e.fit===void 0?{}:{fit:e.fit},...a===void 0?{}:{crop:a},...d===void 0?{}:{position:d},...e.shape==="circle"?{mask:"ellipse"}:{},...e.radius===void 0?{}:{radius:e.radius}},t,{at1080:!0,caller:"footage()"})}export const footageFor=r=>((e,t={})=>{if(j(e))return V(O(e),t);if(e!==void 0&&l(e)&&z(e))return W(e,t,r.base);const n=e!==void 0&&!l(e)?e:t;if(typeof n.from=="string")throw new Error(`footage() from ${JSON.stringify(n.from)}: a file's from is seconds; a reference is a video item's.`);if(B(n.quality),n.speed!==void 0&&(!Number.isFinite(n.speed)||n.speed<=0||n.speed>16))throw new Error(`footage() speed ${String(n.speed)} is not a number over 0 and up to 16 (1 is normal speed).`);if(n.sharpen!==void 0&&(!Number.isFinite(n.sharpen)||n.sharpen<0||n.sharpen>1))throw new Error(`footage() sharpen ${String(n.sharpen)} is not a number from 0 to 1 (0.3 is gentle).`);if(X(n.reframe),n.speaker!==void 0&&(!Number.isInteger(n.speaker)||n.speaker<0))throw new Error(`footage() speaker ${String(n.speaker)} is not a face id (a whole number from 0, as allyhub frames --overlay labels them).`);for(const o of n.punchIn??[]){const a=typeof o=="object"?o.scale:/@(\d*\.\d+)$/.exec(String(o))?.[1]!==void 0?Number(/@(\d*\.\d+)$/.exec(String(o))?.[1]):void 0;if(a!==void 0&&(!(a>1)||a>3))throw new Error(`footage() punchIn scale ${String(a)} is not over 1 and up to 3 (1.12 is a gentle punch-in).`);typeof o=="object"&&(F("punchIn in",o.in),F("punchIn out",o.out),v("punchIn ease",o.ease),w("punchIn center",o.center))}if(typeof n.pullback=="object"){const{scale:o,dur:a}=n.pullback;if(o!==void 0&&(!(o>1)||o>3))throw new Error(`footage() pullback scale ${String(o)} is not over 1 and up to 3 (1.12 is a gentle pullback).`);if(a!==void 0&&(!(a>0)||a>10))throw new Error(`footage() pullback dur ${String(a)} is not seconds over 0 and up to 10.`);v("pullback ease",n.pullback.ease),w("pullback center",n.pullback.center)}if(n.shape!==void 0&&n.shape!=="rect"&&n.shape!=="circle")throw new Error(`footage() shape ${JSON.stringify(n.shape)} is not "rect" or "circle".`);if(n.radius!==void 0&&(typeof n.radius!="number"||!Number.isFinite(n.radius)||n.radius<0))throw new Error(`footage() radius ${JSON.stringify(n.radius)} is not a number from 0: the corners' radius, px at 1080p (24 is a soft card corner).`);if(n.radius!==void 0&&n.radius>0&&n.shape==="circle")throw new Error('footage(): radius rounds the corners of a rect; shape "circle" has none. Use one of them.');const i=y("box",n.box);for(const o of i)I(o);for(const o of y("crop",n.crop))Q(o);if(U(n.background),i.some(o=>Array.isArray(o)&&o.length>0&&typeof o[0]=="object")&&(n.reframe!==void 0||n.punchIn?.length||n.pullback!==void 0&&n.pullback!==!1))throw new Error("footage(): a keyframed box cannot be reframed, punched in or pulled back; use a still box, or keyframes without reframe, punchIn and pullback.");return e!==void 0&&!l(e)?{[h]:"footage",...e,base:r.base}:{[h]:"footage",...e===void 0?{}:{file:e},...t,base:r.base}});
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { PIECE_BRAND
|
|
2
|
-
import type
|
|
1
|
+
import { PIECE_BRAND } from "@allyhub/piece";
|
|
2
|
+
import { type PieceDefinition, type PartSpec, type PieceContext as StagePieceContext, type PieceWritten, type VideoOptions as StageVideoOptions } from "@allyhub/video-core";
|
|
3
|
+
import type { FormatEntry, Matrix } from "@allyhub/piece";
|
|
3
4
|
import type { ConfigSchema } from "@allyhub/formats";
|
|
4
5
|
import type { VideoConfigSchema } from "@allyhub/video-core";
|
|
5
6
|
import type { z } from "zod";
|
|
6
|
-
import type { MessageReader } from "
|
|
7
|
-
import type { Written } from "
|
|
8
|
-
export type { Combo, Dims, Format, FormatEntry, FormatSpec, Matrix,
|
|
7
|
+
import type { MessageReader } from "@allyhub/image-sdk/messages";
|
|
8
|
+
import type { Written } from "@allyhub/image-sdk/written";
|
|
9
|
+
export type { Combo, Dims, Format, FormatEntry, FormatSpec, Matrix, } from "@allyhub/piece";
|
|
10
|
+
export type { MediaRef, MotionBlur, MusicOptions, PostProcess, CaptureOptions, PieceDefinition, PieceWritten, VideoPiece, } from "@allyhub/video-core";
|
|
11
|
+
export type { MessageHint } from "@allyhub/piece";
|
|
9
12
|
/**
|
|
10
13
|
* allyhub.config.ts as a project writes it: the project's settings
|
|
11
14
|
* (@allyhub/formats) with the look and the defaults every video
|
|
@@ -27,17 +30,23 @@ export interface VideoOptions extends Omit<StageVideoOptions, "covers"> {
|
|
|
27
30
|
}
|
|
28
31
|
/** What every piece has, whatever it makes. */
|
|
29
32
|
export interface PieceOptions {
|
|
30
|
-
/** A stable identity. Default:
|
|
33
|
+
/** A stable identity. Default: its item's id, its file without its extension. */
|
|
31
34
|
id?: string;
|
|
32
35
|
/** A name for people. Default: messages `<id>.title`, else the file name. */
|
|
33
36
|
title?: string | Record<string, string>;
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
|
|
38
|
+
* Its words, a file per language, from this module's folder: `{locale}`
|
|
39
|
+
* in its name stands for each (`./teaser.{locale}.yaml` is
|
|
40
|
+
* `teaser.en.yaml`, `teaser.zh-cn.yaml`), each a script (its title, what
|
|
41
|
+
* its parts say, its screen texts). Without it, it has no words of its
|
|
42
|
+
* own.
|
|
43
|
+
*/
|
|
44
|
+
script?: string;
|
|
45
|
+
/**
|
|
46
|
+
* What it is rendered as, one format: a preset (16x9, 9x16, 1x1, 4x5)
|
|
47
|
+
* or WIDTHxHEIGHT pixels; a4 and letter are not a video's. It may be
|
|
48
|
+
* { format, safe }: that format with its covered edges changed; its
|
|
49
|
+
* name is still the format's. Another format is a piece of its own, which imports what
|
|
41
50
|
* it shares (`video({ ...film, id, format })` reuses another piece's
|
|
42
51
|
* parts, their paths still relative to where they were written).
|
|
43
52
|
* Default: allyhub.config.ts `defaults.format`, else "16x9".
|
|
@@ -46,8 +55,9 @@ export interface PieceOptions {
|
|
|
46
55
|
/**
|
|
47
56
|
* The matrix: `dims` are dimensions and their values, crossed in full;
|
|
48
57
|
* each combo is one value per dimension (`ctx.combo`). `lang` picks the
|
|
49
|
-
* language of
|
|
50
|
-
*
|
|
58
|
+
* language of its script and assets/text/<lang>.json (the first is the
|
|
59
|
+
* default); without it, the languages are its script's and the
|
|
60
|
+
* project's shared words'. `size`
|
|
51
61
|
* and `format` are not dimensions: the frame is `format`.
|
|
52
62
|
*/
|
|
53
63
|
matrix?: Matrix;
|
|
@@ -87,7 +97,7 @@ export declare function isItemPiece(v: unknown): v is ItemPiece;
|
|
|
87
97
|
* engine's, which the SDK's typed messages only narrow.
|
|
88
98
|
*/
|
|
89
99
|
export declare function enginePiece(p: ItemPiece): PieceDefinition;
|
|
90
|
-
/** A video: the default export of
|
|
100
|
+
/** A video: the default export of a video's module. Its function returns its parts, in order. */
|
|
91
101
|
export type VideoFn = (opts: VideoPieceOptions) => Video;
|
|
92
102
|
/**
|
|
93
103
|
* video() for the module `at` names. Its music's and its LUT's paths are
|
|
@@ -101,7 +111,7 @@ export declare const videoFor: (at: Written) => VideoFn;
|
|
|
101
111
|
*/
|
|
102
112
|
export declare const definePiece: (opts: unknown) => never;
|
|
103
113
|
/**
|
|
104
|
-
* Gone: a deck is `presentation()` from `@allyhub/sdk/slides`,
|
|
114
|
+
* Gone: a deck is `presentation()` from `@allyhub/sdk/slides`, a deck's module.
|
|
105
115
|
* Calling it says so.
|
|
106
116
|
*/
|
|
107
117
|
export declare const paged: (build: unknown, opts?: unknown) => never;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PIECE_BRAND as f}from"@allyhub/piece";import{isPieceDefinition as a}from"@allyhub/video-core";import{shapeProblem as u,voiceProblem as m}from"@allyhub/audio";const d=e=>{throw new Error(e)},p="A video's module exports one video: export default video({ format, parts: (ctx) => [ part(…), … ] }). A second video (a cut-down, another format) is an item of its own, which imports what it shares.";export function isItemPiece(e){return a(e)}export function enginePiece(e){return e}const l=["music","post","script"];export const videoFor=e=>t=>{if((typeof t=="function"||typeof t.parts!="function")&&d(p),t.mic!==void 0){const i=m(t.mic);if(i!==void 0)throw new Error(`video: ${i}`)}const r=t.music;if(r!==void 0&&typeof r!="string"&&!("path"in r)){const i=Object.fromEntries(["filter","eq","compress"].filter(o=>r[o]!==void 0).map(o=>[o,r[o]])),n=u(i,!0);if(n!==void 0)throw new Error(`video: music: ${n}`)}const c=t.written?.paths,s={};for(const i of l){const n=t[i];if(n===void 0)continue;const o=c?.[i];s[i]=[n,o?.[0]===n?o[1]:e.base]}return{...t,[f]:!0,kind:"video",written:{file:e.file,...Object.keys(s).length>0?{paths:s}:{}}}},definePiece=()=>d("definePiece is gone: a video's module exports one video, export default video({ format, parts: (ctx) => [ … ] }), with what definePiece and its output had (id, format, matrix, music, mix…); a deck's module exports default presentation((prs) => { … }) from @allyhub/sdk/slides. Each other output is an item of its own, which imports what it shares."),paged=()=>d('paged() is gone: a deck is a module of its own, export default presentation({ slides: "./deck.yaml", script: "./deck.{locale}.yaml" }, (prs) => { … }) from @allyhub/sdk/slides, its slides in the file it names.');export function defineConfig(e){return e}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** A box, in any units: its left, top, width and height. */
|
|
2
|
+
export interface RouteBox {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
w: number;
|
|
6
|
+
h: number;
|
|
7
|
+
}
|
|
8
|
+
/** A side of a box a route leaves or arrives by. */
|
|
9
|
+
export type RouteSide = "top" | "right" | "bottom" | "left";
|
|
10
|
+
/** A route from one box to another, by their places in the list. */
|
|
11
|
+
export interface RouteConnection {
|
|
12
|
+
from: number;
|
|
13
|
+
to: number;
|
|
14
|
+
/** The side it leaves by; absent: the cheapest. */
|
|
15
|
+
fromSide?: RouteSide;
|
|
16
|
+
/** The side it arrives by; absent: the cheapest. */
|
|
17
|
+
toSide?: RouteSide;
|
|
18
|
+
}
|
|
19
|
+
export interface RouteOptions {
|
|
20
|
+
/** How far a route keeps from every box, and how far it runs straight out of a side. */
|
|
21
|
+
margin: number;
|
|
22
|
+
/** What a bend costs, as so much length: higher, fewer bends and longer ways round. */
|
|
23
|
+
bend: number;
|
|
24
|
+
/** How far apart lines that share a channel are set. */
|
|
25
|
+
spread: number;
|
|
26
|
+
/** What crossing another line costs, as so much length: higher, fewer crossings and longer ways round. */
|
|
27
|
+
cross: number;
|
|
28
|
+
/** The area routes stay in (a frame), its left, top, width and height; absent: anywhere. */
|
|
29
|
+
bounds?: RouteBox | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare const ROUTE_DEFAULTS: RouteOptions;
|
|
32
|
+
/** How many times lines cross one another, each pair counted once. */
|
|
33
|
+
export declare function routeCrossings(routes: readonly (Route | undefined)[]): number;
|
|
34
|
+
/** A route: its corners from the port it leaves to the port it reaches, and the sides it uses. */
|
|
35
|
+
export interface Route {
|
|
36
|
+
points: [number, number][];
|
|
37
|
+
fromSide: RouteSide;
|
|
38
|
+
toSide: RouteSide;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Routes at right angles between boxes, each round every other box (and
|
|
42
|
+
* round its own two, from a side's middle). A connection that no way
|
|
43
|
+
* along the grid joins is undefined.
|
|
44
|
+
*/
|
|
45
|
+
export declare function routeConnections(boxes: readonly RouteBox[], connections: readonly RouteConnection[], options?: Partial<RouteOptions>): (Route | undefined)[];
|
|
46
|
+
//# sourceMappingURL=route.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const ROUTE_DEFAULTS={margin:16,bend:48,spread:8,cross:120};const rt=e=>e.slice(1).map((t,f)=>{const n=e[f]??t;return[n[0],n[1],t[0],t[1]]});function Mt(e,t){const f=Math.abs(e[1]-e[3])<1e-6,n=Math.abs(t[1]-t[3])<1e-6;if(f===n)return!1;const[o,i]=f?[e,t]:[t,e],l=o[1],a=i[0],g=(M,u,r)=>M>Math.min(u,r)+1e-6&&M<Math.max(u,r)-1e-6;return g(a,o[0],o[2])&&g(l,i[1],i[3])}function gt(e,t){const f=Math.abs(e[1]-e[3])<1e-6,n=Math.abs(t[1]-t[3])<1e-6;if(f===n)return!1;const[o,i]=f?[e,t]:[t,e],l=o[1],a=i[0],g=(u,r,c)=>u>=Math.min(r,c)-1e-6&&u<=Math.max(r,c)+1e-6,M=(u,r,c)=>u>Math.min(r,c)+1e-6&&u<Math.max(r,c)-1e-6;return M(a,o[0],o[2])&&g(l,i[1],i[3])||g(a,o[0],o[2])&&M(l,i[1],i[3])}export function routeCrossings(e){const t=e.map(n=>n?rt(n.points):[]);let f=0;return t.forEach((n,o)=>{for(const i of t.slice(o+1))for(const l of n)for(const a of i)Mt(l,a)&&f++}),f}const Y=["top","right","bottom","left"],q={top:[0,-1],right:[1,0],bottom:[0,1],left:[-1,0]},at=[[1,0],[-1,0],[0,1],[0,-1]],ft=(e,t)=>e>0?0:e<0?1:t>0?2:3;function B(e){const t=[];for(const f of[...e].sort((n,o)=>n-o))(t.length===0||f-(t[t.length-1]??0)>1e-6)&&t.push(f);return t}class yt{items=[];get size(){return this.items.length}push(t,f){const n=this.items;n.push([t,f]);let o=n.length-1;for(;o>0;){const i=o-1>>1,l=n[o],a=n[i];if(!l||!a||a[0]<=l[0])break;n[o]=a,n[i]=l,o=i}}pop(){const t=this.items,f=t[0],n=t.pop();if(t.length>0&&n){t[0]=n;let o=0;for(;;){const i=2*o+1,l=i+1;let a=o;if((t[i]?.[0]??1/0)<(t[a]?.[0]??1/0)&&(a=i),(t[l]?.[0]??1/0)<(t[a]?.[0]??1/0)&&(a=l),a===o)break;const g=t[a],M=t[o];if(!g||!M)break;t[a]=M,t[o]=g,o=a}}return f}}function tt(e,t,f){const n=e.x+e.w/2,o=e.y+e.h/2,i=t==="top"?[n,e.y]:t==="bottom"?[n,e.y+e.h]:t==="left"?[e.x,o]:[e.x+e.w,o],[l,a]=q[t];return{at:i,out:[i[0]+l*f,i[1]+a*f]}}export function routeConnections(e,t,f={}){const{margin:n,bend:o,spread:i,cross:l,bounds:a}={...ROUTE_DEFAULTS,...f},g=e.map(s=>({x0:s.x-n,y0:s.y-n,x1:s.x+s.w+n,y1:s.y+s.h+n})),M=B(g.flatMap(s=>[s.x0,s.x1])),u=B(g.flatMap(s=>[s.y0,s.y1])),r=s=>s.slice(1).map((h,m)=>(h+(s[m]??h))/2),c=B([...M,...r(M),...e.map(s=>s.x+s.w/2)]),d=B([...u,...r(u),...e.map(s=>s.y+s.h/2)]);if(a!==void 0){const s=(h,m,w)=>h.filter(E=>E>=m-1e-6&&E<=w+1e-6);c.splice(0,c.length,...s(c,a.x,a.x+a.w)),d.splice(0,d.length,...s(d,a.y,a.y+a.h))}const p=c.length,x=(s,h)=>h*p+s,I=(s,h)=>g.some(m=>s>m.x0+1e-6&&s<m.x1-1e-6&&h>m.y0+1e-6&&h<m.y1-1e-6),F=(s,h,m)=>{const[w,E]=at[m]??[0,0],R=s+w,_=h+E,z=((c[s]??0)+(c[R]??0))/2,D=((d[h]??0)+(d[_]??0))/2;return!I(z,D)},j=(s,h)=>{let m=0;return h.forEach((w,E)=>{Math.abs(w-s)<Math.abs((h[m]??0)-s)&&(m=E)}),m},U=(s,h)=>{const m=e[s.from],w=e[s.to];if(!m||!w||s.from===s.to)return;const E=(s.fromSide?[s.fromSide]:Y).map(b=>{const y=tt(m,b,n);return{side:b,...y,i:j(y.out[0],c),j:j(y.out[1],d)}}),R=(s.toSide?[s.toSide]:Y).map(b=>{const y=tt(w,b,n);return{side:b,...y,i:j(y.out[0],c),j:j(y.out[1],d)}}),_=c.length*d.length*4,z=new Float64Array(_).fill(1/0),D=new Int32Array(_).fill(-1),H=new yt,et=(b,y)=>Math.min(...R.map(k=>Math.abs((c[b]??0)-(c[k.i]??0))+Math.abs((d[y]??0)-(d[k.j]??0))));for(const b of E){const y=ft(...q[b.side]),k=x(b.i,b.j)*4+y;n<(z[k]??1/0)&&(z[k]=n,D[k]=-2-Y.indexOf(b.side),H.push(n+et(b.i,b.j),k))}let J=1/0,K=-1,L;for(;H.size>0;){const[b,y]=H.pop()??[1/0,-1];if(b>=J)break;const k=z[y]??1/0,ct=y>>2,V=y&3,C=ct%p,T=(ct-C)/p;for(const S of R){if(S.i!==C||S.j!==T)continue;const[W,Z]=q[S.side],v=ft(-W,-Z)===V?0:o,O=k+n+v;O<J&&(J=O,K=y,L=S)}for(let S=0;S<4;S++){const[W,Z]=at[S]??[0,0];if(S===(V^1))continue;const v=C+W,O=T+Z;if(v<0||O<0||v>=p||O>=d.length||!F(C,T,S))continue;const dt=Math.abs((c[v]??0)-(c[C]??0))+Math.abs((d[O]??0)-(d[T]??0));let it=0;if(l>0&&h.length>0){const pt=[c[C]??0,d[T]??0,c[v]??0,d[O]??0];for(const mt of h)gt(pt,mt)&&it++}const $=k+dt+(S===V?0:o)+it*l,X=x(v,O)*4+S;$<(z[X]??1/0)&&(z[X]=$,D[X]=y,H.push($+et(v,O),X))}}if(K<0||!L)return;const N=[];let P=K,Q="right";for(;;){const b=P>>2,y=b%p;N.push([c[y]??0,d[(b-y)/p]??0]);const k=D[P]??-1;if(k<=-2){Q=Y[-2-k]??"right";break}if(k<0)break;P=k}N.reverse();const lt=tt(m,Q,n);return{points:bt([lt.at,...N,L.at]),fromSide:Q,toSide:L.side}},ut=s=>{const h=e[s.from],m=e[s.to];return h&&m?Math.abs(h.x+h.w/2-(m.x+m.w/2))+Math.abs(h.y+h.h/2-(m.y+m.h/2)):0},nt=t.map((s,h)=>({k:h,d:ut(s)})).sort((s,h)=>s.d-h.d||s.k-h.k).map(s=>s.k),st=(s,h)=>s.flatMap((m,w)=>w===h||!m?[]:rt(m.points));let A=t.map(()=>{});for(const s of nt){const h=t[s];h&&(A[s]=U(h,st(A,s)))}const ot=s=>routeCrossings(ht(s,i));let G=ot(A);for(let s=0;s<3&&G>0;s++){const h=[...A];for(const w of nt){const E=t[w];E&&(h[w]=U(E,st(h,w)))}const m=ot(h);if(m>=G)break;A=h,G=m}return ht(A,i)}function bt(e){const t=[];for(const f of e){const n=t[t.length-1];if(n&&Math.abs(n[0]-f[0])<1e-6&&Math.abs(n[1]-f[1])<1e-6)continue;const o=t[t.length-2];o&&n&&(Math.abs(o[0]-n[0])<1e-6&&Math.abs(n[0]-f[0])<1e-6||Math.abs(o[1]-n[1])<1e-6&&Math.abs(n[1]-f[1])<1e-6)?t[t.length-1]=f:t.push(f)}return t}function ht(e,t){if(t<=0)return e;const f=e.map(n=>n&&{...n,points:n.points.map(o=>[o[0],o[1]])});for(const n of[0,1]){const o=n===0?1:0,i=[];f.forEach((a,g)=>{if(!a)return;const M=a.points;for(let u=0;u+1<M.length;u++){const r=M[u],c=M[u+1];!r||!c||Math.abs(r[n]-c[n])>1e-6||Math.abs(r[o]-c[o])<1e-6||i.push({r:g,k:u,at:r[n],lo:Math.min(r[o],c[o]),hi:Math.max(r[o],c[o])})}});const l=new Set;i.forEach((a,g)=>{if(l.has(g))return;const M=[g];l.add(g);for(const r of M){const c=i[r];c&&i.forEach((d,p)=>{l.has(p)||Math.abs(d.at-c.at)>1e-6||d.hi<=c.lo+1e-6||d.lo>=c.hi-1e-6||(l.add(p),M.push(p))})}const u=M.map(r=>i[r]).filter(r=>r!==void 0);new Set(u.map(r=>r.r)).size<2||(u.sort((r,c)=>xt(e,n,r,c)||r.r-c.r),u.forEach((r,c)=>{const d=(c-(u.length-1)/2)*t,p=f[r.r]?.points,x=p?.[r.k],I=p?.[r.k+1];x&&(x[n]+=d),I&&(I[n]+=d)}))})}return f}function xt(e,t,f,n){const o=t===0?1:0,i=e[f.r]?.points,l=e[n.r]?.points,a=i?.[f.k],g=i?.[f.k+1],M=l?.[n.k],u=l?.[n.k+1];if(!i||!l||!a||!g||!M||!u)return 0;const r=Math.max(Math.min(a[o],g[o]),Math.min(M[o],u[o])),c=Math.min(Math.max(a[o],g[o]),Math.max(M[o],u[o])),d=(p,x,I)=>{const F=p[x],j=p[x+1];return!F||!j?[]:F[o]<j[o]===I?p.slice(x+1):p.slice(0,x+1).reverse()};for(const p of[!0,!1]){const x=a[t],I=t===0?[x,p?r:c]:[p?r:c,x],F=t===0?[0,p?1:-1]:[p?1:-1,0],j=kt(d(i,f.k,p),d(l,n.k,p),I,F);if(j!==0){const U=t===0?F[1]:-F[0];return j*U}}return 0}function kt(e,t,f,n){let o=f,i=n,l=0,a=0;const g=(M,u)=>{const r=M[u],c=M[u+1];if(!r||!c)return;const d=[Math.sign(c[0]-r[0]),Math.sign(c[1]-r[1])];return Math.sign((d[0]??0)*i[1]-(d[1]??0)*i[0])};for(let M=0;M<256;M++){const u=e[l],r=t[a];if(!u||!r)return 0;const c=(u[0]-o[0])*i[0]+(u[1]-o[1])*i[1],d=(r[0]-o[0])*i[0]+(r[1]-o[1])*i[1];if(Math.abs(c-d)>1e-6)return c<d?g(e,l)??0:-(g(t,a)??0);const p=g(e,l),x=g(t,a);if(p===void 0||x===void 0)return Math.sign((p??0)-(x??0));if(p!==x)return Math.sign(p-x);const I=e[l+1];if(!I)return 0;o=u,i=[Math.sign(I[0]-u[0]),Math.sign(I[1]-u[1])],l++,a++}return 0}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@allyhub/video-sdk",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./scenery": {
|
|
11
|
+
"types": "./dist/scenery.d.ts",
|
|
12
|
+
"default": "./dist/scenery.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"private": true,
|
|
18
|
+
"license": "SEE LICENSE IN LICENSE.md"
|
|
19
|
+
}
|
package/dist/scenery.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "@allyhub/video-sdk/scenery";
|
|
2
2
|
//# sourceMappingURL=scenery.d.ts.map
|
package/dist/scenery.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export
|
|
2
|
+
export*from"@allyhub/video-sdk/scenery";
|
package/dist/sheets.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "@allyhub/sheet/sdk";
|
|
2
2
|
//# sourceMappingURL=sheets.d.ts.map
|
package/dist/sheets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export
|
|
2
|
+
export*from"@allyhub/sheet/sdk";
|
package/dist/slides.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Emu: (n: number) => import("@allyhub/slides-core").LengthValue, Inches: (n: number) => import("@allyhub/slides-core").LengthValue, Pt: (n: number) => import("@allyhub/slides-core").LengthValue, Cm: (n: number) => import("@allyhub/slides-core").LengthValue, Mm: (n: number) => import("@allyhub/slides-core").LengthValue, Centipoints: (n: number) => import("@allyhub/slides-core").LengthValue;
|
|
3
|
-
export { RGBColor, MSO_ANCHOR, CategoryChartData, MSO_ARROWHEAD, XL_CHART_TYPE, XL_LABEL_POSITION, XL_LEGEND_POSITION, MSO_AUTO_SIZE, MSO_CONNECTOR, MSO_FILL, MSO_LINE, MSO_SHAPE, MSO_SHAPE_TYPE, MSO_THEME_COLOR, PP_ALIGN, PP_PLACEHOLDER, THEME_FONT, SLIDE_SIZES, presentationFor, isDeck, type Anchor, type AutoSize, type Background, type ColorFormat, type ComponentContext, type ComponentInput, type Deck, type FillFormat, type Font, type GeneratedSlide, type Generator, type Length, type LengthValue, type LineFormat, type ListLevel, type ListStyle, type Paragraph, type Placeholders, type PlaceholderType, type Presentation, type PresentationOptions, type PropSpec, type Run, type Shape, type ShapeCollection, type ShapeType, type SlideLayout, type SlideLayouts, type SlideMaster, type SlideMasters, type SlideSizeName, type TextFrame, type TextStyles, type ThemeInput, } from "@allyhub/slides-core";
|
|
4
|
-
/**
|
|
5
|
-
* A deck: the default export of an item's slides.ts. Its function makes
|
|
6
|
-
* the presentation's slide masters, layouts, components and generators;
|
|
7
|
-
* its slides are slides.yaml beside it.
|
|
8
|
-
*/
|
|
9
|
-
export declare const presentation: (options: import("@allyhub/slides-core").PresentationOptions | ((prs: import("@allyhub/slides-core").Presentation) => void), build?: (prs: import("@allyhub/slides-core").Presentation) => void) => import("@allyhub/slides-core").Deck;
|
|
1
|
+
export * from "@allyhub/slides-core/sdk";
|
|
10
2
|
//# sourceMappingURL=slides.d.ts.map
|
package/dist/slides.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
|
|
2
|
+
export*from"@allyhub/slides-core/sdk";
|
package/docs/README.md
CHANGED
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
What a piece is written with, for the version of the SDK installed beside them. Read the file a piece needs before writing it. Commands are not here: `allyhub help` lists them, `allyhub help <command>` says what one does and its options' defaults. Every export also has its documentation in JSDoc.
|
|
4
4
|
|
|
5
|
-
- [project.md](project.md): a project's folders,
|
|
5
|
+
- [project.md](project.md): a project's folders, its list of work (`allyhub.yaml`) and items, the SDK bound to the file that imports it, imports of media, data and other items, scripts and shared text, `allyhub.config.ts`, fonts.
|
|
6
6
|
- [contract.md](contract.md): what the build, the check and the render rely on: a piece drawn from time alone, what piece code may not do, the rules a problem is reported under.
|
|
7
7
|
- [video.md](video.md): `video()`, formats, `part()`, a part's length, layers and their stacking, transitions, the look, covers, the camera filming the picture, post.
|
|
8
|
-
- [layers.md](layers.md): `defineComponent()` and its prop types, `custom()`, the layer's `ctx`, the DOM and layout helpers, animation, text, path and noise helpers, and a person's input as functions of time (`
|
|
8
|
+
- [layers.md](layers.md): `defineComponent()` and its prop types, `custom()`, the layer's `ctx`, the DOM and layout helpers, animation, text, path and noise helpers, and a person's input as functions of time (`cursor`, a mouse's that glides; `handPath`, a hand's; `reach`, `tap`, `drag`, scrolling, typing), starter components.
|
|
9
9
|
- [speech.md](speech.md): `take()`, `say()`, word references, anchors, shown and said text, captions, edits files.
|
|
10
10
|
- [sound.md](sound.md): music, sound effects, the mix, the master, how the voice was recorded.
|
|
11
11
|
- [footage.md](footage.md): `footage()` layers: placing, cropping, reframing, punch-ins, faces and mattes, the background behind the person, a video item inside another.
|
|
12
|
-
- [
|
|
12
|
+
- [pictures.md](pictures.md): `picture()`, a still in CSS's terms: fit, focal point, crop, mask, corners, blend mode, filter; `footage()` of a still; a deck's crop to fill and fit.
|
|
13
|
+
- [slides.md](slides.md): `presentation()`, masters, layouts and shapes, a deck's slides file and script, what a deck renders to.
|
|
14
|
+
- [image.md](image.md): `image()` and its boards, each its own size or as tall as it holds; layers named by `key`; words; what an image checks, measures and renders to.
|
|
13
15
|
- [batches.md](batches.md): the matrix: dimensions, slots, pools, structures, rules, combos.
|
|
14
16
|
- [scenery.md](scenery.md): 3D sceneries: `defineScenery()`, cameras and their moves, the hand that holds one, the `scenery()` layer and its screens.
|
|
15
17
|
- [modeling.md](modeling.md): a prop modelled in code with `@allyhub/model` and put in a scenery.
|
|
16
|
-
- [docs.md](docs.md): a doc,
|
|
17
|
-
- [sheets.md](sheets.md): a sheet, a workbook as
|
|
18
|
-
- [websites.md](websites.md): a website, any web project with
|
|
18
|
+
- [docs.md](docs.md): a doc, one MDX file: its title, the Markdown and tags it reads, pictures and links, check and render.
|
|
19
|
+
- [sheets.md](sheets.md): a sheet, a workbook as YAML and CSV: tables, formulas, names, checks, the openpyxl API (`@allyhub/sdk/sheets`), calc, trace and render.
|
|
20
|
+
- [websites.md](websites.md): a website, any web project with its JSON file: how Studio serves it while it is made (`PORT`, `HOST`, the preview hosts), a project's videos in its pages, its build.
|
|
19
21
|
- [defaults.md](defaults.md): every default of the piece API, generated from the code's constants, with the option that changes it.
|
package/docs/batches.md
CHANGED
|
@@ -6,7 +6,7 @@ A piece's `matrix` says which versions of it are made. Each version is a **combo
|
|
|
6
6
|
|
|
7
7
|
`matrix.dims` are dimensions and their values, crossed in full: `{ lang: ["en", "zh-cn"], audience: ["dev", "ops"] }` makes four combos.
|
|
8
8
|
|
|
9
|
-
- `lang` is the one dimension AllyHub reads: it picks each item's
|
|
9
|
+
- `lang` is the one dimension AllyHub reads: it picks the file of each item's script in that language and `assets/text/<lang>.json`, the first value being the default language. Its values are lowercase language tags (`en`, `zh-cn`). Without `lang`, a piece's languages are its script's and the shared text's, `allyhub.config.ts`'s `locales` first.
|
|
10
10
|
- Other dimensions are the piece's: its parts function reads them from `ctx.combo`.
|
|
11
11
|
- A name starts with a lowercase letter (then letters, digits, `_`, `-`); a value is letters, digits, `.`, `_`, `-`, each listed once. `size`, `format`, `piece`, `output`, `token`, `structure` and `id` name no dimension or slot. A wrong name or value is AK-M001.
|
|
12
12
|
- A combo's **key** is its names sorted, each `name=value`, joined with commas: `audience=dev,lang=en` (`default` when there are none). It filters commands' `--combo` (`--combo lang=zh-cn`); the rendered files carry its values, after the name of the piece's folder (`.allyhub/out/launch/launch.dev.en.mp4`).
|
|
@@ -15,7 +15,7 @@ A piece's `matrix` says which versions of it are made. Each version is a **combo
|
|
|
15
15
|
|
|
16
16
|
An ad is a structure of **slots** (a hook, a demo, a call to action), each with **candidates**. The matrix chooses which slot combinations to make; each chosen one is crossed with every combo of the dimensions.
|
|
17
17
|
|
|
18
|
-
```ts file=ads/tidyform/
|
|
18
|
+
```ts file=ads/tidyform/tidyform.ts
|
|
19
19
|
import { footage, part, say, video } from "@allyhub/sdk";
|
|
20
20
|
|
|
21
21
|
export default video({
|
|
@@ -68,7 +68,7 @@ export default video({
|
|
|
68
68
|
|
|
69
69
|
### Pools
|
|
70
70
|
|
|
71
|
-
`{ pool: "./pool/demos", tags? }` makes one candidate per media file (video, audio or picture) directly in the folder, named by the file's stem. The folder is relative to the
|
|
71
|
+
`{ pool: "./pool/demos", tags? }` makes one candidate per media file (video, audio or picture) directly in the folder, named by the file's stem. The folder is relative to the piece's file (`/` first: from the project's root). `tags` go to every file; a file's `<stem>.meta.json` adds its own:
|
|
72
72
|
|
|
73
73
|
```json
|
|
74
74
|
{ "tags": ["inbox", "short"] }
|
|
@@ -93,7 +93,7 @@ Each pick keeps a reason in a few words. Sampling looks at no more than 100,000
|
|
|
93
93
|
|
|
94
94
|
`combos` names the slot combinations to make, in order: each names `structure` when the piece declares structures, and one candidate per slot of it, never a dimension. Nothing is sampled.
|
|
95
95
|
|
|
96
|
-
```ts file=ads/chosen/
|
|
96
|
+
```ts file=ads/chosen/chosen.ts
|
|
97
97
|
import { part, video } from "@allyhub/sdk";
|
|
98
98
|
|
|
99
99
|
export default video({
|
|
@@ -144,5 +144,5 @@ The check loads only a few combos that between them hold every candidate, and pu
|
|
|
144
144
|
## Commands
|
|
145
145
|
|
|
146
146
|
- `allyhub inspect combos` prints each piece's slots, rules, the chosen combos with why, and what rendering them costs in part renders, without a browser.
|
|
147
|
-
- `allyhub render <piece> --type csv` writes the batch's table of ads, `<piece
|
|
147
|
+
- `allyhub render <piece> --type csv` writes the batch's table of ads, `<piece>.ads.csv`: a row per ad with its combo, picks, length, file, name and the generated media it uses.
|
|
148
148
|
- `allyhub render` renders every combo; `--combo` narrows it.
|
package/docs/contract.md
CHANGED
|
@@ -30,14 +30,14 @@ What the build, the check and the render rely on. Everything else is the piece's
|
|
|
30
30
|
|
|
31
31
|
| Codes | Area |
|
|
32
32
|
| --- | --- |
|
|
33
|
-
| `AK-M…` | An item, a file's format: a piece's fields,
|
|
33
|
+
| `AK-M…` | An item, a file's format: a piece's fields, the list of work, scripts, messages, docs, sheets |
|
|
34
34
|
| `AK-B…` | The build: ids, network, time, imports, the installed SDK |
|
|
35
35
|
| `AK-K…` | Parts: keys, a piece without parts |
|
|
36
36
|
| `AK-D…` | Determinism |
|
|
37
37
|
| `AK-T…` | Speech: word times, generated voices, ranges, word references, anchors, edits files |
|
|
38
38
|
| `AK-S…` | Text: a missing key (S001), a missing translation (S002, a warning) |
|
|
39
39
|
| `AK-A…` | Media and data files |
|
|
40
|
-
| `AK-
|
|
40
|
+
| `AK-G…` | An unknown format |
|
|
41
41
|
| `AK-P…` | Loading and drawing time |
|
|
42
42
|
| `AK-R…`, `AK-N…` | Run time: an exception, the page changed, a style refused; a request blocked |
|
|
43
43
|
| `AK-L…` | Layout and fonts: text cut at the frame's edge, missing glyphs, fallback fonts (warnings) |
|