@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
package/src/http/api-routes.ts
CHANGED
|
@@ -328,6 +328,49 @@ export const SIXB_API_ROUTES: readonly SixbApiRoute[] = [
|
|
|
328
328
|
agentApi: true,
|
|
329
329
|
agentEffect: "file",
|
|
330
330
|
},
|
|
331
|
+
// A file past the simple upload's ceiling is uploaded staged, as `sixb files upload` does: its
|
|
332
|
+
// session is the caller's alone, and its content reaches blob storage without the server
|
|
333
|
+
// holding it.
|
|
334
|
+
{
|
|
335
|
+
operationId: "createFileUpload",
|
|
336
|
+
method: "POST",
|
|
337
|
+
path: "/api/files/uploads",
|
|
338
|
+
accessToken: true,
|
|
339
|
+
agentApi: true,
|
|
340
|
+
agentEffect: "file",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
operationId: "uploadFileContent",
|
|
344
|
+
method: "PUT",
|
|
345
|
+
path: "/api/files/uploads/:uploadId/content",
|
|
346
|
+
accessToken: true,
|
|
347
|
+
agentApi: true,
|
|
348
|
+
agentEffect: "file",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
operationId: "signFileUploadPart",
|
|
352
|
+
method: "POST",
|
|
353
|
+
path: "/api/files/uploads/:uploadId/parts/:partNumber",
|
|
354
|
+
accessToken: true,
|
|
355
|
+
agentApi: true,
|
|
356
|
+
agentEffect: "file",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
operationId: "completeFileUpload",
|
|
360
|
+
method: "POST",
|
|
361
|
+
path: "/api/files/uploads/:uploadId/complete",
|
|
362
|
+
accessToken: true,
|
|
363
|
+
agentApi: true,
|
|
364
|
+
agentEffect: "file",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
operationId: "abortFileUpload",
|
|
368
|
+
method: "POST",
|
|
369
|
+
path: "/api/files/uploads/:uploadId/abort",
|
|
370
|
+
accessToken: true,
|
|
371
|
+
agentApi: true,
|
|
372
|
+
agentEffect: "file",
|
|
373
|
+
},
|
|
331
374
|
{
|
|
332
375
|
operationId: "listActionRuns",
|
|
333
376
|
method: "GET",
|
|
@@ -685,6 +728,41 @@ export const SIXB_API_ROUTES: readonly SixbApiRoute[] = [
|
|
|
685
728
|
agentApi: false,
|
|
686
729
|
sharedSession: true,
|
|
687
730
|
},
|
|
731
|
+
{
|
|
732
|
+
operationId: "exportArtifactVideo",
|
|
733
|
+
method: "POST",
|
|
734
|
+
path: "/api/artifacts/:artifactId/versions/:version/video",
|
|
735
|
+
accessToken: true,
|
|
736
|
+
agentApi: true,
|
|
737
|
+
// Rendering changes no artifact: its MP4 and segments are kept under what they are made of,
|
|
738
|
+
// shared by every reader who asks, as a canvas's previews are.
|
|
739
|
+
agentEffect: "read",
|
|
740
|
+
sharedSession: true,
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
operationId: "getArtifactVideo",
|
|
744
|
+
method: "GET",
|
|
745
|
+
path: "/api/artifacts/:artifactId/versions/:version/video",
|
|
746
|
+
accessToken: true,
|
|
747
|
+
agentApi: true,
|
|
748
|
+
sharedSession: true,
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
operationId: "getArtifactVideoStill",
|
|
752
|
+
method: "GET",
|
|
753
|
+
path: "/api/artifacts/:artifactId/versions/:version/scenes/:scene/still",
|
|
754
|
+
accessToken: true,
|
|
755
|
+
agentApi: false,
|
|
756
|
+
sharedSession: true,
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
operationId: "getArtifactVideoPoster",
|
|
760
|
+
method: "GET",
|
|
761
|
+
path: "/api/artifacts/:artifactId/versions/:version/poster",
|
|
762
|
+
accessToken: true,
|
|
763
|
+
agentApi: false,
|
|
764
|
+
sharedSession: true,
|
|
765
|
+
},
|
|
688
766
|
{
|
|
689
767
|
operationId: "getArtifactBoardPreview",
|
|
690
768
|
method: "GET",
|
|
@@ -725,6 +803,30 @@ export const SIXB_API_ROUTES: readonly SixbApiRoute[] = [
|
|
|
725
803
|
agentApi: false,
|
|
726
804
|
sharedSession: true,
|
|
727
805
|
},
|
|
806
|
+
{
|
|
807
|
+
operationId: "getArtifactMedia",
|
|
808
|
+
method: "GET",
|
|
809
|
+
path: "/api/artifacts/:artifactId/versions/:version/media",
|
|
810
|
+
accessToken: true,
|
|
811
|
+
agentApi: true,
|
|
812
|
+
sharedSession: true,
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
operationId: "getArtifactMediaContent",
|
|
816
|
+
method: "GET",
|
|
817
|
+
path: "/api/artifacts/:artifactId/versions/:version/media/content",
|
|
818
|
+
accessToken: true,
|
|
819
|
+
agentApi: true,
|
|
820
|
+
sharedSession: true,
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
operationId: "headArtifactMediaContent",
|
|
824
|
+
method: "HEAD",
|
|
825
|
+
path: "/api/artifacts/:artifactId/versions/:version/media/content",
|
|
826
|
+
accessToken: true,
|
|
827
|
+
agentApi: false,
|
|
828
|
+
sharedSession: true,
|
|
829
|
+
},
|
|
728
830
|
{
|
|
729
831
|
operationId: "searchObjects",
|
|
730
832
|
method: "GET",
|
|
@@ -946,6 +1048,21 @@ export const SIXB_API_ROUTES: readonly SixbApiRoute[] = [
|
|
|
946
1048
|
agentApi: true,
|
|
947
1049
|
agentEffect: "model",
|
|
948
1050
|
},
|
|
1051
|
+
{
|
|
1052
|
+
operationId: "startVideoGeneration",
|
|
1053
|
+
method: "POST",
|
|
1054
|
+
path: "/api/models/video/generations",
|
|
1055
|
+
accessToken: true,
|
|
1056
|
+
agentApi: true,
|
|
1057
|
+
agentEffect: "model",
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
operationId: "getVideoGeneration",
|
|
1061
|
+
method: "GET",
|
|
1062
|
+
path: "/api/models/video/generations/:callId",
|
|
1063
|
+
accessToken: true,
|
|
1064
|
+
agentApi: true,
|
|
1065
|
+
},
|
|
949
1066
|
{
|
|
950
1067
|
operationId: "generateSpeech",
|
|
951
1068
|
method: "POST",
|
package/src/index.ts
CHANGED
|
@@ -635,6 +635,7 @@ export {
|
|
|
635
635
|
SandboxError,
|
|
636
636
|
SandboxIsolationUnavailableError,
|
|
637
637
|
SandboxNotRunningError,
|
|
638
|
+
SandboxRequestRefusedError,
|
|
638
639
|
SandboxTimeoutError,
|
|
639
640
|
} from "./sandboxes"
|
|
640
641
|
|
|
@@ -995,18 +996,20 @@ export type {
|
|
|
995
996
|
AgentThreadView,
|
|
996
997
|
} from "./agents/thread-access"
|
|
997
998
|
export type { ArtifactAccess } from "./artifacts/access"
|
|
998
|
-
export type { ArtifactCommentInput } from "./artifacts/comments"
|
|
999
|
+
export type { ArtifactCommentInput, ArtifactCommentPlaceInput } from "./artifacts/comments"
|
|
999
1000
|
export type { ArtifactRequestErrorCode } from "./artifacts/errors"
|
|
1000
1001
|
export { ArtifactRequestError } from "./artifacts/errors"
|
|
1001
1002
|
export type {
|
|
1002
1003
|
ArtifactContentInput,
|
|
1003
1004
|
ArtifactHolderObject,
|
|
1004
1005
|
ArtifactHolders,
|
|
1006
|
+
ArtifactMedia,
|
|
1005
1007
|
ArtifactPdf,
|
|
1006
1008
|
ArtifactQueryInput,
|
|
1007
1009
|
ArtifactStateRuntime,
|
|
1008
1010
|
ArtifactStateValue,
|
|
1009
1011
|
ArtifactsRuntime,
|
|
1012
|
+
ArtifactVideoExport,
|
|
1010
1013
|
ListArtifactsRuntimeInput,
|
|
1011
1014
|
UpdateArtifactRuntimeInput,
|
|
1012
1015
|
} from "./artifacts/execution"
|
|
@@ -1022,6 +1025,7 @@ export type {
|
|
|
1022
1025
|
ArtifactQuerySchema,
|
|
1023
1026
|
} from "./artifacts/queries"
|
|
1024
1027
|
export type { ArtifactReference } from "./artifacts/references"
|
|
1028
|
+
export type { VideoExportProgress } from "./artifacts/video/export"
|
|
1025
1029
|
export type { ArtifactWarning } from "./artifacts/warnings"
|
|
1026
1030
|
export type { CreateFileDownloadUrlOptions, FileDownloadUrl } from "./blob-storage/download-urls"
|
|
1027
1031
|
export type { BlobsRuntime } from "./blob-storage/execution"
|
|
@@ -1113,6 +1117,8 @@ export type {
|
|
|
1113
1117
|
BatchItemResult,
|
|
1114
1118
|
CreateSixbOptions,
|
|
1115
1119
|
DefinitionCatalog,
|
|
1120
|
+
DefinitionFolderFamily,
|
|
1121
|
+
DefinitionFolderIndex,
|
|
1116
1122
|
FileListPropertyToken,
|
|
1117
1123
|
FilePropertyToken,
|
|
1118
1124
|
ListResult,
|
|
@@ -1325,9 +1331,16 @@ export type {
|
|
|
1325
1331
|
} from "./storage/agents"
|
|
1326
1332
|
export type {
|
|
1327
1333
|
ArtifactFile,
|
|
1334
|
+
ArtifactMediaFilmstrip,
|
|
1335
|
+
ArtifactMediaLack,
|
|
1336
|
+
ArtifactMediaPart,
|
|
1337
|
+
ArtifactMediaPartName,
|
|
1338
|
+
ArtifactMediaParts,
|
|
1339
|
+
ArtifactMediaProbe,
|
|
1328
1340
|
ArtifactOrigin,
|
|
1329
1341
|
ArtifactRecord,
|
|
1330
1342
|
ArtifactVersionRecord,
|
|
1343
|
+
ArtifactVideoRenderLack,
|
|
1331
1344
|
ListArtifactsResult,
|
|
1332
1345
|
ListArtifactVersionsResult,
|
|
1333
1346
|
} from "./storage/artifacts"
|
|
@@ -1425,6 +1438,13 @@ export type {
|
|
|
1425
1438
|
ImageGenerateResult,
|
|
1426
1439
|
ImageModelsRuntime,
|
|
1427
1440
|
} from "./models/image/types"
|
|
1441
|
+
export type {
|
|
1442
|
+
VideoGenerateInput,
|
|
1443
|
+
VideoGenerateResult,
|
|
1444
|
+
VideoGeneration,
|
|
1445
|
+
VideoGenerationStatus,
|
|
1446
|
+
VideoModelsRuntime,
|
|
1447
|
+
} from "./models/video/types"
|
|
1428
1448
|
export type {
|
|
1429
1449
|
ForeignKeyDescriptor,
|
|
1430
1450
|
LinkProjectionDefinition,
|
|
@@ -206,12 +206,6 @@ function mergeDatasetDefinition(
|
|
|
206
206
|
requested: DatasetDefinition,
|
|
207
207
|
addedColumns: readonly DatasetColumnDefinition[]
|
|
208
208
|
): DatasetDefinition {
|
|
209
|
-
assertCompatibleMetadataField(
|
|
210
|
-
requested.id,
|
|
211
|
-
"description",
|
|
212
|
-
existing.description,
|
|
213
|
-
requested.description
|
|
214
|
-
)
|
|
215
209
|
assertCompatibleMetadataField(
|
|
216
210
|
requested.id,
|
|
217
211
|
"partitionBy",
|
|
@@ -237,9 +231,9 @@ function mergeDatasetDefinition(
|
|
|
237
231
|
|
|
238
232
|
function assertCompatibleMetadataField(
|
|
239
233
|
datasetId: string,
|
|
240
|
-
field: "
|
|
241
|
-
existing:
|
|
242
|
-
requested:
|
|
234
|
+
field: "partitionBy",
|
|
235
|
+
existing: readonly string[] | undefined,
|
|
236
|
+
requested: readonly string[] | undefined
|
|
243
237
|
): void {
|
|
244
238
|
if (
|
|
245
239
|
existing === undefined ||
|
|
@@ -19,11 +19,18 @@ import type {
|
|
|
19
19
|
TranscriptionModelResponseMetadata,
|
|
20
20
|
TranscriptionModelResult,
|
|
21
21
|
TranscriptionOutput,
|
|
22
|
+
TranscriptionSegment,
|
|
22
23
|
TranscriptionWord,
|
|
23
24
|
} from "./types"
|
|
24
25
|
|
|
26
|
+
/** What audio calls read of their runtime: who calls, to admit them. */
|
|
27
|
+
export type AudioRuntimeContext = Pick<
|
|
28
|
+
SixbRuntimeContext,
|
|
29
|
+
"projectId" | "runtimeAuthorization" | "authorization"
|
|
30
|
+
>
|
|
31
|
+
|
|
25
32
|
export function createAudioRuntime(
|
|
26
|
-
runtime:
|
|
33
|
+
runtime: AudioRuntimeContext,
|
|
27
34
|
execution: ExecutionContext,
|
|
28
35
|
catalog: ModelCatalog | undefined,
|
|
29
36
|
session: ModelExecutionSession,
|
|
@@ -114,9 +121,20 @@ function transcriptOutput(
|
|
|
114
121
|
|
|
115
122
|
const output = result?.output
|
|
116
123
|
if (typeof output?.text !== "string") throw refuse()
|
|
124
|
+
if (output.language !== undefined && (typeof output.language !== "string" || !output.language)) {
|
|
125
|
+
throw refuse()
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const segments = transcriptSegments(output.segments)
|
|
129
|
+
if (segments === null) throw refuse()
|
|
130
|
+
const described = {
|
|
131
|
+
text: output.text,
|
|
132
|
+
...(segments.length ? { segments } : {}),
|
|
133
|
+
...(output.language ? { language: output.language } : {}),
|
|
134
|
+
}
|
|
117
135
|
|
|
118
136
|
const words: readonly unknown[] | undefined = output.words
|
|
119
|
-
if (words === undefined) return
|
|
137
|
+
if (words === undefined) return described
|
|
120
138
|
if (!Array.isArray(words)) throw refuse()
|
|
121
139
|
|
|
122
140
|
const timed: TranscriptionWord[] = []
|
|
@@ -141,7 +159,34 @@ function transcriptOutput(
|
|
|
141
159
|
}
|
|
142
160
|
|
|
143
161
|
// An empty list says nothing; the absent field is the one way to say "no words".
|
|
144
|
-
return timed.length ? {
|
|
162
|
+
return timed.length ? { ...described, words: timed } : described
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** The segments as they were timed; null when one cannot be trusted, as a word cannot. */
|
|
166
|
+
function transcriptSegments(segments: unknown): TranscriptionSegment[] | null {
|
|
167
|
+
if (segments === undefined) return []
|
|
168
|
+
if (!Array.isArray(segments)) return null
|
|
169
|
+
|
|
170
|
+
const timed: TranscriptionSegment[] = []
|
|
171
|
+
for (const segment of segments) {
|
|
172
|
+
const entry = segment as Partial<TranscriptionSegment> | null | undefined
|
|
173
|
+
if (
|
|
174
|
+
typeof entry?.text !== "string" ||
|
|
175
|
+
!isMillisecond(entry.startMs) ||
|
|
176
|
+
!isMillisecond(entry.endMs) ||
|
|
177
|
+
entry.endMs < entry.startMs ||
|
|
178
|
+
(entry.speaker !== undefined && (typeof entry.speaker !== "string" || !entry.speaker))
|
|
179
|
+
) {
|
|
180
|
+
return null
|
|
181
|
+
}
|
|
182
|
+
timed.push({
|
|
183
|
+
text: entry.text,
|
|
184
|
+
startMs: entry.startMs,
|
|
185
|
+
endMs: entry.endMs,
|
|
186
|
+
...(entry.speaker === undefined ? {} : { speaker: entry.speaker }),
|
|
187
|
+
})
|
|
188
|
+
}
|
|
189
|
+
return timed
|
|
145
190
|
}
|
|
146
191
|
|
|
147
192
|
function isMillisecond(value: unknown): value is number {
|
|
@@ -2,7 +2,6 @@ import { randomUUID } from "node:crypto"
|
|
|
2
2
|
import { assertModelAccess } from "../../authorization"
|
|
3
3
|
import type { BlobStorage } from "../../blob-storage/types"
|
|
4
4
|
import type { ExecutionContext } from "../../execution"
|
|
5
|
-
import type { SixbRuntimeContext } from "../../runtime/types"
|
|
6
5
|
import type { ModelCatalog } from "../catalog"
|
|
7
6
|
import type { ModelCallEndEvent } from "../events"
|
|
8
7
|
import type { AiModelCallRecorder } from "../execution/model-call-recorder"
|
|
@@ -10,6 +9,7 @@ import type { ModelExecutionSession } from "../execution/session"
|
|
|
10
9
|
import { estimateModelCall, type ModelMoney } from "../pricing"
|
|
11
10
|
import { assertSpeechModel } from "./catalog"
|
|
12
11
|
import { SpeechModelResponseError } from "./errors"
|
|
12
|
+
import type { AudioRuntimeContext } from "./runtime"
|
|
13
13
|
import type {
|
|
14
14
|
AudioModelsRuntime,
|
|
15
15
|
AudioSpeakInput,
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
type PreparedRequest = Omit<SpeechModelRequest, "signal">
|
|
24
24
|
|
|
25
25
|
export function createSpeak(
|
|
26
|
-
runtime:
|
|
26
|
+
runtime: AudioRuntimeContext,
|
|
27
27
|
execution: ExecutionContext,
|
|
28
28
|
catalog: ModelCatalog | undefined,
|
|
29
29
|
session: ModelExecutionSession,
|
|
@@ -8,7 +8,10 @@ export interface TranscriptionModelDefinition extends ModelDefinition {
|
|
|
8
8
|
readonly kind: "transcription"
|
|
9
9
|
/** Bounds memory consumption before a file is opened. Providers may impose lower limits. */
|
|
10
10
|
readonly maxInputBytes: number
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Omitted when the provider does not publish a reliable format list. Requests carry registered
|
|
13
|
+
* names, such as `audio/mp4` for a file labelled `audio/x-m4a`, so list those.
|
|
14
|
+
*/
|
|
12
15
|
readonly mediaTypes?: readonly string[]
|
|
13
16
|
}
|
|
14
17
|
|
|
@@ -32,14 +35,32 @@ export interface TranscriptionWord {
|
|
|
32
35
|
readonly speaker?: string
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
/** A stretch of speech the provider timed, such as a sentence, and who said it. */
|
|
39
|
+
export interface TranscriptionSegment {
|
|
40
|
+
readonly text: string
|
|
41
|
+
/** Milliseconds from the start of the audio. */
|
|
42
|
+
readonly startMs: number
|
|
43
|
+
readonly endMs: number
|
|
44
|
+
/** The provider's label for who said it, as on a word. */
|
|
45
|
+
readonly speaker?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
35
48
|
export interface TranscriptionOutput {
|
|
36
49
|
readonly text: string
|
|
37
50
|
/**
|
|
38
51
|
* The words the provider timed, in spoken order. Text alone cannot say who was speaking at
|
|
39
|
-
* 12:04, or where to put the playhead. Absent when the provider
|
|
40
|
-
*
|
|
52
|
+
* 12:04, or where to put the playhead. Absent when the provider times none, or the words of
|
|
53
|
+
* some phrases only: a phrase is never handed on as a word, since a cut on its bounds would
|
|
54
|
+
* fall mid-speech, and a phrase left untimed would read as silence. Fall back on `segments`.
|
|
41
55
|
*/
|
|
42
56
|
readonly words?: readonly TranscriptionWord[]
|
|
57
|
+
/**
|
|
58
|
+
* The stretches the provider timed, in spoken order: sentences for most, each word for some,
|
|
59
|
+
* with who said each where it labels voices. Absent when it returns none.
|
|
60
|
+
*/
|
|
61
|
+
readonly segments?: readonly TranscriptionSegment[]
|
|
62
|
+
/** The language the provider heard, as it names it, such as `en`. */
|
|
63
|
+
readonly language?: string
|
|
43
64
|
}
|
|
44
65
|
|
|
45
66
|
export interface TranscriptionModelResponseMetadata {
|
package/src/models/calls.ts
CHANGED
|
@@ -37,6 +37,35 @@ export function createModelCallsRuntime(
|
|
|
37
37
|
/** The execution reading; it reads what it produced, whoever can see its run. */
|
|
38
38
|
executionId?: string
|
|
39
39
|
): ModelCallsRuntime {
|
|
40
|
+
const canReadCallsOf = createModelCallVisibility(runtime, runs, executionId)
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
async files(callId) {
|
|
44
|
+
if (typeof callId !== "string" || !callId.trim()) {
|
|
45
|
+
throw new TypeError("[SixbModels] A model call ID must be a nonblank string.")
|
|
46
|
+
}
|
|
47
|
+
const record = await runtime.storage.aiUsage?.getModelCallFiles({
|
|
48
|
+
projectId: runtime.projectId,
|
|
49
|
+
callId,
|
|
50
|
+
})
|
|
51
|
+
if (!record) return null
|
|
52
|
+
|
|
53
|
+
const visible = { callId: record.callId, files: record.files, recordedAt: record.recordedAt }
|
|
54
|
+
return (await canReadCallsOf(record.executionId)) ? visible : null
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Whether the caller sees what an execution's model calls produced: the request's own principal,
|
|
61
|
+
* the agent thread's readers, or the action or workflow run's viewers.
|
|
62
|
+
*/
|
|
63
|
+
export function createModelCallVisibility(
|
|
64
|
+
runtime: Pick<SixbRuntimeContext, "projectId" | "runtimeAuthorization" | "storage">,
|
|
65
|
+
runs: ModelCallRunVisibility,
|
|
66
|
+
/** The execution reading; it reads what it produced, whoever can see its run. */
|
|
67
|
+
executionId?: string
|
|
68
|
+
): (callExecutionId: string) => Promise<boolean> {
|
|
40
69
|
const projectId = runtime.projectId
|
|
41
70
|
|
|
42
71
|
async function canRead(execution: ExecutionRecord): Promise<boolean> {
|
|
@@ -77,24 +106,12 @@ export function createModelCallsRuntime(
|
|
|
77
106
|
return false
|
|
78
107
|
}
|
|
79
108
|
|
|
80
|
-
return {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
const record = await runtime.storage.aiUsage?.getModelCallFiles({ projectId, callId })
|
|
86
|
-
if (!record) return null
|
|
87
|
-
|
|
88
|
-
// A workflow's agent step runs as a service account that cannot view its own workflow run,
|
|
89
|
-
// yet must read back the image it just made.
|
|
90
|
-
const visible = { callId: record.callId, files: record.files, recordedAt: record.recordedAt }
|
|
91
|
-
if (record.executionId === executionId) return visible
|
|
109
|
+
return async (callExecutionId) => {
|
|
110
|
+
// A workflow's agent step runs as a service account that cannot view its own workflow run,
|
|
111
|
+
// yet must read back the image it just made.
|
|
112
|
+
if (callExecutionId === executionId) return true
|
|
92
113
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
id: record.executionId,
|
|
96
|
-
})
|
|
97
|
-
return execution && (await canRead(execution)) ? visible : null
|
|
98
|
-
},
|
|
114
|
+
const execution = await runtime.storage.executions.getById({ projectId, id: callExecutionId })
|
|
115
|
+
return execution !== null && (await canRead(execution))
|
|
99
116
|
}
|
|
100
117
|
}
|
package/src/models/catalog.ts
CHANGED
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
modelReasoningSupportIssue,
|
|
22
22
|
} from "./language-model"
|
|
23
23
|
import { assertRerankingModel, type RerankingModel } from "./reranking-model"
|
|
24
|
+
import { createVideoCatalog, type VideoModelCatalog } from "./video/catalog"
|
|
25
|
+
import type { VideoModel } from "./video/types"
|
|
24
26
|
import { assertWebSearchModel, type WebSearchModel } from "./web-search-model"
|
|
25
27
|
|
|
26
28
|
/** Stable identity of a configured provider binding. */
|
|
@@ -118,6 +120,7 @@ export interface ModelCatalog {
|
|
|
118
120
|
readonly decision?: DecisionModelCatalog
|
|
119
121
|
readonly embedding: EmbeddingModelCatalog
|
|
120
122
|
readonly image?: ImageModelCatalog
|
|
123
|
+
readonly video?: VideoModelCatalog
|
|
121
124
|
readonly reranking?: RerankingModelCatalog
|
|
122
125
|
readonly webSearch?: WebSearchModelCatalog
|
|
123
126
|
}
|
|
@@ -134,6 +137,8 @@ export interface ModelCatalogInput {
|
|
|
134
137
|
readonly embedding?: readonly EmbeddingModel[]
|
|
135
138
|
/** Ordered; the first entry is the default image model. */
|
|
136
139
|
readonly image?: readonly ImageModel[]
|
|
140
|
+
/** Ordered; the first entry is the default video model. */
|
|
141
|
+
readonly video?: readonly VideoModel[]
|
|
137
142
|
/** Available rerankers; no default model and no automatic activation. */
|
|
138
143
|
readonly reranking?: readonly RerankingModel[]
|
|
139
144
|
/**
|
|
@@ -183,6 +188,7 @@ export function createModelCatalog(input: ModelCatalogInput): ModelCatalog {
|
|
|
183
188
|
const decision = createDecisionCatalog(input.decision)
|
|
184
189
|
const audio = createAudioCatalog(input.audio)
|
|
185
190
|
const image = createImageCatalog(input.image)
|
|
191
|
+
const video = createVideoCatalog(input.video)
|
|
186
192
|
const reranking = createRerankingCatalog(input.reranking)
|
|
187
193
|
const webSearch = createWebSearchCatalog(input.webSearch, language)
|
|
188
194
|
|
|
@@ -191,16 +197,17 @@ export function createModelCatalog(input: ModelCatalogInput): ModelCatalog {
|
|
|
191
197
|
!decision &&
|
|
192
198
|
!audio &&
|
|
193
199
|
!image &&
|
|
200
|
+
!video &&
|
|
194
201
|
embedding.list().length === 0 &&
|
|
195
202
|
!reranking?.list().length &&
|
|
196
203
|
!webSearch
|
|
197
204
|
) {
|
|
198
205
|
throw new RuntimeError(
|
|
199
|
-
"[Sixb] Configure at least one language, embedding, decision, audio, image, reranking or web search model."
|
|
206
|
+
"[Sixb] Configure at least one language, embedding, decision, audio, image, video, reranking or web search model."
|
|
200
207
|
)
|
|
201
208
|
}
|
|
202
209
|
|
|
203
|
-
return Object.freeze({ language, embedding, decision, audio, image, reranking, webSearch })
|
|
210
|
+
return Object.freeze({ language, embedding, decision, audio, image, video, reranking, webSearch })
|
|
204
211
|
}
|
|
205
212
|
|
|
206
213
|
function createRerankingCatalog(
|
|
@@ -21,8 +21,9 @@ export const MODEL_KINDS = [
|
|
|
21
21
|
export type ModelKind = (typeof MODEL_KINDS)[number]
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* @internal Kinds billed per audio second, search, image or
|
|
25
|
-
* report no tokens. Token limits skip them, and a missing token count from one
|
|
24
|
+
* @internal Kinds billed per audio second, search, image, character or second of video, whose
|
|
25
|
+
* providers mostly report no tokens. Token limits skip them, and a missing token count from one
|
|
26
|
+
* is not a gap.
|
|
26
27
|
*/
|
|
27
28
|
export const TOKENLESS_MODEL_KINDS: readonly ModelKind[] = [
|
|
28
29
|
"transcription",
|
|
@@ -30,6 +31,7 @@ export const TOKENLESS_MODEL_KINDS: readonly ModelKind[] = [
|
|
|
30
31
|
"web-search",
|
|
31
32
|
"image",
|
|
32
33
|
"speech",
|
|
34
|
+
"video",
|
|
33
35
|
]
|
|
34
36
|
|
|
35
37
|
/** Common catalog identity shared by every present and future model runtime. */
|
package/src/models/errors.ts
CHANGED
|
@@ -8,10 +8,12 @@ export class ModelCatalogUnavailableError extends Error {
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Why a provider rejected a request, when the provider says so in terms Sixb acts on:
|
|
11
|
-
* `context-window-exceeded
|
|
12
|
-
*
|
|
11
|
+
* - `context-window-exceeded`: the request was too long for the model's context window, and a
|
|
12
|
+
* shorter one may succeed.
|
|
13
|
+
* - `interrupted`: the response broke off once it had started, overloaded, rate limited, failing
|
|
14
|
+
* on the provider's side or closed before its end, and the same request may succeed again.
|
|
13
15
|
*/
|
|
14
|
-
export type ModelProviderErrorReason = "context-window-exceeded"
|
|
16
|
+
export type ModelProviderErrorReason = "context-window-exceeded" | "interrupted"
|
|
15
17
|
|
|
16
18
|
/** A provider or provider protocol rejected a model request. */
|
|
17
19
|
export class ModelProviderError extends Error {
|
package/src/models/events.ts
CHANGED
|
@@ -65,6 +65,8 @@ export interface ModelUsage {
|
|
|
65
65
|
readonly outputImages?: number
|
|
66
66
|
/** Input characters, counted by the provider's own billing rule. */
|
|
67
67
|
readonly inputCharacters?: number
|
|
68
|
+
/** Milliseconds of video the call returned, every clip together, as the provider bills them. */
|
|
69
|
+
readonly outputVideoMs?: number
|
|
68
70
|
readonly raw?: JsonObject
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Model execution accounting
|
|
2
2
|
|
|
3
|
-
Internal execution and accounting shared by language, embedding, decision, reranking, web search, image and speech calls. Application usage is
|
|
3
|
+
Internal execution and accounting shared by language, embedding, decision, reranking, web search, image, video and speech calls. Application usage is
|
|
4
4
|
documented in [Usage and limits](../../../../../docs/models/usage-and-limits.md).
|
|
5
5
|
|
|
6
6
|
## Execution boundary
|
|
@@ -24,6 +24,13 @@ The model records each call itself, whoever reads its stream: the Agent's loop,
|
|
|
24
24
|
or a server that streams it to a remote runner. A call whose record cannot be written fails before
|
|
25
25
|
its reader sees it finish, and the record goes to recovery.
|
|
26
26
|
|
|
27
|
+
Bindings retry an HTTP refusal (429, 5xx) inside the call: nothing was billed, so it stays one
|
|
28
|
+
call. An interrupted call is ambiguous: a dropped connection, or a response its provider broke off
|
|
29
|
+
(an overloaded or server error event, a stream closed before its end, which the protocols mark
|
|
30
|
+
`interrupted`). The model loop (`../../agents/model-loop.ts`) makes it again as a new call,
|
|
31
|
+
admitted and recorded on its own. What the lost call cost stays unknown:
|
|
32
|
+
its reservation is kept, and a call that had started streaming is recorded with its usage unknown.
|
|
33
|
+
|
|
27
34
|
## Embedding flow
|
|
28
35
|
|
|
29
36
|
```text
|
|
@@ -78,7 +85,7 @@ and ranking validation. A complete permutation with finite scores is required; t
|
|
|
78
85
|
candidate order. `RerankingModelResponseError` carries metadata from malformed billable responses.
|
|
79
86
|
|
|
80
87
|
Provider charges remain distinct from token usage: absent tokens stay unknown. Token limits
|
|
81
|
-
neither admit nor count reranking, web search, transcription, image or speech calls (`aiLimitMeterApplies` in
|
|
88
|
+
neither admit nor count reranking, web search, transcription, image, video or speech calls (`aiLimitMeterApplies` in
|
|
82
89
|
the limit storage helpers), so their unmetered records cannot make a token meter unavailable. Reported
|
|
83
90
|
costs reconcile monetary reservations; missing tariffs fail admission under cost limits. Recovery
|
|
84
91
|
remains the existing accounting-only replay.
|
|
@@ -144,3 +151,62 @@ Characters and voice tiers are provider rules, so the binding owns both: `estima
|
|
|
144
151
|
receives the text and voice and counts characters itself, providers report `inputCharacters` in
|
|
145
152
|
usage, and `pricingDimensions` in the reply names the tier the provider billed, which selects the
|
|
146
153
|
rate-card variant.
|
|
154
|
+
|
|
155
|
+
## Video flow
|
|
156
|
+
|
|
157
|
+
A video takes minutes, longer than any request, so `../video/runtime.ts` splits the call across
|
|
158
|
+
requests:
|
|
159
|
+
|
|
160
|
+
```text
|
|
161
|
+
start(): admit the call, reserve its budget → keep the operation, queue its check
|
|
162
|
+
→ provider start(callId) → keep the provider's handle
|
|
163
|
+
get(): provider status(operation) → pending: answer as is
|
|
164
|
+
→ ended: record it as the attempt that admitted it,
|
|
165
|
+
store the videos, settle the operation
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
`start` admits the call like an image, then keeps it in `aiUsage.createModelCallOperation`, with
|
|
169
|
+
the execution attempt that admitted it and whether that reserved budget, and queues its check,
|
|
170
|
+
all before the provider sees it: a job the provider may bill always has a record, and a check
|
|
171
|
+
that settles it. Only then does it ask the provider to start the job, and keep the handle it
|
|
172
|
+
returns, with the price variant the provider bills the job at, through `startModelCallOperation`.
|
|
173
|
+
The call ID is the provider's idempotency key, so a retried start never bills a second job. A
|
|
174
|
+
start that fails, queueing its check included, settles the operation as failed and keeps its
|
|
175
|
+
reservation unknown, as a language call does. A process that stops between the provider's start
|
|
176
|
+
and keeping its handle leaves an operation with no handle, which its check settles the same way
|
|
177
|
+
at the ceiling.
|
|
178
|
+
|
|
179
|
+
Any later `get`, from the same request or another process, looks at the job once. The look that
|
|
180
|
+
sees it end records the call through `accountingFor` the starting execution and `resumeCall`, so the
|
|
181
|
+
ledger row and the reservation it reconciles are that attempt's, then writes the videos to blob
|
|
182
|
+
storage, records them against the call ID, and settles the operation with its usage and cost.
|
|
183
|
+
Settling is first-wins: two looks that see the end at once record the same ledger identity, keep
|
|
184
|
+
the first files, and both answer with the first settlement. A look that fails to ask, such as a
|
|
185
|
+
network error, leaves the job pending. `generate` is `start`, then `get` every five seconds.
|
|
186
|
+
|
|
187
|
+
No client has to come back. The `agent.model-call.check.requested` job `start` queued on the
|
|
188
|
+
agent lane looks at the job with the same code (`../video/check.ts`) in the agent worker, then
|
|
189
|
+
queues the next look, a quarter of the generation's age later, between one and five minutes. Since
|
|
190
|
+
the handle lives in storage and the check in the queue, a process that stops between start and
|
|
191
|
+
end loses nothing: whichever worker claims the check finishes it. A check that cannot ask is
|
|
192
|
+
retried by the worker with backoff, twenty times in a row at most: about seventy minutes, past the
|
|
193
|
+
ceiling below, after which a check that still fails stops, and the next `get` settles it.
|
|
194
|
+
|
|
195
|
+
A generation is checked with the catalog entry its model has in `models.video`, so `start` takes
|
|
196
|
+
only a listed model. Past `VIDEO_GENERATION_CEILING_MS`, one hour, a look settles a generation
|
|
197
|
+
still running, or one it cannot ask about, as failed. The Gateway gives up on a provider's task
|
|
198
|
+
after ten minutes and providers time their own out sooner, so an hour is far past any job that
|
|
199
|
+
will still finish. Whether the provider billed it is unknown, so its reservation becomes unknown,
|
|
200
|
+
as for a language call that never finished, rather than recorded as free.
|
|
201
|
+
|
|
202
|
+
A generation the ledger already records is different: the look that sees it end keeps its result
|
|
203
|
+
on the operation (`recordModelCallOperationResult`) before storing the videos. If they cannot be
|
|
204
|
+
stored by the ceiling, it settles as failed with that usage and cost, its budget reconciled, and
|
|
205
|
+
the check stops. One whose result could not be kept settles as failed too: the limits store
|
|
206
|
+
refuses to mark its reconciled reservation unknown, and the ledger keeps what the provider billed.
|
|
207
|
+
|
|
208
|
+
Usage is `outputVideoMs`: what the provider reports, else the requested length times the clips
|
|
209
|
+
returned, which is what providers bill. The job's price variant, such as `{ resolution: "720p",
|
|
210
|
+
audio: "audio" }`, comes from the binding at start, since the binding knows how its catalog names
|
|
211
|
+
tiers.
|
|
212
|
+
|
|
@@ -6,6 +6,7 @@ export {
|
|
|
6
6
|
export { reportModelCalls } from "../language-call"
|
|
7
7
|
export { modelCacheLifetimeMs } from "../language-model"
|
|
8
8
|
export { resolveLanguageModel } from "../resolve"
|
|
9
|
+
export { runScheduledVideoCheck } from "../video/check"
|
|
9
10
|
export { isModelCallAccountingFailure, ModelUsageRecordingError } from "./errors"
|
|
10
11
|
export type {
|
|
11
12
|
AiModelCallAdmissionDecision,
|