@sixb/core 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +53 -50
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/context.d.ts.map +1 -1
- package/dist/actions/run/execute.d.ts +3 -0
- package/dist/actions/run/execute.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +3 -0
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/run/normalize.d.ts.map +1 -1
- package/dist/actions/run/types.d.ts +6 -0
- package/dist/actions/run/types.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +7 -0
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/context/entries.d.ts +17 -0
- package/dist/agents/context/entries.d.ts.map +1 -1
- package/dist/agents/context/index.js +3 -2
- package/dist/agents/context/index.js.map +1 -1
- package/dist/agents/context-model.d.ts.map +1 -1
- package/dist/agents/context-resolution.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +7 -0
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +62 -57
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-call-retry.d.ts +28 -0
- package/dist/agents/model-call-retry.d.ts.map +1 -0
- package/dist/agents/model-loop.d.ts +4 -2
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/model-routing.d.ts +15 -4
- package/dist/agents/model-routing.d.ts.map +1 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +2 -0
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-plan.d.ts +1 -1
- package/dist/agents/run-plan.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session-wire.d.ts +6 -0
- package/dist/agents/run-session-wire.d.ts.map +1 -1
- package/dist/agents/run-token.d.ts +6 -0
- package/dist/agents/run-token.d.ts.map +1 -1
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.js +2 -2
- package/dist/agents/thread-access.d.ts +13 -0
- package/dist/agents/thread-access.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/artifacts/caller.d.ts +10 -0
- package/dist/artifacts/caller.d.ts.map +1 -0
- package/dist/artifacts/comment-place.d.ts +26 -0
- package/dist/artifacts/comment-place.d.ts.map +1 -0
- package/dist/artifacts/comment-text.d.ts +12 -4
- package/dist/artifacts/comment-text.d.ts.map +1 -1
- package/dist/artifacts/comments.d.ts +8 -2
- package/dist/artifacts/comments.d.ts.map +1 -1
- package/dist/artifacts/errors.d.ts +1 -1
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/execution.d.ts +73 -5
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +27 -7
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/entries.d.ts +5 -4
- package/dist/artifacts/frames/entries.d.ts.map +1 -1
- package/dist/artifacts/frames/hyperframes.d.ts +12 -0
- package/dist/artifacts/frames/hyperframes.d.ts.map +1 -0
- package/dist/artifacts/frames/index.d.ts +3 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +20 -6
- package/dist/artifacts/frames/index.js.map +3 -3
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +33 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/video-runtime.d.ts +21 -0
- package/dist/artifacts/frames/video-runtime.d.ts.map +1 -0
- package/dist/artifacts/html.d.ts +23 -0
- package/dist/artifacts/html.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +5 -3
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +71 -10
- package/dist/artifacts/index.js.map +4 -4
- package/dist/artifacts/kinds.d.ts +1 -1
- package/dist/artifacts/kinds.d.ts.map +1 -1
- package/dist/artifacts/limits.d.ts +37 -0
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts.map +1 -1
- package/dist/artifacts/live/index.d.ts +6 -2
- package/dist/artifacts/live/index.d.ts.map +1 -1
- package/dist/artifacts/live/index.js +3432 -13
- package/dist/artifacts/live/index.js.map +6 -3
- package/dist/artifacts/live/presence.d.ts +7 -5
- package/dist/artifacts/live/presence.d.ts.map +1 -1
- package/dist/artifacts/live/protocol.d.ts +4 -2
- package/dist/artifacts/live/protocol.d.ts.map +1 -1
- package/dist/artifacts/live/server.d.ts +1 -1
- package/dist/artifacts/live/server.d.ts.map +1 -1
- package/dist/artifacts/live/server.js +36 -31
- package/dist/artifacts/live/server.js.map +1 -1
- package/dist/artifacts/live/state.d.ts +2 -2
- package/dist/artifacts/media/media.d.ts +96 -0
- package/dist/artifacts/media/media.d.ts.map +1 -0
- package/dist/artifacts/media/transcriber.d.ts +29 -0
- package/dist/artifacts/media/transcriber.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +26 -1
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/files.d.ts +5 -2
- package/dist/artifacts/publish/files.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +11 -2
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +110 -33
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/pdf.d.ts.map +1 -1
- package/dist/artifacts/publish/previews.d.ts +7 -2
- package/dist/artifacts/publish/previews.d.ts.map +1 -1
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/html.d.ts +5 -4
- package/dist/artifacts/publish/validate/html.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/video.d.ts +36 -0
- package/dist/artifacts/publish/validate/video.d.ts.map +1 -0
- package/dist/artifacts/publish/video.d.ts +79 -0
- package/dist/artifacts/publish/video.d.ts.map +1 -0
- package/dist/artifacts/resolve.d.ts +9 -0
- package/dist/artifacts/resolve.d.ts.map +1 -1
- package/dist/artifacts/video/composition.d.ts +183 -0
- package/dist/artifacts/video/composition.d.ts.map +1 -0
- package/dist/artifacts/video/edit.d.ts +298 -0
- package/dist/artifacts/video/edit.d.ts.map +1 -0
- package/dist/artifacts/video/export.d.ts +142 -0
- package/dist/artifacts/video/export.d.ts.map +1 -0
- package/dist/artifacts/video/looks.d.ts +133 -0
- package/dist/artifacts/video/looks.d.ts.map +1 -0
- package/dist/artifacts/video/project.d.ts +74 -0
- package/dist/artifacts/video/project.d.ts.map +1 -0
- package/dist/artifacts/video/stills.d.ts +65 -0
- package/dist/artifacts/video/stills.d.ts.map +1 -0
- package/dist/artifacts/video/timeline.d.ts +153 -0
- package/dist/artifacts/video/timeline.d.ts.map +1 -0
- package/dist/auth/index.js +9 -8
- package/dist/auth/index.js.map +1 -1
- package/dist/authorization/index.js +5 -4
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/browser.d.ts +1 -1
- package/dist/blob-storage/browser.d.ts.map +1 -1
- package/dist/blob-storage/browser.js +8 -4
- package/dist/blob-storage/browser.js.map +1 -1
- package/dist/blob-storage/constants.d.ts +8 -3
- package/dist/blob-storage/constants.d.ts.map +1 -1
- package/dist/blob-storage/download-urls.d.ts +2 -2
- package/dist/blob-storage/download-urls.d.ts.map +1 -1
- package/dist/blob-storage/index.d.ts +1 -1
- package/dist/blob-storage/index.d.ts.map +1 -1
- package/dist/blob-storage/index.js +9 -5
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/blob-storage/internal.d.ts +2 -2
- package/dist/blob-storage/internal.d.ts.map +1 -1
- package/dist/blob-storage/internal.js +10 -4
- package/dist/blob-storage/internal.js.map +1 -1
- package/dist/blob-storage/media-type.d.ts +12 -3
- package/dist/blob-storage/media-type.d.ts.map +1 -1
- package/dist/bootstrap/discovery.d.ts +6 -0
- package/dist/bootstrap/discovery.d.ts.map +1 -1
- package/dist/bootstrap/index.js +63 -60
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/{chunk-az95tsh3.js → chunk-0fjryajn.js} +3 -2
- package/dist/chunk-0fjryajn.js.map +11 -0
- package/dist/{chunk-9tpmfh3n.js → chunk-0mk8qqp9.js} +3 -3
- package/dist/{chunk-9tpmfh3n.js.map → chunk-0mk8qqp9.js.map} +3 -3
- package/dist/{chunk-88xeh6zx.js → chunk-1g4me5f2.js} +182 -7
- package/dist/{chunk-88xeh6zx.js.map → chunk-1g4me5f2.js.map} +3 -3
- package/dist/{chunk-7mhbs9yy.js → chunk-1z8ccj53.js} +1 -1
- package/dist/{chunk-wkv3h3q7.js → chunk-2138b0ng.js} +115 -8
- package/dist/chunk-2138b0ng.js.map +12 -0
- package/dist/chunk-23eaayw4.js +3757 -0
- package/dist/chunk-23eaayw4.js.map +22 -0
- package/dist/{chunk-s8xxef60.js → chunk-2mxq1yd9.js} +48 -41
- package/dist/{chunk-s8xxef60.js.map → chunk-2mxq1yd9.js.map} +6 -6
- package/dist/{chunk-dmnd9ea6.js → chunk-30a0ftnm.js} +2 -2
- package/dist/{chunk-nxysqbt0.js → chunk-389ybvw9.js} +6 -2
- package/dist/chunk-389ybvw9.js.map +10 -0
- package/dist/{chunk-qbd282aa.js → chunk-39q9ybav.js} +2 -2
- package/dist/{chunk-9c9yknwt.js → chunk-3d9w8t4n.js} +111 -23
- package/dist/{chunk-9c9yknwt.js.map → chunk-3d9w8t4n.js.map} +5 -5
- package/dist/chunk-3dvcdn9w.js +8 -0
- package/dist/chunk-3dvcdn9w.js.map +10 -0
- package/dist/{chunk-bcz9dxtf.js → chunk-3x902cja.js} +3 -3
- package/dist/{chunk-c4nrycdy.js → chunk-4q4a5a96.js} +1 -1
- package/dist/{chunk-7r9mqpva.js → chunk-4tdm3fsj.js} +100 -36
- package/dist/{chunk-7r9mqpva.js.map → chunk-4tdm3fsj.js.map} +10 -10
- package/dist/{chunk-ykchk644.js → chunk-4w8qzy9w.js} +6 -6
- package/dist/{chunk-c29729me.js → chunk-4z9xtxke.js} +8 -7
- package/dist/chunk-4z9xtxke.js.map +12 -0
- package/dist/chunk-5278qwax.js +270 -0
- package/dist/chunk-5278qwax.js.map +11 -0
- package/dist/{chunk-kft7mp7z.js → chunk-5xkqasvn.js} +1 -1
- package/dist/{chunk-k1g14kk3.js → chunk-6a4hp405.js} +4 -5
- package/dist/{chunk-k1g14kk3.js.map → chunk-6a4hp405.js.map} +3 -3
- package/dist/{chunk-xavet0qs.js → chunk-6whr25gw.js} +2 -2
- package/dist/{chunk-mbwsgjn7.js → chunk-7zygtcqq.js} +14 -2
- package/dist/chunk-7zygtcqq.js.map +11 -0
- package/dist/chunk-88s9z5pf.js +3 -0
- package/dist/{chunk-de5sfbc3.js.map → chunk-88s9z5pf.js.map} +1 -1
- package/dist/{chunk-ygvay56w.js → chunk-896te58g.js} +2 -2
- package/dist/{chunk-pqj8vff9.js → chunk-8eqqqc1h.js} +3 -3
- package/dist/{chunk-425ydk65.js → chunk-8tefbhdx.js} +14 -14
- package/dist/{chunk-425ydk65.js.map → chunk-8tefbhdx.js.map} +1 -1
- package/dist/{chunk-jka26v8c.js → chunk-8x1bsp68.js} +1 -1
- package/dist/{chunk-wzcjhv54.js → chunk-93e4w7te.js} +113 -1
- package/dist/chunk-93e4w7te.js.map +11 -0
- package/dist/{chunk-ym1bqd98.js → chunk-990a5bkc.js} +424 -76
- package/dist/chunk-990a5bkc.js.map +21 -0
- package/dist/{chunk-fmgf9h5e.js → chunk-9az7kjv4.js} +6 -6
- package/dist/{chunk-eg6xqef7.js → chunk-9e5t53z0.js} +3 -3
- package/dist/{chunk-eg6xqef7.js.map → chunk-9e5t53z0.js.map} +3 -3
- package/dist/{chunk-bs1sd0e0.js → chunk-9p7kyeqz.js} +4 -4
- package/dist/chunk-a68zz4r0.js +537 -0
- package/dist/chunk-a68zz4r0.js.map +11 -0
- package/dist/{chunk-d7vyc7k6.js → chunk-a700gjc8.js} +10 -2
- package/dist/chunk-a700gjc8.js.map +10 -0
- package/dist/{chunk-gfdh9kqa.js → chunk-a9qzjaz2.js} +2 -5
- package/dist/chunk-a9qzjaz2.js.map +10 -0
- package/dist/{chunk-ats8y3d9.js → chunk-as94vcty.js} +688 -504
- package/dist/{chunk-ats8y3d9.js.map → chunk-as94vcty.js.map} +21 -21
- package/dist/{chunk-brybqw5k.js → chunk-bkxm2dzx.js} +1 -1
- package/dist/{chunk-ppxf7gw2.js → chunk-d7t9jnym.js} +3 -3
- package/dist/{chunk-tapdssb5.js → chunk-e3b1r4d2.js} +8 -7
- package/dist/{chunk-tapdssb5.js.map → chunk-e3b1r4d2.js.map} +4 -4
- package/dist/{chunk-cg7cygfj.js → chunk-fdmvaz7x.js} +1 -1
- package/dist/{chunk-191jz8a6.js → chunk-ff0qdk7z.js} +1 -1
- package/dist/{chunk-9vsc919v.js → chunk-fgxvrxx4.js} +22 -2
- package/dist/chunk-fgxvrxx4.js.map +10 -0
- package/dist/{chunk-wx7smkn2.js → chunk-fq8drkp0.js} +1 -1
- package/dist/{chunk-60662fyv.js → chunk-fqms1a8c.js} +132 -4
- package/dist/{chunk-60662fyv.js.map → chunk-fqms1a8c.js.map} +8 -6
- package/dist/{chunk-v8a1qjzp.js → chunk-hpswfrjj.js} +1 -1
- package/dist/{chunk-qttqe1ah.js → chunk-jbg905hn.js} +80 -13
- package/dist/chunk-jbg905hn.js.map +25 -0
- package/dist/{chunk-bz5bnjjt.js → chunk-jjte0h4p.js} +1 -1
- package/dist/{chunk-jt012fxq.js → chunk-jwjwvzj1.js} +797 -51
- package/dist/chunk-jwjwvzj1.js.map +38 -0
- package/dist/{chunk-f05994as.js → chunk-k3vd2vyz.js} +6 -2
- package/dist/chunk-k3vd2vyz.js.map +10 -0
- package/dist/chunk-kcqpk9w1.js.map +2 -2
- package/dist/chunk-mvz89age.js.map +2 -2
- package/dist/{chunk-xrmbhap8.js → chunk-mwg0nwkb.js} +1 -1
- package/dist/{chunk-a3faa34j.js → chunk-nfjt8k8j.js} +1 -1
- package/dist/{chunk-394zjzjs.js → chunk-nhgqz3g3.js} +3 -3
- package/dist/{chunk-bqr703h4.js → chunk-p0c5kkhn.js} +23 -6
- package/dist/{chunk-bqr703h4.js.map → chunk-p0c5kkhn.js.map} +3 -3
- package/dist/{chunk-92wrka15.js → chunk-q150fnj9.js} +1 -1
- package/dist/{chunk-w3t94hm6.js → chunk-qk3zq25v.js} +1 -1
- package/dist/{chunk-6hfbz4d0.js → chunk-r588h4ev.js} +1 -1
- package/dist/chunk-rtkqczbr.js.map +2 -2
- package/dist/{chunk-3qtk0070.js → chunk-ssqbrts1.js} +86 -9
- package/dist/chunk-ssqbrts1.js.map +14 -0
- package/dist/{chunk-5qqmndhm.js → chunk-szzhrn3e.js} +1 -1
- package/dist/{chunk-n1hbwc6y.js → chunk-t6pfch4e.js} +1 -1
- package/dist/{chunk-xtztwpkh.js → chunk-v6h4tc2v.js} +86 -5
- package/dist/chunk-v6h4tc2v.js.map +12 -0
- package/dist/{chunk-brhp9d97.js → chunk-vmqjndb3.js} +2 -2
- package/dist/chunk-vtjzwymr.js.map +2 -2
- package/dist/{chunk-t19wjmnc.js → chunk-wpba6hhd.js} +54 -20
- package/dist/{chunk-t19wjmnc.js.map → chunk-wpba6hhd.js.map} +3 -3
- package/dist/{chunk-htdzx40w.js → chunk-wrb1x1ss.js} +12 -4
- package/dist/{chunk-htdzx40w.js.map → chunk-wrb1x1ss.js.map} +3 -3
- package/dist/{chunk-5sswe5ej.js → chunk-wsv23wvr.js} +2 -2
- package/dist/{chunk-90nqenq8.js → chunk-x0hqc54n.js} +4 -4
- package/dist/{chunk-sgx82nnt.js → chunk-xg31er4p.js} +43 -4
- package/dist/chunk-xg31er4p.js.map +10 -0
- package/dist/{chunk-3neam1y5.js → chunk-y3qb965a.js} +2 -2
- package/dist/{chunk-gaj8djsw.js → chunk-y57eawng.js} +10 -5
- package/dist/{chunk-gaj8djsw.js.map → chunk-y57eawng.js.map} +3 -3
- package/dist/{chunk-8ncg20rd.js → chunk-yah25st6.js} +5 -5
- package/dist/chunk-yah25st6.js.map +10 -0
- package/dist/{chunk-grt2j5vp.js → chunk-ywvxcmqj.js} +106 -13
- package/dist/{chunk-grt2j5vp.js.map → chunk-ywvxcmqj.js.map} +8 -7
- package/dist/{chunk-xf76csps.js → chunk-zmq9xc9s.js} +70 -31
- package/dist/{chunk-xf76csps.js.map → chunk-zmq9xc9s.js.map} +4 -3
- package/dist/datasets/write.js +8 -7
- package/dist/datasets/write.js.map +1 -1
- package/dist/deploy/index.d.ts +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/internal.js +2 -2
- package/dist/deploy/internal.js.map +2 -2
- package/dist/deploy/types.d.ts +8 -58
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/env/index.d.ts +10 -3
- package/dist/env/index.d.ts.map +1 -1
- package/dist/env/index.js.map +2 -2
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/execution/agent.js +53 -50
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/kernel-operation.d.ts +1 -0
- package/dist/execution/kernel-operation.d.ts.map +1 -1
- package/dist/execution/primitive.js +53 -50
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +54 -51
- package/dist/execution/request.js.map +2 -2
- package/dist/execution/types.d.ts +5 -0
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +73 -67
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +9 -8
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/maintenance/index.js +9 -8
- package/dist/maintenance/index.js.map +2 -2
- package/dist/materializer/index.js +26 -24
- package/dist/materializer/index.js.map +1 -1
- package/dist/models/audio/runtime.d.ts +3 -1
- package/dist/models/audio/runtime.d.ts.map +1 -1
- package/dist/models/audio/speech.d.ts +2 -2
- package/dist/models/audio/speech.d.ts.map +1 -1
- package/dist/models/audio/types.d.ts +23 -3
- package/dist/models/audio/types.d.ts.map +1 -1
- package/dist/models/calls.d.ts +7 -0
- package/dist/models/calls.d.ts.map +1 -1
- package/dist/models/catalog.d.ts +5 -0
- package/dist/models/catalog.d.ts.map +1 -1
- package/dist/models/definitions.d.ts +3 -2
- package/dist/models/definitions.d.ts.map +1 -1
- package/dist/models/errors.d.ts +5 -3
- package/dist/models/errors.d.ts.map +1 -1
- package/dist/models/events.d.ts +2 -0
- package/dist/models/events.d.ts.map +1 -1
- package/dist/models/execution/index.d.ts +1 -0
- package/dist/models/execution/index.d.ts.map +1 -1
- package/dist/models/execution/index.js +33 -28
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/execution/model-call-limits.d.ts.map +1 -1
- package/dist/models/execution/model-call-recorder.d.ts +8 -0
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/execution/session.d.ts +12 -0
- package/dist/models/execution/session.d.ts.map +1 -1
- package/dist/models/execution/usage.d.ts.map +1 -1
- package/dist/models/execution.d.ts +1 -1
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/generation-types.d.ts +2 -0
- package/dist/models/generation-types.d.ts.map +1 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +2 -2
- package/dist/models/input-file.d.ts.map +1 -1
- package/dist/models/pricing.d.ts +2 -1
- package/dist/models/pricing.d.ts.map +1 -1
- package/dist/models/rate-card.d.ts +6 -0
- package/dist/models/rate-card.d.ts.map +1 -1
- package/dist/models/tools.d.ts +5 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/models/video/catalog.d.ts +13 -0
- package/dist/models/video/catalog.d.ts.map +1 -0
- package/dist/models/video/check.d.ts +76 -0
- package/dist/models/video/check.d.ts.map +1 -0
- package/dist/models/video/runtime.d.ts +21 -0
- package/dist/models/video/runtime.d.ts.map +1 -0
- package/dist/models/video/types.d.ts +188 -0
- package/dist/models/video/types.d.ts.map +1 -0
- package/dist/objects/execution.d.ts.map +1 -1
- package/dist/objects/index.js +53 -50
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/query/index.js +25 -23
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/sdk/object-set.d.ts.map +1 -1
- package/dist/ontology/index.js +4 -4
- package/dist/ontology/internal.js +4 -4
- package/dist/pipelines/index.js +28 -26
- package/dist/pipelines/index.js.map +1 -1
- package/dist/projections/internal.js +26 -24
- package/dist/projections/internal.js.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/types.d.ts +103 -6
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/definitions.d.ts +14 -0
- package/dist/runtime/definitions.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +3 -1
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +3 -1
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +49 -43
- package/dist/runtime/internal.js.map +2 -2
- package/dist/runtime/resolve-definitions.d.ts +2 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/errors.d.ts +19 -0
- package/dist/sandboxes/errors.d.ts.map +1 -1
- package/dist/sandboxes/exec.d.ts +2 -0
- package/dist/sandboxes/exec.d.ts.map +1 -1
- package/dist/sandboxes/index.d.ts +1 -1
- package/dist/sandboxes/index.d.ts.map +1 -1
- package/dist/sandboxes/index.js +14 -8
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/sandboxes/sandbox.d.ts +15 -1
- package/dist/sandboxes/sandbox.d.ts.map +1 -1
- package/dist/security/public.d.ts +6 -4
- package/dist/security/public.d.ts.map +1 -1
- package/dist/security/public.js +5 -3
- package/dist/security/public.js.map +1 -1
- package/dist/shares/internal.js +25 -23
- package/dist/shares/internal.js.map +2 -2
- package/dist/storage/agents/in-memory.d.ts +2 -1
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +1 -1
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +5 -5
- package/dist/storage/agents/types.d.ts +27 -1
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/analytics.d.ts +1 -0
- package/dist/storage/ai-cost/analytics.d.ts.map +1 -1
- package/dist/storage/ai-cost/groups.d.ts +2 -0
- package/dist/storage/ai-cost/groups.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +5 -5
- package/dist/storage/ai-cost/types.d.ts +2 -1
- package/dist/storage/ai-cost/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/validation.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +3 -3
- package/dist/storage/ai-limits/provider.js +2 -2
- package/dist/storage/ai-usage/in-memory.d.ts +8 -1
- package/dist/storage/ai-usage/in-memory.d.ts.map +1 -1
- package/dist/storage/ai-usage/index.d.ts +2 -2
- package/dist/storage/ai-usage/index.d.ts.map +1 -1
- package/dist/storage/ai-usage/record.d.ts +11 -1
- package/dist/storage/ai-usage/record.d.ts.map +1 -1
- package/dist/storage/ai-usage/types.d.ts +80 -1
- package/dist/storage/ai-usage/types.d.ts.map +1 -1
- package/dist/storage/ai-usage/usage.d.ts +1 -1
- package/dist/storage/ai-usage/usage.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +25 -2
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +12 -1
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +198 -6
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +3 -2
- package/dist/storage/executions/provider.js.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +10 -9
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +4 -4
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +25 -23
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +2 -2
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +34 -14
- package/dist/storage/internal.js.map +2 -2
- package/dist/storage/workflow-runs/provider.js +10 -9
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/syncs/index.js +29 -27
- package/dist/syncs/index.js.map +1 -1
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-cost-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-usage-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts +3 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.js +686 -75
- package/dist/testing/index.js.map +10 -10
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/sandboxes-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +26 -24
- package/dist/webhooks/internal.js.map +2 -2
- package/dist/workers/index.js +5 -5
- package/dist/workers/index.js.map +1 -1
- package/dist/workflows/index.js +60 -57
- package/dist/workflows/index.js.map +1 -1
- package/package.json +3 -1
- package/src/actions/request.ts +2 -0
- package/src/actions/run/context.ts +1 -0
- package/src/actions/run/execute.ts +5 -1
- package/src/actions/run/executor.ts +4 -0
- package/src/actions/run/normalize.ts +4 -0
- package/src/actions/run/types.ts +6 -0
- package/src/actions/types/context.ts +7 -0
- package/src/agents/README.md +3 -1
- package/src/agents/context/entries.ts +63 -9
- package/src/agents/context-model.ts +9 -0
- package/src/agents/context-resolution.ts +7 -0
- package/src/agents/execution.ts +39 -0
- package/src/agents/index.ts +1 -0
- package/src/agents/model-call-retry.ts +69 -0
- package/src/agents/model-loop.ts +86 -12
- package/src/agents/model-routing.ts +104 -38
- package/src/agents/request.ts +27 -1
- package/src/agents/run-artifacts.ts +10 -5
- package/src/agents/run-plan.ts +2 -1
- package/src/agents/run-session-http.ts +1 -0
- package/src/agents/run-session-serve.ts +23 -2
- package/src/agents/run-session-wire.ts +45 -0
- package/src/agents/run-token.ts +7 -0
- package/src/agents/thread-access.ts +34 -1
- package/src/agents/tool-files.ts +23 -7
- package/src/artifacts/caller.ts +42 -0
- package/src/artifacts/comment-place.ts +51 -0
- package/src/artifacts/comment-text.ts +50 -7
- package/src/artifacts/comments.ts +132 -34
- package/src/artifacts/errors.ts +1 -0
- package/src/artifacts/execution.ts +249 -5
- package/src/artifacts/frames/assets.ts +93 -15
- package/src/artifacts/frames/entries.ts +7 -4
- package/src/artifacts/frames/generated/hyperframes-notices.txt +290 -0
- package/src/artifacts/frames/generated/hyperframes.txt +1145 -0
- package/src/artifacts/frames/generated.d.ts +5 -0
- package/src/artifacts/frames/hyperframes.ts +14 -0
- package/src/artifacts/frames/index.ts +5 -0
- package/src/artifacts/frames/kit.ts +7 -3
- package/src/artifacts/frames/protocol.ts +56 -0
- package/src/artifacts/frames/video-runtime.ts +165 -0
- package/src/artifacts/html.ts +13 -0
- package/src/artifacts/index.ts +7 -0
- package/src/artifacts/kinds.ts +9 -1
- package/src/artifacts/limits.ts +43 -0
- package/src/artifacts/live/document.ts +27 -3
- package/src/artifacts/live/index.ts +58 -2
- package/src/artifacts/live/presence.ts +17 -5
- package/src/artifacts/live/protocol.ts +4 -2
- package/src/artifacts/live/server.ts +1 -1
- package/src/artifacts/live/state.ts +3 -3
- package/src/artifacts/media/README.md +75 -0
- package/src/artifacts/media/media.ts +316 -0
- package/src/artifacts/media/transcriber.ts +84 -0
- package/src/artifacts/outline.ts +28 -0
- package/src/artifacts/publish/files.ts +19 -6
- package/src/artifacts/publish/index.ts +49 -2
- package/src/artifacts/publish/pdf.ts +3 -1
- package/src/artifacts/publish/previews.ts +22 -8
- package/src/artifacts/publish/publish.ts +4 -1
- package/src/artifacts/publish/validate/html.ts +23 -18
- package/src/artifacts/publish/validate/video.ts +309 -0
- package/src/artifacts/publish/video.ts +235 -0
- package/src/artifacts/resolve.ts +45 -0
- package/src/artifacts/video/README.md +402 -0
- package/src/artifacts/video/composition.ts +898 -0
- package/src/artifacts/video/edit.ts +3967 -0
- package/src/artifacts/video/export.ts +352 -0
- package/src/artifacts/video/looks.ts +694 -0
- package/src/artifacts/video/project.ts +198 -0
- package/src/artifacts/video/stills.ts +168 -0
- package/src/artifacts/video/timeline.ts +658 -0
- package/src/blob-storage/browser.ts +1 -1
- package/src/blob-storage/constants.ts +9 -3
- package/src/blob-storage/download-urls.ts +5 -3
- package/src/blob-storage/index.ts +1 -0
- package/src/blob-storage/internal.ts +13 -2
- package/src/blob-storage/media-type.ts +149 -8
- package/src/bootstrap/discovery.ts +61 -11
- package/src/deploy/index.ts +0 -5
- package/src/deploy/types.ts +8 -63
- package/src/deploy/validation.ts +1 -1
- package/src/env/index.ts +10 -4
- package/src/errors/catalog.ts +2 -1
- package/src/execution/authorization.ts +2 -2
- package/src/execution/kernel-operation.ts +14 -0
- package/src/execution/types.ts +2 -0
- package/src/http/api-routes.ts +117 -0
- package/src/index.ts +21 -1
- package/src/lake-storage/definition-updates.ts +3 -9
- package/src/models/audio/runtime.ts +48 -3
- package/src/models/audio/speech.ts +2 -2
- package/src/models/audio/types.ts +24 -3
- package/src/models/calls.ts +35 -18
- package/src/models/catalog.ts +9 -2
- package/src/models/definitions.ts +4 -2
- package/src/models/errors.ts +5 -3
- package/src/models/events.ts +2 -0
- package/src/models/execution/README.md +68 -2
- package/src/models/execution/index.ts +1 -0
- package/src/models/execution/model-call-limits.ts +11 -5
- package/src/models/execution/model-call-recorder.ts +14 -0
- package/src/models/execution/session.ts +52 -23
- package/src/models/execution/usage.ts +1 -0
- package/src/models/execution.ts +13 -2
- package/src/models/generation-types.ts +2 -0
- package/src/models/index.ts +20 -1
- package/src/models/input-file.ts +7 -2
- package/src/models/pricing.ts +19 -1
- package/src/models/rate-card.ts +15 -3
- package/src/models/tools.ts +5 -0
- package/src/models/video/catalog.ts +101 -0
- package/src/models/video/check.ts +441 -0
- package/src/models/video/runtime.ts +550 -0
- package/src/models/video/types.ts +194 -0
- package/src/objects/execution.ts +2 -0
- package/src/objects/sdk/object-set.ts +2 -0
- package/src/queues/index.ts +5 -0
- package/src/queues/types.ts +126 -5
- package/src/runtime/create.ts +1 -0
- package/src/runtime/definitions.ts +25 -0
- package/src/runtime/host.ts +6 -1
- package/src/runtime/index.ts +6 -1
- package/src/runtime/internal.ts +3 -1
- package/src/runtime/resolve-definitions.ts +7 -1
- package/src/runtime/sixb.ts +12 -4
- package/src/sandboxes/README.md +12 -2
- package/src/sandboxes/errors.ts +27 -0
- package/src/sandboxes/exec.ts +3 -1
- package/src/sandboxes/index.ts +3 -0
- package/src/sandboxes/sandbox.ts +15 -1
- package/src/security/public.ts +6 -4
- package/src/storage/agents/in-memory.ts +39 -0
- package/src/storage/agents/index.ts +1 -0
- package/src/storage/agents/provider.ts +8 -0
- package/src/storage/agents/types.ts +32 -1
- package/src/storage/ai-cost/analytics.ts +2 -0
- package/src/storage/ai-cost/codec.ts +1 -0
- package/src/storage/ai-cost/groups.ts +7 -0
- package/src/storage/ai-cost/types.ts +2 -0
- package/src/storage/ai-cost/validation.ts +2 -0
- package/src/storage/ai-usage/in-memory.ts +93 -0
- package/src/storage/ai-usage/index.ts +10 -0
- package/src/storage/ai-usage/record.ts +106 -0
- package/src/storage/ai-usage/types.ts +102 -1
- package/src/storage/ai-usage/usage.ts +2 -0
- package/src/storage/artifacts/in-memory.ts +108 -11
- package/src/storage/artifacts/index.ts +14 -0
- package/src/storage/artifacts/record.ts +203 -1
- package/src/storage/artifacts/types.ts +199 -6
- package/src/storage/executions/validation.ts +2 -2
- package/src/storage/in-memory/index.ts +1 -1
- package/src/storage/index.ts +22 -1
- package/src/storage/internal.ts +9 -0
- package/src/testing/agent-storage-contract.ts +135 -0
- package/src/testing/ai-cost-storage-contract.ts +1 -0
- package/src/testing/ai-usage-storage-contract.ts +145 -1
- package/src/testing/artifact-storage-contract.ts +330 -0
- package/src/testing/execution-storage-contract.ts +10 -2
- package/src/testing/lake-storage-contract.ts +27 -0
- package/src/testing/queues-contract.ts +71 -0
- package/src/testing/sandboxes-contract.ts +50 -0
- package/dist/chunk-3723kgba.js +0 -29
- package/dist/chunk-3723kgba.js.map +0 -10
- package/dist/chunk-3qtk0070.js.map +0 -14
- package/dist/chunk-8ncg20rd.js.map +0 -10
- package/dist/chunk-9vsc919v.js.map +0 -10
- package/dist/chunk-az95tsh3.js.map +0 -11
- package/dist/chunk-c29729me.js.map +0 -12
- package/dist/chunk-d7vyc7k6.js.map +0 -10
- package/dist/chunk-de5sfbc3.js +0 -3
- package/dist/chunk-f05994as.js.map +0 -10
- package/dist/chunk-gfdh9kqa.js.map +0 -11
- package/dist/chunk-jt012fxq.js.map +0 -34
- package/dist/chunk-mbwsgjn7.js.map +0 -11
- package/dist/chunk-nxysqbt0.js.map +0 -10
- package/dist/chunk-qttqe1ah.js.map +0 -24
- package/dist/chunk-sgx82nnt.js.map +0 -10
- package/dist/chunk-vs2s3p8n.js +0 -2274
- package/dist/chunk-vs2s3p8n.js.map +0 -20
- package/dist/chunk-wkv3h3q7.js.map +0 -12
- package/dist/chunk-wzcjhv54.js.map +0 -11
- package/dist/chunk-xtztwpkh.js.map +0 -12
- package/dist/chunk-ym1bqd98.js.map +0 -19
- /package/dist/{chunk-7mhbs9yy.js.map → chunk-1z8ccj53.js.map} +0 -0
- /package/dist/{chunk-dmnd9ea6.js.map → chunk-30a0ftnm.js.map} +0 -0
- /package/dist/{chunk-qbd282aa.js.map → chunk-39q9ybav.js.map} +0 -0
- /package/dist/{chunk-bcz9dxtf.js.map → chunk-3x902cja.js.map} +0 -0
- /package/dist/{chunk-c4nrycdy.js.map → chunk-4q4a5a96.js.map} +0 -0
- /package/dist/{chunk-ykchk644.js.map → chunk-4w8qzy9w.js.map} +0 -0
- /package/dist/{chunk-kft7mp7z.js.map → chunk-5xkqasvn.js.map} +0 -0
- /package/dist/{chunk-xavet0qs.js.map → chunk-6whr25gw.js.map} +0 -0
- /package/dist/{chunk-ygvay56w.js.map → chunk-896te58g.js.map} +0 -0
- /package/dist/{chunk-pqj8vff9.js.map → chunk-8eqqqc1h.js.map} +0 -0
- /package/dist/{chunk-jka26v8c.js.map → chunk-8x1bsp68.js.map} +0 -0
- /package/dist/{chunk-fmgf9h5e.js.map → chunk-9az7kjv4.js.map} +0 -0
- /package/dist/{chunk-bs1sd0e0.js.map → chunk-9p7kyeqz.js.map} +0 -0
- /package/dist/{chunk-brybqw5k.js.map → chunk-bkxm2dzx.js.map} +0 -0
- /package/dist/{chunk-ppxf7gw2.js.map → chunk-d7t9jnym.js.map} +0 -0
- /package/dist/{chunk-cg7cygfj.js.map → chunk-fdmvaz7x.js.map} +0 -0
- /package/dist/{chunk-191jz8a6.js.map → chunk-ff0qdk7z.js.map} +0 -0
- /package/dist/{chunk-wx7smkn2.js.map → chunk-fq8drkp0.js.map} +0 -0
- /package/dist/{chunk-v8a1qjzp.js.map → chunk-hpswfrjj.js.map} +0 -0
- /package/dist/{chunk-bz5bnjjt.js.map → chunk-jjte0h4p.js.map} +0 -0
- /package/dist/{chunk-xrmbhap8.js.map → chunk-mwg0nwkb.js.map} +0 -0
- /package/dist/{chunk-a3faa34j.js.map → chunk-nfjt8k8j.js.map} +0 -0
- /package/dist/{chunk-394zjzjs.js.map → chunk-nhgqz3g3.js.map} +0 -0
- /package/dist/{chunk-92wrka15.js.map → chunk-q150fnj9.js.map} +0 -0
- /package/dist/{chunk-w3t94hm6.js.map → chunk-qk3zq25v.js.map} +0 -0
- /package/dist/{chunk-6hfbz4d0.js.map → chunk-r588h4ev.js.map} +0 -0
- /package/dist/{chunk-5qqmndhm.js.map → chunk-szzhrn3e.js.map} +0 -0
- /package/dist/{chunk-n1hbwc6y.js.map → chunk-t6pfch4e.js.map} +0 -0
- /package/dist/{chunk-brhp9d97.js.map → chunk-vmqjndb3.js.map} +0 -0
- /package/dist/{chunk-5sswe5ej.js.map → chunk-wsv23wvr.js.map} +0 -0
- /package/dist/{chunk-90nqenq8.js.map → chunk-x0hqc54n.js.map} +0 -0
- /package/dist/{chunk-3neam1y5.js.map → chunk-y3qb965a.js.map} +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { FileRef } from "../../blob-storage/types"
|
|
2
|
+
import type { JsonValue, ReadonlyJsonValue } from "../../json"
|
|
3
|
+
import type { ModelDefinition } from "../definitions"
|
|
4
|
+
import type { ModelProviderIds, ModelRoute, ModelUsage } from "../events"
|
|
5
|
+
import type { ModelCallCost, ModelCostEstimator, ModelMoney, ModelReportedCost } from "../pricing"
|
|
6
|
+
import type { ModelPricingDimensions, ModelRateCard } from "../rate-card"
|
|
7
|
+
|
|
8
|
+
/** Serializable facts about one video model. Omitted lists mean the provider publishes none. */
|
|
9
|
+
export interface VideoModelDefinition extends ModelDefinition {
|
|
10
|
+
readonly kind: "video"
|
|
11
|
+
readonly maxVideosPerCall?: number
|
|
12
|
+
/** Accepted frame sizes, such as `1280x720`. */
|
|
13
|
+
readonly resolutions?: readonly string[]
|
|
14
|
+
readonly aspectRatios?: readonly string[]
|
|
15
|
+
/** Accepted lengths, in whole seconds. */
|
|
16
|
+
readonly durations?: readonly number[]
|
|
17
|
+
/** Whether the model can make sound with the picture. */
|
|
18
|
+
readonly audio?: boolean
|
|
19
|
+
/** Images a clip starts from, ends on or takes after; omitted when the model takes none. */
|
|
20
|
+
readonly inputImages?: {
|
|
21
|
+
readonly maxCount: number
|
|
22
|
+
/** Bounds memory consumption before a file is opened. Providers may impose lower limits. */
|
|
23
|
+
readonly maxBytes: number
|
|
24
|
+
readonly mediaTypes?: readonly string[]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Video bytes with the media type the provider resolved. */
|
|
29
|
+
export interface VideoData {
|
|
30
|
+
readonly data: Uint8Array
|
|
31
|
+
readonly mediaType: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* An input image: a URL the provider fetches itself, which keeps a start request small, or its
|
|
36
|
+
* bytes when Sixb cannot issue a URL the provider can reach.
|
|
37
|
+
*/
|
|
38
|
+
export type VideoInputImage =
|
|
39
|
+
| { readonly url: string; readonly mediaType: string }
|
|
40
|
+
| { readonly data: Uint8Array; readonly mediaType: string }
|
|
41
|
+
|
|
42
|
+
export interface VideoModelRequest {
|
|
43
|
+
/** Stable for the call: a provider deduplicates a retried start on it. */
|
|
44
|
+
readonly callId: string
|
|
45
|
+
readonly prompt: string
|
|
46
|
+
readonly n: number
|
|
47
|
+
readonly durationSeconds?: number
|
|
48
|
+
readonly resolution?: string
|
|
49
|
+
readonly aspectRatio?: string
|
|
50
|
+
readonly audio?: boolean
|
|
51
|
+
readonly seed?: number
|
|
52
|
+
readonly firstFrame?: VideoInputImage
|
|
53
|
+
readonly lastFrame?: VideoInputImage
|
|
54
|
+
readonly referenceImages: readonly VideoInputImage[]
|
|
55
|
+
readonly signal?: AbortSignal
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface VideoModelResponseMetadata {
|
|
59
|
+
readonly usage?: ModelUsage
|
|
60
|
+
readonly providerIds?: ModelProviderIds
|
|
61
|
+
readonly responseModelId?: string
|
|
62
|
+
readonly reportedCost?: ModelReportedCost
|
|
63
|
+
readonly route?: ModelRoute
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** A generation the provider accepted. */
|
|
67
|
+
export interface VideoModelStart {
|
|
68
|
+
/** The provider's handle on the job, kept as JSON until the job ends. */
|
|
69
|
+
readonly operation: JsonValue
|
|
70
|
+
/** The price variant the provider bills the job at, such as `{ resolution: "720p" }`. */
|
|
71
|
+
readonly pricingDimensions?: ModelPricingDimensions
|
|
72
|
+
/** Provider notes about the request, such as a setting it ignored. */
|
|
73
|
+
readonly warnings?: readonly string[]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** One look at a started generation. */
|
|
77
|
+
export type VideoModelStatus =
|
|
78
|
+
| { readonly status: "pending" }
|
|
79
|
+
| (VideoModelResponseMetadata & {
|
|
80
|
+
readonly status: "completed"
|
|
81
|
+
readonly output: { readonly videos: readonly VideoData[] }
|
|
82
|
+
readonly warnings?: readonly string[]
|
|
83
|
+
})
|
|
84
|
+
| (VideoModelResponseMetadata & {
|
|
85
|
+
readonly status: "failed"
|
|
86
|
+
/** What the provider said went wrong, for the person who asked. */
|
|
87
|
+
readonly error: string
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
export interface VideoReservationInput {
|
|
91
|
+
readonly n: number
|
|
92
|
+
/** Absent when the request leaves the length to the model. */
|
|
93
|
+
readonly durationSeconds?: number
|
|
94
|
+
readonly resolution?: string
|
|
95
|
+
readonly audio?: boolean
|
|
96
|
+
/** UTF-8 bytes of the prompt divided by four, rounded up. */
|
|
97
|
+
readonly promptTokens: number
|
|
98
|
+
readonly inputImages: number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface VideoCostEstimator extends Pick<ModelCostEstimator, "estimate"> {
|
|
102
|
+
/** Return undefined if the request cannot be priced safely before inference. */
|
|
103
|
+
estimateReservation?(input: VideoReservationInput): ModelMoney | undefined
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Provider binding. Resolving it may fetch metadata, but must never perform inference. A video
|
|
108
|
+
* takes minutes, so a generation is started, then checked until it ends.
|
|
109
|
+
*/
|
|
110
|
+
export interface VideoModel {
|
|
111
|
+
readonly providerId: string
|
|
112
|
+
readonly modelId: string
|
|
113
|
+
readonly definition: VideoModelDefinition
|
|
114
|
+
readonly costEstimator?: VideoCostEstimator
|
|
115
|
+
/**
|
|
116
|
+
* The prices this binding bills by, for people and agents choosing a model. Pricing itself
|
|
117
|
+
* goes through costEstimator; absent when the price is unknown.
|
|
118
|
+
*/
|
|
119
|
+
readonly rateCard?: ModelRateCard
|
|
120
|
+
resolve?(): Promise<VideoModel>
|
|
121
|
+
/** Returns as soon as the provider accepts the job. */
|
|
122
|
+
start(request: VideoModelRequest): Promise<VideoModelStart>
|
|
123
|
+
/**
|
|
124
|
+
* One look at a started job. A job the provider failed is `failed`; a failure to ask, such as
|
|
125
|
+
* a network error, is thrown and leaves the job running.
|
|
126
|
+
*/
|
|
127
|
+
status(input: {
|
|
128
|
+
readonly operation: ReadonlyJsonValue
|
|
129
|
+
readonly signal?: AbortSignal
|
|
130
|
+
}): Promise<VideoModelStatus>
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface VideoGenerateInput {
|
|
134
|
+
readonly prompt: string
|
|
135
|
+
/** Defaults to 1. */
|
|
136
|
+
readonly n?: number
|
|
137
|
+
/** In whole seconds. Omitted, the model picks its default length. */
|
|
138
|
+
readonly duration?: number
|
|
139
|
+
/** A frame size, such as `1280x720`. */
|
|
140
|
+
readonly resolution?: string
|
|
141
|
+
readonly aspectRatio?: string
|
|
142
|
+
/** Whether to make sound with the picture, where the model can. */
|
|
143
|
+
readonly audio?: boolean
|
|
144
|
+
readonly seed?: number
|
|
145
|
+
/** The image the clip starts from. */
|
|
146
|
+
readonly firstFrame?: FileRef
|
|
147
|
+
/** The image the clip ends on. */
|
|
148
|
+
readonly lastFrame?: FileRef
|
|
149
|
+
/** Images of the characters, objects or style the clip should show. */
|
|
150
|
+
readonly referenceImages?: readonly FileRef[]
|
|
151
|
+
/** One of `models.video`, which later checks find it in. Defaults to the first. */
|
|
152
|
+
readonly model?: VideoModel
|
|
153
|
+
readonly signal?: AbortSignal
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type VideoGenerationStatus = "pending" | "completed" | "failed"
|
|
157
|
+
|
|
158
|
+
/** A video generation, as far as it got. */
|
|
159
|
+
export interface VideoGeneration {
|
|
160
|
+
readonly callId: string
|
|
161
|
+
readonly model: { readonly providerId: string; readonly modelId: string }
|
|
162
|
+
readonly status: VideoGenerationStatus
|
|
163
|
+
/** Generated videos, already written to blob storage; empty until the generation completes. */
|
|
164
|
+
readonly files: readonly FileRef[]
|
|
165
|
+
readonly warnings: readonly string[]
|
|
166
|
+
/** What the provider said went wrong, once the generation failed. */
|
|
167
|
+
readonly error?: string
|
|
168
|
+
/** Present once the generation ended. */
|
|
169
|
+
readonly usage?: ModelUsage
|
|
170
|
+
readonly cost?: ModelCallCost
|
|
171
|
+
readonly createdAt: Date
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface VideoGenerateResult {
|
|
175
|
+
/** Generated videos, already written to blob storage. */
|
|
176
|
+
readonly files: readonly FileRef[]
|
|
177
|
+
readonly warnings: readonly string[]
|
|
178
|
+
readonly usage: ModelUsage
|
|
179
|
+
readonly cost: ModelCallCost
|
|
180
|
+
readonly callId: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface VideoModelsRuntime {
|
|
184
|
+
/** Generate and wait for the videos: minutes, for most models. */
|
|
185
|
+
generate(input: VideoGenerateInput): Promise<VideoGenerateResult>
|
|
186
|
+
/** Start a generation and return at once; `get` follows it. */
|
|
187
|
+
start(input: VideoGenerateInput): Promise<VideoGeneration>
|
|
188
|
+
/**
|
|
189
|
+
* Where a generation stands, checking with the provider while it runs; the check that sees it
|
|
190
|
+
* end stores the videos and records the call. Null when the call is unknown or hidden: it is
|
|
191
|
+
* as visible as the run that started it.
|
|
192
|
+
*/
|
|
193
|
+
get(callId: string): Promise<VideoGeneration | null>
|
|
194
|
+
}
|
package/src/objects/execution.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { shareActionRunExecutor } from "../actions/run/executor"
|
|
2
|
+
import { shareCallerArtifacts } from "../artifacts/caller"
|
|
2
3
|
import type { BlobStorage } from "../blob-storage"
|
|
3
4
|
import { shareSixbErrorReporter } from "../error-reporting/capability"
|
|
4
5
|
import type { ExecutionContext } from "../execution"
|
|
@@ -179,6 +180,7 @@ export function createObjectsRuntime(
|
|
|
179
180
|
shareOntologyMutationRuntime(runtime, capturedRuntime)
|
|
180
181
|
shareSixbErrorReporter(runtime, capturedRuntime)
|
|
181
182
|
shareActionRunExecutor(runtime, capturedRuntime)
|
|
183
|
+
shareCallerArtifacts(runtime, capturedRuntime)
|
|
182
184
|
Object.freeze(capturedRuntime)
|
|
183
185
|
const ontologyView = () => getAuthorizedOntologyView(objectReader)
|
|
184
186
|
const objects = Object.assign(
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import type { ActionDefinition } from "../../actions"
|
|
8
8
|
import { shareActionRunExecutor } from "../../actions/run/executor"
|
|
9
|
+
import { shareCallerArtifacts } from "../../artifacts/caller"
|
|
9
10
|
import type { AuthorizationContext } from "../../authorization"
|
|
10
11
|
import type { BlobStorage } from "../../blob-storage"
|
|
11
12
|
import { shareSixbErrorReporter } from "../../error-reporting/capability"
|
|
@@ -95,6 +96,7 @@ export function createObjectSet<TObjectType extends ObjectTypeWithPropertyTokens
|
|
|
95
96
|
shareOntologyMutationRuntime(params, resolvedCtx)
|
|
96
97
|
shareSixbErrorReporter(params, resolvedCtx)
|
|
97
98
|
shareActionRunExecutor(params, resolvedCtx)
|
|
99
|
+
shareCallerArtifacts(params, resolvedCtx)
|
|
98
100
|
|
|
99
101
|
const objectSet = {
|
|
100
102
|
get: async (id: string) => {
|
package/src/queues/index.ts
CHANGED
|
@@ -16,12 +16,17 @@ export { QueueError } from "./errors"
|
|
|
16
16
|
export { InMemoryQueues } from "./in-memory"
|
|
17
17
|
export type {
|
|
18
18
|
AgentAiUsageRecordRequestedQueueJob,
|
|
19
|
+
AgentModelCallCheckRequestedQueueJob,
|
|
19
20
|
AgentQueueJob,
|
|
20
21
|
AgentQueueJobFailureCode,
|
|
21
22
|
AgentRunRequestedQueueJob,
|
|
22
23
|
AgentWorkflowNodeRequestedQueueJob,
|
|
24
|
+
ArtifactMediaRequestedQueueJob,
|
|
23
25
|
ArtifactPdfRequestedQueueJob,
|
|
24
26
|
ArtifactPreviewsRequestedQueueJob,
|
|
27
|
+
ArtifactVideoExportRequestedQueueJob,
|
|
28
|
+
ArtifactVideoSegmentRequestedQueueJob,
|
|
29
|
+
ArtifactVideoStillsRequestedQueueJob,
|
|
25
30
|
ClaimedQueueJob,
|
|
26
31
|
DatasetIngestFlushRequestedQueueJob,
|
|
27
32
|
LakeQueueJob,
|
package/src/queues/types.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { VideoOutline } from "../artifacts/outline"
|
|
2
|
+
import type { VideoMediaFile, VideoSegment } from "../artifacts/video/export"
|
|
1
3
|
import type { FileRef } from "../blob-storage/types"
|
|
2
4
|
import type { SixbErrorCode, SixbFailure } from "../errors/types"
|
|
3
5
|
import type { JsonValue } from "../json"
|
|
@@ -8,6 +10,7 @@ import type {
|
|
|
8
10
|
import type { ProjectionRunFailureCode } from "../projections/types"
|
|
9
11
|
import type { ProviderScope } from "../provider-scope"
|
|
10
12
|
import type { AgentRunFailureCode } from "../storage/agents/types"
|
|
13
|
+
import type { ArtifactFile, ArtifactReference } from "../storage/artifacts/types"
|
|
11
14
|
import type { PipelineRunFailureCode } from "../storage/pipeline-runs/types"
|
|
12
15
|
import type { SyncRunFailureCode } from "../storage/sync-runs/types"
|
|
13
16
|
import type { WorkflowRunFailureCode } from "../storage/workflow-runs/types"
|
|
@@ -241,10 +244,24 @@ export interface ArtifactPdfRequestedQueueJob
|
|
|
241
244
|
}
|
|
242
245
|
> {}
|
|
243
246
|
|
|
247
|
+
/**
|
|
248
|
+
* A model call the provider keeps running after its request, such as a video generation: the
|
|
249
|
+
* agent worker checks on it until it ends, so it settles even when no client asks again. One job
|
|
250
|
+
* per call.
|
|
251
|
+
*/
|
|
252
|
+
export interface AgentModelCallCheckRequestedQueueJob
|
|
253
|
+
extends QueueJob<
|
|
254
|
+
"agent.model-call.check.requested",
|
|
255
|
+
{
|
|
256
|
+
readonly callId: string
|
|
257
|
+
}
|
|
258
|
+
> {}
|
|
259
|
+
|
|
244
260
|
export type AgentQueueJob =
|
|
245
261
|
| AgentRunRequestedQueueJob
|
|
246
262
|
| AgentWorkflowNodeRequestedQueueJob
|
|
247
263
|
| AgentAiUsageRecordRequestedQueueJob
|
|
264
|
+
| AgentModelCallCheckRequestedQueueJob
|
|
248
265
|
|
|
249
266
|
/** Internal lane hosted by ProjectionWorker. */
|
|
250
267
|
export type VectorIndexingQueueJob = QueueJob<
|
|
@@ -298,8 +315,111 @@ export interface ArtifactPreviewsRequestedQueueJob
|
|
|
298
315
|
}
|
|
299
316
|
> {}
|
|
300
317
|
|
|
301
|
-
/**
|
|
302
|
-
|
|
318
|
+
/**
|
|
319
|
+
* A video or a sound was published that nothing has been derived from yet: the render worker
|
|
320
|
+
* derives its proxy, poster, filmstrip, peaks, cuts and transcript in a blank sandbox of the
|
|
321
|
+
* project. One job per digest, so a file published again asks nothing more.
|
|
322
|
+
*/
|
|
323
|
+
export interface ArtifactMediaRequestedQueueJob
|
|
324
|
+
extends QueueJob<
|
|
325
|
+
"artifact.media.requested",
|
|
326
|
+
{
|
|
327
|
+
/** The original, which the sandbox fetches by a download URL. */
|
|
328
|
+
readonly file: FileRef
|
|
329
|
+
}
|
|
330
|
+
> {}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Someone asked for a video version's MP4: the render worker assembles it once each of its
|
|
334
|
+
* segments is rendered, asking for those still missing and looking again a few seconds later. One
|
|
335
|
+
* job per export, by its key. It carries what the version held when asked, so it renders that
|
|
336
|
+
* whatever the version holds since.
|
|
337
|
+
*/
|
|
338
|
+
export interface ArtifactVideoExportRequestedQueueJob
|
|
339
|
+
extends QueueJob<
|
|
340
|
+
"artifact.video.export.requested",
|
|
341
|
+
{
|
|
342
|
+
readonly artifactId: string
|
|
343
|
+
readonly version: number
|
|
344
|
+
/** What the export is made of, as `videoExportPlan` hashes it. */
|
|
345
|
+
readonly key: string
|
|
346
|
+
readonly outline: VideoOutline
|
|
347
|
+
readonly files: readonly ArtifactFile[]
|
|
348
|
+
readonly references: readonly ArtifactReference[]
|
|
349
|
+
/** What its `artifact:` addresses resolved to, as whoever asked reads them. */
|
|
350
|
+
readonly media: readonly VideoMediaFile[]
|
|
351
|
+
/**
|
|
352
|
+
* When it was asked for, as ISO, or retried since: past `VIDEO_EXPORT_JOB.waitMs`, it gives
|
|
353
|
+
* up.
|
|
354
|
+
*/
|
|
355
|
+
readonly askedAt: string
|
|
356
|
+
/**
|
|
357
|
+
* Asked again after a failure, in a job apart from the export's: it asks anew for each
|
|
358
|
+
* segment still missing, then has the export look at once.
|
|
359
|
+
*/
|
|
360
|
+
readonly retry?: boolean
|
|
361
|
+
/** Its segments are asked for: it looks again whether they are rendered, asking nothing. */
|
|
362
|
+
readonly waiting?: boolean
|
|
363
|
+
}
|
|
364
|
+
> {}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* An export needs one of its segments: the render worker renders a scene's frames alone, or mixes
|
|
368
|
+
* the whole video's sound, in a blank sandbox of the project. One job per segment, by its key, so
|
|
369
|
+
* exports that share one render it once.
|
|
370
|
+
*/
|
|
371
|
+
export interface ArtifactVideoSegmentRequestedQueueJob
|
|
372
|
+
extends QueueJob<
|
|
373
|
+
"artifact.video.segment.requested",
|
|
374
|
+
{
|
|
375
|
+
/** The export's artifact and version, which name it in logs and its download URLs. */
|
|
376
|
+
readonly artifactId: string
|
|
377
|
+
readonly version: number
|
|
378
|
+
readonly key: string
|
|
379
|
+
readonly segment: VideoSegment
|
|
380
|
+
/** The video's frame, rate and length, which bound how long it may take. */
|
|
381
|
+
readonly video: Pick<VideoOutline, "width" | "height" | "fps" | "durationMs">
|
|
382
|
+
/**
|
|
383
|
+
* The files it renders from, as the version held them when the export was asked for. A
|
|
384
|
+
* scene's are those its frames are made of, its `index.html` keeping its scenes alone.
|
|
385
|
+
*/
|
|
386
|
+
readonly files: readonly ArtifactFile[]
|
|
387
|
+
readonly media: readonly VideoMediaFile[]
|
|
388
|
+
/** A scene's frames in that project: from `from`, up to `to`. */
|
|
389
|
+
readonly frames?: { readonly from: number; readonly to: number }
|
|
390
|
+
/**
|
|
391
|
+
* The export that asked for it, as it asked: once the segment is kept, or why it could not
|
|
392
|
+
* be, that export looks again at once. Others that share the segment look on their own.
|
|
393
|
+
*/
|
|
394
|
+
readonly waitingExport?: ArtifactVideoExportRequestedQueueJob["payload"]
|
|
395
|
+
}
|
|
396
|
+
> {}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* A video version's scenes miss their stills: the render worker snapshots each at its middle in a
|
|
400
|
+
* blank sandbox of the project. One job per artifact, which each write that asks replaces.
|
|
401
|
+
*/
|
|
402
|
+
export interface ArtifactVideoStillsRequestedQueueJob
|
|
403
|
+
extends QueueJob<
|
|
404
|
+
"artifact.video.stills.requested",
|
|
405
|
+
{
|
|
406
|
+
readonly artifactId: string
|
|
407
|
+
readonly version: number
|
|
408
|
+
/** When the version's content was written as asked for: once written again, it renders nothing. */
|
|
409
|
+
readonly updatedAt: string
|
|
410
|
+
/** What its `artifact:` addresses resolved to, as its publisher reads them. */
|
|
411
|
+
readonly media: readonly VideoMediaFile[]
|
|
412
|
+
}
|
|
413
|
+
> {}
|
|
414
|
+
|
|
415
|
+
/** What renders in a sandbox of the project: RenderWorker consumes it. */
|
|
416
|
+
export type RenderQueueJob =
|
|
417
|
+
| ArtifactPdfRequestedQueueJob
|
|
418
|
+
| ArtifactPreviewsRequestedQueueJob
|
|
419
|
+
| ArtifactMediaRequestedQueueJob
|
|
420
|
+
| ArtifactVideoExportRequestedQueueJob
|
|
421
|
+
| ArtifactVideoSegmentRequestedQueueJob
|
|
422
|
+
| ArtifactVideoStillsRequestedQueueJob
|
|
303
423
|
|
|
304
424
|
export interface Queues {
|
|
305
425
|
readonly vectorIndexing: Queue<
|
|
@@ -313,9 +433,10 @@ export interface Queues {
|
|
|
313
433
|
*/
|
|
314
434
|
readonly lake: Queue<LakeQueueJob, "internal.unexpected" | "runtime.cancelled">
|
|
315
435
|
/**
|
|
316
|
-
* What the framework renders in a
|
|
317
|
-
*
|
|
318
|
-
*
|
|
436
|
+
* What the framework renders in a sandbox of the project: a designed document's PDF, the
|
|
437
|
+
* pictures of a canvas's boards, what is derived of a video or a sound, and a video's stills and
|
|
438
|
+
* MP4. RenderWorker
|
|
439
|
+
* consumes this lane, so a render never waits behind an agent's run or takes its slot.
|
|
319
440
|
*/
|
|
320
441
|
readonly renders: Queue<RenderQueueJob, "internal.unexpected" | "runtime.cancelled">
|
|
321
442
|
readonly syncRuns: Queue<SyncRunRequestedQueueJob, SyncQueueJobFailureCode>
|
package/src/runtime/create.ts
CHANGED
|
@@ -175,6 +175,7 @@ export async function createSixb<const TParams extends ParamsConfig = ParamsConf
|
|
|
175
175
|
ontologyDocs: { modules: discoveredOntology.modules, ...ontologyFiles },
|
|
176
176
|
},
|
|
177
177
|
shares: [...(options.shares ?? []), ...definitions.shares],
|
|
178
|
+
definitionFolders: { ...definitions.folders, objectTypes: discoveredOntology.folders },
|
|
178
179
|
auth: options.auth,
|
|
179
180
|
})
|
|
180
181
|
}
|
|
@@ -38,6 +38,31 @@ export interface SixbDefinitions {
|
|
|
38
38
|
readonly shares: DefinitionCatalog<ShareDefinition>
|
|
39
39
|
readonly syncs: DefinitionCatalog<SyncDefinition>
|
|
40
40
|
readonly workflows: DefinitionCatalog<WorkflowDefinition>
|
|
41
|
+
/** Where each discovered definition sits inside its directory, for browsing them by folder. */
|
|
42
|
+
readonly folders: DefinitionFolderIndex
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The definition families whose folders are kept, named as their `SixbDefinitions` catalogs. */
|
|
46
|
+
export type DefinitionFolderFamily =
|
|
47
|
+
| "actions"
|
|
48
|
+
| "connectors"
|
|
49
|
+
| "datasets"
|
|
50
|
+
| "objectTypes"
|
|
51
|
+
| "pipelines"
|
|
52
|
+
| "projections"
|
|
53
|
+
| "rules"
|
|
54
|
+
| "syncs"
|
|
55
|
+
| "workflows"
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Each family's folders by definition id, as POSIX paths below the family's directory:
|
|
59
|
+
* `datasets/raw/erp/orders.ts` puts every dataset it exports in `raw/erp`. Folders only arrange
|
|
60
|
+
* definitions for people browsing them; ids stay unique across the whole project, so moving a file
|
|
61
|
+
* renames nothing. A definition at the top of its directory, or passed to createSixb() directly,
|
|
62
|
+
* has none.
|
|
63
|
+
*/
|
|
64
|
+
export type DefinitionFolderIndex = {
|
|
65
|
+
readonly [TFamily in DefinitionFolderFamily]?: ReadonlyMap<string, string>
|
|
41
66
|
}
|
|
42
67
|
|
|
43
68
|
/** Build a read-only catalog over an already validated definition index. */
|
package/src/runtime/host.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
createAgentApprovalExecutor,
|
|
15
15
|
registerAgentApprovalExecutor,
|
|
16
16
|
} from "../agents/approval-executor"
|
|
17
|
+
import { createMediaTranscriber, registerMediaTranscriber } from "../artifacts/media/transcriber"
|
|
17
18
|
import {
|
|
18
19
|
AuthRuntime,
|
|
19
20
|
AuthRuntimeError,
|
|
@@ -129,7 +130,7 @@ import { createSyncConnections, registerSyncConnections } from "../syncs/connect
|
|
|
129
130
|
import type { RegisteredWebhook } from "../webhooks"
|
|
130
131
|
import { WebhookRegistry, WebhookValidationError } from "../webhooks"
|
|
131
132
|
import type { WorkflowDefinition } from "../workflows"
|
|
132
|
-
import type { SixbDefinitions } from "./definitions"
|
|
133
|
+
import type { DefinitionFolderIndex, SixbDefinitions } from "./definitions"
|
|
133
134
|
import { RuntimeError } from "./errors"
|
|
134
135
|
import { canonicalLocale, DEFAULT_PROJECT_LOCALE, DEFAULT_PROJECT_TIME_ZONE } from "./locale"
|
|
135
136
|
import {
|
|
@@ -190,6 +191,8 @@ export interface SixbHostOptions<in out TParams extends ParamsConfig = ParamsCon
|
|
|
190
191
|
roles?: readonly RoleDefinition[]
|
|
191
192
|
membershipPolicies?: readonly MembershipPolicyDefinition[]
|
|
192
193
|
shares?: readonly ShareDefinition[]
|
|
194
|
+
/** The folder each definition sits in below its directory. createSixb() discovers them. */
|
|
195
|
+
definitionFolders?: DefinitionFolderIndex
|
|
193
196
|
auth?: SixbAuthConfig
|
|
194
197
|
}
|
|
195
198
|
|
|
@@ -396,6 +399,8 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
396
399
|
this,
|
|
397
400
|
createVectorIndexingRuntime(this.hostContext, this.materializer)
|
|
398
401
|
)
|
|
402
|
+
// The render worker transcribes the media it derives through this, on the project's budget.
|
|
403
|
+
registerMediaTranscriber(this, createMediaTranscriber(this.hostContext, definitions.models))
|
|
399
404
|
|
|
400
405
|
const lakeRetention = new LakeRetention({
|
|
401
406
|
projectId: this.projectId,
|
package/src/runtime/index.ts
CHANGED
|
@@ -22,7 +22,12 @@ export type { RegisteredWebhook } from "../webhooks"
|
|
|
22
22
|
export { WebhookValidationError } from "../webhooks"
|
|
23
23
|
export type { CreateSixbOptions } from "./create"
|
|
24
24
|
export { createSixb } from "./create"
|
|
25
|
-
export type {
|
|
25
|
+
export type {
|
|
26
|
+
DefinitionCatalog,
|
|
27
|
+
DefinitionFolderFamily,
|
|
28
|
+
DefinitionFolderIndex,
|
|
29
|
+
SixbDefinitions,
|
|
30
|
+
} from "./definitions"
|
|
26
31
|
export { RuntimeError } from "./errors"
|
|
27
32
|
export type { SixbHostOptions, SixbHostView } from "./host"
|
|
28
33
|
export { SixbHost } from "./host"
|
package/src/runtime/internal.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type { ActivityCaptureRuntime } from "../activity/execution"
|
|
2
2
|
export { getActivityCaptureRuntime } from "../activity/execution"
|
|
3
|
+
export type { MediaTranscriber } from "../artifacts/media/transcriber"
|
|
4
|
+
export { findMediaTranscriber } from "../artifacts/media/transcriber"
|
|
3
5
|
export { getConnectorConnectionsRuntime } from "../connectors/connections/capability"
|
|
4
6
|
export type {
|
|
5
7
|
CompleteConnectorAuthorizationInput,
|
|
@@ -35,6 +37,6 @@ export {
|
|
|
35
37
|
registerOntologyMutationRuntime,
|
|
36
38
|
shareOntologyMutationRuntime,
|
|
37
39
|
} from "./ontology-mutations"
|
|
38
|
-
export { setApiPublicOrigin } from "./public-origin"
|
|
40
|
+
export { getApiPublicOrigin, setApiPublicOrigin } from "./public-origin"
|
|
39
41
|
export { bindScript } from "./script"
|
|
40
42
|
export type { SixbHostContext, SixbRuntimeContext } from "./types"
|
|
@@ -37,7 +37,11 @@ import {
|
|
|
37
37
|
} from "../syncs/validation"
|
|
38
38
|
import type { WorkflowDefinition } from "../workflows"
|
|
39
39
|
import { validateWorkflowAgentStepGroupReferences, validateWorkflowsAtStartup } from "../workflows"
|
|
40
|
-
import {
|
|
40
|
+
import {
|
|
41
|
+
createDefinitionCatalog,
|
|
42
|
+
type DefinitionFolderIndex,
|
|
43
|
+
type SixbDefinitions,
|
|
44
|
+
} from "./definitions"
|
|
41
45
|
import { RuntimeError } from "./errors"
|
|
42
46
|
import type { OntologySource } from "./types"
|
|
43
47
|
|
|
@@ -60,6 +64,7 @@ interface DefinitionOptions {
|
|
|
60
64
|
readonly groups?: readonly GroupDefinition[]
|
|
61
65
|
readonly roles?: readonly RoleDefinition[]
|
|
62
66
|
readonly membershipPolicies?: readonly MembershipPolicyDefinition[]
|
|
67
|
+
readonly definitionFolders?: DefinitionFolderIndex
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
interface ResolvedDefinitions extends SixbDefinitions {
|
|
@@ -245,6 +250,7 @@ export function resolveDefinitions(options: DefinitionOptions): ResolvedDefiniti
|
|
|
245
250
|
shares: createDefinitionCatalog(sharesById),
|
|
246
251
|
syncs: createDefinitionCatalog(syncsById),
|
|
247
252
|
workflows: createDefinitionCatalog(workflowsById),
|
|
253
|
+
folders: Object.freeze({ ...options.definitionFolders }),
|
|
248
254
|
})
|
|
249
255
|
}
|
|
250
256
|
|
package/src/runtime/sixb.ts
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
import type { ActivityService } from "../activity/service"
|
|
9
9
|
import { type AgentRuntime, createAgentRuntime } from "../agents/execution"
|
|
10
10
|
import { type AiUsageRuntime, createAiUsageRuntime } from "../ai-usage"
|
|
11
|
+
import { registerCallerArtifacts } from "../artifacts/caller"
|
|
11
12
|
import { type ArtifactsRuntime, createArtifactsRuntime } from "../artifacts/execution"
|
|
12
13
|
import { type BlobsRuntime, createBlobsRuntime } from "../blob-storage/execution"
|
|
13
14
|
import type { BlobStorage } from "../blob-storage/types"
|
|
@@ -135,6 +136,14 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
135
136
|
execution: ExecutionContext,
|
|
136
137
|
dependencies: SixbDependencies
|
|
137
138
|
): Omit<Sixb<TParams>, "execution"> {
|
|
139
|
+
const artifacts = createArtifactsRuntime(runtime, dependencies.blobStorage, {
|
|
140
|
+
rendersInSandboxes: dependencies.rendersInSandboxes,
|
|
141
|
+
transcribesMedia: dependencies.definitions.models?.audio?.transcription !== undefined,
|
|
142
|
+
})
|
|
143
|
+
// An Action run this caller requests, from `actions` or from an object, reaches artifacts as
|
|
144
|
+
// the caller does.
|
|
145
|
+
registerCallerArtifacts(runtime, artifacts)
|
|
146
|
+
|
|
138
147
|
const actions = createActionsRuntime(runtime, execution)
|
|
139
148
|
const syncConnections = createSyncConnections(dependencies.connectorService)
|
|
140
149
|
const workflows = createWorkflowsRuntime(runtime, execution, dependencies.definitions.workflows)
|
|
@@ -177,9 +186,7 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
177
186
|
projections: createProjectionsRuntime(runtime, dependencies.definitions.projections),
|
|
178
187
|
rules: createRulesRuntime(runtime, dependencies.definitions.rules),
|
|
179
188
|
agent,
|
|
180
|
-
artifacts
|
|
181
|
-
rendersInSandboxes: dependencies.rendersInSandboxes,
|
|
182
|
-
}),
|
|
189
|
+
artifacts,
|
|
183
190
|
models: createModelsRuntime(
|
|
184
191
|
runtime,
|
|
185
192
|
execution,
|
|
@@ -190,7 +197,8 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
190
197
|
canViewWorkflowRun: async (id) => (await workflows.runs.getById(id)) !== null,
|
|
191
198
|
canViewAgentRun: async (id) => (await agent.runs.getById(id)) !== null,
|
|
192
199
|
},
|
|
193
|
-
dependencies.blobStorage
|
|
200
|
+
dependencies.blobStorage,
|
|
201
|
+
dependencies.apiPublicOrigin
|
|
194
202
|
),
|
|
195
203
|
aiUsage: createAiUsageRuntime(runtime, dependencies.definitions.security),
|
|
196
204
|
events: createEventsRuntime(runtime, {
|
package/src/sandboxes/README.md
CHANGED
|
@@ -38,11 +38,21 @@ Factories define environments; threads retain immutable parameters; runs provide
|
|
|
38
38
|
- Confirmed missing/expired state allows one replacement attempt under the current execution fence.
|
|
39
39
|
A durable reset timestamp informs subsequent model calls; conversation history is preserved.
|
|
40
40
|
- Sixb always adds the API, source and auth request origins to a run's network: an omitted policy
|
|
41
|
-
allows
|
|
42
|
-
|
|
41
|
+
allows those and the frame CDNs (`FRAME_CDN_ALLOWLIST`, as render sandboxes reach), a
|
|
42
|
+
restricted one lists what the project adds, CDNs included only when it lists them. `none` fails
|
|
43
|
+
before provisioning. Guest-readable `env` is not a Git credential channel.
|
|
43
44
|
- Request origins are read from the first grant, so renewals must keep to the same origins: a
|
|
44
45
|
provider rejects a credential for an origin the network does not allow.
|
|
45
46
|
|
|
47
|
+
- A save is refused only by an operation that may have reached the VM: a timeout, a reset or no
|
|
48
|
+
answer. A provider throws `SandboxRequestRefusedError` for a request it refused before anything
|
|
49
|
+
ran (an HTTP 4xx, its own validation), and that, like `SandboxNotRunningError`, leaves the
|
|
50
|
+
workspace saveable. A run whose save fails keeps its outcome and its own error, with a
|
|
51
|
+
`workspace_not_saved` diagnostic.
|
|
52
|
+
- Each provider declares `maxCommandTimeout` and caps a longer timeout to it: Vercel refuses more
|
|
53
|
+
than five hours, and a timer fires at once past 2³¹−1 ms (`MAX_TIMER_DELAY_MS`). A background
|
|
54
|
+
command is held for that long at most.
|
|
55
|
+
|
|
46
56
|
## V1 limits
|
|
47
57
|
|
|
48
58
|
Vercel requests can outlive their worker: storage fencing cannot cancel provider-side work.
|
package/src/sandboxes/errors.ts
CHANGED
|
@@ -11,6 +11,16 @@ export class SandboxStateUnavailableError extends SandboxError {
|
|
|
11
11
|
override readonly name = "SandboxStateUnavailableError"
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* The provider refused the request before anything ran: an HTTP 4xx answer, or a request its own
|
|
16
|
+
* validation rejected. Unlike a transport failure, it proves the sandbox did nothing, so a caller
|
|
17
|
+
* may go on as if the call was never made. Its message names why, and is safe to show to the
|
|
18
|
+
* model and the user: it holds nothing a guest command could not already see.
|
|
19
|
+
*/
|
|
20
|
+
export class SandboxRequestRefusedError extends SandboxError {
|
|
21
|
+
override readonly name = "SandboxRequestRefusedError"
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
/** runCommand / stop / destroy called after the sandbox is stopped or destroyed. */
|
|
15
25
|
export class SandboxNotRunningError extends SandboxError {
|
|
16
26
|
override readonly name = "SandboxNotRunningError"
|
|
@@ -25,3 +35,20 @@ export class SandboxTimeoutError extends SandboxError {
|
|
|
25
35
|
export class SandboxIsolationUnavailableError extends SandboxError {
|
|
26
36
|
override readonly name = "SandboxIsolationUnavailableError"
|
|
27
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The longest delay a JavaScript timer holds, in milliseconds: a longer one fires at once. A
|
|
41
|
+
* provider that times its commands with a timer caps their timeouts here.
|
|
42
|
+
*/
|
|
43
|
+
export const MAX_TIMER_DELAY_MS = 2_147_483_647
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A command's timeout within its provider's maximum. Absent or zero stays as it is: the provider's
|
|
47
|
+
* default, or no timeout.
|
|
48
|
+
*/
|
|
49
|
+
export function cappedCommandTimeout(
|
|
50
|
+
timeout: number | undefined,
|
|
51
|
+
maxCommandTimeout: number
|
|
52
|
+
): number | undefined {
|
|
53
|
+
return timeout === undefined || timeout <= 0 ? timeout : Math.min(timeout, maxCommandTimeout)
|
|
54
|
+
}
|