@allyhub/sdk 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -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 +4 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
- 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 +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -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 +96 -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 +437 -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 +291 -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 +271 -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/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/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 +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- 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 +65 -197
- 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 +6 -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 +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- 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 +5 -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/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/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/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +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/formula/ast.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/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 +5 -5
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -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/printed.d.ts +19 -0
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- 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/values.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- 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 +101 -11
- 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/enums.d.ts +24 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -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 +25 -4
- 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 +20 -11
- 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 +24 -432
- 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 +8 -14
- 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/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.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 +10 -6
- package/docs/batches.md +5 -5
- package/docs/canvas.md +28 -0
- package/docs/contract.md +2 -2
- package/docs/defaults.md +298 -22
- package/docs/docs.md +80 -66
- 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 +14 -15
- package/docs/sheets.md +46 -28
- package/docs/slides.md +121 -67
- 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/docs/x.md +73 -0
- 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/phone.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/docs/speech.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
What a part says: a recording (`take()`), text to speech (`say()`) or a stretch of another video item (`take(piece)`). Its words time the part, place its layers and sounds, duck the music and make the captions. This file covers those, word references, anchors, shown-and-said text, captions and the words and edits files.
|
|
4
4
|
|
|
5
|
-
```ts file=launch/film
|
|
5
|
+
```ts file=launch/film.ts
|
|
6
6
|
import { part, say, take, video } from "@allyhub/sdk";
|
|
7
7
|
|
|
8
8
|
import vo from "./vo/en.mp3";
|
|
@@ -66,7 +66,7 @@ The values are `ROOM_MATCH` ([defaults.md](defaults.md)). `allyhub inspect timel
|
|
|
66
66
|
|
|
67
67
|
A stretch of another video item of the project, imported, with a clock of its own:
|
|
68
68
|
|
|
69
|
-
```ts file=scene/
|
|
69
|
+
```ts file=scene/scene.ts
|
|
70
70
|
import { part, video } from "@allyhub/sdk";
|
|
71
71
|
|
|
72
72
|
export default video({
|
|
@@ -78,10 +78,10 @@ export default video({
|
|
|
78
78
|
});
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
```ts file=short/
|
|
81
|
+
```ts file=short/short.ts
|
|
82
82
|
import { footage, part, take, video } from "@allyhub/sdk";
|
|
83
83
|
|
|
84
|
-
import scene from "../scene/
|
|
84
|
+
import scene from "../scene/scene.ts";
|
|
85
85
|
|
|
86
86
|
export default video({
|
|
87
87
|
format: "9x16",
|
|
@@ -103,8 +103,8 @@ export default video({
|
|
|
103
103
|
|
|
104
104
|
Text to speech. `allyhub voice` makes the missing files with the cloud voice tool, each in `assets/media/gen/say/<hash>` with its words and its record (each tool's description says what it costs). A `say` without its file is AK-T002; until it has one, the part lasts about as long as the line takes to say (`SPEECH_RATE_DEFAULTS`: 0.38 s a word, 0.22 s a Chinese, Japanese or Korean character; at least 1 s), and its anchors are placed in proportion along the line.
|
|
105
105
|
|
|
106
|
-
- `voice`: the voice tool's voice id; default the tool's own.
|
|
107
|
-
- `tool`: the voice tool; default `"
|
|
106
|
+
- `voice`: the voice tool's voice id (`allyhub ai-media find-voices` finds them); default the tool's own.
|
|
107
|
+
- `tool`: the voice tool; default `"speak"` (`"clone-voice"` speaks in the voice of a recording you give in `params`; `allyhub help ai-media <tool>` lists its input).
|
|
108
108
|
- `params`: more input for the tool, plain JSON: fields its schema has besides the text and voice (`text` and `voiceId` throw).
|
|
109
109
|
- `speed`: 0.5 to 2, default 1: plays the file faster or slower, pitch kept, as `.speed()` does. Not sent to the tool, so the same file.
|
|
110
110
|
|
|
@@ -126,7 +126,7 @@ A reference may be a phrase; case and punctuation are ignored. With `say` or `sa
|
|
|
126
126
|
|
|
127
127
|
## Anchors
|
|
128
128
|
|
|
129
|
-
An anchor is a name written in the line a part says, in each language's script (
|
|
129
|
+
An anchor is a name written in the line a part says, in each language's script ([project.md](project.md#scripts)). The code refers to the name, so a reworded or translated line keeps what hangs on it.
|
|
130
130
|
|
|
131
131
|
```yaml
|
|
132
132
|
parts:
|
|
@@ -264,7 +264,7 @@ Subtitle files (`allyhub render --type srt,vtt`) come from each voiced part's li
|
|
|
264
264
|
|
|
265
265
|
## Edits files
|
|
266
266
|
|
|
267
|
-
A take's cut list, a JSON file named by `.edits("./edits/<name>.json")`. It removes exactly what it lists, without touching the recording; `{ "version": 1 }` removes nothing. Which words are fillers, retakes or false starts is the agent's to decide.
|
|
267
|
+
A take's cut list, a JSON file named by `.edits("./edits/<name>.json")`. It removes exactly what it lists, without touching the recording; `{ "version": 1 }` removes nothing. Which words are fillers, retakes or false starts is the agent's to decide. A person cuts words and keeps them again in the video editor's script, which writes this file's `remove` alone, and only where the code names the file: a take without `.edits()` is read only there.
|
|
268
268
|
|
|
269
269
|
```json
|
|
270
270
|
{
|
package/docs/video.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# Videos
|
|
2
2
|
|
|
3
|
-
A video is the default export of
|
|
3
|
+
A video is the default export of a module listed in `allyhub.yaml` as `kind: video` ([project.md](project.md#items)): `video({ …, parts })`, its parts in order, each with its speech (or a length) and its layers. Here: `video()`, formats, `part()`, layers and their stacking, transitions, the look, the camera filming the picture, post.
|
|
4
4
|
|
|
5
|
-
```ts file=launch/film
|
|
5
|
+
```ts file=launch/film.ts
|
|
6
6
|
import { part, say, video } from "@allyhub/sdk";
|
|
7
7
|
|
|
8
8
|
export default video({
|
|
9
9
|
format: "16x9",
|
|
10
|
+
script: "./film.{locale}.yaml",
|
|
10
11
|
parts: ({ s }) => [
|
|
11
12
|
part({ key: "intro", dur: 3 }),
|
|
12
13
|
part({ key: "pitch", speech: say(s("launch.film.pitch.say")) }),
|
|
@@ -22,7 +23,7 @@ Every piece, a video or a deck, has:
|
|
|
22
23
|
|
|
23
24
|
| Field | Type | Default | What it is |
|
|
24
25
|
| --- | --- | --- | --- |
|
|
25
|
-
| `id` | string | the item's
|
|
26
|
+
| `id` | string | the item's id: its file without its extension, from the project's root | A stable identity ([project.md](project.md)) |
|
|
26
27
|
| `title` | string, or by language | the script's `title` (`<prefix>.title`), else the file name | The name people see |
|
|
27
28
|
| `format` | `FormatEntry` | `allyhub.config.ts` `defaults.format`, else `"16x9"` | What it is rendered as: one format ([Formats](#formats)) |
|
|
28
29
|
| `matrix` | `Matrix` | the project's languages | Dimensions and slots: which combos are made ([batches.md](batches.md)) |
|
|
@@ -33,6 +34,7 @@ A video adds:
|
|
|
33
34
|
| Field | Type | Default | What it is |
|
|
34
35
|
| --- | --- | --- | --- |
|
|
35
36
|
| `parts` | `(ctx) => PartSpec[]`, or a promise | required | The parts, in order |
|
|
37
|
+
| `script` | string | none | Its script, from the module's folder, `{locale}` once in its name for each language (`./film.{locale}.yaml` is `film.en.yaml`, `film.zh-cn.yaml`); without it, it has no words of its own ([project.md](project.md#scripts)) |
|
|
36
38
|
| `covers` | `(ctx) => PartSpec[]` | none | Parts without speech, each drawn at its `still` for the cover image (`allyhub render --type cover`); their layers mount on elements of their own |
|
|
37
39
|
| `fps` | number or string | 30 | A whole number from 1 to 120, or an NTSC rate: `23.976`, `29.97`, `47.952`, `59.94`, `119.88`, or `"24000/1001"` … |
|
|
38
40
|
| `transparent` | boolean | false | No background: mov, webm and png keep the alpha; mp4 and gif show black where nothing is drawn |
|
|
@@ -40,7 +42,7 @@ A video adds:
|
|
|
40
42
|
| `defaults` | `{ part?: { dur?, lead?, tail? } }` | the project's, over `PART_DEFAULTS` | This video's part defaults |
|
|
41
43
|
| `music` | media, or `MusicOptions` | none | [sound.md](sound.md) |
|
|
42
44
|
| `mix` | `MixOptions` | `MIX_DEFAULTS` | The stems' loudness, the music's ducking and fades ([sound.md](sound.md)) |
|
|
43
|
-
| `master` | LUFS, `{ lufs, truePeak }`, or `false` |
|
|
45
|
+
| `master` | LUFS, `{ lufs, truePeak }`, or `false` | −14 LUFS; −3 dBTP | What the sound is mastered to ([sound.md](sound.md)) |
|
|
44
46
|
| `mic` | a setup's name, its options, or `false` | `"studio"` | How the speech was recorded ([sound.md](sound.md)) |
|
|
45
47
|
| `capture` | `CaptureOptions` | none | A camera filming the picture ([The camera](#the-camera-filming-the-picture)) |
|
|
46
48
|
| `post` | `{ filter?, lut? }` | none | An ffmpeg filter chain and a `.cube` LUT over the frames ([Post](#post)) |
|
|
@@ -67,11 +69,12 @@ A video adds:
|
|
|
67
69
|
|
|
68
70
|
A piece has one format. Another format is another item that imports what it shares:
|
|
69
71
|
|
|
70
|
-
```ts file=launch/
|
|
72
|
+
```ts file=launch/vertical/film.ts
|
|
71
73
|
import { video } from "@allyhub/sdk";
|
|
72
|
-
import film from "../film
|
|
74
|
+
import film from "../film.ts";
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
// Its id is launch/vertical/film.
|
|
77
|
+
export default video({ ...film, format: "9x16" });
|
|
75
78
|
```
|
|
76
79
|
|
|
77
80
|
A path written as a string (a take's, footage's, a sound's, `music`, `post.lut`) is relative to the module that wrote it, also once spread into another piece; a field the new piece writes again is relative to the new piece.
|
|
@@ -81,21 +84,20 @@ A path written as a string (a take's, footage's, a sound's, `music`, `post.lut`)
|
|
|
81
84
|
| Format | Pixels | Covered edges |
|
|
82
85
|
| --- | --- | --- |
|
|
83
86
|
| `16x9`, `9x16`, `1x1`, `4x5` | 1920 × 1080, 1080 × 1920, 1080 × 1080, 1080 × 1350 | the preset's (`PRESETS`) |
|
|
84
|
-
| a platform profile | the platform's | the platform's interface |
|
|
85
87
|
| `WIDTHxHEIGHT` | each side 64 to 8192, even for a video | none |
|
|
86
88
|
| `a4`, `letter` (slides only) | at 150 dpi | none |
|
|
87
89
|
|
|
88
|
-
|
|
90
|
+
Every preset's numbers: [defaults.md](defaults.md). Any other format is AK-G001.
|
|
89
91
|
|
|
90
|
-
A format can change its
|
|
92
|
+
A format can change its covered edges with a `FormatSpec`; its name stays the format's own (combos and file names use it):
|
|
91
93
|
|
|
92
94
|
```ts fragment
|
|
93
|
-
format: { format: "
|
|
95
|
+
format: { format: "9x16", safe: { bottom: 520 } }
|
|
94
96
|
```
|
|
95
97
|
|
|
96
|
-
`safe`
|
|
98
|
+
`safe` is whole pixels per edge; edges not given keep the format's.
|
|
97
99
|
|
|
98
|
-
A layer reads `ctx.format` (the name) and `ctx.dims`: `{ width, height, orient, safe
|
|
100
|
+
A layer reads `ctx.format` (the name) and `ctx.dims`: `{ width, height, orient, safe }`, `orient` `"landscape"`, `"portrait"` or `"square"`, `safe` the covered edges in pixels. Lay out by `ctx.dims` or `layout(ctx)` ([layers.md](layers.md#the-content-box)), not by the name: a custom `WxH` or a changed `safe` has none of its own.
|
|
99
101
|
|
|
100
102
|
## Parts
|
|
101
103
|
|
|
@@ -181,6 +183,7 @@ Parts join with cuts. A part comes in with a transition only when it says so: `t
|
|
|
181
183
|
Every type takes `dur` (over 0, up to 10 s; default 0.4), `ease` (`"linear"`, `"in"`, `"out"`, `"in-out"`; default `"linear"` for fade, dip and custom, `"in-out"` for the others) and `split` (0 to 1, the share of the window before the join; default 0.5). Defaults: `TRANSITION_DEFAULTS`.
|
|
182
184
|
|
|
183
185
|
- Parts keep their lengths and places: the window lies across the join. Outside its own time a part's graphics hold its first or last frame and its footage runs on in its file.
|
|
186
|
+
- The incoming part's clock starts at the join, inside the window: an entrance timed from 0 plays during the transition. A layer reads the window as `ctx.enter` (and the next one as `ctx.exit`); the starter components' entrances wait for its end unless told not to.
|
|
184
187
|
- The whole picture transitions, footage and graphics together. In a `transparent` video a fade adds the two pictures, weighted.
|
|
185
188
|
- Sound is not changed: place a sound on the join with `sounds`.
|
|
186
189
|
- The first part's transition is ignored, and so is a deck's.
|
package/docs/websites.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Websites
|
|
2
2
|
|
|
3
|
-
A website is any web project in
|
|
3
|
+
A website is any web project in a folder, made with the tools the agent chooses (Astro, Vite, Next.js, VitePress, plain HTML). Its file, a JSON file in that folder listed in `allyhub.yaml` as `kind: website` ([project.md](project.md#items)), says how it is served while it is made, how it is built and where the built site is, as `vercel.json`'s `devCommand`, `buildCommand` and `outputDirectory` do. Its JSON Schema is `https://allyhub.com/schemas/website.schema.json`.
|
|
4
4
|
|
|
5
5
|
```json
|
|
6
6
|
{
|
|
@@ -36,12 +36,12 @@ A page shows a project's video as any page shows a video: from its files. `allyh
|
|
|
36
36
|
|
|
37
37
|
## Checking and building
|
|
38
38
|
|
|
39
|
-
`allyhub check` reports AK-M013 for a
|
|
39
|
+
`allyhub check` reports AK-M013 for a website's file that is not JSON or does not match the format. To see a page as Studio shows it, run `dev` with `PORT` and `HOST=127.0.0.1` set, then `allyhub frames web http://127.0.0.1:<port>/<path> --wait <ms>`.
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
## Hosting on AllyHub
|
|
43
43
|
|
|
44
|
-
`allyhub site deploy` runs `build` here and uploads `output` as a private version of the website's site, sending only the files AllyHub lacks. The first deploy writes `site` into
|
|
44
|
+
`allyhub site deploy` runs `build` here and uploads `output` as a private version of the website's site, sending only the files AllyHub lacks. The first deploy writes `site` into the website's file, so the folder publishes to the same site from any computer. `allyhub site status` lists versions.
|
|
45
45
|
|
|
46
46
|
Going public is the person's to say. `--live` and `allyhub site live <version>` move the site only if they have let the agent update it; otherwise they answer `live: false` and `confirm`, a page for the person to say yes on: give it to them, or ask them to press Publish in Studio (Update once the site is live; for an earlier version, its row in the website's settings). A site's first publish is always confirmed in their browser. Taking a site offline is theirs alone, in Studio.
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ A hosted site is static files, `index.html` at the root of `output`:
|
|
|
49
49
|
|
|
50
50
|
- `/about` serves `about.html`, `/pricing/` serves `pricing/index.html`, and each page's other addresses redirect to that one. The nearest `404.html` answers a page not found, with status 404: nothing to configure.
|
|
51
51
|
- `_redirects` and `_headers` at the root of `output` work as on Netlify: a real file wins over a rule that does not end in `!`, the default status is 301, `/* /index.html 200` makes a single-page app, and a 200 rule stays inside the site. A site cannot set cookies, or the headers that are the platform's.
|
|
52
|
-
- Never published: dotfiles other than `.well-known/`, `node_modules`,
|
|
52
|
+
- Never published: dotfiles other than `.well-known/`, `node_modules`, the website's file, `package.json` and lockfiles. A link in `output` is refused.
|
|
53
53
|
- A file is at most 1 GiB, a version 20,000 files and 5 GiB. `Range` works, so video plays from a page, Safari's included.
|
|
54
54
|
- Every file is revalidated by its digest. Files a framework names by their bytes are kept by browsers only if `_headers` says so: `/_astro/*` then ` Cache-Control: public, max-age=31536000, immutable` (or `/assets/*` for Vite, `/_next/static/*` for Next.js).
|
|
55
55
|
- A site stays out of search engines until the person allows it.
|
package/docs/x.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# X posts and articles
|
|
2
|
+
|
|
3
|
+
Two kinds in X's own model, each a file listed in `allyhub.yaml` ([project.md](project.md#items)): an `x-post` (a post, a thread or a long post) and an `x-article`.
|
|
4
|
+
|
|
5
|
+
## An X post
|
|
6
|
+
|
|
7
|
+
An `x-post` is a YAML file (`- { kind: x-post, file: launch/launch.yaml }`). Its fields are POST /2/tweets's own:
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
reply_settings: following # who may reply to each post: following, mentionedUsers, subscribers or verified
|
|
11
|
+
posts:
|
|
12
|
+
- text: |
|
|
13
|
+
We shipped dark mode.
|
|
14
|
+
media:
|
|
15
|
+
- file: ./shots.ts#hero # an image's board, a video item, or a picture or video file, from this file's folder
|
|
16
|
+
alt: The dashboard in dark mode.
|
|
17
|
+
- text: Which do you use?
|
|
18
|
+
poll: { options: [Light, Dark], duration_minutes: 1440 }
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- **A thread** is its posts in order; each after the first is published as a reply to the one before. A post alone is a thread of one. The first post may also `reply` (`in_reply_to_tweet_id`) or quote (`quote_tweet_id`) a post already on X; quoting through the API needs an Enterprise plan. A post may say `made_with_ai` and `paid_partnership`.
|
|
22
|
+
- **Length is X's weighted count**, not the characters shown: Latin letters, digits and common punctuation 1; Chinese, Japanese, Korean and most other scripts 2; every emoji 2, whatever it is made of; every link 23, however long. At most 280 a post.
|
|
23
|
+
- **A long post** is a post over 280, which an X Premium account publishes up to 25,000. `allyhub.config.ts`'s `x: { premium: true }` says the account is Premium; it also takes videos up to 4 hours and 16 GB. X's timeline folds a long post at "Show more": at most 280 characters, back to a word's end (measured on x.com; `allyhub frames` draws the fold).
|
|
24
|
+
- **Plain text.** The API publishes no bold or italics. A link is its address.
|
|
25
|
+
- **A post's text as a block (`|`) or in quotes** when it holds ` #` (YAML reads the rest of the line as a comment), starts with `@`, `#` or a quote, or holds `: `. The line break a block ends in is not posted.
|
|
26
|
+
- **Media**: up to 4 pictures (JPEG, PNG or WebP, 5 MB each), or 1 GIF (15 MB), or 1 video (MP4 or MOV), never mixed. Alt text up to 1,000 characters. X publishes no picture size, crop or safe area. A video is checked against the widest of what X publishes: 0.5 s to 20 minutes (4 hours with Premium), 8 GB (16 GB), sides 32 px to 1920 on the long side and 1200 on the short, 1:3 to 3:1. X's ways of posting take less: its web upload 1:2.39 to 2.39:1 at 40 frames a second and 25 Mbps, and without Premium 140 seconds and 512 MB; its API's media guide 1280×1024 and 60 frames a second. A 1280×720 or 720×1280 H.264 MP4 at 30 frames a second under 140 seconds suits every way.
|
|
27
|
+
- **Another item's made file**: `./shots.ts#hero` is the image `shots`'s board `hero`, made first when the post is rendered; a video item's file is its first version. Its bytes are checked when it is made.
|
|
28
|
+
|
|
29
|
+
## An X article
|
|
30
|
+
|
|
31
|
+
An `x-article` is a Markdown file (`- { kind: x-article, file: launch/story.md }`), its title and cover in its front matter, its body in X's blocks alone:
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
---
|
|
35
|
+
title: How we built dark mode
|
|
36
|
+
cover: ./shots.ts#cover # a picture file or an image's board; or { file, alt }
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
Paragraphs with **bold**, _italic_, ~~strikethrough~~ and [links](https://example.com).
|
|
40
|
+
|
|
41
|
+
# A heading (X has two: # a Heading, ## a Subheading)
|
|
42
|
+
|
|
43
|
+
- a list, one level deep
|
|
44
|
+
|
|
45
|
+
1. or numbered
|
|
46
|
+
|
|
47
|
+
> A quote.
|
|
48
|
+
|
|
49
|
+
<br />
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
https://x.com/allyhub/status/1234567890
|
|
54
|
+
|
|
55
|
+
https://example.com/launch
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
$$
|
|
60
|
+
e^{i\pi} + 1 = 0
|
|
61
|
+
$$
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
- **Each element is one of X's blocks**: a paragraph, a Heading (`#`) and a Subheading (`##`), lists a level deep, a quote, a picture, GIF or video on a line of its own (its alt text and its caption), a post's address on a line of its own (an embedded post), any other address on a line of its own (a link's card, as X's link preview), `---` (a divider), `$$ … $$` (an equation), a code block or a table (X's Markdown block: 10,000 together, weighted as X counts), and `<br />` alone on a line (an empty line, which X keeps). A third level of heading, a list inside a list, inline code, a picture or an equation inside a line and other HTML are not: each is a problem at its line.
|
|
65
|
+
- **A code block or a picture written inside a list item** stands after the list, and the list starts again after it, as X's editor places it.
|
|
66
|
+
- **Media** are pictures (JPEG, PNG or WebP, 5 MB each), GIFs (15 MB) and videos (MP4 or MOV); the cover is a picture at 5:2. An image's board (`./shots.ts#chart`) or a video item (`./teaser.ts`) may be one, made first when the article is rendered. X publishes no most for a title or a body.
|
|
67
|
+
- **X Premium** writes articles. Through the API an article is drafted and published, and nothing else: it cannot be changed or deleted once published.
|
|
68
|
+
|
|
69
|
+
## Check, measure and render
|
|
70
|
+
|
|
71
|
+
`allyhub check` reports what X refuses under `allyhub.x/…`, at its line. `allyhub inspect <post>` gives each post's weighted length beside 280 and 25,000, its links, mentions, hashtags and cashtags, and its media's bytes; `allyhub inspect <article>` its words, its weighted length, its headings, its media, its embedded posts and links' cards, and its code's weight against 10,000. `allyhub frames` draws a post or an article as X shows it once published (a thread as the timeline does, an article in X's column), in Inter in place of X's own face; an embedded post and a link's card are drawn by their address, as their content is X's to fetch.
|
|
72
|
+
|
|
73
|
+
`allyhub render <post>` writes POST /2/tweets's request for each post (`posts.json`, the media beside it), or each post's text (`--type txt`). `allyhub render <article>` writes POST /2/articles/draft's request (`article.json`, its media beside it with `media.json`). Publishing to X is not built.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "What an agent writes videos, decks and workbooks with:
|
|
3
|
+
"version": "0.10.0",
|
|
4
|
+
"description": "What an agent writes videos, decks and workbooks with: each built-in kind's authoring API, re-exported from its extension. The root, /dom, /media and /scenery are the video's: video(), parts with their speech, footage and sounds, defineComponent() and custom() layers, the layout, motion and input helpers, the scenery() layer's options; /slides is the deck's, python-pptx's API; /image is the image's, its boards each its own size; /sheets is the sheet's, openpyxl's API. Nothing a host needs.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://allyhub.com",
|
|
7
7
|
"bugs": {
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"./sheets": {
|
|
37
37
|
"types": "./dist/sheets.d.ts",
|
|
38
38
|
"default": "./dist/sheets.js"
|
|
39
|
+
},
|
|
40
|
+
"./image": {
|
|
41
|
+
"types": "./dist/image.d.ts",
|
|
42
|
+
"default": "./dist/image.js"
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
"sideEffects": false,
|
|
@@ -59,6 +63,7 @@
|
|
|
59
63
|
"fflate": "^0.8.3",
|
|
60
64
|
"jsonc-parser": "^3.3.1",
|
|
61
65
|
"numfmt": "4.1.1",
|
|
66
|
+
"pngjs": "^7.0.0",
|
|
62
67
|
"proper-lockfile": "4.1.2",
|
|
63
68
|
"saxes": "^6.0.0",
|
|
64
69
|
"tar": "^7.5.2",
|
package/dist/define.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{LAYER_BRAND as d,isGraphicLayer as h}from"@allyhub/video-core";export const LAYER_OPTIONS=["at","until","dur","z"];export function timeShape(e){const s=t=>{if(t.type==="time")return!0;if(t.type==="list")return s(t.of);if(t.type==="object")return timeShape(t.fields)},n={};for(const[t,r]of Object.entries(e)){const o=r?s(r):void 0;o!==void 0&&(n[t]=o)}return Object.keys(n).length>0?n:void 0}export function splitLayer(e){const{at:s,until:n,dur:t,z:r,...o}=e;return[{...s===void 0?{}:{at:s},...n===void 0?{}:{until:n},...t===void 0?{}:{dur:t},...r===void 0?{}:{z:r}},o]}export function defineComponent(e){const s=[...Object.keys(e.props??{}),...Object.keys(e.defaults??{}),...Object.values(e.examples??{}).flatMap(i=>Object.keys(i))],n=[...new Set(s.filter(i=>LAYER_OPTIONS.includes(i)))];if(n.length>0)throw new Error(`${e.name}: ${n.join(", ")} is a layer option, not a prop name`);const t=timeShape(e.props??{}),r="layers"in e?b(e):e,o=i=>{const[p,c]=splitLayer(i??{}),u={...e.defaults,...c};return{[d]:"graphic",...p,component:e.name,props:u,...t?{times:t}:{},mount:(m,l,y)=>{r.mount(m,l,y)},render:(m,l,y,f)=>{r.render(m,l,y,f)},unmount:(m,l,y)=>{r.unmount?.(m,l,y)}}},a={name:e.name,label:e.label??e.name,...e.summary===void 0?{}:{summary:e.summary},props:Object.fromEntries(Object.entries(e.props??{}).filter(i=>i[1]!==void 0)),examples:e.examples??{},hidden:e.hidden??!1};return Object.assign(o,{componentName:e.name,info:a,..."layers"in e?{layersIn:(i,p)=>e.layers({...e.defaults,...i},p)}:{}})}function b(e){const s=new WeakMap;return{mount(n,t,r){const o=e.layers(t,{width:r.dims.width,height:r.dims.height}),a=[];for(const[i,p]of o.entries()){if(!h(p))throw new Error(`${e.name}'s layers: item ${String(i+1)} is not a graphic layer (custom() or a component).`);const c=p,u=document.createElement("div");u.style.position="absolute",u.style.inset="0px",n.append(u),c.mount(u,c.props,r),a.push({layer:c,el:u})}s.set(n,a)},render(n,t,r,o){for(const a of s.get(n)??[])a.layer.render(a.el,t,a.layer.props,o)},unmount(n,t,r){for(const o of s.get(n)??[])o.layer.unmount?.(o.el,o.layer.props,r);s.delete(n)}}}export function custom(e){const[s]=splitLayer(e);return{[d]:"graphic",...s,component:"custom",props:{},mount:(n,t,r)=>{e.mount?.(n,r)},render:(n,t,r,o)=>{e.render(n,t,o)},unmount:(n,t,r)=>{e.unmount?.(n,r)}}}
|
package/dist/free.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export{clamp,ease,fitText,lerp,progress,rand,stagger,tween}from"./anim.js";export{noise2D,noise3D,noise4D}from"./noise.js";export{drag,fittsTime,INPUT_DEFAULTS,pointer,reach,scroll,tap,typing}from"./input.js";export{aimed}from"@allyhub/scenery";export{drawOn,interpolatePath,normalizePath,pathLength,pointAtLength,tangentAtLength,trimPath}from"./paths.js";export{FIT_LINES_PRECISION,fitLines,textLines}from"./dom.js";export{custom,defineComponent,LAYER_OPTIONS}from"./define.js";export{say}from"./parts.js";export{defineConfig,definePiece,paged}from"./piece.js";export{asset,boolean,color,list,number,object,text,time}from"./props.js";export{countText,splitText}from"./text.js";export{markRuns,readMarks,withoutMarks}from"@allyhub/video-core";
|
package/dist/input.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{aimAt as q,aimShape as E,bandNoise as I,unit3 as v}from"@allyhub/scenery";export const INPUT_DEFAULTS={reach:{overshoot:.06,peak:.38,vary:.5,fitts:{a:.2,b:.15},scatter:.1,jitter:.02,bow:.06,tremor:{px:.3,frequency:9},seed:1},size:40,dwell:.12,hold:.1,drag:{settle:.08,release:.06,fitts:{a:.25,b:.2},tremor:{px:.8,frequency:8}},tap:{slide:1.2,grow:.03},wheel:{notch:100,animate:.15,interval:.05,pause:.25,burst:4},flick:{contact:.12,decay:.4995,band:800,spring:.12},typing:{cps:9,spread:.35,word:1.5,mark:2,think:{chance:.08,seconds:.35},notice:.3,backspace:.07,seed:1}};function z(t,o=INPUT_DEFAULTS.reach){return{...o,...t,fitts:{...o.fitts,...t?.fitts},tremor:{...o.tremor,...t?.tremor}}}const w=(t,o,r)=>2*v(t,o,r)-1,M=(t,o,r)=>Math.sqrt(-2*Math.log(v(t,o,r)))*Math.cos(2*Math.PI*v(t^625341585,o,r));export function reachProblem(t,o){const r=[["scatter",t.scatter],["jitter",t.jitter],["bow",t.bow],["vary",t.vary],["fitts.a",t.fitts?.a],["fitts.b",t.fitts?.b],["tremor.px",t.tremor?.px],["tremor.frequency",t.tremor?.frequency]];for(const[n,c]of r)if(c!==void 0&&!(Number.isFinite(c)&&c>=0))return`${o}'s ${n} is a number from 0, not ${String(c)}`;if(t.overshoot!==void 0&&!(t.overshoot>=-.5&&t.overshoot<=1))return`${o}'s overshoot is a share from -0.5 to 1, not ${String(t.overshoot)}`;if(t.peak!==void 0&&!(t.peak>=.15&&t.peak<=.6))return`${o}'s peak is a share from 0.15 to 0.6, not ${String(t.peak)}`;if(t.seed!==void 0&&!Number.isInteger(t.seed))return`${o}'s seed is a whole number, not ${String(t.seed)}`}export function fittsTime(t,o,r={}){const n={...INPUT_DEFAULTS.reach.fitts,...r};return n.a+n.b*Math.log2(1+t/Math.max(1,o))}export function reach(t,o,r,n={}){const c=reachProblem(n,"reach");if(c)throw new Error(c);const a=z(n),f=r.index??0,h=r.size??INPUT_DEFAULTS.size,y=[o[0]+a.scatter*h*M(a.seed,f,11),o[1]+a.scatter*h*M(a.seed,f,12)],m=y[0]-t[0],s=y[1]-t[1],u=Math.hypot(m,s),d=Math.max(.05,(r.duration??fittsTime(u,h,a.fitts))*(1+.15*a.vary*w(a.seed,f,13))),e=r.end+a.jitter*M(a.seed,f,14),i=e-d,x=E({overshoot:a.overshoot,peak:a.peak,vary:a.vary,seed:a.seed,index:f}),l=a.bow*w(a.seed,f,15);return{start:i,end:e,from:t,to:y,bow:l,progress:b=>q(x,b),at(b){if(b<=i)return t;if(b>=e)return y;const p=(b-i)/d,k=q(x,p),g=l*Math.sin(Math.PI*Math.min(1,p));return[t[0]+m*k-s*g,t[1]+s*k+m*g]}}}function S(t,o,r){if(r.px<=0)return()=>[0,0];const n={center:r.frequency,spread:r.frequency/5},c=I(t+o*31,101,n),a=I(t+o*31,102,n);return f=>[r.px*c(f),r.px*a(f)]}export function pointer(t){const o=reachProblem(t,"pointer");if(o)throw new Error(o);const r=z(t),n=t.dwell??INPUT_DEFAULTS.dwell,c=t.hold??INPUT_DEFAULTS.hold,a=[],f=[];let h=t.from;for(const[m,s]of t.steps.entries()){const u=s.press?(s.dwell??n)*(1+.4*r.vary*w(r.seed,m,21)):0,d=reach(h,s.to,{end:s.at-u,...s.duration===void 0?{}:{duration:s.duration},size:s.size??INPUT_DEFAULTS.size,index:m},t);if(a.push(d),s.press){const e=(s.hold??c)*(1+.4*r.vary*w(r.seed,m,22));f.push({down:s.at,up:s.at+e,at:d.to})}h=d.to}const y=S(r.seed,0,r.tremor);return{moves:a,presses:f,at(m){let s=t.from;for(const e of a)m>=e.start&&(s=e.at(m));const[u,d]=y(m);return{x:s[0]+u,y:s[1]+d,down:f.some(e=>m>=e.down&&m<e.up)}}}}export function tap(t){const o=t.seed??INPUT_DEFAULTS.reach.seed,r=t.index??0,n=t.size??INPUT_DEFAULTS.size,c=t.scatter??INPUT_DEFAULTS.reach.scatter,a=t.slide??INPUT_DEFAULTS.tap.slide,f=t.grow??INPUT_DEFAULTS.tap.grow,h=(t.hold??INPUT_DEFAULTS.hold)*(1+.3*w(o,r,31)),y=t.to[0]+c*n*M(o,r,32),m=t.to[1]+c*n*M(o,r,33),s=2*Math.PI*v(o,r,34),u=t.at,d=u+h;return{down:u,up:d,at(e){const i=Math.min(1,Math.max(0,(e-u)/h)),x=a*(i*i*(3-2*i)),l=e>=u&&e<d,b=l?Math.min(1,(e-u)/f,(d-e)/f):0;return{x:y+x*Math.cos(s),y:m+x*Math.sin(s),down:l,contact:b}}}}export function drag(t){const o=reachProblem(t,"drag");if(o)throw new Error(o);const r=INPUT_DEFAULTS.drag,n=z(t,{...INPUT_DEFAULTS.reach,fitts:r.fitts,tremor:r.tremor}),c=t.index??0,a=(t.settle??r.settle)*(1+.4*n.vary*w(n.seed,c,41)),f=(t.release??r.release)*(1+.4*n.vary*w(n.seed,c,42)),h=t.size??INPUT_DEFAULTS.size,y=Math.hypot(t.to[0]-t.from[0],t.to[1]-t.from[1]),m=t.duration??fittsTime(y,h,n.fitts),s=reach(t.from,t.to,{end:t.at+a+m,duration:m,size:h,index:c},{...n,jitter:0}),u=S(n.seed,c+1e3,n.tremor),d=s.end+f;return{down:t.at,start:s.start,end:s.end,up:d,to:s.to,at(e){const i=s.at(e),x=e>=t.at&&e<d,l=x?Math.min(1,(e-t.at)/.05,(d-e)/.05):0,[b,p]=u(e);return{x:i[0]+l*b,y:i[1]+l*p,down:x}}}}export function scroll(t){const o=t.seed??INPUT_DEFAULTS.reach.seed,r=t.index??0,n=t.by<0?-1:1;if((t.kind??"flick")==="wheel"){const e={...INPUT_DEFAULTS.wheel,...t.wheel},i=Math.max(1,Math.round(Math.abs(t.by)/e.notch)),x=t.by/i,l=[];let b=t.at;for(let k=0;k<i;k++){l.push(b);const g=(k+1)%Math.max(1,e.burst)===0?e.pause:e.interval;b+=g*(1+.4*w(o,r*997+k,51))}const p=k=>1-(1-k)**3;return{start:t.at,end:(l.at(-1)??t.at)+e.animate,at(k){let g=0;for(const $ of l)k>$&&(g+=x*p(Math.min(1,(k-$)/e.animate)));return g}}}const c={...INPUT_DEFAULTS.flick,...t.flick},a=c.contact*(1+.3*w(o,r,52)),f=Math.abs(t.by)/(a/2+c.decay),h=f*a/2,y=t.at+a,m=e=>{if(e<=t.at)return 0;if(e<=y){const i=(e-t.at)/a;return h*i*i}return h+f*c.decay*(1-Math.exp(-(e-y)/c.decay))},s=t.limit===void 0?1/0:Math.abs(t.limit);let u=1/0;Math.abs(t.by)>s&&(s<=h?u=t.at+a*Math.sqrt(s/h):u=y-c.decay*Math.log(1-(s-h)/(f*c.decay)));const d=e=>(1-1/(e*.55/c.band+1))*c.band;return{start:t.at,end:y+c.decay*5,at(e){const i=m(e);if(i<=s)return n*i;const x=Math.max(0,e-u),l=(1+x/c.spring)*Math.exp(-x/c.spring);return n*(s+d(i-s)*l)}}}const j=t=>t!==void 0&&/[\p{L}\p{N}]/u.test(t);export function typing(t,o){const r=INPUT_DEFAULTS.typing,n={...r,...o,think:{...r.think,...o.think}};if(!(n.cps>0))throw new Error(`typing's cps is above 0, not ${String(n.cps)}`);const c=Array.from(t),a=[],f=[];let h=n.at,y=0;const m=(d,e)=>{const i=1/n.cps,x=n.spread,l=M(n.seed,y,61);let b=i*Math.exp(x*l-x*x/2);return!j(d)&&j(e)&&(b*=n.word,v(n.seed,y,62)<n.think.chance&&(b+=n.think.seconds)),d!==void 0&&/[.,;:!?。,、!?]/u.test(d)&&(b*=n.mark),b},s=(d,e,i)=>{a.length>0&&(h+=i??m(d,e)),a.push({t:h,key:e}),y++};let u;for(const[d,e]of c.entries()){for(const i of n.mistakes??[]){if(i.at!==d)continue;const x=Array.from(i.typed);for(const l of x)s(u,l),u=l;h+=n.notice*(1+.3*w(n.seed,y,63));for(let l=0;l<x.length;l++)s(u,"Backspace",l===0?0:n.backspace);u=c[d-1]}s(u,e),f[d]=h,u=e}return{keys:a,times:f,end:h,text(d){let e=[];for(const i of a){if(i.t>d)break;i.key==="Backspace"?e=e.slice(0,-1):e.push(i.key)}return e.join("")}}}
|
package/dist/module.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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 a,partFor as f,takeFor as i}from"./parts.js";import{videoFor as n}from"./piece.js";import{writtenIn as p}from"./written.js";export const BOUND=["video","part","take","footage"];export function sdkFor(t){const o=p(t),r={video:n(o),part:f(o),take:i(o),footage:a(o)};return{...e,...r}}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"quote">;
|
|
4
|
-
exact: z.ZodString;
|
|
5
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
6
|
-
suffix: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
8
|
-
type: z.ZodLiteral<"cells">;
|
|
9
|
-
range: z.ZodString;
|
|
10
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
-
type: z.ZodLiteral<"item">;
|
|
12
|
-
}, z.core.$strict>], "type">;
|
|
13
|
-
export type Target = z.infer<typeof TargetSchema>;
|
|
14
|
-
export declare const AuthorSchema: z.ZodObject<{
|
|
15
|
-
kind: z.ZodEnum<{
|
|
16
|
-
person: "person";
|
|
17
|
-
agent: "agent";
|
|
18
|
-
}>;
|
|
19
|
-
name: z.ZodString;
|
|
20
|
-
}, z.core.$strict>;
|
|
21
|
-
export declare const CommentSchema: z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
author: z.ZodObject<{
|
|
24
|
-
kind: z.ZodEnum<{
|
|
25
|
-
person: "person";
|
|
26
|
-
agent: "agent";
|
|
27
|
-
}>;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
}, z.core.$strict>;
|
|
30
|
-
text: z.ZodString;
|
|
31
|
-
at: z.ZodISODateTime;
|
|
32
|
-
}, z.core.$strict>;
|
|
33
|
-
export declare const ThreadSchema: z.ZodObject<{
|
|
34
|
-
id: z.ZodString;
|
|
35
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
-
type: z.ZodLiteral<"quote">;
|
|
37
|
-
exact: z.ZodString;
|
|
38
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
39
|
-
suffix: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
-
type: z.ZodLiteral<"cells">;
|
|
42
|
-
range: z.ZodString;
|
|
43
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
-
type: z.ZodLiteral<"item">;
|
|
45
|
-
}, z.core.$strict>], "type">;
|
|
46
|
-
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
-
comments: z.ZodArray<z.ZodObject<{
|
|
48
|
-
id: z.ZodString;
|
|
49
|
-
author: z.ZodObject<{
|
|
50
|
-
kind: z.ZodEnum<{
|
|
51
|
-
person: "person";
|
|
52
|
-
agent: "agent";
|
|
53
|
-
}>;
|
|
54
|
-
name: z.ZodString;
|
|
55
|
-
}, z.core.$strict>;
|
|
56
|
-
text: z.ZodString;
|
|
57
|
-
at: z.ZodISODateTime;
|
|
58
|
-
}, z.core.$strict>>;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
export type Thread = z.infer<typeof ThreadSchema>;
|
|
61
|
-
export declare const CommentsFileSchema: z.ZodObject<{
|
|
62
|
-
$schema: z.ZodOptional<z.ZodString>;
|
|
63
|
-
version: z.ZodLiteral<1>;
|
|
64
|
-
threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
65
|
-
id: z.ZodString;
|
|
66
|
-
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
-
type: z.ZodLiteral<"quote">;
|
|
68
|
-
exact: z.ZodString;
|
|
69
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
70
|
-
suffix: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
-
type: z.ZodLiteral<"cells">;
|
|
73
|
-
range: z.ZodString;
|
|
74
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
-
type: z.ZodLiteral<"item">;
|
|
76
|
-
}, z.core.$strict>], "type">;
|
|
77
|
-
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
-
comments: z.ZodArray<z.ZodObject<{
|
|
79
|
-
id: z.ZodString;
|
|
80
|
-
author: z.ZodObject<{
|
|
81
|
-
kind: z.ZodEnum<{
|
|
82
|
-
person: "person";
|
|
83
|
-
agent: "agent";
|
|
84
|
-
}>;
|
|
85
|
-
name: z.ZodString;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
text: z.ZodString;
|
|
88
|
-
at: z.ZodISODateTime;
|
|
89
|
-
}, z.core.$strict>>;
|
|
90
|
-
}, z.core.$strict>>>;
|
|
91
|
-
}, z.core.$strict>;
|
|
92
|
-
export type CommentsFile = z.infer<typeof CommentsFileSchema>;
|
|
93
|
-
export declare const COMMENTS_FILE = "comments.json";
|
|
94
|
-
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{INSTANT as e,dataFile as r}from"./file.js";export const TargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("quote"),exact:t.string().min(1),prefix:t.string().optional(),suffix:t.string().optional()}),t.strictObject({type:t.literal("cells"),range:t.string().regex(/^[A-Z]+[1-9]\d*(?::[A-Z]+[1-9]\d*)?$/u)}),t.strictObject({type:t.literal("item")})]),AuthorSchema=t.strictObject({kind:t.enum(["person","agent"]),name:t.string().min(1)}),CommentSchema=t.strictObject({id:t.string().min(1),author:AuthorSchema,text:t.string().min(1),at:e}),ThreadSchema=t.strictObject({id:t.string().min(1),target:TargetSchema,resolved:t.boolean().default(!1),comments:t.array(CommentSchema).min(1)}),CommentsFileSchema=r({version:t.literal(1),threads:t.array(ThreadSchema).default([])}),COMMENTS_FILE="comments.json";
|