@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
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ARTIFACT_LIMITS2
|
|
4
|
+
} from "./chunk-fgxvrxx4.js";
|
|
5
|
+
|
|
6
|
+
// src/artifacts/video/composition.ts
|
|
7
|
+
import { parse, parseFragment } from "parse5";
|
|
8
|
+
|
|
9
|
+
// src/artifacts/html.ts
|
|
10
|
+
var NAMED_ENTITIES = {
|
|
11
|
+
amp: "&",
|
|
12
|
+
lt: "<",
|
|
13
|
+
gt: ">",
|
|
14
|
+
quot: '"',
|
|
15
|
+
apos: "'",
|
|
16
|
+
nbsp: String.fromCharCode(160)
|
|
17
|
+
};
|
|
18
|
+
function decodeHtmlEntities(value) {
|
|
19
|
+
return value.replace(/&(#x[\da-f]+|#\d+|[a-z]+);/gi, (match, entity) => {
|
|
20
|
+
if (entity[0] !== "#")
|
|
21
|
+
return NAMED_ENTITIES[entity.toLowerCase()] ?? match;
|
|
22
|
+
const codePoint = entity[1]?.toLowerCase() === "x" ? Number.parseInt(entity.slice(2), 16) : Number(entity.slice(1));
|
|
23
|
+
return Number.isInteger(codePoint) && codePoint >= 0 && codePoint <= 1114111 ? String.fromCodePoint(codePoint) : match;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
var HTML_FILE_ATTRIBUTES = [
|
|
27
|
+
{ element: "img", attribute: "src" },
|
|
28
|
+
{ element: "video", attribute: "src" },
|
|
29
|
+
{ element: "video", attribute: "poster" },
|
|
30
|
+
{ element: "audio", attribute: "src" },
|
|
31
|
+
{ element: "source", attribute: "src" },
|
|
32
|
+
{ element: "track", attribute: "src" }
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
// src/artifacts/video/composition.ts
|
|
36
|
+
var VIDEO_ENTRY2 = "index.html";
|
|
37
|
+
var VIDEO_FRAME_RATES = [24, 25, 30, 60];
|
|
38
|
+
var DEFAULT_FPS = 30;
|
|
39
|
+
function readVideoComposition2(index, sceneFile) {
|
|
40
|
+
const root = parseVideoRoot(index);
|
|
41
|
+
if ("error" in root)
|
|
42
|
+
return root;
|
|
43
|
+
const files = new Map;
|
|
44
|
+
for (const { id, src } of root.root.scenes) {
|
|
45
|
+
const html = sceneFile(src);
|
|
46
|
+
if (html === undefined)
|
|
47
|
+
return { error: missingScene(id, src) };
|
|
48
|
+
const scene = parseVideoScene(html, src);
|
|
49
|
+
if ("error" in scene)
|
|
50
|
+
return scene;
|
|
51
|
+
files.set(src, scene.scene);
|
|
52
|
+
}
|
|
53
|
+
return composeVideo(root.root, files);
|
|
54
|
+
}
|
|
55
|
+
function videoFilesPlayed2(index, file, exists) {
|
|
56
|
+
const played = new Set;
|
|
57
|
+
const root = parseVideoRoot(index);
|
|
58
|
+
if ("error" in root)
|
|
59
|
+
return played;
|
|
60
|
+
const name = (from, references) => {
|
|
61
|
+
for (const { value } of references) {
|
|
62
|
+
const path = videoFilePath(from, value, exists);
|
|
63
|
+
if (path !== undefined)
|
|
64
|
+
played.add(path);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
name(VIDEO_ENTRY2, root.root.media);
|
|
68
|
+
const read = new Set;
|
|
69
|
+
const visit = (path) => {
|
|
70
|
+
if (read.has(path))
|
|
71
|
+
return;
|
|
72
|
+
read.add(path);
|
|
73
|
+
const html = file(path);
|
|
74
|
+
const scene = html === undefined ? undefined : parseVideoScene(html, path);
|
|
75
|
+
if (!scene || "error" in scene)
|
|
76
|
+
return;
|
|
77
|
+
name(path, scene.scene.media);
|
|
78
|
+
for (const { value } of scene.scene.compositions) {
|
|
79
|
+
const nested = videoFilePath(VIDEO_ENTRY2, value, exists);
|
|
80
|
+
if (nested !== undefined)
|
|
81
|
+
visit(nested);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
for (const scene of root.root.scenes)
|
|
85
|
+
visit(scene.src);
|
|
86
|
+
return played;
|
|
87
|
+
}
|
|
88
|
+
function missingScene(id, src) {
|
|
89
|
+
return `${VIDEO_ENTRY2}: scene '${id}' plays '${src}', which is not one of the video's files.`;
|
|
90
|
+
}
|
|
91
|
+
function parseVideoRoot(html) {
|
|
92
|
+
try {
|
|
93
|
+
return { root: readRoot(html) };
|
|
94
|
+
} catch (error) {
|
|
95
|
+
if (error instanceof CompositionError)
|
|
96
|
+
return { error: `${VIDEO_ENTRY2}: ${error.message}` };
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function parseVideoScene(html, file) {
|
|
101
|
+
try {
|
|
102
|
+
return { scene: readScene(html) };
|
|
103
|
+
} catch (error) {
|
|
104
|
+
if (error instanceof CompositionError)
|
|
105
|
+
return { error: `${file}: ${error.message}` };
|
|
106
|
+
throw error;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function composeVideo(root, files) {
|
|
110
|
+
const scenes = [];
|
|
111
|
+
for (const scene of root.scenes) {
|
|
112
|
+
const file = files.get(scene.src);
|
|
113
|
+
if (!file)
|
|
114
|
+
return { error: missingScene(scene.id, scene.src) };
|
|
115
|
+
if (file.id !== scene.id) {
|
|
116
|
+
return {
|
|
117
|
+
error: `${scene.src} holds composition '${file.id}', but its host in ${VIDEO_ENTRY2} is '${scene.id}': give both one id.`
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
scenes.push({ ...scene, media: file.media, compositions: file.compositions });
|
|
121
|
+
}
|
|
122
|
+
return { composition: { ...root, scenes } };
|
|
123
|
+
}
|
|
124
|
+
function videoFilePath(file, value, exists) {
|
|
125
|
+
const written = value.trim();
|
|
126
|
+
if (written === "" || written.startsWith("/") || /^[a-z][a-z0-9+.-]*:/i.test(written)) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const path = decodePath(written.replace(/[?#].*$/, ""));
|
|
130
|
+
const folder = file.includes("/") ? file.slice(0, file.lastIndexOf("/")) : "";
|
|
131
|
+
if (folder === "")
|
|
132
|
+
return normalizePath(path);
|
|
133
|
+
const sibling = normalizePath(`${folder}/${path}`);
|
|
134
|
+
if (path.startsWith("../") || sibling !== undefined && exists(sibling))
|
|
135
|
+
return sibling;
|
|
136
|
+
return normalizePath(path);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class CompositionError extends Error {
|
|
140
|
+
}
|
|
141
|
+
var SCENE_ID = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/;
|
|
142
|
+
var START_REFERENCE = /^[A-Za-z0-9_.:-]+$/;
|
|
143
|
+
var START_OFFSET = /^(.*?)\s*([+-])\s*((?:\d*\.)?\d+)$/;
|
|
144
|
+
var SCENE_EXAMPLE = '<div data-composition-id="intro" data-composition-src="scenes/intro.html" data-start="0" data-duration="4"></div>';
|
|
145
|
+
function readRoot(html) {
|
|
146
|
+
const document = parse(html, { sourceCodeLocationInfo: true });
|
|
147
|
+
const live = elements(document.childNodes);
|
|
148
|
+
const compositions = live.filter((element) => has(element, "data-composition-id"));
|
|
149
|
+
const root = compositions.find((element) => attribute(element, "data-root") === "true") ?? compositions[0];
|
|
150
|
+
if (!root) {
|
|
151
|
+
throw new CompositionError('it has no root composition: wrap the video in <div data-composition-id="main" data-width="1920" data-height="1080">, its scenes inside.');
|
|
152
|
+
}
|
|
153
|
+
const width = readSize(root, "data-width");
|
|
154
|
+
const height = readSize(root, "data-height");
|
|
155
|
+
const fps = readFps(root);
|
|
156
|
+
const hosts = elements(root.childNodes).filter((element) => has(element, "data-composition-src"));
|
|
157
|
+
if (hosts.length === 0) {
|
|
158
|
+
throw new CompositionError(`its root composition hosts no scene: put each scene in it as ${SCENE_EXAMPLE}, its file a <template>.`);
|
|
159
|
+
}
|
|
160
|
+
if (hosts.length > ARTIFACT_LIMITS2.maxVideoScenes) {
|
|
161
|
+
throw new CompositionError(`a video holds at most ${ARTIFACT_LIMITS2.maxVideoScenes} scenes; this one has ${hosts.length}.`);
|
|
162
|
+
}
|
|
163
|
+
const read = hosts.map((host) => readHost(host, root));
|
|
164
|
+
checkNames(read, live, hosts);
|
|
165
|
+
const starts = resolveStarts(read);
|
|
166
|
+
const scenes = read.map((scene) => ({ ...scene, startMs: starts.get(scene.id) ?? 0 })).sort((a, b) => a.startMs - b.startMs);
|
|
167
|
+
const durationMs = videoLength(root, hosts, fps, scenes);
|
|
168
|
+
const posterMs = readPoster(root, durationMs);
|
|
169
|
+
return {
|
|
170
|
+
width,
|
|
171
|
+
height,
|
|
172
|
+
fps,
|
|
173
|
+
durationMs,
|
|
174
|
+
...posterMs === undefined ? {} : { posterMs },
|
|
175
|
+
scenes,
|
|
176
|
+
media: mediaOf(document.childNodes),
|
|
177
|
+
root: hostSource(root),
|
|
178
|
+
sounds: rootSounds(document.childNodes, hosts),
|
|
179
|
+
rootTimeline: playsOnItsOwn(document.childNodes, root, hosts),
|
|
180
|
+
links: rootLinks(document.childNodes, hosts)
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function videoLength(root, hosts, fps, scenes) {
|
|
184
|
+
const end = Math.max(...scenes.map((scene) => scene.startMs + scene.durationMs));
|
|
185
|
+
const timed = has(root, "data-duration") ? undefined : ownTimeline(root, hosts);
|
|
186
|
+
if (timed) {
|
|
187
|
+
const id = attribute(timed, "id");
|
|
188
|
+
throw new CompositionError(`<${timed.tagName}${id ? ` id="${id}"` : ""}> plays on the root composition's own timeline, so HyperFrames would play the video until it ends: give the root composition data-duration, the video's length in seconds.`);
|
|
189
|
+
}
|
|
190
|
+
const durationMs = has(root, "data-duration") ? readSeconds(root, "data-duration", "the root composition") : end;
|
|
191
|
+
if ((end - durationMs) * fps >= 1000) {
|
|
192
|
+
const last = scenes.find((scene) => scene.startMs + scene.durationMs === end);
|
|
193
|
+
throw new CompositionError(`scene '${last?.id}' ends at ${end / 1000} s, after the root composition's data-duration of ${durationMs / 1000} s: lengthen the video, or end the scene sooner.`);
|
|
194
|
+
}
|
|
195
|
+
if (durationMs > ARTIFACT_LIMITS2.maxVideoSeconds * 1000) {
|
|
196
|
+
throw new CompositionError(`the video lasts ${durationMs / 1000} s; a video lasts at most ${ARTIFACT_LIMITS2.maxVideoSeconds} s.`);
|
|
197
|
+
}
|
|
198
|
+
return durationMs;
|
|
199
|
+
}
|
|
200
|
+
function ownTimeline(root, hosts) {
|
|
201
|
+
const hosted = hostedBy(hosts);
|
|
202
|
+
return elements(root.childNodes).find((element) => !hosted.has(element) && isTimed(element));
|
|
203
|
+
}
|
|
204
|
+
function cssMoves(css) {
|
|
205
|
+
return /@keyframes|\banimation\b|\btransition\b/i.test(css);
|
|
206
|
+
}
|
|
207
|
+
function playsOnItsOwn(nodes, root, hosts) {
|
|
208
|
+
const hosted = hostedBy(hosts);
|
|
209
|
+
return elements(nodes).some((element) => {
|
|
210
|
+
if (hosted.has(element) || element === root || element.tagName === "audio")
|
|
211
|
+
return false;
|
|
212
|
+
const inline = element.tagName === "script" && !has(element, "src");
|
|
213
|
+
return isTimed(element) || inline && textOf(element).trim() !== "" || element.tagName === "style" && cssMoves(textOf(element)) || cssMoves(attribute(element, "style") ?? "");
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function rootSounds(nodes, hosts) {
|
|
217
|
+
const hosted = hostedBy(hosts);
|
|
218
|
+
return elements(nodes).flatMap((element) => {
|
|
219
|
+
const at = element.sourceCodeLocation;
|
|
220
|
+
if (element.tagName !== "audio" || hosted.has(element) || has(element, "controls") || !at) {
|
|
221
|
+
return [];
|
|
222
|
+
}
|
|
223
|
+
return [{ start: at.startOffset, end: at.endOffset }];
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
function rootLinks(nodes, hosts) {
|
|
227
|
+
const hosted = hostedBy(hosts);
|
|
228
|
+
const linked = (tag, name, matches) => elements(nodes).flatMap((element) => {
|
|
229
|
+
const value = attribute(element, name);
|
|
230
|
+
const at = element.sourceCodeLocation?.attrs?.[name];
|
|
231
|
+
if (element.tagName !== tag || hosted.has(element) || !matches(element) || !value || !at) {
|
|
232
|
+
return [];
|
|
233
|
+
}
|
|
234
|
+
return [
|
|
235
|
+
{ element: tag, attribute: name, value, at: { start: at.startOffset, end: at.endOffset } }
|
|
236
|
+
];
|
|
237
|
+
});
|
|
238
|
+
return {
|
|
239
|
+
scripts: linked("script", "src", () => true),
|
|
240
|
+
stylesheets: linked("link", "href", (element) => /\bstylesheet\b/i.test(attribute(element, "rel") ?? ""))
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function isTimed(element) {
|
|
244
|
+
return has(element, "data-start") || element.tagName === "audio" || element.tagName === "video";
|
|
245
|
+
}
|
|
246
|
+
function hostedBy(hosts) {
|
|
247
|
+
return new Set(hosts.flatMap((host) => [host, ...elements(host.childNodes)]));
|
|
248
|
+
}
|
|
249
|
+
function readHost(host, root) {
|
|
250
|
+
const id = attribute(host, "data-composition-id");
|
|
251
|
+
const named = id ? `scene '${id}'` : `the scene playing '${attribute(host, "data-composition-src")}'`;
|
|
252
|
+
const parent = closestComposition(host);
|
|
253
|
+
if (parent !== root) {
|
|
254
|
+
throw new CompositionError(`${named} sits inside composition '${parent ? attribute(parent, "data-composition-id") : ""}': put every scene host in the root composition itself.`);
|
|
255
|
+
}
|
|
256
|
+
if (id === undefined || !SCENE_ID.test(id)) {
|
|
257
|
+
throw new CompositionError(`${named} needs a data-composition-id that starts with a letter, then letters, digits, - or _, such as "intro": it names the scene.`);
|
|
258
|
+
}
|
|
259
|
+
const hostId = attribute(host, "id")?.trim();
|
|
260
|
+
const src = normalizePath(decodePath(attribute(host, "data-composition-src") ?? ""));
|
|
261
|
+
if (src === undefined) {
|
|
262
|
+
throw new CompositionError(`scene '${id}': data-composition-src names its file inside the project, such as "scenes/${id}.html".`);
|
|
263
|
+
}
|
|
264
|
+
const label = attribute(host, "data-label")?.replace(/\s+/g, " ").trim();
|
|
265
|
+
return {
|
|
266
|
+
id,
|
|
267
|
+
...hostId && hostId !== id ? { hostId } : {},
|
|
268
|
+
...label ? { label: label.slice(0, ARTIFACT_LIMITS2.maxTitleLength) } : {},
|
|
269
|
+
src,
|
|
270
|
+
start: readStart(host, id),
|
|
271
|
+
durationMs: readSeconds(host, "data-duration", `scene '${id}'`),
|
|
272
|
+
host: hostSource(host)
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function checkNames(hosts, all, hostElements) {
|
|
276
|
+
const ids = new Set;
|
|
277
|
+
for (const { id } of hosts) {
|
|
278
|
+
if (ids.has(id))
|
|
279
|
+
throw new CompositionError(`two scenes are '${id}': give each its own id.`);
|
|
280
|
+
ids.add(id);
|
|
281
|
+
}
|
|
282
|
+
const hostIds = new Set;
|
|
283
|
+
for (const { id, hostId } of hosts) {
|
|
284
|
+
if (hostId === undefined)
|
|
285
|
+
continue;
|
|
286
|
+
if (hostIds.has(hostId)) {
|
|
287
|
+
throw new CompositionError(`two scene hosts have id "${hostId}": give each its own, or none.`);
|
|
288
|
+
}
|
|
289
|
+
if (ids.has(hostId)) {
|
|
290
|
+
throw new CompositionError(`scene '${id}''s host has id "${hostId}", which is scene '${hostId}''s id, so data-start="${hostId}" would find '${id}': give the host another id, or none.`);
|
|
291
|
+
}
|
|
292
|
+
hostIds.add(hostId);
|
|
293
|
+
}
|
|
294
|
+
const other = all.find((element) => {
|
|
295
|
+
const own = attribute(element, "id");
|
|
296
|
+
return own !== undefined && (ids.has(own) || hostIds.has(own)) && !hostElements.includes(element);
|
|
297
|
+
});
|
|
298
|
+
if (other) {
|
|
299
|
+
const name = attribute(other, "id");
|
|
300
|
+
throw new CompositionError(`<${other.tagName} id="${name}"> takes the name of a scene, which data-start would find instead of the scene: rename the element.`);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
function readScene(html) {
|
|
304
|
+
const fragment = parseFragment(html, { sourceCodeLocationInfo: true });
|
|
305
|
+
const [template, ...rest] = elements(fragment.childNodes, { deep: false });
|
|
306
|
+
const example = `<template><div data-composition-id="intro" data-width="1920" data-height="1080">\u2026</div></template>`;
|
|
307
|
+
if (!template || template.tagName !== "template" || rest.length > 0) {
|
|
308
|
+
throw new CompositionError(`a scene file is one <template> holding its composition, as ${example}.`);
|
|
309
|
+
}
|
|
310
|
+
const [composition] = elements(contentOf(template)).filter((element) => has(element, "data-composition-id"));
|
|
311
|
+
const id = composition && attribute(composition, "data-composition-id");
|
|
312
|
+
if (!composition || !id) {
|
|
313
|
+
throw new CompositionError(`its <template> holds no composition: write it as ${example}.`);
|
|
314
|
+
}
|
|
315
|
+
return {
|
|
316
|
+
id,
|
|
317
|
+
media: mediaOf(fragment.childNodes),
|
|
318
|
+
compositions: elements(composition.childNodes).flatMap((element) => {
|
|
319
|
+
const value = attribute(element, "data-composition-src");
|
|
320
|
+
const at = element.sourceCodeLocation?.attrs?.["data-composition-src"];
|
|
321
|
+
if (value === undefined || !at)
|
|
322
|
+
return [];
|
|
323
|
+
return [
|
|
324
|
+
{
|
|
325
|
+
element: element.tagName,
|
|
326
|
+
attribute: "data-composition-src",
|
|
327
|
+
value,
|
|
328
|
+
at: { start: at.startOffset, end: at.endOffset }
|
|
329
|
+
}
|
|
330
|
+
];
|
|
331
|
+
})
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
function resolveStarts(hosts) {
|
|
335
|
+
const byName = new Map([
|
|
336
|
+
...hosts.map((host) => [host.id, host]),
|
|
337
|
+
...hosts.flatMap((host) => host.hostId ? [[host.hostId, host]] : [])
|
|
338
|
+
]);
|
|
339
|
+
const starts = new Map;
|
|
340
|
+
const resolving = [];
|
|
341
|
+
const startOf = (host) => {
|
|
342
|
+
const known = starts.get(host.id);
|
|
343
|
+
if (known !== undefined)
|
|
344
|
+
return known;
|
|
345
|
+
if (resolving.includes(host.id)) {
|
|
346
|
+
const cycle = resolving.slice(resolving.indexOf(host.id)).map((id) => `'${id}'`);
|
|
347
|
+
if (cycle.length === 1) {
|
|
348
|
+
throw new CompositionError(`scene '${host.id}' starts after itself, so it never starts: start it at a number of seconds, or after another scene.`);
|
|
349
|
+
}
|
|
350
|
+
throw new CompositionError(`scenes ${cycle.join(", ")} each start after another of them, so none starts: start one of them at a number of seconds.`);
|
|
351
|
+
}
|
|
352
|
+
const { start } = host;
|
|
353
|
+
let startMs;
|
|
354
|
+
if (start.type === "at") {
|
|
355
|
+
startMs = Math.round(start.seconds * 1000);
|
|
356
|
+
} else {
|
|
357
|
+
const after = byName.get(start.scene);
|
|
358
|
+
if (!after) {
|
|
359
|
+
const others = hosts.filter((other) => other.id !== host.id).map((other) => `'${other.id}'`);
|
|
360
|
+
throw new CompositionError(`scene '${host.id}' starts after '${start.scene}', which is no scene${others.length > 0 ? `; its scenes are ${others.slice(0, 8).join(", ")}${others.length > 8 ? ", \u2026" : ""}` : ""}.`);
|
|
361
|
+
}
|
|
362
|
+
resolving.push(host.id);
|
|
363
|
+
startMs = startOf(after) + after.durationMs + Math.round(start.offset * 1000);
|
|
364
|
+
resolving.pop();
|
|
365
|
+
}
|
|
366
|
+
if (startMs < 0) {
|
|
367
|
+
throw new CompositionError(`scene '${host.id}' starts at ${startMs / 1000} s: a scene starts at 0 or later.`);
|
|
368
|
+
}
|
|
369
|
+
starts.set(host.id, startMs);
|
|
370
|
+
return startMs;
|
|
371
|
+
};
|
|
372
|
+
for (const host of hosts)
|
|
373
|
+
startOf(host);
|
|
374
|
+
return starts;
|
|
375
|
+
}
|
|
376
|
+
function readStart(host, id) {
|
|
377
|
+
const written = attribute(host, "data-start")?.trim() ?? "";
|
|
378
|
+
const refuse = () => new CompositionError(`scene '${id}' needs data-start: a number of seconds, "intro" to start when scene 'intro' ends, or "intro + 0.5" or "intro - 0.5" to start that much later or sooner.`);
|
|
379
|
+
if (written === "")
|
|
380
|
+
throw refuse();
|
|
381
|
+
const seconds = Number(written);
|
|
382
|
+
if (Number.isFinite(seconds))
|
|
383
|
+
return { type: "at", seconds };
|
|
384
|
+
if (START_REFERENCE.test(written))
|
|
385
|
+
return { type: "after", scene: written, offset: 0 };
|
|
386
|
+
const offset = START_OFFSET.exec(written);
|
|
387
|
+
const [, scene = "", sign, magnitude = ""] = offset ?? [];
|
|
388
|
+
if (!offset || !START_REFERENCE.test(scene))
|
|
389
|
+
throw refuse();
|
|
390
|
+
return { type: "after", scene, offset: (sign === "-" ? -1 : 1) * Number(magnitude) };
|
|
391
|
+
}
|
|
392
|
+
function readSize(root, name) {
|
|
393
|
+
const written = attribute(root, name)?.trim() ?? "";
|
|
394
|
+
const value = /^\d+$/.test(written) ? Number(written) : Number.NaN;
|
|
395
|
+
const max = ARTIFACT_LIMITS2.maxVideoSize;
|
|
396
|
+
if (!Number.isInteger(value) || value <= 0 || value > max || value % 2 !== 0) {
|
|
397
|
+
throw new CompositionError(`the root composition's data-width and data-height are its frame's size in pixels, even numbers up to ${max}, such as 1920 and 1080.`);
|
|
398
|
+
}
|
|
399
|
+
return value;
|
|
400
|
+
}
|
|
401
|
+
function readFps(root) {
|
|
402
|
+
const written = attribute(root, "data-fps")?.trim();
|
|
403
|
+
if (written === undefined || written === "")
|
|
404
|
+
return DEFAULT_FPS;
|
|
405
|
+
const fps = /^\d+$/.test(written) ? Number(written) : Number.NaN;
|
|
406
|
+
if (!VIDEO_FRAME_RATES.includes(fps)) {
|
|
407
|
+
throw new CompositionError(`data-fps is ${VIDEO_FRAME_RATES.join(", ")} frames a second, or ${DEFAULT_FPS} without one; it is "${written}".`);
|
|
408
|
+
}
|
|
409
|
+
return fps;
|
|
410
|
+
}
|
|
411
|
+
function readPoster(root, durationMs) {
|
|
412
|
+
const written = attribute(root, "data-poster")?.trim();
|
|
413
|
+
if (written === undefined || written === "")
|
|
414
|
+
return;
|
|
415
|
+
const ms = Math.round(Number(written) * 1000);
|
|
416
|
+
if (!Number.isFinite(ms) || ms < 0 || ms >= durationMs) {
|
|
417
|
+
throw new CompositionError(`the root composition's data-poster is the instant that shows the video before it plays, in seconds from 0 up to its length of ${durationMs / 1000} s, such as 2.5; it is "${written}".`);
|
|
418
|
+
}
|
|
419
|
+
return ms;
|
|
420
|
+
}
|
|
421
|
+
function readSeconds(element, name, what) {
|
|
422
|
+
const written = attribute(element, name)?.trim() ?? "";
|
|
423
|
+
const ms = Math.round(Number(written || Number.NaN) * 1000);
|
|
424
|
+
if (!Number.isFinite(ms) || ms <= 0) {
|
|
425
|
+
throw new CompositionError(`${what}'s ${name} is its length in seconds, such as 4 or 2.5; it is "${written}".`);
|
|
426
|
+
}
|
|
427
|
+
return ms;
|
|
428
|
+
}
|
|
429
|
+
function videoPageMedia(path, html) {
|
|
430
|
+
const options = { sourceCodeLocationInfo: true };
|
|
431
|
+
const page = path === VIDEO_ENTRY2 ? parse(html, options) : parseFragment(html, options);
|
|
432
|
+
return mediaOf(page.childNodes);
|
|
433
|
+
}
|
|
434
|
+
function mediaOf(nodes) {
|
|
435
|
+
return elements(nodes, { templates: true }).flatMap((element) => HTML_FILE_ATTRIBUTES.flatMap(({ element: tag, attribute: name }) => {
|
|
436
|
+
if (element.tagName !== tag)
|
|
437
|
+
return [];
|
|
438
|
+
const value = attribute(element, name);
|
|
439
|
+
const at = element.sourceCodeLocation?.attrs?.[name];
|
|
440
|
+
if (value === undefined || !at)
|
|
441
|
+
return [];
|
|
442
|
+
const video = tag === "source" ? element.parentNode : element;
|
|
443
|
+
const muted = name === "src" && video && "tagName" in video && neverHeard(video);
|
|
444
|
+
return [
|
|
445
|
+
{
|
|
446
|
+
element: tag,
|
|
447
|
+
attribute: name,
|
|
448
|
+
value,
|
|
449
|
+
at: { start: at.startOffset, end: at.endOffset },
|
|
450
|
+
...muted ? { muted: true } : {}
|
|
451
|
+
}
|
|
452
|
+
];
|
|
453
|
+
}));
|
|
454
|
+
}
|
|
455
|
+
function neverHeard(element) {
|
|
456
|
+
if (element.tagName !== "video")
|
|
457
|
+
return false;
|
|
458
|
+
const declared = attribute(element, "data-has-audio");
|
|
459
|
+
return has(element, "muted") || declared !== undefined && declared !== "true";
|
|
460
|
+
}
|
|
461
|
+
function hostSource(host) {
|
|
462
|
+
const location = host.sourceCodeLocation;
|
|
463
|
+
const span = (at) => ({
|
|
464
|
+
start: at?.startOffset ?? 0,
|
|
465
|
+
end: at?.endOffset ?? 0
|
|
466
|
+
});
|
|
467
|
+
return {
|
|
468
|
+
element: span(location ?? undefined),
|
|
469
|
+
tag: span(location?.startTag),
|
|
470
|
+
attributes: Object.fromEntries(Object.entries(location?.attrs ?? {}).map(([name, at]) => [name, span(at)]))
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
function elements(nodes, options = {}) {
|
|
474
|
+
const { templates = false, deep = true } = options;
|
|
475
|
+
const found = [];
|
|
476
|
+
const visit = (children) => {
|
|
477
|
+
for (const node of children) {
|
|
478
|
+
if (!("tagName" in node))
|
|
479
|
+
continue;
|
|
480
|
+
found.push(node);
|
|
481
|
+
if (!deep)
|
|
482
|
+
continue;
|
|
483
|
+
visit(node.childNodes);
|
|
484
|
+
if (templates && node.tagName === "template")
|
|
485
|
+
visit(contentOf(node));
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
visit(nodes);
|
|
489
|
+
return found;
|
|
490
|
+
}
|
|
491
|
+
function contentOf(element) {
|
|
492
|
+
return "content" in element ? element.content.childNodes : [];
|
|
493
|
+
}
|
|
494
|
+
function closestComposition(element) {
|
|
495
|
+
let parent = element.parentNode;
|
|
496
|
+
while (parent && "tagName" in parent) {
|
|
497
|
+
if (has(parent, "data-composition-id"))
|
|
498
|
+
return parent;
|
|
499
|
+
parent = parent.parentNode;
|
|
500
|
+
}
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
function textOf(element) {
|
|
504
|
+
return element.childNodes.map((node) => ("value" in node) ? node.value : "").join("");
|
|
505
|
+
}
|
|
506
|
+
function attribute(element, name) {
|
|
507
|
+
return element.attrs.find((each) => each.name === name)?.value;
|
|
508
|
+
}
|
|
509
|
+
function has(element, name) {
|
|
510
|
+
return element.attrs.some((each) => each.name === name);
|
|
511
|
+
}
|
|
512
|
+
function decodePath(path) {
|
|
513
|
+
try {
|
|
514
|
+
return decodeURIComponent(path);
|
|
515
|
+
} catch {
|
|
516
|
+
return path;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function normalizePath(path) {
|
|
520
|
+
const segments = [];
|
|
521
|
+
for (const segment of path.split("/")) {
|
|
522
|
+
if (segment === "" || segment === ".")
|
|
523
|
+
continue;
|
|
524
|
+
if (segment !== "..") {
|
|
525
|
+
segments.push(segment);
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
if (segments.length === 0)
|
|
529
|
+
return;
|
|
530
|
+
segments.pop();
|
|
531
|
+
}
|
|
532
|
+
return segments.length > 0 ? segments.join("/") : undefined;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export { decodeHtmlEntities, HTML_FILE_ATTRIBUTES, VIDEO_ENTRY2, readVideoComposition2, videoFilesPlayed2, missingScene, parseVideoRoot, parseVideoScene, composeVideo, videoFilePath, cssMoves, videoPageMedia };
|
|
536
|
+
|
|
537
|
+
//# debugId=4316CFD9AC6EC72764756E2164756E21
|