@sixb/core 0.2.6 → 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 +53 -50
- 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.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +62 -57
- 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/model-routing.d.ts +15 -4
- package/dist/agents/model-routing.d.ts.map +1 -1
- package/dist/agents/request.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/run-token.d.ts +6 -0
- package/dist/agents/run-token.d.ts.map +1 -1
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.js +2 -2
- 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/discovery.d.ts +6 -0
- package/dist/bootstrap/discovery.d.ts.map +1 -1
- package/dist/bootstrap/index.js +63 -60
- 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-s8xxef60.js → chunk-2mxq1yd9.js} +48 -41
- package/dist/{chunk-s8xxef60.js.map → chunk-2mxq1yd9.js.map} +6 -6
- package/dist/{chunk-dmnd9ea6.js → chunk-30a0ftnm.js} +2 -2
- package/dist/{chunk-nxysqbt0.js → chunk-389ybvw9.js} +6 -2
- package/dist/chunk-389ybvw9.js.map +10 -0
- package/dist/{chunk-qbd282aa.js → chunk-39q9ybav.js} +2 -2
- package/dist/{chunk-9c9yknwt.js → chunk-3d9w8t4n.js} +111 -23
- package/dist/{chunk-9c9yknwt.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-bcz9dxtf.js → chunk-3x902cja.js} +3 -3
- package/dist/{chunk-c4nrycdy.js → chunk-4q4a5a96.js} +1 -1
- package/dist/{chunk-7r9mqpva.js → chunk-4tdm3fsj.js} +100 -36
- package/dist/{chunk-7r9mqpva.js.map → chunk-4tdm3fsj.js.map} +10 -10
- package/dist/{chunk-ykchk644.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-kft7mp7z.js → chunk-5xkqasvn.js} +1 -1
- 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-pqj8vff9.js → chunk-8eqqqc1h.js} +3 -3
- package/dist/{chunk-425ydk65.js → chunk-8tefbhdx.js} +14 -14
- package/dist/{chunk-425ydk65.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-ym1bqd98.js → chunk-990a5bkc.js} +424 -76
- package/dist/chunk-990a5bkc.js.map +21 -0
- package/dist/{chunk-fmgf9h5e.js → chunk-9az7kjv4.js} +6 -6
- package/dist/{chunk-eg6xqef7.js → chunk-9e5t53z0.js} +3 -3
- package/dist/{chunk-eg6xqef7.js.map → chunk-9e5t53z0.js.map} +3 -3
- package/dist/{chunk-bs1sd0e0.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-ats8y3d9.js → chunk-as94vcty.js} +688 -504
- package/dist/{chunk-ats8y3d9.js.map → chunk-as94vcty.js.map} +21 -21
- 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-jt012fxq.js → chunk-jwjwvzj1.js} +797 -51
- package/dist/chunk-jwjwvzj1.js.map +38 -0
- package/dist/{chunk-f05994as.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-6hfbz4d0.js → chunk-r588h4ev.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-t19wjmnc.js → chunk-wpba6hhd.js} +54 -20
- package/dist/{chunk-t19wjmnc.js.map → chunk-wpba6hhd.js.map} +3 -3
- package/dist/{chunk-htdzx40w.js → chunk-wrb1x1ss.js} +12 -4
- package/dist/{chunk-htdzx40w.js.map → chunk-wrb1x1ss.js.map} +3 -3
- package/dist/{chunk-5sswe5ej.js → chunk-wsv23wvr.js} +2 -2
- package/dist/{chunk-90nqenq8.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-gaj8djsw.js → chunk-y57eawng.js} +10 -5
- package/dist/{chunk-gaj8djsw.js.map → chunk-y57eawng.js.map} +3 -3
- package/dist/{chunk-8ncg20rd.js → chunk-yah25st6.js} +5 -5
- package/dist/chunk-yah25st6.js.map +10 -0
- package/dist/{chunk-grt2j5vp.js → chunk-ywvxcmqj.js} +106 -13
- package/dist/{chunk-grt2j5vp.js.map → chunk-ywvxcmqj.js.map} +8 -7
- package/dist/{chunk-xf76csps.js → chunk-zmq9xc9s.js} +70 -31
- package/dist/{chunk-xf76csps.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/deploy/index.d.ts +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/internal.js +2 -2
- package/dist/deploy/internal.js.map +2 -2
- package/dist/deploy/types.d.ts +8 -58
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/env/index.d.ts +10 -3
- package/dist/env/index.d.ts.map +1 -1
- package/dist/env/index.js.map +2 -2
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/execution/agent.js +53 -50
- 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 +53 -50
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +54 -51
- 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 +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -67
- 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 +53 -50
- 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/create.d.ts.map +1 -1
- package/dist/runtime/definitions.d.ts +14 -0
- package/dist/runtime/definitions.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +3 -1
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.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/resolve-definitions.d.ts +2 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/errors.d.ts +19 -0
- package/dist/sandboxes/errors.d.ts.map +1 -1
- package/dist/sandboxes/exec.d.ts +2 -0
- package/dist/sandboxes/exec.d.ts.map +1 -1
- package/dist/sandboxes/index.d.ts +1 -1
- package/dist/sandboxes/index.d.ts.map +1 -1
- package/dist/sandboxes/index.js +14 -8
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/sandboxes/sandbox.d.ts +15 -1
- package/dist/sandboxes/sandbox.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +5 -5
- package/dist/storage/agents/types.d.ts +27 -1
- 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 +25 -23
- 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 +686 -75
- package/dist/testing/index.js.map +10 -10
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/sandboxes-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 +60 -57
- 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/index.ts +1 -0
- package/src/agents/model-call-retry.ts +69 -0
- package/src/agents/model-loop.ts +86 -12
- package/src/agents/model-routing.ts +104 -38
- package/src/agents/request.ts +27 -1
- 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/run-token.ts +7 -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/bootstrap/discovery.ts +61 -11
- package/src/deploy/index.ts +0 -5
- package/src/deploy/types.ts +8 -63
- package/src/deploy/validation.ts +1 -1
- package/src/env/index.ts +10 -4
- 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 +21 -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/create.ts +1 -0
- package/src/runtime/definitions.ts +25 -0
- package/src/runtime/host.ts +6 -1
- package/src/runtime/index.ts +6 -1
- package/src/runtime/internal.ts +3 -1
- package/src/runtime/resolve-definitions.ts +7 -1
- package/src/runtime/sixb.ts +12 -4
- package/src/sandboxes/README.md +12 -2
- package/src/sandboxes/errors.ts +27 -0
- package/src/sandboxes/exec.ts +3 -1
- package/src/sandboxes/index.ts +3 -0
- package/src/sandboxes/sandbox.ts +15 -1
- 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/provider.ts +8 -0
- package/src/storage/agents/types.ts +32 -1
- 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 +135 -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 +330 -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/src/testing/sandboxes-contract.ts +50 -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-f05994as.js.map +0 -10
- package/dist/chunk-gfdh9kqa.js.map +0 -11
- package/dist/chunk-jt012fxq.js.map +0 -34
- package/dist/chunk-mbwsgjn7.js.map +0 -11
- package/dist/chunk-nxysqbt0.js.map +0 -10
- 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-ym1bqd98.js.map +0 -19
- /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-bcz9dxtf.js.map → chunk-3x902cja.js.map} +0 -0
- /package/dist/{chunk-c4nrycdy.js.map → chunk-4q4a5a96.js.map} +0 -0
- /package/dist/{chunk-ykchk644.js.map → chunk-4w8qzy9w.js.map} +0 -0
- /package/dist/{chunk-kft7mp7z.js.map → chunk-5xkqasvn.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-pqj8vff9.js.map → chunk-8eqqqc1h.js.map} +0 -0
- /package/dist/{chunk-jka26v8c.js.map → chunk-8x1bsp68.js.map} +0 -0
- /package/dist/{chunk-fmgf9h5e.js.map → chunk-9az7kjv4.js.map} +0 -0
- /package/dist/{chunk-bs1sd0e0.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-6hfbz4d0.js.map → chunk-r588h4ev.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-5sswe5ej.js.map → chunk-wsv23wvr.js.map} +0 -0
- /package/dist/{chunk-90nqenq8.js.map → chunk-x0hqc54n.js.map} +0 -0
- /package/dist/{chunk-3neam1y5.js.map → chunk-y3qb965a.js.map} +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/** A rule or an at-rule of a stylesheet: what comes before its braces, and what they hold. */
|
|
2
|
+
export interface CssBlock {
|
|
3
|
+
readonly prelude: string;
|
|
4
|
+
readonly body: string;
|
|
5
|
+
}
|
|
6
|
+
/** An element, as a selector reads it. */
|
|
7
|
+
export interface LookElement {
|
|
8
|
+
readonly tag: string;
|
|
9
|
+
readonly id?: string;
|
|
10
|
+
readonly classes: readonly string[];
|
|
11
|
+
readonly attributes: ReadonlyMap<string, string>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A stylesheet that reaches a scene, given in the order the page reads them: the sheets
|
|
15
|
+
* `index.html` links, then its file's own `<style>`, then the look carried for the clip there.
|
|
16
|
+
* `byId` keeps only the rules that name the element by its id, as a scene the clip is not from
|
|
17
|
+
* styles it; `carried` is a look written by {@link writtenLook}, already one id more specific.
|
|
18
|
+
*/
|
|
19
|
+
export interface LookSheet {
|
|
20
|
+
readonly blocks: readonly CssBlock[];
|
|
21
|
+
readonly byId?: boolean;
|
|
22
|
+
readonly carried?: boolean;
|
|
23
|
+
/** A sheet `index.html` links, which every scene reads: its rules hold wherever a clip goes. */
|
|
24
|
+
readonly shared?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Where an element is, as a selector reads it: the elements that hold it, outermost first, the
|
|
28
|
+
* video's root and its scene's host and composition among them.
|
|
29
|
+
*/
|
|
30
|
+
export type LookContext = readonly LookElement[];
|
|
31
|
+
/** A rule of an element's look, as {@link writtenLook} writes it for another scene. */
|
|
32
|
+
export interface LookRule {
|
|
33
|
+
/** Whether it was scoped to its scene, as it will be to the next. */
|
|
34
|
+
readonly scoped: boolean;
|
|
35
|
+
/** Its tag, if it names one, and the rest of what it names the element by, its id aside. */
|
|
36
|
+
readonly tag: string;
|
|
37
|
+
readonly rest: string;
|
|
38
|
+
/** What it styles inside the element, through it, as written: ` .hot`, ` > span`. */
|
|
39
|
+
readonly tail: string;
|
|
40
|
+
/** How many times it names the element's id, which the rewritten rule names it as often. */
|
|
41
|
+
readonly ids: number;
|
|
42
|
+
readonly body: string;
|
|
43
|
+
/** The `@media`, `@supports`, `@container` or `@layer` it was in, outermost first. */
|
|
44
|
+
readonly within: readonly string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* An element's look: each rule that styles it itself, in cascade order, the keyframes they
|
|
48
|
+
* animate by, and whether some rule may style it there that cannot be carried.
|
|
49
|
+
*/
|
|
50
|
+
export interface Look {
|
|
51
|
+
readonly rules: readonly LookRule[];
|
|
52
|
+
readonly keyframes: ReadonlyMap<string, string>;
|
|
53
|
+
readonly uncertain: boolean;
|
|
54
|
+
/** The rules that make it uncertain, which {@link lookDiffers} reads where it was and lands. */
|
|
55
|
+
readonly unsure?: readonly {
|
|
56
|
+
readonly selector: string;
|
|
57
|
+
readonly body: string;
|
|
58
|
+
readonly sheet: LookSheet;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/** The keyframes a scene reads by name: its own and its linked sheets', and the looks carried in. */
|
|
62
|
+
export interface SceneKeyframes {
|
|
63
|
+
readonly own: ReadonlyMap<string, string>;
|
|
64
|
+
readonly carried: ReadonlyMap<string, readonly string[]>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The top-level rules and at-rules of a stylesheet, comments aside: `@media` and its kind are
|
|
68
|
+
* blocks of their own, which no rule of theirs is taken from.
|
|
69
|
+
*/
|
|
70
|
+
export declare function cssBlocks(css: string): CssBlock[];
|
|
71
|
+
/** The keyframes a stylesheet defines, by name. */
|
|
72
|
+
export declare function keyframesOf(blocks: readonly CssBlock[]): Map<string, string>;
|
|
73
|
+
/**
|
|
74
|
+
* The look an element has in `scene`: each rule of the sheets that reach it there whose selector
|
|
75
|
+
* styles the element itself, by its tag, id, classes, attributes and states, `:is()` and `:not()`
|
|
76
|
+
* read for it, within the scene or within no composition, in the order the page reads them, and
|
|
77
|
+
* each inside the `@media` and its kind it was in. A rule that reaches it through a wrapper, or by
|
|
78
|
+
* its place among its siblings, is not carried, and makes the look uncertain.
|
|
79
|
+
*/
|
|
80
|
+
export declare function lookOf(element: LookElement, scene: string, sheets: readonly LookSheet[]): Look;
|
|
81
|
+
/**
|
|
82
|
+
* Whether an element looks otherwise where it lands than where it was, as far as its look's
|
|
83
|
+
* stylesheets can tell: a rule it could not carry, through what holds it, that styles it in
|
|
84
|
+
* one place and not the other, or that a scene's own sheet gave it; or one a linked sheet gives it
|
|
85
|
+
* in both, whose properties a carried rule now outranks. Without where it is and lands, any such
|
|
86
|
+
* rule makes it so.
|
|
87
|
+
*/
|
|
88
|
+
export declare function lookDiffers(look: Look, element: LookElement, context?: {
|
|
89
|
+
readonly from: LookContext;
|
|
90
|
+
readonly to: LookContext;
|
|
91
|
+
}): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Whether a selector styles an element where it is, `ancestors` holding it: `"uncertain"` when
|
|
94
|
+
* it depends on what a stylesheet cannot tell, its siblings or its place among them.
|
|
95
|
+
*/
|
|
96
|
+
export declare function matchesIn(selector: string, element: LookElement, ancestors: LookContext): boolean | "uncertain";
|
|
97
|
+
/**
|
|
98
|
+
* A look written for `scene`, once, for every clip that carries it by `data-look="<key>"`: each
|
|
99
|
+
* rule as it was, reaching those clips by their key, as specific as it was and one id more,
|
|
100
|
+
* `[data-composition-id="<scene>"] p:is([data-look="<key>"], #sixb-look).caption`, `:is()` taking
|
|
101
|
+
* its most specific argument's weight, an id none has; so the rules keep their cascade among
|
|
102
|
+
* themselves and outrank the scene's own. In the `@media` each was in, with the keyframes they
|
|
103
|
+
* animate by: a name the scene reads already, with the same frames, is used as it is; with others,
|
|
104
|
+
* the look's take a name of their own, so neither changes the other.
|
|
105
|
+
*/
|
|
106
|
+
export declare function writtenLook(look: Look, scene: string, key: string, seen: SceneKeyframes): string[];
|
|
107
|
+
/** Whether a scene's script names an element as a selector does: by its id or a class. */
|
|
108
|
+
export declare function scriptNames(scripts: string, element: LookElement): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether a scene's script reaches an element by what it is rather than by its id: one of its
|
|
111
|
+
* classes, or its tag within the scene, `${scene} video`, as the Agent's timelines write it.
|
|
112
|
+
*/
|
|
113
|
+
export declare function scriptReaches(scripts: string, element: LookElement): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether a scene's script reaches an element where it lands, `context` holding it: a selector it
|
|
116
|
+
* writes matches it there, as a string, or a template naming the strings it declares,
|
|
117
|
+
* `${scene} video`. A script building one otherwise is read as {@link scriptReaches} reads it.
|
|
118
|
+
*/
|
|
119
|
+
export declare function scriptReachesIn(scripts: string, element: LookElement, context: LookContext): boolean;
|
|
120
|
+
/** A rule as a scene's file writes it: on one line when its body is, else one line each. */
|
|
121
|
+
export declare function cssRule(prelude: string, body: string): string;
|
|
122
|
+
/** An id no element has, which gives a look's rules the weight of one: no edit names one so. */
|
|
123
|
+
export declare const LOOK_ID = "sixb-look";
|
|
124
|
+
/**
|
|
125
|
+
* A look's key, from the scene it is from and what it is: the same look, the same key, whichever
|
|
126
|
+
* clip carries it and wherever it was carried: its keyframes by their place, whatever a scene
|
|
127
|
+
* renamed them, and its rules as {@link cssKey} reads them. Two FNV-1a hashes of it, and its
|
|
128
|
+
* length.
|
|
129
|
+
*/
|
|
130
|
+
export declare function lookKey(home: string, look: Look): string;
|
|
131
|
+
/** A rule's text, its spaces aside, to tell two alike. */
|
|
132
|
+
export declare function cssKey(css: string): string;
|
|
133
|
+
//# sourceMappingURL=looks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"looks.d.ts","sourceRoot":"","sources":["../../../src/artifacts/video/looks.ts"],"names":[],"mappings":"AASA,8FAA8F;AAC9F,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,0CAA0C;AAC1C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjD;AAED;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAA;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,gGAAgG;IAChG,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,WAAW,EAAE,CAAA;AAEhD,uFAAuF;AACvF,MAAM,WAAW,QAAQ;IACvB,qEAAqE;IACrE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,4FAA4F;IAC5F,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,C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composition";
|
|
2
|
+
/** How HyperFrames renders one segment of a video's export. */
|
|
3
|
+
export interface VideoSegmentRender {
|
|
4
|
+
/** The scenes it keeps: those on screen with the segment's scene, in `index.html`'s order. */
|
|
5
|
+
readonly scenes: readonly string[];
|
|
6
|
+
/** The whole frames everything is moved earlier by. */
|
|
7
|
+
readonly shiftFrames: number;
|
|
8
|
+
/** The frames it renders, once moved: from `from`, up to `to`, which the root then lasts. */
|
|
9
|
+
readonly from: number;
|
|
10
|
+
readonly to: number;
|
|
11
|
+
}
|
|
12
|
+
/** A video's length, rate and scenes, as its segments are cut from them. */
|
|
13
|
+
export interface VideoTimeline<TScene extends VideoTimedScene = VideoTimedScene> {
|
|
14
|
+
readonly fps: number;
|
|
15
|
+
readonly durationMs: number;
|
|
16
|
+
/** In the order they start. */
|
|
17
|
+
readonly scenes: readonly TScene[];
|
|
18
|
+
}
|
|
19
|
+
export type VideoTimedScene = Pick<VideoScene, "id" | "startMs" | "durationMs">;
|
|
20
|
+
/** The frames of a scene's segment, which `scene` renders: from `startFrame` up to `endFrame`. */
|
|
21
|
+
export interface VideoSegmentFrames {
|
|
22
|
+
readonly scene: string;
|
|
23
|
+
readonly startFrame: number;
|
|
24
|
+
readonly endFrame: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Each scene's segment, by its id: from the frame it starts on, the first from frame 0, up to the
|
|
28
|
+
* one the next scene starts on, or the video's last. Scenes that start on one frame share the
|
|
29
|
+
* segment of the first, which renders it; a scene that starts past the end has none.
|
|
30
|
+
*/
|
|
31
|
+
export declare function videoSegmentFrames(video: VideoTimeline): ReadonlyMap<string, VideoSegmentFrames>;
|
|
32
|
+
/**
|
|
33
|
+
* The instant a segment's still shows: its middle, on the millisecond at or before it. A scene's
|
|
34
|
+
* segment ends where the next scene starts, so its middle shows the scene alone, come in.
|
|
35
|
+
*/
|
|
36
|
+
export declare function videoSegmentMiddleMs(segment: VideoSegmentFrames, fps: number): number;
|
|
37
|
+
/**
|
|
38
|
+
* The instant a video shows before it plays, which its card's poster pictures: the one its root's
|
|
39
|
+
* `data-poster` names, else its first scene's still, the middle of its segment.
|
|
40
|
+
*/
|
|
41
|
+
export declare function videoPosterMs(video: VideoTimeline & {
|
|
42
|
+
readonly posterMs?: number;
|
|
43
|
+
}): number;
|
|
44
|
+
/**
|
|
45
|
+
* The scenes on screen during the frames from `startFrame` up to `endFrame`, for a moment at
|
|
46
|
+
* least, in the order they start: what a segment shows, and so what its key holds.
|
|
47
|
+
*/
|
|
48
|
+
export declare function scenesOnScreen<TScene extends VideoTimedScene>(video: VideoTimeline<TScene>, frames: Pick<VideoSegmentFrames, "startFrame" | "endFrame">): TScene[];
|
|
49
|
+
/**
|
|
50
|
+
* How the segment of `scene` from `startFrame` up to `endFrame` renders. The project keeps the
|
|
51
|
+
* scenes on screen during it alone. It is moved earlier by as many whole frames as no kept scene
|
|
52
|
+
* starts before, so a scene keeps its place between frames, up to the segment's start: then
|
|
53
|
+
* HyperFrames renders it from frame 0. A scene still on screen from before the segment, as one
|
|
54
|
+
* fades into the next, or a root that moves on its own, keeps it from there: HyperFrames then
|
|
55
|
+
* renders a range of the project, from `from`, in short chunks one after the other, about twice
|
|
56
|
+
* slower.
|
|
57
|
+
*/
|
|
58
|
+
export declare function videoSegmentRender(composition: Pick<VideoComposition, "fps" | "durationMs" | "scenes">, segment: VideoSegmentFrames, rootMoves: boolean): VideoSegmentRender;
|
|
59
|
+
/**
|
|
60
|
+
* `index.html` as `render` keeps it: only its scenes' hosts, each starting at a number of seconds,
|
|
61
|
+
* `shiftFrames` earlier, and the root lasting `to` frames. What else the root holds stays as
|
|
62
|
+
* written, its soundtrack too, which HyperFrames mixes and the segment drops.
|
|
63
|
+
*/
|
|
64
|
+
export declare function videoSegmentIndex(index: string, composition: Pick<VideoComposition, "fps" | "scenes" | "root">, render: Pick<VideoSegmentRender, "scenes" | "shiftFrames" | "to">): string;
|
|
65
|
+
/** The frame a moment falls on, or the last one before it. */
|
|
66
|
+
export declare function frameAtOrBefore(ms: number, fps: number): number;
|
|
67
|
+
/**
|
|
68
|
+
* How many frames HyperFrames renders of `ms`: the nearest whole frame when it is within a
|
|
69
|
+
* thousandth of one, the next one otherwise, as its `durationToFrameCount` counts.
|
|
70
|
+
*/
|
|
71
|
+
export declare function videoFrameCount(ms: number, fps: number): number;
|
|
72
|
+
/** Whether two scenes are on screen at once, for a moment at least. */
|
|
73
|
+
export declare function playTogether(a: Pick<VideoScene, "startMs" | "durationMs">, b: Pick<VideoScene, "startMs" | "durationMs">): boolean;
|
|
74
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/artifacts/video/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAmB,MAAM,eAAe,CAAA;AAQlF,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,uDAAuD;IACvD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,6FAA6F;IAC7F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CACpB;AAED,4EAA4E;AAC5E,MAAM,WAAW,aAAa,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe;IAC7E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CACnC;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,YAAY,CAAC,CAAA;AAE/E,kGAAkG;AAClG,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KA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AgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAI/D;AAED,uEAAuE;AACvE,wBAAgB,YAAY,CAC1B,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,YAAY,CAAC,EAC7C,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,YAAY,CAAC,GAC5C,OAAO,CAET"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { Queue, RenderQueueJob } from "../../queues";
|
|
2
|
+
import type { ArtifactStorage, ArtifactVersionRecord } from "../../storage/artifacts/types";
|
|
3
|
+
import type { VideoOutline } from "../outline";
|
|
4
|
+
import { resolveVideoMedia } from "./export";
|
|
5
|
+
/**
|
|
6
|
+
* How the render worker snapshots a version's stills: each attempt within `timeoutMs`, up to
|
|
7
|
+
* `attempts`, `backoffMs` apart, `settleMs` after the last write that asked.
|
|
8
|
+
*/
|
|
9
|
+
export declare const VIDEO_STILLS_JOB: {
|
|
10
|
+
readonly timeoutMs: number;
|
|
11
|
+
readonly attempts: 3;
|
|
12
|
+
readonly backoffMs: 30000;
|
|
13
|
+
readonly settleMs: 15000;
|
|
14
|
+
};
|
|
15
|
+
/** A still's width at most, in pixels: a card's poster, sharp on a screen of twice its density. */
|
|
16
|
+
export declare const VIDEO_STILL_WIDTH = 1280;
|
|
17
|
+
/**
|
|
18
|
+
* A picture of a video at one instant, kept under its key: the middle of a scene's segment, or the
|
|
19
|
+
* instant its root's `data-poster` names. `scene` is the scene whose segment holds the instant,
|
|
20
|
+
* which every scene on screen then overlaps, so the project that snapshots it keeps those.
|
|
21
|
+
*/
|
|
22
|
+
export interface VideoStill {
|
|
23
|
+
readonly key: string;
|
|
24
|
+
readonly atMs: number;
|
|
25
|
+
readonly scene: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Each scene's still: the middle of its segment, what its chapter plays until the next scene
|
|
29
|
+
* starts, kept under what the scene's segment shows and where in it the instant falls. What an
|
|
30
|
+
* `artifact:` address it plays resolves to is not in its key: a still shows it as the version's
|
|
31
|
+
* publisher read it, and a later change to that artifact keeps the still until the scene changes.
|
|
32
|
+
*/
|
|
33
|
+
export declare function videoSceneStills(outline: VideoOutline): VideoStill[];
|
|
34
|
+
/**
|
|
35
|
+
* A video's stills: each scene's, then, when its root names one, its poster's instant, kept under
|
|
36
|
+
* what the scene that holds that instant shows and where in it the instant falls.
|
|
37
|
+
*/
|
|
38
|
+
export declare function videoStills(outline: VideoOutline): VideoStill[];
|
|
39
|
+
/**
|
|
40
|
+
* The still a card shows, of the instant the player opens on, `videoPosterMs`: the one its root's
|
|
41
|
+
* `data-poster` names, else the first scene's.
|
|
42
|
+
*/
|
|
43
|
+
export declare function videoPoster(outline: VideoOutline): VideoStill | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The stills of a video version not kept yet. One that could not be made is asked for again, once
|
|
46
|
+
* the video is published again: a still is cheap, and a failure may have been the sandbox's.
|
|
47
|
+
*/
|
|
48
|
+
export declare function missingVideoStills(storage: Pick<ArtifactStorage, "listVideoRenders">, version: Pick<ArtifactVersionRecord, "projectId" | "outline">): Promise<VideoStill[]>;
|
|
49
|
+
/** One job per artifact, which each write that asks replaces. */
|
|
50
|
+
export declare function videoStillsJobId(artifactId: string): string;
|
|
51
|
+
/**
|
|
52
|
+
* Asks the render worker for the stills a stored video version misses, once the video rests,
|
|
53
|
+
* `VIDEO_STILLS_JOB.settleMs` from now, in the artifact's one job: it takes the place of any asked
|
|
54
|
+
* for an earlier write. The `artifact:` files it plays resolve as `read`, its publisher, reads
|
|
55
|
+
* them. Nothing is asked when nothing is missing.
|
|
56
|
+
*
|
|
57
|
+
* The version exists by now and its stills are derived from it, so a request that fails is
|
|
58
|
+
* reported, not thrown: the publish succeeded, and the player shows its scenes without pictures.
|
|
59
|
+
*/
|
|
60
|
+
export declare function requestVideoStills(input: {
|
|
61
|
+
readonly storage: Pick<ArtifactStorage, "listVideoRenders">;
|
|
62
|
+
readonly queue: Pick<Queue<RenderQueueJob>, "enqueue">;
|
|
63
|
+
readonly read: Parameters<typeof resolveVideoMedia>[1];
|
|
64
|
+
}, version: ArtifactVersionRecord): Promise<void>;
|
|
65
|
+
//# sourceMappingURL=stills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stills.d.ts","sourceRoot":"","sources":["../../../src/artifacts/video/stills.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAgB,MAAM,UAAU,CAAA;AAU1D;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAA;AAEV,mGAAmG;AACnG,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAKrC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,EAAE,CAUpE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,EAAE,CAI/D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,CAGzE;AAiBD;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,EAClD,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,WAAW,GAAG,SAAS,CAAC,GAC5D,OAAO,CAAC,UAAU,EAAE,CAAC,CAUvB;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE;IACL,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAA;IAC3D,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,CAAA;IACtD,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;CACvD,EACD,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CA6Bf"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { VideoSourceSpan } from "./composition";
|
|
2
|
+
/** What a clip shows or plays. */
|
|
3
|
+
export type VideoClipKind = "video" | "audio" | "image" | "text" | "element";
|
|
4
|
+
/** The rows an editor lays clips on: what is seen, what is read, and what is heard. */
|
|
5
|
+
export type VideoTrack = "picture" | "text" | "sound";
|
|
6
|
+
/** An element where its file writes it, for an editor to change it in place. */
|
|
7
|
+
export interface VideoElementSource {
|
|
8
|
+
/** The whole element, its end tag included. */
|
|
9
|
+
readonly element: VideoSourceSpan;
|
|
10
|
+
/** Its start tag. */
|
|
11
|
+
readonly tag: VideoSourceSpan;
|
|
12
|
+
/** Each attribute it writes, by name, as the span of its name and value. */
|
|
13
|
+
readonly attributes: Readonly<Record<string, VideoSourceSpan>>;
|
|
14
|
+
/** What it holds, between its start tag and its end tag; none for a void element. */
|
|
15
|
+
readonly content?: VideoSourceSpan;
|
|
16
|
+
}
|
|
17
|
+
/** A timed element of a composition: footage, a sound, a picture, a line of text. */
|
|
18
|
+
export interface VideoClip {
|
|
19
|
+
/**
|
|
20
|
+
* How an edit names it in its file: its `id`, else `#<n>`, its place among the file's clips.
|
|
21
|
+
* An `id` survives edits around it; a place, only edits that add or remove no clip before it.
|
|
22
|
+
*/
|
|
23
|
+
readonly ref: string;
|
|
24
|
+
readonly id?: string;
|
|
25
|
+
readonly tag: string;
|
|
26
|
+
readonly kind: VideoClipKind;
|
|
27
|
+
readonly track: VideoTrack;
|
|
28
|
+
/** A caption: a line of what is said, as the Agent's guide writes them. */
|
|
29
|
+
readonly caption: boolean;
|
|
30
|
+
/** From its composition's start: a scene's, or the video's for `index.html`. */
|
|
31
|
+
readonly startMs: number;
|
|
32
|
+
/** As its `data-duration` writes it; none when it plays until its file or its composition ends. */
|
|
33
|
+
readonly durationMs?: number;
|
|
34
|
+
/** Where in its file it starts playing, from `data-media-start`. */
|
|
35
|
+
readonly mediaStartMs: number;
|
|
36
|
+
/** The file it plays or shows, as written. */
|
|
37
|
+
readonly src?: string;
|
|
38
|
+
/** From `data-volume`, 1 as recorded. */
|
|
39
|
+
readonly volume?: number;
|
|
40
|
+
readonly fadeInMs?: number;
|
|
41
|
+
readonly fadeOutMs?: number;
|
|
42
|
+
/**
|
|
43
|
+
* A clip whose sound is not played, as HyperFrames mixes it: footage `muted`, or with a
|
|
44
|
+
* `data-has-audio` other than "true"; a sound `muted`.
|
|
45
|
+
*/
|
|
46
|
+
readonly silent: boolean;
|
|
47
|
+
/** What a text clip says. */
|
|
48
|
+
readonly text?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The clip it goes on from, by its id, from `data-continues`: a part of that clip in a later
|
|
51
|
+
* scene, which an editor edits with it as one (see {@link videoChains}).
|
|
52
|
+
*/
|
|
53
|
+
readonly continues?: string;
|
|
54
|
+
readonly source: VideoElementSource;
|
|
55
|
+
}
|
|
56
|
+
/** An element whose words an editor may type over: it holds text alone. */
|
|
57
|
+
export interface VideoText {
|
|
58
|
+
/** Its `id`, else `<tag>:<n>`, its place among the file's texts. */
|
|
59
|
+
readonly ref: string;
|
|
60
|
+
readonly tag: string;
|
|
61
|
+
readonly text: string;
|
|
62
|
+
/** Its `class`, which says what it is to whoever reads the list: a title, a callout. */
|
|
63
|
+
readonly className?: string;
|
|
64
|
+
/** Whether it is also a clip: timed by `data-start`. */
|
|
65
|
+
readonly timed: boolean;
|
|
66
|
+
readonly source: VideoElementSource;
|
|
67
|
+
}
|
|
68
|
+
/** One composition's clips and texts, in the order its file writes them. */
|
|
69
|
+
export interface VideoFileTimeline {
|
|
70
|
+
readonly clips: readonly VideoClip[];
|
|
71
|
+
readonly texts: readonly VideoText[];
|
|
72
|
+
/** The composition's own element, which new clips go into. */
|
|
73
|
+
readonly composition: VideoElementSource;
|
|
74
|
+
/** The elements it holds itself, in order, each by its tag: where a new clip may go. */
|
|
75
|
+
readonly children: readonly {
|
|
76
|
+
readonly tag: string;
|
|
77
|
+
readonly source: VideoElementSource;
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The clips and texts of a scene file: the timed elements in its `<template>`'s composition,
|
|
82
|
+
* leaving out what a composition it nests holds. Null for a file that is not one.
|
|
83
|
+
*/
|
|
84
|
+
export declare function readSceneTimeline(html: string): VideoFileTimeline | null;
|
|
85
|
+
/**
|
|
86
|
+
* The clips and texts `index.html` plays on its own timeline, beside its scenes: its soundtrack,
|
|
87
|
+
* a logo over every scene. Null for a file without a root composition.
|
|
88
|
+
*/
|
|
89
|
+
export declare function readRootTimeline(html: string): VideoFileTimeline | null;
|
|
90
|
+
/**
|
|
91
|
+
* What `index.html`'s root paints of its own over the scenes before it: each element it holds
|
|
92
|
+
* after its first scene's host, but the hosts, its sounds, and what shows nothing. HyperFrames
|
|
93
|
+
* positions the timed ones, so a scene's `z-index` covers them unless theirs is higher. Empty for a
|
|
94
|
+
* file without a root composition or a scene.
|
|
95
|
+
*/
|
|
96
|
+
export declare function readRootLayers(html: string): VideoElementSource[];
|
|
97
|
+
/** A part of a clip laid in the video: its scene's file, the clip there, and when it plays. */
|
|
98
|
+
export interface VideoChainPart {
|
|
99
|
+
readonly file: string;
|
|
100
|
+
readonly clip: VideoClip;
|
|
101
|
+
readonly startMs: number;
|
|
102
|
+
readonly endMs: number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* A clip and the parts that go on from it in the scenes after, past each one's end: one clip to
|
|
106
|
+
* whoever edits it, from its first part's start to its last's end. Its parts are in play order,
|
|
107
|
+
* the first, its head, holding the id each other names in `data-continues`. A recording cut by its
|
|
108
|
+
* words goes on in pieces: two back to back in one scene, or across a scene's edge, each playing
|
|
109
|
+
* its own stretch of the file.
|
|
110
|
+
*/
|
|
111
|
+
export interface VideoChain {
|
|
112
|
+
readonly parts: readonly VideoChainPart[];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The video's chains: each clip that parts in later scenes go on from, with those parts. A part
|
|
116
|
+
* is one only while it goes on from the one before it, as the edit that cut it wrote it: the same
|
|
117
|
+
* element, starting where that one ends, or where its own scene starts after a gap. One edited
|
|
118
|
+
* apart, or whose head is gone, heads a chain of its own, or stands alone, so a video nobody cut
|
|
119
|
+
* this way has none.
|
|
120
|
+
*/
|
|
121
|
+
export declare function videoChains(scenes: readonly VideoSceneSpan[], timelineOf: (file: string) => VideoFileTimeline | undefined): VideoChain[];
|
|
122
|
+
/** A scene's file and where it plays in the video. */
|
|
123
|
+
export interface VideoSceneSpan {
|
|
124
|
+
readonly src: string;
|
|
125
|
+
readonly startMs: number;
|
|
126
|
+
readonly durationMs: number;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The scene a clip that runs past `scene`'s end goes on in: the chapter on top at that instant,
|
|
130
|
+
* the later in play order, else the next to start; none past the last. `scenes` in play order.
|
|
131
|
+
* An overlay is never one (see {@link videoChapters}).
|
|
132
|
+
*/
|
|
133
|
+
export declare function sceneAfter<T extends {
|
|
134
|
+
readonly startMs: number;
|
|
135
|
+
readonly durationMs: number;
|
|
136
|
+
}>(scenes: readonly T[], scene: T): T | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* The scenes that are the video's chapters, in play order: every one but an overlay, a scene laid
|
|
139
|
+
* over the others, as captions written over the whole video: one that holds two others whole, or
|
|
140
|
+
* the span of all the others, two at least, from the first's start to the last's end. One short chapter inside a
|
|
141
|
+
* longer one's crossfade leaves both chapters; of two alike, the later is the overlay. An
|
|
142
|
+
* overlay's clips stay its own: no clip goes into it or out.
|
|
143
|
+
*/
|
|
144
|
+
export declare function videoChapters<T extends {
|
|
145
|
+
readonly startMs: number;
|
|
146
|
+
readonly durationMs: number;
|
|
147
|
+
}>(scenes: readonly T[]): T[];
|
|
148
|
+
/**
|
|
149
|
+
* Whether `next` would go on from `previous` as {@link videoChains} links parts, whatever head its
|
|
150
|
+
* `data-continues` names: a part two edits at once left naming another.
|
|
151
|
+
*/
|
|
152
|
+
export declare function goesOnFrom(scenes: readonly VideoSceneSpan[], previous: VideoChainPart, next: VideoChainPart): boolean;
|
|
153
|
+
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../../src/artifacts/video/timeline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAUpD,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAE5E,uFAAuF;AACvF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAErD,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,qBAAqB;IACrB,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAA;IAC7B,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAA;IAC9D,qFAAqF;IACrF,QAAQ,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AAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,GAC1D,UAAU,EAAE,CAuDd;AAED,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC5F,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,KAAK,EAAE,CAAC,GACP,CAAC,GAAG,SAAS,CAOf;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAC/F,MAAM,EAAE,SAAS,CAAC,EAAE,GACnB,CAAC,EAAE,CAiBL;AA+CD;;;GAGG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,SAAS,cAAc,EAAE,EACjC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,cAAc,GACnB,OAAO,CAGT"}
|
package/dist/auth/index.js
CHANGED
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
AuthRuntime2,
|
|
24
24
|
SYSTEM_PRINCIPAL2,
|
|
25
25
|
principalsEqual2
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import"../chunk-
|
|
26
|
+
} from "../chunk-nhgqz3g3.js";
|
|
27
|
+
import"../chunk-y3qb965a.js";
|
|
28
28
|
import"../chunk-zrvhsq7f.js";
|
|
29
|
-
import"../chunk-
|
|
30
|
-
import"../chunk-
|
|
29
|
+
import"../chunk-hpswfrjj.js";
|
|
30
|
+
import"../chunk-bkxm2dzx.js";
|
|
31
31
|
import"../chunk-frsz8wxd.js";
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_SESSION_COOKIE_NAME2,
|
|
@@ -53,14 +53,15 @@ import {
|
|
|
53
53
|
isInvitationDeliveryAuthStrategy2,
|
|
54
54
|
isOidcAuthStrategy2
|
|
55
55
|
} from "../chunk-5grk14e5.js";
|
|
56
|
-
import"../chunk-
|
|
56
|
+
import"../chunk-e3b1r4d2.js";
|
|
57
57
|
import"../chunk-rt9deb92.js";
|
|
58
|
-
import"../chunk-
|
|
58
|
+
import"../chunk-7zygtcqq.js";
|
|
59
|
+
import"../chunk-1z8ccj53.js";
|
|
59
60
|
import"../chunk-7j4yydm2.js";
|
|
60
61
|
import"../chunk-d7v97qxq.js";
|
|
61
62
|
import"../chunk-mvz89age.js";
|
|
62
63
|
import"../chunk-6eqsgvxk.js";
|
|
63
|
-
import"../chunk-
|
|
64
|
+
import"../chunk-2138b0ng.js";
|
|
64
65
|
import"../chunk-kr6dx38r.js";
|
|
65
66
|
export {
|
|
66
67
|
AuthRuntime2 as AuthRuntime,
|
|
@@ -110,4 +111,4 @@ export {
|
|
|
110
111
|
verifyDoubleSubmitCsrf2 as verifyDoubleSubmitCsrf
|
|
111
112
|
};
|
|
112
113
|
|
|
113
|
-
//# debugId=
|
|
114
|
+
//# debugId=C58CB9AA6E69D58764756E2164756E21
|
package/dist/auth/index.js.map
CHANGED
|
@@ -25,14 +25,15 @@ import {
|
|
|
25
25
|
canViewPrimitiveRun2,
|
|
26
26
|
canViewProjection2,
|
|
27
27
|
emptyGrantIndex2
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-e3b1r4d2.js";
|
|
29
29
|
import"../chunk-rt9deb92.js";
|
|
30
|
-
import"../chunk-
|
|
30
|
+
import"../chunk-7zygtcqq.js";
|
|
31
|
+
import"../chunk-1z8ccj53.js";
|
|
31
32
|
import"../chunk-7j4yydm2.js";
|
|
32
33
|
import"../chunk-d7v97qxq.js";
|
|
33
34
|
import"../chunk-mvz89age.js";
|
|
34
35
|
import"../chunk-6eqsgvxk.js";
|
|
35
|
-
import"../chunk-
|
|
36
|
+
import"../chunk-2138b0ng.js";
|
|
36
37
|
import"../chunk-kr6dx38r.js";
|
|
37
38
|
export {
|
|
38
39
|
AuthorizationError2 as AuthorizationError,
|
|
@@ -62,4 +63,4 @@ export {
|
|
|
62
63
|
resolveRoleViewConditions2 as resolveRoleViewConditions
|
|
63
64
|
};
|
|
64
65
|
|
|
65
|
-
//# debugId=
|
|
66
|
+
//# debugId=80B080295D861E3264756E2164756E21
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FileRef } from "./types";
|
|
2
|
-
export { DEFAULT_SIMPLE_FILE_UPLOAD_BYTES } from "./constants";
|
|
2
|
+
export { DEFAULT_SIMPLE_FILE_UPLOAD_BYTES, MAX_FILE_UPLOAD_BYTES } from "./constants";
|
|
3
3
|
export { blobDigestHex, blobIdFromDigest } from "./derive";
|
|
4
4
|
export type { BlobDigest, BlobInfo, FileRef } from "./types";
|
|
5
5
|
export { isBlobDigest, isFileRef } from "./validation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/blob-storage/browser.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/blob-storage/browser.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACrF,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAC1D,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAEtD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAQpD"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
DEFAULT_SIMPLE_FILE_UPLOAD_BYTES2,
|
|
4
3
|
fileNameFor2
|
|
5
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-a9qzjaz2.js";
|
|
6
5
|
import {
|
|
7
6
|
blobDigestHex2,
|
|
8
7
|
blobIdFromDigest2,
|
|
9
8
|
isBlobDigest2,
|
|
10
9
|
isFileRef2
|
|
11
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-2138b0ng.js";
|
|
11
|
+
import {
|
|
12
|
+
DEFAULT_SIMPLE_FILE_UPLOAD_BYTES2,
|
|
13
|
+
MAX_FILE_UPLOAD_BYTES2
|
|
14
|
+
} from "../chunk-3dvcdn9w.js";
|
|
12
15
|
export {
|
|
13
16
|
DEFAULT_SIMPLE_FILE_UPLOAD_BYTES2 as DEFAULT_SIMPLE_FILE_UPLOAD_BYTES,
|
|
17
|
+
MAX_FILE_UPLOAD_BYTES2 as MAX_FILE_UPLOAD_BYTES,
|
|
14
18
|
blobDigestHex2 as blobDigestHex,
|
|
15
19
|
blobIdFromDigest2 as blobIdFromDigest,
|
|
16
20
|
fileNameFor2 as fileNameFor,
|
|
@@ -18,4 +22,4 @@ export {
|
|
|
18
22
|
isFileRef2 as isFileRef
|
|
19
23
|
};
|
|
20
24
|
|
|
21
|
-
//# debugId=
|
|
25
|
+
//# debugId=CA0A5DB6DCFAD26364756E2164756E21
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Maximum size, in bytes, of a
|
|
2
|
+
* Maximum size, in bytes, of a simple upload: one `POST /api/files` request.
|
|
3
3
|
*
|
|
4
4
|
* This is a single source of truth for two sides that must agree: it is both the
|
|
5
5
|
* server's simple-upload ceiling AND the client's threshold for switching to a
|
|
6
|
-
* staged
|
|
7
|
-
*
|
|
6
|
+
* staged upload. Keeping one constant prevents the two limits from drifting apart.
|
|
7
|
+
* A staged upload declared without a size is held to it too.
|
|
8
8
|
*/
|
|
9
9
|
export declare const DEFAULT_SIMPLE_FILE_UPLOAD_BYTES: number;
|
|
10
|
+
/**
|
|
11
|
+
* The most one staged upload may hold. Its bytes go to blob storage as they arrive, or straight to
|
|
12
|
+
* the provider, never whole in the server's memory. A file artifact's one file may be this large.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MAX_FILE_UPLOAD_BYTES: number;
|
|
10
15
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/blob-storage/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,QAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/blob-storage/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,QAAmB,CAAA;AAEhE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAyB,CAAA"}
|
|
@@ -26,8 +26,8 @@ export interface FileDownloadUrl {
|
|
|
26
26
|
/** What issuing and revoking need from the execution that asks. */
|
|
27
27
|
export interface FileDownloadUrlContext {
|
|
28
28
|
readonly projectId: string;
|
|
29
|
-
readonly storage: Storage
|
|
30
|
-
readonly blobStorage: BlobStorage
|
|
29
|
+
readonly storage: Pick<Storage, "fileDownloadGrants">;
|
|
30
|
+
readonly blobStorage: Pick<BlobStorage, "stat">;
|
|
31
31
|
readonly executionId: string;
|
|
32
32
|
readonly apiPublicOrigin: string | undefined;
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-urls.d.ts","sourceRoot":"","sources":["../../src/blob-storage/download-urls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqD,OAAO,EAAE,MAAM,YAAY,CAAA;AAE5F,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGnD;;;;;;;;;;GAUG;AAEH,iEAAiE;AACjE,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAQjE,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;CACzB;AAED,mEAAmE;AACnE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"download-urls.d.ts","sourceRoot":"","sources":["../../src/blob-storage/download-urls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqD,OAAO,EAAE,MAAM,YAAY,CAAA;AAE5F,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGnD;;;;;;;;;;GAUG;AAEH,iEAAiE;AACjE,eAAO,MAAM,0BAA0B,0BAA0B,CAAA;AAQjE,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;CACzB;AAED,mEAAmE;AACnE,MAAM,WAA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