allyhub 0.15.3 → 0.17.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 +17 -0
- package/dist/commands/add.js +1 -1
- package/dist/commands/cloud-tools.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/doctor.js +3 -3
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/inspect/common.js +3 -3
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/uses.js +3 -0
- package/dist/commands/mail.js +6 -6
- package/dist/commands/render.js +1 -1
- package/dist/main.js +8 -8
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-text.js +2 -2
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +7 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +2 -2
- package/dist/node_modules/@allyhub/build/dist/imports.d.ts +17 -0
- package/dist/node_modules/@allyhub/build/dist/imports.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +3 -2
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +19 -3
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +27 -6
- package/dist/node_modules/@allyhub/build/dist/uses.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +9 -1
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +2 -2
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +12 -3
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/deletion.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -2
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +40 -40
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +26 -26
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +15 -3
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +70 -11
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +15 -4
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +4 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +3 -3
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/dist/load.js +2 -2
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +3 -1
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/data/leads.csv +5 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +19 -0
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/document/briefs/launch.docx +0 -0
- package/dist/node_modules/@allyhub/office-extension/markup/document/markup.json +11 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/decks/pitch.pptx +0 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/markup.json +11 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/data/plans.xlsx +0 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +10 -0
- package/dist/node_modules/@allyhub/office-extension/package.json +124 -0
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +9 -0
- package/dist/node_modules/@allyhub/piece/dist/page/runtimes.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +53 -10
- package/dist/node_modules/@allyhub/piece/dist/source.js +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +10 -11
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +7 -0
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +9 -0
- package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +77 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +39 -9
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +15 -15
- package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +441 -5
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +4 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +5 -5
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +45 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +134 -0
- package/dist/node_modules/@allyhub/protocol/dist/paywall.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +47 -0
- package/dist/node_modules/@allyhub/protocol/dist/purposes.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +52 -5
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +34 -0
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +21 -52
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +264 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +97 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +3 -2
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +26 -20
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +71 -0
- package/dist/node_modules/@allyhub/protocol/dist/turns.js +2 -0
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/film.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +4 -4
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.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/logical.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/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -3
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/components.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/item.js +2 -0
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/dist/slide-css.js +20 -0
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +20 -20
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/doc.js +17 -2
- package/dist/node_modules/@allyhub/telemetry/dist/level.js +2 -2
- package/dist/node_modules/@allyhub/telemetry/dist/levels.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/dist/scrub.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/markup.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/archive/assets.zip +0 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/markup.json +10 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +35 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +3 -3
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +3 -1
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +13 -12
- package/dist/project.js +1 -1
- package/dist/telemetry.js +3 -3
- package/dist/text/console-text.js +2 -2
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-arPHIJYC.js → abnfDiagram-WEYOIA3C-CHNpVSPv.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-XPJlj9Iq.js → architecture-WOLXFQ4H-gPsJqQwV.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-BZNJvOtd.js → architectureDiagram-ZHVYKT53-CEIDcC6r.js} +1 -1
- package/editor-web/assets/arrow-down-B8VUPCGi.js +1 -0
- package/editor-web/assets/arrow-up-Ds4juY8X.js +1 -0
- package/editor-web/assets/article-BHTjq0_Y.js +3 -0
- package/editor-web/assets/{article-Ck2ii-gZ.js → article-DfELjJ2o.js} +2 -2
- package/editor-web/assets/{audio-lines-1s1eRs4Q.js → audio-lines-PZj77e7t.js} +1 -1
- package/editor-web/assets/{bar-button-6Perrucg.js → bar-button-J9vbfzTx.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-B4L2P9Zz.js → blockDiagram-RJAE7QA3-CUzEGVet.js} +4 -4
- package/editor-web/assets/browser-C1XuTMlp.js +1 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-D5t2-Sm8.js → c4Diagram-XDPPPE54-CB94NR9s.js} +1 -1
- package/editor-web/assets/calc-worker-BdHh5LXM.js +45 -0
- package/editor-web/assets/channel-DCDCx5Es.js +1 -0
- package/editor-web/assets/chart-amT4lgX3.js +2 -0
- package/editor-web/assets/chart-file-CfbWK9l1.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-CJmeYOSo.js → chart-no-axes-column-Be0lFcGF.js} +1 -1
- package/editor-web/assets/{chunk-2E7WHVMD-bWUHKM6h.js → chunk-2E7WHVMD-DFYo_Boi.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-CGGaxE7r.js → chunk-4EMNKR2T-CLLjmweX.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BXCHI3wC.js → chunk-55XCU76K-CkwQ_3m1.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-H4tWSKhS.js → chunk-7S6XSTFO-V-AvHpAB.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-kyBZy8vG.js → chunk-AQDTSKZB-PjHyYpb8.js} +1 -1
- package/editor-web/assets/chunk-DSNLSHJZ-QaczBS3J.js +127 -0
- package/editor-web/assets/{chunk-HAGFOTED-P8dIUq9O.js → chunk-HAGFOTED-aLaQB5Xu.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-B_BAZXMj.js → chunk-HNE4Q36P-De3ftDQR.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-Bubl63jI.js → chunk-NQOKRVIF-CrhVQyvP.js} +17 -17
- package/editor-web/assets/{chunk-UHW7PFBP-DYGk0ZDz.js → chunk-UHW7PFBP-BFmZ5ZLn.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BLFRyEGi.js → chunk-VQ5W62QI-CzppUHLA.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-kiwalF_c.js → chunk-WQQL4CDK-BrAU7V6v.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-D-bT0L2N.js → chunk-YZO67HFG-BSiF71qj.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-C_P5nPKV.js → chunk-ZAUX2LTX-BJc4r5b1.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-Deizt1PO.js → chunk-ZCHMQSOR-CkGTuehB.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-PUtBnliw.js → classDiagram-v2-4MYWR3UA-Byxc7J88.js} +7 -7
- package/editor-web/assets/code-CD-CbJG9.js +1 -0
- package/editor-web/assets/{collaborator--S95EupA.js → collaborator-BU4qU7O3.js} +1 -1
- package/editor-web/assets/{copy-DvOiv9Ra.js → copy-CuJSs0nI.js} +1 -1
- package/editor-web/assets/{createLucideIcon-REX213UO.js → createLucideIcon-lm_6n8YT.js} +1 -1
- package/editor-web/assets/csv-Bwre9FdI.js +11 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-C09G_QFD.js → cynefin-EF2NZ3EQ-BSxkVbdf.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-JxxJ5-Ov.js → cynefinDiagram-WF24UDRP-IkCgARNs.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-6DkhWeGP.js → dagre-NK4GIZVX-9PgeH6nY.js} +1 -1
- package/editor-web/assets/deck-tTzKONci.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-kI_Q07du.js → diagram-CBK3MWTC-DRzeg3Ds.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-FYaR41qP.js → diagram-I5XIIV2D-B_zeKMN6.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-29WBGOdl.js → diagram-ODIL2UCW-FFm0O8SN.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BFZJ9s9P.js → diagram-PFBEJUXE-DrtCT8OA.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-BSNFe4e-.js → diagram-RJA3I4VV-DtxJ3V0q.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-Cb1wZgqj.js → diagram-TYUNFSNR-DmxF_8H_.js} +16 -16
- package/editor-web/assets/dist-BEpzsYn_.js +6 -0
- package/editor-web/assets/dist-BUD4ywMB.js +18 -0
- package/editor-web/assets/{dist-BrGYx10E.js → dist-Bd8IxQPP.js} +1 -1
- package/editor-web/assets/dist-C21CkR7Z.js +531 -0
- package/editor-web/assets/{dist-BuG-vxxb.js → dist-C56mWAec.js} +3 -3
- package/editor-web/assets/dist-CAb3W9_P.js +43 -0
- package/editor-web/assets/dist-CEknsRDd.js +24 -0
- package/editor-web/assets/dist-CbZAznNW.js +19 -0
- package/editor-web/assets/{dist-BaCVkpwc.js → dist-D3C6FyrO.js} +1 -1
- package/editor-web/assets/dist-DDzjbKIg.js +4 -0
- package/editor-web/assets/dist-DaEbElXI.js +3 -0
- package/editor-web/assets/{dist-CnbKC_fW.js → dist-Dr3o4vee.js} +1 -1
- package/editor-web/assets/{dist-BlqK1Oua.js → dist-DruvDNQe.js} +1 -1
- package/editor-web/assets/dist-JLyDtl9X.js +1 -0
- package/editor-web/assets/dist-PBbWAsrV.js +17 -0
- package/editor-web/assets/dist-ZZlQa66J.js +1 -0
- package/editor-web/assets/{dist-DXUMNYNX.js → dist-bQKpw3Zz.js} +5 -5
- package/editor-web/assets/dist-d4dayaWE.js +17 -0
- package/editor-web/assets/docx-draw-9Q_fArBC.js +4 -0
- package/editor-web/assets/docx-preview-pcg9ioe3.js +21 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-t3vO5qHB.js → ebnfDiagram-V4P3TTPT-DSX1Aoty.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-DfIcGBDb.js → elk-QONTBCTQ-C7gy9q56.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-Bgy1PYQf.js → erDiagram-KYQIGQAA-CKx_HoY4.js} +2 -2
- package/editor-web/assets/esm-BZb5QMQf.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-b8j935GM.js → eventmodeling-K75KTNOO-DL4HvSrd.js} +1 -1
- package/editor-web/assets/{file-exclamation-point-C_fX4fpI.js → file-exclamation-point-_L3ElCJ5.js} +1 -1
- package/editor-web/assets/file-question-mark-DlIjUK37.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-B6C_nkwn.js → ganttDiagram-R7GPNTJY-N-AP4slN.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-CWtulOri.js → gitGraph-VSP46ZUC-BKRGJKWm.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BT80Z9gj.js → gitGraphDiagram-PDYL7XHY-ClwL7w2_.js} +1 -1
- package/editor-web/assets/{group-pebHQTdP.js → group-BdrTp7gi.js} +1 -1
- package/editor-web/assets/{hint-CKIaljPY.js → hint-rlht0uxG.js} +1 -1
- package/editor-web/assets/index-BedbINE5.css +2 -0
- package/editor-web/assets/index-DG2nHq4D.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-CyWiLOaB.js → info-OHQRW6UA-DpcY8t23.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-3TQgBeRh.js → infoDiagram-MVDRKAX5-ChtmtWni.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-C3RAGFl7.js → ishikawaDiagram-HPEHV2GE-BZNTuG_F.js} +1 -1
- package/editor-web/assets/iso-ahTwmFwH.js +56 -0
- package/editor-web/assets/{italic-CtlNOXN9.js → italic-zw4_eUNF.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-B3ZJp3pT.js → journeyDiagram-BOSHW7O7-C3uVmZbL.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-ChjUoDH7.js → kanban-definition-FNSA4HC5-puEhftGG.js} +4 -4
- package/editor-web/assets/{link-CW2KxKT_.js → link-DopSU3aa.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-CqJ7hTUI.js → mermaid-parser.core-Bw8re-WE.js} +3 -3
- package/editor-web/assets/mermaid.core-Cc2GIqBr.js +44 -0
- package/editor-web/assets/{mindmap-definition-6OY57UG3-Di0DNds3.js → mindmap-definition-6OY57UG3-C6MUl_S_.js} +3 -3
- package/editor-web/assets/minus-CbPnUIOy.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-CkCyk5LQ.js → packet-JDAUHWVQ-C75RnvC5.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-DGyUszOM.js → pegDiagram-ECIUJNBX-ChjmsdV4.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-D56l6NOA.js → pie-XZMESJXO-BaKxJQpj.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-C6Gy4c9c.js → pieDiagram-GNMPY74T-CT2ez8pr.js} +1 -1
- package/editor-web/assets/{progress-I2qmIfF4.js → progress-CwKcXARv.js} +1 -1
- package/editor-web/assets/props-form-D5oKHfpk.js +1 -0
- package/editor-web/assets/purify.es-B9ve_eFf.js +3 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-CWfkAwXQ.js → quadrantDiagram-D57K4MC3-BJItlTfk.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BhyQtVw_.js → radar-ABXABTNO-DnLzBlTo.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-CyOyOgY6.js → railroad-I3PHUGI6-D5hj6Yv3.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-ExhYWNk4.js → railroad-abnf-LNEFI6M7-DUZlZoPu.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-B7vR6DFd.js → railroad-ebnf-DWYD2UWJ-CDyyDC6d.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-hqCnhLuG.js → railroad-peg-JR7BVNR7-CC3ImNnT.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-D5X_R2ve.js → railroadDiagram-Y72NRBL7-Bjw-8Se5.js} +1 -1
- package/editor-web/assets/{react-Bk7NnOLX.js → react-Edyoga_4.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-CIP8sDsk.js → requirementDiagram-EQYSW5RA-CDFnuEIO.js} +1 -1
- package/editor-web/assets/{row-k2eAfT-g.js → row-C_svyL8o.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-BKDJlzrK.js → sankeyDiagram-SY24JHO5-CQPVLY1w.js} +1 -1
- package/editor-web/assets/schemas-moE_A7Nj.js +1 -0
- package/editor-web/assets/{scissors-BURkYWPv.js → scissors-B_xOiUhd.js} +1 -1
- package/editor-web/assets/{search-jKDvFIEU.js → search-Ba2BbT6T.js} +1 -1
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-CkRLYFZ7.js → sequenceDiagram-BLEHNHQU-BQzuLmBX.js} +1 -1
- package/editor-web/assets/{session-CUCSWPTE.js → session-s1I85rox.js} +1 -1
- package/editor-web/assets/{sigma-CY2Chbro.js → sigma-DSUsJhMn.js} +1 -1
- package/editor-web/assets/slides-oQ_C0SVJ.js +1 -0
- package/editor-web/assets/snapshots-BPJKywuN.js +1 -0
- package/editor-web/assets/{sound-DUCxe9eC.js → sound-bTlco_K3.js} +1 -1
- package/editor-web/assets/{split-Cjm6rVDC.js → split-7CVjIkSU.js} +2 -2
- package/editor-web/assets/square-arrow-out-up-right-DF5dvsSp.js +1 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-CCvwoTcz.js → stateDiagram-v2-A6IESKWZ-DOuageUf.js} +7 -7
- package/editor-web/assets/{sticky-note-C5qUDHhC.js → sticky-note-BdkIu5_D.js} +1 -1
- package/editor-web/assets/{strikethrough-DP-7tMz0.js → strikethrough-BwXWi4zg.js} +1 -1
- package/editor-web/assets/{surface-BocGwSox.js → surface-DtCjIlrq.js} +1 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +1 -0
- package/editor-web/assets/{swatch-DGdJ5SeN.js → swatch-DhztHwPU.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BXgW4pi4.js → swimlanes-B3ENRKFQ-CXKkok7X.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +8 -0
- package/editor-web/assets/{switch-Dwqxw1kp.js → switch-8MU4Nfxe.js} +1 -1
- package/editor-web/assets/{syntax-DSsHrzWF.js → syntax-CU_WPKxt.js} +1 -1
- package/editor-web/assets/{table-CTjNpE4W.js → table-DRbddzx0.js} +1 -1
- package/editor-web/assets/tabs-CiF1N-pL.js +1 -0
- package/editor-web/assets/tag-CIfWT8B_.js +1 -0
- package/editor-web/assets/text-align-start-Cic2-TLh.js +1 -0
- package/editor-web/assets/{textarea-BNH6Y1-o.js → textarea-D7TnPwv1.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BwuUmgv1.js → timeline-definition-JXYKGLGB-DgAjAeZp.js} +3 -3
- package/editor-web/assets/{treeView-D4JQ5SDB-Da35tnkE.js → treeView-D4JQ5SDB-C0Xvnhck.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-4TcJReov.js → treemap-SAJKECNS-aXfKAeSX.js} +1 -1
- package/editor-web/assets/{undo-2-DUGGyBdX.js → undo-2-C47jrRp5.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-wj02og_C.js → usecaseDiagram-WPOLBNNX-CvUlBa-L.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Cun6o3pg.js → vennDiagram-Q3Y3IDCW-qMJ1iCxs.js} +3 -3
- package/editor-web/assets/{video-DkuN7Uu7.js → video-DQrjo1TI.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-DiL2aSXm.js → wardley-7MLQ67FV-DEdnH0by.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Cll7rTnv.js → wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js} +1 -1
- package/editor-web/assets/{whole-word-6DliXke2.js → whole-word-D3ZAtnkw.js} +1 -1
- package/editor-web/assets/{words-QKSIyC_P.js → words-0Ww2RyT4.js} +1 -1
- package/editor-web/assets/{words-B-7GbYO2.js → words-XlXG79Ur.js} +1 -1
- package/editor-web/assets/workbook-FSSUiIp9.js +45 -0
- package/editor-web/assets/x-DlhyIKuu.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-s55eVncs.js → xychartDiagram-4URNHDU4-DV4bSzTb.js} +1 -1
- package/editor-web/assets/{zoom-in-C4lxmIDE.js → zoom-in-PgsC94hP.js} +1 -1
- package/editor-web/index.html +8 -7
- package/package.json +2 -2
- package/editor-web/assets/arrow-down-DzZjFrBL.js +0 -1
- package/editor-web/assets/arrow-up-hdmh9LVD.js +0 -1
- package/editor-web/assets/article-v30Q5cvX.js +0 -3
- package/editor-web/assets/calc-worker-jImBXoeb.js +0 -45
- package/editor-web/assets/channel-B8881pqR.js +0 -1
- package/editor-web/assets/chart-BC3kUUDD.js +0 -2
- package/editor-web/assets/chunk-DSNLSHJZ-BlB7YIMo.js +0 -129
- package/editor-web/assets/code-BID_OoRp.js +0 -1
- package/editor-web/assets/dist-B3RkByp0.js +0 -1
- package/editor-web/assets/dist-BAeqmRLA.js +0 -530
- package/editor-web/assets/dist-CGJv5-SE.js +0 -45
- package/editor-web/assets/dist-CUdvgRW5.js +0 -1
- package/editor-web/assets/dist-DhKxOqdu.js +0 -43
- package/editor-web/assets/dist-Dx2yV02v.js +0 -6
- package/editor-web/assets/dist-QuK0-suW.js +0 -24
- package/editor-web/assets/dist-Sl2_j-4w.js +0 -38
- package/editor-web/assets/dist-b5nFx4mV.js +0 -3
- package/editor-web/assets/dist-tteqAu5L.js +0 -4
- package/editor-web/assets/flowDiagram-IUGLLWBU-CnzC5OOy.js +0 -1
- package/editor-web/assets/index-C3A0pCmH.css +0 -2
- package/editor-web/assets/index-CFqSJBZ-.js +0 -28
- package/editor-web/assets/mermaid.core-DR2O-coV.js +0 -44
- package/editor-web/assets/minus-D1tgAHbU.js +0 -1
- package/editor-web/assets/props-form-gwp-8pGV.js +0 -1
- package/editor-web/assets/schemas-B89k2jEC.js +0 -1
- package/editor-web/assets/slides-BdaWgL_N.js +0 -1
- package/editor-web/assets/snapshots-CTS2iez5.js +0 -56
- package/editor-web/assets/svg-nJtFNJ-7.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-AFpLq-Wf.js +0 -8
- package/editor-web/assets/tabs-B0bv2mMP.js +0 -1
- package/editor-web/assets/x-BsePFh6d.js +0 -41
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],STUDIO_START_ENV="ALLYHUB_STUDIO_START",StudioOpenLineSchema=t.union([t.object({step:t.enum(STUDIO_OPEN_STEPS),first:t.boolean().optional()}),t.object({status:t.number(),error:t.object({code:t.string(),message:t.string(),data:t.record(t.string(),t.unknown()).optional()})}),StudioOpenedSchema]),STUDIO_TICKET_PATH="/api/studio/ticket",StudioTicketSchema=t.object({ticket:t.string().min(1)}),STUDIO_PREPARE_PATH="/api/studio/prepare",StudioPreparedSchema=t.object({prepared:t.boolean()}),STUDIO_PAUSE_PATH="/api/studio/pause",StudioPausedSchema=t.object({paused:t.boolean()}),STUDIO_WAKES_PATH="/api/studio/wakes",STUDIO_WAKE_OUTCOMES=["live","failed"],StudioWakeReportSchema=t.strictObject({outcome:t.enum(STUDIO_WAKE_OUTCOMES),error:t.string().max(500).optional(),server:StudioOpenStagesSchema.optional(),window:t.strictObject({open:t.number().optional(),connect:t.number().optional(),enter:t.number().optional(),total:t.number()}),first:t.boolean().optional()}),STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
|
|
2
|
+
import{z as t}from"zod";import{openEnum as e}from"./open.js";export const ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number(),spent:t.number().optional()}))}),MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),ORGANIZATION_PATH="/api/organization",STUDIO_PATH="/api/studio",STUDIO_STATES=["running","paused"],StudioSchema=t.object({studio:t.object({state:e(STUDIO_STATES),organizationId:t.string()}).nullable(),creditsPerHour:t.number(),idle:t.object({minutes:t.number(),chosen:t.number().nullable(),min:t.number(),max:t.number()}).optional(),update:t.object({since:t.string(),by:t.string().optional()}).optional()}),STUDIO_RESTART_PATH="/api/studio/restart",StudioSettingsSchema=t.strictObject({idleMinutes:t.number().int().nullable()}),STUDIO_POLICY_PATH="/api/organization/studio",StudioPolicySchema=t.strictObject({idleMaxMinutes:t.number().int().nullable()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_OPEN_STAGES=["balance","hold","create","resume","health","release","install","start","charge","ticket"],StudioOpenStagesSchema=t.record(t.string(),t.number()),StudioOpenedSchema=t.object({origin:t.url(),ticket:t.string().min(1),stages:StudioOpenStagesSchema.optional()}),NDJSON="application/x-ndjson",STUDIO_OPEN_STEPS=["machine","install","start"],STUDIO_START_ENV="ALLYHUB_STUDIO_START",StudioOpenLineSchema=t.union([t.object({step:t.enum(STUDIO_OPEN_STEPS),first:t.boolean().optional()}),t.object({status:t.number(),error:t.object({code:t.string(),message:t.string(),data:t.record(t.string(),t.unknown()).optional()})}),StudioOpenedSchema]),STUDIO_TICKET_PATH="/api/studio/ticket",StudioTicketSchema=t.object({ticket:t.string().min(1)}),STUDIO_PREPARE_PATH="/api/studio/prepare",StudioPreparedSchema=t.object({prepared:t.boolean()}),STUDIO_PAUSE_PATH="/api/studio/pause",StudioPausedSchema=t.object({paused:t.boolean()}),STUDIO_WAKES_PATH="/api/studio/wakes",STUDIO_WAKE_OUTCOMES=["live","failed"],StudioWakeReportSchema=t.strictObject({outcome:t.enum(STUDIO_WAKE_OUTCOMES),error:t.string().max(500).optional(),server:StudioOpenStagesSchema.optional(),window:t.strictObject({open:t.number().optional(),connect:t.number().optional(),enter:t.number().optional(),total:t.number()}),first:t.boolean().optional()}),STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
|
|
@@ -29,10 +29,10 @@ export declare const CHECK_STATES: readonly ["off", "waiting", "running", "done"
|
|
|
29
29
|
/** The check the server runs after edits, as it stands. */
|
|
30
30
|
export declare const CheckStateSchema: z.ZodObject<{
|
|
31
31
|
status: z.ZodEnum<{
|
|
32
|
-
|
|
32
|
+
done: "done";
|
|
33
33
|
failed: "failed";
|
|
34
|
+
off: "off";
|
|
34
35
|
running: "running";
|
|
35
|
-
done: "done";
|
|
36
36
|
waiting: "waiting";
|
|
37
37
|
}>;
|
|
38
38
|
revision: z.ZodInt;
|
|
@@ -71,11 +71,11 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
71
71
|
types: z.ZodArray<z.ZodString>;
|
|
72
72
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
73
73
|
state: z.ZodEnum<{
|
|
74
|
+
done: "done";
|
|
74
75
|
failed: "failed";
|
|
76
|
+
cancelled: "cancelled";
|
|
75
77
|
queued: "queued";
|
|
76
78
|
running: "running";
|
|
77
|
-
done: "done";
|
|
78
|
-
cancelled: "cancelled";
|
|
79
79
|
}>;
|
|
80
80
|
progress: z.ZodNumber;
|
|
81
81
|
files: z.ZodArray<z.ZodString>;
|
|
@@ -86,9 +86,9 @@ export type ExportJob = z.infer<typeof ExportJobSchema>;
|
|
|
86
86
|
export declare const IndexJobSchema: z.ZodObject<{
|
|
87
87
|
file: z.ZodString;
|
|
88
88
|
status: z.ZodEnum<{
|
|
89
|
+
done: "done";
|
|
89
90
|
failed: "failed";
|
|
90
91
|
running: "running";
|
|
91
|
-
done: "done";
|
|
92
92
|
}>;
|
|
93
93
|
message: z.ZodString;
|
|
94
94
|
share: z.ZodOptional<z.ZodNumber>;
|
|
@@ -141,6 +141,8 @@ export declare const PROJECT_TOOLS: {
|
|
|
141
141
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
142
142
|
entry: z.ZodString;
|
|
143
143
|
}, z.core.$strip>>;
|
|
144
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
turnInto: z.ZodOptional<z.ZodBoolean>;
|
|
144
146
|
}, z.core.$strip>>;
|
|
145
147
|
}, z.core.$strict>>;
|
|
146
148
|
kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -165,6 +167,8 @@ export declare const PROJECT_TOOLS: {
|
|
|
165
167
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
166
168
|
entry: z.ZodString;
|
|
167
169
|
}, z.core.$strip>>;
|
|
170
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
turnInto: z.ZodOptional<z.ZodBoolean>;
|
|
168
172
|
id: z.ZodString;
|
|
169
173
|
}, z.core.$strip>>>;
|
|
170
174
|
name: z.ZodString;
|
|
@@ -203,6 +207,8 @@ export declare const PROJECT_TOOLS: {
|
|
|
203
207
|
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
204
208
|
entry: z.ZodString;
|
|
205
209
|
}, z.core.$strip>>;
|
|
210
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
turnInto: z.ZodOptional<z.ZodBoolean>;
|
|
206
212
|
}, z.core.$strip>>;
|
|
207
213
|
}, z.core.$strict>;
|
|
208
214
|
}, z.core.$strict>>;
|
|
@@ -274,10 +280,10 @@ export declare const PROJECT_TOOLS: {
|
|
|
274
280
|
}, z.core.$strict>>;
|
|
275
281
|
readonly "check/results": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
276
282
|
status: z.ZodEnum<{
|
|
277
|
-
|
|
283
|
+
done: "done";
|
|
278
284
|
failed: "failed";
|
|
285
|
+
off: "off";
|
|
279
286
|
running: "running";
|
|
280
|
-
done: "done";
|
|
281
287
|
waiting: "waiting";
|
|
282
288
|
}>;
|
|
283
289
|
revision: z.ZodInt;
|
|
@@ -317,11 +323,11 @@ export declare const PROJECT_TOOLS: {
|
|
|
317
323
|
types: z.ZodArray<z.ZodString>;
|
|
318
324
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
319
325
|
state: z.ZodEnum<{
|
|
326
|
+
done: "done";
|
|
320
327
|
failed: "failed";
|
|
328
|
+
cancelled: "cancelled";
|
|
321
329
|
queued: "queued";
|
|
322
330
|
running: "running";
|
|
323
|
-
done: "done";
|
|
324
|
-
cancelled: "cancelled";
|
|
325
331
|
}>;
|
|
326
332
|
progress: z.ZodNumber;
|
|
327
333
|
files: z.ZodArray<z.ZodString>;
|
|
@@ -339,11 +345,11 @@ export declare const PROJECT_TOOLS: {
|
|
|
339
345
|
types: z.ZodArray<z.ZodString>;
|
|
340
346
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
341
347
|
state: z.ZodEnum<{
|
|
348
|
+
done: "done";
|
|
342
349
|
failed: "failed";
|
|
350
|
+
cancelled: "cancelled";
|
|
343
351
|
queued: "queued";
|
|
344
352
|
running: "running";
|
|
345
|
-
done: "done";
|
|
346
|
-
cancelled: "cancelled";
|
|
347
353
|
}>;
|
|
348
354
|
progress: z.ZodNumber;
|
|
349
355
|
files: z.ZodArray<z.ZodString>;
|
|
@@ -418,10 +424,10 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
418
424
|
}, z.core.$strict>>;
|
|
419
425
|
readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
420
426
|
status: z.ZodEnum<{
|
|
421
|
-
|
|
427
|
+
done: "done";
|
|
422
428
|
failed: "failed";
|
|
429
|
+
off: "off";
|
|
423
430
|
running: "running";
|
|
424
|
-
done: "done";
|
|
425
431
|
waiting: "waiting";
|
|
426
432
|
}>;
|
|
427
433
|
revision: z.ZodInt;
|
|
@@ -455,11 +461,11 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
455
461
|
types: z.ZodArray<z.ZodString>;
|
|
456
462
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
457
463
|
state: z.ZodEnum<{
|
|
464
|
+
done: "done";
|
|
458
465
|
failed: "failed";
|
|
466
|
+
cancelled: "cancelled";
|
|
459
467
|
queued: "queued";
|
|
460
468
|
running: "running";
|
|
461
|
-
done: "done";
|
|
462
|
-
cancelled: "cancelled";
|
|
463
469
|
}>;
|
|
464
470
|
progress: z.ZodNumber;
|
|
465
471
|
files: z.ZodArray<z.ZodString>;
|
|
@@ -470,9 +476,9 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
470
476
|
jobs: z.ZodArray<z.ZodObject<{
|
|
471
477
|
file: z.ZodString;
|
|
472
478
|
status: z.ZodEnum<{
|
|
479
|
+
done: "done";
|
|
473
480
|
failed: "failed";
|
|
474
481
|
running: "running";
|
|
475
|
-
done: "done";
|
|
476
482
|
}>;
|
|
477
483
|
message: z.ZodString;
|
|
478
484
|
share: z.ZodOptional<z.ZodNumber>;
|
|
@@ -483,8 +489,8 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
483
489
|
id: z.ZodString;
|
|
484
490
|
about: z.ZodObject<{
|
|
485
491
|
kind: z.ZodEnum<{
|
|
486
|
-
studio: "studio";
|
|
487
492
|
agent: "agent";
|
|
493
|
+
studio: "studio";
|
|
488
494
|
project: "project";
|
|
489
495
|
piece: "piece";
|
|
490
496
|
plugin: "plugin";
|
|
@@ -504,12 +510,12 @@ export declare const TOOL_NOTIFICATIONS: {
|
|
|
504
510
|
}>;
|
|
505
511
|
name: z.ZodOptional<z.ZodString>;
|
|
506
512
|
state: z.ZodEnum<{
|
|
513
|
+
done: "done";
|
|
507
514
|
failed: "failed";
|
|
515
|
+
cancelled: "cancelled";
|
|
516
|
+
paused: "paused";
|
|
508
517
|
queued: "queued";
|
|
509
518
|
running: "running";
|
|
510
|
-
paused: "paused";
|
|
511
|
-
done: "done";
|
|
512
|
-
cancelled: "cancelled";
|
|
513
519
|
}>;
|
|
514
520
|
completed: z.ZodNumber;
|
|
515
521
|
total: z.ZodOptional<z.ZodNumber>;
|
|
@@ -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{FolderSchema as n,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as
|
|
2
|
+
import{z as e}from"zod";import{FolderSchema as n,PathSchema as t}from"./files.js";import{JobSchema as d}from"./jobs.js";import{PreviewSchema as h}from"./app.js";import{ListedKindSchema as c,ProjectKindSchema as g}from"./kinds.js";import{RPC_ERROR as b,RpcError as f,method as s,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":s(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({id:t,kind:e.string().min(1).optional(),dir:n,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:c.optional()})),kinds:e.array(g).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."),"project/file":s(e.strictObject({path:t}),e.strictObject({item:e.strictObject({id:t,kind:e.string().min(1).optional(),dir:n,entry:t,title:e.string().optional(),groups:e.array(e.string()),kindInfo:c.optional()})}),"A file of the project as it opens in an editor, whether the list names it or not: the item it is, else the file in the editor that opens it by its name (an `editors` contribution's `files`); not found for a file that is not there or that no editor opens."),"items/preview":s(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."),"items/page":s(e.strictObject({item:t,folder:n.optional(),file:t.optional()}),e.strictObject({url:e.string()}),"The address of an item's page, for a frame (a report's page, a website built as files): `folder` served as the root of an origin of its own, the project's files alone (no other address loads), every file the page loads recorded as the item's input, so the item's editors hear `items/changed` when one changes."),"work/add":s(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":s(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":s(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":s(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":s(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":s(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":s(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":s(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":s(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":s(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","project/file":"asleep","items/preview":"asleep","items/page":"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"},"project/file":{files:"the project's files"},"items/preview":{command:"frames"},"items/page":{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(r){return Object.hasOwn(PROJECT_TOOLS,r)?PROJECT_TOOLS[r]:void 0}export function toolCaller(r){return async(p,i,l)=>{const{result:m}=await p["tools/call"]({name:i,arguments:l}),a=r[i]?.result.safeParse(m);if(!a?.success)throw new f(b.internal,`The answer to the tool ${i} is not what the protocol says.`);return a.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."),"items/changed":o(e.strictObject({item:t,paths:e.array(e.string())}),`One of an item's inputs changed (docs/design/item-files.md, "An item's inputs"): a file its build lists, or one its pages loaded.`),"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.")};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Where a turn is recorded, by its trace id: `PUT` as it begins, `PATCH` as it ends. */
|
|
3
|
+
export declare const TURN_PATH = "/api/turns/:traceId";
|
|
4
|
+
export declare const turnPath: (traceId: string) => string;
|
|
5
|
+
/** The most characters of a prompt kept; a longer one is cut there. */
|
|
6
|
+
export declare const TURN_QUERY_AT_MOST = 32000;
|
|
7
|
+
/** The most characters of an error kept. */
|
|
8
|
+
export declare const TURN_ERROR_AT_MOST = 2000;
|
|
9
|
+
/** A turn began: the Host's `PUT turnPath(traceId)`. Strict, as everything the services receive. */
|
|
10
|
+
export declare const TurnStartedSchema: z.ZodObject<{
|
|
11
|
+
at: z.ZodISODateTime;
|
|
12
|
+
agent: z.ZodString;
|
|
13
|
+
sessionId: z.ZodString;
|
|
14
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
query: z.ZodString;
|
|
16
|
+
from: z.ZodEnum<{
|
|
17
|
+
person: "person";
|
|
18
|
+
schedule: "schedule";
|
|
19
|
+
hook: "hook";
|
|
20
|
+
}>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type TurnStarted = z.infer<typeof TurnStartedSchema>;
|
|
23
|
+
/** The most characters of the agent's answer kept; a longer one is cut there. */
|
|
24
|
+
export declare const TURN_ANSWER_AT_MOST = 64000;
|
|
25
|
+
/** The most steps a turn's record keeps; past them, only how many more there were. */
|
|
26
|
+
export declare const TURN_STEPS_AT_MOST = 1000;
|
|
27
|
+
/** The most characters of a step's title kept. */
|
|
28
|
+
export declare const TURN_STEP_TITLE_AT_MOST = 200;
|
|
29
|
+
/**
|
|
30
|
+
* A step the agent took in a turn, as ACP told it (`tool_call`, then its
|
|
31
|
+
* `tool_call_update`s): its kind (`read`, `edit`, `execute`, … or `other`),
|
|
32
|
+
* its title as the agent wrote it, how it ended, when it began and how long
|
|
33
|
+
* it took. Never its input, its output or a file's content.
|
|
34
|
+
*/
|
|
35
|
+
export declare const TurnStepSchema: z.ZodObject<{
|
|
36
|
+
at: z.ZodISODateTime;
|
|
37
|
+
kind: z.ZodString;
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
status: z.ZodString;
|
|
40
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export type TurnStep = z.infer<typeof TurnStepSchema>;
|
|
43
|
+
/** A turn ended: the Host's `PATCH turnPath(traceId)`. */
|
|
44
|
+
export declare const TurnEndedSchema: z.ZodObject<{
|
|
45
|
+
at: z.ZodISODateTime;
|
|
46
|
+
durationMs: z.ZodNumber;
|
|
47
|
+
ended: z.ZodString;
|
|
48
|
+
error: z.ZodOptional<z.ZodString>;
|
|
49
|
+
changed: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
50
|
+
pieces: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
51
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
52
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
at: z.ZodISODateTime;
|
|
54
|
+
kind: z.ZodString;
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
status: z.ZodString;
|
|
57
|
+
ms: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strict>>>;
|
|
59
|
+
moreSteps: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
export type TurnEnded = z.infer<typeof TurnEndedSchema>;
|
|
62
|
+
/** What the server answers either: that it kept it. */
|
|
63
|
+
export declare const TurnAnswerSchema: z.ZodObject<{
|
|
64
|
+
ok: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type TurnAnswer = z.infer<typeof TurnAnswerSchema>;
|
|
67
|
+
/** Cuts a prompt to what is kept. */
|
|
68
|
+
export declare const keptQuery: (text: string) => string;
|
|
69
|
+
/** The trace id a turn's route names. */
|
|
70
|
+
export declare const TurnTraceIdSchema: z.ZodString;
|
|
71
|
+
//# sourceMappingURL=turns.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{z as t}from"zod";import{EventIdSchema as n,EventTraceIdSchema as s,EventWordSchema as o}from"./events.js";export const TURN_PATH="/api/turns/:traceId",turnPath=e=>TURN_PATH.replace(":traceId",e),TURN_QUERY_AT_MOST=32e3,TURN_ERROR_AT_MOST=2e3;const r=t.record(o,t.number().int().min(0).max(1e6)).refine(e=>Object.keys(e).length<=32,"At most 32 words.");export const TurnStartedSchema=t.strictObject({at:t.iso.datetime(),agent:o,sessionId:n,projectId:n.optional(),query:t.string().max(TURN_QUERY_AT_MOST),from:t.enum(["person","schedule","hook"])}),TURN_ANSWER_AT_MOST=64e3,TURN_STEPS_AT_MOST=1e3,TURN_STEP_TITLE_AT_MOST=200,TurnStepSchema=t.strictObject({at:t.iso.datetime(),kind:o,title:t.string().max(TURN_STEP_TITLE_AT_MOST),status:o,ms:t.number().int().min(0).optional()}),TurnEndedSchema=t.strictObject({at:t.iso.datetime(),durationMs:t.number().int().min(0).max(10080*60*1e3),ended:o,error:t.string().max(TURN_ERROR_AT_MOST).optional(),changed:r,pieces:r,answer:t.string().max(TURN_ANSWER_AT_MOST).optional(),steps:t.array(TurnStepSchema).max(TURN_STEPS_AT_MOST).optional(),moreSteps:t.number().int().min(0).optional()}),TurnAnswerSchema=t.object({ok:t.boolean()}),keptQuery=e=>e.length<=TURN_QUERY_AT_MOST?e:e.slice(0,TURN_QUERY_AT_MOST),TurnTraceIdSchema=s;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{isRule as Ge,problem as
|
|
2
|
+
import{isRule as Ge,problem as ke}from"@allyhub/diagnostics";import{contentEdges as Le,STRUCTURE as xe,toFrame as Ue,LAYER_NAME as Be,showLayer as Ae}from"@allyhub/piece";import{fact as Ee,intersect as He}from"@allyhub/video-core";import{backdropRoot as Ke,contentOf as We,holdsAdjustment as Ie}from"@allyhub/image-draw/layer-style";import{isFootage as ie,layerNames as Oe,planStack as Me,resolveTimes as $e,windowOf as je,zOf as Se}from"@allyhub/image-draw/plan";import{realTimers as Xe}from"@allyhub/image-draw/guards";const Ye={captions:()=>[],face:()=>{},faces:()=>[],texts:()=>[]};export{ie as isFootage,Oe as layerNames,Me as planStack,$e as resolveTimes,je as windowOf,Se as zOf};export function layerContexts(g,V,K,Z,v){const{log:W,ledger:N,embed:u,combo:R}=g,{look:F,format:ee,dims:c}=V,G=[[0,0,c.width,c.safe.top],[0,c.height-c.safe.bottom,c.width,c.safe.bottom],[0,0,c.safe.left,c.height],[c.width-c.safe.right,0,c.safe.right,c.height]].filter(n=>n[2]>0&&n[3]>0),w=Le(c),k=[w.left,w.top,w.right-w.left,w.bottom-w.top],te=n=>{if(!v)throw new Error(`"${n}": a page has no film to find it in.`);return v.filmAt(n)};return n=>{const C=n.reads??Ye,P=n.record??(()=>{}),x=n.place,L=n.answers,U={look:F,format:ee,dims:c,combo:n.combo??R,dur:n.dur,asset:o=>W.asset(o),optionalAsset:o=>W.optionalAsset(o),words:n.words,at:n.at,layer:{start:n.start,end:n.end},...n.enter?{enter:n.enter}:{},...n.exit?{exit:n.exit}:{},wait:o=>{N.wait(o)},report:o=>{const l=N.running,I=Ge(o.code)?o.code:"AK-R001",X=l?.part??x?.part;N.ran(ke(I,o.message,{...o.level?{level:o.level}:{},...o.ofPage?{ofPage:!0}:{},...X?{part:X}:{},...l?.t===void 0?{}:{t:l.t}}))},captions:o=>C.captions(o),face:(o,l)=>C.face(o,l),faces:o=>C.faces(o),texts:o=>C.texts(o),covered:G,content:k,video:(o,l)=>K.video(o,l,P),item:(o,l)=>K.video(o,l,P),cameraFor:o=>u?.cameras?.[o]??u?.cameras?.["*"],...u?.sceneryScale===void 0?{}:{sceneryScale:u.sceneryScale},embedded:u!==void 0,get layoutOnly(){return Z.mode==="layout"},realTimers:Xe,...L?{answer:(o,l)=>{L.set(o,l)}}:{}};return x&&Object.defineProperty(U,"film",{enumerable:!0,get:()=>(P("film",String(x.start)),{start:x.start,part:x.part,at:te,...u?.shown?{outer:u.shown}:{}})}),U}}const _e=g=>Math.max(0,g-.4),de=g=>Math.round(g*1e3)/1e3,Ne=g=>Math.round(g*1e6)/1e6;export function compose(g){const{env:V,piece:K,stage:Z,takes:v,film:W,captions:N,footage:u,sound:R}=g,{source:F,options:ee,combo:c,picked:G,ledger:w}=V,{fps:k,format:te,dims:n}=K,{specs:C}=v,{timing:P,windows:x}=W,L=[],U=[],o=[],l=ee.purpose==="play",I=new Set,X=(p,s)=>{const a={};for(const[i,b]of Object.entries(c)){if(!G.has(i)||i===s){a[i]=b;continue}Object.defineProperty(a,i,{enumerable:!0,get:()=>(I.has(`${p}:${i}`)||(I.add(`${p}:${i}`),w.problems.push(ke("AK-X005",`A layer of part ${p} reads ctx.combo.${i}, ${i===xe?"the combo's structure":`the pick of the slot ${i}`}. A part is rendered once and reused in every combo that has it, so it may read only the dimensions${s===void 0?"":` and its own slot (${s})`}. Choose in the output's function instead, and pass the result as a prop.`,{part:p,where:{file:F.file}}))),b)})}return a};for(const[p,s]of C.entries()){const a=P.parts[p];if(!a)continue;const i=a.end-a.start,b=e=>P.at(p,e),Re=N.partWords(s.key),Ce=v.results[p]?.speech,fe=v.inputs[p],le=fe?.placed??[],pe=[...le,...(fe?.anchors??[]).filter(e=>!le.some(t=>t.name===e.name))],Y=v.speechFor(p,a),M=x.get(p),$=x.get(p+1),Pe={...M&&M.before+M.after>0?{enter:{start:-M.before/k,end:M.after/k}}:{},...$&&$.before+$.after>0?{exit:{start:i-$.before/k,end:i+$.after/k}}:{}};let T;if(typeof s.still=="function")T=s.still(i);else if(s.still===void 0){if(T=_e(i),M||$){const e=(M?.after??0)/k,t=i-(($?.before??0)+1)/k;T=Math.max(e,Math.min(T,t))}}else T=b(s.still);let _=Ue(a.start+T,k);(_<a.start||_>=a.end)&&(_=a.start);const se=s.slot??(G.has(s.key)&&s.key!==xe?s.key:void 0),Te=G.size>0?X(s.key,se):c,oe={reads:new Map,captioned:!1},ne=Me(s.layers),{takeAt:ae,planes:B,planeOf:re,overOf:me,order:ue}=ne,ce=s.layers,he=s.post,A=v.videoTakes[p],d={key:s.key,...s.title===void 0?{}:{title:s.title},...se===void 0?{}:{slot:se},layers:Oe(ce),start:a.start,end:a.end,planes:B,still:_,...Y.speech?{speech:Y.speech}:{},...pe.length>0?{anchors:pe.map(e=>({name:e.name,at:de(a.start+b(`@${e.name}`)),...e.end===void 0?{}:{end:de(a.start+b(`@/${e.name}`))}}))}:{},...s.tags?.length?{tags:[...s.tags]}:{},...he?{post:{filter:he.filter}}:{},...s.speechGainDb!==void 0&&s.speechGainDb!==0?{speechGainDb:s.speechGainDb}:{},...A?{plays:{video:A.id,from:A.from,to:A.to}}:{}};L.push(d),R.addSpeech(Y.clips,Y.room);const h=document.createElement("section");h.className="ak-part",h.dataset.key=s.key,h.dataset.format=te,Object.assign(h.style,{position:"absolute",inset:"0",overflow:"hidden"}),Ae(h,!1),Z.el.append(h);const q=new Map;l&&ce.forEach((e,t)=>{if(!ie(e))return;const f=document.createElement("div");f.className="ak-footage-plane",Object.assign(f.style,{position:"absolute",inset:"0",...(me.get(t)??0)>0?{pointerEvents:"none"}:{}}),q.set(t,f)});let E;q.size>0&&ae>=0&&(E=document.createElement("div"),E.className="ak-cutout-plane",Object.assign(E.style,{position:"absolute",inset:"0",pointerEvents:"none"}));const ze={captions:e=>(oe.captioned=!0,N.partCues(a.start,a.end,e)),face:(e,t)=>u.faceAt(s.key,a.start+e,t),faces:e=>u.facesAt(s.key,a.start+e)},H=[],ye=new Map;for(const[e,t]of ce.entries()){const[f,y]=je(t,i,b);if(ie(t)){const D=e===ae,Q=u.plan(t,d,Ce,a.speechAt,f,y,{at:b,cutout:D,over:me.get(e)??0,person:D&&E!==void 0});if(Q&&l){const we=q.get(e)??h,{matteUrl:ve,personOver:De,...Fe}=Q;o.push({...Fe,host:we,...ve===void 0?{}:{cutoutIn:{host:De&&E?E:we,matte:ve}}})}continue}if(t.visible===!1)continue;const r=Se(t),O=re.get(e)??0;B[O]?.layers.push({component:t.component,start:Ne(d.start+f),end:Ne(d.start+Math.max(f,y))});const m=document.createElement("div");m.className="ak-layer",m.dataset.component=t.component,t.key!==void 0&&m.setAttribute(Be,t.key),Object.assign(m.style,{position:"absolute",inset:"0"}),Ae(m,!1),ye.set(e,m);const S=t.times?$e(t.props,t.times,b):t.props,J=H.slice(),ge=new Map,be=g.contexts({dur:i,words:()=>Re,at:b,start:f,end:y,combo:Te,reads:{...ze,texts:D=>g.texts({part:d,el:h},J,D)},record:(D,Q)=>oe.reads.set(D,Q),place:{start:d.start,part:s.key},answers:ge,...Pe});H.push({spec:t,index:e,props:S,el:m,content:We(m,t,be.dims),ctx:be,start:f,end:y,z:r,plane:O,answers:ge})}H.some(e=>Ie(e.spec))&&Ke(h);let z=h,j;if(B.some(e=>e.overlay===!0)){z=document.createElement("div"),j=document.createElement("div"),z.className="ak-picture",j.className="ak-overlays";for(const e of[z,j])Object.assign(e.style,{position:"absolute",inset:"0",overflow:"hidden"}),h.append(e)}ue.forEach((e,t)=>{const f=q.get(e)??ye.get(e);f&&(j&&ne.overlaid(e)?j:z).append(f);const y=re.get(e),r=ue[t+1];E&&y!==void 0&&B[y]?.behindPerson===!0&&(r===void 0||re.get(r)!==y)&&z.append(E)}),R.sfx(s,d,b),A&&R.carry(A.inner,A.from,A.to,d.start,d.key,0);for(const e of H){const t=v.shownBy.get(e.spec);t&&(t.shown.start=d.start+e.start,t.shown.partStart=d.start,t.shown.from=t.from,t.shown.to=t.from+(e.end-e.start)*t.speed,t.shown.speed=t.speed,t.audio!==void 0&&t.speed===1&&R.carry(t.inner,t.from,t.shown.to,d.start+e.start,d.key,t.audio))}B.forEach((e,t)=>{const f=e.layers.filter(r=>r.end>r.start),y=u.placed.flatMap(r=>{if(r.part!==d.key||(r.over??0)<=t)return[];if(!f.some(m=>m.end>r.start&&m.start<r.end))return[];let O;for(const m of r.boxes?r.boxes.map(S=>S.box):[r.box]){const S=He(m,[0,0,n.width,n.height]),J=S?de(S[2]*S[3]/(n.width*n.height)):0;(!O||J>O.frame)&&(O={box:m,frame:J})}return O?[{file:r.file,start:r.start,end:r.end,...O}]:[]});y.length!==0&&w.facts.push(Ee("graphics-under-footage",{piece:F.piece,part:s.key,t:d.start},{layers:f,footage:y,covered:Math.max(...y.map(r=>r.frame))}))}),ne.hasBehind&&ae<0&&w.facts.push(Ee("fallback",{piece:F.piece,part:s.key},{missing:"own-footage",for:"behind-person",fallback:"in-front"})),U.push({part:d,spec:s,n:p,el:h,picture:z,...j?{overlays:j}:{},layers:H,record:oe})}return{parts:L,mounted:U,clips:o}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{LAYER_BRAND as _}from"@allyhub/piece";import{forOrient as N,isPieceDefinition as
|
|
2
|
+
import{LAYER_BRAND as _,itemSource as q,pieceOfValue as A}from"@allyhub/piece";import{runtimeOf as M}from"@allyhub/piece/page";import{forOrient as N,isPieceDefinition as B,momentOf as S,outputName as L}from"@allyhub/video-core";import{LoadFailure as k}from"@allyhub/image-draw/errors";export const momentIn=(n,e)=>typeof e=="number"?e:S(n.timeline,e);export function momentOfItem(n,e){const u=/^(.+)\/(\d+)$/u.exec(e),c=u===null?void 0:n.timeline.parts.find(f=>f.key===u[1]);if(u===null||c===void 0)return S(n.timeline,e);const y=Number(u[2]),m=c.steps??[c.start],h=m[y];if(h===void 0)throw new Error(`${e}: ${c.key} has ${String(m.length-1)} builds after it comes on.`);return h}export const camerasOf=n=>n?.cameras??(n?.camera===void 0?void 0:{"*":n.camera});const P=n=>typeof n.timeline=="object";function C(n,e){const u=e.written?.file;if(!(u===void 0||u===""))return Object.entries(n.pieces??{}).find(([,c])=>c.file===u)}export function createEmbedder(n,e,u){const{source:c,options:y,embed:m,combo:h}=n,f=[],l=[...m?.chain??[],c.piece],w=o=>Object.fromEntries(Object.entries(o).map(([r,a])=>{const d=h[r];return[r,d!==void 0&&a.includes(d)?d:a[0]??""]})),g=async(o,r,a)=>{const d=o.parentNode,s=o.nextSibling,i=document.createElement("div");i.dataset.akHolder="",Object.assign(i.style,{position:"absolute",left:"0px",top:"0px",visibility:"hidden",pointerEvents:"none"}),e.el.append(i),i.append(o),o.dataset.akPiece=r;try{return await a()}finally{e.takeOutside(),d?d.insertBefore(o,s):o.remove(),e.takeOutside(),i.remove()}},v=async(o,r,a)=>{const d=q(c,o),s=r.kind===void 0?void 0:M(r.kind);if(!d||!s)throw new k("bad_video",d?`${r.file} is a ${r.kind??"kind"} the stage has no runtime for.`:`${r.file} is not drawn in ${c.piece}: the build finds an item a video draws by its import in the video's module or a module of the project it imports (import q3 from "../decks/q3").`);const i=await g(a,r.file,async()=>{const p=await s(d,{combo:w(r.dims),purpose:y.purpose,inside:c.piece},a);return await p.ready(),p});if(!P(i))throw new k("bad_video",`${r.file} is a ${i.kind}, which is not drawn on a clock a video can seek.`);const t={id:o,output:i.kind,format:d.format,inner:i};return f.push(t),t},b={loaded:f,async load(o,r,a={}){const d=B(o),s=d?C(c,o):A(c,o);if(!s)throw new k("bad_video",'An item of the project is shown by what its module exports, imported (import demo from "../demo/video", import q3 from "../decks/q3") and passed as it is.');const[i,t]=s;if(l.includes(i))throw new k("video_cycle",`${[...l,i].join(" → ")}: a video item that shows itself, through the videos it shows (AK-M010). A source cannot reach itself.`);if(!d)return v(i,t,r);const p=L(o.kind),x=a.frame===!0?c.format:t.format,j=w(t.dims),E=await g(r,t.file,async()=>{const O=await u({...c,piece:i,file:t.file,module:"",styles:[],dims:t.dims,format:x,...t.matrix?{matrix:t.matrix}:{}},{combo:j,purpose:y.purpose},r,{def:o,chain:l,...a.cameras?{cameras:a.cameras}:{},...a.shown?{shown:a.shown}:{},...a.sceneryScale===void 0?{}:{sceneryScale:a.sceneryScale}});return await O.ready(),O}),$={id:i,output:p,format:x,inner:E};return f.push($),$},async video(o,r,a){const{id:d,output:s,format:i,inner:t}=await b.load(o,r);return a(`video:${d}:${s}:${i}`,JSON.stringify(t.signs())),{id:d,kind:t.kind,duration:t.timeline.duration,width:t.timeline.width,height:t.timeline.height,seek:(p,x)=>t.seek(p,{mode:x===!0?"layout":"picture"}),at:p=>momentOfItem(t,p)}}};return b}export const isBoxKeys=n=>Array.isArray(n)&&n.length>0&&typeof n[0]=="object";export function videoLayer(n,e,u,c,y){const{inner:m,host:h}=u,f=m.timeline.width,l=m.timeline.height,w=N(e.box,n.orient);if(isBoxKeys(w))throw new k("bad_footage",'footage() of a video item takes one box (or "full"), not keyframes.');const[g,v,b,o]=w===void 0||w==="full"?[0,0,1,1]:w,r=e.fit??"cover",a=e.cameras??(e.camera===void 0?void 0:e.camera);return{[_]:"graphic",component:"video",...e.at===void 0?{}:{at:e.at},...e.until===void 0?{}:{until:e.until},...e.dur===void 0?{}:{dur:e.dur},props:{...y,box:[g,v,b,o],fit:r,...a===void 0?{}:{camera:a},...e.quality?{quality:e.quality}:{},parts:m.signs()},mount(d){const s={x:g*n.width,y:v*n.height,w:b*n.width,h:o*n.height},i=r==="contain"?Math.min(s.w/f,s.h/l):Math.max(s.w/f,s.h/l),t=document.createElement("div");Object.assign(t.style,{position:"absolute",left:`${String(s.x)}px`,top:`${String(s.y)}px`,width:`${String(s.w)}px`,height:`${String(s.h)}px`,overflow:"hidden"}),Object.assign(h.style,{position:"absolute",left:`${String((s.w-f*i)/2)}px`,top:`${String((s.h-l*i)/2)}px`,width:`${String(f)}px`,height:`${String(l)}px`,transformOrigin:"0 0",transform:`scale(${String(i)})`}),t.appendChild(h),d.appendChild(t)},render(d,s,i,t){const p=Math.min(Math.max(c(s,t),0),Math.max(0,m.timeline.duration-.001)),x=t.layoutOnly===!0?"layout":"picture";t.wait(Promise.resolve().then(()=>m.seek(p,{mode:x})))}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{startPlayer as c}from"./player/player.js";export function startAt(t
|
|
2
|
+
import{mergePlans as i}from"@allyhub/audio";import{startPlayer as c}from"./player/player.js";export function startAt(n,t){let e=t?.t;const r=t?.part===void 0?void 0:n.parts.find(d=>d.key===t.part);if(r){const d=r.end-r.start,a=t?.offset??0,m=t?.dur,f=m===void 0||Math.abs(d-m)<1e-6;e=r.start+(f?a:a/Math.max(m,1e-6)*d),e=Math.min(e,r.end-1/n.fps)}return e}export async function playFilm(n,t,e,r){const d=n.timeline;e.post?.({type:"loaded",kind:n.kind,timeline:d,text:n.text(),reads:n.reads(),problems:n.problems(),mix:r===void 0||r.length===0?n.mixPlan():i(n.mixPlan(),r)});const a=startAt(d,e.at),m=await c({output:n,stage:t,...e.media?{media:e.media}:{},...e.seed===void 0?{}:{seed:e.seed},...a===void 0?{}:{start:a},...e.post?{post:e.post}:{},...e.chrome===void 0?{}:{chrome:e.chrome},...r===void 0||r.length===0?{}:{sounds:r}});return{command(f){m.command(f)}}}export function answerFilm(n,t){if(t.type==="objects")return n.objects(Number(t.t)).then(e=>({type:"objects",...e}))}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{problem as
|
|
3
|
-
${
|
|
2
|
+
import{problem as b}from"@allyhub/diagnostics";import{CLEAN_LOOK as $,FPS as L,formatEntry as S,formatInfo as g,isVideoFormat as _,LOAD_LIMIT as x,messagePrefix as I,parseFps as A,presetInfo as P,SEEK_LIMIT as E}from"@allyhub/piece";import{isLayerSpec as T,isPartSpec as K,isPieceDefinition as F,isSpeechSpec as D,outputOf as h,partDefaults as M}from"@allyhub/video-core";import{consoleAtAsync as y}from"@allyhub/piece/page";import{buildContext as O}from"@allyhub/image-draw/context";import{LoadFailure as d}from"@allyhub/image-draw/errors";function v(i){const e=new Set([...document.querySelectorAll("link[rel=stylesheet]")].map(s=>s.href));return Promise.all(i.filter(s=>!e.has(new URL(s,document.baseURI).href)).map(s=>new Promise(n=>{const o=document.createElement("link");o.rel="stylesheet",o.href=s,o.onload=()=>{n()},o.onerror=()=>{n()},document.head.append(o)})))}async function C(i){const{source:e,embed:s,ledger:n}=i;let o=s?.def;if(!s){let r;try{await v(e.styles??[]),r=await n.timed("importing the piece's module",()=>y({phase:"module"},()=>import(e.module)))}catch(a){const c=a instanceof Error?a:new Error(String(a));throw new d("load_failed",`Failed to load the piece module: ${c.message}
|
|
3
|
+
${c.stack??""}`)}o=r.default}if(!F(o))throw new d("no_content",`The default export of ${e.file} is not a video({ … }).`);return{def:o}}export async function resolvePiece(i){const{source:e,log:s}=i,{def:n}=await C(i),o=h(n),r=n.written?.file,a=r!==void 0&&r!==""?r:e.file;a!==e.file&&s.relativeTo(a);const c=o.kind;if(c!=="video")throw new d("bad_output",`${e.piece} is ${c}; load() loads a video (a deck is the deck's runtime's).`);const f=o.options,l=A(f.fps)??L,p=i.embed?.frame;if(p===void 0&&!_(e.format))throw new d("bad_format",`${e.piece} is not rendered in ${e.format}: it is not a format.`);const t=e.format,m=S(n.format===void 0?[]:[n.format],t)??t,u=p??g(m)??P("16x9"),w=I(e.piece),k=f.look??"clean";return{def:n,options:f,fps:l,format:t,dims:u,prefix:w,look:e.looks?.[k]??$,defaults:M(e.partDefaults,f.defaults?.part),writtenIn:a,musicBase:n.written?.paths?.music?.[1]??a.split("/").slice(0,-1).join("/"),seekLimitMs:(f.seekLimit??E)*1e3,loadLimitMs:(f.loadLimit??x)*1e3}}export function pieceContext(i,e){return{...O(i),look:e.look}}export async function buildParts(i,e,s){const{source:n,ledger:o}=i,r="part",a=h(e.def),c=await y({phase:"build"},()=>Promise.resolve(a.build(s)));if(!Array.isArray(c)||c.length===0)throw new d("no_parts",`The function of output ${i.output} returned no ${r}s (AK-K003).`);const f=[],l=new Set;for(const[p,t]of c.entries()){if(!K(t))throw new d("bad_part",`Item ${String(p+1)} is not a ${r} made by part({ key, layers }).`);const m=t.layers.findIndex(u=>!T(u));if(m>=0)throw new d("bad_part",`Layer ${String(m+1)} of ${r} ${t.key} is not a layer made by footage(), a component or custom().`);if(t.speech!==void 0&&!D(t.speech))throw new d("bad_part",`The speech of ${r} ${t.key} is not made by take() or say().`);if(l.has(t.key)){o.problems.push(b("AK-K001",`The ${r} key "${t.key}" is used twice. Every ${r} in an output needs its own key.`,{part:t.key,where:{file:n.file}}));continue}l.add(t.key),f.push(t)}return f}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{decodeKey as J,decodings as
|
|
2
|
+
import{mergePlans as Le,decodeKey as J,decodings as Oe,MASTER_DEFAULTS as Be,previewMaster as De,renderMix as Ue}from"@allyhub/audio";import{mixPlan as Ie,partOnScreen as Ke,subtitleCues as He}from"@allyhub/video-core";import{realNow as F,realRaf as Se,realTimeout as We}from"@allyhub/image-draw/guards";export const RESUME_WAIT_MS=400;const ce=o=>`${String(Math.floor(o/60))}:${String(Math.floor(o%60)).padStart(2,"0")}`;export async function startPlayer(o){const{output:M,stage:d}=o,s=M.timeline,f=s.fps,B=s.duration,k=B-1/f,a=new AudioContext,Q=a.createGain();Q.connect(a.destination);const V=o.media??{},$e=o.seed??"",Y=Le(Ie(s,V,{seed:$e}),o.sounds??[]),ee=async e=>{if(e)try{const t=await fetch(e);return t.ok?await a.decodeAudioData(await t.arrayBuffer()):void 0}catch{return}},Ae=(e,t)=>{const n=V[e]?.denoisedUrl,i=[...t.denoise?[`db=${t.denoise.toFixed(2)}`]:[],...t.speed===void 0?[]:[`speed=${t.speed.toFixed(6)}`],...t.filter===void 0?[]:[`filter=${encodeURIComponent(t.filter)}`]];return n===void 0||i.length===0?void 0:`${n}?${i.join("&")}`},te=new Map,D=new Map,ne=[],de=Oe(Y);for(const{file:e,how:t}of de){const n=Ae(e,t);if(n){const i=await ee(`${n}&wait=0`);i?D.set(J(e,t),i):ne.push({key:J(e,t),url:n})}}for(const{file:e,how:t}of de)te.has(e)||D.has(J(e,t))||te.set(e,await ee(V[e]?.url));const ue=e=>{const t=e.getChannelData(0);return[t,e.numberOfChannels>1?e.getChannelData(1):t]},Ce=(e,t)=>{const n=D.get(J(e,t));if(n)return{src:ue(n),made:t};const i=te.get(e);return i?{src:ue(i),made:{}}:void 0},Ee=s.audio.master??{...Be};let S;const pe=()=>{const e=De(Ue(Y,Ce,a.sampleRate),a.sampleRate,Ee);if(!e){S=void 0;return}const[t,n]=e,i=a.createBuffer(2,Math.max(1,t.length),a.sampleRate);i.getChannelData(0).set(t),i.getChannelData(1).set(n),S=i};pe();const $=He({lines:M.lines(),fps:s.fps},M.captionOptions()??void 0);let l=!1,x=Math.min(Math.max(o.start??s.parts[0]?.still??0,0),k),b=0,U=0,I=0,N=0,K=[],se=[],A=!1,H={ctx:0,real:0};const u=()=>l?A?b+(a.currentTime-U):b+(F()-I)/1e3:x,Te=()=>{if(!A)return;const e=F();if(a.currentTime!==H.ctx)H={ctx:a.currentTime,real:e};else if(e-H.real>300){const t=u();A=!1,b=t,I=e}},fe=o.chrome!==!1,R="#141210",C="#ece6da",Pe="#a39a8b",ge='ui-monospace,"SF Mono",Menlo,monospace';document.documentElement.style.background=R,document.body.style.cssText=`margin:0;background:${R};overflow:hidden;font:13px/1 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;color:${C}`;const g=document.createElement("div");g.style.cssText=`position:fixed;left:0;right:0;top:0;bottom:${fe?"48px":"0"};overflow:hidden;cursor:pointer;font:initial;color:initial`,d.parentElement?.insertBefore(g,d),g.append(d),d.style.position="absolute",d.style.transformOrigin="0 0";const L=document.createElement("div");L.style.cssText=`position:fixed;left:0;right:0;bottom:0;height:48px;display:flex;align-items:center;gap:12px;padding:0 10px;background:${R};border-top:1px solid #2a2622`;const E=document.createElement("button");E.style.cssText=`width:32px;height:32px;border:0;border-radius:4px;background:${C};color:${R};cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none`,E.setAttribute("aria-label","play");const c=document.createElement("input");c.type="range",c.min="0",c.max=String(Math.round(B*f)),c.step="1",c.style.cssText=`flex:1;min-width:0;accent-color:${C};cursor:pointer`;const ie=document.createElement("span");ie.style.cssText=`font:12px/1 ${ge};font-variant-numeric:tabular-nums;min-width:86px;text-align:right;color:${Pe}`;const me=`height:28px;padding:0 9px;border:1px solid #3a352e;border-radius:4px;background:transparent;color:${C};font:12px/1 ${ge};cursor:pointer;flex:none`,v=document.createElement("button");v.textContent="CC",v.style.cssText=me,v.setAttribute("aria-label","captions"),v.setAttribute("aria-pressed","false");const m=document.createElement("button");m.textContent="Pages",m.style.cssText=me,m.setAttribute("aria-label","page by page"),m.setAttribute("aria-pressed","false"),L.setAttribute("role","toolbar"),c.setAttribute("aria-label","seek"),L.append(E,c,ie,m),$.length&&L.append(v),fe&&document.body.append(L);const Fe=()=>{const e=Math.min(g.clientWidth/s.width,g.clientHeight/s.height);d.style.transform=`scale(${String(e)})`,d.style.left=`${String((g.clientWidth-s.width*e)/2)}px`,d.style.top=`${String((g.clientHeight-s.height*e)/2)}px`},W=s.width,_=s.height,j=Math.min(W,_)/1080,T=document.createElement("div");T.style.cssText=`position:absolute;left:0;top:0;width:${String(W)}px;height:${String(_)}px;transform-origin:0 0;pointer-events:none`;const h=document.createElement("div");h.setAttribute("role","status"),h.setAttribute("aria-live","polite"),h.style.cssText=`position:absolute;left:50%;transform:translateX(-50%);bottom:${String((_>W?.2:.08)*_)}px;max-width:${String(W*.84)}px;padding:${String(10*j)}px ${String(22*j)}px;border-radius:${String(12*j)}px;background:rgba(0,0,0,.66);color:#fff;font:600 ${String(44*j)}px/1.3 system-ui,-apple-system,"PingFang SC","Noto Sans SC",sans-serif;text-align:center;display:none`,T.append(h),g.append(T);let w=!1;const he=e=>{const t=w?$.find(n=>e>=n.start&&e<n.end):void 0;t?(h.textContent!==t.text&&(h.textContent=t.text),h.style.display="block"):h.style.display="none"},ye=()=>{Fe(),T.style.transform=d.style.transform,T.style.left=d.style.left,T.style.top=d.style.top};new ResizeObserver(ye).observe(g),ye();let p=M.kind==="slides"?"page":"play",r=0,y;const q=e=>Math.max(0,s.parts.findIndex(t=>e>=t.start&&e<t.end));p==="page"&&(r=q(x),m.setAttribute("aria-pressed","true"),m.textContent="Play all");let ae=-1,xe=0,be=0;const Ne=e=>Ke(s.parts,s.transitions,e,f),G=async(e,t=!1)=>{const n=Math.min(Math.floor(e*f+1e-9),Math.round(k*f));(n!==ae||t)&&(ae=n,await M.seek(n/f),c.value=String(n),c.setAttribute("aria-valuetext",ce(e)),ie.textContent=`${ce(e)} / ${ce(B)}`),he(e);const i=F();(t||i-be>250)&&(be=i,o.post?.({type:"time",t:e,part:Ne(e),playing:l,mode:p}))},ve={play:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><path d="M1 1.2v11.6a.6.6 0 0 0 .9.5l9.6-5.8a.6.6 0 0 0 0-1L1.9.7a.6.6 0 0 0-.9.5Z" fill="currentColor"/></svg>',pause:'<svg width="12" height="14" viewBox="0 0 12 14" aria-hidden="true"><rect x="1" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/><rect x="7.5" y="1" width="3.5" height="12" rx=".6" fill="currentColor"/></svg>'},oe=()=>{E.innerHTML=l?ve.pause:ve.play,E.setAttribute("aria-label",l?"pause":"play")},we=()=>{for(const e of K)try{e.stop()}catch{}K=[];for(const e of se)e.disconnect();se=[]},Re=e=>U+Math.max(0,e-b);function Me(){if(!S||b>=S.duration)return;const e=a.createGain();e.connect(Q),se.push(e);const t=a.createBufferSource();t.buffer=S,t.connect(e),K.push(t),t.start(Re(b),b)}function P(e=u()){N++,l=!1,M.setPlaying(!1),x=Math.min(Math.max(e,0),k),we(),oe(),G(x,!0)}async function re(){const e=++N;if(x>=k&&(x=0),await Promise.race([a.resume().catch(()=>{}),new Promise(n=>{We(n,RESUME_WAIT_MS)})]),e!==N)return;b=x,U=a.currentTime+.05,I=F()+50,A=S!==void 0&&a.state==="running",!A&&$.length&&!X&&Z(!0),H={ctx:a.currentTime,real:F()},l=!0,M.setPlaying(!0),oe(),Me();const t=()=>{if(xe++,!l||e!==N)return;Te();const n=u();if(n>=k){P(k);return}if(y!==void 0&&n>=y){const i=s.parts[r]?.still??y;y=void 0,P(i);return}G(n),Se(t)};Se(t)}function z(e){const t=l;y=void 0,P(e),t&&re()}let X=!1;function Z(e){w=e&&$.length>0,v.setAttribute("aria-pressed",String(w)),v.style.background=w?C:"transparent",v.style.color=w?R:C,he(u())}function ke(e){p=e,m.setAttribute("aria-pressed",String(e==="page")),m.textContent=e==="page"?"Play all":"Pages",y=void 0,e==="page"?O(q(u())):G(u(),!0)}function O(e){r=Math.min(Math.max(e,0),s.parts.length-1),y=void 0,P(s.parts[r]?.still??0)}function le(){if(l){y=void 0,P();return}if(p==="page"){const e=s.parts[r];e&&(x=e.start,y=e.end-1/f)}re()}return E.addEventListener("click",e=>{e.stopPropagation(),le()}),g.addEventListener("click",le),c.addEventListener("input",()=>{z(Number(c.value)/f),p==="page"&&(r=q(Number(c.value)/f))}),v.addEventListener("click",e=>{e.stopPropagation(),X=!0,Z(!w)}),m.addEventListener("click",e=>{e.stopPropagation(),ke(p==="page"?"play":"page")}),addEventListener("keydown",e=>{if(!(e.metaKey||e.ctrlKey||e.altKey)){if(e.key===" "||e.key==="k")le();else if(e.key==="ArrowRight")p==="page"?O(r+1):z(u()+5);else if(e.key==="ArrowLeft")p==="page"?O(r-1):z(u()-5);else if(e.key==="c"&&$.length)X=!0,Z(!w);else if(e.key==="f")document.fullscreenElement?document.exitFullscreen():document.documentElement.requestFullscreen().catch(()=>{});else return;e.preventDefault()}}),oe(),await G(x,!0),o.post?.({type:"ready",duration:B,parts:s.parts}),ne.length>0&&(o.post?.({type:"sound",denoising:!0}),Promise.all(ne.map(async({key:e,url:t})=>{const n=await ee(t);if(!n||(D.set(e,n),pe(),!l))return;const i=u();we(),b=i,U=a.currentTime,I=F(),Me()})).then(()=>{o.post?.({type:"sound",denoising:!1})})),{command(e){if(e.type==="play"){if(!l){if(p==="page"){const t=s.parts[r];t&&(y=t.end-1/f)}re()}}else e.type==="pause"?P():e.type==="seek"&&Number.isFinite(e.t)?(z(e.t),p==="page"&&(r=q(e.t))):e.type==="mode"?ke(e.mode):e.type==="next"?O(r+1):e.type==="prev"?O(r-1):e.type==="captions"?(X=!0,Z(e.on)):e.type==="volume"&&Number.isFinite(e.level)&&(Q.gain.value=Math.min(1,Math.max(0,e.level)))},now:u,state:()=>({playing:l,audioClock:A,audio:a.state,t:u(),frame:ae,ticks:xe,generation:N,sounds:K.length,sfx:Y.sfx.length,mode:p,page:r,captions:w,caption:h.style.display==="none"?"":h.textContent,cues:$.length})}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdir as c,readFile as m,writeFile as d}from"node:fs/promises";import{basename as f,join as
|
|
2
|
+
import{mkdir as c,readFile as m,writeFile as d}from"node:fs/promises";import{basename as f,join as a,resolve as h}from"node:path";export const PROJECT_PACKAGES={cli:"allyhub",sdk:"@allyhub/sdk"},PROJECT_TYPESCRIPT="~5.9.3",PROJECT_GITIGNORE=`node_modules/
|
|
3
3
|
.allyhub/
|
|
4
4
|
.playwright-cli/
|
|
5
|
-
`,REGISTRY="https://allyhub.com/r",MASTER_SKILL="allyhub";export function workSkills(s){return s.filter(e=>e.type==="allyhub:skill"&&e.name!==MASTER_SKILL).map(e=>({name:e.name,description:e.description.replaceAll(/\s+/gu," ").trim()}))}export const AGENT_RULES_BEGIN="<!-- BEGIN:allyhub-agent-rules -->",AGENT_RULES_END="<!-- END:allyhub-agent-rules -->";export function agentRules(){return[AGENT_RULES_BEGIN,"",`Before writing or changing a piece (a video, a deck, an image, a doc, a sheet, a 3D scenery or model), read the files it needs in the SDK's docs, for the version this project builds with: \`node_modules/${PROJECT_PACKAGES.sdk}/docs/\` once the project has installed it, its \`README.md\` saying what each file covers; without it, \`allyhub help\` says where they are (the SDK the CLI lends). The
|
|
5
|
+
`,REGISTRY="https://allyhub.com/r",MASTER_SKILL="allyhub";export function workSkills(s){return s.filter(e=>e.type==="allyhub:skill"&&e.name!==MASTER_SKILL).map(e=>({name:e.name,description:e.description.replaceAll(/\s+/gu," ").trim()}))}export const AGENT_RULES_BEGIN="<!-- BEGIN:allyhub-agent-rules -->",AGENT_RULES_END="<!-- END:allyhub-agent-rules -->";export function agentRules(){return[AGENT_RULES_BEGIN,"",`Before writing or changing a piece (a video, a deck, an image, a doc, a sheet, a 3D scenery or model), read the files it needs in the SDK's docs, for the version this project builds with: \`node_modules/${PROJECT_PACKAGES.sdk}/docs/\` once the project has installed it, its \`README.md\` saying what each file covers; without it, \`allyhub help\` says where they are (the SDK the CLI lends). The docs and the SDK's types describe the API as it is now: follow them over what you remember.`,"","`allyhub help` lists AllyHub's commands (`npx allyhub help` once the project has installed it); `allyhub help <command>` says what one does.","","`allyhub skills` lists AllyHub's work skills, each how to make one kind of work; `allyhub skills show <name>` prints one, `allyhub add skill/<name>` adds it to this project.","",AGENT_RULES_END].join(`
|
|
6
6
|
`)}export function projectAgents(){return`# AllyHub project
|
|
7
7
|
|
|
8
8
|
This folder is an AllyHub project. Videos, decks, images, 3D sceneries and 3D models are TypeScript, docs MDX, sheets YAML and CSV, a canvas JSON Canvas, and a website any web project; their files are yours to name and lay out as suits the project, and a model is made once and put in any scenery that imports it. \`${WORK_FILE}\` lists the work a person sees, in the order they see it: each piece's \`kind\` (\`video\`, \`slides\`, \`image\`, \`doc\`, \`sheet\`, \`scenery\`, \`model\`, \`website\`; none for a \`.canvas\`, which its editor opens by its name), its \`file\` from this folder and, if its file says none, a \`title\`, under \`group\` headings if you like. List a piece when you make it; a file not listed (a scenery a video imports, a helper, a draft) is yours alone.
|
|
@@ -13,5 +13,5 @@ ${agentRules()}
|
|
|
13
13
|
`}export const PROJECT_CLAUDE=`@AGENTS.md
|
|
14
14
|
`,WORK_FILE="allyhub.yaml",PROJECT_WORK=`work: []
|
|
15
15
|
`,PROJECT_TSCONFIG=`${JSON.stringify({compilerOptions:{target:"ES2022",module:"ESNext",moduleResolution:"Bundler",lib:["ES2022","DOM","DOM.Iterable"],types:[`${PROJECT_PACKAGES.sdk}/client`,`${PROJECT_PACKAGES.cli}/client`],strict:!0,noEmit:!0,skipLibCheck:!0,verbatimModuleSyntax:!0,allowImportingTsExtensions:!0},include:["**/*.ts",".allyhub/cache/types"],exclude:["node_modules"]},null,2)}
|
|
16
|
-
`;export function packageName(s){const e=s.toLowerCase().normalize("NFKD").replace(/\p{M}/gu,"").replace(/[^\w.-]+/gu,"-").replace(/^[-._]+|[-._]+$/gu,"").slice(0,214);return e===""?"allyhub-project":e}const r=s=>m(s).then(()=>!0,()=>!1);export async function writeAgentFiles(s){const e=h(s);await c(e,{recursive:!0});const t=[];for(const[
|
|
17
|
-
`],["tsconfig.json",PROJECT_TSCONFIG],[".gitignore",PROJECT_GITIGNORE]];await c(t,{recursive:!0});const l=[];for(const[
|
|
16
|
+
`;export function packageName(s){const e=s.toLowerCase().normalize("NFKD").replace(/\p{M}/gu,"").replace(/[^\w.-]+/gu,"-").replace(/^[-._]+|[-._]+$/gu,"").slice(0,214);return e===""?"allyhub-project":e}const r=s=>m(s).then(()=>!0,()=>!1);export async function writeAgentFiles(s){const e=h(s);await c(e,{recursive:!0});const t=[];for(const[o,i]of[["AGENTS.md",projectAgents()],["CLAUDE.md",PROJECT_CLAUDE],[WORK_FILE,PROJECT_WORK]])await r(a(e,o))||(await d(a(e,o),i,{flag:"wx"}),t.push(o));return t}export async function startProject(s,e){const t=h(s);if(await r(a(t,"package.json")))throw new Error(`${t} already has a package.json: add AllyHub to it with npm install ${PROJECT_PACKAGES.cli} ${PROJECT_PACKAGES.sdk}.`);const o=packageName(f(t)),i=n=>e.packages?.[n]??e.version,p={name:o,version:"0.0.0",private:!0,type:"module",scripts:{dev:"allyhub dev",check:"allyhub check",render:"allyhub render",typecheck:"tsc --noEmit"},dependencies:{[PROJECT_PACKAGES.cli]:i(PROJECT_PACKAGES.cli),[PROJECT_PACKAGES.sdk]:i(PROJECT_PACKAGES.sdk)},devDependencies:{typescript:PROJECT_TYPESCRIPT}},u=[["package.json",`${JSON.stringify(p,null,2)}
|
|
17
|
+
`],["tsconfig.json",PROJECT_TSCONFIG],[".gitignore",PROJECT_GITIGNORE]];await c(t,{recursive:!0});const l=[];for(const[n,y]of u)await r(a(t,n))||(await d(a(t,n),y,{flag:"wx"}),l.push(n));return l.push(...await writeAgentFiles(t)),{folder:t,name:o,files:l}}
|