@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
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
createArtifactId
|
|
4
|
+
} from "./chunk-kr6dx38r.js";
|
|
2
5
|
import {
|
|
3
6
|
collectUserRefIds,
|
|
4
7
|
userReferenceProblem
|
|
5
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7j4yydm2.js";
|
|
6
9
|
import {
|
|
7
10
|
canonicalMediaType2,
|
|
8
11
|
isFileRef2,
|
|
@@ -14,6 +17,8 @@ import {
|
|
|
14
17
|
withFailureMessage2
|
|
15
18
|
} from "./chunk-6eqsgvxk.js";
|
|
16
19
|
import {
|
|
20
|
+
collectArtifactRefIds,
|
|
21
|
+
artifactReferenceProblem,
|
|
17
22
|
assertValidFileRefs2,
|
|
18
23
|
isRecord2,
|
|
19
24
|
normalizeObjectProperties2,
|
|
@@ -30,11 +35,32 @@ import {
|
|
|
30
35
|
normalizeLinkProperties2,
|
|
31
36
|
validateLinkProperties2,
|
|
32
37
|
assertTelemetryProperty2
|
|
33
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-3zagkr6w.js";
|
|
34
39
|
import {
|
|
35
40
|
isObjectRefSchema2,
|
|
36
41
|
validateSchemaOrRefValue2
|
|
37
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-8a8k38tz.js";
|
|
43
|
+
import {
|
|
44
|
+
ActionDefinitionError2,
|
|
45
|
+
missingActionMutationMessage,
|
|
46
|
+
effectsWithoutEditsMessage,
|
|
47
|
+
assertNonEmpty2,
|
|
48
|
+
isActionDefinition2,
|
|
49
|
+
isObjectActionDefinition2,
|
|
50
|
+
normalizeActionParams,
|
|
51
|
+
coerceActionParamsToTyped,
|
|
52
|
+
validateActionSubject,
|
|
53
|
+
resolveObjectActionSubject,
|
|
54
|
+
getRequestClientAddress2,
|
|
55
|
+
INDEXING_EMBEDDING_TIMEOUT_MS,
|
|
56
|
+
vectorConfiguration,
|
|
57
|
+
vectorSources,
|
|
58
|
+
normalizeVector2,
|
|
59
|
+
validateObjectQuery2,
|
|
60
|
+
createUsersRuntime,
|
|
61
|
+
SYSTEM_PRINCIPAL2,
|
|
62
|
+
principalsEqual2
|
|
63
|
+
} from "./chunk-0k3r5kb3.js";
|
|
38
64
|
import {
|
|
39
65
|
ActionValidationError2,
|
|
40
66
|
SIXB_ERROR_CODES2,
|
|
@@ -43,7 +69,7 @@ import {
|
|
|
43
69
|
isSixbError2,
|
|
44
70
|
toSixbFailure2,
|
|
45
71
|
summarizeErrorMessage2
|
|
46
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-mvz89age.js";
|
|
47
73
|
import {
|
|
48
74
|
agentServiceAccountId2,
|
|
49
75
|
ObjectReadLimitExceededError2,
|
|
@@ -59,7 +85,6 @@ import {
|
|
|
59
85
|
assertRuntimeAuthorizationBound2,
|
|
60
86
|
assertCanEdit2,
|
|
61
87
|
assertCanAppendTelemetry2,
|
|
62
|
-
assertCanManageConnector2,
|
|
63
88
|
assertPrivileged2,
|
|
64
89
|
assertProviderAccess2,
|
|
65
90
|
assertModelAccess2,
|
|
@@ -72,35 +97,21 @@ import {
|
|
|
72
97
|
canViewProjectionRun2,
|
|
73
98
|
canViewPrimitiveRun2,
|
|
74
99
|
canViewProjection2
|
|
75
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-vzkxqf8h.js";
|
|
76
101
|
import {
|
|
77
102
|
compileSelectedObjectReadScope2
|
|
78
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-rt9deb92.js";
|
|
79
104
|
import {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
normalizeActionParams,
|
|
87
|
-
coerceActionParamsToTyped,
|
|
88
|
-
validateActionSubject,
|
|
89
|
-
resolveObjectActionSubject,
|
|
90
|
-
getRequestClientAddress2,
|
|
91
|
-
INDEXING_EMBEDDING_TIMEOUT_MS,
|
|
92
|
-
vectorConfiguration,
|
|
93
|
-
vectorSources,
|
|
94
|
-
normalizeVector2,
|
|
95
|
-
validateObjectQuery2,
|
|
96
|
-
createUsersRuntime,
|
|
97
|
-
SYSTEM_PRINCIPAL2,
|
|
98
|
-
principalsEqual2
|
|
99
|
-
} from "./chunk-s7j8ewqv.js";
|
|
105
|
+
missingClearanceRedactions,
|
|
106
|
+
WorkflowRunError2,
|
|
107
|
+
resolveAgentExecutionAuthorization2,
|
|
108
|
+
userCanRunAgent2,
|
|
109
|
+
resolveInheritedAgentExecutionAuthorization2
|
|
110
|
+
} from "./chunk-p351afzm.js";
|
|
100
111
|
import {
|
|
101
112
|
ACTION_RUN_FAILURE_CODES2,
|
|
102
113
|
parseActionRunFailure2
|
|
103
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-g2ph4873.js";
|
|
104
115
|
import {
|
|
105
116
|
isModelReasoning2,
|
|
106
117
|
modelReasoningSupportIssue2
|
|
@@ -136,12 +147,12 @@ import {
|
|
|
136
147
|
movesComputerPlace2,
|
|
137
148
|
isAgentApprovalMode2,
|
|
138
149
|
agentApprovalHoldsRun2
|
|
139
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-t0s7b3d1.js";
|
|
140
151
|
import {
|
|
141
152
|
actionRunRequestsEqual,
|
|
142
153
|
ObjectNotFoundError2,
|
|
143
154
|
ArtifactStorageError
|
|
144
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-3014rfjz.js";
|
|
145
156
|
import {
|
|
146
157
|
ExecutionStorageError2
|
|
147
158
|
} from "./chunk-eptrvnby.js";
|
|
@@ -155,17 +166,10 @@ import {
|
|
|
155
166
|
objectBatchKey2,
|
|
156
167
|
matchesPredicate,
|
|
157
168
|
WORKFLOW_RUN_FAILURE_CODES2
|
|
158
|
-
} from "./chunk-
|
|
159
|
-
import {
|
|
160
|
-
WorkflowRunError2,
|
|
161
|
-
missingClearanceRedactions,
|
|
162
|
-
resolveAgentExecutionAuthorization2,
|
|
163
|
-
userCanRunAgent2,
|
|
164
|
-
resolveInheritedAgentExecutionAuthorization2
|
|
165
|
-
} from "./chunk-0j3crh1w.js";
|
|
169
|
+
} from "./chunk-w1wq7gfr.js";
|
|
166
170
|
import {
|
|
167
171
|
explainObjectQuery2
|
|
168
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-rsxb14an.js";
|
|
169
173
|
import {
|
|
170
174
|
redactDomainEvent,
|
|
171
175
|
uniqueLookupKeyOf,
|
|
@@ -174,12 +178,24 @@ import {
|
|
|
174
178
|
readerClearance,
|
|
175
179
|
readerEventClearance,
|
|
176
180
|
readerViewConditions
|
|
177
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-msyevpp3.js";
|
|
182
|
+
import {
|
|
183
|
+
createAgentThreadAccessRule,
|
|
184
|
+
assertConversationThread2,
|
|
185
|
+
agentThreadViews,
|
|
186
|
+
announceArtifactUpdates,
|
|
187
|
+
undoneTurnDocuments,
|
|
188
|
+
boardPreviewsOfCopy,
|
|
189
|
+
createRuntimeArtifactAccessRule,
|
|
190
|
+
transactionArtifactAccessRules,
|
|
191
|
+
updatableArtifactIds,
|
|
192
|
+
createArtifactsRuntime
|
|
193
|
+
} from "./chunk-yy914zfr.js";
|
|
178
194
|
import {
|
|
179
195
|
shareSixbErrorReporter2,
|
|
180
196
|
reportActionPhaseFailure2,
|
|
181
197
|
reportRunFailure2
|
|
182
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-czct88ht.js";
|
|
183
199
|
import {
|
|
184
200
|
getOntologyMutationRuntime2,
|
|
185
201
|
shareOntologyMutationRuntime2,
|
|
@@ -196,30 +212,20 @@ import {
|
|
|
196
212
|
createActivityCaptureRuntime,
|
|
197
213
|
registerActivityCaptureRuntime,
|
|
198
214
|
ModelExecutionSession
|
|
199
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-vepea5c3.js";
|
|
200
216
|
import {
|
|
201
217
|
publishAgentThreadMoved2,
|
|
202
218
|
publishAgentApprovalActivity,
|
|
203
219
|
publishAgentRunActivity2,
|
|
204
220
|
publishAgentRunCancel2,
|
|
205
221
|
publishAgentRunFinished2
|
|
206
|
-
} from "./chunk-
|
|
207
|
-
import {
|
|
208
|
-
createArtifactId
|
|
209
|
-
} from "./chunk-3fqxbn31.js";
|
|
210
|
-
import {
|
|
211
|
-
createAgentThreadAccessRule,
|
|
212
|
-
assertConversationThread2,
|
|
213
|
-
agentThreadViews,
|
|
214
|
-
createRuntimeArtifactAccessRule,
|
|
215
|
-
createArtifactsRuntime
|
|
216
|
-
} from "./chunk-j8thxj7w.js";
|
|
222
|
+
} from "./chunk-48c1z8nj.js";
|
|
217
223
|
import {
|
|
218
224
|
aiLimitSubjectsFromAttribution2,
|
|
219
225
|
applicableAiLimitPolicyStatuses2,
|
|
220
226
|
aiUsageLimitExceededError2,
|
|
221
227
|
aiUsageLimitUnavailableError2
|
|
222
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-5qqmndhm.js";
|
|
223
229
|
import {
|
|
224
230
|
normalizeAgentContextEntries2
|
|
225
231
|
} from "./chunk-sgx82nnt.js";
|
|
@@ -232,16 +238,24 @@ import {
|
|
|
232
238
|
} from "./chunk-5a4a52tq.js";
|
|
233
239
|
import {
|
|
234
240
|
createConnectorRuntime
|
|
235
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-wa05txmk.js";
|
|
242
|
+
import {
|
|
243
|
+
DatasetValidationError2
|
|
244
|
+
} from "./chunk-wx7smkn2.js";
|
|
245
|
+
import {
|
|
246
|
+
lakeDatasetDefinition2,
|
|
247
|
+
validateDatasetMergeChanges2
|
|
248
|
+
} from "./chunk-ppxf7gw2.js";
|
|
236
249
|
import {
|
|
237
|
-
|
|
238
|
-
|
|
250
|
+
datasetDefinitionHash,
|
|
251
|
+
tryEnqueueIngestFlush
|
|
252
|
+
} from "./chunk-191jz8a6.js";
|
|
239
253
|
import {
|
|
240
254
|
AI_MODEL_CALL_OUTPUT_TOKEN_ALLOWANCE,
|
|
241
255
|
aiModelCallOutputTokenAllowance,
|
|
242
256
|
ModelUsageRecordingError2,
|
|
243
257
|
LanguageModelCallMeter
|
|
244
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-2bn6813a.js";
|
|
245
259
|
import {
|
|
246
260
|
createLinkScopeFingerprint2,
|
|
247
261
|
normalizeJsonProperties2,
|
|
@@ -251,7 +265,7 @@ import {
|
|
|
251
265
|
resolveEffectiveLink,
|
|
252
266
|
resolveEffectiveLinkSlotMember,
|
|
253
267
|
linkCardinality
|
|
254
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-evj5jxz3.js";
|
|
255
269
|
import {
|
|
256
270
|
resolveLoggingService2
|
|
257
271
|
} from "./chunk-1vg43g9q.js";
|
|
@@ -262,49 +276,55 @@ import {
|
|
|
262
276
|
import {
|
|
263
277
|
SyncValidationError2,
|
|
264
278
|
requestSyncRun2
|
|
265
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-3z1vxzcm.js";
|
|
280
|
+
import {
|
|
281
|
+
compileShareAccessPlan
|
|
282
|
+
} from "./chunk-n68vz95m.js";
|
|
283
|
+
import {
|
|
284
|
+
createObjectQueryBuilder2,
|
|
285
|
+
decorateObjectQueryExecutor
|
|
286
|
+
} from "./chunk-80nh73br.js";
|
|
266
287
|
import {
|
|
267
288
|
SandboxError2,
|
|
268
289
|
sandboxCredentialIssue2,
|
|
269
290
|
staticSandboxRecipe2
|
|
270
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-rtdrm592.js";
|
|
271
292
|
import {
|
|
272
|
-
|
|
273
|
-
} from "./chunk-
|
|
293
|
+
resolveLanguageModel2
|
|
294
|
+
} from "./chunk-3723kgba.js";
|
|
274
295
|
import {
|
|
275
296
|
schemaRecordToJsonSchema2
|
|
276
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-0kgrghqx.js";
|
|
277
298
|
import {
|
|
278
299
|
requestPipelineRun2
|
|
279
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-6ef4esq4.js";
|
|
280
301
|
import {
|
|
281
302
|
PipelineError2
|
|
282
303
|
} from "./chunk-hke9aeen.js";
|
|
283
|
-
import {
|
|
284
|
-
createObjectQueryBuilder2,
|
|
285
|
-
decorateObjectQueryExecutor
|
|
286
|
-
} from "./chunk-80nh73br.js";
|
|
287
|
-
import {
|
|
288
|
-
lineageColumn,
|
|
289
|
-
isUnknownLineage,
|
|
290
|
-
versionLineage
|
|
291
|
-
} from "./chunk-ff5xkv0p.js";
|
|
292
304
|
import {
|
|
293
305
|
executionRecordInputFromRuntime,
|
|
294
306
|
ensureExecutionRecord2,
|
|
295
307
|
createPrimitiveExecutionRecord,
|
|
296
308
|
restoreTrustedPrimitiveExecutionScope
|
|
297
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-8tqnsx3q.js";
|
|
298
310
|
import {
|
|
299
|
-
|
|
300
|
-
|
|
311
|
+
lineageColumn,
|
|
312
|
+
isUnknownLineage,
|
|
313
|
+
versionLineage
|
|
314
|
+
} from "./chunk-tfzvjdms.js";
|
|
315
|
+
import {
|
|
316
|
+
PendingTasks
|
|
317
|
+
} from "./chunk-d9xbwh3h.js";
|
|
301
318
|
import {
|
|
302
319
|
getDatasetPrimaryKeyColumns2
|
|
303
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-w3t94hm6.js";
|
|
321
|
+
import {
|
|
322
|
+
LakeValueRefusedError2
|
|
323
|
+
} from "./chunk-hgj98cbb.js";
|
|
304
324
|
import {
|
|
305
325
|
ShareGrantStorageError2,
|
|
306
326
|
objectReadScopeForAccessPlan
|
|
307
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-186k5yz3.js";
|
|
308
328
|
import {
|
|
309
329
|
ActionRunError2
|
|
310
330
|
} from "./chunk-3gbefjg5.js";
|
|
@@ -319,22 +339,18 @@ import {
|
|
|
319
339
|
import {
|
|
320
340
|
eventAttribution2
|
|
321
341
|
} from "./chunk-mzx71snp.js";
|
|
322
|
-
import {
|
|
323
|
-
normalizeParams
|
|
324
|
-
} from "./chunk-21q0j5f2.js";
|
|
325
342
|
import {
|
|
326
343
|
ObjectQueryPlanningError2
|
|
327
344
|
} from "./chunk-0k1h5hmr.js";
|
|
345
|
+
import {
|
|
346
|
+
normalizeParams
|
|
347
|
+
} from "./chunk-stmxh0hv.js";
|
|
328
348
|
import {
|
|
329
349
|
MaterializationValidationError2,
|
|
330
350
|
MaterializationObjectNotFoundError2,
|
|
331
351
|
UniqueValueViolationError2,
|
|
332
352
|
isMaterializationConflictError2
|
|
333
353
|
} from "./chunk-y7dbmaqh.js";
|
|
334
|
-
import {
|
|
335
|
-
OntologyValidationError2,
|
|
336
|
-
OntologyNotFoundError2
|
|
337
|
-
} from "./chunk-cqr3acm1.js";
|
|
338
354
|
import {
|
|
339
355
|
ModelProviderError2,
|
|
340
356
|
ModelStreamError2,
|
|
@@ -342,6 +358,10 @@ import {
|
|
|
342
358
|
StructuredOutputError2,
|
|
343
359
|
sameEmbeddingModel
|
|
344
360
|
} from "./chunk-rtkqczbr.js";
|
|
361
|
+
import {
|
|
362
|
+
OntologyValidationError2,
|
|
363
|
+
OntologyNotFoundError2
|
|
364
|
+
} from "./chunk-cqr3acm1.js";
|
|
345
365
|
import {
|
|
346
366
|
AgentRequestError2,
|
|
347
367
|
AgentMemoryError2
|
|
@@ -669,6 +689,26 @@ function getRequestClient(execution) {
|
|
|
669
689
|
return requestClients.get(execution);
|
|
670
690
|
}
|
|
671
691
|
|
|
692
|
+
// src/shared/params/artifact-refs.ts
|
|
693
|
+
async function assertParamArtifactsUpdatable(input) {
|
|
694
|
+
const references = [];
|
|
695
|
+
for (const [paramId, schema] of Object.entries(input.schemas)) {
|
|
696
|
+
if (isObjectRefSchema2(schema))
|
|
697
|
+
continue;
|
|
698
|
+
const ids = collectArtifactRefIds(schema, input.values[paramId], input.valueTypesById, new Set);
|
|
699
|
+
for (const id of ids)
|
|
700
|
+
references.push({ paramId, id });
|
|
701
|
+
}
|
|
702
|
+
if (references.length === 0)
|
|
703
|
+
return;
|
|
704
|
+
const updatable = await input.updatable(new Set(references.map((reference) => reference.id)));
|
|
705
|
+
for (const { paramId, id } of references) {
|
|
706
|
+
if (updatable.has(id))
|
|
707
|
+
continue;
|
|
708
|
+
throw input.invalid(artifactReferenceProblem(input.describe(paramId), id));
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
672
712
|
// src/shared/params/user-refs.ts
|
|
673
713
|
async function assertParamUsersActive(input) {
|
|
674
714
|
const references = [];
|
|
@@ -1683,16 +1723,49 @@ async function publishQueuedRunCancellation(runtime, run) {
|
|
|
1683
1723
|
}
|
|
1684
1724
|
|
|
1685
1725
|
// src/agents/child-question.ts
|
|
1726
|
+
var AGENT_QUESTION_LIMITS2 = { questions: 4, choices: 4 };
|
|
1727
|
+
function agentQuestionsText2(questions) {
|
|
1728
|
+
const lines = questions.map((question) => {
|
|
1729
|
+
const choices = question.choices?.length ? ` (${question.multiple ? "any of: " : ""}${question.choices.join(" / ")})` : "";
|
|
1730
|
+
return `${question.question}${choices}`;
|
|
1731
|
+
});
|
|
1732
|
+
return lines.length === 1 ? lines[0] ?? "" : lines.map((line, i) => `${i + 1}. ${line}`).join(`
|
|
1733
|
+
`);
|
|
1734
|
+
}
|
|
1735
|
+
function agentQuestionsOf(input) {
|
|
1736
|
+
if (!isJsonObject2(input))
|
|
1737
|
+
return;
|
|
1738
|
+
if (typeof input.question === "string")
|
|
1739
|
+
return [{ question: input.question.trim() }];
|
|
1740
|
+
if (!Array.isArray(input.questions))
|
|
1741
|
+
return;
|
|
1742
|
+
const questions = input.questions.flatMap((value) => {
|
|
1743
|
+
if (!isJsonObject2(value) || typeof value.question !== "string")
|
|
1744
|
+
return [];
|
|
1745
|
+
const choices = Array.isArray(value.choices) ? value.choices.filter((choice) => typeof choice === "string") : [];
|
|
1746
|
+
return [
|
|
1747
|
+
{
|
|
1748
|
+
question: value.question.trim(),
|
|
1749
|
+
...choices.length > 0 ? { choices } : {},
|
|
1750
|
+
...value.multiple === true ? { multiple: true } : {}
|
|
1751
|
+
}
|
|
1752
|
+
];
|
|
1753
|
+
});
|
|
1754
|
+
return questions.length > 0 ? questions : undefined;
|
|
1755
|
+
}
|
|
1756
|
+
function isChildAskTool2(toolName) {
|
|
1757
|
+
return toolName === "ask" || toolName === "ask_parent";
|
|
1758
|
+
}
|
|
1686
1759
|
function isAwaitingAnswerRun2(run) {
|
|
1687
1760
|
return run?.kind === "subagent" && run.status === "succeeded" && run.finishReason === "awaiting_answer";
|
|
1688
1761
|
}
|
|
1689
1762
|
function deferredChildQuestion2(messages) {
|
|
1690
|
-
const asked = messages.flatMap((message) => message.parts).flatMap((part) => part.type === "tool-call" && part.toolName
|
|
1763
|
+
const asked = messages.flatMap((message) => message.parts).flatMap((part) => part.type === "tool-call" && isChildAskTool2(part.toolName) && part.state === "output-available" && isJsonObject2(part.output) && part.output.status === "deferred" ? [{ input: part.input, output: part.output }] : []).at(-1);
|
|
1691
1764
|
if (!asked)
|
|
1692
1765
|
return;
|
|
1693
|
-
const
|
|
1766
|
+
const questions = agentQuestionsOf(asked.input);
|
|
1694
1767
|
const { question: id } = asked.output;
|
|
1695
|
-
return
|
|
1768
|
+
return questions && typeof id === "string" ? { id, text: agentQuestionsText2(questions) } : undefined;
|
|
1696
1769
|
}
|
|
1697
1770
|
|
|
1698
1771
|
// src/agents/subagent-runs.ts
|
|
@@ -1952,12 +2025,13 @@ async function forkAgentThread(runtime, input) {
|
|
|
1952
2025
|
const id = createAgentThreadId2();
|
|
1953
2026
|
const sandboxParams = source.sandboxParams === undefined ? undefined : normalizeSandboxBinding(sandbox?.definition, source.sandboxParams, runtime.ontology);
|
|
1954
2027
|
try {
|
|
2028
|
+
const ruleIn = await transactionArtifactAccessRules(runtime);
|
|
1955
2029
|
return await runtime.storage.transaction(async (tx) => {
|
|
1956
2030
|
const threads = tx.agents?.threads;
|
|
1957
2031
|
if (!threads) {
|
|
1958
2032
|
throw new AgentRequestError2("storage_unavailable", "[Sixb] Agent storage is not configured.");
|
|
1959
2033
|
}
|
|
1960
|
-
const artifactCopies = await copySharedArtifacts(runtime, tx, {
|
|
2034
|
+
const artifactCopies = await copySharedArtifacts(runtime, tx, ruleIn, {
|
|
1961
2035
|
sourceThreadId: source.id,
|
|
1962
2036
|
forkId: id,
|
|
1963
2037
|
owner: input.ownerPrincipal
|
|
@@ -1982,7 +2056,7 @@ async function forkAgentThread(runtime, input) {
|
|
|
1982
2056
|
throw error;
|
|
1983
2057
|
}
|
|
1984
2058
|
}
|
|
1985
|
-
async function copySharedArtifacts(runtime, tx, input) {
|
|
2059
|
+
async function copySharedArtifacts(runtime, tx, ruleIn, input) {
|
|
1986
2060
|
const { projectId } = runtime;
|
|
1987
2061
|
const artifacts = tx.artifacts;
|
|
1988
2062
|
if (!artifacts) {
|
|
@@ -1996,7 +2070,7 @@ async function copySharedArtifacts(runtime, tx, input) {
|
|
|
1996
2070
|
}
|
|
1997
2071
|
return {};
|
|
1998
2072
|
}
|
|
1999
|
-
const access =
|
|
2073
|
+
const access = ruleIn(tx);
|
|
2000
2074
|
const copies = {};
|
|
2001
2075
|
const { artifacts: shared } = await artifacts.list({ projectId, threadId: input.sourceThreadId });
|
|
2002
2076
|
for (const artifact of shared) {
|
|
@@ -2014,8 +2088,10 @@ async function copySharedArtifacts(runtime, tx, input) {
|
|
|
2014
2088
|
async function createCopy(artifacts, input) {
|
|
2015
2089
|
for (let attempt = 1;; attempt += 1) {
|
|
2016
2090
|
const id = createArtifactId();
|
|
2091
|
+
const previews = boardPreviewsOfCopy(id);
|
|
2017
2092
|
try {
|
|
2018
|
-
await artifacts.copy({ ...input, id });
|
|
2093
|
+
await artifacts.copy({ ...input, id, outlineOf: previews.outlineOf });
|
|
2094
|
+
await previews.carry(artifacts, input.projectId);
|
|
2019
2095
|
return id;
|
|
2020
2096
|
} catch (error) {
|
|
2021
2097
|
const collided = error instanceof ArtifactStorageError && error.code === "artifact_exists";
|
|
@@ -2679,7 +2755,7 @@ async function requestAgentRun2(runtime, execution, models, input) {
|
|
|
2679
2755
|
function isRetryableAgentRun2(run) {
|
|
2680
2756
|
return run.status === "failed" || run.status === "cancelled" && run.finishReason === "interrupted";
|
|
2681
2757
|
}
|
|
2682
|
-
async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
2758
|
+
async function retryAgentRun2(runtime, execution, models, failedRun, blobStorage) {
|
|
2683
2759
|
resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
2684
2760
|
execution,
|
|
2685
2761
|
authorization: runtime.runtimeAuthorization
|
|
@@ -2701,7 +2777,9 @@ async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
|
2701
2777
|
const runId = createAgentRunId2();
|
|
2702
2778
|
const durableExecution = await prepareDurableAgentExecution(runtime, execution, runId);
|
|
2703
2779
|
await assertAiLimitPreflight(runtime, durableExecution);
|
|
2704
|
-
const
|
|
2780
|
+
const artifacts = runtime.storage.artifacts;
|
|
2781
|
+
const documents = artifacts && blobStorage ? await undoneTurnDocuments({ projectId: runtime.projectId, storage: artifacts, blobStorage }, failedRun.id) : {};
|
|
2782
|
+
const { run, undone } = await runtime.storage.transaction(async (tx) => {
|
|
2705
2783
|
const agents = tx.agents;
|
|
2706
2784
|
if (!agents) {
|
|
2707
2785
|
throw new AgentRequestError2("storage_unavailable", "[Sixb] Agent storage is not configured.");
|
|
@@ -2711,14 +2789,19 @@ async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
|
2711
2789
|
threadId: failedRun.threadId,
|
|
2712
2790
|
runId: failedRun.id
|
|
2713
2791
|
});
|
|
2714
|
-
const
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2792
|
+
const trigger = await agents.messages.getById({
|
|
2793
|
+
projectId: runtime.projectId,
|
|
2794
|
+
id: failedRun.triggerMessageId
|
|
2795
|
+
});
|
|
2796
|
+
const requester = trigger?.authorPrincipal;
|
|
2797
|
+
const undone = await tx.artifacts?.undoTurnWrites({
|
|
2798
|
+
projectId: runtime.projectId,
|
|
2799
|
+
turnRunId: failedRun.id,
|
|
2800
|
+
documents,
|
|
2801
|
+
...requester ? { requester } : {}
|
|
2802
|
+
});
|
|
2720
2803
|
await tx.executions.create(durableExecution);
|
|
2721
|
-
|
|
2804
|
+
const run = await agents.runs.create({
|
|
2722
2805
|
id: runId,
|
|
2723
2806
|
projectId: runtime.projectId,
|
|
2724
2807
|
executionId: durableExecution.id,
|
|
@@ -2726,7 +2809,9 @@ async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
|
2726
2809
|
triggerMessageId: failedRun.triggerMessageId,
|
|
2727
2810
|
spec: inPlace(thread, failedRun.spec ?? await resolveConversationRunSpec({ models, selection: {}, settings: {} }))
|
|
2728
2811
|
});
|
|
2812
|
+
return { run, undone };
|
|
2729
2813
|
});
|
|
2814
|
+
await announceArtifactUpdates(runtime.events, (undone?.restored ?? []).map(({ version }) => version));
|
|
2730
2815
|
await publishRunActivity(runtime, run);
|
|
2731
2816
|
const jobId = await dispatchAgentRun(runtime, agents, runId);
|
|
2732
2817
|
return { run, ...jobId ? { jobId } : {}, createdThread: false };
|
|
@@ -2845,22 +2930,6 @@ async function resumedConversationRunSpec(models, paused, approvalMode) {
|
|
|
2845
2930
|
});
|
|
2846
2931
|
return Object.freeze({ ...kept, approvalMode });
|
|
2847
2932
|
}
|
|
2848
|
-
async function childRunIds(agents, parent) {
|
|
2849
|
-
const ids = [];
|
|
2850
|
-
for (;; ) {
|
|
2851
|
-
const page = await agents.runs.list({
|
|
2852
|
-
projectId: parent.projectId,
|
|
2853
|
-
kinds: ["subagent"],
|
|
2854
|
-
parentRunId: parent.id,
|
|
2855
|
-
order: "asc",
|
|
2856
|
-
limit: 100,
|
|
2857
|
-
offset: ids.length
|
|
2858
|
-
});
|
|
2859
|
-
ids.push(...page.runs.map((run) => run.id));
|
|
2860
|
-
if (!page.hasMore || page.runs.length === 0)
|
|
2861
|
-
return ids;
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
2933
|
async function continuedSelection(runtime, models, input) {
|
|
2865
2934
|
const agents = requireAgentStorage(runtime);
|
|
2866
2935
|
const threadId = input.threadId ?? "";
|
|
@@ -3079,7 +3148,7 @@ function requireAgentStorage(runtime) {
|
|
|
3079
3148
|
}
|
|
3080
3149
|
|
|
3081
3150
|
// src/agents/execution.ts
|
|
3082
|
-
function createAgentRuntime(runtime, execution, models, decision, sandbox, security) {
|
|
3151
|
+
function createAgentRuntime(runtime, execution, models, decision, sandbox, security, blobStorage) {
|
|
3083
3152
|
const authority = resolveRuntimeAuthorizationForProject(runtime);
|
|
3084
3153
|
const turnModels = {
|
|
3085
3154
|
language: models?.language,
|
|
@@ -3544,7 +3613,7 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3544
3613
|
if (!agent) {
|
|
3545
3614
|
throw new AgentRequestError2("agent_not_found", "[Sixb] The project Agent is unavailable.");
|
|
3546
3615
|
}
|
|
3547
|
-
const result = await retryAgentRun2(runtime, execution, models?.language, failedRun);
|
|
3616
|
+
const result = await retryAgentRun2(runtime, execution, models?.language, failedRun, blobStorage);
|
|
3548
3617
|
return { ...result, run: await attachRunView(runtime, result.run) };
|
|
3549
3618
|
},
|
|
3550
3619
|
cancel: async (runId) => {
|
|
@@ -3866,12 +3935,12 @@ function commandContext(runtime, execution, connectorId) {
|
|
|
3866
3935
|
if (!resolved.ref.credential) {
|
|
3867
3936
|
throw new AuthorizationError2(`manage:connector:${connectorId}`, "[Sixb] Connector connection management requires a session or access token.");
|
|
3868
3937
|
}
|
|
3869
|
-
assertCanManageConnector2(runtime, connectorId);
|
|
3870
3938
|
return Object.freeze({
|
|
3871
3939
|
execution: Object.freeze(executionRecordInputFromRuntime({
|
|
3872
3940
|
execution,
|
|
3873
3941
|
runtimeAuthorization: runtime.runtimeAuthorization
|
|
3874
|
-
}))
|
|
3942
|
+
})),
|
|
3943
|
+
canManage: isAllowed2(resolved.context, { kind: "connector.manage", connectorId })
|
|
3875
3944
|
});
|
|
3876
3945
|
}
|
|
3877
3946
|
|
|
@@ -3965,7 +4034,7 @@ function versionKey(ref) {
|
|
|
3965
4034
|
}
|
|
3966
4035
|
|
|
3967
4036
|
// src/datasets/execution.ts
|
|
3968
|
-
function createDatasetsRuntime(runtime, execution, source, lakeStorage, blobStorage, versionMarkings) {
|
|
4037
|
+
function createDatasetsRuntime(runtime, execution, source, lakeStorage, blobStorage, versionMarkings, ingestRuntime) {
|
|
3969
4038
|
const authority = resolveRuntimeAuthorizationForProject(runtime);
|
|
3970
4039
|
const allowed = (datasetId) => isRuntimeAllowed2(runtime, { kind: "dataset.view", datasetId });
|
|
3971
4040
|
return {
|
|
@@ -4042,41 +4111,44 @@ function createDatasetsRuntime(runtime, execution, source, lakeStorage, blobStor
|
|
|
4042
4111
|
if (typeof lakeStorage.beginMerge !== "function") {
|
|
4043
4112
|
throw new Error("[Sixb] Dataset ingestion requires a lake provider with merge support.");
|
|
4044
4113
|
}
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4114
|
+
const inbox = runtime.storage.datasetIngest;
|
|
4115
|
+
if (!inbox) {
|
|
4116
|
+
throw new Error("[Sixb] Dataset ingestion requires storage with a dataset ingest inbox.");
|
|
4117
|
+
}
|
|
4118
|
+
const changes = await validateDatasetMergeChanges2({
|
|
4049
4119
|
dataset: registered,
|
|
4050
|
-
|
|
4051
|
-
signal: input.signal ?? new AbortController().signal
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4120
|
+
blobStorage,
|
|
4121
|
+
signal: input.signal ?? new AbortController().signal
|
|
4122
|
+
}, input.changes);
|
|
4123
|
+
if (changes.length === 0)
|
|
4124
|
+
return { deliveryId: null, changes: 0 };
|
|
4125
|
+
assertLakeHolds(lakeStorage, registered, changes);
|
|
4126
|
+
const { delivery, flush } = await inbox.append({
|
|
4127
|
+
projectId: runtime.projectId,
|
|
4128
|
+
datasetId: registered.id,
|
|
4129
|
+
executionId: execution.id,
|
|
4130
|
+
correlationId: execution.correlationId,
|
|
4131
|
+
definitionHash: datasetDefinitionHash(registered),
|
|
4132
|
+
changes
|
|
4057
4133
|
});
|
|
4058
|
-
if (
|
|
4059
|
-
await
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
type: "dataset.version.committed",
|
|
4063
|
-
payload: {
|
|
4064
|
-
datasetId: registered.id,
|
|
4065
|
-
versionId: result.version.versionId,
|
|
4066
|
-
createdAt: result.version.createdAt.toISOString(),
|
|
4067
|
-
producer,
|
|
4068
|
-
rowsChanged: result.version.rowsChanged,
|
|
4069
|
-
lineageChanged: result.version.lineageChanged
|
|
4070
|
-
}
|
|
4071
|
-
}
|
|
4072
|
-
],
|
|
4073
|
-
correlationId: execution.correlationId
|
|
4074
|
-
}, { source: "SixbDatasets" });
|
|
4134
|
+
if (ingestRuntime.writesInline) {
|
|
4135
|
+
await ingestRuntime.flushAll(registered.id, input.signal ?? new AbortController().signal);
|
|
4136
|
+
} else if (flush.requested) {
|
|
4137
|
+
await tryEnqueueIngestFlush(runtime.queues.lake, runtime.projectId, { datasetId: registered.id, request: flush.request }, { source: "ingest", correlationId: execution.correlationId });
|
|
4075
4138
|
}
|
|
4076
|
-
return
|
|
4139
|
+
return { deliveryId: delivery.id, changes: changes.length };
|
|
4077
4140
|
}
|
|
4078
4141
|
};
|
|
4079
4142
|
}
|
|
4143
|
+
function assertLakeHolds(lakeStorage, dataset, changes) {
|
|
4144
|
+
try {
|
|
4145
|
+
lakeStorage.assertHoldsChanges?.(lakeDatasetDefinition2(dataset), changes);
|
|
4146
|
+
} catch (error) {
|
|
4147
|
+
if (!(error instanceof LakeValueRefusedError2))
|
|
4148
|
+
throw error;
|
|
4149
|
+
throw new DatasetValidationError2(`[Sixb] Dataset '${dataset.id}' cannot hold change ${error.changeIndex}: ${error.message}`, { cause: error });
|
|
4150
|
+
}
|
|
4151
|
+
}
|
|
4080
4152
|
function readerVersion(runtime, version) {
|
|
4081
4153
|
const { lineage: _lineage, producer, inputs, ...rest } = version;
|
|
4082
4154
|
return {
|
|
@@ -4251,28 +4323,39 @@ function createEventsRuntime(runtime) {
|
|
|
4251
4323
|
const visible = async (events) => {
|
|
4252
4324
|
switch (authority.type) {
|
|
4253
4325
|
case "denied":
|
|
4254
|
-
case "delegated":
|
|
4255
4326
|
return [];
|
|
4327
|
+
case "delegated": {
|
|
4328
|
+
const readable = await readableArtifactEvents(runtime, events);
|
|
4329
|
+
return events.filter((event) => readable.has(event));
|
|
4330
|
+
}
|
|
4256
4331
|
case "unrestricted":
|
|
4257
4332
|
return events;
|
|
4258
4333
|
case "principal": {
|
|
4259
|
-
const
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
const clearanceFor = await eventClearances(reader, viewable, clearance);
|
|
4266
|
-
const readable = clearance ? viewable.filter((event) => !readsUnreadable(event, clearance)) : viewable;
|
|
4267
|
-
const shown = await visibleUnderConditions(reader, readable, conditions, clearanceFor, history);
|
|
4268
|
-
return shown.map((event) => {
|
|
4269
|
-
const redacting = clearanceFor(event);
|
|
4270
|
-
const redacted = redacting ? redactDomainEvent(event, redacting) : event;
|
|
4271
|
-
return withoutHiddenPriorState(event, redacted, conditions);
|
|
4272
|
-
});
|
|
4334
|
+
const shown = await visibleByGrants(authority.context, events);
|
|
4335
|
+
if (!events.some((event) => event.topic === "artifacts"))
|
|
4336
|
+
return shown;
|
|
4337
|
+
const readable = await readableArtifactEvents(runtime, events);
|
|
4338
|
+
const byCursor = new Map(shown.map((event) => [event.cursor, event]));
|
|
4339
|
+
return events.filter((event) => event.topic === "artifacts" ? readable.has(event) : byCursor.has(event.cursor)).map((event) => byCursor.get(event.cursor) ?? event);
|
|
4273
4340
|
}
|
|
4274
4341
|
}
|
|
4275
4342
|
};
|
|
4343
|
+
const visibleByGrants = async (context, events) => {
|
|
4344
|
+
const reader = runtime.objectReader;
|
|
4345
|
+
const conditions = readerViewConditions(reader);
|
|
4346
|
+
const viewable = events.filter((event) => canViewEvent2(context, event, conditions));
|
|
4347
|
+
if (viewable.length === 0)
|
|
4348
|
+
return viewable;
|
|
4349
|
+
const clearance = await readerClearance(reader);
|
|
4350
|
+
const clearanceFor = await eventClearances(reader, viewable, clearance);
|
|
4351
|
+
const readable = clearance ? viewable.filter((event) => !readsUnreadable(event, clearance)) : viewable;
|
|
4352
|
+
const shown = await visibleUnderConditions(reader, readable, conditions, clearanceFor, history);
|
|
4353
|
+
return shown.map((event) => {
|
|
4354
|
+
const redacting = clearanceFor(event);
|
|
4355
|
+
const redacted = redacting ? redactDomainEvent(event, redacting) : event;
|
|
4356
|
+
return withoutHiddenPriorState(event, redacted, conditions);
|
|
4357
|
+
});
|
|
4358
|
+
};
|
|
4276
4359
|
return {
|
|
4277
4360
|
visible,
|
|
4278
4361
|
append: (input) => {
|
|
@@ -4328,6 +4411,27 @@ function createEventsRuntime(runtime) {
|
|
|
4328
4411
|
}
|
|
4329
4412
|
};
|
|
4330
4413
|
}
|
|
4414
|
+
async function readableArtifactEvents(runtime, events) {
|
|
4415
|
+
const storage = runtime.storage.artifacts;
|
|
4416
|
+
if (!storage)
|
|
4417
|
+
return new Set;
|
|
4418
|
+
const rule = createRuntimeArtifactAccessRule(runtime);
|
|
4419
|
+
const readable = new Map;
|
|
4420
|
+
const reads = (artifactId) => {
|
|
4421
|
+
let read = readable.get(artifactId);
|
|
4422
|
+
if (!read) {
|
|
4423
|
+
read = storage.get({ projectId: runtime.projectId, id: artifactId }).then(async (artifact) => artifact !== null && await rule.accessTo(artifact) !== "none");
|
|
4424
|
+
readable.set(artifactId, read);
|
|
4425
|
+
}
|
|
4426
|
+
return read;
|
|
4427
|
+
};
|
|
4428
|
+
const shown = new Set;
|
|
4429
|
+
for (const event of events) {
|
|
4430
|
+
if (event.topic === "artifacts" && await reads(event.payload.artifactId))
|
|
4431
|
+
shown.add(event);
|
|
4432
|
+
}
|
|
4433
|
+
return shown;
|
|
4434
|
+
}
|
|
4331
4435
|
async function eventClearances(reader, events, clearance) {
|
|
4332
4436
|
const kinds = new Map;
|
|
4333
4437
|
for (const event of events) {
|
|
@@ -4952,6 +5056,7 @@ function snapshotSchemaValue(params) {
|
|
|
4952
5056
|
case "boolean":
|
|
4953
5057
|
case "fileRef":
|
|
4954
5058
|
case "userRef":
|
|
5059
|
+
case "artifactRef":
|
|
4955
5060
|
return snapshotJsonValue(value, path);
|
|
4956
5061
|
default:
|
|
4957
5062
|
return snapshotJsonValue(value, path);
|
|
@@ -5090,7 +5195,6 @@ class WorkflowRunDispatcher2 {
|
|
|
5090
5195
|
principal: SYSTEM_PRINCIPAL2
|
|
5091
5196
|
},
|
|
5092
5197
|
metadata: input.metadata,
|
|
5093
|
-
queueJobId: input.runId,
|
|
5094
5198
|
validateExistingRun: (run) => assertAutomaticExecutionIdentity(this.dependencies, input, run),
|
|
5095
5199
|
createExecution: async (executionId, runId) => createPrimitiveExecutionRecord({
|
|
5096
5200
|
id: executionId,
|
|
@@ -5150,6 +5254,16 @@ async function persistWorkflowRun(input, request) {
|
|
|
5150
5254
|
describe: (fieldId) => `Workflow "${input.workflow.id}" input '${fieldId}'`,
|
|
5151
5255
|
invalid: (message) => new WorkflowValidationError2(message)
|
|
5152
5256
|
});
|
|
5257
|
+
if (input.updatableArtifacts) {
|
|
5258
|
+
await assertParamArtifactsUpdatable({
|
|
5259
|
+
updatable: input.updatableArtifacts,
|
|
5260
|
+
schemas: input.workflow.input,
|
|
5261
|
+
values: request.snapshot,
|
|
5262
|
+
valueTypesById: input.valueTypesById,
|
|
5263
|
+
describe: (fieldId) => `Workflow "${input.workflow.id}" input '${fieldId}'`,
|
|
5264
|
+
invalid: (message) => new WorkflowValidationError2(message)
|
|
5265
|
+
});
|
|
5266
|
+
}
|
|
5153
5267
|
const execution = await input.createExecution(`exec_${randomUUID7()}`, request.runId);
|
|
5154
5268
|
const queuedAt = new Date;
|
|
5155
5269
|
try {
|
|
@@ -5226,14 +5340,14 @@ async function enqueueWorkflowRun(input, run) {
|
|
|
5226
5340
|
projectId: input.projectId,
|
|
5227
5341
|
jobs: [
|
|
5228
5342
|
{
|
|
5229
|
-
|
|
5343
|
+
id: run.id,
|
|
5230
5344
|
type: "workflow.run.requested",
|
|
5231
5345
|
payload: { runId: run.id },
|
|
5232
5346
|
...input.metadata === undefined ? {} : { metadata: input.metadata }
|
|
5233
5347
|
}
|
|
5234
5348
|
]
|
|
5235
5349
|
});
|
|
5236
|
-
if (!job ||
|
|
5350
|
+
if (!job || job.id !== run.id) {
|
|
5237
5351
|
throw new WorkflowRunError2(`[Sixb] Queue did not acknowledge workflow run '${run.id}'.`);
|
|
5238
5352
|
}
|
|
5239
5353
|
return job;
|
|
@@ -5317,6 +5431,7 @@ async function requestWorkflowRun2(runtime, execution, workflow, options = {}) {
|
|
|
5317
5431
|
runId: options.runId,
|
|
5318
5432
|
input: options.input,
|
|
5319
5433
|
source: options.source,
|
|
5434
|
+
updatableArtifacts: (artifactIds) => updatableArtifactIds(runtime, artifactIds),
|
|
5320
5435
|
createExecution: async (executionId, runId) => {
|
|
5321
5436
|
const caller = await ensureExecutionRecord2(runtime.storage.executions, executionRecordInputFromRuntime({
|
|
5322
5437
|
execution,
|
|
@@ -5513,6 +5628,117 @@ import { randomUUID as randomUUID13 } from "crypto";
|
|
|
5513
5628
|
|
|
5514
5629
|
// src/agents/model-loop.ts
|
|
5515
5630
|
import { randomUUID as randomUUID9 } from "crypto";
|
|
5631
|
+
|
|
5632
|
+
// src/agents/tool-input-coercion.ts
|
|
5633
|
+
function coerceToolInput(schema, input) {
|
|
5634
|
+
return coerce(schema, input);
|
|
5635
|
+
}
|
|
5636
|
+
function coerce(schema, value) {
|
|
5637
|
+
if (!isObject(schema))
|
|
5638
|
+
return value;
|
|
5639
|
+
const types = schemaTypes(schema);
|
|
5640
|
+
if (types.length === 0 || types.some((type) => hasType(value, type))) {
|
|
5641
|
+
return coerceInside(schema, value);
|
|
5642
|
+
}
|
|
5643
|
+
if (typeof value === "string") {
|
|
5644
|
+
const text = value.trim();
|
|
5645
|
+
if (types.includes("integer") && /^-?\d+$/.test(text) && Number.isSafeInteger(Number(text))) {
|
|
5646
|
+
return Number(text);
|
|
5647
|
+
}
|
|
5648
|
+
if (types.includes("number") && /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/.test(text) && Number.isFinite(Number(text))) {
|
|
5649
|
+
return Number(text);
|
|
5650
|
+
}
|
|
5651
|
+
if (types.includes("boolean") && (text === "true" || text === "false"))
|
|
5652
|
+
return text === "true";
|
|
5653
|
+
if (types.includes("array") && text.startsWith("[")) {
|
|
5654
|
+
const parsed = parseJson(text);
|
|
5655
|
+
if (Array.isArray(parsed))
|
|
5656
|
+
return coerceInside(schema, parsed);
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5659
|
+
if (types.includes("array") && value !== null && value !== undefined && !Array.isArray(value)) {
|
|
5660
|
+
return [coerce(schema.items, value)];
|
|
5661
|
+
}
|
|
5662
|
+
return value;
|
|
5663
|
+
}
|
|
5664
|
+
function parseJson(text) {
|
|
5665
|
+
try {
|
|
5666
|
+
return JSON.parse(text);
|
|
5667
|
+
} catch {
|
|
5668
|
+
return;
|
|
5669
|
+
}
|
|
5670
|
+
}
|
|
5671
|
+
function coerceInside(schema, value) {
|
|
5672
|
+
if (Array.isArray(value)) {
|
|
5673
|
+
return isObject(schema.items) ? value.map((item) => coerce(schema.items, item)) : value;
|
|
5674
|
+
}
|
|
5675
|
+
if (!isPlainObject(value) || !isObject(schema.properties))
|
|
5676
|
+
return value;
|
|
5677
|
+
const properties = schema.properties;
|
|
5678
|
+
const required = new Set(Array.isArray(schema.required) ? schema.required : []);
|
|
5679
|
+
const result = {};
|
|
5680
|
+
for (const [key, item] of Object.entries(value)) {
|
|
5681
|
+
const property = Object.hasOwn(properties, key) ? properties[key] : undefined;
|
|
5682
|
+
if (item === null && property !== undefined && !required.has(key) && !allowsNull(property)) {
|
|
5683
|
+
continue;
|
|
5684
|
+
}
|
|
5685
|
+
result[key] = property === undefined ? item : coerce(property, item);
|
|
5686
|
+
}
|
|
5687
|
+
return result;
|
|
5688
|
+
}
|
|
5689
|
+
function schemaTypes(schema) {
|
|
5690
|
+
if (typeof schema.type === "string")
|
|
5691
|
+
return [schema.type];
|
|
5692
|
+
if (Array.isArray(schema.type)) {
|
|
5693
|
+
return schema.type.filter((type) => typeof type === "string");
|
|
5694
|
+
}
|
|
5695
|
+
return [];
|
|
5696
|
+
}
|
|
5697
|
+
function allowsNull(schema) {
|
|
5698
|
+
if (schema === true)
|
|
5699
|
+
return true;
|
|
5700
|
+
if (!isObject(schema))
|
|
5701
|
+
return false;
|
|
5702
|
+
if (schemaTypes(schema).includes("null"))
|
|
5703
|
+
return true;
|
|
5704
|
+
if (schema.const === null || Array.isArray(schema.enum) && schema.enum.includes(null)) {
|
|
5705
|
+
return true;
|
|
5706
|
+
}
|
|
5707
|
+
for (const key of ["anyOf", "oneOf"]) {
|
|
5708
|
+
const variants = schema[key];
|
|
5709
|
+
if (Array.isArray(variants) && variants.some(allowsNull))
|
|
5710
|
+
return true;
|
|
5711
|
+
}
|
|
5712
|
+
return schemaTypes(schema).length === 0 && schema.anyOf === undefined && schema.oneOf === undefined && schema.enum === undefined && schema.const === undefined;
|
|
5713
|
+
}
|
|
5714
|
+
function hasType(value, type) {
|
|
5715
|
+
switch (type) {
|
|
5716
|
+
case "null":
|
|
5717
|
+
return value === null;
|
|
5718
|
+
case "string":
|
|
5719
|
+
return typeof value === "string";
|
|
5720
|
+
case "boolean":
|
|
5721
|
+
return typeof value === "boolean";
|
|
5722
|
+
case "number":
|
|
5723
|
+
return typeof value === "number";
|
|
5724
|
+
case "integer":
|
|
5725
|
+
return Number.isInteger(value);
|
|
5726
|
+
case "array":
|
|
5727
|
+
return Array.isArray(value);
|
|
5728
|
+
case "object":
|
|
5729
|
+
return isPlainObject(value);
|
|
5730
|
+
default:
|
|
5731
|
+
return true;
|
|
5732
|
+
}
|
|
5733
|
+
}
|
|
5734
|
+
function isObject(value) {
|
|
5735
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5736
|
+
}
|
|
5737
|
+
function isPlainObject(value) {
|
|
5738
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5739
|
+
}
|
|
5740
|
+
|
|
5741
|
+
// src/agents/model-loop.ts
|
|
5516
5742
|
var MAX_PROVIDER_DATA_BYTES = 256 * 1024;
|
|
5517
5743
|
async function runModelLoop2(input) {
|
|
5518
5744
|
assertLoopInput(input);
|
|
@@ -5520,7 +5746,8 @@ async function runModelLoop2(input) {
|
|
|
5520
5746
|
const toolSpecifications = [...tools.values()].map((tool) => ({
|
|
5521
5747
|
name: tool.name,
|
|
5522
5748
|
description: tool.description,
|
|
5523
|
-
inputSchema: tool.inputSchema
|
|
5749
|
+
inputSchema: tool.inputSchema,
|
|
5750
|
+
...tool.strict ? { strict: true } : {}
|
|
5524
5751
|
}));
|
|
5525
5752
|
let messages = [...input.messages];
|
|
5526
5753
|
const steps = [];
|
|
@@ -5863,7 +6090,7 @@ async function executeToolCall(call, tools, callId, signal, onEvent) {
|
|
|
5863
6090
|
}
|
|
5864
6091
|
let parsed;
|
|
5865
6092
|
try {
|
|
5866
|
-
parsed = tool.parseInput(part.input);
|
|
6093
|
+
parsed = tool.parseInput(coerceToolInput(tool.inputSchema, part.input));
|
|
5867
6094
|
} catch (error) {
|
|
5868
6095
|
const errorText = error instanceof Error ? error.message : "Tool input validation failed.";
|
|
5869
6096
|
await onEvent?.({
|
|
@@ -7156,7 +7383,7 @@ function codedViolation(objectTypeId, propertyId, message, options = {}) {
|
|
|
7156
7383
|
}
|
|
7157
7384
|
|
|
7158
7385
|
// src/objects/materializer-adapter.ts
|
|
7159
|
-
async function commitRuntimeOperations(ctx, operations, expectedObjects = []) {
|
|
7386
|
+
async function commitRuntimeOperations(ctx, operations, expectedObjects = [], unchangeableArtifactIds = []) {
|
|
7160
7387
|
const mutations = getOntologyMutationRuntime2(ctx);
|
|
7161
7388
|
try {
|
|
7162
7389
|
return await mutations.commitEdits({
|
|
@@ -7165,13 +7392,14 @@ async function commitRuntimeOperations(ctx, operations, expectedObjects = []) {
|
|
|
7165
7392
|
operations,
|
|
7166
7393
|
expectedObjects,
|
|
7167
7394
|
expectedLinks: [],
|
|
7168
|
-
expectedLinkScopes: []
|
|
7395
|
+
expectedLinkScopes: [],
|
|
7396
|
+
unchangeableArtifactIds
|
|
7169
7397
|
});
|
|
7170
7398
|
} catch (error) {
|
|
7171
7399
|
throw uniqueViolationError(error) ?? error;
|
|
7172
7400
|
}
|
|
7173
7401
|
}
|
|
7174
|
-
async function commitRuntimeBatch(ctx, groups, expectedObjects = []) {
|
|
7402
|
+
async function commitRuntimeBatch(ctx, groups, expectedObjects = [], unchangeableArtifactIds = []) {
|
|
7175
7403
|
const operations = groups.flatMap((group) => group.operations);
|
|
7176
7404
|
if (operations.length === 0) {
|
|
7177
7405
|
return { commit: null, outcomes: new Map };
|
|
@@ -7185,7 +7413,8 @@ async function commitRuntimeBatch(ctx, groups, expectedObjects = []) {
|
|
|
7185
7413
|
source: { kind: "runtime", requestId: randomUUID14() },
|
|
7186
7414
|
operations,
|
|
7187
7415
|
...operationGroups.length > 0 ? { operationGroups } : {},
|
|
7188
|
-
...expectedObjects.length > 0 ? { expectedObjects } : {}
|
|
7416
|
+
...expectedObjects.length > 0 ? { expectedObjects } : {},
|
|
7417
|
+
unchangeableArtifactIds
|
|
7189
7418
|
});
|
|
7190
7419
|
} catch (error) {
|
|
7191
7420
|
throw uniqueViolationError(error) ?? error;
|
|
@@ -7490,7 +7719,7 @@ async function runRuntimeItemBatch(batch) {
|
|
|
7490
7719
|
claims.set(plan.key, { index, fingerprint: plan.fingerprint });
|
|
7491
7720
|
planned.push({ index, operations: plan.operations });
|
|
7492
7721
|
}
|
|
7493
|
-
const commit = await commitRuntimeBatch(batch.ctx, planned, batch.expectedObjects);
|
|
7722
|
+
const commit = await commitRuntimeBatch(batch.ctx, planned, batch.expectedObjects, batch.unchangeableArtifactIds);
|
|
7494
7723
|
for (const { index } of planned) {
|
|
7495
7724
|
const outcomes = requireItemOutcomes(commit, index);
|
|
7496
7725
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -7577,6 +7806,21 @@ async function restoreObject2(ctx, primaryId) {
|
|
|
7577
7806
|
})
|
|
7578
7807
|
]);
|
|
7579
7808
|
}
|
|
7809
|
+
// src/objects/artifact-refs.ts
|
|
7810
|
+
async function unchangeableArtifactIds(ctx, writes) {
|
|
7811
|
+
const valueTypesById = ctx.ontology.getValueTypesById();
|
|
7812
|
+
const named = new Set;
|
|
7813
|
+
for (const properties of writes) {
|
|
7814
|
+
for (const property of ctx.objectType.properties) {
|
|
7815
|
+
collectArtifactRefIds(property.schema, properties[property.id], valueTypesById, named);
|
|
7816
|
+
}
|
|
7817
|
+
}
|
|
7818
|
+
if (named.size === 0 || !ctx.storage.artifacts)
|
|
7819
|
+
return [];
|
|
7820
|
+
const updatable = await updatableArtifactIds(ctx, named);
|
|
7821
|
+
return [...named].filter((id) => !updatable.has(id));
|
|
7822
|
+
}
|
|
7823
|
+
|
|
7580
7824
|
// src/objects/object/upsert.ts
|
|
7581
7825
|
async function upsertObject2(ctx, properties) {
|
|
7582
7826
|
await assertCanEditType(ctx, ctx.objectType.id);
|
|
@@ -7590,14 +7834,15 @@ async function upsertObject2(ctx, properties) {
|
|
|
7590
7834
|
valueTypesById: ontology.getValueTypesById()
|
|
7591
7835
|
});
|
|
7592
7836
|
checkUniqueValues(normalized.properties);
|
|
7837
|
+
const unchangeable = await unchangeableArtifactIds(ctx, [normalized.properties]);
|
|
7593
7838
|
const ref = { objectTypeId: objectType.id, primaryId: normalized.primaryId };
|
|
7594
7839
|
const write = { id: runtimeOperationId(0), ref, properties: normalized.properties };
|
|
7595
7840
|
if (ctx.objectReader.viewsThroughCondition(objectType.id)) {
|
|
7596
7841
|
const found = await findWrittenObjects(ctx, objectType.id, [ref.primaryId]);
|
|
7597
|
-
const commit = await commitRuntimeOperations(ctx, [writeFoundObject({ ...write, primaryPropertyId, found: found.get(ref.primaryId) })], expectSeen(found.values()));
|
|
7842
|
+
const commit = await commitRuntimeOperations(ctx, [writeFoundObject({ ...write, primaryPropertyId, found: found.get(ref.primaryId) })], expectSeen(found.values()), unchangeable);
|
|
7598
7843
|
return redact(toObjectRow(ctx.projectId, requireEffectiveObject(commit.outcomes[0])));
|
|
7599
7844
|
}
|
|
7600
|
-
const commit = await commitRuntimeOperations(ctx, [objectUpsertOperation(write)]);
|
|
7845
|
+
const commit = await commitRuntimeOperations(ctx, [objectUpsertOperation(write)], [], unchangeable);
|
|
7601
7846
|
return redact(toObjectRow(ctx.projectId, requireEffectiveObject(commit.outcomes[0])));
|
|
7602
7847
|
}
|
|
7603
7848
|
// src/objects/object/upsert-batch.ts
|
|
@@ -7621,11 +7866,13 @@ async function upsertObjectBatch2(ctx, items) {
|
|
|
7621
7866
|
return { error };
|
|
7622
7867
|
}
|
|
7623
7868
|
});
|
|
7869
|
+
const unchangeable = await unchangeableArtifactIds(ctx, normalized.flatMap((object) => ("error" in object) ? [] : [object.properties]));
|
|
7624
7870
|
const found = ctx.objectReader.viewsThroughCondition(objectType.id) ? await findWrittenObjects(ctx, objectType.id, normalized.flatMap((object) => ("error" in object) ? [] : [object.primaryId])) : undefined;
|
|
7625
7871
|
return runRuntimeItemBatch({
|
|
7626
7872
|
ctx,
|
|
7627
7873
|
items,
|
|
7628
7874
|
...found === undefined ? {} : { expectedObjects: expectSeen(found.values()) },
|
|
7875
|
+
unchangeableArtifactIds: unchangeable,
|
|
7629
7876
|
plan(_item, index) {
|
|
7630
7877
|
const object = normalized[index];
|
|
7631
7878
|
if ("error" in object)
|
|
@@ -9945,21 +10192,23 @@ function createExecutionFacades(runtime, execution, dependencies) {
|
|
|
9945
10192
|
const actions = createActionsRuntime(runtime, execution);
|
|
9946
10193
|
const workflows = createWorkflowsRuntime(runtime, execution, dependencies.definitions.workflows);
|
|
9947
10194
|
const session = runtime.modelExecution ?? new ModelExecutionSession(runtime, execution);
|
|
9948
|
-
const agent = createAgentRuntime(runtime, execution, dependencies.definitions.models, createDecisionRuntime(runtime, execution, dependencies.definitions.models, session, "agent.run"), dependencies.sandbox, dependencies.definitions.security);
|
|
10195
|
+
const agent = createAgentRuntime(runtime, execution, dependencies.definitions.models, createDecisionRuntime(runtime, execution, dependencies.definitions.models, session, "agent.run"), dependencies.sandbox, dependencies.definitions.security, dependencies.blobStorage);
|
|
9949
10196
|
return {
|
|
9950
10197
|
objects: createObjectsRuntime(runtime, execution, dependencies.blobStorage, {
|
|
9951
10198
|
projections: dependencies.definitions.projections,
|
|
9952
10199
|
lakeStorage: dependencies.lakeStorage
|
|
9953
10200
|
}),
|
|
9954
10201
|
actions,
|
|
9955
|
-
datasets: createDatasetsRuntime(runtime, execution, dependencies.definitions.datasets, dependencies.lakeStorage, dependencies.blobStorage, dependencies.datasetVersionMarkings),
|
|
10202
|
+
datasets: createDatasetsRuntime(runtime, execution, dependencies.definitions.datasets, dependencies.lakeStorage, dependencies.blobStorage, dependencies.datasetVersionMarkings, dependencies.datasetIngest),
|
|
9956
10203
|
workflows,
|
|
9957
10204
|
syncs: createSyncsRuntime(runtime, execution, dependencies.definitions.syncs),
|
|
9958
10205
|
pipelines: createPipelinesRuntime(runtime, execution, dependencies.definitions.pipelines),
|
|
9959
10206
|
projections: createProjectionsRuntime(runtime, dependencies.definitions.projections),
|
|
9960
10207
|
rules: createRulesRuntime(runtime, dependencies.definitions.rules),
|
|
9961
10208
|
agent,
|
|
9962
|
-
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage
|
|
10209
|
+
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage, {
|
|
10210
|
+
rendersBoardPreviews: dependencies.rendersBoardPreviews
|
|
10211
|
+
}),
|
|
9963
10212
|
models: createModelsRuntime(runtime, execution, dependencies.definitions.models, session, {
|
|
9964
10213
|
canViewActionRun: async (id) => await actions.runs.getById(id) !== null,
|
|
9965
10214
|
canViewWorkflowRun: async (id) => await workflows.runs.getById(id) !== null,
|
|
@@ -9971,7 +10220,7 @@ function createExecutionFacades(runtime, execution, dependencies) {
|
|
|
9971
10220
|
activity: createActivityRuntime(runtime, dependencies.activity),
|
|
9972
10221
|
schedules: createSchedulesRuntime(runtime, dependencies.definitions.schedules),
|
|
9973
10222
|
shares: createSharesRuntime(runtime, execution, dependencies.definitions.shares),
|
|
9974
|
-
users: createUsersRuntime(runtime),
|
|
10223
|
+
users: createUsersRuntime(runtime, dependencies.members),
|
|
9975
10224
|
connector: createConnectorRuntime(runtime, execution, dependencies.connectorService),
|
|
9976
10225
|
blobs: createBlobsRuntime(runtime, execution, dependencies.blobStorage, dependencies.apiPublicOrigin)
|
|
9977
10226
|
};
|
|
@@ -11310,7 +11559,7 @@ function buildActionContext(host, actionRunsStorage, execution, input) {
|
|
|
11310
11559
|
// src/actions/run/executor.ts
|
|
11311
11560
|
class ActionRunExecutor {
|
|
11312
11561
|
host;
|
|
11313
|
-
inFlight = new
|
|
11562
|
+
inFlight = new PendingTasks;
|
|
11314
11563
|
held = new Map;
|
|
11315
11564
|
stopping = false;
|
|
11316
11565
|
constructor(host) {
|
|
@@ -11321,28 +11570,14 @@ class ActionRunExecutor {
|
|
|
11321
11570
|
return Promise.reject(createSixbError2("runtime.stopping", "[Sixb] The runtime is stopping and starts no new Action run; retry the request."));
|
|
11322
11571
|
}
|
|
11323
11572
|
const requested = this.dispatch(request);
|
|
11324
|
-
this.track(requested);
|
|
11573
|
+
this.inFlight.track(requested);
|
|
11325
11574
|
return requested;
|
|
11326
11575
|
}
|
|
11327
11576
|
async drain(timeoutMs) {
|
|
11328
11577
|
this.stopping = true;
|
|
11329
|
-
|
|
11330
|
-
while (this.inFlight.size > 0) {
|
|
11331
|
-
if (!await settleWithin([...this.inFlight], deadline - Date.now())) {
|
|
11332
|
-
console.error(`[Sixb] Stopped waiting after ${timeoutMs} ms for ${this.inFlight.size} in-flight Action run(s).`);
|
|
11333
|
-
return;
|
|
11334
|
-
}
|
|
11335
|
-
}
|
|
11336
|
-
}
|
|
11337
|
-
track(work) {
|
|
11338
|
-
const settled = work.then(() => {
|
|
11578
|
+
if (await this.inFlight.drain(timeoutMs))
|
|
11339
11579
|
return;
|
|
11340
|
-
}
|
|
11341
|
-
return;
|
|
11342
|
-
}).finally(() => {
|
|
11343
|
-
this.inFlight.delete(settled);
|
|
11344
|
-
});
|
|
11345
|
-
this.inFlight.add(settled);
|
|
11580
|
+
console.error(`[Sixb] Stopped waiting after ${timeoutMs} ms for ${this.inFlight.size} in-flight Action run(s).`);
|
|
11346
11581
|
}
|
|
11347
11582
|
async dispatch(request) {
|
|
11348
11583
|
for (let held = this.held.get(request.runId);held; held = this.held.get(request.runId)) {
|
|
@@ -11405,7 +11640,7 @@ class ActionRunExecutor {
|
|
|
11405
11640
|
return outcome.record;
|
|
11406
11641
|
}
|
|
11407
11642
|
startEffects(run, effects) {
|
|
11408
|
-
this.track(new Promise((resolve) => setImmediate(resolve)).then(effects).catch((error) => {
|
|
11643
|
+
this.inFlight.track(new Promise((resolve) => setImmediate(resolve)).then(effects).catch((error) => {
|
|
11409
11644
|
console.error(`[Sixb] Action run '${run.id}' failed to run its effects:`, error);
|
|
11410
11645
|
}));
|
|
11411
11646
|
}
|
|
@@ -11456,20 +11691,6 @@ async function drainActionRuns2(host, timeoutMs) {
|
|
|
11456
11691
|
function findActionRunExecutor(owner) {
|
|
11457
11692
|
return owner[actionRunExecutorKey];
|
|
11458
11693
|
}
|
|
11459
|
-
async function settleWithin(promises, timeoutMs) {
|
|
11460
|
-
let timeout;
|
|
11461
|
-
try {
|
|
11462
|
-
return await Promise.race([
|
|
11463
|
-
Promise.allSettled(promises).then(() => true),
|
|
11464
|
-
new Promise((resolve) => {
|
|
11465
|
-
timeout = setTimeout(() => resolve(false), timeoutMs);
|
|
11466
|
-
})
|
|
11467
|
-
]);
|
|
11468
|
-
} finally {
|
|
11469
|
-
if (timeout)
|
|
11470
|
-
clearTimeout(timeout);
|
|
11471
|
-
}
|
|
11472
|
-
}
|
|
11473
11694
|
|
|
11474
11695
|
// src/actions/request.ts
|
|
11475
11696
|
function getActionDefinition(runtime, actionId) {
|
|
@@ -11489,6 +11710,8 @@ async function requestAction3(runtime, execution, input) {
|
|
|
11489
11710
|
const executor = getActionRunExecutor(runtime);
|
|
11490
11711
|
request.signal?.throwIfAborted();
|
|
11491
11712
|
const payload = { actionId, subject, params: actionParams };
|
|
11713
|
+
const paramSchemas = Object.fromEntries(Object.entries(action.params).map(([paramId, param]) => [paramId, param.schema]));
|
|
11714
|
+
const describeParam = (paramId) => `Action param '${pathPrefix}.${paramId}'`;
|
|
11492
11715
|
const assertCanReuse = (run) => assertCallerMayHaveRun({
|
|
11493
11716
|
storage: runtime.storage,
|
|
11494
11717
|
projectId,
|
|
@@ -11502,15 +11725,25 @@ async function requestAction3(runtime, execution, input) {
|
|
|
11502
11725
|
runId,
|
|
11503
11726
|
payload,
|
|
11504
11727
|
assertCanReuse,
|
|
11505
|
-
assertNewRun: () =>
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11728
|
+
assertNewRun: async () => {
|
|
11729
|
+
await assertParamUsersActive({
|
|
11730
|
+
auth: runtime.storage.auth,
|
|
11731
|
+
projectId,
|
|
11732
|
+
schemas: paramSchemas,
|
|
11733
|
+
values: actionParams,
|
|
11734
|
+
valueTypesById: runtime.ontology.getValueTypesById(),
|
|
11735
|
+
describe: describeParam,
|
|
11736
|
+
invalid: (message) => new OntologyValidationError2(message)
|
|
11737
|
+
});
|
|
11738
|
+
await assertParamArtifactsUpdatable({
|
|
11739
|
+
updatable: (artifactIds) => updatableArtifactIds(runtime, artifactIds),
|
|
11740
|
+
schemas: paramSchemas,
|
|
11741
|
+
values: actionParams,
|
|
11742
|
+
valueTypesById: runtime.ontology.getValueTypesById(),
|
|
11743
|
+
describe: describeParam,
|
|
11744
|
+
invalid: (message) => new OntologyValidationError2(message)
|
|
11745
|
+
});
|
|
11746
|
+
},
|
|
11514
11747
|
createExecution: async (executionId, runId) => {
|
|
11515
11748
|
const caller = await ensureExecutionRecord2(runtime.storage.executions, executionRecordInputFromRuntime({
|
|
11516
11749
|
execution,
|
|
@@ -11700,6 +11933,6 @@ function snapshotActionRequest(input) {
|
|
|
11700
11933
|
...onRequested === undefined ? {} : { onRequested }
|
|
11701
11934
|
};
|
|
11702
11935
|
}
|
|
11703
|
-
export { defineAction2, param2, optional2, ActionRegistry2, bindRequestClient, bindModelExecutionAttempt, canInheritAgentRequestAuthorization2, createAgentExecutionRecord2, createInheritedAgentExecutionRecord2, bindDurableAgentExecution2, bindAgentRunRequestExecution2, bindAgentModelExecution2, restoreAgentExecutionScope2, assertAgentExecutionRecord2, resumeDecidedAgentTurn2, agentRunApprovalMode2, holdAgentApprovalCall2, approvalCallSummary2, listChildApprovalsAwaiting2, isAwaitingApprovalRun2, isPausedSubagentRun2, AGENT_APPROVAL_EXECUTION_LEASE_MS2, turnResumeReadiness2, turnPausesOnHeldCalls2, hasActiveChildren2, listTurnApprovals2, stopAgentTurn2, announceAgentApprovals2, agentApprovalCallers2, AgentRunScopeError2, resolveAgentRunExecutionScope2, createAgentApprovalExecutor, registerAgentApprovalExecutor, getAgentApprovalExecutor2, requestAgentRunCancel2, isAwaitingAnswerRun2, deferredChildQuestion2, listSubagentThreadRuns2, subagentSandboxFiles2, assertTurnModelRouting, DEFAULT_PROJECT_LOCALE, DEFAULT_PROJECT_TIME_ZONE, canonicalLocale, canonicalTimeZone, resolveAgentContextParts2, agentRunQueueJobId2, workflowAgentNodeQueueJobId2, dispatchQueuedAgentRuns2, assertNoAgentDefinitions, requestAgentRun2, isRetryableAgentRun2, retryAgentRun2, WorkflowDefinitionError2, WorkflowValidationError2, assertNonEmpty, isStepDefinition2, isAgentStepDefinition2, isInterventionDefinition2, isWorkflowDefinition2, validateWorkflowDefinition2, validateWorkflowsAtStartup2, validateWorkflowAgentStepGroupReferences2, validateWorkflowInput2, validateWorkflowStepInput2, validateWorkflowStepOutput2, validateWorkflowInterventionInput2, validateWorkflowInterventionResponse2, validateWorkflowInterventionDefaultResponse2, assertAgentStepSandbox, validateWorkflowAgentStepInput2, validateWorkflowAgentStepOutput2, snapshotWorkflowAgentStepInput2, snapshotWorkflowAgentStepOutput2, snapshotWorkflowInput2, snapshotWorkflowStepInput2, snapshotWorkflowStepOutput2, snapshotWorkflowInterventionInput2, snapshotWorkflowInterventionResponse2, snapshotWorkflowInterventionDefaultResponse2, snapshotWorkflowActionInput2, WorkflowRunDispatcher2, requestWorkflowRun2, prepareBoundActionRequest2, prepareBoundWorkflowRequest2, runModelLoop2, requestAction2, ObjectError2, removeLink2, upsertLink2, upsertLinkBatch2, deleteObject2, restoreObject2, upsertObject2, upsertObjectBatch2, writeTelemetryBatch2, appendTelemetryBatch2, getTelemetryHistoryBatch2, requireLinkDefinition2, resolveObjectContext2, resolveLinkContext2, createObjectSet2, exports_service, ShareError2, createBoundSixb, isBoundSixb, bindDurablePrimitiveExecution2, ACTION_RUN_DRAIN_TIMEOUT_MS2, ActionRunExecutor, registerActionRunExecutor, drainActionRuns2, requestAction3 };
|
|
11936
|
+
export { defineAction2, param2, optional2, ActionRegistry2, bindRequestClient, bindModelExecutionAttempt, canInheritAgentRequestAuthorization2, createAgentExecutionRecord2, createInheritedAgentExecutionRecord2, bindDurableAgentExecution2, bindAgentRunRequestExecution2, bindAgentModelExecution2, restoreAgentExecutionScope2, assertAgentExecutionRecord2, resumeDecidedAgentTurn2, agentRunApprovalMode2, holdAgentApprovalCall2, approvalCallSummary2, listChildApprovalsAwaiting2, isAwaitingApprovalRun2, isPausedSubagentRun2, AGENT_APPROVAL_EXECUTION_LEASE_MS2, turnResumeReadiness2, turnPausesOnHeldCalls2, hasActiveChildren2, listTurnApprovals2, stopAgentTurn2, announceAgentApprovals2, agentApprovalCallers2, AgentRunScopeError2, resolveAgentRunExecutionScope2, createAgentApprovalExecutor, registerAgentApprovalExecutor, getAgentApprovalExecutor2, requestAgentRunCancel2, cancelQueuedRun, AGENT_QUESTION_LIMITS2, agentQuestionsText2, isChildAskTool2, isAwaitingAnswerRun2, deferredChildQuestion2, listSubagentThreadRuns2, subagentSandboxFiles2, assertTurnModelRouting, DEFAULT_PROJECT_LOCALE, DEFAULT_PROJECT_TIME_ZONE, canonicalLocale, canonicalTimeZone, resolveAgentContextParts2, agentRunQueueJobId2, workflowAgentNodeQueueJobId2, dispatchQueuedAgentRuns2, assertNoAgentDefinitions, requestAgentRun2, isRetryableAgentRun2, retryAgentRun2, WorkflowDefinitionError2, WorkflowValidationError2, assertNonEmpty, isStepDefinition2, isAgentStepDefinition2, isInterventionDefinition2, isWorkflowDefinition2, validateWorkflowDefinition2, validateWorkflowsAtStartup2, validateWorkflowAgentStepGroupReferences2, validateWorkflowInput2, validateWorkflowStepInput2, validateWorkflowStepOutput2, validateWorkflowInterventionInput2, validateWorkflowInterventionResponse2, validateWorkflowInterventionDefaultResponse2, assertAgentStepSandbox, validateWorkflowAgentStepInput2, validateWorkflowAgentStepOutput2, snapshotWorkflowAgentStepInput2, snapshotWorkflowAgentStepOutput2, snapshotWorkflowInput2, snapshotWorkflowStepInput2, snapshotWorkflowStepOutput2, snapshotWorkflowInterventionInput2, snapshotWorkflowInterventionResponse2, snapshotWorkflowInterventionDefaultResponse2, snapshotWorkflowActionInput2, WorkflowRunDispatcher2, requestWorkflowRun2, prepareBoundActionRequest2, prepareBoundWorkflowRequest2, runModelLoop2, requestAction2, ObjectError2, removeLink2, upsertLink2, upsertLinkBatch2, deleteObject2, restoreObject2, upsertObject2, upsertObjectBatch2, writeTelemetryBatch2, appendTelemetryBatch2, getTelemetryHistoryBatch2, requireLinkDefinition2, resolveObjectContext2, resolveLinkContext2, createObjectSet2, exports_service, ShareError2, createBoundSixb, isBoundSixb, bindDurablePrimitiveExecution2, ACTION_RUN_DRAIN_TIMEOUT_MS2, ActionRunExecutor, registerActionRunExecutor, drainActionRuns2, requestAction3 };
|
|
11704
11937
|
|
|
11705
|
-
//# debugId=
|
|
11938
|
+
//# debugId=F3ECA7E87867ECD264756E2164756E21
|