@sixb/core 0.2.2 → 0.2.3
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 +55 -49
- 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/execution.d.ts +2 -1
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +82 -75
- package/dist/agents/index.js.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-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/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 +78 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +17 -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 +108 -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 +61 -33
- 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 +62 -56
- 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-m2vh8gh0.js → chunk-26qet7wh.js} +62 -15
- package/dist/{chunk-m2vh8gh0.js.map → chunk-26qet7wh.js.map} +5 -5
- package/dist/{chunk-eqgr6nsa.js → chunk-2by73sm2.js} +982 -184
- package/dist/chunk-2by73sm2.js.map +75 -0
- 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-38yvdqzd.js +70 -0
- package/dist/chunk-38yvdqzd.js.map +10 -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-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-3sqqhpr7.js → chunk-4j0sagwv.js} +134 -19
- package/dist/{chunk-3sqqhpr7.js.map → chunk-4j0sagwv.js.map} +11 -10
- 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-f1h34y3r.js → chunk-6gtxshcc.js} +6 -6
- package/dist/{chunk-f1h34y3r.js.map → chunk-6gtxshcc.js.map} +1 -1
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -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-2ajw5rz0.js → chunk-8p7bze4c.js} +3 -3
- 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-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-w1btn96n.js → chunk-bkmnd7zq.js} +523 -254
- package/dist/chunk-bkmnd7zq.js.map +49 -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-a5v4gjdx.js → chunk-e9w4mgdh.js} +308 -220
- package/dist/{chunk-a5v4gjdx.js.map → chunk-e9w4mgdh.js.map} +21 -19
- 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-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/{chunk-mbc5hvnj.js → chunk-hkaa807g.js} +18 -7
- package/dist/{chunk-mbc5hvnj.js.map → chunk-hkaa807g.js.map} +3 -3
- package/dist/chunk-hn2r7z41.js.map +3 -3
- 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-ga63a3dz.js → chunk-k66rp2hr.js} +3 -3
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/{chunk-a7aa0nzj.js → chunk-kv0kvknv.js} +14 -14
- package/dist/{chunk-a7aa0nzj.js.map → chunk-kv0kvknv.js.map} +1 -1
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/chunk-m7b9q5dk.js +234 -0
- package/dist/chunk-m7b9q5dk.js.map +12 -0
- 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-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-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-qafng88v.js +225 -0
- package/dist/chunk-qafng88v.js.map +11 -0
- package/dist/chunk-qds484t8.js +1363 -0
- package/dist/chunk-qds484t8.js.map +18 -0
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- 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-c7cfe31p.js → chunk-s5n9617r.js} +15 -15
- package/dist/{chunk-c7cfe31p.js.map → chunk-s5n9617r.js.map} +1 -1
- 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-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/chunk-tqa68kj7.js +1322 -0
- package/dist/chunk-tqa68kj7.js.map +25 -0
- 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-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-j8thxj7w.js → chunk-w9s23r24.js} +1218 -101
- package/dist/chunk-w9s23r24.js.map +30 -0
- 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-dsv783c3.js → chunk-z0t4p2sk.js} +169 -53
- package/dist/{chunk-dsv783c3.js.map → chunk-z0t4p2sk.js.map} +7 -7
- 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 +57 -51
- 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 +55 -49
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +49 -43
- 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 +95 -87
- 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 +30 -27
- 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 +29 -26
- package/dist/models/execution/index.js.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 +58 -53
- 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 +28 -25
- 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 +36 -33
- 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 +29 -26
- 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 +51 -30
- 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 +68 -27
- 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/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 +55 -45
- 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 +37 -34
- 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 +6244 -3191
- 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 +67 -35
- 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 +63 -57
- 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/execution.ts +10 -2
- package/src/agents/fork.ts +12 -4
- package/src/agents/index.ts +7 -1
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-session-http.ts +4 -0
- package/src/agents/run-session-serve.ts +10 -0
- package/src/agents/run-session.ts +8 -1
- package/src/agents/streams/protocol.ts +5 -10
- package/src/agents/validation.ts +3 -0
- 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 +149 -0
- package/src/artifacts/frames/runtime.ts +317 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +28 -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 +105 -4
- 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/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/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-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-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-2ajw5rz0.js.map → chunk-8p7bze4c.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-ga63a3dz.js.map → chunk-k66rp2hr.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.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
|
|
@@ -141,7 +152,7 @@ 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-2by73sm2.js";
|
|
166
170
|
import {
|
|
167
171
|
explainObjectQuery2
|
|
168
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-8p7bze4c.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-26qet7wh.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-w9s23r24.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-6gtxshcc.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";
|
|
236
245
|
import {
|
|
237
|
-
|
|
238
|
-
|
|
246
|
+
lakeDatasetDefinition2,
|
|
247
|
+
validateDatasetMergeChanges2
|
|
248
|
+
} from "./chunk-ppxf7gw2.js";
|
|
249
|
+
import {
|
|
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-k66rp2hr.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-4j0sagwv.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-m7b9q5dk.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-qafng88v.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 = [];
|
|
@@ -1952,12 +1992,13 @@ async function forkAgentThread(runtime, input) {
|
|
|
1952
1992
|
const id = createAgentThreadId2();
|
|
1953
1993
|
const sandboxParams = source.sandboxParams === undefined ? undefined : normalizeSandboxBinding(sandbox?.definition, source.sandboxParams, runtime.ontology);
|
|
1954
1994
|
try {
|
|
1995
|
+
const ruleIn = await transactionArtifactAccessRules(runtime);
|
|
1955
1996
|
return await runtime.storage.transaction(async (tx) => {
|
|
1956
1997
|
const threads = tx.agents?.threads;
|
|
1957
1998
|
if (!threads) {
|
|
1958
1999
|
throw new AgentRequestError2("storage_unavailable", "[Sixb] Agent storage is not configured.");
|
|
1959
2000
|
}
|
|
1960
|
-
const artifactCopies = await copySharedArtifacts(runtime, tx, {
|
|
2001
|
+
const artifactCopies = await copySharedArtifacts(runtime, tx, ruleIn, {
|
|
1961
2002
|
sourceThreadId: source.id,
|
|
1962
2003
|
forkId: id,
|
|
1963
2004
|
owner: input.ownerPrincipal
|
|
@@ -1982,7 +2023,7 @@ async function forkAgentThread(runtime, input) {
|
|
|
1982
2023
|
throw error;
|
|
1983
2024
|
}
|
|
1984
2025
|
}
|
|
1985
|
-
async function copySharedArtifacts(runtime, tx, input) {
|
|
2026
|
+
async function copySharedArtifacts(runtime, tx, ruleIn, input) {
|
|
1986
2027
|
const { projectId } = runtime;
|
|
1987
2028
|
const artifacts = tx.artifacts;
|
|
1988
2029
|
if (!artifacts) {
|
|
@@ -1996,7 +2037,7 @@ async function copySharedArtifacts(runtime, tx, input) {
|
|
|
1996
2037
|
}
|
|
1997
2038
|
return {};
|
|
1998
2039
|
}
|
|
1999
|
-
const access =
|
|
2040
|
+
const access = ruleIn(tx);
|
|
2000
2041
|
const copies = {};
|
|
2001
2042
|
const { artifacts: shared } = await artifacts.list({ projectId, threadId: input.sourceThreadId });
|
|
2002
2043
|
for (const artifact of shared) {
|
|
@@ -2014,8 +2055,10 @@ async function copySharedArtifacts(runtime, tx, input) {
|
|
|
2014
2055
|
async function createCopy(artifacts, input) {
|
|
2015
2056
|
for (let attempt = 1;; attempt += 1) {
|
|
2016
2057
|
const id = createArtifactId();
|
|
2058
|
+
const previews = boardPreviewsOfCopy(id);
|
|
2017
2059
|
try {
|
|
2018
|
-
await artifacts.copy({ ...input, id });
|
|
2060
|
+
await artifacts.copy({ ...input, id, outlineOf: previews.outlineOf });
|
|
2061
|
+
await previews.carry(artifacts, input.projectId);
|
|
2019
2062
|
return id;
|
|
2020
2063
|
} catch (error) {
|
|
2021
2064
|
const collided = error instanceof ArtifactStorageError && error.code === "artifact_exists";
|
|
@@ -2679,7 +2722,7 @@ async function requestAgentRun2(runtime, execution, models, input) {
|
|
|
2679
2722
|
function isRetryableAgentRun2(run) {
|
|
2680
2723
|
return run.status === "failed" || run.status === "cancelled" && run.finishReason === "interrupted";
|
|
2681
2724
|
}
|
|
2682
|
-
async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
2725
|
+
async function retryAgentRun2(runtime, execution, models, failedRun, blobStorage) {
|
|
2683
2726
|
resolveExecutionScopeAuthorization(runtime.projectId, {
|
|
2684
2727
|
execution,
|
|
2685
2728
|
authorization: runtime.runtimeAuthorization
|
|
@@ -2701,7 +2744,9 @@ async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
|
2701
2744
|
const runId = createAgentRunId2();
|
|
2702
2745
|
const durableExecution = await prepareDurableAgentExecution(runtime, execution, runId);
|
|
2703
2746
|
await assertAiLimitPreflight(runtime, durableExecution);
|
|
2704
|
-
const
|
|
2747
|
+
const artifacts = runtime.storage.artifacts;
|
|
2748
|
+
const documents = artifacts && blobStorage ? await undoneTurnDocuments({ projectId: runtime.projectId, storage: artifacts, blobStorage }, failedRun.id) : {};
|
|
2749
|
+
const { run, undone } = await runtime.storage.transaction(async (tx) => {
|
|
2705
2750
|
const agents = tx.agents;
|
|
2706
2751
|
if (!agents) {
|
|
2707
2752
|
throw new AgentRequestError2("storage_unavailable", "[Sixb] Agent storage is not configured.");
|
|
@@ -2711,14 +2756,19 @@ async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
|
2711
2756
|
threadId: failedRun.threadId,
|
|
2712
2757
|
runId: failedRun.id
|
|
2713
2758
|
});
|
|
2714
|
-
const
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2759
|
+
const trigger = await agents.messages.getById({
|
|
2760
|
+
projectId: runtime.projectId,
|
|
2761
|
+
id: failedRun.triggerMessageId
|
|
2762
|
+
});
|
|
2763
|
+
const requester = trigger?.authorPrincipal;
|
|
2764
|
+
const undone = await tx.artifacts?.undoTurnWrites({
|
|
2765
|
+
projectId: runtime.projectId,
|
|
2766
|
+
turnRunId: failedRun.id,
|
|
2767
|
+
documents,
|
|
2768
|
+
...requester ? { requester } : {}
|
|
2769
|
+
});
|
|
2720
2770
|
await tx.executions.create(durableExecution);
|
|
2721
|
-
|
|
2771
|
+
const run = await agents.runs.create({
|
|
2722
2772
|
id: runId,
|
|
2723
2773
|
projectId: runtime.projectId,
|
|
2724
2774
|
executionId: durableExecution.id,
|
|
@@ -2726,7 +2776,9 @@ async function retryAgentRun2(runtime, execution, models, failedRun) {
|
|
|
2726
2776
|
triggerMessageId: failedRun.triggerMessageId,
|
|
2727
2777
|
spec: inPlace(thread, failedRun.spec ?? await resolveConversationRunSpec({ models, selection: {}, settings: {} }))
|
|
2728
2778
|
});
|
|
2779
|
+
return { run, undone };
|
|
2729
2780
|
});
|
|
2781
|
+
await announceArtifactUpdates(runtime.events, (undone?.restored ?? []).map(({ version }) => version));
|
|
2730
2782
|
await publishRunActivity(runtime, run);
|
|
2731
2783
|
const jobId = await dispatchAgentRun(runtime, agents, runId);
|
|
2732
2784
|
return { run, ...jobId ? { jobId } : {}, createdThread: false };
|
|
@@ -2845,22 +2897,6 @@ async function resumedConversationRunSpec(models, paused, approvalMode) {
|
|
|
2845
2897
|
});
|
|
2846
2898
|
return Object.freeze({ ...kept, approvalMode });
|
|
2847
2899
|
}
|
|
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
2900
|
async function continuedSelection(runtime, models, input) {
|
|
2865
2901
|
const agents = requireAgentStorage(runtime);
|
|
2866
2902
|
const threadId = input.threadId ?? "";
|
|
@@ -3079,7 +3115,7 @@ function requireAgentStorage(runtime) {
|
|
|
3079
3115
|
}
|
|
3080
3116
|
|
|
3081
3117
|
// src/agents/execution.ts
|
|
3082
|
-
function createAgentRuntime(runtime, execution, models, decision, sandbox, security) {
|
|
3118
|
+
function createAgentRuntime(runtime, execution, models, decision, sandbox, security, blobStorage) {
|
|
3083
3119
|
const authority = resolveRuntimeAuthorizationForProject(runtime);
|
|
3084
3120
|
const turnModels = {
|
|
3085
3121
|
language: models?.language,
|
|
@@ -3544,7 +3580,7 @@ function createAgentRuntime(runtime, execution, models, decision, sandbox, secur
|
|
|
3544
3580
|
if (!agent) {
|
|
3545
3581
|
throw new AgentRequestError2("agent_not_found", "[Sixb] The project Agent is unavailable.");
|
|
3546
3582
|
}
|
|
3547
|
-
const result = await retryAgentRun2(runtime, execution, models?.language, failedRun);
|
|
3583
|
+
const result = await retryAgentRun2(runtime, execution, models?.language, failedRun, blobStorage);
|
|
3548
3584
|
return { ...result, run: await attachRunView(runtime, result.run) };
|
|
3549
3585
|
},
|
|
3550
3586
|
cancel: async (runId) => {
|
|
@@ -3866,12 +3902,12 @@ function commandContext(runtime, execution, connectorId) {
|
|
|
3866
3902
|
if (!resolved.ref.credential) {
|
|
3867
3903
|
throw new AuthorizationError2(`manage:connector:${connectorId}`, "[Sixb] Connector connection management requires a session or access token.");
|
|
3868
3904
|
}
|
|
3869
|
-
assertCanManageConnector2(runtime, connectorId);
|
|
3870
3905
|
return Object.freeze({
|
|
3871
3906
|
execution: Object.freeze(executionRecordInputFromRuntime({
|
|
3872
3907
|
execution,
|
|
3873
3908
|
runtimeAuthorization: runtime.runtimeAuthorization
|
|
3874
|
-
}))
|
|
3909
|
+
})),
|
|
3910
|
+
canManage: isAllowed2(resolved.context, { kind: "connector.manage", connectorId })
|
|
3875
3911
|
});
|
|
3876
3912
|
}
|
|
3877
3913
|
|
|
@@ -3965,7 +4001,7 @@ function versionKey(ref) {
|
|
|
3965
4001
|
}
|
|
3966
4002
|
|
|
3967
4003
|
// src/datasets/execution.ts
|
|
3968
|
-
function createDatasetsRuntime(runtime, execution, source, lakeStorage, blobStorage, versionMarkings) {
|
|
4004
|
+
function createDatasetsRuntime(runtime, execution, source, lakeStorage, blobStorage, versionMarkings, ingestRuntime) {
|
|
3969
4005
|
const authority = resolveRuntimeAuthorizationForProject(runtime);
|
|
3970
4006
|
const allowed = (datasetId) => isRuntimeAllowed2(runtime, { kind: "dataset.view", datasetId });
|
|
3971
4007
|
return {
|
|
@@ -4042,41 +4078,44 @@ function createDatasetsRuntime(runtime, execution, source, lakeStorage, blobStor
|
|
|
4042
4078
|
if (typeof lakeStorage.beginMerge !== "function") {
|
|
4043
4079
|
throw new Error("[Sixb] Dataset ingestion requires a lake provider with merge support.");
|
|
4044
4080
|
}
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4081
|
+
const inbox = runtime.storage.datasetIngest;
|
|
4082
|
+
if (!inbox) {
|
|
4083
|
+
throw new Error("[Sixb] Dataset ingestion requires storage with a dataset ingest inbox.");
|
|
4084
|
+
}
|
|
4085
|
+
const changes = await validateDatasetMergeChanges2({
|
|
4049
4086
|
dataset: registered,
|
|
4050
|
-
|
|
4051
|
-
signal: input.signal ?? new AbortController().signal
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4087
|
+
blobStorage,
|
|
4088
|
+
signal: input.signal ?? new AbortController().signal
|
|
4089
|
+
}, input.changes);
|
|
4090
|
+
if (changes.length === 0)
|
|
4091
|
+
return { deliveryId: null, changes: 0 };
|
|
4092
|
+
assertLakeHolds(lakeStorage, registered, changes);
|
|
4093
|
+
const { delivery, flush } = await inbox.append({
|
|
4094
|
+
projectId: runtime.projectId,
|
|
4095
|
+
datasetId: registered.id,
|
|
4096
|
+
executionId: execution.id,
|
|
4097
|
+
correlationId: execution.correlationId,
|
|
4098
|
+
definitionHash: datasetDefinitionHash(registered),
|
|
4099
|
+
changes
|
|
4057
4100
|
});
|
|
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" });
|
|
4101
|
+
if (ingestRuntime.writesInline) {
|
|
4102
|
+
await ingestRuntime.flushAll(registered.id, input.signal ?? new AbortController().signal);
|
|
4103
|
+
} else if (flush.requested) {
|
|
4104
|
+
await tryEnqueueIngestFlush(runtime.queues.lake, runtime.projectId, { datasetId: registered.id, request: flush.request }, { source: "ingest", correlationId: execution.correlationId });
|
|
4075
4105
|
}
|
|
4076
|
-
return
|
|
4106
|
+
return { deliveryId: delivery.id, changes: changes.length };
|
|
4077
4107
|
}
|
|
4078
4108
|
};
|
|
4079
4109
|
}
|
|
4110
|
+
function assertLakeHolds(lakeStorage, dataset, changes) {
|
|
4111
|
+
try {
|
|
4112
|
+
lakeStorage.assertHoldsChanges?.(lakeDatasetDefinition2(dataset), changes);
|
|
4113
|
+
} catch (error) {
|
|
4114
|
+
if (!(error instanceof LakeValueRefusedError2))
|
|
4115
|
+
throw error;
|
|
4116
|
+
throw new DatasetValidationError2(`[Sixb] Dataset '${dataset.id}' cannot hold change ${error.changeIndex}: ${error.message}`, { cause: error });
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4080
4119
|
function readerVersion(runtime, version) {
|
|
4081
4120
|
const { lineage: _lineage, producer, inputs, ...rest } = version;
|
|
4082
4121
|
return {
|
|
@@ -4251,28 +4290,39 @@ function createEventsRuntime(runtime) {
|
|
|
4251
4290
|
const visible = async (events) => {
|
|
4252
4291
|
switch (authority.type) {
|
|
4253
4292
|
case "denied":
|
|
4254
|
-
case "delegated":
|
|
4255
4293
|
return [];
|
|
4294
|
+
case "delegated": {
|
|
4295
|
+
const readable = await readableArtifactEvents(runtime, events);
|
|
4296
|
+
return events.filter((event) => readable.has(event));
|
|
4297
|
+
}
|
|
4256
4298
|
case "unrestricted":
|
|
4257
4299
|
return events;
|
|
4258
4300
|
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
|
-
});
|
|
4301
|
+
const shown = await visibleByGrants(authority.context, events);
|
|
4302
|
+
if (!events.some((event) => event.topic === "artifacts"))
|
|
4303
|
+
return shown;
|
|
4304
|
+
const readable = await readableArtifactEvents(runtime, events);
|
|
4305
|
+
const byCursor = new Map(shown.map((event) => [event.cursor, event]));
|
|
4306
|
+
return events.filter((event) => event.topic === "artifacts" ? readable.has(event) : byCursor.has(event.cursor)).map((event) => byCursor.get(event.cursor) ?? event);
|
|
4273
4307
|
}
|
|
4274
4308
|
}
|
|
4275
4309
|
};
|
|
4310
|
+
const visibleByGrants = async (context, events) => {
|
|
4311
|
+
const reader = runtime.objectReader;
|
|
4312
|
+
const conditions = readerViewConditions(reader);
|
|
4313
|
+
const viewable = events.filter((event) => canViewEvent2(context, event, conditions));
|
|
4314
|
+
if (viewable.length === 0)
|
|
4315
|
+
return viewable;
|
|
4316
|
+
const clearance = await readerClearance(reader);
|
|
4317
|
+
const clearanceFor = await eventClearances(reader, viewable, clearance);
|
|
4318
|
+
const readable = clearance ? viewable.filter((event) => !readsUnreadable(event, clearance)) : viewable;
|
|
4319
|
+
const shown = await visibleUnderConditions(reader, readable, conditions, clearanceFor, history);
|
|
4320
|
+
return shown.map((event) => {
|
|
4321
|
+
const redacting = clearanceFor(event);
|
|
4322
|
+
const redacted = redacting ? redactDomainEvent(event, redacting) : event;
|
|
4323
|
+
return withoutHiddenPriorState(event, redacted, conditions);
|
|
4324
|
+
});
|
|
4325
|
+
};
|
|
4276
4326
|
return {
|
|
4277
4327
|
visible,
|
|
4278
4328
|
append: (input) => {
|
|
@@ -4328,6 +4378,27 @@ function createEventsRuntime(runtime) {
|
|
|
4328
4378
|
}
|
|
4329
4379
|
};
|
|
4330
4380
|
}
|
|
4381
|
+
async function readableArtifactEvents(runtime, events) {
|
|
4382
|
+
const storage = runtime.storage.artifacts;
|
|
4383
|
+
if (!storage)
|
|
4384
|
+
return new Set;
|
|
4385
|
+
const rule = createRuntimeArtifactAccessRule(runtime);
|
|
4386
|
+
const readable = new Map;
|
|
4387
|
+
const reads = (artifactId) => {
|
|
4388
|
+
let read = readable.get(artifactId);
|
|
4389
|
+
if (!read) {
|
|
4390
|
+
read = storage.get({ projectId: runtime.projectId, id: artifactId }).then(async (artifact) => artifact !== null && await rule.accessTo(artifact) !== "none");
|
|
4391
|
+
readable.set(artifactId, read);
|
|
4392
|
+
}
|
|
4393
|
+
return read;
|
|
4394
|
+
};
|
|
4395
|
+
const shown = new Set;
|
|
4396
|
+
for (const event of events) {
|
|
4397
|
+
if (event.topic === "artifacts" && await reads(event.payload.artifactId))
|
|
4398
|
+
shown.add(event);
|
|
4399
|
+
}
|
|
4400
|
+
return shown;
|
|
4401
|
+
}
|
|
4331
4402
|
async function eventClearances(reader, events, clearance) {
|
|
4332
4403
|
const kinds = new Map;
|
|
4333
4404
|
for (const event of events) {
|
|
@@ -4952,6 +5023,7 @@ function snapshotSchemaValue(params) {
|
|
|
4952
5023
|
case "boolean":
|
|
4953
5024
|
case "fileRef":
|
|
4954
5025
|
case "userRef":
|
|
5026
|
+
case "artifactRef":
|
|
4955
5027
|
return snapshotJsonValue(value, path);
|
|
4956
5028
|
default:
|
|
4957
5029
|
return snapshotJsonValue(value, path);
|
|
@@ -5090,7 +5162,6 @@ class WorkflowRunDispatcher2 {
|
|
|
5090
5162
|
principal: SYSTEM_PRINCIPAL2
|
|
5091
5163
|
},
|
|
5092
5164
|
metadata: input.metadata,
|
|
5093
|
-
queueJobId: input.runId,
|
|
5094
5165
|
validateExistingRun: (run) => assertAutomaticExecutionIdentity(this.dependencies, input, run),
|
|
5095
5166
|
createExecution: async (executionId, runId) => createPrimitiveExecutionRecord({
|
|
5096
5167
|
id: executionId,
|
|
@@ -5150,6 +5221,16 @@ async function persistWorkflowRun(input, request) {
|
|
|
5150
5221
|
describe: (fieldId) => `Workflow "${input.workflow.id}" input '${fieldId}'`,
|
|
5151
5222
|
invalid: (message) => new WorkflowValidationError2(message)
|
|
5152
5223
|
});
|
|
5224
|
+
if (input.updatableArtifacts) {
|
|
5225
|
+
await assertParamArtifactsUpdatable({
|
|
5226
|
+
updatable: input.updatableArtifacts,
|
|
5227
|
+
schemas: input.workflow.input,
|
|
5228
|
+
values: request.snapshot,
|
|
5229
|
+
valueTypesById: input.valueTypesById,
|
|
5230
|
+
describe: (fieldId) => `Workflow "${input.workflow.id}" input '${fieldId}'`,
|
|
5231
|
+
invalid: (message) => new WorkflowValidationError2(message)
|
|
5232
|
+
});
|
|
5233
|
+
}
|
|
5153
5234
|
const execution = await input.createExecution(`exec_${randomUUID7()}`, request.runId);
|
|
5154
5235
|
const queuedAt = new Date;
|
|
5155
5236
|
try {
|
|
@@ -5226,14 +5307,14 @@ async function enqueueWorkflowRun(input, run) {
|
|
|
5226
5307
|
projectId: input.projectId,
|
|
5227
5308
|
jobs: [
|
|
5228
5309
|
{
|
|
5229
|
-
|
|
5310
|
+
id: run.id,
|
|
5230
5311
|
type: "workflow.run.requested",
|
|
5231
5312
|
payload: { runId: run.id },
|
|
5232
5313
|
...input.metadata === undefined ? {} : { metadata: input.metadata }
|
|
5233
5314
|
}
|
|
5234
5315
|
]
|
|
5235
5316
|
});
|
|
5236
|
-
if (!job ||
|
|
5317
|
+
if (!job || job.id !== run.id) {
|
|
5237
5318
|
throw new WorkflowRunError2(`[Sixb] Queue did not acknowledge workflow run '${run.id}'.`);
|
|
5238
5319
|
}
|
|
5239
5320
|
return job;
|
|
@@ -5317,6 +5398,7 @@ async function requestWorkflowRun2(runtime, execution, workflow, options = {}) {
|
|
|
5317
5398
|
runId: options.runId,
|
|
5318
5399
|
input: options.input,
|
|
5319
5400
|
source: options.source,
|
|
5401
|
+
updatableArtifacts: (artifactIds) => updatableArtifactIds(runtime, artifactIds),
|
|
5320
5402
|
createExecution: async (executionId, runId) => {
|
|
5321
5403
|
const caller = await ensureExecutionRecord2(runtime.storage.executions, executionRecordInputFromRuntime({
|
|
5322
5404
|
execution,
|
|
@@ -7156,7 +7238,7 @@ function codedViolation(objectTypeId, propertyId, message, options = {}) {
|
|
|
7156
7238
|
}
|
|
7157
7239
|
|
|
7158
7240
|
// src/objects/materializer-adapter.ts
|
|
7159
|
-
async function commitRuntimeOperations(ctx, operations, expectedObjects = []) {
|
|
7241
|
+
async function commitRuntimeOperations(ctx, operations, expectedObjects = [], unchangeableArtifactIds = []) {
|
|
7160
7242
|
const mutations = getOntologyMutationRuntime2(ctx);
|
|
7161
7243
|
try {
|
|
7162
7244
|
return await mutations.commitEdits({
|
|
@@ -7165,13 +7247,14 @@ async function commitRuntimeOperations(ctx, operations, expectedObjects = []) {
|
|
|
7165
7247
|
operations,
|
|
7166
7248
|
expectedObjects,
|
|
7167
7249
|
expectedLinks: [],
|
|
7168
|
-
expectedLinkScopes: []
|
|
7250
|
+
expectedLinkScopes: [],
|
|
7251
|
+
unchangeableArtifactIds
|
|
7169
7252
|
});
|
|
7170
7253
|
} catch (error) {
|
|
7171
7254
|
throw uniqueViolationError(error) ?? error;
|
|
7172
7255
|
}
|
|
7173
7256
|
}
|
|
7174
|
-
async function commitRuntimeBatch(ctx, groups, expectedObjects = []) {
|
|
7257
|
+
async function commitRuntimeBatch(ctx, groups, expectedObjects = [], unchangeableArtifactIds = []) {
|
|
7175
7258
|
const operations = groups.flatMap((group) => group.operations);
|
|
7176
7259
|
if (operations.length === 0) {
|
|
7177
7260
|
return { commit: null, outcomes: new Map };
|
|
@@ -7185,7 +7268,8 @@ async function commitRuntimeBatch(ctx, groups, expectedObjects = []) {
|
|
|
7185
7268
|
source: { kind: "runtime", requestId: randomUUID14() },
|
|
7186
7269
|
operations,
|
|
7187
7270
|
...operationGroups.length > 0 ? { operationGroups } : {},
|
|
7188
|
-
...expectedObjects.length > 0 ? { expectedObjects } : {}
|
|
7271
|
+
...expectedObjects.length > 0 ? { expectedObjects } : {},
|
|
7272
|
+
unchangeableArtifactIds
|
|
7189
7273
|
});
|
|
7190
7274
|
} catch (error) {
|
|
7191
7275
|
throw uniqueViolationError(error) ?? error;
|
|
@@ -7490,7 +7574,7 @@ async function runRuntimeItemBatch(batch) {
|
|
|
7490
7574
|
claims.set(plan.key, { index, fingerprint: plan.fingerprint });
|
|
7491
7575
|
planned.push({ index, operations: plan.operations });
|
|
7492
7576
|
}
|
|
7493
|
-
const commit = await commitRuntimeBatch(batch.ctx, planned, batch.expectedObjects);
|
|
7577
|
+
const commit = await commitRuntimeBatch(batch.ctx, planned, batch.expectedObjects, batch.unchangeableArtifactIds);
|
|
7494
7578
|
for (const { index } of planned) {
|
|
7495
7579
|
const outcomes = requireItemOutcomes(commit, index);
|
|
7496
7580
|
const failed = outcomes.find((outcome) => !outcome.ok);
|
|
@@ -7577,6 +7661,21 @@ async function restoreObject2(ctx, primaryId) {
|
|
|
7577
7661
|
})
|
|
7578
7662
|
]);
|
|
7579
7663
|
}
|
|
7664
|
+
// src/objects/artifact-refs.ts
|
|
7665
|
+
async function unchangeableArtifactIds(ctx, writes) {
|
|
7666
|
+
const valueTypesById = ctx.ontology.getValueTypesById();
|
|
7667
|
+
const named = new Set;
|
|
7668
|
+
for (const properties of writes) {
|
|
7669
|
+
for (const property of ctx.objectType.properties) {
|
|
7670
|
+
collectArtifactRefIds(property.schema, properties[property.id], valueTypesById, named);
|
|
7671
|
+
}
|
|
7672
|
+
}
|
|
7673
|
+
if (named.size === 0 || !ctx.storage.artifacts)
|
|
7674
|
+
return [];
|
|
7675
|
+
const updatable = await updatableArtifactIds(ctx, named);
|
|
7676
|
+
return [...named].filter((id) => !updatable.has(id));
|
|
7677
|
+
}
|
|
7678
|
+
|
|
7580
7679
|
// src/objects/object/upsert.ts
|
|
7581
7680
|
async function upsertObject2(ctx, properties) {
|
|
7582
7681
|
await assertCanEditType(ctx, ctx.objectType.id);
|
|
@@ -7590,14 +7689,15 @@ async function upsertObject2(ctx, properties) {
|
|
|
7590
7689
|
valueTypesById: ontology.getValueTypesById()
|
|
7591
7690
|
});
|
|
7592
7691
|
checkUniqueValues(normalized.properties);
|
|
7692
|
+
const unchangeable = await unchangeableArtifactIds(ctx, [normalized.properties]);
|
|
7593
7693
|
const ref = { objectTypeId: objectType.id, primaryId: normalized.primaryId };
|
|
7594
7694
|
const write = { id: runtimeOperationId(0), ref, properties: normalized.properties };
|
|
7595
7695
|
if (ctx.objectReader.viewsThroughCondition(objectType.id)) {
|
|
7596
7696
|
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()));
|
|
7697
|
+
const commit = await commitRuntimeOperations(ctx, [writeFoundObject({ ...write, primaryPropertyId, found: found.get(ref.primaryId) })], expectSeen(found.values()), unchangeable);
|
|
7598
7698
|
return redact(toObjectRow(ctx.projectId, requireEffectiveObject(commit.outcomes[0])));
|
|
7599
7699
|
}
|
|
7600
|
-
const commit = await commitRuntimeOperations(ctx, [objectUpsertOperation(write)]);
|
|
7700
|
+
const commit = await commitRuntimeOperations(ctx, [objectUpsertOperation(write)], [], unchangeable);
|
|
7601
7701
|
return redact(toObjectRow(ctx.projectId, requireEffectiveObject(commit.outcomes[0])));
|
|
7602
7702
|
}
|
|
7603
7703
|
// src/objects/object/upsert-batch.ts
|
|
@@ -7621,11 +7721,13 @@ async function upsertObjectBatch2(ctx, items) {
|
|
|
7621
7721
|
return { error };
|
|
7622
7722
|
}
|
|
7623
7723
|
});
|
|
7724
|
+
const unchangeable = await unchangeableArtifactIds(ctx, normalized.flatMap((object) => ("error" in object) ? [] : [object.properties]));
|
|
7624
7725
|
const found = ctx.objectReader.viewsThroughCondition(objectType.id) ? await findWrittenObjects(ctx, objectType.id, normalized.flatMap((object) => ("error" in object) ? [] : [object.primaryId])) : undefined;
|
|
7625
7726
|
return runRuntimeItemBatch({
|
|
7626
7727
|
ctx,
|
|
7627
7728
|
items,
|
|
7628
7729
|
...found === undefined ? {} : { expectedObjects: expectSeen(found.values()) },
|
|
7730
|
+
unchangeableArtifactIds: unchangeable,
|
|
7629
7731
|
plan(_item, index) {
|
|
7630
7732
|
const object = normalized[index];
|
|
7631
7733
|
if ("error" in object)
|
|
@@ -9945,21 +10047,23 @@ function createExecutionFacades(runtime, execution, dependencies) {
|
|
|
9945
10047
|
const actions = createActionsRuntime(runtime, execution);
|
|
9946
10048
|
const workflows = createWorkflowsRuntime(runtime, execution, dependencies.definitions.workflows);
|
|
9947
10049
|
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);
|
|
10050
|
+
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
10051
|
return {
|
|
9950
10052
|
objects: createObjectsRuntime(runtime, execution, dependencies.blobStorage, {
|
|
9951
10053
|
projections: dependencies.definitions.projections,
|
|
9952
10054
|
lakeStorage: dependencies.lakeStorage
|
|
9953
10055
|
}),
|
|
9954
10056
|
actions,
|
|
9955
|
-
datasets: createDatasetsRuntime(runtime, execution, dependencies.definitions.datasets, dependencies.lakeStorage, dependencies.blobStorage, dependencies.datasetVersionMarkings),
|
|
10057
|
+
datasets: createDatasetsRuntime(runtime, execution, dependencies.definitions.datasets, dependencies.lakeStorage, dependencies.blobStorage, dependencies.datasetVersionMarkings, dependencies.datasetIngest),
|
|
9956
10058
|
workflows,
|
|
9957
10059
|
syncs: createSyncsRuntime(runtime, execution, dependencies.definitions.syncs),
|
|
9958
10060
|
pipelines: createPipelinesRuntime(runtime, execution, dependencies.definitions.pipelines),
|
|
9959
10061
|
projections: createProjectionsRuntime(runtime, dependencies.definitions.projections),
|
|
9960
10062
|
rules: createRulesRuntime(runtime, dependencies.definitions.rules),
|
|
9961
10063
|
agent,
|
|
9962
|
-
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage
|
|
10064
|
+
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage, {
|
|
10065
|
+
rendersBoardPreviews: dependencies.rendersBoardPreviews
|
|
10066
|
+
}),
|
|
9963
10067
|
models: createModelsRuntime(runtime, execution, dependencies.definitions.models, session, {
|
|
9964
10068
|
canViewActionRun: async (id) => await actions.runs.getById(id) !== null,
|
|
9965
10069
|
canViewWorkflowRun: async (id) => await workflows.runs.getById(id) !== null,
|
|
@@ -9971,7 +10075,7 @@ function createExecutionFacades(runtime, execution, dependencies) {
|
|
|
9971
10075
|
activity: createActivityRuntime(runtime, dependencies.activity),
|
|
9972
10076
|
schedules: createSchedulesRuntime(runtime, dependencies.definitions.schedules),
|
|
9973
10077
|
shares: createSharesRuntime(runtime, execution, dependencies.definitions.shares),
|
|
9974
|
-
users: createUsersRuntime(runtime),
|
|
10078
|
+
users: createUsersRuntime(runtime, dependencies.members),
|
|
9975
10079
|
connector: createConnectorRuntime(runtime, execution, dependencies.connectorService),
|
|
9976
10080
|
blobs: createBlobsRuntime(runtime, execution, dependencies.blobStorage, dependencies.apiPublicOrigin)
|
|
9977
10081
|
};
|
|
@@ -11310,7 +11414,7 @@ function buildActionContext(host, actionRunsStorage, execution, input) {
|
|
|
11310
11414
|
// src/actions/run/executor.ts
|
|
11311
11415
|
class ActionRunExecutor {
|
|
11312
11416
|
host;
|
|
11313
|
-
inFlight = new
|
|
11417
|
+
inFlight = new PendingTasks;
|
|
11314
11418
|
held = new Map;
|
|
11315
11419
|
stopping = false;
|
|
11316
11420
|
constructor(host) {
|
|
@@ -11321,28 +11425,14 @@ class ActionRunExecutor {
|
|
|
11321
11425
|
return Promise.reject(createSixbError2("runtime.stopping", "[Sixb] The runtime is stopping and starts no new Action run; retry the request."));
|
|
11322
11426
|
}
|
|
11323
11427
|
const requested = this.dispatch(request);
|
|
11324
|
-
this.track(requested);
|
|
11428
|
+
this.inFlight.track(requested);
|
|
11325
11429
|
return requested;
|
|
11326
11430
|
}
|
|
11327
11431
|
async drain(timeoutMs) {
|
|
11328
11432
|
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(() => {
|
|
11433
|
+
if (await this.inFlight.drain(timeoutMs))
|
|
11339
11434
|
return;
|
|
11340
|
-
}
|
|
11341
|
-
return;
|
|
11342
|
-
}).finally(() => {
|
|
11343
|
-
this.inFlight.delete(settled);
|
|
11344
|
-
});
|
|
11345
|
-
this.inFlight.add(settled);
|
|
11435
|
+
console.error(`[Sixb] Stopped waiting after ${timeoutMs} ms for ${this.inFlight.size} in-flight Action run(s).`);
|
|
11346
11436
|
}
|
|
11347
11437
|
async dispatch(request) {
|
|
11348
11438
|
for (let held = this.held.get(request.runId);held; held = this.held.get(request.runId)) {
|
|
@@ -11405,7 +11495,7 @@ class ActionRunExecutor {
|
|
|
11405
11495
|
return outcome.record;
|
|
11406
11496
|
}
|
|
11407
11497
|
startEffects(run, effects) {
|
|
11408
|
-
this.track(new Promise((resolve) => setImmediate(resolve)).then(effects).catch((error) => {
|
|
11498
|
+
this.inFlight.track(new Promise((resolve) => setImmediate(resolve)).then(effects).catch((error) => {
|
|
11409
11499
|
console.error(`[Sixb] Action run '${run.id}' failed to run its effects:`, error);
|
|
11410
11500
|
}));
|
|
11411
11501
|
}
|
|
@@ -11456,20 +11546,6 @@ async function drainActionRuns2(host, timeoutMs) {
|
|
|
11456
11546
|
function findActionRunExecutor(owner) {
|
|
11457
11547
|
return owner[actionRunExecutorKey];
|
|
11458
11548
|
}
|
|
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
11549
|
|
|
11474
11550
|
// src/actions/request.ts
|
|
11475
11551
|
function getActionDefinition(runtime, actionId) {
|
|
@@ -11489,6 +11565,8 @@ async function requestAction3(runtime, execution, input) {
|
|
|
11489
11565
|
const executor = getActionRunExecutor(runtime);
|
|
11490
11566
|
request.signal?.throwIfAborted();
|
|
11491
11567
|
const payload = { actionId, subject, params: actionParams };
|
|
11568
|
+
const paramSchemas = Object.fromEntries(Object.entries(action.params).map(([paramId, param]) => [paramId, param.schema]));
|
|
11569
|
+
const describeParam = (paramId) => `Action param '${pathPrefix}.${paramId}'`;
|
|
11492
11570
|
const assertCanReuse = (run) => assertCallerMayHaveRun({
|
|
11493
11571
|
storage: runtime.storage,
|
|
11494
11572
|
projectId,
|
|
@@ -11502,15 +11580,25 @@ async function requestAction3(runtime, execution, input) {
|
|
|
11502
11580
|
runId,
|
|
11503
11581
|
payload,
|
|
11504
11582
|
assertCanReuse,
|
|
11505
|
-
assertNewRun: () =>
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11583
|
+
assertNewRun: async () => {
|
|
11584
|
+
await assertParamUsersActive({
|
|
11585
|
+
auth: runtime.storage.auth,
|
|
11586
|
+
projectId,
|
|
11587
|
+
schemas: paramSchemas,
|
|
11588
|
+
values: actionParams,
|
|
11589
|
+
valueTypesById: runtime.ontology.getValueTypesById(),
|
|
11590
|
+
describe: describeParam,
|
|
11591
|
+
invalid: (message) => new OntologyValidationError2(message)
|
|
11592
|
+
});
|
|
11593
|
+
await assertParamArtifactsUpdatable({
|
|
11594
|
+
updatable: (artifactIds) => updatableArtifactIds(runtime, artifactIds),
|
|
11595
|
+
schemas: paramSchemas,
|
|
11596
|
+
values: actionParams,
|
|
11597
|
+
valueTypesById: runtime.ontology.getValueTypesById(),
|
|
11598
|
+
describe: describeParam,
|
|
11599
|
+
invalid: (message) => new OntologyValidationError2(message)
|
|
11600
|
+
});
|
|
11601
|
+
},
|
|
11514
11602
|
createExecution: async (executionId, runId) => {
|
|
11515
11603
|
const caller = await ensureExecutionRecord2(runtime.storage.executions, executionRecordInputFromRuntime({
|
|
11516
11604
|
execution,
|
|
@@ -11702,4 +11790,4 @@ function snapshotActionRequest(input) {
|
|
|
11702
11790
|
}
|
|
11703
11791
|
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 };
|
|
11704
11792
|
|
|
11705
|
-
//# debugId=
|
|
11793
|
+
//# debugId=57F5D9483CD8FB4B64756E2164756E21
|