@sixb/core 0.2.7 → 0.2.8
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/dist/actions/index.js +52 -49
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/context.d.ts.map +1 -1
- package/dist/actions/run/execute.d.ts +3 -0
- package/dist/actions/run/execute.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +3 -0
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/run/normalize.d.ts.map +1 -1
- package/dist/actions/run/types.d.ts +6 -0
- package/dist/actions/run/types.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +7 -0
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/context/entries.d.ts +17 -0
- package/dist/agents/context/entries.d.ts.map +1 -1
- package/dist/agents/context/index.js +3 -2
- package/dist/agents/context/index.js.map +1 -1
- package/dist/agents/context-model.d.ts.map +1 -1
- package/dist/agents/context-resolution.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +7 -0
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/index.js +57 -54
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-call-retry.d.ts +28 -0
- package/dist/agents/model-call-retry.d.ts.map +1 -0
- package/dist/agents/model-loop.d.ts +4 -2
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +2 -0
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-plan.d.ts +1 -1
- package/dist/agents/run-plan.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session-wire.d.ts +6 -0
- package/dist/agents/run-session-wire.d.ts.map +1 -1
- package/dist/agents/thread-access.d.ts +13 -0
- package/dist/agents/thread-access.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/artifacts/caller.d.ts +10 -0
- package/dist/artifacts/caller.d.ts.map +1 -0
- package/dist/artifacts/comment-place.d.ts +26 -0
- package/dist/artifacts/comment-place.d.ts.map +1 -0
- package/dist/artifacts/comment-text.d.ts +12 -4
- package/dist/artifacts/comment-text.d.ts.map +1 -1
- package/dist/artifacts/comments.d.ts +8 -2
- package/dist/artifacts/comments.d.ts.map +1 -1
- package/dist/artifacts/errors.d.ts +1 -1
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/execution.d.ts +73 -5
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +27 -7
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/entries.d.ts +5 -4
- package/dist/artifacts/frames/entries.d.ts.map +1 -1
- package/dist/artifacts/frames/hyperframes.d.ts +12 -0
- package/dist/artifacts/frames/hyperframes.d.ts.map +1 -0
- package/dist/artifacts/frames/index.d.ts +3 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +20 -6
- package/dist/artifacts/frames/index.js.map +3 -3
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +33 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/video-runtime.d.ts +21 -0
- package/dist/artifacts/frames/video-runtime.d.ts.map +1 -0
- package/dist/artifacts/html.d.ts +23 -0
- package/dist/artifacts/html.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +5 -3
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +71 -10
- package/dist/artifacts/index.js.map +4 -4
- package/dist/artifacts/kinds.d.ts +1 -1
- package/dist/artifacts/kinds.d.ts.map +1 -1
- package/dist/artifacts/limits.d.ts +37 -0
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts.map +1 -1
- package/dist/artifacts/live/index.d.ts +6 -2
- package/dist/artifacts/live/index.d.ts.map +1 -1
- package/dist/artifacts/live/index.js +3432 -13
- package/dist/artifacts/live/index.js.map +6 -3
- package/dist/artifacts/live/presence.d.ts +7 -5
- package/dist/artifacts/live/presence.d.ts.map +1 -1
- package/dist/artifacts/live/protocol.d.ts +4 -2
- package/dist/artifacts/live/protocol.d.ts.map +1 -1
- package/dist/artifacts/live/server.d.ts +1 -1
- package/dist/artifacts/live/server.d.ts.map +1 -1
- package/dist/artifacts/live/server.js +36 -31
- package/dist/artifacts/live/server.js.map +1 -1
- package/dist/artifacts/live/state.d.ts +2 -2
- package/dist/artifacts/media/media.d.ts +96 -0
- package/dist/artifacts/media/media.d.ts.map +1 -0
- package/dist/artifacts/media/transcriber.d.ts +29 -0
- package/dist/artifacts/media/transcriber.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +26 -1
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/files.d.ts +5 -2
- package/dist/artifacts/publish/files.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +11 -2
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +110 -33
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/pdf.d.ts.map +1 -1
- package/dist/artifacts/publish/previews.d.ts +7 -2
- package/dist/artifacts/publish/previews.d.ts.map +1 -1
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/html.d.ts +5 -4
- package/dist/artifacts/publish/validate/html.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/video.d.ts +36 -0
- package/dist/artifacts/publish/validate/video.d.ts.map +1 -0
- package/dist/artifacts/publish/video.d.ts +79 -0
- package/dist/artifacts/publish/video.d.ts.map +1 -0
- package/dist/artifacts/resolve.d.ts +9 -0
- package/dist/artifacts/resolve.d.ts.map +1 -1
- package/dist/artifacts/video/composition.d.ts +183 -0
- package/dist/artifacts/video/composition.d.ts.map +1 -0
- package/dist/artifacts/video/edit.d.ts +298 -0
- package/dist/artifacts/video/edit.d.ts.map +1 -0
- package/dist/artifacts/video/export.d.ts +142 -0
- package/dist/artifacts/video/export.d.ts.map +1 -0
- package/dist/artifacts/video/looks.d.ts +133 -0
- package/dist/artifacts/video/looks.d.ts.map +1 -0
- package/dist/artifacts/video/project.d.ts +74 -0
- package/dist/artifacts/video/project.d.ts.map +1 -0
- package/dist/artifacts/video/stills.d.ts +65 -0
- package/dist/artifacts/video/stills.d.ts.map +1 -0
- package/dist/artifacts/video/timeline.d.ts +153 -0
- package/dist/artifacts/video/timeline.d.ts.map +1 -0
- package/dist/auth/index.js +9 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/authorization/index.js +5 -4
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/browser.d.ts +1 -1
- package/dist/blob-storage/browser.d.ts.map +1 -1
- package/dist/blob-storage/browser.js +8 -4
- package/dist/blob-storage/browser.js.map +1 -1
- package/dist/blob-storage/constants.d.ts +8 -3
- package/dist/blob-storage/constants.d.ts.map +1 -1
- package/dist/blob-storage/download-urls.d.ts +2 -2
- package/dist/blob-storage/download-urls.d.ts.map +1 -1
- package/dist/blob-storage/index.d.ts +1 -1
- package/dist/blob-storage/index.d.ts.map +1 -1
- package/dist/blob-storage/index.js +9 -5
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/blob-storage/internal.d.ts +2 -2
- package/dist/blob-storage/internal.d.ts.map +1 -1
- package/dist/blob-storage/internal.js +10 -4
- package/dist/blob-storage/internal.js.map +1 -1
- package/dist/blob-storage/media-type.d.ts +12 -3
- package/dist/blob-storage/media-type.d.ts.map +1 -1
- package/dist/bootstrap/index.js +61 -58
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/{chunk-az95tsh3.js → chunk-0fjryajn.js} +3 -2
- package/dist/chunk-0fjryajn.js.map +11 -0
- package/dist/{chunk-9tpmfh3n.js → chunk-0mk8qqp9.js} +3 -3
- package/dist/{chunk-9tpmfh3n.js.map → chunk-0mk8qqp9.js.map} +3 -3
- package/dist/{chunk-88xeh6zx.js → chunk-1g4me5f2.js} +182 -7
- package/dist/{chunk-88xeh6zx.js.map → chunk-1g4me5f2.js.map} +3 -3
- package/dist/{chunk-7mhbs9yy.js → chunk-1z8ccj53.js} +1 -1
- package/dist/{chunk-wkv3h3q7.js → chunk-2138b0ng.js} +115 -8
- package/dist/chunk-2138b0ng.js.map +12 -0
- package/dist/chunk-23eaayw4.js +3757 -0
- package/dist/chunk-23eaayw4.js.map +22 -0
- package/dist/{chunk-m1cwncee.js → chunk-2mxq1yd9.js} +45 -40
- package/dist/{chunk-m1cwncee.js.map → chunk-2mxq1yd9.js.map} +3 -3
- package/dist/{chunk-dmnd9ea6.js → chunk-30a0ftnm.js} +2 -2
- package/dist/chunk-389ybvw9.js.map +2 -2
- package/dist/{chunk-qbd282aa.js → chunk-39q9ybav.js} +2 -2
- package/dist/{chunk-06kpaqg4.js → chunk-3d9w8t4n.js} +110 -22
- package/dist/{chunk-06kpaqg4.js.map → chunk-3d9w8t4n.js.map} +5 -5
- package/dist/chunk-3dvcdn9w.js +8 -0
- package/dist/chunk-3dvcdn9w.js.map +10 -0
- package/dist/{chunk-fdk0ks9p.js → chunk-3x902cja.js} +3 -3
- package/dist/{chunk-c4nrycdy.js → chunk-4q4a5a96.js} +1 -1
- package/dist/{chunk-9cyq87qa.js → chunk-4tdm3fsj.js} +95 -32
- package/dist/{chunk-9cyq87qa.js.map → chunk-4tdm3fsj.js.map} +9 -9
- package/dist/{chunk-cpy282b8.js → chunk-4w8qzy9w.js} +6 -6
- package/dist/{chunk-c29729me.js → chunk-4z9xtxke.js} +8 -7
- package/dist/chunk-4z9xtxke.js.map +12 -0
- package/dist/chunk-5278qwax.js +270 -0
- package/dist/chunk-5278qwax.js.map +11 -0
- package/dist/{chunk-k1g14kk3.js → chunk-6a4hp405.js} +4 -5
- package/dist/{chunk-k1g14kk3.js.map → chunk-6a4hp405.js.map} +3 -3
- package/dist/{chunk-xavet0qs.js → chunk-6whr25gw.js} +2 -2
- package/dist/{chunk-mbwsgjn7.js → chunk-7zygtcqq.js} +14 -2
- package/dist/chunk-7zygtcqq.js.map +11 -0
- package/dist/chunk-88s9z5pf.js +3 -0
- package/dist/{chunk-de5sfbc3.js.map → chunk-88s9z5pf.js.map} +1 -1
- package/dist/{chunk-ygvay56w.js → chunk-896te58g.js} +2 -2
- package/dist/{chunk-pfdq1ga6.js → chunk-8eqqqc1h.js} +3 -3
- package/dist/{chunk-yyj009tv.js → chunk-8tefbhdx.js} +14 -14
- package/dist/{chunk-yyj009tv.js.map → chunk-8tefbhdx.js.map} +1 -1
- package/dist/{chunk-jka26v8c.js → chunk-8x1bsp68.js} +1 -1
- package/dist/{chunk-wzcjhv54.js → chunk-93e4w7te.js} +113 -1
- package/dist/chunk-93e4w7te.js.map +11 -0
- package/dist/{chunk-phs5fbff.js → chunk-990a5bkc.js} +424 -76
- package/dist/chunk-990a5bkc.js.map +21 -0
- package/dist/{chunk-6md802cc.js → chunk-9az7kjv4.js} +6 -6
- package/dist/{chunk-95ps0k5q.js → chunk-9e5t53z0.js} +1 -1
- package/dist/{chunk-js9e6487.js → chunk-9p7kyeqz.js} +4 -4
- package/dist/chunk-a68zz4r0.js +537 -0
- package/dist/chunk-a68zz4r0.js.map +11 -0
- package/dist/{chunk-d7vyc7k6.js → chunk-a700gjc8.js} +10 -2
- package/dist/chunk-a700gjc8.js.map +10 -0
- package/dist/{chunk-gfdh9kqa.js → chunk-a9qzjaz2.js} +2 -5
- package/dist/chunk-a9qzjaz2.js.map +10 -0
- package/dist/{chunk-8qmp9fpa.js → chunk-as94vcty.js} +619 -482
- package/dist/{chunk-8qmp9fpa.js.map → chunk-as94vcty.js.map} +19 -19
- package/dist/{chunk-brybqw5k.js → chunk-bkxm2dzx.js} +1 -1
- package/dist/{chunk-ppxf7gw2.js → chunk-d7t9jnym.js} +3 -3
- package/dist/{chunk-tapdssb5.js → chunk-e3b1r4d2.js} +8 -7
- package/dist/{chunk-tapdssb5.js.map → chunk-e3b1r4d2.js.map} +4 -4
- package/dist/{chunk-cg7cygfj.js → chunk-fdmvaz7x.js} +1 -1
- package/dist/{chunk-191jz8a6.js → chunk-ff0qdk7z.js} +1 -1
- package/dist/{chunk-9vsc919v.js → chunk-fgxvrxx4.js} +22 -2
- package/dist/chunk-fgxvrxx4.js.map +10 -0
- package/dist/{chunk-wx7smkn2.js → chunk-fq8drkp0.js} +1 -1
- package/dist/{chunk-60662fyv.js → chunk-fqms1a8c.js} +132 -4
- package/dist/{chunk-60662fyv.js.map → chunk-fqms1a8c.js.map} +8 -6
- package/dist/{chunk-v8a1qjzp.js → chunk-hpswfrjj.js} +1 -1
- package/dist/{chunk-qttqe1ah.js → chunk-jbg905hn.js} +80 -13
- package/dist/chunk-jbg905hn.js.map +25 -0
- package/dist/{chunk-bz5bnjjt.js → chunk-jjte0h4p.js} +1 -1
- package/dist/{chunk-hvq8xs66.js → chunk-jwjwvzj1.js} +797 -51
- package/dist/chunk-jwjwvzj1.js.map +38 -0
- package/dist/{chunk-k29rdc3h.js → chunk-k3vd2vyz.js} +6 -2
- package/dist/chunk-k3vd2vyz.js.map +10 -0
- package/dist/chunk-kcqpk9w1.js.map +2 -2
- package/dist/chunk-mvz89age.js.map +2 -2
- package/dist/{chunk-xrmbhap8.js → chunk-mwg0nwkb.js} +1 -1
- package/dist/{chunk-a3faa34j.js → chunk-nfjt8k8j.js} +1 -1
- package/dist/{chunk-394zjzjs.js → chunk-nhgqz3g3.js} +3 -3
- package/dist/{chunk-bqr703h4.js → chunk-p0c5kkhn.js} +23 -6
- package/dist/{chunk-bqr703h4.js.map → chunk-p0c5kkhn.js.map} +3 -3
- package/dist/{chunk-92wrka15.js → chunk-q150fnj9.js} +1 -1
- package/dist/{chunk-w3t94hm6.js → chunk-qk3zq25v.js} +1 -1
- package/dist/chunk-rtkqczbr.js.map +2 -2
- package/dist/{chunk-3qtk0070.js → chunk-ssqbrts1.js} +86 -9
- package/dist/chunk-ssqbrts1.js.map +14 -0
- package/dist/{chunk-5qqmndhm.js → chunk-szzhrn3e.js} +1 -1
- package/dist/{chunk-n1hbwc6y.js → chunk-t6pfch4e.js} +1 -1
- package/dist/{chunk-xtztwpkh.js → chunk-v6h4tc2v.js} +86 -5
- package/dist/chunk-v6h4tc2v.js.map +12 -0
- package/dist/{chunk-brhp9d97.js → chunk-vmqjndb3.js} +2 -2
- package/dist/chunk-vtjzwymr.js.map +2 -2
- package/dist/{chunk-fycac8e9.js → chunk-wpba6hhd.js} +10 -10
- package/dist/{chunk-fycac8e9.js.map → chunk-wpba6hhd.js.map} +1 -1
- package/dist/{chunk-t58sktr5.js → chunk-wrb1x1ss.js} +2 -2
- package/dist/{chunk-5sswe5ej.js → chunk-wsv23wvr.js} +2 -2
- package/dist/{chunk-04r2fdsd.js → chunk-x0hqc54n.js} +4 -4
- package/dist/{chunk-sgx82nnt.js → chunk-xg31er4p.js} +43 -4
- package/dist/chunk-xg31er4p.js.map +10 -0
- package/dist/{chunk-3neam1y5.js → chunk-y3qb965a.js} +2 -2
- package/dist/{chunk-5pz3htbe.js → chunk-y57eawng.js} +3 -3
- package/dist/{chunk-8ncg20rd.js → chunk-yah25st6.js} +5 -5
- package/dist/chunk-yah25st6.js.map +10 -0
- package/dist/{chunk-mrs7jy17.js → chunk-ywvxcmqj.js} +106 -13
- package/dist/{chunk-mrs7jy17.js.map → chunk-ywvxcmqj.js.map} +8 -7
- package/dist/{chunk-44hrfmbk.js → chunk-zmq9xc9s.js} +70 -31
- package/dist/{chunk-44hrfmbk.js.map → chunk-zmq9xc9s.js.map} +4 -3
- package/dist/datasets/write.js +8 -7
- package/dist/datasets/write.js.map +1 -1
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/execution/agent.js +52 -49
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/kernel-operation.d.ts +1 -0
- package/dist/execution/kernel-operation.d.ts.map +1 -1
- package/dist/execution/primitive.js +52 -49
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +53 -50
- package/dist/execution/request.js.map +2 -2
- package/dist/execution/types.d.ts +5 -0
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +69 -65
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +9 -8
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/maintenance/index.js +9 -8
- package/dist/maintenance/index.js.map +2 -2
- package/dist/materializer/index.js +26 -24
- package/dist/materializer/index.js.map +1 -1
- package/dist/models/audio/runtime.d.ts +3 -1
- package/dist/models/audio/runtime.d.ts.map +1 -1
- package/dist/models/audio/speech.d.ts +2 -2
- package/dist/models/audio/speech.d.ts.map +1 -1
- package/dist/models/audio/types.d.ts +23 -3
- package/dist/models/audio/types.d.ts.map +1 -1
- package/dist/models/calls.d.ts +7 -0
- package/dist/models/calls.d.ts.map +1 -1
- package/dist/models/catalog.d.ts +5 -0
- package/dist/models/catalog.d.ts.map +1 -1
- package/dist/models/definitions.d.ts +3 -2
- package/dist/models/definitions.d.ts.map +1 -1
- package/dist/models/errors.d.ts +5 -3
- package/dist/models/errors.d.ts.map +1 -1
- package/dist/models/events.d.ts +2 -0
- package/dist/models/events.d.ts.map +1 -1
- package/dist/models/execution/index.d.ts +1 -0
- package/dist/models/execution/index.d.ts.map +1 -1
- package/dist/models/execution/index.js +33 -28
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/execution/model-call-limits.d.ts.map +1 -1
- package/dist/models/execution/model-call-recorder.d.ts +8 -0
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/execution/session.d.ts +12 -0
- package/dist/models/execution/session.d.ts.map +1 -1
- package/dist/models/execution/usage.d.ts.map +1 -1
- package/dist/models/execution.d.ts +1 -1
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/generation-types.d.ts +2 -0
- package/dist/models/generation-types.d.ts.map +1 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/input-file.d.ts.map +1 -1
- package/dist/models/pricing.d.ts +2 -1
- package/dist/models/pricing.d.ts.map +1 -1
- package/dist/models/rate-card.d.ts +6 -0
- package/dist/models/rate-card.d.ts.map +1 -1
- package/dist/models/tools.d.ts +5 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/models/video/catalog.d.ts +13 -0
- package/dist/models/video/catalog.d.ts.map +1 -0
- package/dist/models/video/check.d.ts +76 -0
- package/dist/models/video/check.d.ts.map +1 -0
- package/dist/models/video/runtime.d.ts +21 -0
- package/dist/models/video/runtime.d.ts.map +1 -0
- package/dist/models/video/types.d.ts +188 -0
- package/dist/models/video/types.d.ts.map +1 -0
- package/dist/objects/execution.d.ts.map +1 -1
- package/dist/objects/index.js +52 -49
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/query/index.js +25 -23
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/sdk/object-set.d.ts.map +1 -1
- package/dist/ontology/index.js +4 -4
- package/dist/ontology/internal.js +4 -4
- package/dist/pipelines/index.js +28 -26
- package/dist/pipelines/index.js.map +1 -1
- package/dist/projections/internal.js +26 -24
- package/dist/projections/internal.js.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/types.d.ts +103 -6
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +3 -1
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +49 -43
- package/dist/runtime/internal.js.map +2 -2
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/index.js +6 -6
- package/dist/security/public.d.ts +6 -4
- package/dist/security/public.d.ts.map +1 -1
- package/dist/security/public.js +5 -3
- package/dist/security/public.js.map +1 -1
- package/dist/shares/internal.js +25 -23
- package/dist/shares/internal.js.map +2 -2
- package/dist/storage/agents/in-memory.d.ts +2 -1
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +1 -1
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +4 -4
- package/dist/storage/agents/types.d.ts +13 -0
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/analytics.d.ts +1 -0
- package/dist/storage/ai-cost/analytics.d.ts.map +1 -1
- package/dist/storage/ai-cost/groups.d.ts +2 -0
- package/dist/storage/ai-cost/groups.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +5 -5
- package/dist/storage/ai-cost/types.d.ts +2 -1
- package/dist/storage/ai-cost/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/validation.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +3 -3
- package/dist/storage/ai-limits/provider.js +2 -2
- package/dist/storage/ai-usage/in-memory.d.ts +8 -1
- package/dist/storage/ai-usage/in-memory.d.ts.map +1 -1
- package/dist/storage/ai-usage/index.d.ts +2 -2
- package/dist/storage/ai-usage/index.d.ts.map +1 -1
- package/dist/storage/ai-usage/record.d.ts +11 -1
- package/dist/storage/ai-usage/record.d.ts.map +1 -1
- package/dist/storage/ai-usage/types.d.ts +80 -1
- package/dist/storage/ai-usage/types.d.ts.map +1 -1
- package/dist/storage/ai-usage/usage.d.ts +1 -1
- package/dist/storage/ai-usage/usage.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +25 -2
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +12 -1
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +198 -6
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +3 -2
- package/dist/storage/executions/provider.js.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +10 -9
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +4 -4
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +24 -22
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +2 -2
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +34 -14
- package/dist/storage/internal.js.map +2 -2
- package/dist/storage/workflow-runs/provider.js +10 -9
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/syncs/index.js +29 -27
- package/dist/syncs/index.js.map +1 -1
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-cost-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-usage-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts +3 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.js +619 -72
- package/dist/testing/index.js.map +9 -9
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +26 -24
- package/dist/webhooks/internal.js.map +2 -2
- package/dist/workers/index.js +5 -5
- package/dist/workers/index.js.map +1 -1
- package/dist/workflows/index.js +58 -55
- package/dist/workflows/index.js.map +1 -1
- package/package.json +3 -1
- package/src/actions/request.ts +2 -0
- package/src/actions/run/context.ts +1 -0
- package/src/actions/run/execute.ts +5 -1
- package/src/actions/run/executor.ts +4 -0
- package/src/actions/run/normalize.ts +4 -0
- package/src/actions/run/types.ts +6 -0
- package/src/actions/types/context.ts +7 -0
- package/src/agents/README.md +3 -1
- package/src/agents/context/entries.ts +63 -9
- package/src/agents/context-model.ts +9 -0
- package/src/agents/context-resolution.ts +7 -0
- package/src/agents/execution.ts +39 -0
- package/src/agents/model-call-retry.ts +69 -0
- package/src/agents/model-loop.ts +86 -12
- package/src/agents/run-artifacts.ts +10 -5
- package/src/agents/run-plan.ts +2 -1
- package/src/agents/run-session-http.ts +1 -0
- package/src/agents/run-session-serve.ts +23 -2
- package/src/agents/run-session-wire.ts +45 -0
- package/src/agents/thread-access.ts +34 -1
- package/src/agents/tool-files.ts +23 -7
- package/src/artifacts/caller.ts +42 -0
- package/src/artifacts/comment-place.ts +51 -0
- package/src/artifacts/comment-text.ts +50 -7
- package/src/artifacts/comments.ts +132 -34
- package/src/artifacts/errors.ts +1 -0
- package/src/artifacts/execution.ts +249 -5
- package/src/artifacts/frames/assets.ts +93 -15
- package/src/artifacts/frames/entries.ts +7 -4
- package/src/artifacts/frames/generated/hyperframes-notices.txt +290 -0
- package/src/artifacts/frames/generated/hyperframes.txt +1145 -0
- package/src/artifacts/frames/generated.d.ts +5 -0
- package/src/artifacts/frames/hyperframes.ts +14 -0
- package/src/artifacts/frames/index.ts +5 -0
- package/src/artifacts/frames/kit.ts +7 -3
- package/src/artifacts/frames/protocol.ts +56 -0
- package/src/artifacts/frames/video-runtime.ts +165 -0
- package/src/artifacts/html.ts +13 -0
- package/src/artifacts/index.ts +7 -0
- package/src/artifacts/kinds.ts +9 -1
- package/src/artifacts/limits.ts +43 -0
- package/src/artifacts/live/document.ts +27 -3
- package/src/artifacts/live/index.ts +58 -2
- package/src/artifacts/live/presence.ts +17 -5
- package/src/artifacts/live/protocol.ts +4 -2
- package/src/artifacts/live/server.ts +1 -1
- package/src/artifacts/live/state.ts +3 -3
- package/src/artifacts/media/README.md +75 -0
- package/src/artifacts/media/media.ts +316 -0
- package/src/artifacts/media/transcriber.ts +84 -0
- package/src/artifacts/outline.ts +28 -0
- package/src/artifacts/publish/files.ts +19 -6
- package/src/artifacts/publish/index.ts +49 -2
- package/src/artifacts/publish/pdf.ts +3 -1
- package/src/artifacts/publish/previews.ts +22 -8
- package/src/artifacts/publish/publish.ts +4 -1
- package/src/artifacts/publish/validate/html.ts +23 -18
- package/src/artifacts/publish/validate/video.ts +309 -0
- package/src/artifacts/publish/video.ts +235 -0
- package/src/artifacts/resolve.ts +45 -0
- package/src/artifacts/video/README.md +402 -0
- package/src/artifacts/video/composition.ts +898 -0
- package/src/artifacts/video/edit.ts +3967 -0
- package/src/artifacts/video/export.ts +352 -0
- package/src/artifacts/video/looks.ts +694 -0
- package/src/artifacts/video/project.ts +198 -0
- package/src/artifacts/video/stills.ts +168 -0
- package/src/artifacts/video/timeline.ts +658 -0
- package/src/blob-storage/browser.ts +1 -1
- package/src/blob-storage/constants.ts +9 -3
- package/src/blob-storage/download-urls.ts +5 -3
- package/src/blob-storage/index.ts +1 -0
- package/src/blob-storage/internal.ts +13 -2
- package/src/blob-storage/media-type.ts +149 -8
- package/src/errors/catalog.ts +2 -1
- package/src/execution/authorization.ts +2 -2
- package/src/execution/kernel-operation.ts +14 -0
- package/src/execution/types.ts +2 -0
- package/src/http/api-routes.ts +117 -0
- package/src/index.ts +18 -1
- package/src/lake-storage/definition-updates.ts +3 -9
- package/src/models/audio/runtime.ts +48 -3
- package/src/models/audio/speech.ts +2 -2
- package/src/models/audio/types.ts +24 -3
- package/src/models/calls.ts +35 -18
- package/src/models/catalog.ts +9 -2
- package/src/models/definitions.ts +4 -2
- package/src/models/errors.ts +5 -3
- package/src/models/events.ts +2 -0
- package/src/models/execution/README.md +68 -2
- package/src/models/execution/index.ts +1 -0
- package/src/models/execution/model-call-limits.ts +11 -5
- package/src/models/execution/model-call-recorder.ts +14 -0
- package/src/models/execution/session.ts +52 -23
- package/src/models/execution/usage.ts +1 -0
- package/src/models/execution.ts +13 -2
- package/src/models/generation-types.ts +2 -0
- package/src/models/index.ts +20 -1
- package/src/models/input-file.ts +7 -2
- package/src/models/pricing.ts +19 -1
- package/src/models/rate-card.ts +15 -3
- package/src/models/tools.ts +5 -0
- package/src/models/video/catalog.ts +101 -0
- package/src/models/video/check.ts +441 -0
- package/src/models/video/runtime.ts +550 -0
- package/src/models/video/types.ts +194 -0
- package/src/objects/execution.ts +2 -0
- package/src/objects/sdk/object-set.ts +2 -0
- package/src/queues/index.ts +5 -0
- package/src/queues/types.ts +126 -5
- package/src/runtime/host.ts +3 -0
- package/src/runtime/internal.ts +3 -1
- package/src/runtime/sixb.ts +12 -4
- package/src/sandboxes/README.md +3 -2
- package/src/security/public.ts +6 -4
- package/src/storage/agents/in-memory.ts +39 -0
- package/src/storage/agents/index.ts +1 -0
- package/src/storage/agents/types.ts +14 -0
- package/src/storage/ai-cost/analytics.ts +2 -0
- package/src/storage/ai-cost/codec.ts +1 -0
- package/src/storage/ai-cost/groups.ts +7 -0
- package/src/storage/ai-cost/types.ts +2 -0
- package/src/storage/ai-cost/validation.ts +2 -0
- package/src/storage/ai-usage/in-memory.ts +93 -0
- package/src/storage/ai-usage/index.ts +10 -0
- package/src/storage/ai-usage/record.ts +106 -0
- package/src/storage/ai-usage/types.ts +102 -1
- package/src/storage/ai-usage/usage.ts +2 -0
- package/src/storage/artifacts/in-memory.ts +108 -11
- package/src/storage/artifacts/index.ts +14 -0
- package/src/storage/artifacts/record.ts +203 -1
- package/src/storage/artifacts/types.ts +199 -6
- package/src/storage/executions/validation.ts +2 -2
- package/src/storage/in-memory/index.ts +1 -1
- package/src/storage/index.ts +22 -1
- package/src/storage/internal.ts +9 -0
- package/src/testing/agent-storage-contract.ts +108 -0
- package/src/testing/ai-cost-storage-contract.ts +1 -0
- package/src/testing/ai-usage-storage-contract.ts +145 -1
- package/src/testing/artifact-storage-contract.ts +320 -0
- package/src/testing/execution-storage-contract.ts +10 -2
- package/src/testing/lake-storage-contract.ts +27 -0
- package/src/testing/queues-contract.ts +71 -0
- package/dist/chunk-3723kgba.js +0 -29
- package/dist/chunk-3723kgba.js.map +0 -10
- package/dist/chunk-3qtk0070.js.map +0 -14
- package/dist/chunk-8ncg20rd.js.map +0 -10
- package/dist/chunk-9vsc919v.js.map +0 -10
- package/dist/chunk-az95tsh3.js.map +0 -11
- package/dist/chunk-c29729me.js.map +0 -12
- package/dist/chunk-d7vyc7k6.js.map +0 -10
- package/dist/chunk-de5sfbc3.js +0 -3
- package/dist/chunk-gfdh9kqa.js.map +0 -11
- package/dist/chunk-hvq8xs66.js.map +0 -34
- package/dist/chunk-k29rdc3h.js.map +0 -10
- package/dist/chunk-mbwsgjn7.js.map +0 -11
- package/dist/chunk-phs5fbff.js.map +0 -19
- package/dist/chunk-qttqe1ah.js.map +0 -24
- package/dist/chunk-sgx82nnt.js.map +0 -10
- package/dist/chunk-vs2s3p8n.js +0 -2274
- package/dist/chunk-vs2s3p8n.js.map +0 -20
- package/dist/chunk-wkv3h3q7.js.map +0 -12
- package/dist/chunk-wzcjhv54.js.map +0 -11
- package/dist/chunk-xtztwpkh.js.map +0 -12
- /package/dist/{chunk-7mhbs9yy.js.map → chunk-1z8ccj53.js.map} +0 -0
- /package/dist/{chunk-dmnd9ea6.js.map → chunk-30a0ftnm.js.map} +0 -0
- /package/dist/{chunk-qbd282aa.js.map → chunk-39q9ybav.js.map} +0 -0
- /package/dist/{chunk-fdk0ks9p.js.map → chunk-3x902cja.js.map} +0 -0
- /package/dist/{chunk-c4nrycdy.js.map → chunk-4q4a5a96.js.map} +0 -0
- /package/dist/{chunk-cpy282b8.js.map → chunk-4w8qzy9w.js.map} +0 -0
- /package/dist/{chunk-xavet0qs.js.map → chunk-6whr25gw.js.map} +0 -0
- /package/dist/{chunk-ygvay56w.js.map → chunk-896te58g.js.map} +0 -0
- /package/dist/{chunk-pfdq1ga6.js.map → chunk-8eqqqc1h.js.map} +0 -0
- /package/dist/{chunk-jka26v8c.js.map → chunk-8x1bsp68.js.map} +0 -0
- /package/dist/{chunk-6md802cc.js.map → chunk-9az7kjv4.js.map} +0 -0
- /package/dist/{chunk-95ps0k5q.js.map → chunk-9e5t53z0.js.map} +0 -0
- /package/dist/{chunk-js9e6487.js.map → chunk-9p7kyeqz.js.map} +0 -0
- /package/dist/{chunk-brybqw5k.js.map → chunk-bkxm2dzx.js.map} +0 -0
- /package/dist/{chunk-ppxf7gw2.js.map → chunk-d7t9jnym.js.map} +0 -0
- /package/dist/{chunk-cg7cygfj.js.map → chunk-fdmvaz7x.js.map} +0 -0
- /package/dist/{chunk-191jz8a6.js.map → chunk-ff0qdk7z.js.map} +0 -0
- /package/dist/{chunk-wx7smkn2.js.map → chunk-fq8drkp0.js.map} +0 -0
- /package/dist/{chunk-v8a1qjzp.js.map → chunk-hpswfrjj.js.map} +0 -0
- /package/dist/{chunk-bz5bnjjt.js.map → chunk-jjte0h4p.js.map} +0 -0
- /package/dist/{chunk-xrmbhap8.js.map → chunk-mwg0nwkb.js.map} +0 -0
- /package/dist/{chunk-a3faa34j.js.map → chunk-nfjt8k8j.js.map} +0 -0
- /package/dist/{chunk-394zjzjs.js.map → chunk-nhgqz3g3.js.map} +0 -0
- /package/dist/{chunk-92wrka15.js.map → chunk-q150fnj9.js.map} +0 -0
- /package/dist/{chunk-w3t94hm6.js.map → chunk-qk3zq25v.js.map} +0 -0
- /package/dist/{chunk-5qqmndhm.js.map → chunk-szzhrn3e.js.map} +0 -0
- /package/dist/{chunk-n1hbwc6y.js.map → chunk-t6pfch4e.js.map} +0 -0
- /package/dist/{chunk-brhp9d97.js.map → chunk-vmqjndb3.js.map} +0 -0
- /package/dist/{chunk-t58sktr5.js.map → chunk-wrb1x1ss.js.map} +0 -0
- /package/dist/{chunk-5sswe5ej.js.map → chunk-wsv23wvr.js.map} +0 -0
- /package/dist/{chunk-04r2fdsd.js.map → chunk-x0hqc54n.js.map} +0 -0
- /package/dist/{chunk-3neam1y5.js.map → chunk-y3qb965a.js.map} +0 -0
- /package/dist/{chunk-5pz3htbe.js.map → chunk-y57eawng.js.map} +0 -0
|
@@ -14,10 +14,12 @@ import type {
|
|
|
14
14
|
ArtifactCommentAuthor,
|
|
15
15
|
ArtifactFile,
|
|
16
16
|
ArtifactGuest,
|
|
17
|
+
ArtifactMediaParts,
|
|
17
18
|
ArtifactRecord,
|
|
18
19
|
ArtifactRestorePointRecord,
|
|
19
20
|
ArtifactStorage,
|
|
20
21
|
ArtifactVersionRecord,
|
|
22
|
+
ArtifactVideoRenderLack,
|
|
21
23
|
ListArtifactsResult,
|
|
22
24
|
ListArtifactVersionsResult,
|
|
23
25
|
PublishedArtifactVersion,
|
|
@@ -30,6 +32,7 @@ import {
|
|
|
30
32
|
createArtifactAccessRule,
|
|
31
33
|
type HolderAccess,
|
|
32
34
|
} from "./access"
|
|
35
|
+
import { parseArtifactAddress } from "./address"
|
|
33
36
|
import { type ArtifactCommentsRuntime, createArtifactCommentsRuntime } from "./comments"
|
|
34
37
|
import { documentMarks, fillDocumentHtml, frozenDocumentHtml } from "./document-fill"
|
|
35
38
|
import { ArtifactRequestError } from "./errors"
|
|
@@ -39,8 +42,15 @@ import { type ArtifactHolding, readableHoldings } from "./holders"
|
|
|
39
42
|
import type { ArtifactKind } from "./kinds"
|
|
40
43
|
import { ARTIFACT_HOLDERS_LIMIT, ARTIFACT_LIMITS, ARTIFACT_STATE_LIMITS } from "./limits"
|
|
41
44
|
import { firstArtifactDocument, keepsDocument } from "./live/state"
|
|
45
|
+
import {
|
|
46
|
+
isMediaFile,
|
|
47
|
+
refreshArtifactMedia,
|
|
48
|
+
requestArtifactMedia,
|
|
49
|
+
retryArtifactMedia,
|
|
50
|
+
unmadeMediaParts,
|
|
51
|
+
} from "./media/media"
|
|
42
52
|
import type { DocumentHolder } from "./outline"
|
|
43
|
-
import { invalidArtifact, readArtifactText } from "./publish/files"
|
|
53
|
+
import { invalidArtifact, readArtifactText, titleFileName } from "./publish/files"
|
|
44
54
|
import { type ArtifactWrite, withDocumentHolding, withMergedWrite } from "./publish/merge"
|
|
45
55
|
import { documentPdfKey, requestDocumentPdf } from "./publish/pdf"
|
|
46
56
|
import {
|
|
@@ -68,6 +78,16 @@ import {
|
|
|
68
78
|
parseArtifactQuery,
|
|
69
79
|
} from "./queries"
|
|
70
80
|
import { runArtifactQuery } from "./run-query"
|
|
81
|
+
import {
|
|
82
|
+
requestVideoExport,
|
|
83
|
+
resolveVideoMedia,
|
|
84
|
+
type VideoExportProgress,
|
|
85
|
+
videoExportKeys,
|
|
86
|
+
videoExportPlan,
|
|
87
|
+
videoExportProgress,
|
|
88
|
+
videoExportStatus,
|
|
89
|
+
} from "./video/export"
|
|
90
|
+
import { requestVideoStills } from "./video/stills"
|
|
71
91
|
|
|
72
92
|
/** A version's content: what its kind renders from, and what it is called. */
|
|
73
93
|
export interface ArtifactContentInput {
|
|
@@ -224,6 +244,44 @@ export interface ArtifactsRuntime extends ArtifactCommentsRuntime {
|
|
|
224
244
|
readonly key?: string
|
|
225
245
|
}
|
|
226
246
|
): Promise<ArtifactPdf | null>
|
|
247
|
+
/**
|
|
248
|
+
* What Sixb derives of a video or a sound among a version's files, at `path`: what it holds, a
|
|
249
|
+
* proxy that plays in its place, a poster, a filmstrip, its peaks, its cuts and its transcript,
|
|
250
|
+
* each ready, pending, or why it will not come. They are derived once for every file that holds
|
|
251
|
+
* the same bytes, in a sandbox of the project, when a version holding it is published; one
|
|
252
|
+
* nothing was derived of yet is asked for now, unless `derive: false`. A part that `failed` says
|
|
253
|
+
* why until asked with `retry`, which derives each failed part again. In a project without
|
|
254
|
+
* sandboxes, each part is unavailable. Whoever reads the artifact may ask. `null` when the
|
|
255
|
+
* caller cannot read the artifact or it has no such version. Throws `invalid_artifact` when the
|
|
256
|
+
* version holds no video or sound at `path`.
|
|
257
|
+
*/
|
|
258
|
+
media(
|
|
259
|
+
artifactId: string,
|
|
260
|
+
options: {
|
|
261
|
+
readonly path: string
|
|
262
|
+
readonly version?: number | "latest"
|
|
263
|
+
readonly derive?: boolean
|
|
264
|
+
readonly retry?: boolean
|
|
265
|
+
}
|
|
266
|
+
): Promise<ArtifactMedia | null>
|
|
267
|
+
/**
|
|
268
|
+
* A video version's MP4: `ready` with its file once rendered, named after the version's title,
|
|
269
|
+
* else `rendering` with how far it has come, having asked the render worker for it;
|
|
270
|
+
* `render: false` reads it without asking, `idle` when no one asked for it yet. It renders scene by scene in sandboxes of the
|
|
271
|
+
* project, about as long as the video itself for a light one, and keeps each scene's segment, so a version that changes one scene renders only
|
|
272
|
+
* that scene again. Its `artifact:` files are those the caller reads. `failed` with why when it
|
|
273
|
+
* could not be rendered; `retry` asks again instead. Whoever reads the artifact may ask. `null`
|
|
274
|
+
* when the caller cannot read the artifact or it has no such version. Throws `invalid_artifact`
|
|
275
|
+
* for a version that is not a video, and `video_unavailable` in a project without sandboxes.
|
|
276
|
+
*/
|
|
277
|
+
video(
|
|
278
|
+
artifactId: string,
|
|
279
|
+
options?: {
|
|
280
|
+
readonly version?: number | "latest"
|
|
281
|
+
readonly retry?: boolean
|
|
282
|
+
readonly render?: boolean
|
|
283
|
+
}
|
|
284
|
+
): Promise<ArtifactVideoExport | null>
|
|
227
285
|
/**
|
|
228
286
|
* Runs the version's query `queries/<name>.json` as the caller, with their rights: a type they
|
|
229
287
|
* cannot view refuses it, and a marked property they are not cleared for is left out of each
|
|
@@ -286,6 +344,41 @@ export type ArtifactPdf = (
|
|
|
286
344
|
readonly key?: string
|
|
287
345
|
}
|
|
288
346
|
|
|
347
|
+
/** A video version's MP4: its file once rendered, how far it has come, or why it could not be. */
|
|
348
|
+
export type ArtifactVideoExport =
|
|
349
|
+
| {
|
|
350
|
+
readonly status: "ready"
|
|
351
|
+
readonly file: FileRef
|
|
352
|
+
readonly durationMs: number
|
|
353
|
+
readonly sizeBytes: number
|
|
354
|
+
}
|
|
355
|
+
| {
|
|
356
|
+
readonly status: "rendering"
|
|
357
|
+
/** Its segments rendered, of all of them, then the MP4 being joined from them. */
|
|
358
|
+
readonly progress: VideoExportProgress
|
|
359
|
+
}
|
|
360
|
+
/** Read with `render: false`, no one asked for it yet: asking renders it. */
|
|
361
|
+
| { readonly status: "idle" }
|
|
362
|
+
| {
|
|
363
|
+
readonly status: "failed"
|
|
364
|
+
/** Why, as a developer reads it: the scene, the sound, or what the project lacks. */
|
|
365
|
+
readonly reason: string
|
|
366
|
+
/**
|
|
367
|
+
* What the project lacks to render it, when the video is not why: asking again with
|
|
368
|
+
* `retry` renders it once the project has it, and fails the same until then.
|
|
369
|
+
*/
|
|
370
|
+
readonly lacks?: ArtifactVideoRenderLack
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/** What Sixb derives of a video or a sound of a version. */
|
|
374
|
+
export interface ArtifactMedia {
|
|
375
|
+
readonly version: number
|
|
376
|
+
readonly path: string
|
|
377
|
+
/** The original, as the version holds it. */
|
|
378
|
+
readonly file: FileRef
|
|
379
|
+
readonly parts: ArtifactMediaParts
|
|
380
|
+
}
|
|
381
|
+
|
|
289
382
|
/** The objects that hold an artifact, as the caller reads them. */
|
|
290
383
|
export interface ArtifactHolders {
|
|
291
384
|
readonly holders: readonly ArtifactHolderObject[]
|
|
@@ -350,8 +443,9 @@ export function artifactQueryChecker(artifacts: Partial<ArtifactsRuntime>): Arti
|
|
|
350
443
|
}
|
|
351
444
|
|
|
352
445
|
/**
|
|
353
|
-
* What asks for the pictures a stored version's boards miss,
|
|
354
|
-
* to: nothing in a project without sandboxes, where nothing
|
|
446
|
+
* What asks for the pictures a stored version's boards miss, and for what is derived of its media,
|
|
447
|
+
* in the project `artifacts` belongs to: nothing in a project without sandboxes, where nothing
|
|
448
|
+
* renders them.
|
|
355
449
|
*/
|
|
356
450
|
export function artifactPreviewRequester(
|
|
357
451
|
artifacts: Partial<ArtifactsRuntime>
|
|
@@ -477,10 +571,12 @@ export function createArtifactsRuntime(
|
|
|
477
571
|
blobStorage: BlobStorage,
|
|
478
572
|
options: {
|
|
479
573
|
/**
|
|
480
|
-
* The project has sandboxes, where the render worker pictures canvas boards
|
|
481
|
-
*
|
|
574
|
+
* The project has sandboxes, where the render worker pictures canvas boards, prints designed
|
|
575
|
+
* documents to PDF, and derives what plays and shows in place of a video or a sound.
|
|
482
576
|
*/
|
|
483
577
|
readonly rendersInSandboxes?: boolean
|
|
578
|
+
/** The project has a transcription model, which transcribes what its media say. */
|
|
579
|
+
readonly transcribesMedia?: boolean
|
|
484
580
|
} = {}
|
|
485
581
|
): ArtifactsRuntime {
|
|
486
582
|
const authority = resolveRuntimeAuthorizationForProject(runtime)
|
|
@@ -651,10 +747,34 @@ export function createArtifactsRuntime(
|
|
|
651
747
|
}
|
|
652
748
|
return { objectTypeId: holder.objectTypeId, primaryId }
|
|
653
749
|
}
|
|
750
|
+
const mediaContext = (storage: ArtifactStorage) => ({
|
|
751
|
+
storage,
|
|
752
|
+
queue: runtime.queues.renders,
|
|
753
|
+
transcribes: options.transcribesMedia === true,
|
|
754
|
+
})
|
|
654
755
|
const requestPreviews: BoardPreviewRequester = async (version, requestOptions) => {
|
|
655
756
|
const storage = runtime.storage.artifacts
|
|
656
757
|
if (!options.rendersInSandboxes || !storage) return
|
|
657
758
|
|
|
759
|
+
// Each video and sound of any kind, once for every file with its bytes, and each a video
|
|
760
|
+
// plays from another artifact: its frame plays their proxies too.
|
|
761
|
+
const borrowed = await borrowedRecordings(version)
|
|
762
|
+
await requestArtifactMedia(mediaContext(storage), {
|
|
763
|
+
...version,
|
|
764
|
+
files: [...version.files, ...borrowed],
|
|
765
|
+
})
|
|
766
|
+
|
|
767
|
+
// A video's scenes, each at its middle, with what it plays from other artifacts as whoever
|
|
768
|
+
// published it reads them.
|
|
769
|
+
await requestVideoStills(
|
|
770
|
+
{
|
|
771
|
+
storage,
|
|
772
|
+
queue: runtime.queues.renders,
|
|
773
|
+
read: (id, number) => artifacts.getVersion(id, number),
|
|
774
|
+
},
|
|
775
|
+
version
|
|
776
|
+
)
|
|
777
|
+
|
|
658
778
|
// Its queries are answered as whoever published it, who is this runtime's caller.
|
|
659
779
|
await requestBoardPreviews(
|
|
660
780
|
{
|
|
@@ -668,6 +788,33 @@ export function createArtifactsRuntime(
|
|
|
668
788
|
)
|
|
669
789
|
}
|
|
670
790
|
|
|
791
|
+
/**
|
|
792
|
+
* The videos and sounds a video plays from other artifacts, at the versions its addresses
|
|
793
|
+
* resolved to when it was published, as the caller reads them. One that cannot be read now is
|
|
794
|
+
* left out: it plays as it is.
|
|
795
|
+
*/
|
|
796
|
+
const borrowedRecordings = async (version: ArtifactVersionRecord): Promise<ArtifactFile[]> => {
|
|
797
|
+
if (version.outline.kind !== "video") return []
|
|
798
|
+
|
|
799
|
+
const recordings: ArtifactFile[] = []
|
|
800
|
+
try {
|
|
801
|
+
for (const reference of version.references) {
|
|
802
|
+
const address = parseArtifactAddress(reference.address)
|
|
803
|
+
if (reference.as !== "embed" || !address?.path) continue
|
|
804
|
+
|
|
805
|
+
const lender = await readVersion(address.artifactId, reference.resolvedVersion)
|
|
806
|
+
const file = lender?.version.files.find((candidate) => candidate.path === address.path)
|
|
807
|
+
if (file && isMediaFile(file)) recordings.push(file)
|
|
808
|
+
}
|
|
809
|
+
} catch (error) {
|
|
810
|
+
console.error(
|
|
811
|
+
`[Sixb] Could not read the recordings version ${version.version} of '${version.artifactId}' plays from other artifacts; they play as they are.`,
|
|
812
|
+
error
|
|
813
|
+
)
|
|
814
|
+
}
|
|
815
|
+
return recordings
|
|
816
|
+
}
|
|
817
|
+
|
|
671
818
|
/** The artifact with what the caller may do with it; `null` when there is none. */
|
|
672
819
|
const reach = async (
|
|
673
820
|
artifactId: string
|
|
@@ -1068,6 +1215,103 @@ export function createArtifactsRuntime(
|
|
|
1068
1215
|
return { status: "printing", ...keyed }
|
|
1069
1216
|
},
|
|
1070
1217
|
|
|
1218
|
+
async media(artifactId, mediaOptions) {
|
|
1219
|
+
const read = await readVersion(artifactId, mediaOptions.version ?? "latest")
|
|
1220
|
+
if (!read) return null
|
|
1221
|
+
|
|
1222
|
+
const { version } = read
|
|
1223
|
+
const file = version.files.find((candidate) => candidate.path === mediaOptions.path)
|
|
1224
|
+
if (!file || !isMediaFile(file)) {
|
|
1225
|
+
throw invalidArtifact(
|
|
1226
|
+
`Version ${version.version} of '${artifactId}' holds no video or sound at '${mediaOptions.path}'.`
|
|
1227
|
+
)
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
const storage = requireStorage()
|
|
1231
|
+
const media = { version: version.version, path: file.path, file: file.file }
|
|
1232
|
+
const [kept] = await storage.listMedia({
|
|
1233
|
+
projectId: runtime.projectId,
|
|
1234
|
+
digests: [file.file.digest],
|
|
1235
|
+
})
|
|
1236
|
+
if (!options.rendersInSandboxes) {
|
|
1237
|
+
const reason = "This project has no sandboxes to derive it in."
|
|
1238
|
+
const lacking = { status: "unavailable", reason, lacks: "sandboxes" } as const
|
|
1239
|
+
return { ...media, parts: kept?.parts ?? unmadeMediaParts(() => lacking) }
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
const context = mediaContext(storage)
|
|
1243
|
+
if (kept && mediaOptions.retry) {
|
|
1244
|
+
return { ...media, parts: await retryArtifactMedia(context, kept, file.file) }
|
|
1245
|
+
}
|
|
1246
|
+
if (kept && mediaOptions.derive === false) return { ...media, parts: kept.parts }
|
|
1247
|
+
if (kept) return { ...media, parts: await refreshArtifactMedia(context, kept, file.file) }
|
|
1248
|
+
|
|
1249
|
+
// Published before media were derived, or asked for when its job could not be: ask now.
|
|
1250
|
+
if (mediaOptions.derive !== false) await requestArtifactMedia(context, version)
|
|
1251
|
+
return { ...media, parts: unmadeMediaParts(() => ({ status: "pending" })) }
|
|
1252
|
+
},
|
|
1253
|
+
|
|
1254
|
+
async video(artifactId, videoOptions = {}) {
|
|
1255
|
+
const read = await readVersion(artifactId, videoOptions.version ?? "latest")
|
|
1256
|
+
if (!read) return null
|
|
1257
|
+
|
|
1258
|
+
const { version } = read
|
|
1259
|
+
const { outline } = version
|
|
1260
|
+
if (outline.kind !== "video") {
|
|
1261
|
+
throw invalidArtifact(
|
|
1262
|
+
`Version ${version.version} of '${artifactId}' is not a video, which alone renders to MP4.`
|
|
1263
|
+
)
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
// What it plays from other artifacts, as the caller reads them, is in its keys.
|
|
1267
|
+
const media = await resolveVideoMedia(version, (id, number) =>
|
|
1268
|
+
artifacts.getVersion(id, number)
|
|
1269
|
+
)
|
|
1270
|
+
const source = { outline, files: version.files, references: version.references, media }
|
|
1271
|
+
const plan = videoExportPlan(source)
|
|
1272
|
+
const storage = requireStorage()
|
|
1273
|
+
const kept = await storage.listVideoRenders({
|
|
1274
|
+
projectId: runtime.projectId,
|
|
1275
|
+
keys: videoExportKeys(plan),
|
|
1276
|
+
})
|
|
1277
|
+
const status = videoExportStatus(plan, kept)
|
|
1278
|
+
// How far it has come, what failed asked for again.
|
|
1279
|
+
const progress = () => videoExportProgress(plan, kept)
|
|
1280
|
+
if (status.status === "ready") {
|
|
1281
|
+
// Kept for every version made the same, it downloads named after this one's title.
|
|
1282
|
+
const fileName = `${titleFileName(version.title, "Video")}.mp4`
|
|
1283
|
+
return {
|
|
1284
|
+
status: "ready",
|
|
1285
|
+
file: { ...status.file, fileName },
|
|
1286
|
+
durationMs: outline.durationMs,
|
|
1287
|
+
sizeBytes: status.file.sizeBytes,
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
if (status.status === "failed" && !videoOptions.retry) return status
|
|
1291
|
+
if (videoOptions.render === false) {
|
|
1292
|
+
// What its segments' keys hold may have been rendered for another video made in part the
|
|
1293
|
+
// same: only an ask says it renders.
|
|
1294
|
+
const asked = await storage.getVideoExportAsk({
|
|
1295
|
+
projectId: runtime.projectId,
|
|
1296
|
+
key: plan.key,
|
|
1297
|
+
})
|
|
1298
|
+
return asked ? { status: "rendering", progress: progress() } : { status: "idle" }
|
|
1299
|
+
}
|
|
1300
|
+
if (!options.rendersInSandboxes) {
|
|
1301
|
+
throw new ArtifactRequestError(
|
|
1302
|
+
"video_unavailable",
|
|
1303
|
+
"[Sixb] A video renders to MP4 in sandboxes, and this project has no sandbox provider."
|
|
1304
|
+
)
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
const retry = status.status === "failed"
|
|
1308
|
+
await requestVideoExport({ storage, queue: runtime.queues.renders }, version, source, {
|
|
1309
|
+
plan,
|
|
1310
|
+
retry,
|
|
1311
|
+
})
|
|
1312
|
+
return { status: "rendering", progress: progress() }
|
|
1313
|
+
},
|
|
1314
|
+
|
|
1071
1315
|
async query(artifactId, name, options = {}) {
|
|
1072
1316
|
const read = await readVersion(artifactId, options.version ?? "latest")
|
|
1073
1317
|
if (!read) return null
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SandboxNetworkTarget } from "../../sandboxes/sandbox"
|
|
2
|
+
import type {
|
|
3
|
+
ArtifactFile,
|
|
4
|
+
ArtifactFrameTarget,
|
|
5
|
+
ArtifactMediaRecord,
|
|
6
|
+
} from "../../storage/artifacts/types"
|
|
2
7
|
import { isArtifactAddress, parseArtifactAddress } from "../address"
|
|
3
|
-
import { decodeHtmlEntities } from "../html"
|
|
8
|
+
import { decodeHtmlEntities, HTML_FILE_ATTRIBUTES } from "../html"
|
|
9
|
+
import { mediaProxyReference } from "../media/media"
|
|
4
10
|
import type { DocumentHeading } from "../outline"
|
|
5
11
|
import type { DocumentPaper } from "../paper"
|
|
6
12
|
import { FRAME_ASSET_PREFIX } from "../publish/validate/html"
|
|
13
|
+
import { videoFilePath } from "../video/composition"
|
|
7
14
|
import { documentData } from "./document-data"
|
|
8
15
|
import type { FrameLayout } from "./entries"
|
|
16
|
+
import { HYPERFRAMES_RUNTIME } from "./hyperframes"
|
|
9
17
|
import { FRAME_DECK_CSS, FRAME_DOCUMENT_CSS, FRAME_PAGE_CSS } from "./kit"
|
|
10
18
|
import { frameRuntime } from "./runtime"
|
|
19
|
+
import { videoFrameRuntime } from "./video-runtime"
|
|
11
20
|
|
|
12
21
|
/**
|
|
13
22
|
* Hosts a frame may load from besides its own files: CSS and script libraries and web fonts, Google
|
|
@@ -22,13 +31,24 @@ export const FRAME_CDN_ALLOWLIST = [
|
|
|
22
31
|
"https://fonts.gstatic.com",
|
|
23
32
|
] as const
|
|
24
33
|
|
|
34
|
+
/**
|
|
35
|
+
* {@link FRAME_CDN_ALLOWLIST} as a sandbox's network names it, each CDN by its host: what a render
|
|
36
|
+
* reaches, and what an agent run reaches by default, so both lay a frame out as the app does.
|
|
37
|
+
*/
|
|
38
|
+
export const FRAME_CDN_TARGETS: readonly SandboxNetworkTarget[] = FRAME_CDN_ALLOWLIST.map(
|
|
39
|
+
(origin) => ({ name: new URL(origin).hostname, origin })
|
|
40
|
+
)
|
|
41
|
+
|
|
25
42
|
/**
|
|
26
43
|
* The files a frame gets besides the version's own, under `__sixb/`, which a version may not use:
|
|
27
|
-
* a kit per layout, and
|
|
28
|
-
* layout check serves them to its browser, so both lay a version out the
|
|
44
|
+
* a kit per layout, the runtime, and a video's runtimes. The server serves them to the app's
|
|
45
|
+
* frames, and the Agent's layout check serves them to its browser, so both lay a version out the
|
|
46
|
+
* same way. Their bodies are in the render keys (`frameKitDigest`): a file with a `layout` is
|
|
47
|
+
* loaded by that layout's frames alone, and only that layout's keys take it in, so a new
|
|
48
|
+
* HyperFrames release renders every video again, and no deck, page or document.
|
|
29
49
|
*/
|
|
30
50
|
export const FRAME_ASSETS: Readonly<
|
|
31
|
-
Record<string, { readonly body: string; readonly type: string }>
|
|
51
|
+
Record<string, { readonly body: string; readonly type: string; readonly layout?: FrameLayout }>
|
|
32
52
|
> = {
|
|
33
53
|
[`${FRAME_ASSET_PREFIX}deck.css`]: { body: FRAME_DECK_CSS, type: "text/css; charset=utf-8" },
|
|
34
54
|
[`${FRAME_ASSET_PREFIX}page.css`]: { body: FRAME_PAGE_CSS, type: "text/css; charset=utf-8" },
|
|
@@ -40,13 +60,31 @@ export const FRAME_ASSETS: Readonly<
|
|
|
40
60
|
body: `(${frameRuntime.toString()})(${documentData.toString()})\n`,
|
|
41
61
|
type: "text/javascript; charset=utf-8",
|
|
42
62
|
},
|
|
63
|
+
[`${FRAME_ASSET_PREFIX}video.js`]: {
|
|
64
|
+
body: `(${videoFrameRuntime.toString()})()\n`,
|
|
65
|
+
type: "text/javascript; charset=utf-8",
|
|
66
|
+
layout: "video",
|
|
67
|
+
},
|
|
68
|
+
[`${FRAME_ASSET_PREFIX}hyperframes.js`]: {
|
|
69
|
+
body: HYPERFRAMES_RUNTIME,
|
|
70
|
+
type: "text/javascript; charset=utf-8",
|
|
71
|
+
layout: "video",
|
|
72
|
+
},
|
|
43
73
|
}
|
|
44
74
|
|
|
45
75
|
/**
|
|
46
76
|
* The kit for the layout and the runtime, which reads the layout from its own tag, and a designed
|
|
47
77
|
* document's paper: its width, height, and margins, top, right, bottom and left, in pixels.
|
|
78
|
+
*
|
|
79
|
+
* A video gets no kit and runtimes of its own: its scenes show as HyperFrames renders them, so
|
|
80
|
+
* what the app plays is what an export renders. HyperFrames' runtime comes right after the
|
|
81
|
+
* frame's, before the scenes' scripts, as its own player puts it.
|
|
48
82
|
*/
|
|
49
83
|
function injected(layout: FrameLayout, base: string, paper?: DocumentPaper): string {
|
|
84
|
+
if (layout === "video") {
|
|
85
|
+
return `<script src="${base}${FRAME_ASSET_PREFIX}video.js"></script><script src="${base}${FRAME_ASSET_PREFIX}hyperframes.js"></script>`
|
|
86
|
+
}
|
|
87
|
+
|
|
50
88
|
const sheet = paper
|
|
51
89
|
? ` data-sixb-paper="${[paper.width, paper.height, paper.margin.top, paper.margin.right, paper.margin.bottom, paper.margin.left].join(" ")}"`
|
|
52
90
|
: ""
|
|
@@ -128,31 +166,71 @@ function frameReferencePath(target: ArtifactFrameTarget, entry: string): string
|
|
|
128
166
|
}
|
|
129
167
|
|
|
130
168
|
/**
|
|
131
|
-
* Points each
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
169
|
+
* Points each file an entry shows or plays from another artifact (`<img src="artifact:…">`, a
|
|
170
|
+
* `<video>`'s source or poster, an `<audio>`'s, a `<source>`'s, a `<track>`'s captions) at the
|
|
171
|
+
* copy its frame serves, marked `data-sixb-ref`. A file its reader cannot see, or that the frame
|
|
172
|
+
* has no target for, loses its attribute and is marked unavailable: the kit draws an image or a
|
|
173
|
+
* video as an empty box. Addresses are compared as publishing recorded them, with their entities
|
|
174
|
+
* decoded.
|
|
135
175
|
*/
|
|
136
176
|
export function rewriteFrameReferences(
|
|
137
177
|
html: string,
|
|
138
178
|
targets: readonly ArtifactFrameTarget[],
|
|
139
179
|
entry = "index.html"
|
|
140
180
|
): string {
|
|
141
|
-
|
|
142
|
-
|
|
181
|
+
const rewriter = new HTMLRewriter()
|
|
182
|
+
for (const { element: tag, attribute } of HTML_FILE_ATTRIBUTES) {
|
|
183
|
+
rewriter.on(`${tag}[${attribute}]`, {
|
|
143
184
|
element(element) {
|
|
144
|
-
const source = decodeHtmlEntities(element.getAttribute(
|
|
185
|
+
const source = decodeHtmlEntities(element.getAttribute(attribute) ?? "").trim()
|
|
145
186
|
if (!isArtifactAddress(source)) return
|
|
146
187
|
const target = targets.find((candidate) => candidate.address === source)
|
|
147
188
|
const path = target ? frameReferencePath(target, entry) : null
|
|
148
189
|
if (path) {
|
|
149
|
-
element.setAttribute(
|
|
150
|
-
|
|
190
|
+
element.setAttribute(attribute, path)
|
|
191
|
+
// A `<video>` names two files: either one unavailable marks it.
|
|
192
|
+
if (element.getAttribute("data-sixb-ref") !== "unavailable") {
|
|
193
|
+
element.setAttribute("data-sixb-ref", "")
|
|
194
|
+
}
|
|
151
195
|
} else {
|
|
152
|
-
element.removeAttribute(
|
|
196
|
+
element.removeAttribute(attribute)
|
|
153
197
|
element.setAttribute("data-sixb-ref", "unavailable")
|
|
154
198
|
}
|
|
155
199
|
},
|
|
156
200
|
})
|
|
201
|
+
}
|
|
202
|
+
return rewriter.transform(html)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Points each recording a video's HTML file plays, a `<video>`'s, an `<audio>`'s or a
|
|
207
|
+
* `<source>`'s, at its proxy once one is ready: the path as written, with the proxy's name in its
|
|
208
|
+
* query, as `mediaProxyReference` names it, so HyperFrames finds the proxy wherever it finds the
|
|
209
|
+
* original. A recording with no ready proxy plays its original. `path` is where the file is in
|
|
210
|
+
* the version: its references are read from there, as HyperFrames reads them.
|
|
211
|
+
*/
|
|
212
|
+
export function rewriteVideoProxies(
|
|
213
|
+
html: string,
|
|
214
|
+
path: string,
|
|
215
|
+
files: readonly ArtifactFile[],
|
|
216
|
+
media: ReadonlyMap<string, ArtifactMediaRecord>
|
|
217
|
+
): string {
|
|
218
|
+
const held = new Map(files.map((file) => [file.path, file]))
|
|
219
|
+
return new HTMLRewriter()
|
|
220
|
+
.on("video[src], audio[src], source[src]", {
|
|
221
|
+
element(element) {
|
|
222
|
+
const written = decodeHtmlEntities(element.getAttribute("src") ?? "").trim()
|
|
223
|
+
const target = videoFilePath(path, written, (candidate) => held.has(candidate))
|
|
224
|
+
const file = target === undefined ? undefined : held.get(target)
|
|
225
|
+
const proxy = file ? mediaProxyReference(file, media.get(file.file.digest)) : null
|
|
226
|
+
if (!proxy) return
|
|
227
|
+
|
|
228
|
+
// Only the query: the path stays as written, which HyperFrames resolves as it did.
|
|
229
|
+
element.setAttribute(
|
|
230
|
+
"src",
|
|
231
|
+
`${written.replace(/[?#].*$/, "")}${proxy.slice(proxy.indexOf("?"))}`
|
|
232
|
+
)
|
|
233
|
+
},
|
|
234
|
+
})
|
|
157
235
|
.transform(html)
|
|
158
236
|
}
|
|
@@ -3,9 +3,10 @@ import type { ArtifactOutline } from "../outline"
|
|
|
3
3
|
/**
|
|
4
4
|
* How the frame's runtime lays out what it serves: a deck shows 1280×720 slides scaled to fit, one
|
|
5
5
|
* at a time or all at once; a page scrolls like any web page, as a canvas's boards do; a designed
|
|
6
|
-
* document scrolls as one sheet, or as the pages its paper cuts it into
|
|
6
|
+
* document scrolls as one sheet, or as the pages its paper cuts it into; a video is played by
|
|
7
|
+
* HyperFrames' runtime, at its own size, for the app to scale and drive.
|
|
7
8
|
*/
|
|
8
|
-
export type FrameLayout = "deck" | "page" | "document"
|
|
9
|
+
export type FrameLayout = "deck" | "page" | "document" | "video"
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* A version's frame layout, or null for one Sixb draws natively: a Markdown document, a sheet, or
|
|
@@ -20,6 +21,8 @@ export function frameLayout(version: { readonly outline: ArtifactOutline }): Fra
|
|
|
20
21
|
return "page"
|
|
21
22
|
case "document":
|
|
22
23
|
return version.outline.format === "html" ? "document" : null
|
|
24
|
+
case "video":
|
|
25
|
+
return "video"
|
|
23
26
|
default:
|
|
24
27
|
return null
|
|
25
28
|
}
|
|
@@ -27,8 +30,8 @@ export function frameLayout(version: { readonly outline: ArtifactOutline }): Fra
|
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
32
|
* The files of a version its frame serves as pages, with the kit and the runtime first in their
|
|
30
|
-
* `<head>`: a deck's, a page's
|
|
31
|
-
* for a version that does not open in a frame.
|
|
33
|
+
* `<head>`: a deck's, a page's, a designed document's or a video's entry, or each of a canvas's
|
|
34
|
+
* boards; none for a version that does not open in a frame.
|
|
32
35
|
*/
|
|
33
36
|
export function frameEntries(version: {
|
|
34
37
|
readonly entry: string
|