@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,11 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { EditorHost } from "./editor.js";
|
|
2
3
|
import { type ClientOf, type MethodSpec } from "./jsonrpc.js";
|
|
3
|
-
/** A
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
/** A version of a piece: its key as its kind's versions list it (`lang=en`); none: its first. */
|
|
5
|
+
export declare const VersionRef: {
|
|
6
|
+
/** The item's id, as `project/items` names it. */
|
|
7
|
+
item: z.ZodString;
|
|
8
|
+
version: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export { ImageSchema, type Image } from "./image.js";
|
|
9
11
|
/** A problem of the check (video-core's `Problem`): an objective error, by rule. */
|
|
10
12
|
export declare const ProblemSchema: z.ZodObject<{
|
|
11
13
|
code: z.ZodString;
|
|
@@ -23,23 +25,15 @@ export declare const FactSchema: z.ZodObject<{
|
|
|
23
25
|
kind: z.ZodString;
|
|
24
26
|
data: z.ZodUnknown;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
/** A version's film plan (video-core's `Timeline`). */
|
|
27
|
-
export declare const TimelineSchema: z.ZodObject<{
|
|
28
|
-
fps: z.ZodNumber;
|
|
29
|
-
width: z.ZodNumber;
|
|
30
|
-
height: z.ZodNumber;
|
|
31
|
-
duration: z.ZodNumber;
|
|
32
|
-
parts: z.ZodArray<z.ZodUnknown>;
|
|
33
|
-
}, z.core.$loose>;
|
|
34
28
|
export declare const CHECK_STATES: readonly ["off", "waiting", "running", "done", "failed"];
|
|
35
29
|
/** The check the server runs after edits, as it stands. */
|
|
36
30
|
export declare const CheckStateSchema: z.ZodObject<{
|
|
37
31
|
status: z.ZodEnum<{
|
|
38
32
|
failed: "failed";
|
|
39
|
-
running: "running";
|
|
40
33
|
off: "off";
|
|
41
|
-
|
|
34
|
+
running: "running";
|
|
42
35
|
done: "done";
|
|
36
|
+
waiting: "waiting";
|
|
43
37
|
}>;
|
|
44
38
|
revision: z.ZodInt;
|
|
45
39
|
problems: z.ZodArray<z.ZodObject<{
|
|
@@ -67,7 +61,7 @@ export declare const CheckStateSchema: z.ZodObject<{
|
|
|
67
61
|
export type CheckState = z.infer<typeof CheckStateSchema>;
|
|
68
62
|
export declare const EXPORT_STATES: readonly ["queued", "running", "done", "failed", "cancelled"];
|
|
69
63
|
/** An export the person asked for, one at a time. */
|
|
70
|
-
/** The choices an export is made with (`
|
|
64
|
+
/** The choices an export is made with (its kind's `exports.options`). */
|
|
71
65
|
export declare const ExportOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
72
66
|
export type ExportOptions = z.infer<typeof ExportOptionsSchema>;
|
|
73
67
|
export declare const ExportJobSchema: z.ZodObject<{
|
|
@@ -79,8 +73,8 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
79
73
|
state: z.ZodEnum<{
|
|
80
74
|
failed: "failed";
|
|
81
75
|
running: "running";
|
|
82
|
-
done: "done";
|
|
83
76
|
queued: "queued";
|
|
77
|
+
done: "done";
|
|
84
78
|
cancelled: "cancelled";
|
|
85
79
|
}>;
|
|
86
80
|
progress: z.ZodNumber;
|
|
@@ -100,143 +94,110 @@ export declare const IndexJobSchema: z.ZodObject<{
|
|
|
100
94
|
share: z.ZodOptional<z.ZodNumber>;
|
|
101
95
|
}, z.core.$strict>;
|
|
102
96
|
export type IndexJob = z.infer<typeof IndexJobSchema>;
|
|
97
|
+
/**
|
|
98
|
+
* A page to frame, sandboxed: its address, and a probe's. The probe posts
|
|
99
|
+
* `{ allyhub: true, type: "probe" }` to its parent as it loads; a browser
|
|
100
|
+
* that blocks every request from an opaque origin (an agent's preview
|
|
101
|
+
* pane) never hears it, and the page is framed without the sandbox there.
|
|
102
|
+
*/
|
|
103
|
+
export declare const FramedPageSchema: z.ZodObject<{
|
|
104
|
+
url: z.ZodString;
|
|
105
|
+
probe: z.ZodString;
|
|
106
|
+
}, z.core.$strict>;
|
|
103
107
|
/** Most components `components/stills` draws in one call. */
|
|
104
108
|
export declare const COMPONENT_STILLS_MAX = 64;
|
|
105
109
|
export declare const PROJECT_TOOLS: {
|
|
106
110
|
readonly "project/items": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
107
111
|
items: z.ZodArray<z.ZodObject<{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
doc: "doc";
|
|
112
|
-
sheet: "sheet";
|
|
113
|
-
scenery: "scenery";
|
|
114
|
-
model: "model";
|
|
115
|
-
website: "website";
|
|
116
|
-
}>;
|
|
117
|
-
dir: z.ZodString;
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
114
|
+
dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
118
115
|
entry: z.ZodString;
|
|
119
116
|
title: z.ZodOptional<z.ZodString>;
|
|
117
|
+
groups: z.ZodArray<z.ZodString>;
|
|
118
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
+
path: z.ZodString;
|
|
120
|
+
role: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
kindInfo: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
noun: z.ZodString;
|
|
124
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
125
|
+
color: z.ZodOptional<z.ZodString>;
|
|
126
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
127
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
types: z.ZodArray<z.ZodString>;
|
|
129
|
+
extras: z.ZodArray<z.ZodString>;
|
|
130
|
+
options: z.ZodArray<z.ZodObject<{
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
only: z.ZodArray<z.ZodString>;
|
|
133
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
139
|
+
plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
140
|
+
starter: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
142
|
+
entry: z.ZodString;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
120
145
|
}, z.core.$strict>>;
|
|
146
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
|
+
noun: z.ZodString;
|
|
148
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
149
|
+
color: z.ZodOptional<z.ZodString>;
|
|
150
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
151
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
types: z.ZodArray<z.ZodString>;
|
|
153
|
+
extras: z.ZodArray<z.ZodString>;
|
|
154
|
+
options: z.ZodArray<z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
only: z.ZodArray<z.ZodString>;
|
|
157
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
163
|
+
plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
164
|
+
starter: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
166
|
+
entry: z.ZodString;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
121
170
|
name: z.ZodString;
|
|
122
171
|
scope: z.ZodString;
|
|
123
172
|
revision: z.ZodInt;
|
|
124
173
|
}, z.core.$strict>>;
|
|
125
|
-
readonly "
|
|
126
|
-
item: z.ZodString;
|
|
127
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
128
|
-
generated: z.ZodOptional<z.ZodUnknown>;
|
|
129
|
-
failed: z.ZodBoolean;
|
|
130
|
-
}, z.core.$strict>>;
|
|
131
|
-
readonly "video/versions": MethodSpec<z.ZodObject<{
|
|
132
|
-
item: z.ZodString;
|
|
133
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
134
|
-
piece: z.ZodString;
|
|
135
|
-
kind: z.ZodEnum<{
|
|
136
|
-
video: "video";
|
|
137
|
-
slides: "slides";
|
|
138
|
-
}>;
|
|
139
|
-
title: z.ZodOptional<z.ZodString>;
|
|
140
|
-
width: z.ZodNumber;
|
|
141
|
-
height: z.ZodNumber;
|
|
142
|
-
versions: z.ZodArray<z.ZodObject<{
|
|
143
|
-
key: z.ZodString;
|
|
144
|
-
lang: z.ZodOptional<z.ZodString>;
|
|
145
|
-
}, z.core.$strict>>;
|
|
146
|
-
}, z.core.$strict>>;
|
|
147
|
-
readonly "slides/deck": MethodSpec<z.ZodObject<{
|
|
148
|
-
item: z.ZodString;
|
|
149
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
150
|
-
piece: z.ZodString;
|
|
151
|
-
file: z.ZodString;
|
|
152
|
-
prefix: z.ZodString;
|
|
153
|
-
layouts: z.ZodArray<z.ZodString>;
|
|
154
|
-
components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
155
|
-
generators: z.ZodArray<z.ZodString>;
|
|
156
|
-
scripts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
157
|
-
code: z.ZodUnknown;
|
|
158
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
159
|
-
theme: z.ZodObject<{
|
|
160
|
-
name: z.ZodString;
|
|
161
|
-
colors: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
162
|
-
fonts: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
163
|
-
}, z.core.$strict>;
|
|
164
|
-
}, z.core.$strict>>;
|
|
165
|
-
readonly "doc/data": MethodSpec<z.ZodObject<{
|
|
174
|
+
readonly "items/preview": MethodSpec<z.ZodObject<{
|
|
166
175
|
item: z.ZodString;
|
|
167
176
|
}, z.core.$strict>, z.ZodObject<{
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
readonly "video/stage": MethodSpec<z.ZodObject<{
|
|
171
|
-
start: z.ZodOptional<z.ZodObject<{
|
|
172
|
-
t: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
part: z.ZodOptional<z.ZodString>;
|
|
174
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
175
|
-
dur: z.ZodOptional<z.ZodNumber>;
|
|
176
|
-
}, z.core.$strict>>;
|
|
177
|
-
play: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
-
chrome: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
180
|
-
code: "code";
|
|
181
|
-
}>>;
|
|
182
|
-
item: z.ZodString;
|
|
183
|
-
version: z.ZodOptional<z.ZodString>;
|
|
184
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
185
|
-
url: z.ZodString;
|
|
186
|
-
probe: z.ZodString;
|
|
187
|
-
}, z.core.$strict>>;
|
|
188
|
-
readonly "video/timeline": MethodSpec<z.ZodObject<{
|
|
189
|
-
item: z.ZodString;
|
|
190
|
-
version: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
192
|
-
timeline: z.ZodObject<{
|
|
193
|
-
fps: z.ZodNumber;
|
|
194
|
-
width: z.ZodNumber;
|
|
195
|
-
height: z.ZodNumber;
|
|
196
|
-
duration: z.ZodNumber;
|
|
197
|
-
parts: z.ZodArray<z.ZodUnknown>;
|
|
198
|
-
}, z.core.$loose>;
|
|
199
|
-
text: z.ZodArray<z.ZodUnknown>;
|
|
200
|
-
}, z.core.$strict>>;
|
|
201
|
-
readonly "video/still": MethodSpec<z.ZodObject<{
|
|
202
|
-
t: z.ZodOptional<z.ZodNumber>;
|
|
203
|
-
item: z.ZodString;
|
|
204
|
-
version: z.ZodOptional<z.ZodString>;
|
|
205
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
206
|
-
t: z.ZodNumber;
|
|
207
|
-
image: z.ZodObject<{
|
|
208
|
-
mime: z.ZodString;
|
|
209
|
-
data: z.ZodBase64;
|
|
210
|
-
}, z.core.$strict>;
|
|
211
|
-
width: z.ZodInt;
|
|
212
|
-
height: z.ZodInt;
|
|
213
|
-
duration: z.ZodNumber;
|
|
214
|
-
}, z.core.$strict>>;
|
|
215
|
-
readonly "video/stills": MethodSpec<z.ZodObject<{
|
|
216
|
-
moments: z.ZodArray<z.ZodNumber>;
|
|
217
|
-
item: z.ZodString;
|
|
218
|
-
version: z.ZodOptional<z.ZodString>;
|
|
219
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
220
|
-
stills: z.ZodArray<z.ZodObject<{
|
|
221
|
-
t: z.ZodNumber;
|
|
177
|
+
preview: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"picture">;
|
|
222
179
|
image: z.ZodObject<{
|
|
223
180
|
mime: z.ZodString;
|
|
224
181
|
data: z.ZodBase64;
|
|
225
182
|
}, z.core.$strict>;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}, z.core.$strict>>;
|
|
183
|
+
width: z.ZodInt;
|
|
184
|
+
height: z.ZodInt;
|
|
185
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
type: z.ZodLiteral<"text">;
|
|
188
|
+
lines: z.ZodArray<z.ZodString>;
|
|
189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
|
+
type: z.ZodLiteral<"table">;
|
|
191
|
+
columns: z.ZodArray<z.ZodString>;
|
|
192
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
193
|
+
count: z.ZodInt;
|
|
194
|
+
}, z.core.$strict>], "type">>;
|
|
239
195
|
}, z.core.$strict>>;
|
|
196
|
+
readonly "work/add": MethodSpec<z.ZodObject<{
|
|
197
|
+
kind: z.ZodString;
|
|
198
|
+
file: z.ZodString;
|
|
199
|
+
title: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
240
201
|
readonly "components/list": MethodSpec<z.ZodObject<{
|
|
241
202
|
item: z.ZodString;
|
|
242
203
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -272,10 +233,10 @@ export declare const PROJECT_TOOLS: {
|
|
|
272
233
|
readonly "check/results": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
273
234
|
status: z.ZodEnum<{
|
|
274
235
|
failed: "failed";
|
|
275
|
-
running: "running";
|
|
276
236
|
off: "off";
|
|
277
|
-
|
|
237
|
+
running: "running";
|
|
278
238
|
done: "done";
|
|
239
|
+
waiting: "waiting";
|
|
279
240
|
}>;
|
|
280
241
|
revision: z.ZodInt;
|
|
281
242
|
problems: z.ZodArray<z.ZodObject<{
|
|
@@ -316,8 +277,8 @@ export declare const PROJECT_TOOLS: {
|
|
|
316
277
|
state: z.ZodEnum<{
|
|
317
278
|
failed: "failed";
|
|
318
279
|
running: "running";
|
|
319
|
-
done: "done";
|
|
320
280
|
queued: "queued";
|
|
281
|
+
done: "done";
|
|
321
282
|
cancelled: "cancelled";
|
|
322
283
|
}>;
|
|
323
284
|
progress: z.ZodNumber;
|
|
@@ -338,8 +299,8 @@ export declare const PROJECT_TOOLS: {
|
|
|
338
299
|
state: z.ZodEnum<{
|
|
339
300
|
failed: "failed";
|
|
340
301
|
running: "running";
|
|
341
|
-
done: "done";
|
|
342
302
|
queued: "queued";
|
|
303
|
+
done: "done";
|
|
343
304
|
cancelled: "cancelled";
|
|
344
305
|
}>;
|
|
345
306
|
progress: z.ZodNumber;
|
|
@@ -351,35 +312,19 @@ export declare const PROJECT_TOOLS: {
|
|
|
351
312
|
readonly "export/reveal": MethodSpec<z.ZodObject<{
|
|
352
313
|
path: z.ZodString;
|
|
353
314
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
354
|
-
readonly "scenery/viewer": MethodSpec<z.ZodObject<{
|
|
355
|
-
item: z.ZodString;
|
|
356
|
-
camera: z.ZodOptional<z.ZodObject<{
|
|
357
|
-
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
358
|
-
target: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
359
|
-
}, z.core.$strict>>;
|
|
360
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
361
|
-
url: z.ZodString;
|
|
362
|
-
probe: z.ZodString;
|
|
363
|
-
}, z.core.$strict>>;
|
|
364
315
|
};
|
|
365
316
|
export type ProjectToolName = keyof typeof PROJECT_TOOLS;
|
|
366
317
|
/**
|
|
367
|
-
* Where each
|
|
368
|
-
* from the project's snapshot, as nothing (what a render
|
|
369
|
-
* never recorded), or by the machine, which a host
|
|
370
|
-
* the window to wake.
|
|
318
|
+
* Where each of the core's tools is answered when no machine runs
|
|
319
|
+
* (sources.ts): from the project's snapshot, as nothing (what a render
|
|
320
|
+
* draws each time, never recorded), or by the machine, which a host
|
|
321
|
+
* reading a snapshot asks the window to wake. A contributed tool's
|
|
322
|
+
* manifest says its own.
|
|
371
323
|
*/
|
|
372
324
|
export declare const PROJECT_TOOL_SOURCES: {
|
|
373
325
|
readonly "project/items": "project";
|
|
374
|
-
readonly "
|
|
375
|
-
readonly "
|
|
376
|
-
readonly "slides/deck": "project";
|
|
377
|
-
readonly "doc/data": "project";
|
|
378
|
-
readonly "video/stage": "project";
|
|
379
|
-
readonly "video/timeline": "asleep";
|
|
380
|
-
readonly "video/still": "asleep";
|
|
381
|
-
readonly "video/stills": "asleep";
|
|
382
|
-
readonly "slides/fonts": "project";
|
|
326
|
+
readonly "items/preview": "asleep";
|
|
327
|
+
readonly "work/add": "machine";
|
|
383
328
|
readonly "components/list": "asleep";
|
|
384
329
|
readonly "components/stage": "asleep";
|
|
385
330
|
readonly "components/stills": "project";
|
|
@@ -389,24 +334,36 @@ export declare const PROJECT_TOOL_SOURCES: {
|
|
|
389
334
|
readonly "export/cancel": "machine";
|
|
390
335
|
readonly "export/list": "asleep";
|
|
391
336
|
readonly "export/reveal": "machine";
|
|
392
|
-
readonly "scenery/viewer": "project";
|
|
393
337
|
};
|
|
394
|
-
/**
|
|
395
|
-
|
|
396
|
-
* (docs/editors.md): for each tool, the CLI command that does the same
|
|
397
|
-
* through the same package function, or the files an agent reads or
|
|
398
|
-
* writes instead. Every tool has its line; the CLI's tests check that
|
|
399
|
-
* each command named is one.
|
|
400
|
-
*/
|
|
401
|
-
export declare const AGENT_DOES: Record<ProjectToolName, {
|
|
338
|
+
/** What does for the agent what a tool does for an editor: the CLI command that does the same, or the files the agent reads or writes instead. */
|
|
339
|
+
export type AgentDoes = {
|
|
402
340
|
command: string;
|
|
403
341
|
} | {
|
|
404
342
|
files: string;
|
|
405
|
-
}
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* What a person can do in an editor, an agent can do too
|
|
346
|
+
* (docs/editors.md): for each of the core's tools, the CLI command that
|
|
347
|
+
* does the same through the same package function, or the files an agent
|
|
348
|
+
* reads or writes instead. Every tool has its line (a contributed tool's
|
|
349
|
+
* manifest says its own, `does`); the CLI's tests check that each command
|
|
350
|
+
* named is one.
|
|
351
|
+
*/
|
|
352
|
+
export declare const AGENT_DOES: Record<ProjectToolName, AgentDoes>;
|
|
406
353
|
/** The project's tools, as typed calls. */
|
|
407
354
|
export type ToolsClient = ClientOf<typeof PROJECT_TOOLS>;
|
|
408
|
-
/**
|
|
355
|
+
/** One of the core's tools' specs, by name. */
|
|
409
356
|
export declare function toolSpec(name: string): MethodSpec | undefined;
|
|
357
|
+
/** A table of tools' specs by name: the core's, or an extension's own. */
|
|
358
|
+
export type ToolSpecs = Readonly<Record<string, MethodSpec>>;
|
|
359
|
+
/** What a tool of a table takes, and what it answers. */
|
|
360
|
+
export type ToolArgsOf<T extends ToolSpecs, N extends keyof T> = z.input<T[N]["params"]>;
|
|
361
|
+
export type ToolResultOf<T extends ToolSpecs, N extends keyof T> = z.output<T[N]["result"]>;
|
|
362
|
+
/**
|
|
363
|
+
* A table's tools as typed calls through `tools/call` (an editor's host):
|
|
364
|
+
* a tool's name and arguments, its answer checked against its result.
|
|
365
|
+
*/
|
|
366
|
+
export declare function toolCaller<T extends ToolSpecs>(tools: T): <N extends keyof T & string>(host: Pick<EditorHost, "tools/call">, name: N, args: ToolArgsOf<T, N>) => Promise<ToolResultOf<T, N>>;
|
|
410
367
|
export declare const TOOL_NOTIFICATIONS: {
|
|
411
368
|
readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
412
369
|
revision: z.ZodInt;
|
|
@@ -414,10 +371,10 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
414
371
|
readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
415
372
|
status: z.ZodEnum<{
|
|
416
373
|
failed: "failed";
|
|
417
|
-
running: "running";
|
|
418
374
|
off: "off";
|
|
419
|
-
|
|
375
|
+
running: "running";
|
|
420
376
|
done: "done";
|
|
377
|
+
waiting: "waiting";
|
|
421
378
|
}>;
|
|
422
379
|
revision: z.ZodInt;
|
|
423
380
|
problems: z.ZodArray<z.ZodObject<{
|
|
@@ -452,8 +409,8 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
452
409
|
state: z.ZodEnum<{
|
|
453
410
|
failed: "failed";
|
|
454
411
|
running: "running";
|
|
455
|
-
done: "done";
|
|
456
412
|
queued: "queued";
|
|
413
|
+
done: "done";
|
|
457
414
|
cancelled: "cancelled";
|
|
458
415
|
}>;
|
|
459
416
|
progress: z.ZodNumber;
|
|
@@ -473,5 +430,95 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
473
430
|
share: z.ZodOptional<z.ZodNumber>;
|
|
474
431
|
}, z.core.$strict>>;
|
|
475
432
|
}, z.core.$strict>>;
|
|
433
|
+
readonly "jobs/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
434
|
+
job: z.ZodObject<{
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
about: z.ZodObject<{
|
|
437
|
+
kind: z.ZodEnum<{
|
|
438
|
+
studio: "studio";
|
|
439
|
+
project: "project";
|
|
440
|
+
agent: "agent";
|
|
441
|
+
piece: "piece";
|
|
442
|
+
plugin: "plugin";
|
|
443
|
+
skill: "skill";
|
|
444
|
+
website: "website";
|
|
445
|
+
}>;
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
}, z.core.$strict>;
|
|
448
|
+
what: z.ZodEnum<{
|
|
449
|
+
update: "update";
|
|
450
|
+
install: "install";
|
|
451
|
+
start: "start";
|
|
452
|
+
download: "download";
|
|
453
|
+
wake: "wake";
|
|
454
|
+
export: "export";
|
|
455
|
+
publish: "publish";
|
|
456
|
+
}>;
|
|
457
|
+
name: z.ZodOptional<z.ZodString>;
|
|
458
|
+
state: z.ZodEnum<{
|
|
459
|
+
failed: "failed";
|
|
460
|
+
running: "running";
|
|
461
|
+
paused: "paused";
|
|
462
|
+
queued: "queued";
|
|
463
|
+
done: "done";
|
|
464
|
+
cancelled: "cancelled";
|
|
465
|
+
}>;
|
|
466
|
+
completed: z.ZodNumber;
|
|
467
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
468
|
+
unit: z.ZodEnum<{
|
|
469
|
+
files: "files";
|
|
470
|
+
share: "share";
|
|
471
|
+
bytes: "bytes";
|
|
472
|
+
}>;
|
|
473
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
stalled: z.ZodOptional<z.ZodBoolean>;
|
|
475
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
476
|
+
"first-setup": "first-setup";
|
|
477
|
+
}>>;
|
|
478
|
+
cancellable: z.ZodBoolean;
|
|
479
|
+
pausable: z.ZodOptional<z.ZodBoolean>;
|
|
480
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
481
|
+
retryable: z.ZodBoolean;
|
|
482
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
483
|
+
reason: z.ZodEnum<{
|
|
484
|
+
other: "other";
|
|
485
|
+
offline: "offline";
|
|
486
|
+
"no-space": "no-space";
|
|
487
|
+
"no-credits": "no-credits";
|
|
488
|
+
unavailable: "unavailable";
|
|
489
|
+
}>;
|
|
490
|
+
details: z.ZodString;
|
|
491
|
+
}, z.core.$strict>>;
|
|
492
|
+
made: z.ZodOptional<z.ZodString>;
|
|
493
|
+
started: z.ZodNumber;
|
|
494
|
+
ended: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
item: z.ZodString;
|
|
497
|
+
}, z.core.$strict>>;
|
|
476
498
|
};
|
|
499
|
+
/**
|
|
500
|
+
* What a read view gives a contributed tool's `readView` (its manifest's,
|
|
501
|
+
* a module of the editors' page): the tool's answers as its snapshot
|
|
502
|
+
* recorded them, and where the read view serves the tree.
|
|
503
|
+
*/
|
|
504
|
+
export interface ReadViewContext {
|
|
505
|
+
/**
|
|
506
|
+
* The tool's answer recorded at these params, as the tool gave it (its
|
|
507
|
+
* error thrown as the tool's); refused as needing the machine where none
|
|
508
|
+
* was recorded.
|
|
509
|
+
*/
|
|
510
|
+
recorded(params: Readonly<Record<string, unknown>>): Promise<unknown>;
|
|
511
|
+
/** An address of the tree as the read view serves it: a recorded answer's addresses are relative to the tree's root. */
|
|
512
|
+
inTree(address: string): string;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* How a read view answers a contributed tool from what its snapshot
|
|
516
|
+
* recorded, where that is more than the answer recorded at the params
|
|
517
|
+
* asked: a page's address made with what the recording left out (where a
|
|
518
|
+
* video starts, where a camera is), or an answer's addresses in the view.
|
|
519
|
+
* Its params as the editor called it.
|
|
520
|
+
*/
|
|
521
|
+
export type ReadViewTool = (params: Readonly<Record<string, unknown>>, view: ReadViewContext) => Promise<unknown>;
|
|
522
|
+
/** A `readView` module's default export: its tools' read views, by name. */
|
|
523
|
+
export type ReadViewTools = Readonly<Record<string, ReadViewTool>>;
|
|
477
524
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{
|
|
2
|
+
import{z as e}from"zod";import{FolderSchema as m,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as a}from"./kinds.js";import{RPC_ERROR as b,RpcError as g,method as r,notification as o}from"./jsonrpc.js";export const VersionRef={item:t,version:e.string().optional()};export{ImageSchema}from"./image.js";export const ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:t,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(t),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:t,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()}),FramedPageSchema=e.strictObject({url:e.string(),probe:e.string()}),COMPONENT_STILLS_MAX=64,PROJECT_TOOLS={"project/items":r(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:m,entry:t,title:e.string().optional(),groups:e.array(e.string()),files:e.array(e.object({path:e.string().min(1),role:e.string().min(1).optional()})).optional(),kindInfo:a.optional()})),kinds:e.array(a.extend({id:e.string().min(1)})).optional(),name:e.string(),scope:e.string(),revision:e.int().nonnegative()}),"The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name."),"items/preview":r(e.strictObject({item:t}),e.strictObject({preview:h.optional()}),"What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none."),"work/add":r(e.strictObject({kind:e.string().min(1),file:t,title:e.string().min(1).optional()}),e.strictObject({}),"Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already."),"components/list":r(e.strictObject({item:t}),e.strictObject({components:e.array(e.strictObject({of:e.string(),name:e.string(),label:e.union([e.string(),e.record(e.string(),e.string())]).optional()}))}),"The components an item may place: every one the project's files define, by the reference it would write."),"components/stage":r(e.strictObject(VersionRef),FramedPageSchema,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":r(e.strictObject({...VersionRef,components:e.array(e.strictObject({name:e.string(),props:e.record(e.string(),e.unknown()),width:e.number().positive(),height:e.number().positive(),t:e.number().nonnegative()})).min(1).max(COMPONENT_STILLS_MAX)}),e.strictObject({stills:e.array(e.strictObject({key:e.string(),url:e.url()}).nullable())}),"An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses."),"check/results":r(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":r(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":r(e.strictObject({item:t,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":r(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":r(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":r(e.strictObject({path:t}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},PROJECT_TOOL_SOURCES={"project/items":"project","items/preview":"asleep","work/add":"machine","components/list":"asleep","components/stage":"asleep","components/stills":"project","check/results":"project","check/run":"machine","export/start":"machine","export/cancel":"machine","export/list":"asleep","export/reveal":"machine"},AGENT_DOES={"project/items":{files:"allyhub.yaml"},"items/preview":{command:"frames"},"work/add":{files:"allyhub.yaml"},"components/list":{files:"the project's components (defineComponent)"},"components/stage":{command:"frames"},"components/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"}};export function toolSpec(s){return Object.hasOwn(PROJECT_TOOLS,s)?PROJECT_TOOLS[s]:void 0}export function toolCaller(s){return async(c,n,p)=>{const{result:l}=await c["tools/call"]({name:n,arguments:p}),i=s[n]?.result.safeParse(l);if(!i?.success)throw new g(b.internal,`The answer to the tool ${n} is not what the protocol says.`);return i.data}}export const TOOL_NOTIFICATIONS={"project/changed":o(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":o(CheckStateSchema,"The check started, ended or failed."),"export/changed":o(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":o(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on."),"jobs/changed":o(e.strictObject({job:d,item:t}),"A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.")};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{existsSync as u}from"node:fs";import{join as v}from"node:path";import{binsOf as x,filesFor as O,platformOf as
|
|
2
|
+
import{existsSync as u}from"node:fs";import{join as v}from"node:path";import{binsOf as x,filesFor as O,platformOf as j}from"@allyhub/protocol";import{binVariable as d}from"./runtimes.js";import{knownManifest as h}from"./declared.js";import{native as k}from"./unpack.js";export function bundledEnv(s,t={}){const f=t.env??process.env,n="platform"in t?t.platform:j(process.platform,process.arch),m=t.manifest??h(),c=t.exists??u,r={};if(!n)return r;for(const[a,p]of Object.entries(m.runtimes)){const o=O(p,n);if(o)for(const[l,b]of Object.entries(x(o))){const e=d(l),i=v(s,a,k(b));!f[e]&&c(i)&&(r[e]=i)}}return r}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Runtime, type RuntimeManifest } from "@allyhub/protocol";
|
|
2
|
+
/**
|
|
3
|
+
* Declares an extension's runtimes in this process, by name; what is
|
|
4
|
+
* wrong with any is said, and it is left out. Declaring the same pin
|
|
5
|
+
* again is nothing.
|
|
6
|
+
*/
|
|
7
|
+
export declare function declareRuntimes(extension: string, runtimes: Readonly<Record<string, unknown>>): string[];
|
|
8
|
+
/** The runtimes the extensions in this process declared, by name, in the order declared. */
|
|
9
|
+
export declare function declaredRuntimes(): Readonly<Record<string, Runtime>>;
|
|
10
|
+
/** The extension that declared a runtime; none for the core's own, or one not declared. */
|
|
11
|
+
export declare const runtimeExtension: (name: string) => string | undefined;
|
|
12
|
+
/** The core's pins, then those the extensions in this process declared. */
|
|
13
|
+
export declare function knownManifest(): RuntimeManifest;
|
|
14
|
+
//# sourceMappingURL=declared.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{RuntimeSchema as m}from"@allyhub/protocol";import{shippedManifest as a}from"./manifest.js";const s=new Map;export function declareRuntimes(e,r){const t=[];for(const[n,c]of Object.entries(r)){const i=m.safeParse(c);if(!i.success){t.push(`The runtime ${n} is not a pin: ${i.error.issues.map(u=>`${u.path.join(".")||"entry"}: ${u.message}`).join("; ")}.`);continue}if(Object.hasOwn(a().runtimes,n)){t.push(`The runtime ${n} is the core's already.`);continue}const o=s.get(n);if(o&&o.extension!==e){t.push(`The runtime ${n} is ${o.extension}'s already.`);continue}s.set(n,{extension:e,runtime:i.data})}return t}export function declaredRuntimes(){return Object.fromEntries([...s].map(([e,r])=>[e,r.runtime]))}export const runtimeExtension=e=>s.get(e)?.extension;export function knownManifest(){const e=a();return{...e,runtimes:{...e.runtimes,...declaredRuntimes()}}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Which ffmpeg to run; default the runtime manager's pinned build, fetched when first needed. */
|
|
2
|
+
export interface FfmpegOptions {
|
|
3
|
+
ffmpeg?: string | undefined;
|
|
4
|
+
}
|
|
5
|
+
/** The ffmpeg to run: the one named, else the pinned one. */
|
|
6
|
+
export declare function ffmpegOf(o?: FfmpegOptions): Promise<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Runs ffmpeg, feeding stdin when asked; resolves with stdout (when kept)
|
|
9
|
+
* and stderr. Aborting the signal stops it outright.
|
|
10
|
+
*/
|
|
11
|
+
export declare function runFfmpegWith(ffmpeg: string, args: string[], input?: (stdin: NodeJS.WritableStream) => Promise<void>, keepOut?: boolean, signal?: AbortSignal): Promise<{
|
|
12
|
+
out: Buffer;
|
|
13
|
+
err: string;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=ffmpeg.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{spawn as l}from"node:child_process";import{createRuntimes as h}from"./runtimes.js";const u=2e5;let d;export function ffmpegOf(o={}){if(o.ffmpeg!==void 0)return Promise.resolve(o.ffmpeg);const i=d??h().bin("ffmpeg","ffmpeg").catch(f=>{throw d=void 0,f});return d=i,i}export function runFfmpegWith(o,i,f,a=!1,t){return new Promise((m,s)=>{if(t?.aborted){s(t.reason instanceof Error?t.reason:new Error("aborted"));return}const e=l(o,i,{stdio:["pipe","pipe","pipe"]}),p=()=>{e.stdin.destroy(),e.kill("SIGKILL")};t?.addEventListener("abort",p,{once:!0}),e.on("close",()=>{t?.removeEventListener("abort",p)});const c=[];let n="";e.stdout.on("data",r=>{a&&c.push(r)}),e.stderr.on("data",r=>{n+=r.toString(),n.length>u&&(n=n.slice(-u/2))}),e.stdin.on("error",()=>{}),e.on("error",s),e.on("close",r=>{r===0?m({out:Buffer.concat(c),err:n}):s(new Error(`ffmpeg failed (${String(r)}): ${n.slice(-2e3)}`))}),f?f(e.stdin).then(()=>e.stdin.end()).catch(r=>{e.stdin.destroy(),e.kill("SIGKILL"),s(r instanceof Error?r:new Error(String(r)))}):e.stdin.end()})}
|