@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
package/dist/testing/index.js
CHANGED
|
@@ -10,29 +10,30 @@ import {
|
|
|
10
10
|
AuthStorageError2,
|
|
11
11
|
toUserProfile,
|
|
12
12
|
SYSTEM_PRINCIPAL2
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-nhgqz3g3.js";
|
|
14
14
|
import"../chunk-d7v97qxq.js";
|
|
15
15
|
import {
|
|
16
16
|
agentServiceAccountId2,
|
|
17
17
|
MAX_OBJECT_READ_FACETS2,
|
|
18
18
|
defineProjection2
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-e3b1r4d2.js";
|
|
20
20
|
import"../chunk-7j4yydm2.js";
|
|
21
21
|
import {
|
|
22
22
|
compileSelectedObjectReadScope2,
|
|
23
23
|
compileConditionalObjectReadScope2
|
|
24
24
|
} from "../chunk-rt9deb92.js";
|
|
25
|
+
import"../chunk-7zygtcqq.js";
|
|
25
26
|
import"../chunk-kr6dx38r.js";
|
|
26
27
|
import {
|
|
27
28
|
blobIdFromDigest2
|
|
28
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-2138b0ng.js";
|
|
29
30
|
import {
|
|
30
31
|
UNIQUE_VALUE_KEY_VERSION
|
|
31
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-1z8ccj53.js";
|
|
32
33
|
import"../chunk-frsz8wxd.js";
|
|
33
34
|
import {
|
|
34
35
|
ref2
|
|
35
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-bkxm2dzx.js";
|
|
36
37
|
import {
|
|
37
38
|
OntologyRegistry2,
|
|
38
39
|
defineObjectType2,
|
|
@@ -41,42 +42,43 @@ import {
|
|
|
41
42
|
link2,
|
|
42
43
|
valueTypeRef2,
|
|
43
44
|
stringEnum2
|
|
44
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-hpswfrjj.js";
|
|
45
46
|
import {
|
|
46
47
|
createEventId2
|
|
47
48
|
} from "../chunk-zrvhsq7f.js";
|
|
48
49
|
import"../chunk-5grk14e5.js";
|
|
49
|
-
import"../chunk-
|
|
50
|
-
import"../chunk-
|
|
50
|
+
import"../chunk-0fjryajn.js";
|
|
51
|
+
import"../chunk-jbg905hn.js";
|
|
51
52
|
import {
|
|
52
53
|
AgentStorageError2
|
|
53
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-y57eawng.js";
|
|
54
55
|
import"../chunk-dq3t5sr3.js";
|
|
55
|
-
import"../chunk-
|
|
56
|
+
import"../chunk-ssqbrts1.js";
|
|
56
57
|
import {
|
|
57
58
|
aiLimitCalendarMonth2
|
|
58
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-4q4a5a96.js";
|
|
59
60
|
import {
|
|
60
61
|
DatasetIngestLeaseLostError2
|
|
61
62
|
} from "../chunk-pk539cwv.js";
|
|
62
63
|
import {
|
|
63
64
|
DEFAULT_FILE_UPLOAD_TERMINAL_SESSION_TTL_MS2
|
|
64
65
|
} from "../chunk-h89wz928.js";
|
|
65
|
-
import"../chunk-
|
|
66
|
+
import"../chunk-fdmvaz7x.js";
|
|
66
67
|
import {
|
|
67
68
|
ArtifactStorageError
|
|
68
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-1g4me5f2.js";
|
|
70
|
+
import"../chunk-3dvcdn9w.js";
|
|
69
71
|
import {
|
|
70
72
|
ARTIFACT_STATE_LIMITS2,
|
|
71
73
|
ARTIFACT_RESTORE_POINTS2,
|
|
72
74
|
ARTIFACT_COMMENT_LIMITS2
|
|
73
|
-
} from "../chunk-
|
|
74
|
-
import"../chunk-
|
|
75
|
+
} from "../chunk-fgxvrxx4.js";
|
|
76
|
+
import"../chunk-a9qzjaz2.js";
|
|
75
77
|
import {
|
|
76
78
|
computeBlobDigest2,
|
|
77
79
|
InMemoryBlobStorage2
|
|
78
|
-
} from "../chunk-
|
|
79
|
-
import"../chunk-
|
|
80
|
+
} from "../chunk-mwg0nwkb.js";
|
|
81
|
+
import"../chunk-4z9xtxke.js";
|
|
80
82
|
import {
|
|
81
83
|
linkRefKey2,
|
|
82
84
|
linkRefSortKey2,
|
|
@@ -91,7 +93,7 @@ import {
|
|
|
91
93
|
WorkflowInterventionError2,
|
|
92
94
|
InMemoryStorage2,
|
|
93
95
|
migrateStorage2
|
|
94
|
-
} from "../chunk-
|
|
96
|
+
} from "../chunk-3d9w8t4n.js";
|
|
95
97
|
import"../chunk-61zptves.js";
|
|
96
98
|
import"../chunk-hkbks1xm.js";
|
|
97
99
|
import {
|
|
@@ -106,7 +108,11 @@ import {
|
|
|
106
108
|
import"../chunk-jmfet9r4.js";
|
|
107
109
|
import"../chunk-qf954wje.js";
|
|
108
110
|
import"../chunk-x0v3jd47.js";
|
|
109
|
-
import"../chunk-
|
|
111
|
+
import"../chunk-wsv23wvr.js";
|
|
112
|
+
import {
|
|
113
|
+
bindModelExecutionAttempt,
|
|
114
|
+
isBoundSixb
|
|
115
|
+
} from "../chunk-as94vcty.js";
|
|
110
116
|
import {
|
|
111
117
|
planObjectQuery2,
|
|
112
118
|
executeObjectQuery2,
|
|
@@ -114,42 +120,40 @@ import {
|
|
|
114
120
|
existsObjects2,
|
|
115
121
|
facetObjects2,
|
|
116
122
|
executeObjectQueryLinks2
|
|
117
|
-
} from "../chunk-
|
|
118
|
-
import"../chunk-
|
|
119
|
-
import"../chunk-
|
|
120
|
-
import"../chunk-
|
|
121
|
-
import"../chunk-
|
|
122
|
-
import"../chunk-
|
|
123
|
-
import"../chunk-
|
|
124
|
-
import
|
|
125
|
-
bindModelExecutionAttempt,
|
|
126
|
-
isBoundSixb
|
|
127
|
-
} from "../chunk-8qmp9fpa.js";
|
|
123
|
+
} from "../chunk-9p7kyeqz.js";
|
|
124
|
+
import"../chunk-9az7kjv4.js";
|
|
125
|
+
import"../chunk-23eaayw4.js";
|
|
126
|
+
import"../chunk-jjte0h4p.js";
|
|
127
|
+
import"../chunk-a68zz4r0.js";
|
|
128
|
+
import"../chunk-p0c5kkhn.js";
|
|
129
|
+
import"../chunk-jwjwvzj1.js";
|
|
130
|
+
import"../chunk-fqms1a8c.js";
|
|
128
131
|
import"../chunk-czct88ht.js";
|
|
129
|
-
import"../chunk-
|
|
132
|
+
import"../chunk-990a5bkc.js";
|
|
130
133
|
import"../chunk-5xkqasvn.js";
|
|
131
|
-
import"../chunk-
|
|
132
|
-
import"../chunk-
|
|
133
|
-
import"../chunk-
|
|
134
|
+
import"../chunk-szzhrn3e.js";
|
|
135
|
+
import"../chunk-xg31er4p.js";
|
|
136
|
+
import"../chunk-yah25st6.js";
|
|
134
137
|
import"../chunk-0pmpwn3g.js";
|
|
135
|
-
import"../chunk-
|
|
138
|
+
import"../chunk-t6pfch4e.js";
|
|
136
139
|
import {
|
|
137
140
|
col2,
|
|
138
141
|
defineDataset2,
|
|
139
142
|
change2
|
|
140
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-fq8drkp0.js";
|
|
141
144
|
import {
|
|
142
145
|
writeDataset2
|
|
143
|
-
} from "../chunk-
|
|
144
|
-
import"../chunk-
|
|
145
|
-
import"../chunk-
|
|
146
|
-
import"../chunk-
|
|
146
|
+
} from "../chunk-d7t9jnym.js";
|
|
147
|
+
import"../chunk-ff0qdk7z.js";
|
|
148
|
+
import"../chunk-ywvxcmqj.js";
|
|
149
|
+
import"../chunk-0mk8qqp9.js";
|
|
150
|
+
import"../chunk-5278qwax.js";
|
|
147
151
|
import {
|
|
148
152
|
ProjectionRegistry2,
|
|
149
153
|
createLinkScopeFingerprint2,
|
|
150
154
|
createOntologyMaterializer2
|
|
151
|
-
} from "../chunk-
|
|
152
|
-
import"../chunk-
|
|
155
|
+
} from "../chunk-4w8qzy9w.js";
|
|
156
|
+
import"../chunk-x0hqc54n.js";
|
|
153
157
|
import"../chunk-1vg43g9q.js";
|
|
154
158
|
import"../chunk-m427qgq0.js";
|
|
155
159
|
import {
|
|
@@ -160,56 +164,55 @@ import"../chunk-xxfj0rr2.js";
|
|
|
160
164
|
import"../chunk-z4jqb44a.js";
|
|
161
165
|
import"../chunk-fzbhybya.js";
|
|
162
166
|
import"../chunk-dvgc56n2.js";
|
|
163
|
-
import"../chunk-
|
|
167
|
+
import"../chunk-6a4hp405.js";
|
|
164
168
|
import {
|
|
165
169
|
QueueError2,
|
|
166
170
|
InMemoryQueues2
|
|
167
171
|
} from "../chunk-8tv3qd65.js";
|
|
168
|
-
import"../chunk-
|
|
169
|
-
import"../chunk-
|
|
170
|
-
import"../chunk-
|
|
172
|
+
import"../chunk-9e5t53z0.js";
|
|
173
|
+
import"../chunk-3x902cja.js";
|
|
174
|
+
import"../chunk-q150fnj9.js";
|
|
171
175
|
import {
|
|
172
176
|
projectAgentThreadModelContext2
|
|
173
|
-
} from "../chunk-
|
|
174
|
-
import"../chunk-
|
|
175
|
-
import"../chunk-
|
|
176
|
-
import"../chunk-
|
|
177
|
-
import"../chunk-
|
|
177
|
+
} from "../chunk-4tdm3fsj.js";
|
|
178
|
+
import"../chunk-k3vd2vyz.js";
|
|
179
|
+
import"../chunk-88s9z5pf.js";
|
|
180
|
+
import"../chunk-8x1bsp68.js";
|
|
181
|
+
import"../chunk-93e4w7te.js";
|
|
178
182
|
import {
|
|
179
183
|
workflowAgentStepActorId2
|
|
180
|
-
} from "../chunk-
|
|
184
|
+
} from "../chunk-8tefbhdx.js";
|
|
181
185
|
import"../chunk-c69nj7se.js";
|
|
182
186
|
import"../chunk-whbwf3np.js";
|
|
183
|
-
import"../chunk-
|
|
187
|
+
import"../chunk-wpba6hhd.js";
|
|
184
188
|
import {
|
|
185
189
|
SixbHost2
|
|
186
|
-
} from "../chunk-
|
|
190
|
+
} from "../chunk-2mxq1yd9.js";
|
|
187
191
|
import {
|
|
188
192
|
findDatasetIngestRuntime2,
|
|
189
193
|
getDatasetIngestRuntime2
|
|
190
|
-
} from "../chunk-
|
|
191
|
-
import"../chunk-
|
|
194
|
+
} from "../chunk-zmq9xc9s.js";
|
|
195
|
+
import"../chunk-vmqjndb3.js";
|
|
192
196
|
import"../chunk-3ba89vm7.js";
|
|
193
197
|
import {
|
|
194
198
|
createTestingScope
|
|
195
|
-
} from "../chunk-
|
|
199
|
+
} from "../chunk-896te58g.js";
|
|
196
200
|
import {
|
|
197
201
|
datasetSequenceChange2,
|
|
198
202
|
DatasetSequenceConflictError2
|
|
199
|
-
} from "../chunk-
|
|
203
|
+
} from "../chunk-30a0ftnm.js";
|
|
200
204
|
import"../chunk-7qe46788.js";
|
|
201
|
-
import"../chunk-
|
|
202
|
-
import"../chunk-
|
|
205
|
+
import"../chunk-39q9ybav.js";
|
|
206
|
+
import"../chunk-8eqqqc1h.js";
|
|
203
207
|
import"../chunk-y8fwm3z2.js";
|
|
204
208
|
import {
|
|
205
209
|
SandboxNotRunningError2
|
|
206
|
-
} from "../chunk-
|
|
210
|
+
} from "../chunk-wrb1x1ss.js";
|
|
207
211
|
import {
|
|
208
212
|
restoreTrustedPrimitiveExecutionScope
|
|
209
|
-
} from "../chunk-
|
|
210
|
-
import"../chunk-3723kgba.js";
|
|
213
|
+
} from "../chunk-6whr25gw.js";
|
|
211
214
|
import"../chunk-d9xbwh3h.js";
|
|
212
|
-
import"../chunk-
|
|
215
|
+
import"../chunk-qk3zq25v.js";
|
|
213
216
|
import {
|
|
214
217
|
LakeStorageError2
|
|
215
218
|
} from "../chunk-hgj98cbb.js";
|
|
@@ -219,11 +222,11 @@ import {
|
|
|
219
222
|
} from "../chunk-3gbefjg5.js";
|
|
220
223
|
import {
|
|
221
224
|
AiUsageStorageError2
|
|
222
|
-
} from "../chunk-
|
|
225
|
+
} from "../chunk-v6h4tc2v.js";
|
|
223
226
|
import {
|
|
224
227
|
ObjectQueryPlanningError2
|
|
225
228
|
} from "../chunk-0k1h5hmr.js";
|
|
226
|
-
import"../chunk-
|
|
229
|
+
import"../chunk-y3qb965a.js";
|
|
227
230
|
import {
|
|
228
231
|
MaterializationValidationError2,
|
|
229
232
|
UniqueValueViolationError2,
|
|
@@ -234,7 +237,7 @@ import {
|
|
|
234
237
|
AGENT_TOKEN_RATE_SAMPLES2,
|
|
235
238
|
AGENT_THREAD_INBOX_MAX_ITEMS2
|
|
236
239
|
} from "../chunk-389ybvw9.js";
|
|
237
|
-
import"../chunk-
|
|
240
|
+
import"../chunk-nfjt8k8j.js";
|
|
238
241
|
|
|
239
242
|
// src/testing/action-execution.ts
|
|
240
243
|
async function createTestActionExecution(executions, input) {
|
|
@@ -5846,6 +5849,92 @@ function runAgentStorageContractSuite(label, options) {
|
|
|
5846
5849
|
expect6(firstPage.hasMore).toBe(true);
|
|
5847
5850
|
});
|
|
5848
5851
|
});
|
|
5852
|
+
test6("finds the threads whose messages carry an artifact as context, each once", async () => {
|
|
5853
|
+
await withStorage(async (storage) => {
|
|
5854
|
+
const artifact = (id) => ({ type: "context", context: { kind: "artifact", id }, origin: "ambient" });
|
|
5855
|
+
const say = (id, threadId, parts, project = projectId6) => storage.messages.append({
|
|
5856
|
+
id,
|
|
5857
|
+
projectId: project,
|
|
5858
|
+
threadId,
|
|
5859
|
+
runId: null,
|
|
5860
|
+
role: "user",
|
|
5861
|
+
parts
|
|
5862
|
+
});
|
|
5863
|
+
for (const id of ["thr_b", "thr_a", "thr_other", "thr_mention"]) {
|
|
5864
|
+
await storage.threads.create(threadInput({ id }));
|
|
5865
|
+
}
|
|
5866
|
+
await storage.threads.create(threadInput({ id: "thr_a", projectId: otherProjectId3 }));
|
|
5867
|
+
await say("m1", "thr_b", [
|
|
5868
|
+
{ type: "text", text: "Tighten the intro" },
|
|
5869
|
+
artifact("art_teaser")
|
|
5870
|
+
]);
|
|
5871
|
+
await say("m2", "thr_b", [artifact("art_teaser")]);
|
|
5872
|
+
await say("m3", "thr_a", [artifact("art_poster"), artifact("art_teaser")]);
|
|
5873
|
+
await say("m4", "thr_other", [artifact("art_poster")]);
|
|
5874
|
+
await say("m5", "thr_mention", [
|
|
5875
|
+
{ type: "text", text: '{"kind":"artifact","id":"art_teaser"}' },
|
|
5876
|
+
{
|
|
5877
|
+
type: "context",
|
|
5878
|
+
context: {
|
|
5879
|
+
kind: "app-state",
|
|
5880
|
+
id: "editor",
|
|
5881
|
+
label: "Editor",
|
|
5882
|
+
description: "The open editor",
|
|
5883
|
+
value: { kind: "artifact", id: "art_teaser" }
|
|
5884
|
+
},
|
|
5885
|
+
origin: "ambient"
|
|
5886
|
+
}
|
|
5887
|
+
]);
|
|
5888
|
+
await say("m6", "thr_a", [artifact("art_teaser")], otherProjectId3);
|
|
5889
|
+
const threadIds = (artifactId) => storage.messages.listThreadIdsByArtifactContext({ projectId: projectId6, artifactId });
|
|
5890
|
+
expect6(await threadIds("art_teaser")).toEqual(["thr_a", "thr_b"]);
|
|
5891
|
+
expect6(await threadIds("art_poster")).toEqual(["thr_a", "thr_other"]);
|
|
5892
|
+
expect6(await threadIds("art_missing")).toEqual([]);
|
|
5893
|
+
await storage.messages.deleteFromSeq({ projectId: projectId6, threadId: "thr_a", fromSeq: 1 });
|
|
5894
|
+
expect6(await threadIds("art_teaser")).toEqual(["thr_b"]);
|
|
5895
|
+
});
|
|
5896
|
+
});
|
|
5897
|
+
test6("finds a reader's conversations carrying an artifact, theirs or those they take part in", async () => {
|
|
5898
|
+
await withStorage(async (storage) => {
|
|
5899
|
+
const brought = {
|
|
5900
|
+
type: "context",
|
|
5901
|
+
context: { kind: "artifact", id: "art_teaser" },
|
|
5902
|
+
origin: "ambient"
|
|
5903
|
+
};
|
|
5904
|
+
for (const [id, ownerPrincipal] of [
|
|
5905
|
+
["thr_mine", owner],
|
|
5906
|
+
["thr_joined", otherUser],
|
|
5907
|
+
["thr_theirs", otherUser],
|
|
5908
|
+
["thr_service", serviceAccount]
|
|
5909
|
+
]) {
|
|
5910
|
+
await storage.threads.create(threadInput({ id, ownerPrincipal }));
|
|
5911
|
+
await storage.messages.append({
|
|
5912
|
+
id: `msg_${id}`,
|
|
5913
|
+
projectId: projectId6,
|
|
5914
|
+
threadId: id,
|
|
5915
|
+
runId: null,
|
|
5916
|
+
role: "user",
|
|
5917
|
+
parts: [brought]
|
|
5918
|
+
});
|
|
5919
|
+
}
|
|
5920
|
+
await storage.threads.addParticipants({
|
|
5921
|
+
projectId: projectId6,
|
|
5922
|
+
threadId: "thr_joined",
|
|
5923
|
+
principals: [{ type: "user", id: owner.id }],
|
|
5924
|
+
addedBy: otherUser,
|
|
5925
|
+
maxParticipants: 10
|
|
5926
|
+
});
|
|
5927
|
+
const threadIds = (reader) => storage.messages.listThreadIdsByArtifactContext({
|
|
5928
|
+
projectId: projectId6,
|
|
5929
|
+
artifactId: "art_teaser",
|
|
5930
|
+
...reader ? { reader } : {}
|
|
5931
|
+
});
|
|
5932
|
+
expect6(await threadIds()).toEqual(["thr_joined", "thr_mine", "thr_service", "thr_theirs"]);
|
|
5933
|
+
expect6(await threadIds(owner)).toEqual(["thr_joined", "thr_mine"]);
|
|
5934
|
+
expect6(await threadIds(otherUser)).toEqual(["thr_joined", "thr_theirs"]);
|
|
5935
|
+
expect6(await threadIds(serviceAccount)).toEqual(["thr_service"]);
|
|
5936
|
+
});
|
|
5937
|
+
});
|
|
5849
5938
|
test6("rejects appends to missing threads, duplicate messages, and unknown runs", async () => {
|
|
5850
5939
|
await withStorage(async (storage) => {
|
|
5851
5940
|
await expectAgentError2(storage.messages.append({
|
|
@@ -6752,7 +6841,8 @@ function runAiCostStorageContractSuite(name, options) {
|
|
|
6752
6841
|
imageOutputTokens: 0,
|
|
6753
6842
|
audioOutputTokens: 0,
|
|
6754
6843
|
outputImages: 0,
|
|
6755
|
-
inputCharacters: 0
|
|
6844
|
+
inputCharacters: 0,
|
|
6845
|
+
outputVideoMs: 0
|
|
6756
6846
|
}
|
|
6757
6847
|
},
|
|
6758
6848
|
costs: {
|
|
@@ -8924,7 +9014,7 @@ function runAiUsageStorageContractSuite(label, options) {
|
|
|
8924
9014
|
expect11((await latest())?.modelKind).toBe("web-search");
|
|
8925
9015
|
});
|
|
8926
9016
|
});
|
|
8927
|
-
test11("persists generated-media usage and the speech
|
|
9017
|
+
test11("persists generated-media usage and the speech and video kinds", async () => {
|
|
8928
9018
|
await withStorage(async (storage) => {
|
|
8929
9019
|
const latest = () => storage.getLatestForExecution({ projectId: projectId11, executionId: agentExecutionId });
|
|
8930
9020
|
await storage.recordModelCall(modelCallInput({
|
|
@@ -8959,6 +9049,19 @@ function runAiUsageStorageContractSuite(label, options) {
|
|
|
8959
9049
|
outputImages: 1,
|
|
8960
9050
|
reportingStatus: "complete"
|
|
8961
9051
|
});
|
|
9052
|
+
await storage.recordModelCall(modelCallInput({
|
|
9053
|
+
id: "usage_video",
|
|
9054
|
+
callId: "call_video",
|
|
9055
|
+
responseId: "response_video",
|
|
9056
|
+
modelKind: "video",
|
|
9057
|
+
usage: { outputVideoMs: 4000 },
|
|
9058
|
+
occurredAt: at5("2026-06-23T10:02:00.000Z")
|
|
9059
|
+
}));
|
|
9060
|
+
expect11((await latest())?.modelKind).toBe("video");
|
|
9061
|
+
expect11((await latest())?.usage).toEqual({
|
|
9062
|
+
outputVideoMs: 4000,
|
|
9063
|
+
reportingStatus: "partial"
|
|
9064
|
+
});
|
|
8962
9065
|
});
|
|
8963
9066
|
});
|
|
8964
9067
|
test11("retains native provider IDs across reads and replay", async () => {
|
|
@@ -9376,6 +9479,97 @@ function runAiUsageStorageContractSuite(label, options) {
|
|
|
9376
9479
|
expect11(await storage.getModelCallFiles({ projectId: projectId11, callId: "call_image" })).toBeNull();
|
|
9377
9480
|
});
|
|
9378
9481
|
});
|
|
9482
|
+
test11("keeps a running call's operation until its first settlement", async () => {
|
|
9483
|
+
await withStorage(async (storage) => {
|
|
9484
|
+
const input = {
|
|
9485
|
+
projectId: projectId11,
|
|
9486
|
+
callId: "call_video",
|
|
9487
|
+
executionId: agentExecutionId,
|
|
9488
|
+
attempt: 1,
|
|
9489
|
+
modelKind: "video",
|
|
9490
|
+
providerId: "vercel-ai-gateway",
|
|
9491
|
+
modelId: "google/veo-3.1-fast-generate-001",
|
|
9492
|
+
request: { durationSeconds: 4 },
|
|
9493
|
+
reserved: true,
|
|
9494
|
+
createdAt: at5("2026-06-23T10:00:00.000Z")
|
|
9495
|
+
};
|
|
9496
|
+
const created = { ...input, status: "pending" };
|
|
9497
|
+
expect11(await storage.createModelCallOperation(input)).toEqual(created);
|
|
9498
|
+
const duplicate = await storage.createModelCallOperation(input).catch((error) => error);
|
|
9499
|
+
expect11(duplicate).toMatchObject({ code: "duplicate_id" });
|
|
9500
|
+
const start = {
|
|
9501
|
+
projectId: projectId11,
|
|
9502
|
+
callId: "call_video",
|
|
9503
|
+
operation: { gatewayJobId: "job_1", nested: [1, "two", null] },
|
|
9504
|
+
request: { durationSeconds: 4, dimensions: { resolution: "720p" } }
|
|
9505
|
+
};
|
|
9506
|
+
const pending = {
|
|
9507
|
+
...created,
|
|
9508
|
+
operation: start.operation,
|
|
9509
|
+
request: start.request
|
|
9510
|
+
};
|
|
9511
|
+
expect11(await storage.startModelCallOperation(start)).toEqual(pending);
|
|
9512
|
+
expect11(await storage.startModelCallOperation({ ...start, operation: "job_2", request: {} })).toEqual(pending);
|
|
9513
|
+
expect11(await storage.getModelCallOperation({ projectId: projectId11, callId: "call_video" })).toEqual(pending);
|
|
9514
|
+
expect11(await storage.startModelCallOperation({ ...start, callId: "call_other" })).toBeNull();
|
|
9515
|
+
const result = { usage: { outputVideoMs: 0 }, cost: { status: "reported" } };
|
|
9516
|
+
const recorded = { ...pending, result };
|
|
9517
|
+
const keep = { projectId: projectId11, callId: "call_video", result };
|
|
9518
|
+
expect11(await storage.recordModelCallOperationResult(keep)).toEqual(recorded);
|
|
9519
|
+
expect11(await storage.recordModelCallOperationResult({ ...keep, result: { other: true } })).toEqual(recorded);
|
|
9520
|
+
expect11(await storage.recordModelCallOperationResult({ ...keep, callId: "call_other" })).toBeNull();
|
|
9521
|
+
const failed = {
|
|
9522
|
+
...pending,
|
|
9523
|
+
status: "failed",
|
|
9524
|
+
error: "The provider refused the prompt.",
|
|
9525
|
+
result,
|
|
9526
|
+
settledAt: at5("2026-06-23T10:01:00.000Z")
|
|
9527
|
+
};
|
|
9528
|
+
expect11(await storage.settleModelCallOperation({
|
|
9529
|
+
projectId: projectId11,
|
|
9530
|
+
callId: "call_video",
|
|
9531
|
+
status: "failed",
|
|
9532
|
+
error: "The provider refused the prompt.",
|
|
9533
|
+
result,
|
|
9534
|
+
settledAt: at5("2026-06-23T10:01:00.000Z")
|
|
9535
|
+
})).toEqual(failed);
|
|
9536
|
+
expect11(await storage.settleModelCallOperation({
|
|
9537
|
+
projectId: projectId11,
|
|
9538
|
+
callId: "call_video",
|
|
9539
|
+
status: "completed",
|
|
9540
|
+
result: {},
|
|
9541
|
+
settledAt: at5("2026-06-23T10:02:00.000Z")
|
|
9542
|
+
})).toEqual(failed);
|
|
9543
|
+
expect11(await storage.getModelCallOperation({ projectId: projectId11, callId: "call_video" })).toEqual(failed);
|
|
9544
|
+
expect11(await storage.settleModelCallOperation({
|
|
9545
|
+
projectId: projectId11,
|
|
9546
|
+
callId: "call_other",
|
|
9547
|
+
status: "failed",
|
|
9548
|
+
result: {}
|
|
9549
|
+
})).toBeNull();
|
|
9550
|
+
expect11(await storage.getModelCallOperation({ projectId: "other-project", callId: "call_video" })).toBeNull();
|
|
9551
|
+
});
|
|
9552
|
+
});
|
|
9553
|
+
test11("refuses an operation without a known execution or a JSON request", async () => {
|
|
9554
|
+
await withStorage(async (storage) => {
|
|
9555
|
+
const input = {
|
|
9556
|
+
projectId: projectId11,
|
|
9557
|
+
callId: "call_video",
|
|
9558
|
+
executionId: agentExecutionId,
|
|
9559
|
+
attempt: 1,
|
|
9560
|
+
modelKind: "video",
|
|
9561
|
+
providerId: "vercel-ai-gateway",
|
|
9562
|
+
modelId: "google/veo-3.1-fast-generate-001",
|
|
9563
|
+
request: {},
|
|
9564
|
+
reserved: false
|
|
9565
|
+
};
|
|
9566
|
+
const missing = await storage.createModelCallOperation({ ...input, executionId: "exec_missing" }).catch((error) => error);
|
|
9567
|
+
expect11(missing).toMatchObject({ code: "missing_execution" });
|
|
9568
|
+
const invalid = await storage.createModelCallOperation({ ...input, request: [] }).catch((error) => error);
|
|
9569
|
+
expect11(invalid).toBeInstanceOf(TypeError);
|
|
9570
|
+
expect11(await storage.getModelCallOperation({ projectId: projectId11, callId: "call_video" })).toBeNull();
|
|
9571
|
+
});
|
|
9572
|
+
});
|
|
9379
9573
|
});
|
|
9380
9574
|
}
|
|
9381
9575
|
function generatedFile(seed) {
|
|
@@ -10001,6 +10195,56 @@ function runArtifactStorageContractSuite(label, options) {
|
|
|
10001
10195
|
expect13(pages.artifacts.map((artifact) => artifact.id)).toEqual(["art_planner"]);
|
|
10002
10196
|
});
|
|
10003
10197
|
});
|
|
10198
|
+
test13("keeps a video, lists it as its kind, and the instant and scene its comments are about", async () => {
|
|
10199
|
+
await withStorage(async (artifacts) => {
|
|
10200
|
+
const outline = {
|
|
10201
|
+
kind: "video",
|
|
10202
|
+
width: 1920,
|
|
10203
|
+
height: 1080,
|
|
10204
|
+
fps: 30,
|
|
10205
|
+
durationMs: 7000,
|
|
10206
|
+
scenes: [
|
|
10207
|
+
{
|
|
10208
|
+
id: "intro",
|
|
10209
|
+
label: "Opening",
|
|
10210
|
+
startMs: 0,
|
|
10211
|
+
durationMs: 2000,
|
|
10212
|
+
renderKey: "a".repeat(64)
|
|
10213
|
+
},
|
|
10214
|
+
{ id: "demo", startMs: 2000, durationMs: 5000, renderKey: "b".repeat(64) }
|
|
10215
|
+
]
|
|
10216
|
+
};
|
|
10217
|
+
const version = versionInput({
|
|
10218
|
+
entry: "index.html",
|
|
10219
|
+
files: [
|
|
10220
|
+
{ path: "index.html", file: fileRef("a", "text/html") },
|
|
10221
|
+
{ path: "media/clip.mp4", file: fileRef("b", "video/mp4") }
|
|
10222
|
+
],
|
|
10223
|
+
outline
|
|
10224
|
+
});
|
|
10225
|
+
await artifacts.create(createInput({ id: "art_film", kind: "video", version }));
|
|
10226
|
+
expect13(await artifacts.getVersion({ projectId: projectId12, artifactId: "art_film", version: 1 })).toMatchObject({ outline });
|
|
10227
|
+
const videos = await artifacts.list({ projectId: projectId12, kind: "video", limit: 10 });
|
|
10228
|
+
expect13(videos.artifacts.map((artifact) => artifact.id)).toEqual(["art_film"]);
|
|
10229
|
+
const anchor = {
|
|
10230
|
+
scene: "demo",
|
|
10231
|
+
offset: 500,
|
|
10232
|
+
point: { x: 0.5, y: 0.25 },
|
|
10233
|
+
revision: 1
|
|
10234
|
+
};
|
|
10235
|
+
const comment = await artifacts.createComment({
|
|
10236
|
+
projectId: projectId12,
|
|
10237
|
+
artifactId: "art_film",
|
|
10238
|
+
id: "cmt_film",
|
|
10239
|
+
anchor,
|
|
10240
|
+
body: "Hold this shot",
|
|
10241
|
+
author: otherOwner,
|
|
10242
|
+
createdAt: at6(1)
|
|
10243
|
+
});
|
|
10244
|
+
expect13(comment.anchor).toEqual(anchor);
|
|
10245
|
+
expect13((await artifacts.listComments({ projectId: projectId12, id: "art_film" })).map((each) => each.anchor)).toEqual([anchor]);
|
|
10246
|
+
});
|
|
10247
|
+
});
|
|
10004
10248
|
test13("lists the latest versions that refer to an artifact, at any version, file, or part", async () => {
|
|
10005
10249
|
await withStorage(async (artifacts) => {
|
|
10006
10250
|
const refer = (address) => ({
|
|
@@ -10449,6 +10693,33 @@ function runArtifactStorageContractSuite(label, options) {
|
|
|
10449
10693
|
expect13((await artifacts.list({ projectId: projectId12, threadId: "thr_5" })).total).toBe(0);
|
|
10450
10694
|
});
|
|
10451
10695
|
});
|
|
10696
|
+
test13("lists to a reader only the conversations they own or take part in", async () => {
|
|
10697
|
+
await withStorage(async (artifacts, storage) => {
|
|
10698
|
+
await artifacts.create(createInput({ id: "art_mine" }));
|
|
10699
|
+
for (const threadId of ["thr_2", "thr_3"]) {
|
|
10700
|
+
await artifacts.publish(publishInput({ origin: { threadId, runId: `run_${threadId}` } }, "art_mine"));
|
|
10701
|
+
}
|
|
10702
|
+
for (const [id, ownerPrincipal] of [
|
|
10703
|
+
["thr_1", owner2],
|
|
10704
|
+
["thr_2", otherOwner],
|
|
10705
|
+
["thr_3", otherOwner]
|
|
10706
|
+
]) {
|
|
10707
|
+
await storage.agents.threads.create({ projectId: projectId12, id, ownerPrincipal });
|
|
10708
|
+
}
|
|
10709
|
+
await storage.agents.threads.addParticipants({
|
|
10710
|
+
projectId: projectId12,
|
|
10711
|
+
threadId: "thr_2",
|
|
10712
|
+
principals: [{ type: "user", id: owner2.id }],
|
|
10713
|
+
addedBy: otherOwner,
|
|
10714
|
+
maxParticipants: 10
|
|
10715
|
+
});
|
|
10716
|
+
const listed = (reader) => artifacts.listThreadIds({ projectId: projectId12, id: "art_mine", ...reader ? { reader } : {} });
|
|
10717
|
+
expect13(await listed()).toEqual(["thr_1", "thr_2", "thr_3"]);
|
|
10718
|
+
expect13(await listed(owner2)).toEqual(["thr_1", "thr_2"]);
|
|
10719
|
+
expect13(await listed(otherOwner)).toEqual(["thr_2", "thr_3"]);
|
|
10720
|
+
expect13(await listed({ type: "user", id: "usr_nobody" })).toEqual([]);
|
|
10721
|
+
});
|
|
10722
|
+
});
|
|
10452
10723
|
test13("gives a copied version the outline the copy asks for, and the source keeps its own", async () => {
|
|
10453
10724
|
await withStorage(async (artifacts) => {
|
|
10454
10725
|
await artifacts.create(createInput());
|
|
@@ -11174,6 +11445,175 @@ function runArtifactStorageContractSuite(label, options) {
|
|
|
11174
11445
|
expect13(await artifacts.getPdf({ projectId: projectId12, renderKey })).toEqual(printed);
|
|
11175
11446
|
});
|
|
11176
11447
|
});
|
|
11448
|
+
test13("keeps what a video renders to by key, the first file kept staying", async () => {
|
|
11449
|
+
await withStorage(async (artifacts) => {
|
|
11450
|
+
const [segment, sound, other] = ["f", "a", "b"].map((each) => each.repeat(64));
|
|
11451
|
+
const render = (key, seed, createdAt = t05) => ({
|
|
11452
|
+
projectId: projectId12,
|
|
11453
|
+
key,
|
|
11454
|
+
file: fileRef(seed, "video/mp4"),
|
|
11455
|
+
createdAt
|
|
11456
|
+
});
|
|
11457
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [segment] })).toEqual([]);
|
|
11458
|
+
await artifacts.putVideoRender(render(segment, "1"));
|
|
11459
|
+
await artifacts.putVideoRender(render(segment, "2", at6(1)));
|
|
11460
|
+
await artifacts.putVideoRender(render(sound, "3"));
|
|
11461
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [segment, other, sound, segment] })).toEqual([render(sound, "3"), render(segment, "1")]);
|
|
11462
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [] })).toEqual([]);
|
|
11463
|
+
expect13(await artifacts.listVideoRenders({ projectId: otherProjectId4, keys: [segment] })).toEqual([]);
|
|
11464
|
+
await artifacts.putVideoRender({
|
|
11465
|
+
projectId: projectId12,
|
|
11466
|
+
key: segment,
|
|
11467
|
+
failure: "No browser.",
|
|
11468
|
+
createdAt: at6(2)
|
|
11469
|
+
});
|
|
11470
|
+
await artifacts.clearVideoRenderFailures({ projectId: projectId12, keys: [segment] });
|
|
11471
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [segment] })).toEqual([
|
|
11472
|
+
render(segment, "1")
|
|
11473
|
+
]);
|
|
11474
|
+
});
|
|
11475
|
+
});
|
|
11476
|
+
test13("keeps why a video could not render, until it renders or the failure is cleared", async () => {
|
|
11477
|
+
await withStorage(async (artifacts) => {
|
|
11478
|
+
const [key, kept] = ["c", "d"].map((each) => each.repeat(64));
|
|
11479
|
+
const failure = (reason, createdAt = t05) => ({
|
|
11480
|
+
projectId: projectId12,
|
|
11481
|
+
key,
|
|
11482
|
+
failure: reason,
|
|
11483
|
+
createdAt
|
|
11484
|
+
});
|
|
11485
|
+
await artifacts.putVideoRender(failure("No browser."));
|
|
11486
|
+
await artifacts.putVideoRender(failure("Timed out.", at6(1)));
|
|
11487
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [key] })).toEqual([
|
|
11488
|
+
failure("No browser.")
|
|
11489
|
+
]);
|
|
11490
|
+
await artifacts.clearVideoRenderFailures({ projectId: otherProjectId4, keys: [key] });
|
|
11491
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [key] })).toHaveLength(1);
|
|
11492
|
+
const ready = { projectId: projectId12, key: kept, file: fileRef("1", "video/mp4"), createdAt: t05 };
|
|
11493
|
+
await artifacts.putVideoRender(ready);
|
|
11494
|
+
await artifacts.clearVideoRenderFailures({ projectId: projectId12, keys: [key, kept] });
|
|
11495
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [key, kept] })).toEqual([ready]);
|
|
11496
|
+
const lacking = { ...failure("No HyperFrames."), lacks: "sandbox_tools" };
|
|
11497
|
+
await artifacts.putVideoRender(lacking);
|
|
11498
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [key] })).toEqual([lacking]);
|
|
11499
|
+
const rendered = { projectId: projectId12, key, file: fileRef("2", "video/mp4"), createdAt: at6(2) };
|
|
11500
|
+
await artifacts.putVideoRender(rendered);
|
|
11501
|
+
expect13(await artifacts.listVideoRenders({ projectId: projectId12, keys: [key] })).toEqual([rendered]);
|
|
11502
|
+
});
|
|
11503
|
+
});
|
|
11504
|
+
test13("keeps that a video's export was asked for, the first ask staying", async () => {
|
|
11505
|
+
await withStorage(async (artifacts) => {
|
|
11506
|
+
const [key, other] = ["e", "9"].map((each) => each.repeat(64));
|
|
11507
|
+
expect13(await artifacts.getVideoExportAsk({ projectId: projectId12, key })).toBeNull();
|
|
11508
|
+
await artifacts.putVideoExportAsk({ projectId: projectId12, key, askedAt: t05 });
|
|
11509
|
+
await artifacts.putVideoExportAsk({ projectId: projectId12, key, askedAt: at6(1) });
|
|
11510
|
+
expect13(await artifacts.getVideoExportAsk({ projectId: projectId12, key })).toEqual({
|
|
11511
|
+
projectId: projectId12,
|
|
11512
|
+
key,
|
|
11513
|
+
askedAt: t05
|
|
11514
|
+
});
|
|
11515
|
+
expect13(await artifacts.getVideoExportAsk({ projectId: projectId12, key: other })).toBeNull();
|
|
11516
|
+
expect13(await artifacts.getVideoExportAsk({ projectId: otherProjectId4, key })).toBeNull();
|
|
11517
|
+
});
|
|
11518
|
+
});
|
|
11519
|
+
test13("keeps what is derived of a media by digest, each part as it was put", async () => {
|
|
11520
|
+
await withStorage(async (artifacts) => {
|
|
11521
|
+
const clip = fileRef("a", "video/mp4").digest;
|
|
11522
|
+
const song = fileRef("b", "audio/mpeg").digest;
|
|
11523
|
+
const derived = {
|
|
11524
|
+
projectId: projectId12,
|
|
11525
|
+
digest: clip,
|
|
11526
|
+
parts: {
|
|
11527
|
+
probe: {
|
|
11528
|
+
status: "ready",
|
|
11529
|
+
durationMs: 12480,
|
|
11530
|
+
container: "mov,mp4,m4a,3gp,3g2,mj2",
|
|
11531
|
+
bitRate: 2400000,
|
|
11532
|
+
faststart: false,
|
|
11533
|
+
video: { codec: "hevc", width: 1080, height: 1920, rotation: 90, fps: 29.97 },
|
|
11534
|
+
audio: { codec: "aac", sampleRate: 48000, channels: 2 }
|
|
11535
|
+
},
|
|
11536
|
+
proxy: { status: "ready", file: fileRef("1", "video/mp4") },
|
|
11537
|
+
poster: { status: "ready", file: fileRef("2", "image/jpeg"), atMs: 1000 },
|
|
11538
|
+
filmstrip: {
|
|
11539
|
+
status: "ready",
|
|
11540
|
+
file: fileRef("3", "image/jpeg"),
|
|
11541
|
+
intervalMs: 1000,
|
|
11542
|
+
count: 13,
|
|
11543
|
+
columns: 10,
|
|
11544
|
+
width: 50,
|
|
11545
|
+
height: 90
|
|
11546
|
+
},
|
|
11547
|
+
waveform: { status: "failed", reason: "FFmpeg stopped." },
|
|
11548
|
+
cuts: { status: "ready", atMs: [4200, 9960] },
|
|
11549
|
+
transcript: { status: "pending" }
|
|
11550
|
+
},
|
|
11551
|
+
attempts: 1,
|
|
11552
|
+
updatedAt: t05
|
|
11553
|
+
};
|
|
11554
|
+
const sound = {
|
|
11555
|
+
...derived,
|
|
11556
|
+
digest: song,
|
|
11557
|
+
parts: {
|
|
11558
|
+
...derived.parts,
|
|
11559
|
+
poster: { status: "unavailable", reason: "It has no picture." },
|
|
11560
|
+
transcript: {
|
|
11561
|
+
status: "ready",
|
|
11562
|
+
file: fileRef("4", "application/json"),
|
|
11563
|
+
language: "en"
|
|
11564
|
+
}
|
|
11565
|
+
}
|
|
11566
|
+
};
|
|
11567
|
+
expect13(await artifacts.listMedia({ projectId: projectId12, digests: [clip] })).toEqual([]);
|
|
11568
|
+
await artifacts.putMedia(derived);
|
|
11569
|
+
await artifacts.putMedia(sound);
|
|
11570
|
+
expect13(await artifacts.listMedia({ projectId: projectId12, digests: [song, clip, clip] })).toEqual([
|
|
11571
|
+
derived,
|
|
11572
|
+
sound
|
|
11573
|
+
]);
|
|
11574
|
+
expect13(await artifacts.listMedia({ projectId: otherProjectId4, digests: [clip] })).toEqual([]);
|
|
11575
|
+
expect13(await artifacts.listMedia({ projectId: projectId12, digests: [] })).toEqual([]);
|
|
11576
|
+
const transcribed = {
|
|
11577
|
+
...derived,
|
|
11578
|
+
parts: {
|
|
11579
|
+
...derived.parts,
|
|
11580
|
+
filmstrip: {
|
|
11581
|
+
status: "unavailable",
|
|
11582
|
+
reason: "No FFmpeg.",
|
|
11583
|
+
lacks: "sandbox_tools"
|
|
11584
|
+
},
|
|
11585
|
+
transcript: sound.parts.transcript
|
|
11586
|
+
},
|
|
11587
|
+
attempts: 0,
|
|
11588
|
+
updatedAt: at6(1)
|
|
11589
|
+
};
|
|
11590
|
+
await artifacts.putMedia(transcribed);
|
|
11591
|
+
expect13(await artifacts.listMedia({ projectId: projectId12, digests: [clip] })).toEqual([transcribed]);
|
|
11592
|
+
});
|
|
11593
|
+
});
|
|
11594
|
+
test13("keeps what is derived of a media when an artifact that held it is deleted", async () => {
|
|
11595
|
+
await withStorage(async (artifacts) => {
|
|
11596
|
+
await artifacts.create(createInput());
|
|
11597
|
+
const digest = fileRef("a", "video/mp4").digest;
|
|
11598
|
+
await artifacts.putMedia({
|
|
11599
|
+
projectId: projectId12,
|
|
11600
|
+
digest,
|
|
11601
|
+
parts: {
|
|
11602
|
+
probe: { status: "failed", reason: "It is not a media file." },
|
|
11603
|
+
proxy: { status: "pending" },
|
|
11604
|
+
poster: { status: "pending" },
|
|
11605
|
+
filmstrip: { status: "pending" },
|
|
11606
|
+
waveform: { status: "pending" },
|
|
11607
|
+
cuts: { status: "pending" },
|
|
11608
|
+
transcript: { status: "unavailable", reason: "No transcription model." }
|
|
11609
|
+
},
|
|
11610
|
+
attempts: 3,
|
|
11611
|
+
updatedAt: t05
|
|
11612
|
+
});
|
|
11613
|
+
expect13(await artifacts.delete({ projectId: projectId12, id: "art_report" })).toBe(true);
|
|
11614
|
+
expect13(await artifacts.listMedia({ projectId: projectId12, digests: [digest] })).toHaveLength(1);
|
|
11615
|
+
});
|
|
11616
|
+
});
|
|
11177
11617
|
test13("keeps a board's pictures when an artifact that showed it is deleted", async () => {
|
|
11178
11618
|
await withStorage(async (artifacts) => {
|
|
11179
11619
|
await artifacts.create(createInput());
|
|
@@ -11233,6 +11673,21 @@ function runArtifactStorageContractSuite(label, options) {
|
|
|
11233
11673
|
value: "450",
|
|
11234
11674
|
updatedAt: at6(1)
|
|
11235
11675
|
});
|
|
11676
|
+
await tx.artifacts.putMedia({
|
|
11677
|
+
projectId: projectId12,
|
|
11678
|
+
digest: fileRef("a", "video/mp4").digest,
|
|
11679
|
+
parts: {
|
|
11680
|
+
probe: { status: "pending" },
|
|
11681
|
+
proxy: { status: "pending" },
|
|
11682
|
+
poster: { status: "pending" },
|
|
11683
|
+
filmstrip: { status: "pending" },
|
|
11684
|
+
waveform: { status: "pending" },
|
|
11685
|
+
cuts: { status: "pending" },
|
|
11686
|
+
transcript: { status: "pending" }
|
|
11687
|
+
},
|
|
11688
|
+
attempts: 1,
|
|
11689
|
+
updatedAt: at6(1)
|
|
11690
|
+
});
|
|
11236
11691
|
expect13((await tx.artifacts.get({ projectId: projectId12, id: "art_report" }))?.revision).toBe(3);
|
|
11237
11692
|
throw rollback;
|
|
11238
11693
|
})).rejects.toBe(rollback);
|
|
@@ -11241,6 +11696,7 @@ function runArtifactStorageContractSuite(label, options) {
|
|
|
11241
11696
|
expect13(await artifacts.listRestorePoints({ projectId: projectId12, id: "art_report" })).toEqual([]);
|
|
11242
11697
|
expect13(await artifacts.findFrameGrant({ projectId: projectId12, tokenHash: "a".repeat(64) })).toBeNull();
|
|
11243
11698
|
expect13(await artifacts.listBoardPreviews({ projectId: projectId12, renderKeys: ["a".repeat(64)] })).toEqual([]);
|
|
11699
|
+
expect13(await artifacts.listMedia({ projectId: projectId12, digests: [fileRef("a", "video/mp4").digest] })).toEqual([]);
|
|
11244
11700
|
expect13(await artifacts.listState({ projectId: projectId12, artifactId: "art_report", principal: owner2 })).toEqual([]);
|
|
11245
11701
|
expect13((await artifacts.publish(publishInput({ updatedAt: at6(2) }))).version).toMatchObject({ version: 1, revision: 2 });
|
|
11246
11702
|
});
|
|
@@ -16104,6 +16560,10 @@ function runExecutionStorageContractSuite(label, options) {
|
|
|
16104
16560
|
...trustedPrimitiveKinds.map((kind) => trustedPrimitive(`${kind}-execution`, {}, kind)),
|
|
16105
16561
|
agentExecution("agent-execution"),
|
|
16106
16562
|
kernelExecution("kernel-execution"),
|
|
16563
|
+
kernelExecution("media-execution", {
|
|
16564
|
+
type: "artifacts.transcribeMedia",
|
|
16565
|
+
digest: `sha256:${"a".repeat(64)}`
|
|
16566
|
+
}),
|
|
16107
16567
|
scriptExecution("script-execution")
|
|
16108
16568
|
];
|
|
16109
16569
|
for (const input of records) {
|
|
@@ -16638,8 +17098,7 @@ function scriptExecution(id) {
|
|
|
16638
17098
|
authorizationRef: { type: "script", runId: `script-${id}` }
|
|
16639
17099
|
};
|
|
16640
17100
|
}
|
|
16641
|
-
function kernelExecution(id) {
|
|
16642
|
-
const operation = { type: "ontology.recover", recoveryId: `recovery-${id}` };
|
|
17101
|
+
function kernelExecution(id, operation = { type: "ontology.recover", recoveryId: `recovery-${id}` }) {
|
|
16643
17102
|
return {
|
|
16644
17103
|
id,
|
|
16645
17104
|
projectId: projectId17,
|
|
@@ -17992,6 +18451,29 @@ function runLakeStorageContractSuite(label, options) {
|
|
|
17992
18451
|
expect27(await storage.getDataset(minimalDataset.id)).toEqual(documentedDataset);
|
|
17993
18452
|
});
|
|
17994
18453
|
});
|
|
18454
|
+
test27("persists compatible metadata updates", async () => {
|
|
18455
|
+
await withStorage(async (storage) => {
|
|
18456
|
+
const initialDataset = defineDataset2("contract.definitions.metadata_update", {
|
|
18457
|
+
schema: [col2("orderId", "string"), col2("orderDate", "date")],
|
|
18458
|
+
description: "Initial description"
|
|
18459
|
+
});
|
|
18460
|
+
const updatedDataset = defineDataset2("contract.definitions.metadata_update", {
|
|
18461
|
+
schema: [col2("orderId", "string"), col2("orderDate", "date")],
|
|
18462
|
+
description: "Updated description"
|
|
18463
|
+
});
|
|
18464
|
+
const omittedDataset = defineDataset2("contract.definitions.metadata_update", {
|
|
18465
|
+
schema: [col2("orderId", "string"), col2("orderDate", "date")]
|
|
18466
|
+
});
|
|
18467
|
+
await storage.createDataset(initialDataset);
|
|
18468
|
+
await storage.assertDatasetDefinitionsCompatible([updatedDataset]);
|
|
18469
|
+
expect27(await storage.getDataset(initialDataset.id)).toEqual(initialDataset);
|
|
18470
|
+
await expect27(storage.createDataset(updatedDataset)).resolves.toEqual(updatedDataset);
|
|
18471
|
+
expect27(await storage.getDataset(initialDataset.id)).toEqual(updatedDataset);
|
|
18472
|
+
await storage.assertDatasetDefinitionsCompatible([omittedDataset]);
|
|
18473
|
+
await expect27(storage.createDataset(omittedDataset)).resolves.toEqual(updatedDataset);
|
|
18474
|
+
expect27(await storage.getDataset(initialDataset.id)).toEqual(updatedDataset);
|
|
18475
|
+
});
|
|
18476
|
+
});
|
|
17995
18477
|
test27("rejects incompatible definition changes without mutating the stored definition", async () => {
|
|
17996
18478
|
await withStorage(async (storage) => {
|
|
17997
18479
|
const changedDataset = defineDataset2(definitionDataset.id, {
|
|
@@ -26267,6 +26749,71 @@ function runQueueContractSuite(label, options) {
|
|
|
26267
26749
|
expect37(claimed.map(({ job }) => job.type)).toEqual(["artifact.pdf.requested"]);
|
|
26268
26750
|
});
|
|
26269
26751
|
});
|
|
26752
|
+
test37("renders carry a media's file to derive", async () => {
|
|
26753
|
+
await withQueues(async (queues) => {
|
|
26754
|
+
const file = {
|
|
26755
|
+
blobId: `blob_${"a".repeat(64)}`,
|
|
26756
|
+
digest: `sha256:${"a".repeat(64)}`,
|
|
26757
|
+
sizeBytes: 2048,
|
|
26758
|
+
fileName: "clip.mp4",
|
|
26759
|
+
mediaType: "video/mp4"
|
|
26760
|
+
};
|
|
26761
|
+
await queues.renders.enqueue({
|
|
26762
|
+
projectId: "project-a",
|
|
26763
|
+
jobs: [
|
|
26764
|
+
{
|
|
26765
|
+
id: `art_media_${"a".repeat(64)}`,
|
|
26766
|
+
type: "artifact.media.requested",
|
|
26767
|
+
payload: { file }
|
|
26768
|
+
}
|
|
26769
|
+
]
|
|
26770
|
+
});
|
|
26771
|
+
const claimed = await queues.renders.claim({ projectId: "project-a", workerId: "render" });
|
|
26772
|
+
expect37(claimed.map(({ job }) => [job.type, job.payload])).toEqual([
|
|
26773
|
+
["artifact.media.requested", { file }]
|
|
26774
|
+
]);
|
|
26775
|
+
});
|
|
26776
|
+
});
|
|
26777
|
+
test37("renders carry a video segment's files and what its addresses resolved to", async () => {
|
|
26778
|
+
await withQueues(async (queues) => {
|
|
26779
|
+
const file = (seed, mediaType) => ({
|
|
26780
|
+
blobId: `blob_${seed.repeat(64)}`,
|
|
26781
|
+
digest: `sha256:${seed.repeat(64)}`,
|
|
26782
|
+
sizeBytes: 2048,
|
|
26783
|
+
mediaType
|
|
26784
|
+
});
|
|
26785
|
+
const payload = {
|
|
26786
|
+
artifactId: "art_v1",
|
|
26787
|
+
version: 2,
|
|
26788
|
+
key: "b".repeat(64),
|
|
26789
|
+
segment: { kind: "scene", scene: "intro", startFrame: 0, endFrame: 120 },
|
|
26790
|
+
video: { width: 1920, height: 1080, fps: 30, durationMs: 14000 },
|
|
26791
|
+
files: [
|
|
26792
|
+
{ path: "index.html", file: file("a", "text/html") },
|
|
26793
|
+
{ path: "media/clip.mp4", file: file("b", "video/mp4") }
|
|
26794
|
+
],
|
|
26795
|
+
media: [
|
|
26796
|
+
{ address: "artifact:art_k3m9q2x7tp/media/logo.mp4", file: file("c", "video/mp4") },
|
|
26797
|
+
{ address: "artifact:art_q8w2e4r6ty/media/hidden.mp4" }
|
|
26798
|
+
],
|
|
26799
|
+
frames: { from: 0, to: 120 }
|
|
26800
|
+
};
|
|
26801
|
+
await queues.renders.enqueue({
|
|
26802
|
+
projectId: "project-a",
|
|
26803
|
+
jobs: [
|
|
26804
|
+
{
|
|
26805
|
+
id: `art_vseg_${"b".repeat(64)}`,
|
|
26806
|
+
type: "artifact.video.segment.requested",
|
|
26807
|
+
payload
|
|
26808
|
+
}
|
|
26809
|
+
]
|
|
26810
|
+
});
|
|
26811
|
+
const claimed = await queues.renders.claim({ projectId: "project-a", workerId: "render" });
|
|
26812
|
+
expect37(claimed.map(({ job }) => [job.type, job.payload])).toEqual([
|
|
26813
|
+
["artifact.video.segment.requested", payload]
|
|
26814
|
+
]);
|
|
26815
|
+
});
|
|
26816
|
+
});
|
|
26270
26817
|
describe35("enqueue", () => {
|
|
26271
26818
|
test37("returns envelopes with generated id, createdAt, availableAt, attempt=0", async () => {
|
|
26272
26819
|
await withQueues(async (queues) => {
|
|
@@ -29842,4 +30389,4 @@ export {
|
|
|
29842
30389
|
testRunExecution
|
|
29843
30390
|
};
|
|
29844
30391
|
|
|
29845
|
-
//# debugId=
|
|
30392
|
+
//# debugId=A5001CBD1484DA3864756E2164756E21
|