@sixb/core 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +56 -50
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +0 -2
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +5 -1
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/cancel.d.ts +1 -1
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/child-question.d.ts +35 -2
- package/dist/agents/child-question.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +3 -2
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/ids.d.ts +2 -0
- package/dist/agents/ids.d.ts.map +1 -1
- package/dist/agents/index.d.ts +4 -4
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +91 -76
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/request.d.ts +7 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +73 -10
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-session-children.d.ts +9 -0
- package/dist/agents/run-session-children.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +3 -0
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/streams/index.js +2 -2
- package/dist/agents/streams/internal.js +2 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/tool-input-coercion.d.ts +20 -0
- package/dist/agents/tool-input-coercion.d.ts.map +1 -0
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/access.d.ts +37 -17
- package/dist/artifacts/access.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +65 -0
- package/dist/artifacts/canvas-display.d.ts.map +1 -0
- package/dist/artifacts/canvas.d.ts +6 -1
- package/dist/artifacts/canvas.d.ts.map +1 -1
- package/dist/artifacts/comment-text.d.ts +19 -0
- package/dist/artifacts/comment-text.d.ts.map +1 -0
- package/dist/artifacts/comments.d.ts +52 -0
- package/dist/artifacts/comments.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +3 -3
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +14 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +129 -22
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +12 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/grants.d.ts +8 -5
- package/dist/artifacts/frames/grants.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +1 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +32 -964
- package/dist/artifacts/frames/index.js.map +4 -8
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +129 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +24 -7
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/holders.d.ts +23 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +2 -0
- package/dist/artifacts/ids.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +6 -4
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +134 -13
- package/dist/artifacts/index.js.map +5 -4
- package/dist/artifacts/limits.d.ts +24 -3
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/board.d.ts +103 -0
- package/dist/artifacts/live/board.d.ts.map +1 -0
- package/dist/artifacts/live/diff.d.ts +43 -0
- package/dist/artifacts/live/diff.d.ts.map +1 -0
- package/dist/artifacts/live/document.d.ts +55 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/files.d.ts +16 -0
- package/dist/artifacts/live/files.d.ts.map +1 -0
- package/dist/artifacts/live/index.d.ts +9 -0
- package/dist/artifacts/live/index.d.ts.map +1 -0
- package/dist/artifacts/live/index.js +593 -0
- package/dist/artifacts/live/index.js.map +10 -0
- package/dist/artifacts/live/presence.d.ts +55 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +109 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.js +21 -0
- package/dist/artifacts/live/protocol.js.map +9 -0
- package/dist/artifacts/live/server.d.ts +10 -0
- package/dist/artifacts/live/server.d.ts.map +1 -0
- package/dist/artifacts/live/server.js +86 -0
- package/dist/artifacts/live/server.js.map +9 -0
- package/dist/artifacts/live/state.d.ts +26 -0
- package/dist/artifacts/live/state.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +11 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +8 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +62 -34
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +75 -0
- package/dist/artifacts/publish/merge.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +153 -0
- package/dist/artifacts/publish/previews.d.ts.map +1 -0
- package/dist/artifacts/publish/publish.d.ts +29 -8
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +20 -0
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +4 -3
- package/dist/artifacts/publish/references.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/canvas.d.ts.map +1 -1
- package/dist/artifacts/theme.d.ts +5 -1
- package/dist/artifacts/theme.d.ts.map +1 -1
- package/dist/auth/directory.d.ts +33 -0
- package/dist/auth/directory.d.ts.map +1 -0
- package/dist/auth/index.js +13 -12
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/member-events.d.ts +5 -1
- package/dist/auth/member-events.d.ts.map +1 -1
- package/dist/auth/runtime.d.ts +22 -1
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/strategy.d.ts +2 -2
- package/dist/auth/strategy.d.ts.map +1 -1
- package/dist/auth/types.d.ts +42 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +6 -5
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -6
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/index.js +4 -4
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/bootstrap/index.js +63 -57
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/broker/in-memory.d.ts.map +1 -1
- package/dist/broker/index.js +1 -1
- package/dist/broker/types.d.ts +4 -0
- package/dist/broker/types.d.ts.map +1 -1
- package/dist/{chunk-s7j8ewqv.js → chunk-0k3r5kb3.js} +257 -43
- package/dist/{chunk-s7j8ewqv.js.map → chunk-0k3r5kb3.js.map} +14 -13
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-80gym75n.js → chunk-186k5yz3.js} +1 -1
- package/dist/chunk-191jz8a6.js +61 -0
- package/dist/chunk-191jz8a6.js.map +10 -0
- package/dist/{chunk-mmagke4x.js → chunk-22d3qg4x.js} +2 -2
- package/dist/{chunk-mmagke4x.js.map → chunk-22d3qg4x.js.map} +3 -3
- package/dist/{chunk-ga63a3dz.js → chunk-2bn6813a.js} +3 -3
- package/dist/chunk-2c4j899j.js.map +2 -2
- package/dist/{chunk-e6xgz4h4.js → chunk-3014rfjz.js} +197 -18
- package/dist/chunk-3014rfjz.js.map +21 -0
- package/dist/{chunk-ytzcxtpt.js → chunk-3ba89vm7.js} +1 -1
- package/dist/chunk-3hzhcfsv.js +139 -0
- package/dist/chunk-3hzhcfsv.js.map +10 -0
- package/dist/chunk-3sgvd10b.js +69 -0
- package/dist/chunk-3sgvd10b.js.map +10 -0
- package/dist/chunk-3z1vxzcm.js +234 -0
- package/dist/chunk-3z1vxzcm.js.map +12 -0
- package/dist/{chunk-djs3hw9p.js → chunk-3zagkr6w.js} +73 -6
- package/dist/chunk-3zagkr6w.js.map +21 -0
- package/dist/{chunk-wkq3kvzd.js → chunk-48c1z8nj.js} +6 -6
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-d04g36fw.js → chunk-5qqmndhm.js} +1 -1
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/chunk-6ef4esq4.js +225 -0
- package/dist/chunk-6ef4esq4.js.map +11 -0
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -0
- package/dist/chunk-7kpqntgw.js +70 -0
- package/dist/chunk-7kpqntgw.js.map +10 -0
- package/dist/{chunk-5wtnmpze.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-31kcqmhf.js → chunk-855w9nvw.js} +1 -1
- package/dist/{chunk-e7v3trpz.js → chunk-8a8k38tz.js} +4 -3
- package/dist/chunk-8a8k38tz.js.map +10 -0
- package/dist/chunk-8bns0y68.js +1322 -0
- package/dist/chunk-8bns0y68.js.map +25 -0
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-9whfmsfk.js → chunk-8tqnsx3q.js} +1 -1
- package/dist/{chunk-s3we74h8.js → chunk-9nsjjd44.js} +38 -5
- package/dist/chunk-9nsjjd44.js.map +12 -0
- package/dist/{chunk-hz5d43gn.js → chunk-9vsc919v.js} +14 -6
- package/dist/chunk-9vsc919v.js.map +10 -0
- package/dist/{chunk-waqk73p1.js → chunk-a6fjkcne.js} +185 -341
- package/dist/{chunk-waqk73p1.js.map → chunk-a6fjkcne.js.map} +6 -7
- package/dist/chunk-az95tsh3.js.map +2 -2
- package/dist/{chunk-s038wa5v.js → chunk-b9qfh2ya.js} +1 -1
- package/dist/{chunk-5taem5aw.js → chunk-bc3y6gff.js} +13 -4
- package/dist/chunk-bc3y6gff.js.map +10 -0
- package/dist/chunk-bz5bnjjt.js +358 -0
- package/dist/chunk-bz5bnjjt.js.map +12 -0
- package/dist/{chunk-w976a4me.js → chunk-czct88ht.js} +28 -4
- package/dist/chunk-czct88ht.js.map +10 -0
- package/dist/{chunk-5kyvrtjh.js → chunk-d9xbwh3h.js} +131 -32
- package/dist/chunk-d9xbwh3h.js.map +13 -0
- package/dist/{chunk-kfee1h52.js → chunk-dfveegqq.js} +28 -8
- package/dist/chunk-dfveegqq.js.map +13 -0
- package/dist/{chunk-2g0r46hy.js → chunk-dhkc9b23.js} +15 -2
- package/dist/chunk-dhkc9b23.js.map +12 -0
- package/dist/chunk-dmnd9ea6.js +106 -0
- package/dist/chunk-dmnd9ea6.js.map +10 -0
- package/dist/{chunk-nz7815t3.js → chunk-e0hnbb1m.js} +27 -2
- package/dist/chunk-e0hnbb1m.js.map +14 -0
- package/dist/chunk-e91fmg6t.js +288 -0
- package/dist/chunk-e91fmg6t.js.map +11 -0
- package/dist/{chunk-3sqqhpr7.js → chunk-evj5jxz3.js} +134 -19
- package/dist/{chunk-3sqqhpr7.js.map → chunk-evj5jxz3.js.map} +11 -10
- package/dist/{chunk-w122ymx4.js → chunk-f6ahf5gf.js} +15 -4
- package/dist/{chunk-w122ymx4.js.map → chunk-f6ahf5gf.js.map} +3 -3
- package/dist/{chunk-jjmggm9a.js → chunk-fe6r7yhg.js} +1 -1
- package/dist/{chunk-165c9wm6.js → chunk-g2ph4873.js} +1 -1
- package/dist/{chunk-dsv783c3.js → chunk-gxwy4c3s.js} +203 -57
- package/dist/chunk-gxwy4c3s.js.map +47 -0
- package/dist/chunk-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/chunk-hn2r7z41.js.map +3 -3
- package/dist/chunk-hvbvq7p4.js +1553 -0
- package/dist/chunk-hvbvq7p4.js.map +18 -0
- package/dist/chunk-j0wgh8gv.js +250 -0
- package/dist/chunk-j0wgh8gv.js.map +10 -0
- package/dist/{chunk-z8fx5cgb.js → chunk-j2zm215x.js} +37 -3
- package/dist/chunk-j2zm215x.js.map +12 -0
- package/dist/{chunk-j1ny5fwh.js → chunk-k1g14kk3.js} +11 -83
- package/dist/{chunk-j1ny5fwh.js.map → chunk-k1g14kk3.js.map} +4 -5
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/{chunk-m2vh8gh0.js → chunk-msyevpp3.js} +62 -15
- package/dist/{chunk-m2vh8gh0.js.map → chunk-msyevpp3.js.map} +5 -5
- package/dist/{chunk-escedwyt.js → chunk-mvz89age.js} +6 -1
- package/dist/{chunk-escedwyt.js.map → chunk-mvz89age.js.map} +3 -3
- package/dist/chunk-mwcqz3e3.js +30 -0
- package/dist/chunk-mwcqz3e3.js.map +10 -0
- package/dist/chunk-n2ay51px.js +21 -0
- package/dist/chunk-n2ay51px.js.map +10 -0
- package/dist/chunk-n4zzaf6q.js.map +1 -1
- package/dist/{chunk-gkv8r794.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-gkv8r794.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-0j3crh1w.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-0j3crh1w.js.map → chunk-p351afzm.js.map} +4 -4
- package/dist/{chunk-c7cfe31p.js → chunk-p8pgnq8d.js} +16 -16
- package/dist/{chunk-c7cfe31p.js.map → chunk-p8pgnq8d.js.map} +1 -1
- package/dist/chunk-pk539cwv.js +370 -0
- package/dist/chunk-pk539cwv.js.map +11 -0
- package/dist/{chunk-jbw70d6t.js → chunk-ppxf7gw2.js} +52 -10
- package/dist/chunk-ppxf7gw2.js.map +11 -0
- package/dist/{chunk-9x8dybsb.js → chunk-pvpq483h.js} +10 -2
- package/dist/chunk-pvpq483h.js.map +10 -0
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-a7aa0nzj.js → chunk-r9rtavg9.js} +14 -14
- package/dist/{chunk-a7aa0nzj.js.map → chunk-r9rtavg9.js.map} +1 -1
- package/dist/{chunk-w1btn96n.js → chunk-rsrc7vtw.js} +523 -254
- package/dist/chunk-rsrc7vtw.js.map +49 -0
- package/dist/{chunk-2ajw5rz0.js → chunk-rsxb14an.js} +3 -3
- package/dist/{chunk-kkjfve0t.js → chunk-rt9deb92.js} +4 -3
- package/dist/{chunk-kkjfve0t.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-a5v4gjdx.js → chunk-rtm1jq00.js} +460 -227
- package/dist/{chunk-a5v4gjdx.js.map → chunk-rtm1jq00.js.map} +25 -22
- package/dist/{chunk-4bm0caep.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-nh26e7c5.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-nh26e7c5.js.map → chunk-sysnvjce.js.map} +3 -3
- package/dist/{chunk-7z5rkf0m.js → chunk-t0s7b3d1.js} +4 -3
- package/dist/{chunk-7z5rkf0m.js.map → chunk-t0s7b3d1.js.map} +3 -3
- package/dist/{chunk-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-mbc5hvnj.js → chunk-td26wjr5.js} +18 -7
- package/dist/{chunk-mbc5hvnj.js.map → chunk-td26wjr5.js.map} +3 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/{chunk-f1h34y3r.js → chunk-vepea5c3.js} +6 -6
- package/dist/{chunk-f1h34y3r.js.map → chunk-vepea5c3.js.map} +1 -1
- package/dist/chunk-vtjzwymr.js +37 -0
- package/dist/chunk-vtjzwymr.js.map +10 -0
- package/dist/{chunk-twfreyxr.js → chunk-vzkxqf8h.js} +23 -13
- package/dist/{chunk-twfreyxr.js.map → chunk-vzkxqf8h.js.map} +6 -6
- package/dist/{chunk-eqgr6nsa.js → chunk-w1wq7gfr.js} +983 -185
- package/dist/chunk-w1wq7gfr.js.map +75 -0
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-fwsvshr5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-fwsvshr5.js.map → chunk-wa05txmk.js.map} +3 -3
- package/dist/chunk-whbwf3np.js +12 -0
- package/dist/chunk-whbwf3np.js.map +10 -0
- package/dist/{chunk-t5608tkq.js → chunk-yv8hv4wq.js} +3 -1
- package/dist/{chunk-t5608tkq.js.map → chunk-yv8hv4wq.js.map} +3 -3
- package/dist/{chunk-j8thxj7w.js → chunk-yy914zfr.js} +1218 -101
- package/dist/chunk-yy914zfr.js.map +30 -0
- package/dist/connectors/builders.d.ts +2 -2
- package/dist/connectors/builders.d.ts.map +1 -1
- package/dist/connectors/connections/access.d.ts +11 -0
- package/dist/connectors/connections/access.d.ts.map +1 -0
- package/dist/connectors/connections/contracts.d.ts +6 -1
- package/dist/connectors/connections/contracts.d.ts.map +1 -1
- package/dist/connectors/connections/internal.js +1 -1
- package/dist/connectors/connections/runs.d.ts +6 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +25 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/connections/views.d.ts +1 -1
- package/dist/connectors/connections/views.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/service.d.ts +3 -0
- package/dist/connectors/service.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +21 -2
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/execution.d.ts +12 -6
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/ingest-flush-batch.d.ts +59 -0
- package/dist/datasets/ingest-flush-batch.d.ts.map +1 -0
- package/dist/datasets/ingest-flush-job.d.ts +33 -0
- package/dist/datasets/ingest-flush-job.d.ts.map +1 -0
- package/dist/datasets/ingest-flush.d.ts +66 -0
- package/dist/datasets/ingest-flush.d.ts.map +1 -0
- package/dist/datasets/produced-version.d.ts +21 -0
- package/dist/datasets/produced-version.d.ts.map +1 -0
- package/dist/datasets/write.d.ts +22 -1
- package/dist/datasets/write.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -4
- package/dist/datasets/write.js.map +1 -1
- package/dist/deploy/internal.js +5 -4
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/types.d.ts +2 -3
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/error-reporting/capability.d.ts +8 -2
- package/dist/error-reporting/capability.d.ts.map +1 -1
- package/dist/error-reporting/internal.d.ts +1 -1
- package/dist/error-reporting/internal.d.ts.map +1 -1
- package/dist/error-reporting/internal.js +17 -5
- package/dist/error-reporting/internal.js.map +1 -1
- package/dist/error-reporting/reporter.d.ts.map +1 -1
- package/dist/error-reporting/reports.d.ts +55 -0
- package/dist/error-reporting/reports.d.ts.map +1 -1
- package/dist/error-reporting/types.d.ts +82 -1
- package/dist/error-reporting/types.d.ts.map +1 -1
- package/dist/errors/catalog.d.ts +5 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/definitions.d.ts +4 -0
- package/dist/events/definitions.d.ts.map +1 -1
- package/dist/events/execution.d.ts +1 -0
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +5 -5
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/types/artifacts.d.ts +38 -0
- package/dist/events/types/artifacts.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +3 -1
- package/dist/events/types/index.d.ts.map +1 -1
- package/dist/events/types/users.d.ts +5 -2
- package/dist/events/types/users.d.ts.map +1 -1
- package/dist/execution/agent.js +58 -52
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +10 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +6 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -1
- package/dist/execution/object-reader-security.d.ts +9 -2
- package/dist/execution/object-reader-security.d.ts.map +1 -1
- package/dist/execution/primitive.js +56 -50
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +50 -44
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +96 -88
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/errors.d.ts +15 -0
- package/dist/lake-storage/errors.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +3 -2
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +16 -10
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/maintenance.d.ts +88 -0
- package/dist/lake-storage/maintenance.d.ts.map +1 -0
- package/dist/lake-storage/merge.d.ts +3 -1
- package/dist/lake-storage/merge.d.ts.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +23 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +10 -0
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/maintenance/heartbeat.d.ts +5 -0
- package/dist/maintenance/heartbeat.d.ts.map +1 -0
- package/dist/maintenance/index.d.ts +4 -2
- package/dist/maintenance/index.d.ts.map +1 -1
- package/dist/maintenance/index.js +515 -0
- package/dist/maintenance/index.js.map +16 -0
- package/dist/maintenance/lake-retention-status.d.ts +36 -0
- package/dist/maintenance/lake-retention-status.d.ts.map +1 -0
- package/dist/maintenance/lake-retention.d.ts +84 -0
- package/dist/maintenance/lake-retention.d.ts.map +1 -0
- package/dist/maintenance/loop.d.ts +95 -0
- package/dist/maintenance/loop.d.ts.map +1 -0
- package/dist/maintenance/ontology-maintenance.d.ts +17 -16
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/maintenance/passes/cron-pass.d.ts +21 -0
- package/dist/maintenance/passes/cron-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/directory-pass.d.ts +12 -0
- package/dist/maintenance/passes/directory-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ingest-pass.d.ts +26 -0
- package/dist/maintenance/passes/ingest-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts +38 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts +20 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ontology-pass.d.ts +8 -0
- package/dist/maintenance/passes/ontology-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/projections-pass.d.ts +26 -0
- package/dist/maintenance/passes/projections-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-pass.d.ts +6 -0
- package/dist/maintenance/passes/recovery-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-passes.d.ts +24 -0
- package/dist/maintenance/passes/recovery-passes.d.ts.map +1 -0
- package/dist/maintenance/passes/runs-pass.d.ts +6 -0
- package/dist/maintenance/passes/runs-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/triggers-pass.d.ts +41 -0
- package/dist/maintenance/passes/triggers-pass.d.ts.map +1 -0
- package/dist/maintenance/status.d.ts +19 -0
- package/dist/maintenance/status.d.ts.map +1 -0
- package/dist/maintenance/types.d.ts +25 -24
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/materialization/model.d.ts +11 -2
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/edits/artifact-refs.d.ts +33 -0
- package/dist/materializer/edits/artifact-refs.d.ts.map +1 -0
- package/dist/materializer/edits/commit.d.ts.map +1 -1
- package/dist/materializer/edits/operations.d.ts +7 -1
- package/dist/materializer/edits/operations.d.ts.map +1 -1
- package/dist/materializer/edits/plan.d.ts.map +1 -1
- package/dist/materializer/execution/work-records.d.ts +6 -0
- package/dist/materializer/execution/work-records.d.ts.map +1 -1
- package/dist/materializer/index.js +31 -28
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/materializer/telemetry/plan.d.ts.map +1 -1
- package/dist/models/execution/index.js +30 -27
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/language-model.d.ts +6 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/tools.d.ts +2 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +59 -54
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/materializer-adapter.d.ts +4 -3
- package/dist/objects/materializer-adapter.d.ts.map +1 -1
- package/dist/objects/object/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/upsert.d.ts.map +1 -1
- package/dist/objects/query/index.js +29 -26
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/ir.d.ts +3 -1
- package/dist/objects/query/ir.d.ts.map +1 -1
- package/dist/objects/query/scalar-values.d.ts.map +1 -1
- package/dist/objects/runtime-batch.d.ts +2 -0
- package/dist/objects/runtime-batch.d.ts.map +1 -1
- package/dist/ontology/artifact-ref.d.ts +36 -0
- package/dist/ontology/artifact-ref.d.ts.map +1 -0
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.d.ts +3 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +8 -5
- package/dist/ontology/index.js.map +1 -1
- package/dist/ontology/inference/index.d.ts +2 -0
- package/dist/ontology/inference/index.d.ts.map +1 -1
- package/dist/ontology/internal.js +7 -6
- package/dist/ontology/internal.js.map +1 -1
- package/dist/ontology/json-schema.d.ts.map +1 -1
- package/dist/ontology/primitives.d.ts.map +1 -1
- package/dist/ontology/reference-values.d.ts +10 -0
- package/dist/ontology/reference-values.d.ts.map +1 -0
- package/dist/ontology/refs.d.ts +6 -1
- package/dist/ontology/refs.d.ts.map +1 -1
- package/dist/ontology/registry.d.ts +9 -1
- package/dist/ontology/registry.d.ts.map +1 -1
- package/dist/ontology/types.d.ts +2 -1
- package/dist/ontology/types.d.ts.map +1 -1
- package/dist/ontology/user-ref.d.ts +16 -0
- package/dist/ontology/user-ref.d.ts.map +1 -1
- package/dist/ontology/validation/normalize.d.ts.map +1 -1
- package/dist/ontology/validation/properties.d.ts.map +1 -1
- package/dist/ontology/validation/schema.d.ts.map +1 -1
- package/dist/pending-tasks.d.ts +17 -0
- package/dist/pending-tasks.d.ts.map +1 -0
- package/dist/pipelines/index.js +37 -34
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/run-dispatch.d.ts +6 -0
- package/dist/pipelines/run-dispatch.d.ts.map +1 -1
- package/dist/predicates/types.d.ts +4 -0
- package/dist/predicates/types.d.ts.map +1 -1
- package/dist/projections/builders.d.ts +13 -11
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/internal.js +30 -27
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/types.d.ts +1 -1
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts +2 -2
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +6 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/index.js +1 -1
- package/dist/queues/types.d.ts +55 -2
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +3 -0
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +22 -5
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +6 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +52 -31
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/sixb.d.ts +6 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/index.js +8 -7
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +0 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +3 -6
- package/dist/scheduler/index.js.map +1 -1
- package/dist/schedules/index.js +9 -11
- package/dist/schedules/index.js.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/shared/backoff.d.ts +12 -0
- package/dist/shared/backoff.d.ts.map +1 -0
- package/dist/shared/duration.d.ts +3 -0
- package/dist/shared/duration.d.ts.map +1 -0
- package/dist/shared/params/artifact-refs.d.ts +19 -0
- package/dist/shared/params/artifact-refs.d.ts.map +1 -0
- package/dist/shares/guest-name.d.ts +8 -0
- package/dist/shares/guest-name.d.ts.map +1 -0
- package/dist/shares/internal.d.ts +1 -0
- package/dist/shares/internal.d.ts.map +1 -1
- package/dist/shares/internal.js +69 -28
- package/dist/shares/internal.js.map +3 -3
- package/dist/shares/session-protocol.d.ts +13 -0
- package/dist/shares/session-protocol.d.ts.map +1 -1
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/agents/provider.js +1 -1
- package/dist/storage/agents/types.d.ts +1 -1
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +2 -2
- package/dist/storage/artifacts/errors.d.ts +9 -4
- package/dist/storage/artifacts/errors.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +27 -4
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +39 -2
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +328 -39
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts +2 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/identities.d.ts +4 -0
- package/dist/storage/auth/in-memory/identities.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +3 -1
- package/dist/storage/auth/in-memory/shared.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/users.d.ts.map +1 -1
- package/dist/storage/auth/index.d.ts +1 -1
- package/dist/storage/auth/index.d.ts.map +1 -1
- package/dist/storage/auth/types.d.ts +39 -0
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts.map +1 -1
- package/dist/storage/connector-connections/index.d.ts +1 -1
- package/dist/storage/connector-connections/index.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/runs.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/shared.d.ts +12 -2
- package/dist/storage/connector-connections/provider/shared.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.d.ts +1 -0
- package/dist/storage/connector-connections/provider.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +21 -5
- package/dist/storage/connector-connections/provider.js.map +5 -5
- package/dist/storage/connector-connections/types.d.ts +1 -1
- package/dist/storage/connector-connections/types.d.ts.map +1 -1
- package/dist/storage/dataset-ingest/codec.d.ts +6 -0
- package/dist/storage/dataset-ingest/codec.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts +28 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/index.d.ts +4 -0
- package/dist/storage/dataset-ingest/index.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.d.ts +157 -0
- package/dist/storage/dataset-ingest/provider.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.js +17 -0
- package/dist/storage/dataset-ingest/provider.js.map +9 -0
- package/dist/storage/dataset-ingest/types.d.ts +188 -0
- package/dist/storage/dataset-ingest/types.d.ts.map +1 -0
- package/dist/storage/file-upload-sessions/provider.js +12 -11
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts +12 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +18 -11
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +56 -46
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +4 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +81 -5
- package/dist/storage/internal.js.map +4 -3
- package/dist/storage/lake-retention-runs/in-memory.d.ts +11 -0
- package/dist/storage/lake-retention-runs/in-memory.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/index.d.ts +3 -0
- package/dist/storage/lake-retention-runs/index.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/types.d.ts +21 -0
- package/dist/storage/lake-retention-runs/types.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts +3 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts +30 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/in-memory/storage.d.ts +15 -1
- package/dist/storage/objects/in-memory/storage.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +18 -1
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/index.d.ts +1 -1
- package/dist/storage/ontology/index.d.ts.map +1 -1
- package/dist/storage/ontology/materializations.d.ts +20 -0
- package/dist/storage/ontology/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/provider-work.d.ts +7 -1
- package/dist/storage/ontology/provider-work.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/pipeline-runs/in-memory.d.ts +8 -2
- package/dist/storage/pipeline-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/index.d.ts +1 -1
- package/dist/storage/pipeline-runs/index.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/provider.js +1 -1
- package/dist/storage/pipeline-runs/transitions.d.ts +2 -2
- package/dist/storage/pipeline-runs/transitions.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/types.d.ts +26 -6
- package/dist/storage/pipeline-runs/types.d.ts.map +1 -1
- package/dist/storage/projection-runs/errors.d.ts +6 -0
- package/dist/storage/projection-runs/errors.d.ts.map +1 -1
- package/dist/storage/projection-runs/in-memory.d.ts +5 -1
- package/dist/storage/projection-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/projection-runs/index.d.ts +2 -2
- package/dist/storage/projection-runs/index.d.ts.map +1 -1
- package/dist/storage/projection-runs/lifecycle.d.ts +1 -0
- package/dist/storage/projection-runs/lifecycle.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/projection-runs/types.d.ts +16 -0
- package/dist/storage/projection-runs/types.d.ts.map +1 -1
- package/dist/storage/run-claim.d.ts +132 -0
- package/dist/storage/run-claim.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.js +3 -3
- package/dist/storage/share-sessions/in-memory.d.ts +2 -1
- package/dist/storage/share-sessions/in-memory.d.ts.map +1 -1
- package/dist/storage/share-sessions/index.d.ts +1 -1
- package/dist/storage/share-sessions/index.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.d.ts +1 -1
- package/dist/storage/share-sessions/provider.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.js +4 -2
- package/dist/storage/share-sessions/provider.js.map +1 -1
- package/dist/storage/share-sessions/record.d.ts +2 -1
- package/dist/storage/share-sessions/record.d.ts.map +1 -1
- package/dist/storage/share-sessions/types.d.ts +17 -1
- package/dist/storage/share-sessions/types.d.ts.map +1 -1
- package/dist/storage/sync-runs/in-memory.d.ts +10 -2
- package/dist/storage/sync-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/sync-runs/index.d.ts +1 -1
- package/dist/storage/sync-runs/index.d.ts.map +1 -1
- package/dist/storage/sync-runs/transitions.d.ts +2 -2
- package/dist/storage/sync-runs/transitions.d.ts.map +1 -1
- package/dist/storage/sync-runs/types.d.ts +29 -3
- package/dist/storage/sync-runs/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +12 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/webhook-runs/in-memory.d.ts +2 -1
- package/dist/storage/webhook-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/webhook-runs/index.d.ts +2 -2
- package/dist/storage/webhook-runs/index.d.ts.map +1 -1
- package/dist/storage/webhook-runs/types.d.ts +33 -2
- package/dist/storage/webhook-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +6 -3
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/index.d.ts +1 -1
- package/dist/storage/workflow-runs/index.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +12 -11
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +11 -28
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +38 -35
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/run-dispatch.d.ts +2 -0
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/artifact-holders-contract.d.ts +15 -0
- package/dist/testing/artifact-holders-contract.d.ts.map +1 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/broker-contract.d.ts.map +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts.map +1 -1
- package/dist/testing/dataset-ingest-storage-contract.d.ts +11 -0
- package/dist/testing/dataset-ingest-storage-contract.d.ts.map +1 -0
- package/dist/testing/dataset-sequence-contract.d.ts +1 -1
- package/dist/testing/dataset-sequence-contract.d.ts.map +1 -1
- package/dist/testing/execution.d.ts.map +1 -1
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6245 -3192
- package/dist/testing/index.js.map +28 -19
- package/dist/testing/lake-retention-run-storage-contract.d.ts +9 -0
- package/dist/testing/lake-retention-run-storage-contract.d.ts.map +1 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts +9 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts.map +1 -0
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/testing/pipeline-execution.d.ts.map +1 -1
- package/dist/testing/pipeline-run-read-contract.d.ts +13 -0
- package/dist/testing/pipeline-run-read-contract.d.ts.map +1 -0
- package/dist/testing/projection-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/run-claim-storage-contract.d.ts +12 -0
- package/dist/testing/run-claim-storage-contract.d.ts.map +1 -0
- package/dist/testing/run-claim.d.ts +30 -0
- package/dist/testing/run-claim.d.ts.map +1 -0
- package/dist/testing/run-recovery-contract.d.ts +49 -0
- package/dist/testing/run-recovery-contract.d.ts.map +1 -0
- package/dist/testing/share-session-storage-contract.d.ts.map +1 -1
- package/dist/testing/stored-artifacts.d.ts +10 -0
- package/dist/testing/stored-artifacts.d.ts.map +1 -0
- package/dist/testing/sync-execution.d.ts.map +1 -1
- package/dist/testing/webhook-execution.d.ts +1 -1
- package/dist/testing/webhook-execution.d.ts.map +1 -1
- package/dist/testing/webhook-run-storage-contract.d.ts.map +1 -1
- package/dist/users/execution.d.ts +18 -1
- package/dist/users/execution.d.ts.map +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/users/index.d.ts.map +1 -1
- package/dist/webhooks/delivery-lease.d.ts +13 -0
- package/dist/webhooks/delivery-lease.d.ts.map +1 -0
- package/dist/webhooks/internal.d.ts +2 -0
- package/dist/webhooks/internal.d.ts.map +1 -1
- package/dist/webhooks/internal.js +68 -36
- package/dist/webhooks/internal.js.map +5 -4
- package/dist/webhooks/run-admission.d.ts.map +1 -1
- package/dist/workers/index.d.ts +5 -1
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/index.js +193 -58
- package/dist/workers/index.js.map +8 -7
- package/dist/workers/job-ids.d.ts +17 -0
- package/dist/workers/job-ids.d.ts.map +1 -0
- package/dist/workers/lost-projection-runs.d.ts +26 -0
- package/dist/workers/lost-projection-runs.d.ts.map +1 -0
- package/dist/workers/lost-runs.d.ts +51 -0
- package/dist/workers/lost-runs.d.ts.map +1 -0
- package/dist/workers/queue-delivery.d.ts.map +1 -1
- package/dist/workers/queue-worker.d.ts +1 -2
- package/dist/workers/queue-worker.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts +90 -0
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -0
- package/dist/workers/run-lease.d.ts +25 -0
- package/dist/workers/run-lease.d.ts.map +1 -0
- package/dist/workers/run-worker.d.ts +95 -0
- package/dist/workers/run-worker.d.ts.map +1 -0
- package/dist/workflows/index.js +64 -58
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/request.d.ts.map +1 -1
- package/dist/workflows/run-dispatch.d.ts +6 -1
- package/dist/workflows/run-dispatch.d.ts.map +1 -1
- package/package.json +41 -3
- package/src/actions/request.ts +24 -7
- package/src/actions/run/executor.ts +9 -42
- package/src/actions/types/context.ts +8 -3
- package/src/agents/approval-outcome.ts +2 -2
- package/src/agents/cancel.ts +2 -2
- package/src/agents/child-question.ts +76 -8
- package/src/agents/execution.ts +11 -3
- package/src/agents/fork.ts +12 -4
- package/src/agents/ids.ts +4 -1
- package/src/agents/index.ts +16 -3
- package/src/agents/model-loop.ts +3 -1
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-session-children.ts +33 -0
- package/src/agents/run-session-http.ts +5 -0
- package/src/agents/run-session-serve.ts +11 -0
- package/src/agents/run-session.ts +8 -1
- package/src/agents/streams/protocol.ts +5 -10
- package/src/agents/tool-files.ts +1 -1
- package/src/agents/tool-input-coercion.ts +140 -0
- package/src/agents/validation.ts +12 -1
- package/src/artifacts/access.ts +71 -28
- package/src/artifacts/canvas-display.ts +160 -0
- package/src/artifacts/canvas.ts +26 -1
- package/src/artifacts/comment-text.ts +32 -0
- package/src/artifacts/comments.ts +275 -0
- package/src/artifacts/errors.ts +6 -1
- package/src/artifacts/events.ts +58 -0
- package/src/artifacts/execution.ts +496 -53
- package/src/artifacts/frames/assets.ts +20 -1
- package/src/artifacts/frames/grants.ts +31 -10
- package/src/artifacts/frames/index.ts +2 -0
- package/src/artifacts/frames/kit.ts +8 -5
- package/src/artifacts/frames/protocol.ts +231 -0
- package/src/artifacts/frames/runtime.ts +600 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +31 -2
- package/src/artifacts/limits.ts +28 -4
- package/src/artifacts/live/board.ts +759 -0
- package/src/artifacts/live/diff.ts +297 -0
- package/src/artifacts/live/document.ts +354 -0
- package/src/artifacts/live/files.ts +82 -0
- package/src/artifacts/live/index.ts +50 -0
- package/src/artifacts/live/presence.ts +144 -0
- package/src/artifacts/live/protocol.ts +134 -0
- package/src/artifacts/live/server.ts +16 -0
- package/src/artifacts/live/state.ts +115 -0
- package/src/artifacts/outline.ts +12 -0
- package/src/artifacts/publish/index.ts +26 -1
- package/src/artifacts/publish/merge.ts +271 -0
- package/src/artifacts/publish/previews.ts +485 -0
- package/src/artifacts/publish/publish.ts +92 -39
- package/src/artifacts/publish/query-answers.ts +85 -0
- package/src/artifacts/publish/references.ts +10 -4
- package/src/artifacts/publish/validate/canvas.ts +133 -1
- package/src/artifacts/theme.ts +9 -1
- package/src/auth/directory.ts +166 -0
- package/src/auth/member-events.ts +10 -3
- package/src/auth/runtime.ts +108 -8
- package/src/auth/strategy.ts +3 -1
- package/src/auth/types.ts +44 -0
- package/src/authorization/decision.ts +6 -5
- package/src/authorization/event-visibility.ts +4 -0
- package/src/broker/in-memory.ts +33 -6
- package/src/broker/types.ts +4 -0
- package/src/connectors/builders.ts +34 -2
- package/src/connectors/connections/access.ts +83 -0
- package/src/connectors/connections/contracts.ts +6 -1
- package/src/connectors/connections/execution.ts +2 -2
- package/src/connectors/connections/runs.ts +51 -2
- package/src/connectors/connections/service.ts +208 -41
- package/src/connectors/connections/views.ts +11 -4
- package/src/connectors/execution.ts +27 -3
- package/src/connectors/index.ts +2 -0
- package/src/connectors/service.ts +12 -0
- package/src/connectors/types.ts +37 -2
- package/src/datasets/execution.ts +74 -37
- package/src/datasets/ingest-flush-batch.ts +289 -0
- package/src/datasets/ingest-flush-job.ts +112 -0
- package/src/datasets/ingest-flush.ts +377 -0
- package/src/datasets/produced-version.ts +55 -0
- package/src/datasets/write.ts +65 -11
- package/src/deploy/services.ts +1 -1
- package/src/deploy/types.ts +2 -3
- package/src/deploy/validation.ts +1 -0
- package/src/error-reporting/capability.ts +66 -0
- package/src/error-reporting/internal.ts +12 -0
- package/src/error-reporting/reporter.ts +11 -35
- package/src/error-reporting/reports.ts +167 -0
- package/src/error-reporting/types.ts +99 -0
- package/src/errors/catalog.ts +6 -0
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +77 -28
- package/src/events/index.ts +3 -0
- package/src/events/scope.ts +2 -0
- package/src/events/types/artifacts.ts +40 -0
- package/src/events/types/index.ts +3 -0
- package/src/events/types/users.ts +5 -2
- package/src/execution/authorized-object-reader.ts +34 -0
- package/src/execution/object-reader-clearance.ts +31 -0
- package/src/execution/object-reader-security.ts +33 -13
- package/src/http/api-routes.ts +106 -5
- package/src/index.ts +22 -4
- package/src/lake-storage/errors.ts +21 -0
- package/src/lake-storage/index.ts +9 -1
- package/src/lake-storage/maintenance.ts +93 -0
- package/src/lake-storage/merge.ts +3 -1
- package/src/lake-storage/source-ordering.ts +28 -2
- package/src/lake-storage/types.ts +14 -0
- package/src/maintenance/heartbeat.ts +14 -0
- package/src/maintenance/index.ts +5 -3
- package/src/maintenance/lake-retention-status.ts +81 -0
- package/src/maintenance/lake-retention.ts +347 -0
- package/src/maintenance/loop.ts +365 -0
- package/src/maintenance/ontology-maintenance.ts +76 -229
- package/src/maintenance/passes/cron-pass.ts +217 -0
- package/src/maintenance/passes/directory-pass.ts +22 -0
- package/src/maintenance/passes/ingest-pass.ts +94 -0
- package/src/maintenance/passes/lake-change-feed.ts +112 -0
- package/src/maintenance/passes/lake-retention-pass.ts +71 -0
- package/src/maintenance/passes/ontology-pass.ts +19 -0
- package/src/maintenance/passes/projections-pass.ts +238 -0
- package/src/maintenance/passes/recovery-pass.ts +17 -0
- package/src/maintenance/passes/recovery-passes.ts +39 -0
- package/src/maintenance/passes/runs-pass.ts +12 -0
- package/src/maintenance/passes/triggers-pass.ts +332 -0
- package/src/maintenance/status.ts +75 -0
- package/src/maintenance/types.ts +27 -25
- package/src/materialization/model.ts +33 -21
- package/src/materializer/README.md +13 -2
- package/src/materializer/edits/artifact-refs.ts +140 -0
- package/src/materializer/edits/commit.ts +20 -7
- package/src/materializer/edits/operations.ts +23 -7
- package/src/materializer/edits/plan.ts +2 -0
- package/src/materializer/execution/work-records.ts +61 -0
- package/src/materializer/projections/replacement-plan.ts +2 -0
- package/src/materializer/shared/normalize.ts +14 -0
- package/src/materializer/telemetry/plan.ts +2 -0
- package/src/models/language-model.ts +6 -0
- package/src/models/tools.ts +2 -0
- package/src/objects/artifact-refs.ts +34 -0
- package/src/objects/materializer-adapter.ts +8 -3
- package/src/objects/object/upsert-batch.ts +7 -0
- package/src/objects/object/upsert.ts +11 -2
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/runtime-batch.ts +8 -1
- package/src/objects/vectors/README.md +4 -4
- package/src/ontology/artifact-ref.ts +83 -0
- package/src/ontology/docs-markdown.ts +17 -0
- package/src/ontology/index.ts +3 -1
- package/src/ontology/inference/index.ts +2 -0
- package/src/ontology/json-schema.ts +13 -0
- package/src/ontology/primitives.ts +14 -0
- package/src/ontology/reference-values.ts +62 -0
- package/src/ontology/refs.ts +7 -1
- package/src/ontology/registry.ts +26 -1
- package/src/ontology/types.ts +2 -0
- package/src/ontology/user-ref.ts +35 -45
- package/src/ontology/validation/normalize.ts +13 -0
- package/src/ontology/validation/properties.ts +9 -0
- package/src/ontology/validation/schema.ts +12 -0
- package/src/pending-tasks.ts +51 -0
- package/src/pipelines/run-dispatch.ts +120 -238
- package/src/predicates/types.ts +2 -1
- package/src/projections/builders.ts +28 -13
- package/src/projections/run-dispatch.ts +1 -1
- package/src/projections/types.ts +1 -1
- package/src/projections/validation.ts +22 -8
- package/src/queues/in-memory.ts +50 -3
- package/src/queues/index.ts +4 -0
- package/src/queues/types.ts +68 -1
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +118 -13
- package/src/runtime/index.ts +0 -1
- package/src/runtime/internal.ts +13 -0
- package/src/runtime/ontology-mutations.ts +1 -1
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/shared/backoff.ts +34 -0
- package/src/shared/duration.ts +15 -0
- package/src/shared/params/artifact-refs.ts +42 -0
- package/src/shares/compiler.ts +1 -1
- package/src/shares/guest-name.ts +20 -0
- package/src/shares/internal.ts +1 -0
- package/src/shares/session-protocol.ts +63 -0
- package/src/storage/agents/types.ts +1 -1
- package/src/storage/artifacts/errors.ts +10 -2
- package/src/storage/artifacts/in-memory.ts +579 -96
- package/src/storage/artifacts/index.ts +22 -1
- package/src/storage/artifacts/record.ts +255 -11
- package/src/storage/artifacts/types.ts +343 -40
- package/src/storage/auth/in-memory/auth-storage.ts +42 -5
- package/src/storage/auth/in-memory/identities.ts +16 -0
- package/src/storage/auth/in-memory/shared.ts +15 -0
- package/src/storage/auth/in-memory/users.ts +17 -16
- package/src/storage/auth/index.ts +3 -0
- package/src/storage/auth/types.ts +38 -0
- package/src/storage/connector-connections/in-memory.ts +4 -1
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/runs.ts +3 -0
- package/src/storage/connector-connections/provider/shared.ts +30 -0
- package/src/storage/connector-connections/provider.ts +4 -0
- package/src/storage/connector-connections/types.ts +1 -0
- package/src/storage/dataset-ingest/codec.ts +90 -0
- package/src/storage/dataset-ingest/in-memory.ts +277 -0
- package/src/storage/dataset-ingest/index.ts +16 -0
- package/src/storage/dataset-ingest/provider.ts +592 -0
- package/src/storage/dataset-ingest/types.ts +191 -0
- package/src/storage/in-memory/index.ts +33 -0
- package/src/storage/index.ts +65 -5
- package/src/storage/internal.ts +20 -0
- package/src/storage/lake-retention-runs/in-memory.ts +22 -0
- package/src/storage/lake-retention-runs/index.ts +2 -0
- package/src/storage/lake-retention-runs/types.ts +19 -0
- package/src/storage/maintenance-heartbeats/in-memory.ts +24 -0
- package/src/storage/maintenance-heartbeats/index.ts +7 -0
- package/src/storage/maintenance-heartbeats/record.ts +50 -0
- package/src/storage/maintenance-heartbeats/types.ts +30 -0
- package/src/storage/objects/in-memory/query.ts +1 -0
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/read-scope.ts +1 -0
- package/src/storage/objects/types.ts +16 -1
- package/src/storage/ontology/in-memory/materializations.ts +8 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +4 -1
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/materializations.ts +18 -0
- package/src/storage/ontology/provider-work.ts +39 -0
- package/src/storage/pipeline-runs/in-memory.ts +97 -24
- package/src/storage/pipeline-runs/index.ts +0 -1
- package/src/storage/pipeline-runs/provider.ts +1 -1
- package/src/storage/pipeline-runs/transitions.ts +7 -4
- package/src/storage/pipeline-runs/types.ts +33 -7
- package/src/storage/projection-runs/errors.ts +10 -0
- package/src/storage/projection-runs/in-memory.ts +56 -1
- package/src/storage/projection-runs/index.ts +2 -1
- package/src/storage/projection-runs/lifecycle.ts +9 -1
- package/src/storage/projection-runs/types.ts +20 -1
- package/src/storage/run-claim.ts +224 -0
- package/src/storage/share-sessions/in-memory.ts +21 -0
- package/src/storage/share-sessions/index.ts +1 -0
- package/src/storage/share-sessions/provider.ts +1 -0
- package/src/storage/share-sessions/record.ts +28 -0
- package/src/storage/share-sessions/types.ts +19 -1
- package/src/storage/sync-runs/in-memory.ts +109 -29
- package/src/storage/sync-runs/index.ts +1 -1
- package/src/storage/sync-runs/transitions.ts +7 -4
- package/src/storage/sync-runs/types.ts +36 -3
- package/src/storage/types.ts +15 -5
- package/src/storage/webhook-runs/in-memory.ts +26 -2
- package/src/storage/webhook-runs/index.ts +3 -1
- package/src/storage/webhook-runs/types.ts +44 -3
- package/src/storage/workflow-runs/in-memory.ts +50 -36
- package/src/storage/workflow-runs/index.ts +0 -2
- package/src/storage/workflow-runs/types.ts +18 -30
- package/src/syncs/run-dispatch.ts +118 -239
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/artifact-holders-contract.ts +392 -0
- package/src/testing/artifact-storage-contract.ts +1205 -151
- package/src/testing/auth-storage-contract.ts +228 -1
- package/src/testing/broker-contract.ts +56 -0
- package/src/testing/connector-connection-storage-contract.ts +94 -5
- package/src/testing/dataset-ingest-storage-contract.ts +480 -0
- package/src/testing/dataset-sequence-contract.ts +97 -12
- package/src/testing/execution.ts +23 -0
- package/src/testing/index.ts +31 -0
- package/src/testing/lake-retention-run-storage-contract.ts +75 -0
- package/src/testing/maintenance-heartbeat-storage-contract.ts +99 -0
- package/src/testing/object-query-contract.ts +93 -0
- package/src/testing/pipeline-execution.ts +3 -1
- package/src/testing/pipeline-run-read-contract.ts +123 -0
- package/src/testing/projection-run-storage-contract.ts +113 -0
- package/src/testing/queues-contract.ts +112 -0
- package/src/testing/run-claim-storage-contract.ts +736 -0
- package/src/testing/run-claim.ts +69 -0
- package/src/testing/run-recovery-contract.ts +176 -0
- package/src/testing/share-session-storage-contract.ts +43 -0
- package/src/testing/stored-artifacts.ts +43 -0
- package/src/testing/sync-execution.ts +3 -1
- package/src/testing/webhook-execution.ts +7 -2
- package/src/testing/webhook-run-storage-contract.ts +102 -5
- package/src/users/execution.ts +50 -2
- package/src/users/index.ts +1 -0
- package/src/webhooks/delivery-lease.ts +40 -0
- package/src/webhooks/internal.ts +2 -0
- package/src/webhooks/run-admission.ts +22 -9
- package/src/workers/README.md +169 -0
- package/src/workers/index.ts +9 -1
- package/src/workers/job-ids.ts +31 -0
- package/src/workers/lost-projection-runs.ts +114 -0
- package/src/workers/lost-runs.ts +397 -0
- package/src/workers/queue-delivery.ts +2 -14
- package/src/workers/queue-worker.ts +9 -17
- package/src/workers/queued-run-dispatch.ts +308 -0
- package/src/workers/run-lease.ts +46 -0
- package/src/workers/run-worker.ts +312 -0
- package/src/workers/worker.ts +4 -17
- package/src/workflows/request.ts +2 -0
- package/src/workflows/run-dispatch.ts +22 -4
- package/src/workflows/snapshot.ts +1 -0
- package/dist/chunk-2g0r46hy.js.map +0 -12
- package/dist/chunk-3fqxbn31.js +0 -107
- package/dist/chunk-3fqxbn31.js.map +0 -11
- package/dist/chunk-4s753g3k.js +0 -314
- package/dist/chunk-4s753g3k.js.map +0 -12
- package/dist/chunk-5kyvrtjh.js.map +0 -12
- package/dist/chunk-5taem5aw.js.map +0 -10
- package/dist/chunk-65abf64x.js +0 -13
- package/dist/chunk-65abf64x.js.map +0 -10
- package/dist/chunk-9x8dybsb.js.map +0 -10
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-c706qvyc.js +0 -299
- package/dist/chunk-c706qvyc.js.map +0 -11
- package/dist/chunk-djs3hw9p.js.map +0 -20
- package/dist/chunk-dsv783c3.js.map +0 -47
- package/dist/chunk-e5wf5vz0.js.map +0 -10
- package/dist/chunk-e6xgz4h4.js.map +0 -21
- package/dist/chunk-e7v3trpz.js.map +0 -10
- package/dist/chunk-eqgr6nsa.js.map +0 -72
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-j8thxj7w.js.map +0 -22
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-kwfhd1g0.js +0 -144
- package/dist/chunk-kwfhd1g0.js.map +0 -13
- package/dist/chunk-nz7815t3.js.map +0 -14
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-w1btn96n.js.map +0 -44
- package/dist/chunk-w976a4me.js.map +0 -10
- package/dist/chunk-wkq3kvzd.js.map +0 -10
- package/dist/chunk-wrjx1fqz.js +0 -587
- package/dist/chunk-wrjx1fqz.js.map +0 -18
- package/dist/chunk-yw9pyg66.js +0 -143
- package/dist/chunk-yw9pyg66.js.map +0 -11
- package/dist/chunk-z8fx5cgb.js.map +0 -11
- package/dist/scheduler/runtime.d.ts +0 -40
- package/dist/scheduler/runtime.d.ts.map +0 -1
- package/dist/workers/unstarted-run.d.ts +0 -10
- package/dist/workers/unstarted-run.d.ts.map +0 -1
- package/src/scheduler/runtime.ts +0 -214
- package/src/workers/unstarted-run.ts +0 -18
- /package/dist/{chunk-80gym75n.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-ga63a3dz.js.map → chunk-2bn6813a.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-d04g36fw.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-5wtnmpze.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-31kcqmhf.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-9whfmsfk.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-jjmggm9a.js.map → chunk-fe6r7yhg.js.map} +0 -0
- /package/dist/{chunk-165c9wm6.js.map → chunk-g2ph4873.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.js.map} +0 -0
- /package/dist/{chunk-2ajw5rz0.js.map → chunk-rsxb14an.js.map} +0 -0
- /package/dist/{chunk-r1cxq7vv.js.map → chunk-rtdrm592.js.map} +0 -0
- /package/dist/{chunk-4bm0caep.js.map → chunk-smnt672s.js.map} +0 -0
- /package/dist/{chunk-21q0j5f2.js.map → chunk-stmxh0hv.js.map} +0 -0
- /package/dist/{chunk-ff5xkv0p.js.map → chunk-tfzvjdms.js.map} +0 -0
- /package/dist/{chunk-6b61s40c.js.map → chunk-w3t94hm6.js.map} +0 -0
package/src/queues/in-memory.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
AgentQueueJob,
|
|
7
7
|
AgentQueueJobFailureCode,
|
|
8
8
|
ClaimedQueueJob,
|
|
9
|
+
LakeQueueJob,
|
|
9
10
|
NewQueueJob,
|
|
10
11
|
PipelineQueueJobFailureCode,
|
|
11
12
|
PipelineRunRequestedQueueJob,
|
|
@@ -37,6 +38,8 @@ interface QueueRecord<TQueueJob extends QueueJob = QueueJob> {
|
|
|
37
38
|
leaseId: string | null
|
|
38
39
|
claimedAt: string | null
|
|
39
40
|
leaseExpiresAt: string | null
|
|
41
|
+
/** The job asked for in its place while it was claimed: the id waits as it once settled. */
|
|
42
|
+
replacement: TQueueJob | null
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
function assertNonEmpty(value: string, fieldName: string): void {
|
|
@@ -98,6 +101,11 @@ function createQueueJob<TQueueJob extends QueueJob>(
|
|
|
98
101
|
} as TQueueJob
|
|
99
102
|
}
|
|
100
103
|
|
|
104
|
+
/** Whether a worker holds the job now: it is queued under a lease that has not lapsed. */
|
|
105
|
+
function isLeased(record: QueueRecord, now: number): boolean {
|
|
106
|
+
return record.state === "queued" && record.leaseExpiryMs !== null && record.leaseExpiryMs > now
|
|
107
|
+
}
|
|
108
|
+
|
|
101
109
|
function leaseExpiresAtMs(record: QueueRecord): number | null {
|
|
102
110
|
return record.leaseExpiryMs
|
|
103
111
|
}
|
|
@@ -151,6 +159,13 @@ class InMemoryQueueStore {
|
|
|
151
159
|
leaseId: null,
|
|
152
160
|
claimedAt: null,
|
|
153
161
|
leaseExpiresAt: null,
|
|
162
|
+
replacement: null,
|
|
163
|
+
}
|
|
164
|
+
// A record this one replaces leaves the delivery indexes with it.
|
|
165
|
+
const replaced = lane.records.get(job.id)
|
|
166
|
+
if (replaced) {
|
|
167
|
+
lane.ready.delete(replaced)
|
|
168
|
+
lane.waiting.delete(replaced)
|
|
154
169
|
}
|
|
155
170
|
lane.records.set(job.id, record)
|
|
156
171
|
this.schedule(projectId, record, Date.now())
|
|
@@ -272,9 +287,16 @@ class InMemoryQueue<TQueueJob extends QueueJob, TFailureCode extends SixbErrorCo
|
|
|
272
287
|
const existing = job.id
|
|
273
288
|
? this.store.find<TQueueJob>(params.projectId, this.queueId, job.id)
|
|
274
289
|
: null
|
|
275
|
-
if (existing) return existing.job
|
|
290
|
+
if (existing && !job.replace) return existing.job
|
|
276
291
|
|
|
277
292
|
const created = createQueueJob(params.projectId, job)
|
|
293
|
+
|
|
294
|
+
// A claimed job finishes its delivery first; the id then waits as this one.
|
|
295
|
+
if (existing && isLeased(existing, Date.now())) {
|
|
296
|
+
existing.replacement = created
|
|
297
|
+
return created
|
|
298
|
+
}
|
|
299
|
+
|
|
278
300
|
this.store.add(params.projectId, this.queueId, created)
|
|
279
301
|
return created
|
|
280
302
|
})
|
|
@@ -313,7 +335,14 @@ class InMemoryQueue<TQueueJob extends QueueJob, TFailureCode extends SixbErrorCo
|
|
|
313
335
|
continue
|
|
314
336
|
}
|
|
315
337
|
|
|
316
|
-
|
|
338
|
+
// A job replaced while its lease lapsed waits as its replacement instead.
|
|
339
|
+
const replaced = claimable.filter((record) => record.replacement)
|
|
340
|
+
for (const record of replaced) this.settleReplaced(params.projectId, record)
|
|
341
|
+
if (replaced.length === claimable.length && replaced.length > 0) continue
|
|
342
|
+
|
|
343
|
+
return claimable.flatMap((record) => {
|
|
344
|
+
if (replaced.includes(record)) return []
|
|
345
|
+
|
|
317
346
|
// Attempts count claims so redelivery after lease expiry or retry is visible to workers.
|
|
318
347
|
record.job = {
|
|
319
348
|
...record.job,
|
|
@@ -325,13 +354,15 @@ class InMemoryQueue<TQueueJob extends QueueJob, TFailureCode extends SixbErrorCo
|
|
|
325
354
|
record.leaseExpiryMs = leaseExpiry.getTime()
|
|
326
355
|
this.store.schedule(params.projectId, record, now)
|
|
327
356
|
|
|
328
|
-
return toClaimedQueueJob(record)
|
|
357
|
+
return [toClaimedQueueJob(record)]
|
|
329
358
|
})
|
|
330
359
|
}
|
|
331
360
|
}
|
|
332
361
|
|
|
333
362
|
async complete(params: { projectId: string; jobId: string; leaseId: string }): Promise<void> {
|
|
334
363
|
const record = this.requireActiveLease(params)
|
|
364
|
+
if (this.settleReplaced(params.projectId, record)) return
|
|
365
|
+
|
|
335
366
|
record.state = "completed"
|
|
336
367
|
clearLease(record)
|
|
337
368
|
this.store.schedule(params.projectId, record, Date.now())
|
|
@@ -344,6 +375,8 @@ class InMemoryQueue<TQueueJob extends QueueJob, TFailureCode extends SixbErrorCo
|
|
|
344
375
|
availableAt?: string
|
|
345
376
|
}): Promise<void> {
|
|
346
377
|
const record = this.requireActiveLease(params)
|
|
378
|
+
if (this.settleReplaced(params.projectId, record)) return
|
|
379
|
+
|
|
347
380
|
const availableAt = params.availableAt ?? new Date().toISOString()
|
|
348
381
|
const availableAtMs = parseTimestamp(availableAt, "availableAt")
|
|
349
382
|
|
|
@@ -363,6 +396,8 @@ class InMemoryQueue<TQueueJob extends QueueJob, TFailureCode extends SixbErrorCo
|
|
|
363
396
|
failure: QueueJobFailure<TFailureCode>
|
|
364
397
|
}): Promise<void> {
|
|
365
398
|
const record = this.requireActiveLease(params)
|
|
399
|
+
if (this.settleReplaced(params.projectId, record)) return
|
|
400
|
+
|
|
366
401
|
record.state = "failed"
|
|
367
402
|
record.failure = structuredClone(params.failure)
|
|
368
403
|
clearLease(record)
|
|
@@ -399,6 +434,14 @@ class InMemoryQueue<TQueueJob extends QueueJob, TFailureCode extends SixbErrorCo
|
|
|
399
434
|
return toClaimedQueueJob(record)
|
|
400
435
|
}
|
|
401
436
|
|
|
437
|
+
/** Puts the job asked for in a claimed one's place, if any: its delivery is over. */
|
|
438
|
+
private settleReplaced(projectId: string, record: QueueRecord<TQueueJob>): boolean {
|
|
439
|
+
if (!record.replacement) return false
|
|
440
|
+
|
|
441
|
+
this.store.add(projectId, this.queueId, record.replacement)
|
|
442
|
+
return true
|
|
443
|
+
}
|
|
444
|
+
|
|
402
445
|
private requireActiveLease(params: {
|
|
403
446
|
projectId: string
|
|
404
447
|
jobId: string
|
|
@@ -439,6 +482,10 @@ export class InMemoryQueues implements Queues {
|
|
|
439
482
|
VectorIndexingQueueJob,
|
|
440
483
|
"internal.unexpected" | "runtime.cancelled"
|
|
441
484
|
>(this.store, "vector.indexing")
|
|
485
|
+
readonly lake = new InMemoryQueue<LakeQueueJob, "internal.unexpected" | "runtime.cancelled">(
|
|
486
|
+
this.store,
|
|
487
|
+
"lake"
|
|
488
|
+
)
|
|
442
489
|
readonly syncRuns = new InMemoryQueue<SyncRunRequestedQueueJob, SyncQueueJobFailureCode>(
|
|
443
490
|
this.store,
|
|
444
491
|
"sync.runs"
|
package/src/queues/index.ts
CHANGED
|
@@ -16,11 +16,15 @@ export { QueueError } from "./errors"
|
|
|
16
16
|
export { InMemoryQueues } from "./in-memory"
|
|
17
17
|
export type {
|
|
18
18
|
AgentAiUsageRecordRequestedQueueJob,
|
|
19
|
+
AgentArtifactPreviewsRequestedQueueJob,
|
|
19
20
|
AgentQueueJob,
|
|
20
21
|
AgentQueueJobFailureCode,
|
|
21
22
|
AgentRunRequestedQueueJob,
|
|
22
23
|
AgentWorkflowNodeRequestedQueueJob,
|
|
23
24
|
ClaimedQueueJob,
|
|
25
|
+
DatasetIngestFlushRequestedQueueJob,
|
|
26
|
+
LakeQueueJob,
|
|
27
|
+
LakeRetentionRequestedQueueJob,
|
|
24
28
|
NewQueueJob,
|
|
25
29
|
PipelineQueueJobFailureCode,
|
|
26
30
|
PipelineRunRequestedQueueJob,
|
package/src/queues/types.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FileRef } from "../blob-storage/types"
|
|
1
2
|
import type { SixbErrorCode, SixbFailure } from "../errors/types"
|
|
2
3
|
import type { JsonValue } from "../json"
|
|
3
4
|
import type {
|
|
@@ -36,6 +37,18 @@ export type NewQueueJob<TQueueJob extends QueueJob> =
|
|
|
36
37
|
readonly payload: TPayload
|
|
37
38
|
readonly availableAt?: string
|
|
38
39
|
readonly metadata?: Readonly<Record<string, JsonValue>>
|
|
40
|
+
/**
|
|
41
|
+
* With `id`, this job takes the place of the job of that id instead of being dropped as
|
|
42
|
+
* its repeat, so one id keeps at most one job waiting, the latest asked for:
|
|
43
|
+
*
|
|
44
|
+
* - One waiting is replaced: its payload, metadata and `availableAt` become this job's.
|
|
45
|
+
* - One settled, completed or failed, is delivered again as this job.
|
|
46
|
+
* - One claimed keeps its delivery. Once it is settled, however it is, or its lease lapses,
|
|
47
|
+
* the id waits as this job.
|
|
48
|
+
*
|
|
49
|
+
* Either way the job starts again at attempt 0.
|
|
50
|
+
*/
|
|
51
|
+
readonly replace?: boolean
|
|
39
52
|
}
|
|
40
53
|
: never
|
|
41
54
|
|
|
@@ -64,7 +77,8 @@ export interface Queue<
|
|
|
64
77
|
> {
|
|
65
78
|
/**
|
|
66
79
|
* Adds durable work to the lane. Jobs become claimable at `availableAt`, or immediately.
|
|
67
|
-
* Repeating a caller-supplied job id is idempotent while that job remains in the provider
|
|
80
|
+
* Repeating a caller-supplied job id is idempotent while that job remains in the provider,
|
|
81
|
+
* unless the repeat says `replace`.
|
|
68
82
|
*/
|
|
69
83
|
enqueue(params: {
|
|
70
84
|
projectId: string
|
|
@@ -204,10 +218,37 @@ export interface AgentAiUsageRecordRequestedQueueJob
|
|
|
204
218
|
}
|
|
205
219
|
> {}
|
|
206
220
|
|
|
221
|
+
/**
|
|
222
|
+
* A canvas version's boards miss pictures: the agent worker renders them in a blank sandbox of
|
|
223
|
+
* the project, with the data the version's author can see. One job per artifact, which each write
|
|
224
|
+
* that asks replaces: it names the latest revision asked for.
|
|
225
|
+
*/
|
|
226
|
+
export interface AgentArtifactPreviewsRequestedQueueJob
|
|
227
|
+
extends QueueJob<
|
|
228
|
+
"agent.artifact-previews.requested",
|
|
229
|
+
{
|
|
230
|
+
readonly artifactId: string
|
|
231
|
+
readonly version: number
|
|
232
|
+
/**
|
|
233
|
+
* When the version's content was last written as it was asked for, its `updatedAt` as ISO:
|
|
234
|
+
* once its content is written again, the job renders nothing, and the write that asks for
|
|
235
|
+
* it replaces it. Creating the version leaves its content, so its job still renders it.
|
|
236
|
+
* Absent on jobs asked for before.
|
|
237
|
+
*/
|
|
238
|
+
readonly updatedAt?: string
|
|
239
|
+
/**
|
|
240
|
+
* The version's query answers as its publisher read them when publishing, by name: a JSON
|
|
241
|
+
* blob the boards read their queries from. Absent for a version without queries.
|
|
242
|
+
*/
|
|
243
|
+
readonly queries?: FileRef
|
|
244
|
+
}
|
|
245
|
+
> {}
|
|
246
|
+
|
|
207
247
|
export type AgentQueueJob =
|
|
208
248
|
| AgentRunRequestedQueueJob
|
|
209
249
|
| AgentWorkflowNodeRequestedQueueJob
|
|
210
250
|
| AgentAiUsageRecordRequestedQueueJob
|
|
251
|
+
| AgentArtifactPreviewsRequestedQueueJob
|
|
211
252
|
|
|
212
253
|
/** Internal lane hosted by ProjectionWorker. */
|
|
213
254
|
export type VectorIndexingQueueJob = QueueJob<
|
|
@@ -215,11 +256,37 @@ export type VectorIndexingQueueJob = QueueJob<
|
|
|
215
256
|
{ readonly indexingId: string }
|
|
216
257
|
>
|
|
217
258
|
|
|
259
|
+
/** The `lake-retention` pass asks for one interval's retention; the payload says which. */
|
|
260
|
+
export interface LakeRetentionRequestedQueueJob
|
|
261
|
+
extends QueueJob<
|
|
262
|
+
"lake.retention.requested",
|
|
263
|
+
{
|
|
264
|
+
readonly intervalStart: string
|
|
265
|
+
}
|
|
266
|
+
> {}
|
|
267
|
+
|
|
268
|
+
/** Write a dataset's ingested changes to the lake. The job id names the flush request. */
|
|
269
|
+
export interface DatasetIngestFlushRequestedQueueJob
|
|
270
|
+
extends QueueJob<
|
|
271
|
+
"dataset.ingest.flush.requested",
|
|
272
|
+
{
|
|
273
|
+
readonly datasetId: string
|
|
274
|
+
}
|
|
275
|
+
> {}
|
|
276
|
+
|
|
277
|
+
export type LakeQueueJob = LakeRetentionRequestedQueueJob | DatasetIngestFlushRequestedQueueJob
|
|
278
|
+
|
|
218
279
|
export interface Queues {
|
|
219
280
|
readonly vectorIndexing: Queue<
|
|
220
281
|
VectorIndexingQueueJob,
|
|
221
282
|
"internal.unexpected" | "runtime.cancelled"
|
|
222
283
|
>
|
|
284
|
+
/**
|
|
285
|
+
* Lake work the framework runs in a worker rather than in the process that asks for it: the
|
|
286
|
+
* retention of replaced dataset versions and their files, and writing ingested changes.
|
|
287
|
+
* LakeWorker consumes this lane, so lake work never waits behind a sync or takes its slot.
|
|
288
|
+
*/
|
|
289
|
+
readonly lake: Queue<LakeQueueJob, "internal.unexpected" | "runtime.cancelled">
|
|
223
290
|
readonly syncRuns: Queue<SyncRunRequestedQueueJob, SyncQueueJobFailureCode>
|
|
224
291
|
readonly pipelines: Queue<PipelineRunRequestedQueueJob, PipelineQueueJobFailureCode>
|
|
225
292
|
readonly projections: Queue<ProjectionRunRequestedQueueJob, ProjectionQueueJobFailureCode>
|
package/src/runtime/create.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type { LakeStorage } from "../lake-storage"
|
|
|
20
20
|
import type { LoggerProvider } from "../logging"
|
|
21
21
|
import type { ObservabilityOptions } from "../logging/service"
|
|
22
22
|
import type { OntologyMaintenanceOptions } from "../maintenance"
|
|
23
|
+
import type { LakeMaintenanceOptions } from "../maintenance/lake-retention"
|
|
23
24
|
import type { ModelCatalogInput } from "../models"
|
|
24
25
|
import type { PipelineDefinition } from "../pipelines/types"
|
|
25
26
|
import type { ProjectionDefinition } from "../projections/types"
|
|
@@ -54,6 +55,8 @@ export interface CreateSixbOptions<in out TParams extends ParamsConfig = ParamsC
|
|
|
54
55
|
broker: Broker
|
|
55
56
|
storage: Storage
|
|
56
57
|
lakeStorage: LakeStorage
|
|
58
|
+
/** Automatic retention of replaced dataset versions and their files. On by default. */
|
|
59
|
+
lakeMaintenance?: LakeMaintenanceOptions
|
|
57
60
|
blobStorage: BlobStorage
|
|
58
61
|
queues: Queues
|
|
59
62
|
sandboxes?: SandboxFactory<TParams>
|
|
@@ -137,6 +140,7 @@ export async function createSixb<const TParams extends ParamsConfig = ParamsConf
|
|
|
137
140
|
broker: options.broker,
|
|
138
141
|
storage: options.storage,
|
|
139
142
|
lakeStorage: options.lakeStorage,
|
|
143
|
+
lakeMaintenance: options.lakeMaintenance,
|
|
140
144
|
blobStorage: options.blobStorage,
|
|
141
145
|
queues: options.queues,
|
|
142
146
|
sandboxes: options.sandboxes,
|
package/src/runtime/host.ts
CHANGED
|
@@ -31,9 +31,17 @@ import {
|
|
|
31
31
|
type ConnectorDefinition,
|
|
32
32
|
isOAuthConnectorDefinition,
|
|
33
33
|
} from "../connectors/types"
|
|
34
|
+
import {
|
|
35
|
+
createDatasetIngestRuntime,
|
|
36
|
+
type DatasetIngestRuntime,
|
|
37
|
+
registerDatasetIngestRuntime,
|
|
38
|
+
} from "../datasets/ingest-flush"
|
|
34
39
|
import type { DatasetDefinition } from "../datasets/types"
|
|
35
40
|
import { attachSixbErrorReporter, shareSixbErrorReporter } from "../error-reporting/capability"
|
|
36
|
-
import {
|
|
41
|
+
import {
|
|
42
|
+
reportEventDeliveryFailure,
|
|
43
|
+
reportMaintenancePassFailure,
|
|
44
|
+
} from "../error-reporting/reports"
|
|
37
45
|
import type { SixbErrorHandler } from "../error-reporting/types"
|
|
38
46
|
import {
|
|
39
47
|
createDomainEventService,
|
|
@@ -50,13 +58,25 @@ import type { ExecutionScope } from "../execution/types"
|
|
|
50
58
|
import type { LakeStorage } from "../lake-storage"
|
|
51
59
|
import type { LoggerProvider } from "../logging"
|
|
52
60
|
import { LoggingService, type ObservabilityOptions } from "../logging/service"
|
|
53
|
-
import {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
type SixbReadiness,
|
|
61
|
+
import type {
|
|
62
|
+
OntologyMaintenanceHandle,
|
|
63
|
+
OntologyMaintenanceOptions,
|
|
64
|
+
OntologyOperationalStatus,
|
|
65
|
+
SixbReadiness,
|
|
59
66
|
} from "../maintenance"
|
|
67
|
+
import { storageHeartbeat } from "../maintenance/heartbeat"
|
|
68
|
+
import {
|
|
69
|
+
getLakeRetentionRuntime,
|
|
70
|
+
type LakeMaintenanceOptions,
|
|
71
|
+
LakeRetention,
|
|
72
|
+
registerLakeRetentionRuntime,
|
|
73
|
+
} from "../maintenance/lake-retention"
|
|
74
|
+
import { type MaintenanceFailure, MaintenanceLoop, type MaintenancePass } from "../maintenance/loop"
|
|
75
|
+
import { OntologyMaintenance } from "../maintenance/ontology-maintenance"
|
|
76
|
+
import { cronPass } from "../maintenance/passes/cron-pass"
|
|
77
|
+
import { directoryPass } from "../maintenance/passes/directory-pass"
|
|
78
|
+
import { lakeRetentionPass } from "../maintenance/passes/lake-retention-pass"
|
|
79
|
+
import { ontologyPass } from "../maintenance/passes/ontology-pass"
|
|
60
80
|
import { createOntologyMaterializer, type OntologyMaterializerContract } from "../materializer"
|
|
61
81
|
import type { ModelCatalogInput } from "../models"
|
|
62
82
|
import { bindEmbeddingModels } from "../models/execution/embedding"
|
|
@@ -78,7 +98,6 @@ import {
|
|
|
78
98
|
sandboxCredentialIssue,
|
|
79
99
|
} from "../sandboxes/configuration"
|
|
80
100
|
import { SandboxError } from "../sandboxes/errors"
|
|
81
|
-
import { type SchedulerController, SchedulerRuntime } from "../scheduler"
|
|
82
101
|
import type { ScheduleDefinition } from "../schedules"
|
|
83
102
|
import type {
|
|
84
103
|
GroupDefinition,
|
|
@@ -130,6 +149,8 @@ export interface SixbHostOptions<in out TParams extends ParamsConfig = ParamsCon
|
|
|
130
149
|
broker: Broker
|
|
131
150
|
storage: Storage
|
|
132
151
|
lakeStorage: LakeStorage
|
|
152
|
+
/** Automatic retention of replaced dataset versions and their files. On by default. */
|
|
153
|
+
lakeMaintenance?: LakeMaintenanceOptions
|
|
133
154
|
blobStorage: BlobStorage
|
|
134
155
|
queues: Queues
|
|
135
156
|
sandboxes?: SandboxFactory<TParams>
|
|
@@ -184,10 +205,12 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
184
205
|
private readonly vectorIndexing?: VectorIndexingDispatcher
|
|
185
206
|
private readonly eventService: DomainEventService
|
|
186
207
|
private readonly ontologyMaintenance: OntologyMaintenance
|
|
208
|
+
private readonly onMaintenanceFailure: (error: unknown, failure: MaintenanceFailure) => void
|
|
187
209
|
private readonly storageReadiness: StorageReadiness
|
|
188
210
|
private readonly connectorService: ConnectorService
|
|
189
211
|
private readonly materializer: OntologyMaterializerContract
|
|
190
212
|
private readonly datasetVersionMarkings: DatasetVersionMarkings
|
|
213
|
+
private readonly datasetIngest: DatasetIngestRuntime
|
|
191
214
|
private readonly appliedMarkings: AppliedMarkings
|
|
192
215
|
readonly sandboxDefinition?: SandboxDefinition
|
|
193
216
|
readonly definitions: SixbDefinitions
|
|
@@ -201,7 +224,7 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
201
224
|
readonly queues: Queues
|
|
202
225
|
readonly sandboxes?: Pick<SandboxFactory, "create" | "resume">
|
|
203
226
|
readonly projectRoot: string
|
|
204
|
-
readonly
|
|
227
|
+
private readonly cron: MaintenancePass
|
|
205
228
|
readonly auth: AuthRuntime
|
|
206
229
|
|
|
207
230
|
constructor(options: SixbHostOptions<TParams>) {
|
|
@@ -271,6 +294,7 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
271
294
|
security: definitions.security,
|
|
272
295
|
config: options.auth,
|
|
273
296
|
events: this.eventService,
|
|
297
|
+
onUserSuspended: (userId) => this.connectorService.revokeUserConnections(userId),
|
|
274
298
|
})
|
|
275
299
|
validateAuthStrategySecurityReferences(this.auth.getStrategy(), definitions.security)
|
|
276
300
|
const connectors = definitions.connectors.list()
|
|
@@ -321,6 +345,8 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
321
345
|
this.queues.vectorIndexing
|
|
322
346
|
)
|
|
323
347
|
}
|
|
348
|
+
this.onMaintenanceFailure = (error, failure) =>
|
|
349
|
+
reportMaintenancePassFailure(errorReporter, error, { projectId: this.projectId, ...failure })
|
|
324
350
|
this.ontologyMaintenance = new OntologyMaintenance({
|
|
325
351
|
projectId: this.projectId,
|
|
326
352
|
storage: this.storage,
|
|
@@ -328,6 +354,7 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
328
354
|
vectorIndexing: this.vectorIndexing,
|
|
329
355
|
blobStorage: this.blobStorage,
|
|
330
356
|
options: options.ontologyMaintenance,
|
|
357
|
+
onError: this.onMaintenanceFailure,
|
|
331
358
|
})
|
|
332
359
|
|
|
333
360
|
this.hostContext = {
|
|
@@ -355,7 +382,31 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
355
382
|
this,
|
|
356
383
|
createVectorIndexingRuntime(this.hostContext, this.materializer)
|
|
357
384
|
)
|
|
358
|
-
|
|
385
|
+
|
|
386
|
+
const lakeRetention = new LakeRetention({
|
|
387
|
+
projectId: this.projectId,
|
|
388
|
+
options: options.lakeMaintenance,
|
|
389
|
+
lakeStorage: this.lakeStorage,
|
|
390
|
+
storage: this.storage,
|
|
391
|
+
sources: this.storage.ontology.sources,
|
|
392
|
+
datasetCount: definitions.datasets.list().length,
|
|
393
|
+
})
|
|
394
|
+
registerLakeRetentionRuntime(this, lakeRetention)
|
|
395
|
+
|
|
396
|
+
// `ingest` stores changes in the inbox; a worker writes them to the lake through this.
|
|
397
|
+
this.datasetIngest = createDatasetIngestRuntime({
|
|
398
|
+
projectId: this.projectId,
|
|
399
|
+
inbox: this.storage.datasetIngest,
|
|
400
|
+
lakeStorage: this.lakeStorage,
|
|
401
|
+
blobStorage: this.blobStorage,
|
|
402
|
+
events: this.eventService,
|
|
403
|
+
queue: this.queues.lake,
|
|
404
|
+
datasets: definitions.datasets,
|
|
405
|
+
reporter: this,
|
|
406
|
+
})
|
|
407
|
+
registerDatasetIngestRuntime(this, this.datasetIngest)
|
|
408
|
+
|
|
409
|
+
this.cron = cronPass({
|
|
359
410
|
schedules: definitions.schedules.list(),
|
|
360
411
|
events: this.eventService,
|
|
361
412
|
timeZone: this.timeZone,
|
|
@@ -428,16 +479,67 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
428
479
|
return this.webhookRegistry.getById(connectorId, webhookId)
|
|
429
480
|
}
|
|
430
481
|
|
|
431
|
-
/**
|
|
482
|
+
/**
|
|
483
|
+
* Run the project's upkeep on one loop: ontology maintenance, cron schedules, lake retention, the
|
|
484
|
+
* auth strategy's directory check, and `passes`. The orchestrator is what hosts it.
|
|
485
|
+
*/
|
|
486
|
+
startMaintenance(passes: readonly MaintenancePass[]): OntologyMaintenanceHandle {
|
|
487
|
+
const loop = new MaintenanceLoop({
|
|
488
|
+
passes: [
|
|
489
|
+
ontologyPass(this.ontologyMaintenance),
|
|
490
|
+
this.cron,
|
|
491
|
+
...this.lakeRetentionPasses(),
|
|
492
|
+
...this.directoryPasses(),
|
|
493
|
+
...passes,
|
|
494
|
+
],
|
|
495
|
+
heartbeat: storageHeartbeat(this.projectId, "orchestrator", this.storage),
|
|
496
|
+
onError: this.onMaintenanceFailure,
|
|
497
|
+
})
|
|
498
|
+
loop.start()
|
|
499
|
+
|
|
500
|
+
return { stop: () => loop.stop() }
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
private directoryPasses(): readonly MaintenancePass[] {
|
|
504
|
+
const intervalMs = this.auth.directoryIntervalMs
|
|
505
|
+
if (intervalMs === undefined) return []
|
|
506
|
+
|
|
507
|
+
return [
|
|
508
|
+
directoryPass({ intervalMs, checkDirectory: (signal) => this.auth.checkDirectory(signal) }),
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
private lakeRetentionPasses(): readonly MaintenancePass[] {
|
|
513
|
+
const retention = getLakeRetentionRuntime(this)
|
|
514
|
+
if (!retention.automatic) return []
|
|
515
|
+
|
|
516
|
+
return [
|
|
517
|
+
lakeRetentionPass({
|
|
518
|
+
projectId: this.projectId,
|
|
519
|
+
cleanupEveryMs: retention.settings.cleanupEveryMs,
|
|
520
|
+
queue: this.queues.lake,
|
|
521
|
+
status: () => retention.status(),
|
|
522
|
+
}),
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Start ontology maintenance alone, for an embedded runtime with no orchestrator. `createSixbServer`
|
|
528
|
+
* calls it unless told not to.
|
|
529
|
+
*/
|
|
432
530
|
startOntologyMaintenance(): Promise<OntologyMaintenanceHandle> {
|
|
433
|
-
this.storageReadiness.startSchemaValidation()
|
|
434
531
|
return this.ontologyMaintenance.start()
|
|
435
532
|
}
|
|
436
533
|
|
|
437
|
-
getOntologyOperationalStatus(): OntologyOperationalStatus {
|
|
534
|
+
getOntologyOperationalStatus(): Promise<OntologyOperationalStatus> {
|
|
438
535
|
return this.ontologyMaintenance.getOperationalStatus()
|
|
439
536
|
}
|
|
440
537
|
|
|
538
|
+
/** Start the schema check behind `checkReadiness()`, so the first probe need not wait for it. */
|
|
539
|
+
prepareReadiness(): void {
|
|
540
|
+
this.storageReadiness.startSchemaValidation()
|
|
541
|
+
}
|
|
542
|
+
|
|
441
543
|
async checkReadiness(): Promise<SixbReadiness> {
|
|
442
544
|
return this.storageReadiness.check()
|
|
443
545
|
}
|
|
@@ -472,9 +574,11 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
472
574
|
definition: this.sandboxDefinition,
|
|
473
575
|
supportsPersistence: typeof this.sandboxes?.resume === "function",
|
|
474
576
|
},
|
|
577
|
+
rendersBoardPreviews: this.sandboxes !== undefined,
|
|
475
578
|
logging: this.logging,
|
|
476
579
|
activity: this.activity,
|
|
477
580
|
connectorService: this.connectorService,
|
|
581
|
+
members: this.auth,
|
|
478
582
|
...(this.connectorService.connectionProcess === undefined
|
|
479
583
|
? {}
|
|
480
584
|
: { connectorConnections: this.connectorService.connectionProcess }),
|
|
@@ -482,6 +586,7 @@ export class SixbHost<in out TParams extends ParamsConfig = ParamsConfig> {
|
|
|
482
586
|
apiPublicOrigin: () => getApiPublicOrigin(this),
|
|
483
587
|
lakeStorage: this.lakeStorage,
|
|
484
588
|
datasetVersionMarkings: this.datasetVersionMarkings,
|
|
589
|
+
datasetIngest: this.datasetIngest,
|
|
485
590
|
}
|
|
486
591
|
}
|
|
487
592
|
}
|
package/src/runtime/index.ts
CHANGED
|
@@ -12,7 +12,6 @@ export { OntologyNotFoundError, OntologyValidationError } from "../ontology"
|
|
|
12
12
|
export type { PipelineDefinition } from "../pipelines"
|
|
13
13
|
export { PipelineError } from "../pipelines"
|
|
14
14
|
export { ProjectionValidationError } from "../projections"
|
|
15
|
-
export type { SchedulerController } from "../scheduler"
|
|
16
15
|
export { SchedulerError, SchedulerValidationError } from "../scheduler"
|
|
17
16
|
export type { ScheduleDefinition } from "../schedules"
|
|
18
17
|
export { CronValidationError, ScheduleValidationError } from "../schedules"
|
package/src/runtime/internal.ts
CHANGED
|
@@ -11,10 +11,23 @@ export type {
|
|
|
11
11
|
StartConnectorAuthorizationResult,
|
|
12
12
|
} from "../connectors/connections/contracts"
|
|
13
13
|
export type { ConnectorConnectionsRuntime } from "../connectors/connections/execution"
|
|
14
|
+
export type {
|
|
15
|
+
DatasetIngestFlushOutcome,
|
|
16
|
+
DatasetIngestRuntime,
|
|
17
|
+
} from "../datasets/ingest-flush"
|
|
18
|
+
export {
|
|
19
|
+
DatasetIngestFlushError,
|
|
20
|
+
findDatasetIngestRuntime,
|
|
21
|
+
getDatasetIngestRuntime,
|
|
22
|
+
} from "../datasets/ingest-flush"
|
|
23
|
+
export { ingestStalledSince } from "../datasets/ingest-flush-job"
|
|
14
24
|
export type { AuthorizedObjectReader } from "../execution/authorized-object-reader"
|
|
25
|
+
export type { LakeMaintenanceSettings, LakeRetention } from "../maintenance/lake-retention"
|
|
26
|
+
export { getLakeRetentionRuntime } from "../maintenance/lake-retention"
|
|
15
27
|
export { VectorIndexingDeferred } from "../objects/vectors/indexing"
|
|
16
28
|
export type { VectorIndexingRuntime } from "../objects/vectors/indexing-runtime"
|
|
17
29
|
export { getVectorIndexingRuntime } from "../objects/vectors/indexing-runtime"
|
|
30
|
+
export { parseDuration } from "../shared/duration"
|
|
18
31
|
export type { OntologyMutationRuntime } from "./ontology-mutations"
|
|
19
32
|
export {
|
|
20
33
|
createOntologyMutationRuntime,
|
|
@@ -97,7 +97,7 @@ function notifyWithoutAffectingCommit(notify: () => void): void {
|
|
|
97
97
|
notify()
|
|
98
98
|
} catch (error) {
|
|
99
99
|
// The ontology commit is already durable. A wake-up failure must never turn it into an apparent
|
|
100
|
-
// mutation failure;
|
|
100
|
+
// mutation failure; the orchestrator's ontology maintenance remains the correctness fallback.
|
|
101
101
|
console.error("[Sixb] Failed to wake the ontology outbox dispatcher:", error)
|
|
102
102
|
}
|
|
103
103
|
}
|
package/src/runtime/sixb.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { createConnectorConnectionsRuntime } from "../connectors/connections/exe
|
|
|
17
17
|
import { type ConnectorRuntime, createConnectorRuntime } from "../connectors/execution"
|
|
18
18
|
import type { ConnectorService } from "../connectors/service"
|
|
19
19
|
import { createDatasetsRuntime, type DatasetsRuntime } from "../datasets/execution"
|
|
20
|
+
import type { DatasetIngestRuntime } from "../datasets/ingest-flush"
|
|
20
21
|
import { createEventsRuntime, type EventsRuntime } from "../events/execution"
|
|
21
22
|
import type { ExecutionContext } from "../execution"
|
|
22
23
|
import { resolveExecutionScopeAuthorization } from "../execution/authorization"
|
|
@@ -38,7 +39,7 @@ import { createSchedulesRuntime, type SchedulesRuntime } from "../schedules/exec
|
|
|
38
39
|
import type { DatasetVersionMarkings } from "../security/dataset-version-markings"
|
|
39
40
|
import { createSharesRuntime, type SharesRuntime } from "../shares/execution"
|
|
40
41
|
import { createSyncsRuntime, type SyncsRuntime } from "../syncs/execution"
|
|
41
|
-
import { createUsersRuntime, type UsersRuntime } from "../users"
|
|
42
|
+
import { createUsersRuntime, type MemberStatusRuntime, type UsersRuntime } from "../users"
|
|
42
43
|
import { createWorkflowsRuntime, type WorkflowsRuntime } from "../workflows/execution"
|
|
43
44
|
import type { SixbDefinitions } from "./definitions"
|
|
44
45
|
import { shareOntologyMutationRuntime } from "./ontology-mutations"
|
|
@@ -76,15 +77,19 @@ export interface SixbDependencies {
|
|
|
76
77
|
readonly definition: SandboxDefinition
|
|
77
78
|
readonly supportsPersistence: boolean
|
|
78
79
|
}
|
|
80
|
+
/** The project has sandboxes, where the agent worker renders the pictures of canvas boards. */
|
|
81
|
+
readonly rendersBoardPreviews: boolean
|
|
79
82
|
readonly definitions: SixbDefinitions
|
|
80
83
|
readonly logging: LoggingService
|
|
81
84
|
readonly activity: ActivityService
|
|
82
85
|
readonly connectorService: ConnectorService
|
|
83
86
|
readonly connectorConnections?: ConnectorConnectionProcess
|
|
87
|
+
readonly members: MemberStatusRuntime
|
|
84
88
|
readonly blobStorage: BlobStorage
|
|
85
89
|
readonly apiPublicOrigin: () => string | undefined
|
|
86
90
|
readonly lakeStorage: LakeStorage
|
|
87
91
|
readonly datasetVersionMarkings: DatasetVersionMarkings
|
|
92
|
+
readonly datasetIngest: DatasetIngestRuntime
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
export function createBoundSixb<TParams extends Record<string, unknown> = Record<string, unknown>>(
|
|
@@ -146,7 +151,8 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
146
151
|
"agent.run"
|
|
147
152
|
),
|
|
148
153
|
dependencies.sandbox,
|
|
149
|
-
dependencies.definitions.security
|
|
154
|
+
dependencies.definitions.security,
|
|
155
|
+
dependencies.blobStorage
|
|
150
156
|
)
|
|
151
157
|
return {
|
|
152
158
|
objects: createObjectsRuntime(runtime, execution, dependencies.blobStorage, {
|
|
@@ -160,7 +166,8 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
160
166
|
dependencies.definitions.datasets,
|
|
161
167
|
dependencies.lakeStorage,
|
|
162
168
|
dependencies.blobStorage,
|
|
163
|
-
dependencies.datasetVersionMarkings
|
|
169
|
+
dependencies.datasetVersionMarkings,
|
|
170
|
+
dependencies.datasetIngest
|
|
164
171
|
),
|
|
165
172
|
workflows,
|
|
166
173
|
syncs: createSyncsRuntime(runtime, execution, dependencies.definitions.syncs),
|
|
@@ -168,7 +175,9 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
168
175
|
projections: createProjectionsRuntime(runtime, dependencies.definitions.projections),
|
|
169
176
|
rules: createRulesRuntime(runtime, dependencies.definitions.rules),
|
|
170
177
|
agent,
|
|
171
|
-
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage
|
|
178
|
+
artifacts: createArtifactsRuntime(runtime, dependencies.blobStorage, {
|
|
179
|
+
rendersBoardPreviews: dependencies.rendersBoardPreviews,
|
|
180
|
+
}),
|
|
172
181
|
models: createModelsRuntime(
|
|
173
182
|
runtime,
|
|
174
183
|
execution,
|
|
@@ -187,7 +196,7 @@ function createExecutionFacades<TParams extends Record<string, unknown>>(
|
|
|
187
196
|
activity: createActivityRuntime(runtime, dependencies.activity),
|
|
188
197
|
schedules: createSchedulesRuntime(runtime, dependencies.definitions.schedules),
|
|
189
198
|
shares: createSharesRuntime(runtime, execution, dependencies.definitions.shares),
|
|
190
|
-
users: createUsersRuntime(runtime),
|
|
199
|
+
users: createUsersRuntime(runtime, dependencies.members),
|
|
191
200
|
connector: createConnectorRuntime(runtime, execution, dependencies.connectorService),
|
|
192
201
|
blobs: createBlobsRuntime(
|
|
193
202
|
runtime,
|
package/src/scheduler/index.ts
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** The two numbers that tell one retry policy from another. */
|
|
2
|
+
export interface BackoffPolicy {
|
|
3
|
+
readonly initialMs: number
|
|
4
|
+
readonly maxMs: number
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/** How long attempt `attempt`, counted from 0, waits: the first delay doubling up to the maximum. */
|
|
8
|
+
export function backoffDelay(attempt: number, policy: BackoffPolicy): number {
|
|
9
|
+
return Math.min(policy.initialMs * 2 ** attempt, policy.maxMs)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Waits, or stops waiting as soon as the signal aborts. Either way it resolves. */
|
|
13
|
+
export function waitUnlessAborted(ms: number, signal?: AbortSignal): Promise<void> {
|
|
14
|
+
if (signal?.aborted) return Promise.resolve()
|
|
15
|
+
|
|
16
|
+
return new Promise((resolve) => {
|
|
17
|
+
const finish = () => {
|
|
18
|
+
clearTimeout(timer)
|
|
19
|
+
signal?.removeEventListener("abort", finish)
|
|
20
|
+
resolve()
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const timer = setTimeout(finish, ms)
|
|
24
|
+
signal?.addEventListener("abort", finish, { once: true })
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Rejects with the signal's reason when it aborts, and otherwise never settles. */
|
|
29
|
+
export function rejectOnAbort(signal: AbortSignal): Promise<never> {
|
|
30
|
+
return new Promise((_resolve, reject) => {
|
|
31
|
+
if (signal.aborted) reject(signal.reason)
|
|
32
|
+
else signal.addEventListener("abort", () => reject(signal.reason), { once: true })
|
|
33
|
+
})
|
|
34
|
+
}
|