@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,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const ASSETS_DIR="assets",MEDIA_DIR="assets/media",DATA_DIR="assets/data",TEXT_DIR="assets/text",FONTS_DIR="assets/fonts",MODELS_DIR="assets/media/models",ENVIRONMENTS_DIR="assets/media/environments",TEXTURES_DIR="assets/media/textures",COMPONENTS_DIR="components",SCENERIES_DIR="sceneries",LOCAL_DIR=".allyhub",WORK_DIR=".allyhub/work",REFERENCE_DIR=".allyhub/work/reference",DEV_FILE=".allyhub/dev.json",OUT_DIR=".allyhub/out",CACHE_DIR=".allyhub/cache",BAKE_DIR=".allyhub/cache/bake",TRASH_DIR=".allyhub/trash",MEMORY_DIR=".allyhub/memory",PACKAGE_FILE="package.json",TSCONFIG_FILE="tsconfig.json",AGENTS_FILE="AGENTS.md",CLAUDE_FILE="CLAUDE.md",CONFIG_FILES=["allyhub.config.ts","allyhub.config.mts","allyhub.config.js","allyhub.config.mjs"],GITIGNORE=`node_modules/
|
|
2
|
+
export const ASSETS_DIR="assets",MEDIA_DIR="assets/media",DATA_DIR="assets/data",TEXT_DIR="assets/text",FONTS_DIR="assets/fonts",MODELS_DIR="assets/media/models",ENVIRONMENTS_DIR="assets/media/environments",TEXTURES_DIR="assets/media/textures",COMPONENTS_DIR="components",SCENERIES_DIR="sceneries",LOCAL_DIR=".allyhub",WORK_DIR=".allyhub/work",REFERENCE_DIR=".allyhub/work/reference",DEV_FILE=".allyhub/dev.json",OUT_DIR=".allyhub/out",CACHE_DIR=".allyhub/cache";export function partCacheLimit(){const t=globalThis.process?.env,e=Number(t?.ALLYHUB_PART_CACHE_MB);return(Number.isFinite(e)&&e>=0?e:4096)*1024*1024}export const BAKE_DIR=".allyhub/cache/bake",TRASH_DIR=".allyhub/trash",MEMORY_DIR=".allyhub/memory",PACKAGE_FILE="package.json",TSCONFIG_FILE="tsconfig.json",AGENTS_FILE="AGENTS.md",CLAUDE_FILE="CLAUDE.md",CONFIG_FILES=["allyhub.config.ts","allyhub.config.mts","allyhub.config.js","allyhub.config.mjs"],GITIGNORE=`node_modules/
|
|
3
3
|
${LOCAL_DIR}/
|
|
4
4
|
.playwright-cli/
|
|
5
5
|
`;export function unscanned(t){return t.split("/").some(e=>e.startsWith(".")||e==="node_modules")}export function projectPath(t){return t.replaceAll("\\","/").replace(/^(?:\.\/)+/u,"").replace(/\/+$/u,"").replace(/\/{2,}/gu,"/")}export function dirOf(t){const e=t.lastIndexOf("/");return e<0?"":t.slice(0,e)}export function baseOf(t){return t.slice(t.lastIndexOf("/")+1)}export function within(t,e){return e===""||t===e||t.startsWith(`${e}/`)}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DATA_FILES: {
|
|
3
|
+
readonly work: {
|
|
4
|
+
readonly schema: z.ZodObject<{
|
|
5
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
6
|
+
work: z.ZodDefault<z.ZodArray<z.ZodType<import("./data/work.js").WorkEntry, unknown, z.core.$ZodTypeInternals<import("./data/work.js").WorkEntry, unknown>>>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
readonly files: readonly ["allyhub.yaml"];
|
|
9
|
+
readonly about: "The work a person sees of the project: each piece's kind, file and title, in groups.";
|
|
10
|
+
};
|
|
3
11
|
readonly words: {
|
|
4
12
|
readonly schema: z.ZodObject<{
|
|
5
13
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -73,41 +81,6 @@ export declare const DATA_FILES: {
|
|
|
73
81
|
readonly files: readonly ["**/*.gen.json"];
|
|
74
82
|
readonly about: "How a media file was made, and where it came from.";
|
|
75
83
|
};
|
|
76
|
-
readonly comments: {
|
|
77
|
-
readonly schema: z.ZodObject<{
|
|
78
|
-
$schema: z.ZodOptional<z.ZodString>;
|
|
79
|
-
version: z.ZodLiteral<1>;
|
|
80
|
-
threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
81
|
-
id: z.ZodString;
|
|
82
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
-
type: z.ZodLiteral<"quote">;
|
|
84
|
-
exact: z.ZodString;
|
|
85
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
86
|
-
suffix: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
-
type: z.ZodLiteral<"cells">;
|
|
89
|
-
range: z.ZodString;
|
|
90
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
-
type: z.ZodLiteral<"item">;
|
|
92
|
-
}, z.core.$strict>], "type">;
|
|
93
|
-
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
-
comments: z.ZodArray<z.ZodObject<{
|
|
95
|
-
id: z.ZodString;
|
|
96
|
-
author: z.ZodObject<{
|
|
97
|
-
kind: z.ZodEnum<{
|
|
98
|
-
person: "person";
|
|
99
|
-
agent: "agent";
|
|
100
|
-
}>;
|
|
101
|
-
name: z.ZodString;
|
|
102
|
-
}, z.core.$strict>;
|
|
103
|
-
text: z.ZodString;
|
|
104
|
-
at: z.ZodISODateTime;
|
|
105
|
-
}, z.core.$strict>>;
|
|
106
|
-
}, z.core.$strict>>>;
|
|
107
|
-
}, z.core.$strict>;
|
|
108
|
-
readonly files: readonly ["**/comments.json"];
|
|
109
|
-
readonly about: "What was said about an item, in threads.";
|
|
110
|
-
};
|
|
111
84
|
readonly script: {
|
|
112
85
|
readonly schema: z.ZodObject<{
|
|
113
86
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -131,8 +104,12 @@ export declare const DATA_FILES: {
|
|
|
131
104
|
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
132
105
|
}, z.core.$strict>]>>;
|
|
133
106
|
}, z.core.$strict>>>;
|
|
107
|
+
boards: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./data/script.js").ScriptText, unknown, z.core.$ZodTypeInternals<import("./data/script.js").ScriptText, unknown>>>>;
|
|
110
|
+
}, z.core.$strict>>>;
|
|
134
111
|
}, z.core.$strict>;
|
|
135
|
-
readonly files: readonly [
|
|
112
|
+
readonly files: readonly [];
|
|
136
113
|
readonly about: "An item's words in one language.";
|
|
137
114
|
};
|
|
138
115
|
readonly messages: {
|
|
@@ -150,6 +127,7 @@ export declare const DATA_FILES: {
|
|
|
150
127
|
readonly sheet: {
|
|
151
128
|
readonly schema: z.ZodObject<{
|
|
152
129
|
title: z.ZodOptional<z.ZodString>;
|
|
130
|
+
code: z.ZodOptional<z.ZodString>;
|
|
153
131
|
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
|
|
154
132
|
hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
155
133
|
sheets: z.ZodArray<z.ZodObject<{
|
|
@@ -1532,12 +1510,12 @@ export declare const DATA_FILES: {
|
|
|
1532
1510
|
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1533
1511
|
range: z.ZodString;
|
|
1534
1512
|
type: z.ZodEnum<{
|
|
1535
|
-
list: "list";
|
|
1536
1513
|
date: "date";
|
|
1537
1514
|
custom: "custom";
|
|
1515
|
+
list: "list";
|
|
1516
|
+
time: "time";
|
|
1538
1517
|
whole: "whole";
|
|
1539
1518
|
decimal: "decimal";
|
|
1540
|
-
time: "time";
|
|
1541
1519
|
textLength: "textLength";
|
|
1542
1520
|
}>;
|
|
1543
1521
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1746,7 +1724,7 @@ export declare const DATA_FILES: {
|
|
|
1746
1724
|
}, z.core.$strict>>>;
|
|
1747
1725
|
scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
|
|
1748
1726
|
}, z.core.$strict>;
|
|
1749
|
-
readonly files: readonly [
|
|
1727
|
+
readonly files: readonly [];
|
|
1750
1728
|
readonly about: "A workbook: its sheets, cells, formulas, formats, names, checks and scenarios.";
|
|
1751
1729
|
};
|
|
1752
1730
|
readonly slides: {
|
|
@@ -1766,6 +1744,16 @@ export declare const DATA_FILES: {
|
|
|
1766
1744
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1767
1745
|
flip_h: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1768
1746
|
flip_v: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1747
|
+
connect: z.ZodOptional<z.ZodObject<{
|
|
1748
|
+
begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1749
|
+
shape: z.ZodString;
|
|
1750
|
+
site: z.ZodInt;
|
|
1751
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
1752
|
+
end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1753
|
+
shape: z.ZodString;
|
|
1754
|
+
site: z.ZodInt;
|
|
1755
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
1756
|
+
}, z.core.$strict>>;
|
|
1769
1757
|
z: z.ZodOptional<z.ZodInt>;
|
|
1770
1758
|
fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
1771
1759
|
dk1: "dk1";
|
|
@@ -2279,6 +2267,20 @@ export declare const DATA_FILES: {
|
|
|
2279
2267
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
2280
2268
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
2281
2269
|
vary_by_categories: z.ZodOptional<z.ZodBoolean>;
|
|
2270
|
+
category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2271
|
+
dk1: "dk1";
|
|
2272
|
+
lt1: "lt1";
|
|
2273
|
+
dk2: "dk2";
|
|
2274
|
+
lt2: "lt2";
|
|
2275
|
+
accent1: "accent1";
|
|
2276
|
+
accent2: "accent2";
|
|
2277
|
+
accent3: "accent3";
|
|
2278
|
+
accent4: "accent4";
|
|
2279
|
+
accent5: "accent5";
|
|
2280
|
+
accent6: "accent6";
|
|
2281
|
+
hlink: "hlink";
|
|
2282
|
+
folHlink: "folHlink";
|
|
2283
|
+
}>, z.ZodString, z.ZodString]>>>;
|
|
2282
2284
|
hole_size: z.ZodOptional<z.ZodNumber>;
|
|
2283
2285
|
value_axis: z.ZodOptional<z.ZodObject<{
|
|
2284
2286
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2375,6 +2377,7 @@ export declare const DATA_FILES: {
|
|
|
2375
2377
|
locked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2376
2378
|
component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
2377
2379
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./data/slides.js").PropValue, unknown, z.core.$ZodTypeInternals<import("./data/slides.js").PropValue, unknown>>>>;
|
|
2380
|
+
dur: z.ZodOptional<z.ZodNumber>;
|
|
2378
2381
|
}, z.core.$strict>>>;
|
|
2379
2382
|
animations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2380
2383
|
shape: z.ZodString;
|
|
@@ -2464,18 +2467,19 @@ export declare const DATA_FILES: {
|
|
|
2464
2467
|
}, z.core.$strict>>;
|
|
2465
2468
|
}, z.core.$strict>>>;
|
|
2466
2469
|
}, z.core.$strict>;
|
|
2467
|
-
readonly files: readonly [
|
|
2470
|
+
readonly files: readonly [];
|
|
2468
2471
|
readonly about: "A deck's pages: their order, layouts, values and what was placed on them.";
|
|
2469
2472
|
};
|
|
2470
2473
|
readonly website: {
|
|
2471
2474
|
readonly schema: z.ZodObject<{
|
|
2472
2475
|
$schema: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2473
2477
|
dev: z.ZodOptional<z.ZodString>;
|
|
2474
2478
|
build: z.ZodOptional<z.ZodString>;
|
|
2475
2479
|
output: z.ZodString;
|
|
2476
2480
|
site: z.ZodOptional<z.ZodString>;
|
|
2477
2481
|
}, z.core.$strict>;
|
|
2478
|
-
readonly files: readonly [
|
|
2482
|
+
readonly files: readonly [];
|
|
2479
2483
|
readonly about: "A website: how it is served while it is made, how it is built, and where the built site is.";
|
|
2480
2484
|
};
|
|
2481
2485
|
readonly interpretation: {
|
|
@@ -2710,7 +2714,7 @@ export declare const DATA_FILES: {
|
|
|
2710
2714
|
}, z.core.$strict>]>>;
|
|
2711
2715
|
}, z.core.$strict>;
|
|
2712
2716
|
readonly files: readonly [];
|
|
2713
|
-
readonly about: "What a deck's
|
|
2717
|
+
readonly about: "What a deck's module and its generators made, as data: what its code host sends the editor.";
|
|
2714
2718
|
};
|
|
2715
2719
|
readonly config: {
|
|
2716
2720
|
readonly schema: z.ZodObject<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as r}from"zod";import{
|
|
2
|
+
import{z as r}from"zod";import{ConfigSchema as m}from"./data/config.js";import{DeckCodeSchema as n}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as f}from"./data/messages.js";import{InterpretationSchema as d}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as b}from"./data/slides.js";import{WebsiteFileSchema as g}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as k}from"./data/words.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:k,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.gen.json"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:f,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:b,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:g,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:d,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:n,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:m,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function o(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const i=a.path.map(String).join(".");return i===""?o(a):`${i}: ${o(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=DATA_FILES[e].schema.safeParse(t);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(a=>({path:a.path.map(String).join("."),message:o(a)}))}}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
AllyHub Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software (the AllyHub command-line tool, its SDK, runtime and the
|
|
6
|
+
packages they depend on) is proprietary. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Permitted use. You may install and run the software, unmodified, to make,
|
|
9
|
+
check, preview and render videos and decks, including for commercial
|
|
10
|
+
purposes. What you make with it is yours.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. Except as this license permits or applicable law requires,
|
|
13
|
+
you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
|
|
14
|
+
publish or otherwise distribute the software, create derivative works of
|
|
15
|
+
it, or reverse engineer, decompile or disassemble it.
|
|
16
|
+
|
|
17
|
+
3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
|
|
18
|
+
video) are separate services governed by AllyHub's terms of service.
|
|
19
|
+
|
|
20
|
+
4. Trademarks. This license grants no right to use the name "AllyHub" or its
|
|
21
|
+
logos.
|
|
22
|
+
|
|
23
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
24
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
28
|
+
|
|
29
|
+
6. Third-party code. Parts of the software are adapted from HyperFrames,
|
|
30
|
+
licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
|
|
31
|
+
remain under that license, reproduced below, and nothing in this license
|
|
32
|
+
limits your rights under it.
|
|
33
|
+
|
|
34
|
+
7. Starter components. The starter components in the "components" folder,
|
|
35
|
+
which "allyhub add" copies into your workspace, are licensed under the MIT
|
|
36
|
+
License (see components/LICENSE): once copied, you may change, use and
|
|
37
|
+
share them freely.
|
|
38
|
+
|
|
39
|
+
--------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
Apache License
|
|
42
|
+
Version 2.0, January 2004
|
|
43
|
+
http://www.apache.org/licenses/
|
|
44
|
+
|
|
45
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
46
|
+
|
|
47
|
+
1. Definitions.
|
|
48
|
+
|
|
49
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
50
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
51
|
+
|
|
52
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
53
|
+
the copyright owner that is granting the License.
|
|
54
|
+
|
|
55
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
56
|
+
other entities that control, are controlled by, or are under common
|
|
57
|
+
control with that entity. For the purposes of this definition,
|
|
58
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
59
|
+
direction or management of such entity, whether by contract or
|
|
60
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
61
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
62
|
+
|
|
63
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
64
|
+
exercising permissions granted by this License.
|
|
65
|
+
|
|
66
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
67
|
+
including but not limited to software source code, documentation
|
|
68
|
+
source, and configuration files.
|
|
69
|
+
|
|
70
|
+
"Object" form shall mean any form resulting from mechanical
|
|
71
|
+
transformation or translation of a Source form, including but
|
|
72
|
+
not limited to compiled object code, generated documentation,
|
|
73
|
+
and conversions to other media types.
|
|
74
|
+
|
|
75
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
76
|
+
Object form, made available under the License, as indicated by a
|
|
77
|
+
copyright notice that is included in or attached to the work
|
|
78
|
+
(an example is provided in the Appendix below).
|
|
79
|
+
|
|
80
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
81
|
+
form, that is based on (or derived from) the Work and for which the
|
|
82
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
83
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
84
|
+
of this License, Derivative Works shall not include works that remain
|
|
85
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
86
|
+
the Work and Derivative Works thereof.
|
|
87
|
+
|
|
88
|
+
"Contribution" shall mean any work of authorship, including
|
|
89
|
+
the original version of the Work and any modifications or additions
|
|
90
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
91
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
92
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
93
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
94
|
+
means any form of electronic, verbal, or written communication sent
|
|
95
|
+
to the Licensor or its representatives, including but not limited to
|
|
96
|
+
communication on electronic mailing lists, source code control systems,
|
|
97
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
98
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
99
|
+
excluding communication that is conspicuously marked or otherwise
|
|
100
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
101
|
+
|
|
102
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
103
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
104
|
+
subsequently incorporated within the Work.
|
|
105
|
+
|
|
106
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
110
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
111
|
+
Work and such Derivative Works in Source or Object form.
|
|
112
|
+
|
|
113
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
114
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
115
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
116
|
+
(except as stated in this section) patent license to make, have made,
|
|
117
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
118
|
+
where such license applies only to those patent claims licensable
|
|
119
|
+
by such Contributor that are necessarily infringed by their
|
|
120
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
121
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
122
|
+
institute patent litigation against any entity (including a
|
|
123
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
124
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
125
|
+
or contributory patent infringement, then any patent licenses
|
|
126
|
+
granted to You under this License for that Work shall terminate
|
|
127
|
+
as of the date such litigation is filed.
|
|
128
|
+
|
|
129
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
130
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
131
|
+
modifications, and in Source or Object form, provided that You
|
|
132
|
+
meet the following conditions:
|
|
133
|
+
|
|
134
|
+
(a) You must give any other recipients of the Work or
|
|
135
|
+
Derivative Works a copy of this License; and
|
|
136
|
+
|
|
137
|
+
(b) You must cause any modified files to carry prominent notices
|
|
138
|
+
stating that You changed the files; and
|
|
139
|
+
|
|
140
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
141
|
+
that You distribute, all copyright, patent, trademark, and
|
|
142
|
+
attribution notices from the Source form of the Work,
|
|
143
|
+
excluding those notices that do not pertain to any part of
|
|
144
|
+
the Derivative Works; and
|
|
145
|
+
|
|
146
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
147
|
+
distribution, then any Derivative Works that You distribute must
|
|
148
|
+
include a readable copy of the attribution notices contained
|
|
149
|
+
within such NOTICE file, excluding those notices that do not
|
|
150
|
+
pertain to any part of the Derivative Works, in at least one
|
|
151
|
+
of the following places: within a NOTICE text file distributed
|
|
152
|
+
as part of the Derivative Works; within the Source form or
|
|
153
|
+
documentation, if provided along with the Derivative Works; or,
|
|
154
|
+
within a display generated by the Derivative Works, if and
|
|
155
|
+
wherever such third-party notices normally appear. The contents
|
|
156
|
+
of the NOTICE file are for informational purposes only and
|
|
157
|
+
do not modify the License. You may add Your own attribution
|
|
158
|
+
notices within Derivative Works that You distribute, alongside
|
|
159
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
160
|
+
that such additional attribution notices cannot be construed
|
|
161
|
+
as modifying the License.
|
|
162
|
+
|
|
163
|
+
You may add Your own copyright statement to Your modifications and
|
|
164
|
+
may provide additional or different license terms and conditions
|
|
165
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
166
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
167
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
168
|
+
the conditions stated in this License.
|
|
169
|
+
|
|
170
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
171
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
172
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
173
|
+
this License, without any additional terms or conditions.
|
|
174
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
175
|
+
the terms of any separate license agreement you may have executed
|
|
176
|
+
with Licensor regarding such Contributions.
|
|
177
|
+
|
|
178
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
179
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
180
|
+
except as required for reasonable and customary use in describing the
|
|
181
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
182
|
+
|
|
183
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
184
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
185
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
187
|
+
implied, including, without limitation, any warranties or conditions
|
|
188
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
189
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
190
|
+
appropriateness of using or redistributing the Work and assume any
|
|
191
|
+
risks associated with Your exercise of permissions under this License.
|
|
192
|
+
|
|
193
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
194
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
195
|
+
unless required by applicable law (such as deliberate and grossly
|
|
196
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
197
|
+
liable to You for damages, including any direct, indirect, special,
|
|
198
|
+
incidental, or consequential damages of any character arising as a
|
|
199
|
+
result of this License or out of the use or inability to use the
|
|
200
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
201
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
202
|
+
other commercial damages or losses), even if such Contributor
|
|
203
|
+
has been advised of the possibility of such damages.
|
|
204
|
+
|
|
205
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
206
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
207
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
208
|
+
or other liability obligations and/or rights consistent with this
|
|
209
|
+
License. However, in accepting such obligations, You may act only
|
|
210
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
211
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
212
|
+
defend, and hold each Contributor harmless for any liability
|
|
213
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
214
|
+
of your accepting any such warranty or additional liability.
|
|
215
|
+
|
|
216
|
+
END OF TERMS AND CONDITIONS
|
|
217
|
+
|
|
218
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
219
|
+
|
|
220
|
+
To apply the Apache License to your work, attach the following
|
|
221
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
222
|
+
replaced with your own identifying information. (Don't include
|
|
223
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
224
|
+
comment syntax for the file format. We also recommend that a
|
|
225
|
+
file or class name and description of purpose be included on the
|
|
226
|
+
same "printed page" as the copyright notice for easier
|
|
227
|
+
identification within third-party archives.
|
|
228
|
+
|
|
229
|
+
Copyright [yyyy] [name of copyright owner]
|
|
230
|
+
|
|
231
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
+
you may not use this file except in compliance with the License.
|
|
233
|
+
You may obtain a copy of the License at
|
|
234
|
+
|
|
235
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
+
|
|
237
|
+
Unless required by applicable law or agreed to in writing, software
|
|
238
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
239
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
+
See the License for the specific language governing permissions and
|
|
241
|
+
limitations under the License.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BuildContext } from "@allyhub/piece";
|
|
2
|
+
import type { Env } from "./env.js";
|
|
3
|
+
/** What a kind's build function receives (a video's parts function, an image's boards function). */
|
|
4
|
+
export declare function buildContext(env: Env): BuildContext;
|
|
5
|
+
//# sourceMappingURL=context.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{LoadFailure as c}from"./errors.js";export function buildContext(a){const{log:i,combo:n,space:s}=a,l=Object.assign((o,e)=>i.s(o,e),{list:(o,e)=>i.list(o,e),with:(o,e,t)=>i.with(o,e,t)});return{combo:n,pool:o=>{const e=s?.slots[o]?.find(t=>t.name===n[o]);if(e?.file===void 0)throw new c("bad_pool",`ctx.pool("${o}"): ${o} is not a pool slot of this piece${s?` (pool slots: ${Object.entries(s.slots).filter(([,t])=>t.some(r=>r.file!==void 0)).map(([t])=>t).join(", ")||"none"})`:""}. Declare it as matrix.slots.${o} = { pool: "./folder" }.`);return`/${e.file}`},s:l,asset:o=>i.asset(o),data:o=>i.readData(o)}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InkLine, Rgba } from "@allyhub/piece";
|
|
2
|
+
import type { TextBlock } from "./inspect.js";
|
|
3
|
+
/** A CSS colour as sRGB (any syntax the browser reads: rgb, hex, oklch, color()). */
|
|
4
|
+
export declare function rgbaOf(css: string): Rgba | undefined;
|
|
5
|
+
/** A block's lines with their fills, and its type. `k` is frame pixels per CSS pixel. */
|
|
6
|
+
export declare function inkOfBlock(block: TextBlock, k: number): {
|
|
7
|
+
lines: InkLine[];
|
|
8
|
+
size: number;
|
|
9
|
+
weight: number;
|
|
10
|
+
shadow?: true;
|
|
11
|
+
stroke?: true;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=contrast.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
let r;const c=new Map;export function rgbaOf(t){const e=c.get(t);if(e||c.has(t))return e;r??=Object.assign(document.createElement("canvas"),{width:1,height:1}).getContext("2d",{willReadFrequently:!0});let o;if(r){r.clearRect(0,0,1,1),r.fillStyle="rgba(0,0,0,0)",r.fillStyle=t,r.fillRect(0,0,1,1);const[l=0,n=0,i=0,s=0]=r.getImageData(0,0,1,1).data;o=[l,n,i,Math.round(s/255*1e3)/1e3]}return c.set(t,o),o}function p(t){const e=getComputedStyle(t),l=t instanceof SVGElement?e.fill.startsWith("url(")||e.fill==="none"?"":e.fill:e.webkitTextFillColor||e.color;if(!l)return;const n=rgbaOf(l);return n&&n[3]>0?n:void 0}export function inkOfBlock(t,e){const o=[];let l=!1,n=!1;for(const a of t.runs){const g=p(a.el);for(const d of a.glyphs)o.push({box:d,...g?{fill:g}:{},opacity:Math.round(a.opacity*1e3)/1e3});const f=getComputedStyle(a.el);f.textShadow!=="none"&&f.textShadow!==""&&(l=!0),parseFloat(f.webkitTextStrokeWidth||"0")>0&&(n=!0)}const i=t.runs[0]?.el??t.el,s=getComputedStyle(i),u=i.getBoundingClientRect(),h=i.offsetHeight>0&&u.height>0?u.height/i.offsetHeight:1;return{lines:o,size:Math.round(parseFloat(s.fontSize)*h*e*10)/10,weight:Number(s.fontWeight)||400,...l?{shadow:!0}:{},...n?{stroke:!0}:{}}}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type Fact, type Problem } from "@allyhub/diagnostics";
|
|
2
|
+
import { type BuildSource, type Combo, type LoadOptions, type MatrixSpace, type MediaInfo, type ShownIn, type SizeInfo } from "@allyhub/piece";
|
|
3
|
+
import { type Guards } from "./guards.js";
|
|
4
|
+
import { ReadLog } from "./reads.js";
|
|
5
|
+
/** Media named by its project path, or as imported. */
|
|
6
|
+
export type MediaRef = string | MediaInfo;
|
|
7
|
+
/** The most different run-time problems one page keeps. */
|
|
8
|
+
export declare const RUN_PROBLEMS = 200;
|
|
9
|
+
/**
|
|
10
|
+
* A video loaded inside another output (a part's video take, a footage of
|
|
11
|
+
* a video item, a scenery's screen): the piece the outer one imported. It
|
|
12
|
+
* shares the page with the outer output: the clock's guards, the console
|
|
13
|
+
* and the read log's media are the outer's, nothing outside its own
|
|
14
|
+
* element is touched, and it draws its graphic layers over its background
|
|
15
|
+
* (no footage yet).
|
|
16
|
+
*/
|
|
17
|
+
export interface Embed {
|
|
18
|
+
/** The piece's definition, as its kind's runtime reads it. */
|
|
19
|
+
def: unknown;
|
|
20
|
+
/** The cameras its scenery layers are drawn from, by layer name ("*": every one); absent: their own. */
|
|
21
|
+
cameras?: Readonly<Record<string, unknown>>;
|
|
22
|
+
/** The pieces it is inside, outermost first: a piece that reaches itself is refused. */
|
|
23
|
+
chain: readonly string[];
|
|
24
|
+
/** Where the outer video shows it, filled in once the outer one is timed. */
|
|
25
|
+
shown?: ShownIn;
|
|
26
|
+
/** The drawing scale its scenery layers take, in place of their own. */
|
|
27
|
+
sceneryScale?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The frame it is laid out and drawn at, in place of its format's: any
|
|
30
|
+
* pixels, with its safe zone (an image's board, its own size).
|
|
31
|
+
*/
|
|
32
|
+
frame?: SizeInfo;
|
|
33
|
+
}
|
|
34
|
+
/** Where piece code runs now: the layer mounting or drawing, its part and moment (film seconds). */
|
|
35
|
+
export interface Running {
|
|
36
|
+
part?: string;
|
|
37
|
+
layer?: string;
|
|
38
|
+
index?: number;
|
|
39
|
+
t?: number;
|
|
40
|
+
/** In words, for a message: "chart (layer 2) in part intro at 1.20 s". */
|
|
41
|
+
what: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* What every module reports into: the problems found while loading, the
|
|
45
|
+
* facts, what goes wrong at run time (for the page's whole life: a layer
|
|
46
|
+
* that throws, work that fails or never settles, what a layer reports),
|
|
47
|
+
* who is running, the work layers wait for, and what loading took.
|
|
48
|
+
*/
|
|
49
|
+
export declare class Ledger {
|
|
50
|
+
readonly problems: Problem[];
|
|
51
|
+
readonly facts: Fact[];
|
|
52
|
+
readonly run: Problem[];
|
|
53
|
+
/** What loading spent its time on, for AK-P002. */
|
|
54
|
+
readonly times: {
|
|
55
|
+
what: string;
|
|
56
|
+
ms: number;
|
|
57
|
+
}[];
|
|
58
|
+
running: Running | undefined;
|
|
59
|
+
/** Loading: the work a layer waits for counts in its time. */
|
|
60
|
+
loading: boolean;
|
|
61
|
+
/** What loading is doing now, in words. */
|
|
62
|
+
doing: string | undefined;
|
|
63
|
+
private readonly waiting;
|
|
64
|
+
/** A run-time problem, once: the same one at every frame is one. */
|
|
65
|
+
ran(p: Problem): void;
|
|
66
|
+
/** Runs `run`, adding what it took to the load's times. */
|
|
67
|
+
timed<T>(what: string, run: () => Promise<T>): Promise<T>;
|
|
68
|
+
/** Work a layer asks to finish before a frame is drawn (StageContext.wait). */
|
|
69
|
+
wait(work: Promise<unknown>): void;
|
|
70
|
+
/**
|
|
71
|
+
* Waits for the work layers asked to wait for, at most `limit` ms in
|
|
72
|
+
* all, and reports what failed under its rule with the layer, part and
|
|
73
|
+
* moment that asked. What is still pending at the limit is not waited
|
|
74
|
+
* for again: it is returned, for AK-P003.
|
|
75
|
+
*/
|
|
76
|
+
settle(limit: number): Promise<string[]>;
|
|
77
|
+
}
|
|
78
|
+
export interface Env {
|
|
79
|
+
readonly source: BuildSource;
|
|
80
|
+
readonly options: LoadOptions;
|
|
81
|
+
readonly embed: Embed | undefined;
|
|
82
|
+
readonly combo: Combo;
|
|
83
|
+
readonly lang: string | undefined;
|
|
84
|
+
readonly defaultLang: string | undefined;
|
|
85
|
+
/** The piece's one output, named by its item's kind (`video`, `slides`), as the runtime that loads it says. */
|
|
86
|
+
readonly output: string;
|
|
87
|
+
/** Seeds the whole output: piece id, output, the combo key with the format. */
|
|
88
|
+
readonly seedBase: string;
|
|
89
|
+
/**
|
|
90
|
+
* A part's seed: piece id, output, the dimensions with the format, the
|
|
91
|
+
* part's key and the frame in the part. The same part draws the same
|
|
92
|
+
* frames in every combo that has it.
|
|
93
|
+
*/
|
|
94
|
+
readonly partSeed: (key: string, frame: number) => string;
|
|
95
|
+
/** The combo's slot picks (and structure): a part may read its own only. */
|
|
96
|
+
readonly picked: ReadonlySet<string>;
|
|
97
|
+
readonly space: MatrixSpace | undefined;
|
|
98
|
+
readonly guards: Guards;
|
|
99
|
+
readonly log: ReadLog;
|
|
100
|
+
readonly ledger: Ledger;
|
|
101
|
+
/** When loading began, on the real clock. */
|
|
102
|
+
readonly start: number;
|
|
103
|
+
/**
|
|
104
|
+
* Media named by a path (relative to `base`, the file the code that
|
|
105
|
+
* named it was written in, else the piece's) or an imported value.
|
|
106
|
+
*/
|
|
107
|
+
readonly mediaOf: (ref: MediaRef, base?: string) => MediaInfo;
|
|
108
|
+
}
|
|
109
|
+
export declare function createEnv(source: BuildSource, options: LoadOptions, embed?: Embed,
|
|
110
|
+
/** The output's name, which seeds it: its item's kind, as the runtime that loads it says. */
|
|
111
|
+
kind?: string): Env;
|
|
112
|
+
//# sourceMappingURL=env.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{problem as x}from"@allyhub/diagnostics";import{comboKey as y,dimsCombo as k,messagePrefix as j,seedKey as g,STRUCTURE as L,validCombo as O}from"@allyhub/piece";import{installConsole as C,resetConsole as S}from"@allyhub/piece/page";import{codeOf as R,LoadFailure as v}from"./errors.js";import{installGuards as E,realNow as m,within as T}from"./guards.js";import{ReadLog as K}from"./reads.js";export const RUN_PROBLEMS=200;export class Ledger{problems=[];facts=[];run=[];times=[];running;loading=!0;doing;waiting=[];ran(e){this.run.length>=RUN_PROBLEMS||this.run.some(i=>i.code===e.code&&i.message===e.message&&i.part===e.part)||this.run.push(e)}async timed(e,i){const a=m();try{return await i()}finally{this.times.push({what:e,ms:m()-a})}}wait(e){const i=this.running;if(!this.loading){this.waiting.push({work:e,who:i});return}const a=this.doing??"a layer",d=m();this.waiting.push({work:e.finally(()=>{this.times.push({what:`the work ${a} waited for (ctx.wait)`,ms:m()-d})}),who:i})}async settle(e){const i=m()+e,a=[];for(;this.waiting.length>0;){const d=this.waiting.splice(0);if((await T(d.map(n=>n.work),i-m())).forEach((n,s)=>{const o=d[s]?.who;if(n===void 0){a.push(`the work ${$(o)} waits for (ctx.wait)`);return}if(n.status==="fulfilled")return;const c=n.reason;this.ran(x(R(n.reason),`${$(o)}: the work it waits for (ctx.wait) failed: ${String(c.message??n.reason)}`,{...o?.part===void 0?{}:{part:o.part},...o?.t===void 0?{}:{t:o.t}}))}),a.length>0)break}return a}}const $=t=>t?.what??"A layer";function P(t,e){const i=t.dims,a=t.matrix?.space;if(O(a,i,t.matrix?.rules??[],e.combo))return;const d=a?`; slots: ${Object.entries(a.slots).map(([r,n])=>`${r}=${n.map(s=>s.name).join("|")}`).join(", ")}${a.declared?`; structures: ${Object.keys(a.structures).join("|")}`:""}; and the matrix's rules`:"";throw new v("bad_combo",`Piece ${t.piece} has no combo ${y(e.combo)} (dimensions: ${Object.entries(i).map(([r,n])=>`${r}=${n.join("|")}`).join(", ")||"none"}${d}).`)}export function createEnv(t,e,i,a="video"){const d=m();P(t,e);const r={...e.combo},n=r.lang,s=t.locales[0],o=i?"video":a,c=`${t.piece}:${o}:${g(r,t.format)}`,u=g(k(t.dims,r),t.format),h=t.matrix?.space,b=new Set(h?[...Object.keys(h.slots),...h.declared?[L]:[]]:[]),w=E();w.setMoment(0,`${c}:load`),i||(C(),S({...e.consoleLimit===void 0?{}:{limit:e.consoleLimit},passThrough:e.purpose==="play"}));const f=new K({lang:n,defaultLang:s,...t.text===void 0?{}:{text:t.text},...t.script===void 0?{}:{script:t.script,prefix:`${j(t.piece)}.`},own:n===void 0?{}:t.messages[n]??{},fallback:s===void 0?{}:t.messages[s]??{},...t.anchors?{anchors:{...n!==void 0&&t.anchors[n]?{own:t.anchors[n]}:{},...s!==void 0&&t.anchors[s]?{fallback:t.anchors[s]}:{}}}:{},media:t.media,file:t.file,...t.data?{data:t.data}:{}});return{source:t,options:e,embed:i,combo:r,lang:n,defaultLang:s,output:o,seedBase:c,partSeed:(l,p)=>`${t.piece}:${o}:${u}:${l}:${String(p)}`,picked:b,space:h,guards:w,log:f,ledger:new Ledger,start:d,mediaOf:(l,p)=>typeof l=="string"?f.asset(l,p):f.mediaAt(l.path)??f.asset(`/${l.path}`)}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a piece cannot load at all (no default export, no parts, a combo it
|
|
3
|
+
* does not have): `load()` rejects with it. Its message starts with its
|
|
4
|
+
* code, `bad_combo: …`, so a host that reads only the text the page threw
|
|
5
|
+
* still has it.
|
|
6
|
+
*/
|
|
7
|
+
export declare class LoadFailure extends Error {
|
|
8
|
+
readonly code: string;
|
|
9
|
+
readonly text: string;
|
|
10
|
+
constructor(code: string, text: string);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The rule an error carries: its `code` when that is a rule's, else a
|
|
14
|
+
* rule named in its message (a scenery's AK-W003 inside another's, an
|
|
15
|
+
* embedded video reaching itself), else AK-R001.
|
|
16
|
+
*/
|
|
17
|
+
export declare function codeOf(e: unknown): string;
|
|
18
|
+
/** An error's message, whatever was thrown. */
|
|
19
|
+
export declare const messageOf: (e: unknown) => string;
|
|
20
|
+
//# sourceMappingURL=errors.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{isRule as o}from"@allyhub/diagnostics";export class LoadFailure extends Error{code;text;constructor(e,r){super(`${e}: ${r}`),this.name="LoadFailure",this.code=e,this.text=r}}export function codeOf(s){const e=s??{};if(typeof e.code=="string"&&o(e.code))return e.code;const r=typeof e.message=="string"?e.message:"",t=/\bAK-[A-Z]\d{3}\b/.exec(r)?.[0];return t!==void 0&&o(t)?t:"AK-R001"}export const messageOf=s=>s instanceof Error?s.message:String(s);
|