@sixb/core 0.2.2 → 0.2.4
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 +56 -50
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +0 -2
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +5 -1
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/cancel.d.ts +1 -1
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/child-question.d.ts +35 -2
- package/dist/agents/child-question.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +3 -2
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/ids.d.ts +2 -0
- package/dist/agents/ids.d.ts.map +1 -1
- package/dist/agents/index.d.ts +4 -4
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +91 -76
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/request.d.ts +7 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +73 -10
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-session-children.d.ts +9 -0
- package/dist/agents/run-session-children.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.d.ts +3 -0
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/streams/index.js +2 -2
- package/dist/agents/streams/internal.js +2 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/tool-input-coercion.d.ts +20 -0
- package/dist/agents/tool-input-coercion.d.ts.map +1 -0
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/access.d.ts +37 -17
- package/dist/artifacts/access.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +65 -0
- package/dist/artifacts/canvas-display.d.ts.map +1 -0
- package/dist/artifacts/canvas.d.ts +6 -1
- package/dist/artifacts/canvas.d.ts.map +1 -1
- package/dist/artifacts/comment-text.d.ts +19 -0
- package/dist/artifacts/comment-text.d.ts.map +1 -0
- package/dist/artifacts/comments.d.ts +52 -0
- package/dist/artifacts/comments.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +3 -3
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +14 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +129 -22
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +12 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/grants.d.ts +8 -5
- package/dist/artifacts/frames/grants.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +1 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +32 -964
- package/dist/artifacts/frames/index.js.map +4 -8
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +129 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +24 -7
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/holders.d.ts +23 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +2 -0
- package/dist/artifacts/ids.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +6 -4
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +134 -13
- package/dist/artifacts/index.js.map +5 -4
- package/dist/artifacts/limits.d.ts +24 -3
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/board.d.ts +103 -0
- package/dist/artifacts/live/board.d.ts.map +1 -0
- package/dist/artifacts/live/diff.d.ts +43 -0
- package/dist/artifacts/live/diff.d.ts.map +1 -0
- package/dist/artifacts/live/document.d.ts +55 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/files.d.ts +16 -0
- package/dist/artifacts/live/files.d.ts.map +1 -0
- package/dist/artifacts/live/index.d.ts +9 -0
- package/dist/artifacts/live/index.d.ts.map +1 -0
- package/dist/artifacts/live/index.js +593 -0
- package/dist/artifacts/live/index.js.map +10 -0
- package/dist/artifacts/live/presence.d.ts +55 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +109 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.js +21 -0
- package/dist/artifacts/live/protocol.js.map +9 -0
- package/dist/artifacts/live/server.d.ts +10 -0
- package/dist/artifacts/live/server.d.ts.map +1 -0
- package/dist/artifacts/live/server.js +86 -0
- package/dist/artifacts/live/server.js.map +9 -0
- package/dist/artifacts/live/state.d.ts +26 -0
- package/dist/artifacts/live/state.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +11 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +8 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +62 -34
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +75 -0
- package/dist/artifacts/publish/merge.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +153 -0
- package/dist/artifacts/publish/previews.d.ts.map +1 -0
- package/dist/artifacts/publish/publish.d.ts +29 -8
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +20 -0
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +4 -3
- package/dist/artifacts/publish/references.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/canvas.d.ts.map +1 -1
- package/dist/artifacts/theme.d.ts +5 -1
- package/dist/artifacts/theme.d.ts.map +1 -1
- package/dist/auth/directory.d.ts +33 -0
- package/dist/auth/directory.d.ts.map +1 -0
- package/dist/auth/index.js +13 -12
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/member-events.d.ts +5 -1
- package/dist/auth/member-events.d.ts.map +1 -1
- package/dist/auth/runtime.d.ts +22 -1
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/strategy.d.ts +2 -2
- package/dist/auth/strategy.d.ts.map +1 -1
- package/dist/auth/types.d.ts +42 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +6 -5
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -6
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/index.js +4 -4
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/bootstrap/index.js +63 -57
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/broker/in-memory.d.ts.map +1 -1
- package/dist/broker/index.js +1 -1
- package/dist/broker/types.d.ts +4 -0
- package/dist/broker/types.d.ts.map +1 -1
- package/dist/{chunk-s7j8ewqv.js → chunk-0k3r5kb3.js} +257 -43
- package/dist/{chunk-s7j8ewqv.js.map → chunk-0k3r5kb3.js.map} +14 -13
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-80gym75n.js → chunk-186k5yz3.js} +1 -1
- package/dist/chunk-191jz8a6.js +61 -0
- package/dist/chunk-191jz8a6.js.map +10 -0
- package/dist/{chunk-mmagke4x.js → chunk-22d3qg4x.js} +2 -2
- package/dist/{chunk-mmagke4x.js.map → chunk-22d3qg4x.js.map} +3 -3
- package/dist/{chunk-ga63a3dz.js → chunk-2bn6813a.js} +3 -3
- package/dist/chunk-2c4j899j.js.map +2 -2
- package/dist/{chunk-e6xgz4h4.js → chunk-3014rfjz.js} +197 -18
- package/dist/chunk-3014rfjz.js.map +21 -0
- package/dist/{chunk-ytzcxtpt.js → chunk-3ba89vm7.js} +1 -1
- package/dist/chunk-3hzhcfsv.js +139 -0
- package/dist/chunk-3hzhcfsv.js.map +10 -0
- package/dist/chunk-3sgvd10b.js +69 -0
- package/dist/chunk-3sgvd10b.js.map +10 -0
- package/dist/chunk-3z1vxzcm.js +234 -0
- package/dist/chunk-3z1vxzcm.js.map +12 -0
- package/dist/{chunk-djs3hw9p.js → chunk-3zagkr6w.js} +73 -6
- package/dist/chunk-3zagkr6w.js.map +21 -0
- package/dist/{chunk-wkq3kvzd.js → chunk-48c1z8nj.js} +6 -6
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-d04g36fw.js → chunk-5qqmndhm.js} +1 -1
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/chunk-6ef4esq4.js +225 -0
- package/dist/chunk-6ef4esq4.js.map +11 -0
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -0
- package/dist/chunk-7kpqntgw.js +70 -0
- package/dist/chunk-7kpqntgw.js.map +10 -0
- package/dist/{chunk-5wtnmpze.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-31kcqmhf.js → chunk-855w9nvw.js} +1 -1
- package/dist/{chunk-e7v3trpz.js → chunk-8a8k38tz.js} +4 -3
- package/dist/chunk-8a8k38tz.js.map +10 -0
- package/dist/chunk-8bns0y68.js +1322 -0
- package/dist/chunk-8bns0y68.js.map +25 -0
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-9whfmsfk.js → chunk-8tqnsx3q.js} +1 -1
- package/dist/{chunk-s3we74h8.js → chunk-9nsjjd44.js} +38 -5
- package/dist/chunk-9nsjjd44.js.map +12 -0
- package/dist/{chunk-hz5d43gn.js → chunk-9vsc919v.js} +14 -6
- package/dist/chunk-9vsc919v.js.map +10 -0
- package/dist/{chunk-waqk73p1.js → chunk-a6fjkcne.js} +185 -341
- package/dist/{chunk-waqk73p1.js.map → chunk-a6fjkcne.js.map} +6 -7
- package/dist/chunk-az95tsh3.js.map +2 -2
- package/dist/{chunk-s038wa5v.js → chunk-b9qfh2ya.js} +1 -1
- package/dist/{chunk-5taem5aw.js → chunk-bc3y6gff.js} +13 -4
- package/dist/chunk-bc3y6gff.js.map +10 -0
- package/dist/chunk-bz5bnjjt.js +358 -0
- package/dist/chunk-bz5bnjjt.js.map +12 -0
- package/dist/{chunk-w976a4me.js → chunk-czct88ht.js} +28 -4
- package/dist/chunk-czct88ht.js.map +10 -0
- package/dist/{chunk-5kyvrtjh.js → chunk-d9xbwh3h.js} +131 -32
- package/dist/chunk-d9xbwh3h.js.map +13 -0
- package/dist/{chunk-kfee1h52.js → chunk-dfveegqq.js} +28 -8
- package/dist/chunk-dfveegqq.js.map +13 -0
- package/dist/{chunk-2g0r46hy.js → chunk-dhkc9b23.js} +15 -2
- package/dist/chunk-dhkc9b23.js.map +12 -0
- package/dist/chunk-dmnd9ea6.js +106 -0
- package/dist/chunk-dmnd9ea6.js.map +10 -0
- package/dist/{chunk-nz7815t3.js → chunk-e0hnbb1m.js} +27 -2
- package/dist/chunk-e0hnbb1m.js.map +14 -0
- package/dist/chunk-e91fmg6t.js +288 -0
- package/dist/chunk-e91fmg6t.js.map +11 -0
- package/dist/{chunk-3sqqhpr7.js → chunk-evj5jxz3.js} +134 -19
- package/dist/{chunk-3sqqhpr7.js.map → chunk-evj5jxz3.js.map} +11 -10
- package/dist/{chunk-w122ymx4.js → chunk-f6ahf5gf.js} +15 -4
- package/dist/{chunk-w122ymx4.js.map → chunk-f6ahf5gf.js.map} +3 -3
- package/dist/{chunk-jjmggm9a.js → chunk-fe6r7yhg.js} +1 -1
- package/dist/{chunk-165c9wm6.js → chunk-g2ph4873.js} +1 -1
- package/dist/{chunk-dsv783c3.js → chunk-gxwy4c3s.js} +203 -57
- package/dist/chunk-gxwy4c3s.js.map +47 -0
- package/dist/chunk-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/chunk-hn2r7z41.js.map +3 -3
- package/dist/chunk-hvbvq7p4.js +1553 -0
- package/dist/chunk-hvbvq7p4.js.map +18 -0
- package/dist/chunk-j0wgh8gv.js +250 -0
- package/dist/chunk-j0wgh8gv.js.map +10 -0
- package/dist/{chunk-z8fx5cgb.js → chunk-j2zm215x.js} +37 -3
- package/dist/chunk-j2zm215x.js.map +12 -0
- package/dist/{chunk-j1ny5fwh.js → chunk-k1g14kk3.js} +11 -83
- package/dist/{chunk-j1ny5fwh.js.map → chunk-k1g14kk3.js.map} +4 -5
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/{chunk-m2vh8gh0.js → chunk-msyevpp3.js} +62 -15
- package/dist/{chunk-m2vh8gh0.js.map → chunk-msyevpp3.js.map} +5 -5
- package/dist/{chunk-escedwyt.js → chunk-mvz89age.js} +6 -1
- package/dist/{chunk-escedwyt.js.map → chunk-mvz89age.js.map} +3 -3
- package/dist/chunk-mwcqz3e3.js +30 -0
- package/dist/chunk-mwcqz3e3.js.map +10 -0
- package/dist/chunk-n2ay51px.js +21 -0
- package/dist/chunk-n2ay51px.js.map +10 -0
- package/dist/chunk-n4zzaf6q.js.map +1 -1
- package/dist/{chunk-gkv8r794.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-gkv8r794.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-0j3crh1w.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-0j3crh1w.js.map → chunk-p351afzm.js.map} +4 -4
- package/dist/{chunk-c7cfe31p.js → chunk-p8pgnq8d.js} +16 -16
- package/dist/{chunk-c7cfe31p.js.map → chunk-p8pgnq8d.js.map} +1 -1
- package/dist/chunk-pk539cwv.js +370 -0
- package/dist/chunk-pk539cwv.js.map +11 -0
- package/dist/{chunk-jbw70d6t.js → chunk-ppxf7gw2.js} +52 -10
- package/dist/chunk-ppxf7gw2.js.map +11 -0
- package/dist/{chunk-9x8dybsb.js → chunk-pvpq483h.js} +10 -2
- package/dist/chunk-pvpq483h.js.map +10 -0
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-a7aa0nzj.js → chunk-r9rtavg9.js} +14 -14
- package/dist/{chunk-a7aa0nzj.js.map → chunk-r9rtavg9.js.map} +1 -1
- package/dist/{chunk-w1btn96n.js → chunk-rsrc7vtw.js} +523 -254
- package/dist/chunk-rsrc7vtw.js.map +49 -0
- package/dist/{chunk-2ajw5rz0.js → chunk-rsxb14an.js} +3 -3
- package/dist/{chunk-kkjfve0t.js → chunk-rt9deb92.js} +4 -3
- package/dist/{chunk-kkjfve0t.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-a5v4gjdx.js → chunk-rtm1jq00.js} +460 -227
- package/dist/{chunk-a5v4gjdx.js.map → chunk-rtm1jq00.js.map} +25 -22
- package/dist/{chunk-4bm0caep.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-nh26e7c5.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-nh26e7c5.js.map → chunk-sysnvjce.js.map} +3 -3
- package/dist/{chunk-7z5rkf0m.js → chunk-t0s7b3d1.js} +4 -3
- package/dist/{chunk-7z5rkf0m.js.map → chunk-t0s7b3d1.js.map} +3 -3
- package/dist/{chunk-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-mbc5hvnj.js → chunk-td26wjr5.js} +18 -7
- package/dist/{chunk-mbc5hvnj.js.map → chunk-td26wjr5.js.map} +3 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/{chunk-f1h34y3r.js → chunk-vepea5c3.js} +6 -6
- package/dist/{chunk-f1h34y3r.js.map → chunk-vepea5c3.js.map} +1 -1
- package/dist/chunk-vtjzwymr.js +37 -0
- package/dist/chunk-vtjzwymr.js.map +10 -0
- package/dist/{chunk-twfreyxr.js → chunk-vzkxqf8h.js} +23 -13
- package/dist/{chunk-twfreyxr.js.map → chunk-vzkxqf8h.js.map} +6 -6
- package/dist/{chunk-eqgr6nsa.js → chunk-w1wq7gfr.js} +983 -185
- package/dist/chunk-w1wq7gfr.js.map +75 -0
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-fwsvshr5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-fwsvshr5.js.map → chunk-wa05txmk.js.map} +3 -3
- package/dist/chunk-whbwf3np.js +12 -0
- package/dist/chunk-whbwf3np.js.map +10 -0
- package/dist/{chunk-t5608tkq.js → chunk-yv8hv4wq.js} +3 -1
- package/dist/{chunk-t5608tkq.js.map → chunk-yv8hv4wq.js.map} +3 -3
- package/dist/{chunk-j8thxj7w.js → chunk-yy914zfr.js} +1218 -101
- package/dist/chunk-yy914zfr.js.map +30 -0
- package/dist/connectors/builders.d.ts +2 -2
- package/dist/connectors/builders.d.ts.map +1 -1
- package/dist/connectors/connections/access.d.ts +11 -0
- package/dist/connectors/connections/access.d.ts.map +1 -0
- package/dist/connectors/connections/contracts.d.ts +6 -1
- package/dist/connectors/connections/contracts.d.ts.map +1 -1
- package/dist/connectors/connections/internal.js +1 -1
- package/dist/connectors/connections/runs.d.ts +6 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +25 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/connections/views.d.ts +1 -1
- package/dist/connectors/connections/views.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/service.d.ts +3 -0
- package/dist/connectors/service.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +21 -2
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/execution.d.ts +12 -6
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/ingest-flush-batch.d.ts +59 -0
- package/dist/datasets/ingest-flush-batch.d.ts.map +1 -0
- package/dist/datasets/ingest-flush-job.d.ts +33 -0
- package/dist/datasets/ingest-flush-job.d.ts.map +1 -0
- package/dist/datasets/ingest-flush.d.ts +66 -0
- package/dist/datasets/ingest-flush.d.ts.map +1 -0
- package/dist/datasets/produced-version.d.ts +21 -0
- package/dist/datasets/produced-version.d.ts.map +1 -0
- package/dist/datasets/write.d.ts +22 -1
- package/dist/datasets/write.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -4
- package/dist/datasets/write.js.map +1 -1
- package/dist/deploy/internal.js +5 -4
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/types.d.ts +2 -3
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/error-reporting/capability.d.ts +8 -2
- package/dist/error-reporting/capability.d.ts.map +1 -1
- package/dist/error-reporting/internal.d.ts +1 -1
- package/dist/error-reporting/internal.d.ts.map +1 -1
- package/dist/error-reporting/internal.js +17 -5
- package/dist/error-reporting/internal.js.map +1 -1
- package/dist/error-reporting/reporter.d.ts.map +1 -1
- package/dist/error-reporting/reports.d.ts +55 -0
- package/dist/error-reporting/reports.d.ts.map +1 -1
- package/dist/error-reporting/types.d.ts +82 -1
- package/dist/error-reporting/types.d.ts.map +1 -1
- package/dist/errors/catalog.d.ts +5 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/definitions.d.ts +4 -0
- package/dist/events/definitions.d.ts.map +1 -1
- package/dist/events/execution.d.ts +1 -0
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +5 -5
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/types/artifacts.d.ts +38 -0
- package/dist/events/types/artifacts.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +3 -1
- package/dist/events/types/index.d.ts.map +1 -1
- package/dist/events/types/users.d.ts +5 -2
- package/dist/events/types/users.d.ts.map +1 -1
- package/dist/execution/agent.js +58 -52
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +10 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +6 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -1
- package/dist/execution/object-reader-security.d.ts +9 -2
- package/dist/execution/object-reader-security.d.ts.map +1 -1
- package/dist/execution/primitive.js +56 -50
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +50 -44
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +96 -88
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/errors.d.ts +15 -0
- package/dist/lake-storage/errors.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +3 -2
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +16 -10
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/maintenance.d.ts +88 -0
- package/dist/lake-storage/maintenance.d.ts.map +1 -0
- package/dist/lake-storage/merge.d.ts +3 -1
- package/dist/lake-storage/merge.d.ts.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +23 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +10 -0
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/maintenance/heartbeat.d.ts +5 -0
- package/dist/maintenance/heartbeat.d.ts.map +1 -0
- package/dist/maintenance/index.d.ts +4 -2
- package/dist/maintenance/index.d.ts.map +1 -1
- package/dist/maintenance/index.js +515 -0
- package/dist/maintenance/index.js.map +16 -0
- package/dist/maintenance/lake-retention-status.d.ts +36 -0
- package/dist/maintenance/lake-retention-status.d.ts.map +1 -0
- package/dist/maintenance/lake-retention.d.ts +84 -0
- package/dist/maintenance/lake-retention.d.ts.map +1 -0
- package/dist/maintenance/loop.d.ts +95 -0
- package/dist/maintenance/loop.d.ts.map +1 -0
- package/dist/maintenance/ontology-maintenance.d.ts +17 -16
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/maintenance/passes/cron-pass.d.ts +21 -0
- package/dist/maintenance/passes/cron-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/directory-pass.d.ts +12 -0
- package/dist/maintenance/passes/directory-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ingest-pass.d.ts +26 -0
- package/dist/maintenance/passes/ingest-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts +38 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts +20 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ontology-pass.d.ts +8 -0
- package/dist/maintenance/passes/ontology-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/projections-pass.d.ts +26 -0
- package/dist/maintenance/passes/projections-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-pass.d.ts +6 -0
- package/dist/maintenance/passes/recovery-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-passes.d.ts +24 -0
- package/dist/maintenance/passes/recovery-passes.d.ts.map +1 -0
- package/dist/maintenance/passes/runs-pass.d.ts +6 -0
- package/dist/maintenance/passes/runs-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/triggers-pass.d.ts +41 -0
- package/dist/maintenance/passes/triggers-pass.d.ts.map +1 -0
- package/dist/maintenance/status.d.ts +19 -0
- package/dist/maintenance/status.d.ts.map +1 -0
- package/dist/maintenance/types.d.ts +25 -24
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/materialization/model.d.ts +11 -2
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/edits/artifact-refs.d.ts +33 -0
- package/dist/materializer/edits/artifact-refs.d.ts.map +1 -0
- package/dist/materializer/edits/commit.d.ts.map +1 -1
- package/dist/materializer/edits/operations.d.ts +7 -1
- package/dist/materializer/edits/operations.d.ts.map +1 -1
- package/dist/materializer/edits/plan.d.ts.map +1 -1
- package/dist/materializer/execution/work-records.d.ts +6 -0
- package/dist/materializer/execution/work-records.d.ts.map +1 -1
- package/dist/materializer/index.js +31 -28
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/materializer/telemetry/plan.d.ts.map +1 -1
- package/dist/models/execution/index.js +30 -27
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/language-model.d.ts +6 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/tools.d.ts +2 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +59 -54
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/materializer-adapter.d.ts +4 -3
- package/dist/objects/materializer-adapter.d.ts.map +1 -1
- package/dist/objects/object/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/upsert.d.ts.map +1 -1
- package/dist/objects/query/index.js +29 -26
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/ir.d.ts +3 -1
- package/dist/objects/query/ir.d.ts.map +1 -1
- package/dist/objects/query/scalar-values.d.ts.map +1 -1
- package/dist/objects/runtime-batch.d.ts +2 -0
- package/dist/objects/runtime-batch.d.ts.map +1 -1
- package/dist/ontology/artifact-ref.d.ts +36 -0
- package/dist/ontology/artifact-ref.d.ts.map +1 -0
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.d.ts +3 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +8 -5
- package/dist/ontology/index.js.map +1 -1
- package/dist/ontology/inference/index.d.ts +2 -0
- package/dist/ontology/inference/index.d.ts.map +1 -1
- package/dist/ontology/internal.js +7 -6
- package/dist/ontology/internal.js.map +1 -1
- package/dist/ontology/json-schema.d.ts.map +1 -1
- package/dist/ontology/primitives.d.ts.map +1 -1
- package/dist/ontology/reference-values.d.ts +10 -0
- package/dist/ontology/reference-values.d.ts.map +1 -0
- package/dist/ontology/refs.d.ts +6 -1
- package/dist/ontology/refs.d.ts.map +1 -1
- package/dist/ontology/registry.d.ts +9 -1
- package/dist/ontology/registry.d.ts.map +1 -1
- package/dist/ontology/types.d.ts +2 -1
- package/dist/ontology/types.d.ts.map +1 -1
- package/dist/ontology/user-ref.d.ts +16 -0
- package/dist/ontology/user-ref.d.ts.map +1 -1
- package/dist/ontology/validation/normalize.d.ts.map +1 -1
- package/dist/ontology/validation/properties.d.ts.map +1 -1
- package/dist/ontology/validation/schema.d.ts.map +1 -1
- package/dist/pending-tasks.d.ts +17 -0
- package/dist/pending-tasks.d.ts.map +1 -0
- package/dist/pipelines/index.js +37 -34
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/run-dispatch.d.ts +6 -0
- package/dist/pipelines/run-dispatch.d.ts.map +1 -1
- package/dist/predicates/types.d.ts +4 -0
- package/dist/predicates/types.d.ts.map +1 -1
- package/dist/projections/builders.d.ts +13 -11
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/internal.js +30 -27
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/types.d.ts +1 -1
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts +2 -2
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +6 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/index.js +1 -1
- package/dist/queues/types.d.ts +55 -2
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +3 -0
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +22 -5
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +6 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +52 -31
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/sixb.d.ts +6 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/index.js +8 -7
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +0 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +3 -6
- package/dist/scheduler/index.js.map +1 -1
- package/dist/schedules/index.js +9 -11
- package/dist/schedules/index.js.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/shared/backoff.d.ts +12 -0
- package/dist/shared/backoff.d.ts.map +1 -0
- package/dist/shared/duration.d.ts +3 -0
- package/dist/shared/duration.d.ts.map +1 -0
- package/dist/shared/params/artifact-refs.d.ts +19 -0
- package/dist/shared/params/artifact-refs.d.ts.map +1 -0
- package/dist/shares/guest-name.d.ts +8 -0
- package/dist/shares/guest-name.d.ts.map +1 -0
- package/dist/shares/internal.d.ts +1 -0
- package/dist/shares/internal.d.ts.map +1 -1
- package/dist/shares/internal.js +69 -28
- package/dist/shares/internal.js.map +3 -3
- package/dist/shares/session-protocol.d.ts +13 -0
- package/dist/shares/session-protocol.d.ts.map +1 -1
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/agents/provider.js +1 -1
- package/dist/storage/agents/types.d.ts +1 -1
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +2 -2
- package/dist/storage/artifacts/errors.d.ts +9 -4
- package/dist/storage/artifacts/errors.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +27 -4
- 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 +39 -2
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +328 -39
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts +2 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/identities.d.ts +4 -0
- package/dist/storage/auth/in-memory/identities.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +3 -1
- package/dist/storage/auth/in-memory/shared.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/users.d.ts.map +1 -1
- package/dist/storage/auth/index.d.ts +1 -1
- package/dist/storage/auth/index.d.ts.map +1 -1
- package/dist/storage/auth/types.d.ts +39 -0
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts.map +1 -1
- package/dist/storage/connector-connections/index.d.ts +1 -1
- package/dist/storage/connector-connections/index.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/runs.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/shared.d.ts +12 -2
- package/dist/storage/connector-connections/provider/shared.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.d.ts +1 -0
- package/dist/storage/connector-connections/provider.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +21 -5
- package/dist/storage/connector-connections/provider.js.map +5 -5
- package/dist/storage/connector-connections/types.d.ts +1 -1
- package/dist/storage/connector-connections/types.d.ts.map +1 -1
- package/dist/storage/dataset-ingest/codec.d.ts +6 -0
- package/dist/storage/dataset-ingest/codec.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts +28 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/index.d.ts +4 -0
- package/dist/storage/dataset-ingest/index.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.d.ts +157 -0
- package/dist/storage/dataset-ingest/provider.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.js +17 -0
- package/dist/storage/dataset-ingest/provider.js.map +9 -0
- package/dist/storage/dataset-ingest/types.d.ts +188 -0
- package/dist/storage/dataset-ingest/types.d.ts.map +1 -0
- package/dist/storage/file-upload-sessions/provider.js +12 -11
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts +12 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +18 -11
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +56 -46
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +4 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +81 -5
- package/dist/storage/internal.js.map +4 -3
- package/dist/storage/lake-retention-runs/in-memory.d.ts +11 -0
- package/dist/storage/lake-retention-runs/in-memory.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/index.d.ts +3 -0
- package/dist/storage/lake-retention-runs/index.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/types.d.ts +21 -0
- package/dist/storage/lake-retention-runs/types.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts +3 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts +30 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/in-memory/storage.d.ts +15 -1
- package/dist/storage/objects/in-memory/storage.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +18 -1
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/index.d.ts +1 -1
- package/dist/storage/ontology/index.d.ts.map +1 -1
- package/dist/storage/ontology/materializations.d.ts +20 -0
- package/dist/storage/ontology/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/provider-work.d.ts +7 -1
- package/dist/storage/ontology/provider-work.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/pipeline-runs/in-memory.d.ts +8 -2
- package/dist/storage/pipeline-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/index.d.ts +1 -1
- package/dist/storage/pipeline-runs/index.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/provider.js +1 -1
- package/dist/storage/pipeline-runs/transitions.d.ts +2 -2
- package/dist/storage/pipeline-runs/transitions.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/types.d.ts +26 -6
- package/dist/storage/pipeline-runs/types.d.ts.map +1 -1
- package/dist/storage/projection-runs/errors.d.ts +6 -0
- package/dist/storage/projection-runs/errors.d.ts.map +1 -1
- package/dist/storage/projection-runs/in-memory.d.ts +5 -1
- package/dist/storage/projection-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/projection-runs/index.d.ts +2 -2
- package/dist/storage/projection-runs/index.d.ts.map +1 -1
- package/dist/storage/projection-runs/lifecycle.d.ts +1 -0
- package/dist/storage/projection-runs/lifecycle.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/projection-runs/types.d.ts +16 -0
- package/dist/storage/projection-runs/types.d.ts.map +1 -1
- package/dist/storage/run-claim.d.ts +132 -0
- package/dist/storage/run-claim.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.js +3 -3
- package/dist/storage/share-sessions/in-memory.d.ts +2 -1
- package/dist/storage/share-sessions/in-memory.d.ts.map +1 -1
- package/dist/storage/share-sessions/index.d.ts +1 -1
- package/dist/storage/share-sessions/index.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.d.ts +1 -1
- package/dist/storage/share-sessions/provider.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.js +4 -2
- package/dist/storage/share-sessions/provider.js.map +1 -1
- package/dist/storage/share-sessions/record.d.ts +2 -1
- package/dist/storage/share-sessions/record.d.ts.map +1 -1
- package/dist/storage/share-sessions/types.d.ts +17 -1
- package/dist/storage/share-sessions/types.d.ts.map +1 -1
- package/dist/storage/sync-runs/in-memory.d.ts +10 -2
- package/dist/storage/sync-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/sync-runs/index.d.ts +1 -1
- package/dist/storage/sync-runs/index.d.ts.map +1 -1
- package/dist/storage/sync-runs/transitions.d.ts +2 -2
- package/dist/storage/sync-runs/transitions.d.ts.map +1 -1
- package/dist/storage/sync-runs/types.d.ts +29 -3
- package/dist/storage/sync-runs/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +12 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/webhook-runs/in-memory.d.ts +2 -1
- package/dist/storage/webhook-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/webhook-runs/index.d.ts +2 -2
- package/dist/storage/webhook-runs/index.d.ts.map +1 -1
- package/dist/storage/webhook-runs/types.d.ts +33 -2
- package/dist/storage/webhook-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +6 -3
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/index.d.ts +1 -1
- package/dist/storage/workflow-runs/index.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +12 -11
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +11 -28
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +38 -35
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/run-dispatch.d.ts +2 -0
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/artifact-holders-contract.d.ts +15 -0
- package/dist/testing/artifact-holders-contract.d.ts.map +1 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/broker-contract.d.ts.map +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts.map +1 -1
- package/dist/testing/dataset-ingest-storage-contract.d.ts +11 -0
- package/dist/testing/dataset-ingest-storage-contract.d.ts.map +1 -0
- package/dist/testing/dataset-sequence-contract.d.ts +1 -1
- package/dist/testing/dataset-sequence-contract.d.ts.map +1 -1
- package/dist/testing/execution.d.ts.map +1 -1
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6245 -3192
- package/dist/testing/index.js.map +28 -19
- package/dist/testing/lake-retention-run-storage-contract.d.ts +9 -0
- package/dist/testing/lake-retention-run-storage-contract.d.ts.map +1 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts +9 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts.map +1 -0
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/testing/pipeline-execution.d.ts.map +1 -1
- package/dist/testing/pipeline-run-read-contract.d.ts +13 -0
- package/dist/testing/pipeline-run-read-contract.d.ts.map +1 -0
- package/dist/testing/projection-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/run-claim-storage-contract.d.ts +12 -0
- package/dist/testing/run-claim-storage-contract.d.ts.map +1 -0
- package/dist/testing/run-claim.d.ts +30 -0
- package/dist/testing/run-claim.d.ts.map +1 -0
- package/dist/testing/run-recovery-contract.d.ts +49 -0
- package/dist/testing/run-recovery-contract.d.ts.map +1 -0
- package/dist/testing/share-session-storage-contract.d.ts.map +1 -1
- package/dist/testing/stored-artifacts.d.ts +10 -0
- package/dist/testing/stored-artifacts.d.ts.map +1 -0
- package/dist/testing/sync-execution.d.ts.map +1 -1
- package/dist/testing/webhook-execution.d.ts +1 -1
- package/dist/testing/webhook-execution.d.ts.map +1 -1
- package/dist/testing/webhook-run-storage-contract.d.ts.map +1 -1
- package/dist/users/execution.d.ts +18 -1
- package/dist/users/execution.d.ts.map +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/users/index.d.ts.map +1 -1
- package/dist/webhooks/delivery-lease.d.ts +13 -0
- package/dist/webhooks/delivery-lease.d.ts.map +1 -0
- package/dist/webhooks/internal.d.ts +2 -0
- package/dist/webhooks/internal.d.ts.map +1 -1
- package/dist/webhooks/internal.js +68 -36
- package/dist/webhooks/internal.js.map +5 -4
- package/dist/webhooks/run-admission.d.ts.map +1 -1
- package/dist/workers/index.d.ts +5 -1
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/index.js +193 -58
- package/dist/workers/index.js.map +8 -7
- package/dist/workers/job-ids.d.ts +17 -0
- package/dist/workers/job-ids.d.ts.map +1 -0
- package/dist/workers/lost-projection-runs.d.ts +26 -0
- package/dist/workers/lost-projection-runs.d.ts.map +1 -0
- package/dist/workers/lost-runs.d.ts +51 -0
- package/dist/workers/lost-runs.d.ts.map +1 -0
- package/dist/workers/queue-delivery.d.ts.map +1 -1
- package/dist/workers/queue-worker.d.ts +1 -2
- package/dist/workers/queue-worker.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts +90 -0
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -0
- package/dist/workers/run-lease.d.ts +25 -0
- package/dist/workers/run-lease.d.ts.map +1 -0
- package/dist/workers/run-worker.d.ts +95 -0
- package/dist/workers/run-worker.d.ts.map +1 -0
- package/dist/workflows/index.js +64 -58
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/request.d.ts.map +1 -1
- package/dist/workflows/run-dispatch.d.ts +6 -1
- package/dist/workflows/run-dispatch.d.ts.map +1 -1
- package/package.json +41 -3
- package/src/actions/request.ts +24 -7
- package/src/actions/run/executor.ts +9 -42
- package/src/actions/types/context.ts +8 -3
- package/src/agents/approval-outcome.ts +2 -2
- package/src/agents/cancel.ts +2 -2
- package/src/agents/child-question.ts +76 -8
- package/src/agents/execution.ts +11 -3
- package/src/agents/fork.ts +12 -4
- package/src/agents/ids.ts +4 -1
- package/src/agents/index.ts +16 -3
- package/src/agents/model-loop.ts +3 -1
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-session-children.ts +33 -0
- package/src/agents/run-session-http.ts +5 -0
- package/src/agents/run-session-serve.ts +11 -0
- package/src/agents/run-session.ts +8 -1
- package/src/agents/streams/protocol.ts +5 -10
- package/src/agents/tool-files.ts +1 -1
- package/src/agents/tool-input-coercion.ts +140 -0
- package/src/agents/validation.ts +12 -1
- package/src/artifacts/access.ts +71 -28
- package/src/artifacts/canvas-display.ts +160 -0
- package/src/artifacts/canvas.ts +26 -1
- package/src/artifacts/comment-text.ts +32 -0
- package/src/artifacts/comments.ts +275 -0
- package/src/artifacts/errors.ts +6 -1
- package/src/artifacts/events.ts +58 -0
- package/src/artifacts/execution.ts +496 -53
- package/src/artifacts/frames/assets.ts +20 -1
- package/src/artifacts/frames/grants.ts +31 -10
- package/src/artifacts/frames/index.ts +2 -0
- package/src/artifacts/frames/kit.ts +8 -5
- package/src/artifacts/frames/protocol.ts +231 -0
- package/src/artifacts/frames/runtime.ts +600 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +31 -2
- package/src/artifacts/limits.ts +28 -4
- package/src/artifacts/live/board.ts +759 -0
- package/src/artifacts/live/diff.ts +297 -0
- package/src/artifacts/live/document.ts +354 -0
- package/src/artifacts/live/files.ts +82 -0
- package/src/artifacts/live/index.ts +50 -0
- package/src/artifacts/live/presence.ts +144 -0
- package/src/artifacts/live/protocol.ts +134 -0
- package/src/artifacts/live/server.ts +16 -0
- package/src/artifacts/live/state.ts +115 -0
- package/src/artifacts/outline.ts +12 -0
- package/src/artifacts/publish/index.ts +26 -1
- package/src/artifacts/publish/merge.ts +271 -0
- package/src/artifacts/publish/previews.ts +485 -0
- package/src/artifacts/publish/publish.ts +92 -39
- package/src/artifacts/publish/query-answers.ts +85 -0
- package/src/artifacts/publish/references.ts +10 -4
- package/src/artifacts/publish/validate/canvas.ts +133 -1
- package/src/artifacts/theme.ts +9 -1
- package/src/auth/directory.ts +166 -0
- package/src/auth/member-events.ts +10 -3
- package/src/auth/runtime.ts +108 -8
- package/src/auth/strategy.ts +3 -1
- package/src/auth/types.ts +44 -0
- package/src/authorization/decision.ts +6 -5
- package/src/authorization/event-visibility.ts +4 -0
- package/src/broker/in-memory.ts +33 -6
- package/src/broker/types.ts +4 -0
- package/src/connectors/builders.ts +34 -2
- package/src/connectors/connections/access.ts +83 -0
- package/src/connectors/connections/contracts.ts +6 -1
- package/src/connectors/connections/execution.ts +2 -2
- package/src/connectors/connections/runs.ts +51 -2
- package/src/connectors/connections/service.ts +208 -41
- package/src/connectors/connections/views.ts +11 -4
- package/src/connectors/execution.ts +27 -3
- package/src/connectors/index.ts +2 -0
- package/src/connectors/service.ts +12 -0
- package/src/connectors/types.ts +37 -2
- package/src/datasets/execution.ts +74 -37
- package/src/datasets/ingest-flush-batch.ts +289 -0
- package/src/datasets/ingest-flush-job.ts +112 -0
- package/src/datasets/ingest-flush.ts +377 -0
- package/src/datasets/produced-version.ts +55 -0
- package/src/datasets/write.ts +65 -11
- package/src/deploy/services.ts +1 -1
- package/src/deploy/types.ts +2 -3
- package/src/deploy/validation.ts +1 -0
- package/src/error-reporting/capability.ts +66 -0
- package/src/error-reporting/internal.ts +12 -0
- package/src/error-reporting/reporter.ts +11 -35
- package/src/error-reporting/reports.ts +167 -0
- package/src/error-reporting/types.ts +99 -0
- package/src/errors/catalog.ts +6 -0
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +77 -28
- package/src/events/index.ts +3 -0
- package/src/events/scope.ts +2 -0
- package/src/events/types/artifacts.ts +40 -0
- package/src/events/types/index.ts +3 -0
- package/src/events/types/users.ts +5 -2
- package/src/execution/authorized-object-reader.ts +34 -0
- package/src/execution/object-reader-clearance.ts +31 -0
- package/src/execution/object-reader-security.ts +33 -13
- package/src/http/api-routes.ts +106 -5
- package/src/index.ts +22 -4
- package/src/lake-storage/errors.ts +21 -0
- package/src/lake-storage/index.ts +9 -1
- package/src/lake-storage/maintenance.ts +93 -0
- package/src/lake-storage/merge.ts +3 -1
- package/src/lake-storage/source-ordering.ts +28 -2
- package/src/lake-storage/types.ts +14 -0
- package/src/maintenance/heartbeat.ts +14 -0
- package/src/maintenance/index.ts +5 -3
- package/src/maintenance/lake-retention-status.ts +81 -0
- package/src/maintenance/lake-retention.ts +347 -0
- package/src/maintenance/loop.ts +365 -0
- package/src/maintenance/ontology-maintenance.ts +76 -229
- package/src/maintenance/passes/cron-pass.ts +217 -0
- package/src/maintenance/passes/directory-pass.ts +22 -0
- package/src/maintenance/passes/ingest-pass.ts +94 -0
- package/src/maintenance/passes/lake-change-feed.ts +112 -0
- package/src/maintenance/passes/lake-retention-pass.ts +71 -0
- package/src/maintenance/passes/ontology-pass.ts +19 -0
- package/src/maintenance/passes/projections-pass.ts +238 -0
- package/src/maintenance/passes/recovery-pass.ts +17 -0
- package/src/maintenance/passes/recovery-passes.ts +39 -0
- package/src/maintenance/passes/runs-pass.ts +12 -0
- package/src/maintenance/passes/triggers-pass.ts +332 -0
- package/src/maintenance/status.ts +75 -0
- package/src/maintenance/types.ts +27 -25
- package/src/materialization/model.ts +33 -21
- package/src/materializer/README.md +13 -2
- package/src/materializer/edits/artifact-refs.ts +140 -0
- package/src/materializer/edits/commit.ts +20 -7
- package/src/materializer/edits/operations.ts +23 -7
- package/src/materializer/edits/plan.ts +2 -0
- package/src/materializer/execution/work-records.ts +61 -0
- package/src/materializer/projections/replacement-plan.ts +2 -0
- package/src/materializer/shared/normalize.ts +14 -0
- package/src/materializer/telemetry/plan.ts +2 -0
- package/src/models/language-model.ts +6 -0
- package/src/models/tools.ts +2 -0
- package/src/objects/artifact-refs.ts +34 -0
- package/src/objects/materializer-adapter.ts +8 -3
- package/src/objects/object/upsert-batch.ts +7 -0
- package/src/objects/object/upsert.ts +11 -2
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/runtime-batch.ts +8 -1
- package/src/objects/vectors/README.md +4 -4
- package/src/ontology/artifact-ref.ts +83 -0
- package/src/ontology/docs-markdown.ts +17 -0
- package/src/ontology/index.ts +3 -1
- package/src/ontology/inference/index.ts +2 -0
- package/src/ontology/json-schema.ts +13 -0
- package/src/ontology/primitives.ts +14 -0
- package/src/ontology/reference-values.ts +62 -0
- package/src/ontology/refs.ts +7 -1
- package/src/ontology/registry.ts +26 -1
- package/src/ontology/types.ts +2 -0
- package/src/ontology/user-ref.ts +35 -45
- package/src/ontology/validation/normalize.ts +13 -0
- package/src/ontology/validation/properties.ts +9 -0
- package/src/ontology/validation/schema.ts +12 -0
- package/src/pending-tasks.ts +51 -0
- package/src/pipelines/run-dispatch.ts +120 -238
- package/src/predicates/types.ts +2 -1
- package/src/projections/builders.ts +28 -13
- package/src/projections/run-dispatch.ts +1 -1
- package/src/projections/types.ts +1 -1
- package/src/projections/validation.ts +22 -8
- package/src/queues/in-memory.ts +50 -3
- package/src/queues/index.ts +4 -0
- package/src/queues/types.ts +68 -1
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +118 -13
- package/src/runtime/index.ts +0 -1
- package/src/runtime/internal.ts +13 -0
- package/src/runtime/ontology-mutations.ts +1 -1
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/shared/backoff.ts +34 -0
- package/src/shared/duration.ts +15 -0
- package/src/shared/params/artifact-refs.ts +42 -0
- package/src/shares/compiler.ts +1 -1
- package/src/shares/guest-name.ts +20 -0
- package/src/shares/internal.ts +1 -0
- package/src/shares/session-protocol.ts +63 -0
- package/src/storage/agents/types.ts +1 -1
- package/src/storage/artifacts/errors.ts +10 -2
- package/src/storage/artifacts/in-memory.ts +579 -96
- package/src/storage/artifacts/index.ts +22 -1
- package/src/storage/artifacts/record.ts +255 -11
- package/src/storage/artifacts/types.ts +343 -40
- package/src/storage/auth/in-memory/auth-storage.ts +42 -5
- package/src/storage/auth/in-memory/identities.ts +16 -0
- package/src/storage/auth/in-memory/shared.ts +15 -0
- package/src/storage/auth/in-memory/users.ts +17 -16
- package/src/storage/auth/index.ts +3 -0
- package/src/storage/auth/types.ts +38 -0
- package/src/storage/connector-connections/in-memory.ts +4 -1
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/runs.ts +3 -0
- package/src/storage/connector-connections/provider/shared.ts +30 -0
- package/src/storage/connector-connections/provider.ts +4 -0
- package/src/storage/connector-connections/types.ts +1 -0
- package/src/storage/dataset-ingest/codec.ts +90 -0
- package/src/storage/dataset-ingest/in-memory.ts +277 -0
- package/src/storage/dataset-ingest/index.ts +16 -0
- package/src/storage/dataset-ingest/provider.ts +592 -0
- package/src/storage/dataset-ingest/types.ts +191 -0
- package/src/storage/in-memory/index.ts +33 -0
- package/src/storage/index.ts +65 -5
- package/src/storage/internal.ts +20 -0
- package/src/storage/lake-retention-runs/in-memory.ts +22 -0
- package/src/storage/lake-retention-runs/index.ts +2 -0
- package/src/storage/lake-retention-runs/types.ts +19 -0
- package/src/storage/maintenance-heartbeats/in-memory.ts +24 -0
- package/src/storage/maintenance-heartbeats/index.ts +7 -0
- package/src/storage/maintenance-heartbeats/record.ts +50 -0
- package/src/storage/maintenance-heartbeats/types.ts +30 -0
- package/src/storage/objects/in-memory/query.ts +1 -0
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/read-scope.ts +1 -0
- package/src/storage/objects/types.ts +16 -1
- package/src/storage/ontology/in-memory/materializations.ts +8 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +4 -1
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/materializations.ts +18 -0
- package/src/storage/ontology/provider-work.ts +39 -0
- package/src/storage/pipeline-runs/in-memory.ts +97 -24
- package/src/storage/pipeline-runs/index.ts +0 -1
- package/src/storage/pipeline-runs/provider.ts +1 -1
- package/src/storage/pipeline-runs/transitions.ts +7 -4
- package/src/storage/pipeline-runs/types.ts +33 -7
- package/src/storage/projection-runs/errors.ts +10 -0
- package/src/storage/projection-runs/in-memory.ts +56 -1
- package/src/storage/projection-runs/index.ts +2 -1
- package/src/storage/projection-runs/lifecycle.ts +9 -1
- package/src/storage/projection-runs/types.ts +20 -1
- package/src/storage/run-claim.ts +224 -0
- package/src/storage/share-sessions/in-memory.ts +21 -0
- package/src/storage/share-sessions/index.ts +1 -0
- package/src/storage/share-sessions/provider.ts +1 -0
- package/src/storage/share-sessions/record.ts +28 -0
- package/src/storage/share-sessions/types.ts +19 -1
- package/src/storage/sync-runs/in-memory.ts +109 -29
- package/src/storage/sync-runs/index.ts +1 -1
- package/src/storage/sync-runs/transitions.ts +7 -4
- package/src/storage/sync-runs/types.ts +36 -3
- package/src/storage/types.ts +15 -5
- package/src/storage/webhook-runs/in-memory.ts +26 -2
- package/src/storage/webhook-runs/index.ts +3 -1
- package/src/storage/webhook-runs/types.ts +44 -3
- package/src/storage/workflow-runs/in-memory.ts +50 -36
- package/src/storage/workflow-runs/index.ts +0 -2
- package/src/storage/workflow-runs/types.ts +18 -30
- package/src/syncs/run-dispatch.ts +118 -239
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/artifact-holders-contract.ts +392 -0
- package/src/testing/artifact-storage-contract.ts +1205 -151
- package/src/testing/auth-storage-contract.ts +228 -1
- package/src/testing/broker-contract.ts +56 -0
- package/src/testing/connector-connection-storage-contract.ts +94 -5
- package/src/testing/dataset-ingest-storage-contract.ts +480 -0
- package/src/testing/dataset-sequence-contract.ts +97 -12
- package/src/testing/execution.ts +23 -0
- package/src/testing/index.ts +31 -0
- package/src/testing/lake-retention-run-storage-contract.ts +75 -0
- package/src/testing/maintenance-heartbeat-storage-contract.ts +99 -0
- package/src/testing/object-query-contract.ts +93 -0
- package/src/testing/pipeline-execution.ts +3 -1
- package/src/testing/pipeline-run-read-contract.ts +123 -0
- package/src/testing/projection-run-storage-contract.ts +113 -0
- package/src/testing/queues-contract.ts +112 -0
- package/src/testing/run-claim-storage-contract.ts +736 -0
- package/src/testing/run-claim.ts +69 -0
- package/src/testing/run-recovery-contract.ts +176 -0
- package/src/testing/share-session-storage-contract.ts +43 -0
- package/src/testing/stored-artifacts.ts +43 -0
- package/src/testing/sync-execution.ts +3 -1
- package/src/testing/webhook-execution.ts +7 -2
- package/src/testing/webhook-run-storage-contract.ts +102 -5
- package/src/users/execution.ts +50 -2
- package/src/users/index.ts +1 -0
- package/src/webhooks/delivery-lease.ts +40 -0
- package/src/webhooks/internal.ts +2 -0
- package/src/webhooks/run-admission.ts +22 -9
- package/src/workers/README.md +169 -0
- package/src/workers/index.ts +9 -1
- package/src/workers/job-ids.ts +31 -0
- package/src/workers/lost-projection-runs.ts +114 -0
- package/src/workers/lost-runs.ts +397 -0
- package/src/workers/queue-delivery.ts +2 -14
- package/src/workers/queue-worker.ts +9 -17
- package/src/workers/queued-run-dispatch.ts +308 -0
- package/src/workers/run-lease.ts +46 -0
- package/src/workers/run-worker.ts +312 -0
- package/src/workers/worker.ts +4 -17
- package/src/workflows/request.ts +2 -0
- package/src/workflows/run-dispatch.ts +22 -4
- package/src/workflows/snapshot.ts +1 -0
- package/dist/chunk-2g0r46hy.js.map +0 -12
- package/dist/chunk-3fqxbn31.js +0 -107
- package/dist/chunk-3fqxbn31.js.map +0 -11
- package/dist/chunk-4s753g3k.js +0 -314
- package/dist/chunk-4s753g3k.js.map +0 -12
- package/dist/chunk-5kyvrtjh.js.map +0 -12
- package/dist/chunk-5taem5aw.js.map +0 -10
- package/dist/chunk-65abf64x.js +0 -13
- package/dist/chunk-65abf64x.js.map +0 -10
- package/dist/chunk-9x8dybsb.js.map +0 -10
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-c706qvyc.js +0 -299
- package/dist/chunk-c706qvyc.js.map +0 -11
- package/dist/chunk-djs3hw9p.js.map +0 -20
- package/dist/chunk-dsv783c3.js.map +0 -47
- package/dist/chunk-e5wf5vz0.js.map +0 -10
- package/dist/chunk-e6xgz4h4.js.map +0 -21
- package/dist/chunk-e7v3trpz.js.map +0 -10
- package/dist/chunk-eqgr6nsa.js.map +0 -72
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-j8thxj7w.js.map +0 -22
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-kwfhd1g0.js +0 -144
- package/dist/chunk-kwfhd1g0.js.map +0 -13
- package/dist/chunk-nz7815t3.js.map +0 -14
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-w1btn96n.js.map +0 -44
- package/dist/chunk-w976a4me.js.map +0 -10
- package/dist/chunk-wkq3kvzd.js.map +0 -10
- package/dist/chunk-wrjx1fqz.js +0 -587
- package/dist/chunk-wrjx1fqz.js.map +0 -18
- package/dist/chunk-yw9pyg66.js +0 -143
- package/dist/chunk-yw9pyg66.js.map +0 -11
- package/dist/chunk-z8fx5cgb.js.map +0 -11
- package/dist/scheduler/runtime.d.ts +0 -40
- package/dist/scheduler/runtime.d.ts.map +0 -1
- package/dist/workers/unstarted-run.d.ts +0 -10
- package/dist/workers/unstarted-run.d.ts.map +0 -1
- package/src/scheduler/runtime.ts +0 -214
- package/src/workers/unstarted-run.ts +0 -18
- /package/dist/{chunk-80gym75n.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-ga63a3dz.js.map → chunk-2bn6813a.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-d04g36fw.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-5wtnmpze.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-31kcqmhf.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-9whfmsfk.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-jjmggm9a.js.map → chunk-fe6r7yhg.js.map} +0 -0
- /package/dist/{chunk-165c9wm6.js.map → chunk-g2ph4873.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.js.map} +0 -0
- /package/dist/{chunk-2ajw5rz0.js.map → chunk-rsxb14an.js.map} +0 -0
- /package/dist/{chunk-r1cxq7vv.js.map → chunk-rtdrm592.js.map} +0 -0
- /package/dist/{chunk-4bm0caep.js.map → chunk-smnt672s.js.map} +0 -0
- /package/dist/{chunk-21q0j5f2.js.map → chunk-stmxh0hv.js.map} +0 -0
- /package/dist/{chunk-ff5xkv0p.js.map → chunk-tfzvjdms.js.map} +0 -0
- /package/dist/{chunk-6b61s40c.js.map → chunk-w3t94hm6.js.map} +0 -0
package/src/actions/request.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { updatableArtifactIds } from "../artifacts/execution"
|
|
1
2
|
import { AuthorizationError, assertAuthorized } from "../authorization"
|
|
2
3
|
import {
|
|
3
4
|
getAuthorizationRef,
|
|
@@ -16,6 +17,7 @@ import { OntologyValidationError } from "../ontology/errors"
|
|
|
16
17
|
import { isObjectRefSchema } from "../ontology/refs"
|
|
17
18
|
import type { ObjectTypeWithPropertyTokens } from "../ontology/tokens"
|
|
18
19
|
import type { SixbRuntimeContext } from "../runtime/types"
|
|
20
|
+
import { assertParamArtifactsUpdatable } from "../shared/params/artifact-refs"
|
|
19
21
|
import { assertParamUsersActive } from "../shared/params/user-refs"
|
|
20
22
|
import { type ActionRunRecord, ObjectNotFoundError, objectBatchKey } from "../storage"
|
|
21
23
|
import type { ActionRunParams } from "../storage/action-runs/types"
|
|
@@ -90,6 +92,11 @@ export async function requestAction(
|
|
|
90
92
|
request.signal?.throwIfAborted()
|
|
91
93
|
|
|
92
94
|
const payload = { actionId, subject, params: actionParams }
|
|
95
|
+
const paramSchemas = Object.fromEntries(
|
|
96
|
+
Object.entries(action.params).map(([paramId, param]) => [paramId, param.schema])
|
|
97
|
+
)
|
|
98
|
+
const describeParam = (paramId: string) => `Action param '${pathPrefix}.${paramId}'`
|
|
99
|
+
|
|
93
100
|
const assertCanReuse = (run: ExistingActionRun) =>
|
|
94
101
|
assertCallerMayHaveRun({
|
|
95
102
|
storage: runtime.storage,
|
|
@@ -105,18 +112,28 @@ export async function requestAction(
|
|
|
105
112
|
runId,
|
|
106
113
|
payload,
|
|
107
114
|
assertCanReuse,
|
|
108
|
-
assertNewRun: () =>
|
|
109
|
-
assertParamUsersActive({
|
|
115
|
+
assertNewRun: async () => {
|
|
116
|
+
await assertParamUsersActive({
|
|
110
117
|
auth: runtime.storage.auth,
|
|
111
118
|
projectId,
|
|
112
|
-
schemas:
|
|
113
|
-
Object.entries(action.params).map(([paramId, param]) => [paramId, param.schema])
|
|
114
|
-
),
|
|
119
|
+
schemas: paramSchemas,
|
|
115
120
|
values: actionParams,
|
|
116
121
|
valueTypesById: runtime.ontology.getValueTypesById(),
|
|
117
|
-
describe:
|
|
122
|
+
describe: describeParam,
|
|
118
123
|
invalid: (message) => new OntologyValidationError(message),
|
|
119
|
-
})
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
// The run's edits are trusted code: its requester may only hand it artifacts they may
|
|
127
|
+
// change.
|
|
128
|
+
await assertParamArtifactsUpdatable({
|
|
129
|
+
updatable: (artifactIds) => updatableArtifactIds(runtime, artifactIds),
|
|
130
|
+
schemas: paramSchemas,
|
|
131
|
+
values: actionParams,
|
|
132
|
+
valueTypesById: runtime.ontology.getValueTypesById(),
|
|
133
|
+
describe: describeParam,
|
|
134
|
+
invalid: (message) => new OntologyValidationError(message),
|
|
135
|
+
})
|
|
136
|
+
},
|
|
120
137
|
createExecution: async (executionId, runId) => {
|
|
121
138
|
const caller = await ensureExecutionRecord(
|
|
122
139
|
runtime.storage.executions,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { reportRunFailure } from "../../error-reporting/capability"
|
|
2
2
|
import { createSixbError, type SixbCodedError } from "../../errors/internal"
|
|
3
3
|
import type { RequestClient } from "../../execution/request-client"
|
|
4
|
+
import { PendingTasks } from "../../pending-tasks"
|
|
4
5
|
import type { ActionRunRecord } from "../../storage"
|
|
5
6
|
import {
|
|
6
7
|
type ActionRunRequestPayload,
|
|
@@ -50,7 +51,7 @@ interface HeldRunId {
|
|
|
50
51
|
* execute its run without holding the host.
|
|
51
52
|
*/
|
|
52
53
|
export class ActionRunExecutor {
|
|
53
|
-
private readonly inFlight = new
|
|
54
|
+
private readonly inFlight = new PendingTasks()
|
|
54
55
|
/** Run ids held by a request of this process, until it ends. */
|
|
55
56
|
private readonly held = new Map<string, HeldRunId>()
|
|
56
57
|
private stopping = false
|
|
@@ -81,7 +82,7 @@ export class ActionRunExecutor {
|
|
|
81
82
|
)
|
|
82
83
|
}
|
|
83
84
|
const requested = this.dispatch(request)
|
|
84
|
-
this.track(requested)
|
|
85
|
+
this.inFlight.track(requested)
|
|
85
86
|
return requested
|
|
86
87
|
}
|
|
87
88
|
|
|
@@ -91,30 +92,13 @@ export class ActionRunExecutor {
|
|
|
91
92
|
*/
|
|
92
93
|
async drain(timeoutMs: number): Promise<void> {
|
|
93
94
|
this.stopping = true
|
|
94
|
-
const deadline = Date.now() + Math.max(0, timeoutMs)
|
|
95
95
|
// A request that ends starts its run's effects before it settles, so they are tracked by the
|
|
96
|
-
// time the wait for the request returns:
|
|
97
|
-
|
|
98
|
-
if (!(await settleWithin([...this.inFlight], deadline - Date.now()))) {
|
|
99
|
-
console.error(
|
|
100
|
-
`[Sixb] Stopped waiting after ${timeoutMs} ms for ${this.inFlight.size} in-flight Action run(s).`
|
|
101
|
-
)
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
96
|
+
// time the wait for the request returns: `drain` waits again until nothing is left.
|
|
97
|
+
if (await this.inFlight.drain(timeoutMs)) return
|
|
106
98
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
.then(
|
|
111
|
-
() => undefined,
|
|
112
|
-
() => undefined
|
|
113
|
-
)
|
|
114
|
-
.finally(() => {
|
|
115
|
-
this.inFlight.delete(settled)
|
|
116
|
-
})
|
|
117
|
-
this.inFlight.add(settled)
|
|
99
|
+
console.error(
|
|
100
|
+
`[Sixb] Stopped waiting after ${timeoutMs} ms for ${this.inFlight.size} in-flight Action run(s).`
|
|
101
|
+
)
|
|
118
102
|
}
|
|
119
103
|
|
|
120
104
|
private async dispatch(request: ActionRunRequest): Promise<ActionRunRecord> {
|
|
@@ -214,7 +198,7 @@ export class ActionRunExecutor {
|
|
|
214
198
|
* response.
|
|
215
199
|
*/
|
|
216
200
|
private startEffects(run: PendingActionRun, effects: () => Promise<void>): void {
|
|
217
|
-
this.track(
|
|
201
|
+
this.inFlight.track(
|
|
218
202
|
new Promise<void>((resolve) => setImmediate(resolve))
|
|
219
203
|
.then(effects)
|
|
220
204
|
.catch((error: unknown) => {
|
|
@@ -308,20 +292,3 @@ export async function drainActionRuns(host: object, timeoutMs: number): Promise<
|
|
|
308
292
|
function findActionRunExecutor(owner: object): ActionRunExecutor | undefined {
|
|
309
293
|
return (owner as ActionRunExecutorOwner)[actionRunExecutorKey]
|
|
310
294
|
}
|
|
311
|
-
|
|
312
|
-
async function settleWithin(
|
|
313
|
-
promises: readonly Promise<unknown>[],
|
|
314
|
-
timeoutMs: number
|
|
315
|
-
): Promise<boolean> {
|
|
316
|
-
let timeout: ReturnType<typeof setTimeout> | undefined
|
|
317
|
-
try {
|
|
318
|
-
return await Promise.race([
|
|
319
|
-
Promise.allSettled(promises).then(() => true),
|
|
320
|
-
new Promise<false>((resolve) => {
|
|
321
|
-
timeout = setTimeout(() => resolve(false), timeoutMs)
|
|
322
|
-
}),
|
|
323
|
-
])
|
|
324
|
-
} finally {
|
|
325
|
-
if (timeout) clearTimeout(timeout)
|
|
326
|
-
}
|
|
327
|
-
}
|
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
} from "../../materializer"
|
|
12
12
|
import type { ModelsRuntime } from "../../models/generation-types"
|
|
13
13
|
import type { ObjectType, Property } from "../../ontology"
|
|
14
|
+
import type { ArtifactRef } from "../../ontology/artifact-ref"
|
|
14
15
|
import type { InferPropertyUnit, InferPropertyValue } from "../../ontology/inference"
|
|
15
16
|
import type { ObjectTypeWithPropertyTokens, PropertyToken } from "../../ontology/tokens"
|
|
16
17
|
import type { UserRef } from "../../ontology/user-ref"
|
|
@@ -51,9 +52,13 @@ type InferActionSnapshotSchemaValue<TSchema> = TSchema extends keyof ActionPrimi
|
|
|
51
52
|
? UserRef
|
|
52
53
|
: TSchema extends { readonly type: "array"; readonly items: "userRef" }
|
|
53
54
|
? readonly UserRef[]
|
|
54
|
-
: TSchema extends
|
|
55
|
-
?
|
|
56
|
-
:
|
|
55
|
+
: TSchema extends "artifactRef"
|
|
56
|
+
? ArtifactRef
|
|
57
|
+
: TSchema extends { readonly type: "array"; readonly items: "artifactRef" }
|
|
58
|
+
? readonly ArtifactRef[]
|
|
59
|
+
: TSchema extends { readonly type: "enum"; readonly values: readonly (infer TValue)[] }
|
|
60
|
+
? TValue
|
|
61
|
+
: unknown
|
|
57
62
|
|
|
58
63
|
export type ActionSubject = { readonly kind: "none" } | ActionObjectSubject
|
|
59
64
|
|
|
@@ -14,8 +14,8 @@ export function approvalOutcomeInstruction(part: AgentApprovalOutcomePart): stri
|
|
|
14
14
|
? text
|
|
15
15
|
: `Your sub-agent '${part.caller.key}' made this request. ${text} ${
|
|
16
16
|
part.caller.continues
|
|
17
|
-
? "It continues with this outcome, and
|
|
18
|
-
: "It does not continue:
|
|
17
|
+
? "It continues with this outcome, and wait with its key returns its answer."
|
|
18
|
+
: "It does not continue: wait with its key returns how it ended, and you can spawn it again with a new key if its work is still needed."
|
|
19
19
|
}`
|
|
20
20
|
return `<sixb_approval id="${part.approvalId}" status="${part.status}">${body}</sixb_approval>`
|
|
21
21
|
}
|
package/src/agents/cancel.ts
CHANGED
|
@@ -88,7 +88,7 @@ export async function requestAgentRunCancel(
|
|
|
88
88
|
* attached its cancel subscription yet.
|
|
89
89
|
*/
|
|
90
90
|
export async function cancelQueuedRun(
|
|
91
|
-
runtime: SixbRuntimeContext,
|
|
91
|
+
runtime: Pick<SixbRuntimeContext, "projectId" | "broker">,
|
|
92
92
|
storage: AgentStorage,
|
|
93
93
|
run: AgentRunRecord
|
|
94
94
|
): Promise<
|
|
@@ -113,7 +113,7 @@ export async function cancelQueuedRun(
|
|
|
113
113
|
|
|
114
114
|
/** The run is cancelled once stored; its stream learns it best-effort. */
|
|
115
115
|
async function publishQueuedRunCancellation(
|
|
116
|
-
runtime: SixbRuntimeContext,
|
|
116
|
+
runtime: Pick<SixbRuntimeContext, "broker">,
|
|
117
117
|
run: AgentRunRecord
|
|
118
118
|
): Promise<void> {
|
|
119
119
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isJsonObject } from "../json"
|
|
1
|
+
import { isJsonObject, type JsonValue } from "../json"
|
|
2
2
|
import type { AgentRunRecord } from "../storage/agents"
|
|
3
3
|
import type { AgentMessage } from "./message"
|
|
4
4
|
|
|
@@ -8,6 +8,73 @@ export interface AgentChildQuestion {
|
|
|
8
8
|
readonly text: string
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/** One question of an `ask` call: what it asks, and the answers it offers. */
|
|
12
|
+
export interface AgentQuestion {
|
|
13
|
+
readonly question: string
|
|
14
|
+
/** At most four; a typed answer is always possible beside them. */
|
|
15
|
+
readonly choices?: readonly string[]
|
|
16
|
+
/** Several of the choices may be picked. */
|
|
17
|
+
readonly multiple?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** The most questions one `ask` holds, and the most choices one question offers. */
|
|
21
|
+
export const AGENT_QUESTION_LIMITS = { questions: 4, choices: 4 } as const
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An `ask` call's questions as one text: what a sub-agent's parent reads of them, and how its
|
|
25
|
+
* thread names the question it paused on.
|
|
26
|
+
*
|
|
27
|
+
* ```text
|
|
28
|
+
* Which environment should I deploy to? (staging / production)
|
|
29
|
+
*
|
|
30
|
+
* 1. Which environment should I deploy to? (staging / production)
|
|
31
|
+
* 2. Which reports? (any of: daily / weekly)
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export function agentQuestionsText(questions: readonly AgentQuestion[]): string {
|
|
35
|
+
const lines = questions.map((question) => {
|
|
36
|
+
const choices = question.choices?.length
|
|
37
|
+
? ` (${question.multiple ? "any of: " : ""}${question.choices.join(" / ")})`
|
|
38
|
+
: ""
|
|
39
|
+
return `${question.question}${choices}`
|
|
40
|
+
})
|
|
41
|
+
return lines.length === 1
|
|
42
|
+
? (lines[0] ?? "")
|
|
43
|
+
: lines.map((line, i) => `${i + 1}. ${line}`).join("\n")
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The questions of an `ask` call's input, or of an `ask_parent` call's, which earlier threads hold:
|
|
48
|
+
* `{ question }` reads as one question. Undefined when the input names none.
|
|
49
|
+
*/
|
|
50
|
+
export function agentQuestionsOf(
|
|
51
|
+
input: JsonValue | undefined
|
|
52
|
+
): readonly AgentQuestion[] | undefined {
|
|
53
|
+
if (!isJsonObject(input)) return undefined
|
|
54
|
+
if (typeof input.question === "string") return [{ question: input.question.trim() }]
|
|
55
|
+
if (!Array.isArray(input.questions)) return undefined
|
|
56
|
+
|
|
57
|
+
const questions = input.questions.flatMap((value): AgentQuestion[] => {
|
|
58
|
+
if (!isJsonObject(value) || typeof value.question !== "string") return []
|
|
59
|
+
const choices = Array.isArray(value.choices)
|
|
60
|
+
? value.choices.filter((choice): choice is string => typeof choice === "string")
|
|
61
|
+
: []
|
|
62
|
+
return [
|
|
63
|
+
{
|
|
64
|
+
question: value.question.trim(),
|
|
65
|
+
...(choices.length > 0 ? { choices } : {}),
|
|
66
|
+
...(value.multiple === true ? { multiple: true } : {}),
|
|
67
|
+
},
|
|
68
|
+
]
|
|
69
|
+
})
|
|
70
|
+
return questions.length > 0 ? questions : undefined
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** The tools a sub-agent asks its parent with: `ask`, and `ask_parent`, which earlier threads hold. */
|
|
74
|
+
export function isChildAskTool(toolName: string): boolean {
|
|
75
|
+
return toolName === "ask" || toolName === "ask_parent"
|
|
76
|
+
}
|
|
77
|
+
|
|
11
78
|
/**
|
|
12
79
|
* Whether the child paused on its question when its turn ended: it continues once a later turn of
|
|
13
80
|
* the conversation answers it under its key.
|
|
@@ -19,8 +86,8 @@ export function isAwaitingAnswerRun(run: AgentRunRecord | null | undefined): boo
|
|
|
19
86
|
}
|
|
20
87
|
|
|
21
88
|
/**
|
|
22
|
-
* The question a run's messages paused on: its `
|
|
23
|
-
*
|
|
89
|
+
* The question a run's messages paused on: its `ask` call whose answer was deferred to a later
|
|
90
|
+
* turn, which names the question's id.
|
|
24
91
|
*/
|
|
25
92
|
export function deferredChildQuestion(
|
|
26
93
|
messages: readonly Pick<AgentMessage, "parts">[]
|
|
@@ -29,18 +96,19 @@ export function deferredChildQuestion(
|
|
|
29
96
|
.flatMap((message) => message.parts)
|
|
30
97
|
.flatMap((part) =>
|
|
31
98
|
part.type === "tool-call" &&
|
|
32
|
-
part.toolName
|
|
99
|
+
isChildAskTool(part.toolName) &&
|
|
33
100
|
part.state === "output-available" &&
|
|
34
101
|
isJsonObject(part.output) &&
|
|
35
|
-
part.output.status === "deferred"
|
|
36
|
-
isJsonObject(part.input)
|
|
102
|
+
part.output.status === "deferred"
|
|
37
103
|
? [{ input: part.input, output: part.output }]
|
|
38
104
|
: []
|
|
39
105
|
)
|
|
40
106
|
.at(-1)
|
|
41
107
|
if (!asked) return undefined
|
|
42
108
|
|
|
43
|
-
const
|
|
109
|
+
const questions = agentQuestionsOf(asked.input)
|
|
44
110
|
const { question: id } = asked.output
|
|
45
|
-
return
|
|
111
|
+
return questions && typeof id === "string"
|
|
112
|
+
? { id, text: agentQuestionsText(questions) }
|
|
113
|
+
: undefined
|
|
46
114
|
}
|
package/src/agents/execution.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { principalsEqual, type UserPrincipal } from "../auth"
|
|
2
2
|
import { AuthorizationError, assertAuthorized, isRuntimeAllowed } from "../authorization"
|
|
3
|
+
import type { BlobStorage } from "../blob-storage/types"
|
|
3
4
|
import { isSixbError } from "../errors/internal"
|
|
4
5
|
import type { AuthorizablePrincipal, ExecutionContext } from "../execution"
|
|
5
6
|
import { canInheritAgentRequestAuthorization } from "../execution/agent"
|
|
@@ -284,7 +285,7 @@ export interface AgentRunsRuntime {
|
|
|
284
285
|
* this returns; a running one is still running, with the stop signal sent to its worker. A turn
|
|
285
286
|
* paused for approval stays as it ended, with its held calls cancelled: it never resumes. A
|
|
286
287
|
* sub-agent's run stops as its turn would: whoever asked for that turn, or the conversation's
|
|
287
|
-
* owner, can, and its parent's `
|
|
288
|
+
* owner, can, and its parent's `wait` reads that it was stopped.
|
|
288
289
|
*/
|
|
289
290
|
cancel(runId: string): Promise<AgentRunView>
|
|
290
291
|
/** A turn, or a sub-agent's run, read through its thread. */
|
|
@@ -358,7 +359,8 @@ export function createAgentRuntime<
|
|
|
358
359
|
models: ModelCatalog | undefined,
|
|
359
360
|
decision: DecisionModelsRuntime,
|
|
360
361
|
sandbox: SixbDependencies["sandbox"] | undefined,
|
|
361
|
-
security: SecurityDefinitionCatalog
|
|
362
|
+
security: SecurityDefinitionCatalog,
|
|
363
|
+
blobStorage?: BlobStorage
|
|
362
364
|
): AgentRuntime<TParams> {
|
|
363
365
|
const authority = resolveRuntimeAuthorizationForProject(runtime)
|
|
364
366
|
const turnModels = {
|
|
@@ -986,7 +988,13 @@ export function createAgentRuntime<
|
|
|
986
988
|
if (!agent) {
|
|
987
989
|
throw new AgentRequestError("agent_not_found", "[Sixb] The project Agent is unavailable.")
|
|
988
990
|
}
|
|
989
|
-
const result = await retryAgentRun(
|
|
991
|
+
const result = await retryAgentRun(
|
|
992
|
+
runtime,
|
|
993
|
+
execution,
|
|
994
|
+
models?.language,
|
|
995
|
+
failedRun,
|
|
996
|
+
blobStorage
|
|
997
|
+
)
|
|
990
998
|
return { ...result, run: await attachRunView(runtime, result.run) }
|
|
991
999
|
},
|
|
992
1000
|
cancel: async (runId) => {
|
package/src/agents/fork.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type TransactionAccessRules, transactionArtifactAccessRules } from "../artifacts/execution"
|
|
2
2
|
import { createArtifactId } from "../artifacts/ids"
|
|
3
|
+
import { boardPreviewsOfCopy } from "../artifacts/publish/previews"
|
|
3
4
|
import type { Principal } from "../auth"
|
|
4
5
|
import type { SixbDependencies } from "../runtime/sixb"
|
|
5
6
|
import type { SixbRuntimeContext } from "../runtime/types"
|
|
@@ -46,6 +47,7 @@ export async function forkAgentThread(
|
|
|
46
47
|
|
|
47
48
|
try {
|
|
48
49
|
// One transaction: a fork that fails leaves no copy behind, and none copied is missing.
|
|
50
|
+
const ruleIn = await transactionArtifactAccessRules(runtime)
|
|
49
51
|
return await runtime.storage.transaction(async (tx) => {
|
|
50
52
|
const threads = tx.agents?.threads
|
|
51
53
|
if (!threads) {
|
|
@@ -55,7 +57,7 @@ export async function forkAgentThread(
|
|
|
55
57
|
)
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
const artifactCopies = await copySharedArtifacts(runtime, tx, {
|
|
60
|
+
const artifactCopies = await copySharedArtifacts(runtime, tx, ruleIn, {
|
|
59
61
|
sourceThreadId: source.id,
|
|
60
62
|
forkId: id,
|
|
61
63
|
owner: input.ownerPrincipal,
|
|
@@ -99,6 +101,7 @@ export async function forkAgentThread(
|
|
|
99
101
|
async function copySharedArtifacts(
|
|
100
102
|
runtime: SixbRuntimeContext,
|
|
101
103
|
tx: Storage,
|
|
104
|
+
ruleIn: TransactionAccessRules,
|
|
102
105
|
input: {
|
|
103
106
|
readonly sourceThreadId: string
|
|
104
107
|
readonly forkId: string
|
|
@@ -122,7 +125,7 @@ async function copySharedArtifacts(
|
|
|
122
125
|
return {}
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
const access =
|
|
128
|
+
const access = ruleIn(tx)
|
|
126
129
|
const copies: Record<string, string> = {}
|
|
127
130
|
const { artifacts: shared } = await artifacts.list({ projectId, threadId: input.sourceThreadId })
|
|
128
131
|
for (const artifact of shared) {
|
|
@@ -145,8 +148,13 @@ async function createCopy(
|
|
|
145
148
|
): Promise<string> {
|
|
146
149
|
for (let attempt = 1; ; attempt += 1) {
|
|
147
150
|
const id = createArtifactId()
|
|
151
|
+
const previews = boardPreviewsOfCopy(id)
|
|
148
152
|
try {
|
|
149
|
-
|
|
153
|
+
// A board's picture is its artifact's: the copy's boards are named anew. Static boards keep
|
|
154
|
+
// their pictures; one that shows its author's data runs live for the copy's readers.
|
|
155
|
+
await artifacts.copy({ ...input, id, outlineOf: previews.outlineOf })
|
|
156
|
+
await previews.carry(artifacts, input.projectId)
|
|
157
|
+
|
|
150
158
|
return id
|
|
151
159
|
} catch (error) {
|
|
152
160
|
const collided = error instanceof ArtifactStorageError && error.code === "artifact_exists"
|
package/src/agents/ids.ts
CHANGED
|
@@ -22,9 +22,12 @@ export function createAgentRunId(): string {
|
|
|
22
22
|
return `agt_run_${randomUUID()}`
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/** How every child's first run id starts: told apart from the key the Agent spawned it under. */
|
|
26
|
+
export const SUBAGENT_RUN_ID_PREFIX = "agt_run_child_"
|
|
27
|
+
|
|
25
28
|
/** One stable child identity per parent-selected spawn key. */
|
|
26
29
|
export function createSubagentRunId(parentRunId: string, spawnKey: string): string {
|
|
27
|
-
return
|
|
30
|
+
return `${SUBAGENT_RUN_ID_PREFIX}${spawnDigest(parentRunId, spawnKey)}`
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
/**
|
package/src/agents/index.ts
CHANGED
|
@@ -59,8 +59,14 @@ export {
|
|
|
59
59
|
} from "./authority"
|
|
60
60
|
export { defineAgentTool } from "./builders"
|
|
61
61
|
export { requestAgentRunCancel } from "./cancel"
|
|
62
|
-
export type { AgentChildQuestion } from "./child-question"
|
|
63
|
-
export {
|
|
62
|
+
export type { AgentChildQuestion, AgentQuestion } from "./child-question"
|
|
63
|
+
export {
|
|
64
|
+
AGENT_QUESTION_LIMITS,
|
|
65
|
+
agentQuestionsText,
|
|
66
|
+
deferredChildQuestion,
|
|
67
|
+
isAwaitingAnswerRun,
|
|
68
|
+
isChildAskTool,
|
|
69
|
+
} from "./child-question"
|
|
64
70
|
export type {
|
|
65
71
|
AgentContextEntryInput,
|
|
66
72
|
AgentContextInput,
|
|
@@ -146,6 +152,7 @@ export {
|
|
|
146
152
|
createSubagentExecutionId,
|
|
147
153
|
createSubagentRunId,
|
|
148
154
|
createSubagentThreadId,
|
|
155
|
+
SUBAGENT_RUN_ID_PREFIX,
|
|
149
156
|
} from "./ids"
|
|
150
157
|
export { AGENT_IMAGE_INPUT_TOKENS, AGENT_INLINE_IMAGE_LIMITS } from "./inline-images"
|
|
151
158
|
export {
|
|
@@ -190,7 +197,13 @@ export {
|
|
|
190
197
|
retryAgentRun,
|
|
191
198
|
} from "./request"
|
|
192
199
|
export { afterAgentRunFinished, stopAgentRunChild } from "./run-after-finish"
|
|
193
|
-
export type {
|
|
200
|
+
export type {
|
|
201
|
+
AgentRunArtifactPublish,
|
|
202
|
+
AgentRunArtifacts,
|
|
203
|
+
AgentRunBoardPreviews,
|
|
204
|
+
AgentRunMissingPreview,
|
|
205
|
+
AgentRunVersion,
|
|
206
|
+
} from "./run-artifacts"
|
|
194
207
|
export { agentRunArtifacts } from "./run-artifacts"
|
|
195
208
|
export type {
|
|
196
209
|
CompactionCompletedInput,
|
package/src/agents/model-loop.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
} from "../models/messages"
|
|
35
35
|
import type { ModelCallCost, ModelReportedCost } from "../models/pricing"
|
|
36
36
|
import type { ModelOutput, ModelTool } from "../models/tools"
|
|
37
|
+
import { coerceToolInput } from "./tool-input-coercion"
|
|
37
38
|
|
|
38
39
|
const MAX_PROVIDER_DATA_BYTES = 256 * 1024
|
|
39
40
|
interface ModelLoopOptions {
|
|
@@ -177,6 +178,7 @@ export async function runModelLoop(
|
|
|
177
178
|
name: tool.name,
|
|
178
179
|
description: tool.description,
|
|
179
180
|
inputSchema: tool.inputSchema,
|
|
181
|
+
...(tool.strict ? { strict: true } : {}),
|
|
180
182
|
}))
|
|
181
183
|
let messages: readonly ModelMessage[] = [...input.messages]
|
|
182
184
|
const steps: ModelStep[] = []
|
|
@@ -643,7 +645,7 @@ async function executeToolCall(
|
|
|
643
645
|
|
|
644
646
|
let parsed: unknown
|
|
645
647
|
try {
|
|
646
|
-
parsed = tool.parseInput(part.input)
|
|
648
|
+
parsed = tool.parseInput(coerceToolInput(tool.inputSchema, part.input))
|
|
647
649
|
} catch (error) {
|
|
648
650
|
const errorText = error instanceof Error ? error.message : "Tool input validation failed."
|
|
649
651
|
await onEvent?.({
|
package/src/agents/request.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto"
|
|
2
|
+
import { announceArtifactUpdates } from "../artifacts/events"
|
|
3
|
+
import { undoneTurnDocuments } from "../artifacts/publish/merge"
|
|
2
4
|
import type { Principal } from "../auth"
|
|
3
5
|
import { principalsEqual, SYSTEM_PRINCIPAL } from "../auth"
|
|
4
6
|
import { assertAuthorized } from "../authorization"
|
|
5
7
|
import type { FileRef } from "../blob-storage"
|
|
8
|
+
import type { BlobStorage } from "../blob-storage/types"
|
|
6
9
|
import { isValidFileRef } from "../blob-storage/validation"
|
|
7
10
|
import {
|
|
8
11
|
canInheritAgentRequestAuthorization,
|
|
@@ -304,7 +307,12 @@ export async function retryAgentRun(
|
|
|
304
307
|
runtime: SixbRuntimeContext,
|
|
305
308
|
execution: ExecutionContext,
|
|
306
309
|
models: LanguageModelCatalog | undefined,
|
|
307
|
-
failedRun: ConversationAgentRunRecord
|
|
310
|
+
failedRun: ConversationAgentRunRecord,
|
|
311
|
+
/**
|
|
312
|
+
* Where a canvas the retry puts back stores its document; without it, the document is left
|
|
313
|
+
* behind, and brought up to the content by whoever loads it next.
|
|
314
|
+
*/
|
|
315
|
+
blobStorage?: Pick<BlobStorage, "open" | "put">
|
|
308
316
|
): Promise<RequestAgentRunResult> {
|
|
309
317
|
resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
310
318
|
execution,
|
|
@@ -334,7 +342,18 @@ export async function retryAgentRun(
|
|
|
334
342
|
const runId = createAgentRunId()
|
|
335
343
|
const durableExecution = await prepareDurableAgentExecution(runtime, execution, runId)
|
|
336
344
|
await assertAiLimitPreflight(runtime, durableExecution)
|
|
337
|
-
|
|
345
|
+
|
|
346
|
+
// A canvas put back takes its restore point as a change to its document, made before the undo.
|
|
347
|
+
const artifacts = runtime.storage.artifacts
|
|
348
|
+
const documents =
|
|
349
|
+
artifacts && blobStorage
|
|
350
|
+
? await undoneTurnDocuments(
|
|
351
|
+
{ projectId: runtime.projectId, storage: artifacts, blobStorage },
|
|
352
|
+
failedRun.id
|
|
353
|
+
)
|
|
354
|
+
: {}
|
|
355
|
+
|
|
356
|
+
const { run, undone } = await runtime.storage.transaction(async (tx) => {
|
|
338
357
|
const agents = tx.agents
|
|
339
358
|
if (!agents) {
|
|
340
359
|
throw new AgentRequestError("storage_unavailable", "[Sixb] Agent storage is not configured.")
|
|
@@ -344,16 +363,23 @@ export async function retryAgentRun(
|
|
|
344
363
|
threadId: failedRun.threadId,
|
|
345
364
|
runId: failedRun.id,
|
|
346
365
|
})
|
|
347
|
-
// What the failed turn
|
|
348
|
-
//
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
366
|
+
// What the failed turn wrote goes with what it said, so the retry starts clean: each artifact
|
|
367
|
+
// nobody changed since is put back as it was, or deleted when the turn created it and nobody
|
|
368
|
+
// but its requester commented on it. Its children wrote as the turn.
|
|
369
|
+
const trigger = await agents.messages.getById({
|
|
370
|
+
projectId: runtime.projectId,
|
|
371
|
+
id: failedRun.triggerMessageId,
|
|
372
|
+
})
|
|
373
|
+
const requester = trigger?.authorPrincipal
|
|
374
|
+
|
|
375
|
+
const undone = await tx.artifacts?.undoTurnWrites({
|
|
376
|
+
projectId: runtime.projectId,
|
|
377
|
+
turnRunId: failedRun.id,
|
|
378
|
+
documents,
|
|
379
|
+
...(requester ? { requester } : {}),
|
|
380
|
+
})
|
|
355
381
|
await tx.executions.create(durableExecution)
|
|
356
|
-
|
|
382
|
+
const run = await agents.runs.create({
|
|
357
383
|
id: runId,
|
|
358
384
|
projectId: runtime.projectId,
|
|
359
385
|
executionId: durableExecution.id,
|
|
@@ -365,7 +391,12 @@ export async function retryAgentRun(
|
|
|
365
391
|
(await resolveConversationRunSpec({ models, selection: {}, settings: {} }))
|
|
366
392
|
),
|
|
367
393
|
})
|
|
394
|
+
return { run, undone }
|
|
368
395
|
})
|
|
396
|
+
await announceArtifactUpdates(
|
|
397
|
+
runtime.events,
|
|
398
|
+
(undone?.restored ?? []).map(({ version }) => version)
|
|
399
|
+
)
|
|
369
400
|
await publishRunActivity(runtime, run)
|
|
370
401
|
const jobId = await dispatchAgentRun(runtime, agents, runId)
|
|
371
402
|
return { run, ...(jobId ? { jobId } : {}), createdThread: false }
|
|
@@ -557,26 +588,6 @@ async function resumedConversationRunSpec(
|
|
|
557
588
|
return Object.freeze({ ...kept, approvalMode })
|
|
558
589
|
}
|
|
559
590
|
|
|
560
|
-
/** Every child a turn spawned, whatever its status. */
|
|
561
|
-
async function childRunIds(
|
|
562
|
-
agents: AgentStorage,
|
|
563
|
-
parent: ConversationAgentRunRecord
|
|
564
|
-
): Promise<string[]> {
|
|
565
|
-
const ids: string[] = []
|
|
566
|
-
for (;;) {
|
|
567
|
-
const page = await agents.runs.list({
|
|
568
|
-
projectId: parent.projectId,
|
|
569
|
-
kinds: ["subagent"],
|
|
570
|
-
parentRunId: parent.id,
|
|
571
|
-
order: "asc",
|
|
572
|
-
limit: 100,
|
|
573
|
-
offset: ids.length,
|
|
574
|
-
})
|
|
575
|
-
ids.push(...page.runs.map((run) => run.id))
|
|
576
|
-
if (!page.hasMore || page.runs.length === 0) return ids
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
591
|
/**
|
|
581
592
|
* A continuation picks up where the cut-short turn stopped, with its model and reasoning unless the
|
|
582
593
|
* request chooses others. A model that has since left the catalog falls back to the defaults.
|