@sixb/core 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +60 -54
- 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.map +1 -1
- package/dist/agents/execution.d.ts +2 -1
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/index.d.ts +6 -4
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +95 -82
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/request.d.ts +7 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +73 -10
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-plan.d.ts +15 -1
- package/dist/agents/run-plan.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +17 -2
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/skills.d.ts +3 -0
- package/dist/agents/skills.d.ts.map +1 -1
- package/dist/agents/step-limits.d.ts +6 -0
- package/dist/agents/step-limits.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 +8 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +3 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/agents/web.d.ts +47 -0
- package/dist/agents/web.d.ts.map +1 -0
- package/dist/artifacts/access.d.ts +37 -17
- package/dist/artifacts/access.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +65 -0
- package/dist/artifacts/canvas-display.d.ts.map +1 -0
- package/dist/artifacts/canvas.d.ts +6 -1
- package/dist/artifacts/canvas.d.ts.map +1 -1
- package/dist/artifacts/comment-text.d.ts +19 -0
- package/dist/artifacts/comment-text.d.ts.map +1 -0
- package/dist/artifacts/comments.d.ts +52 -0
- package/dist/artifacts/comments.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +3 -3
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +14 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +129 -22
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +12 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/grants.d.ts +8 -5
- package/dist/artifacts/frames/grants.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +1 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +32 -964
- package/dist/artifacts/frames/index.js.map +4 -8
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +78 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +17 -7
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/holders.d.ts +23 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +2 -0
- package/dist/artifacts/ids.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +6 -4
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +108 -13
- package/dist/artifacts/index.js.map +5 -4
- package/dist/artifacts/limits.d.ts +24 -3
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/board.d.ts +103 -0
- package/dist/artifacts/live/board.d.ts.map +1 -0
- package/dist/artifacts/live/diff.d.ts +43 -0
- package/dist/artifacts/live/diff.d.ts.map +1 -0
- package/dist/artifacts/live/document.d.ts +55 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/files.d.ts +16 -0
- package/dist/artifacts/live/files.d.ts.map +1 -0
- package/dist/artifacts/live/index.d.ts +9 -0
- package/dist/artifacts/live/index.d.ts.map +1 -0
- package/dist/artifacts/live/index.js +593 -0
- package/dist/artifacts/live/index.js.map +10 -0
- package/dist/artifacts/live/presence.d.ts +55 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +109 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.js +21 -0
- package/dist/artifacts/live/protocol.js.map +9 -0
- package/dist/artifacts/live/server.d.ts +10 -0
- package/dist/artifacts/live/server.d.ts.map +1 -0
- package/dist/artifacts/live/server.js +86 -0
- package/dist/artifacts/live/server.js.map +9 -0
- package/dist/artifacts/live/state.d.ts +26 -0
- package/dist/artifacts/live/state.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +11 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +8 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +67 -39
- 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/authorization/resolve.d.ts +4 -3
- package/dist/authorization/resolve.d.ts.map +1 -1
- package/dist/authorization/types.d.ts +5 -5
- package/dist/authorization/types.d.ts.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 +70 -64
- 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-3x3bebz7.js → chunk-0k3r5kb3.js} +414 -101
- package/dist/chunk-0k3r5kb3.js.map +51 -0
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-2pk5hjj9.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-8yzhjawq.js → chunk-26qet7wh.js} +64 -23
- package/dist/{chunk-8yzhjawq.js.map → chunk-26qet7wh.js.map} +5 -5
- package/dist/{chunk-cb21tx14.js → chunk-2by73sm2.js} +1055 -201
- package/dist/chunk-2by73sm2.js.map +75 -0
- package/dist/chunk-2c4j899j.js.map +2 -2
- package/dist/{chunk-e6xgz4h4.js → chunk-3014rfjz.js} +197 -18
- package/dist/chunk-3014rfjz.js.map +21 -0
- package/dist/{chunk-nghc7eq0.js → chunk-3723kgba.js} +1 -1
- package/dist/chunk-38yvdqzd.js +70 -0
- package/dist/chunk-38yvdqzd.js.map +10 -0
- package/dist/{chunk-ytzcxtpt.js → chunk-3ba89vm7.js} +1 -1
- package/dist/chunk-3hzhcfsv.js +139 -0
- package/dist/chunk-3hzhcfsv.js.map +10 -0
- package/dist/chunk-3sgvd10b.js +69 -0
- package/dist/chunk-3sgvd10b.js.map +10 -0
- package/dist/{chunk-djs3hw9p.js → chunk-3zagkr6w.js} +73 -6
- package/dist/chunk-3zagkr6w.js.map +21 -0
- package/dist/{chunk-fg1db9xx.js → chunk-48c1z8nj.js} +10 -10
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-rjeeyssy.js → chunk-4j0sagwv.js} +134 -19
- package/dist/{chunk-rjeeyssy.js.map → chunk-4j0sagwv.js.map} +11 -10
- package/dist/{chunk-qsg8rw04.js → chunk-5qqmndhm.js} +2 -2
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/{chunk-ax10ft8d.js → chunk-6gtxshcc.js} +6 -6
- package/dist/{chunk-ax10ft8d.js.map → chunk-6gtxshcc.js.map} +1 -1
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -0
- package/dist/{chunk-8wsjr52f.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-edx8xcsm.js → chunk-7z5rkf0m.js} +29 -6
- package/dist/chunk-7z5rkf0m.js.map +13 -0
- package/dist/{chunk-23s66j86.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-tvbmh7tj.js → chunk-8p7bze4c.js} +14 -10
- package/dist/chunk-8p7bze4c.js.map +18 -0
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-qbrmpgvv.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-tvefbgvw.js → chunk-az95tsh3.js} +4 -2
- package/dist/chunk-az95tsh3.js.map +11 -0
- 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-ks87m383.js → chunk-bkmnd7zq.js} +556 -262
- package/dist/chunk-bkmnd7zq.js.map +49 -0
- package/dist/chunk-bz5bnjjt.js +358 -0
- package/dist/chunk-bz5bnjjt.js.map +12 -0
- package/dist/{chunk-7hd2ez3q.js → chunk-c4nrycdy.js} +1 -1
- 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-z3evap21.js → chunk-e9w4mgdh.js} +314 -225
- package/dist/{chunk-z3evap21.js.map → chunk-e9w4mgdh.js.map} +22 -20
- package/dist/{chunk-w122ymx4.js → chunk-f6ahf5gf.js} +15 -4
- package/dist/{chunk-w122ymx4.js.map → chunk-f6ahf5gf.js.map} +3 -3
- package/dist/{chunk-jjmggm9a.js → chunk-fe6r7yhg.js} +1 -1
- package/dist/{chunk-165c9wm6.js → chunk-g2ph4873.js} +1 -1
- package/dist/chunk-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/{chunk-nqnfz3jg.js → chunk-hkaa807g.js} +18 -7
- package/dist/{chunk-nqnfz3jg.js.map → chunk-hkaa807g.js.map} +3 -3
- package/dist/chunk-hn2r7z41.js.map +3 -3
- package/dist/chunk-j0wgh8gv.js +250 -0
- package/dist/chunk-j0wgh8gv.js.map +10 -0
- package/dist/{chunk-z8fx5cgb.js → chunk-j2zm215x.js} +37 -3
- package/dist/chunk-j2zm215x.js.map +12 -0
- package/dist/{chunk-j1ny5fwh.js → chunk-k1g14kk3.js} +11 -83
- package/dist/{chunk-j1ny5fwh.js.map → chunk-k1g14kk3.js.map} +4 -5
- package/dist/{chunk-b7a97n8b.js → chunk-k66rp2hr.js} +7 -7
- package/dist/{chunk-b7a97n8b.js.map → chunk-k66rp2hr.js.map} +2 -2
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/{chunk-w53trr0c.js → chunk-kv0kvknv.js} +14 -14
- package/dist/{chunk-w53trr0c.js.map → chunk-kv0kvknv.js.map} +1 -1
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/chunk-m7b9q5dk.js +234 -0
- package/dist/chunk-m7b9q5dk.js.map +12 -0
- package/dist/{chunk-escedwyt.js → chunk-mvz89age.js} +6 -1
- package/dist/{chunk-escedwyt.js.map → chunk-mvz89age.js.map} +3 -3
- package/dist/chunk-mwcqz3e3.js +30 -0
- package/dist/chunk-mwcqz3e3.js.map +10 -0
- package/dist/chunk-n2ay51px.js +21 -0
- package/dist/chunk-n2ay51px.js.map +10 -0
- package/dist/{chunk-jk97v21j.js → chunk-n4zzaf6q.js} +3 -2
- package/dist/chunk-n4zzaf6q.js.map +10 -0
- package/dist/{chunk-cgznz22f.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-cgznz22f.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-neftrg0n.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-neftrg0n.js.map → chunk-p351afzm.js.map} +4 -4
- package/dist/chunk-pk539cwv.js +370 -0
- package/dist/chunk-pk539cwv.js.map +11 -0
- package/dist/{chunk-jbw70d6t.js → chunk-ppxf7gw2.js} +52 -10
- package/dist/chunk-ppxf7gw2.js.map +11 -0
- package/dist/{chunk-9x8dybsb.js → chunk-pvpq483h.js} +10 -2
- package/dist/chunk-pvpq483h.js.map +10 -0
- package/dist/{chunk-jhbk10wf.js → chunk-q9nkpr8k.js} +1 -1
- package/dist/chunk-qafng88v.js +225 -0
- package/dist/chunk-qafng88v.js.map +11 -0
- package/dist/chunk-qds484t8.js +1363 -0
- package/dist/chunk-qds484t8.js.map +18 -0
- package/dist/{chunk-47e09r7z.js → chunk-qttqe1ah.js} +86 -6
- package/dist/{chunk-47e09r7z.js.map → chunk-qttqe1ah.js.map} +5 -4
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-31khg3g0.js → chunk-rt9deb92.js} +76 -4
- package/dist/{chunk-31khg3g0.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-t5daew4g.js → chunk-s5n9617r.js} +18 -18
- package/dist/{chunk-t5daew4g.js.map → chunk-s5n9617r.js.map} +1 -1
- package/dist/{chunk-m3qe54bb.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-y2x2935j.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-y2x2935j.js.map → chunk-sysnvjce.js.map} +3 -3
- package/dist/{chunk-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/chunk-tqa68kj7.js +1322 -0
- package/dist/chunk-tqa68kj7.js.map +25 -0
- package/dist/chunk-vtjzwymr.js +37 -0
- package/dist/chunk-vtjzwymr.js.map +10 -0
- package/dist/{chunk-dz7a4t3a.js → chunk-vzkxqf8h.js} +26 -21
- package/dist/{chunk-dz7a4t3a.js.map → chunk-vzkxqf8h.js.map} +8 -8
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-t9xyr7y9.js → chunk-w9s23r24.js} +1218 -101
- package/dist/chunk-w9s23r24.js.map +30 -0
- package/dist/{chunk-9rh8ncs5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-9rh8ncs5.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-agn8d8ys.js → chunk-xtztwpkh.js} +1 -1
- 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-ratj7t3t.js → chunk-z0t4p2sk.js} +465 -76
- package/dist/chunk-z0t4p2sk.js.map +47 -0
- package/dist/{chunk-0g5nyx0k.js → chunk-zeykm8my.js} +2 -2
- 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 +13 -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 +61 -55
- 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 +60 -54
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +57 -51
- 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 +12 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +101 -93
- 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 +33 -30
- 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/catalog.d.ts +16 -0
- package/dist/models/catalog.d.ts.map +1 -1
- package/dist/models/definitions.d.ts +1 -1
- package/dist/models/definitions.d.ts.map +1 -1
- package/dist/models/execution/index.js +36 -33
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/execution/model-call-recorder.d.ts +1 -1
- package/dist/models/execution/model-call-recorder.d.ts.map +1 -1
- package/dist/models/execution/web-search.d.ts +7 -0
- package/dist/models/execution/web-search.d.ts.map +1 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +5 -3
- package/dist/models/index.js.map +1 -1
- package/dist/models/language-model.d.ts +12 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/web-search-model.d.ts +66 -0
- package/dist/models/web-search-model.d.ts.map +1 -0
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +63 -58
- 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/executor.d.ts.map +1 -1
- package/dist/objects/query/index.d.ts +1 -0
- package/dist/objects/query/index.d.ts.map +1 -1
- package/dist/objects/query/index.js +35 -29
- 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/query/sort-ties.d.ts +11 -0
- package/dist/objects/query/sort-ties.d.ts.map +1 -0
- 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 +40 -37
- 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 +33 -30
- 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 +4 -1
- 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 +57 -36
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/resolve-definitions.d.ts.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/index.d.ts +1 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/security/registry.d.ts +2 -0
- package/dist/security/registry.d.ts.map +1 -1
- package/dist/security/view-conditions.d.ts.map +1 -1
- package/dist/security/visibility-keys.d.ts +19 -0
- package/dist/security/visibility-keys.d.ts.map +1 -0
- 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 +74 -33
- 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/in-memory.d.ts +8 -2
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +1 -1
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts +8 -2
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +12 -6
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +42 -2
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +4 -4
- package/dist/storage/ai-limits/enforcement.js +4 -4
- package/dist/storage/ai-limits/provider.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 +23 -7
- package/dist/storage/connector-connections/provider.js.map +6 -6
- 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 +20 -13
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +61 -51
- 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 +83 -7
- 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/migrations/types.d.ts +6 -0
- package/dist/storage/migrations/types.d.ts.map +1 -1
- 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/index.d.ts +1 -1
- package/dist/storage/objects/index.d.ts.map +1 -1
- package/dist/storage/objects/query-preparation.d.ts +13 -0
- package/dist/storage/objects/query-preparation.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +70 -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 +41 -38
- 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/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-limit-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/ai-usage-storage-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 +6497 -3090
- package/dist/testing/index.js.map +32 -23
- 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-conditional-read-scope-contract.d.ts.map +1 -1
- 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 +72 -40
- 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 +68 -62
- 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/README.md +2 -1
- package/src/agents/cancel.ts +7 -1
- package/src/agents/execution.ts +10 -2
- package/src/agents/fork.ts +12 -4
- package/src/agents/index.ts +16 -2
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-plan.ts +31 -0
- package/src/agents/run-session-http.ts +19 -12
- package/src/agents/run-session-serve.ts +18 -2
- package/src/agents/run-session.ts +39 -12
- package/src/agents/skills.ts +3 -0
- package/src/agents/step-limits.ts +6 -0
- package/src/agents/streams/protocol.ts +14 -14
- package/src/agents/tool-files.ts +11 -3
- package/src/agents/validation.ts +12 -0
- package/src/agents/web.ts +218 -0
- package/src/artifacts/access.ts +71 -28
- package/src/artifacts/canvas-display.ts +160 -0
- package/src/artifacts/canvas.ts +26 -1
- package/src/artifacts/comment-text.ts +32 -0
- package/src/artifacts/comments.ts +275 -0
- package/src/artifacts/errors.ts +6 -1
- package/src/artifacts/events.ts +58 -0
- package/src/artifacts/execution.ts +496 -53
- package/src/artifacts/frames/assets.ts +20 -1
- package/src/artifacts/frames/grants.ts +31 -10
- package/src/artifacts/frames/index.ts +2 -0
- package/src/artifacts/frames/kit.ts +8 -5
- package/src/artifacts/frames/protocol.ts +149 -0
- package/src/artifacts/frames/runtime.ts +317 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +28 -2
- package/src/artifacts/limits.ts +28 -4
- package/src/artifacts/live/board.ts +759 -0
- package/src/artifacts/live/diff.ts +297 -0
- package/src/artifacts/live/document.ts +354 -0
- package/src/artifacts/live/files.ts +82 -0
- package/src/artifacts/live/index.ts +50 -0
- package/src/artifacts/live/presence.ts +144 -0
- package/src/artifacts/live/protocol.ts +134 -0
- package/src/artifacts/live/server.ts +16 -0
- package/src/artifacts/live/state.ts +115 -0
- package/src/artifacts/outline.ts +12 -0
- package/src/artifacts/publish/index.ts +26 -1
- package/src/artifacts/publish/merge.ts +271 -0
- package/src/artifacts/publish/previews.ts +485 -0
- package/src/artifacts/publish/publish.ts +92 -39
- package/src/artifacts/publish/query-answers.ts +85 -0
- package/src/artifacts/publish/references.ts +10 -4
- package/src/artifacts/publish/validate/canvas.ts +133 -1
- package/src/artifacts/theme.ts +9 -1
- package/src/auth/directory.ts +166 -0
- package/src/auth/member-events.ts +10 -3
- package/src/auth/runtime.ts +108 -8
- package/src/auth/strategy.ts +3 -1
- package/src/auth/types.ts +44 -0
- package/src/authorization/decision.ts +6 -5
- package/src/authorization/event-visibility.ts +4 -0
- package/src/authorization/resolve.ts +9 -11
- package/src/authorization/types.ts +5 -5
- 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 +93 -7
- 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 +37 -22
- package/src/http/api-routes.ts +105 -4
- package/src/index.ts +24 -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/catalog.ts +52 -3
- package/src/models/definitions.ts +2 -0
- package/src/models/execution/README.md +22 -2
- package/src/models/execution/model-call-recorder.ts +1 -1
- package/src/models/execution/web-search.ts +186 -0
- package/src/models/index.ts +12 -0
- package/src/models/language-model.ts +12 -0
- package/src/models/web-search-model.ts +152 -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/executor.ts +7 -3
- package/src/objects/query/index.ts +1 -0
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/query/sort-ties.ts +16 -0
- 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 +7 -2
- 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/resolve-definitions.ts +4 -0
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/security/index.ts +1 -0
- package/src/security/registry.ts +2 -0
- package/src/security/view-conditions.ts +4 -3
- package/src/security/visibility-keys.ts +144 -0
- 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/in-memory.ts +29 -2
- package/src/storage/agents/index.ts +2 -0
- package/src/storage/agents/provider.ts +57 -1
- package/src/storage/agents/types.ts +45 -2
- 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 +6 -3
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/connections.ts +2 -2
- 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 +69 -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/migrations/types.ts +6 -0
- package/src/storage/objects/in-memory/query.ts +6 -2
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/index.ts +2 -0
- package/src/storage/objects/query-preparation.ts +59 -1
- package/src/storage/objects/read-scope.ts +109 -2
- package/src/storage/objects/types.ts +59 -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/agent-storage-contract.ts +70 -0
- package/src/testing/ai-limit-storage-contract.ts +11 -1
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/ai-usage-storage-contract.ts +15 -2
- 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 +117 -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-conditional-read-scope-contract.ts +267 -5
- package/src/testing/object-query-contract.ts +168 -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-3x3bebz7.js.map +0 -49
- 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-aqyjb86c.js +0 -587
- package/dist/chunk-aqyjb86c.js.map +0 -18
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-cb21tx14.js.map +0 -71
- package/dist/chunk-djs3hw9p.js.map +0 -20
- package/dist/chunk-e5wf5vz0.js.map +0 -10
- package/dist/chunk-e6xgz4h4.js.map +0 -21
- package/dist/chunk-e7v3trpz.js.map +0 -10
- package/dist/chunk-edx8xcsm.js.map +0 -13
- package/dist/chunk-epyfm23v.js +0 -299
- package/dist/chunk-epyfm23v.js.map +0 -11
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-fg1db9xx.js.map +0 -10
- package/dist/chunk-h05rg3bx.js +0 -314
- package/dist/chunk-h05rg3bx.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jk97v21j.js.map +0 -10
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-ks87m383.js.map +0 -44
- 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-ratj7t3t.js.map +0 -45
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-t9xyr7y9.js.map +0 -22
- package/dist/chunk-tvbmh7tj.js.map +0 -18
- package/dist/chunk-tvefbgvw.js.map +0 -11
- package/dist/chunk-w976a4me.js.map +0 -10
- 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-2pk5hjj9.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-nghc7eq0.js.map → chunk-3723kgba.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-qsg8rw04.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-8wsjr52f.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-23s66j86.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-qbrmpgvv.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-7hd2ez3q.js.map → chunk-c4nrycdy.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-jhbk10wf.js.map → chunk-q9nkpr8k.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.js.map} +0 -0
- /package/dist/{chunk-r1cxq7vv.js.map → chunk-rtdrm592.js.map} +0 -0
- /package/dist/{chunk-m3qe54bb.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/dist/{chunk-agn8d8ys.js.map → chunk-xtztwpkh.js.map} +0 -0
- /package/dist/{chunk-0g5nyx0k.js.map → chunk-zeykm8my.js.map} +0 -0
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { SixbErrorReporter } from "./reporter"
|
|
2
2
|
import {
|
|
3
3
|
type ReportActionPhaseFailureInput,
|
|
4
|
+
type ReportArtifactLiveWriteFailureInput,
|
|
5
|
+
type ReportDatasetIngestFlushFailureInput,
|
|
6
|
+
type ReportDatasetIngestRejectionInput,
|
|
4
7
|
type ReportEventDeliveryFailureInput,
|
|
8
|
+
type ReportLakeRetentionFailureInput,
|
|
9
|
+
type ReportMaintenancePassFailureInput,
|
|
10
|
+
type ReportOrchestratorDispatchFailureInput,
|
|
5
11
|
type ReportRuleEvaluationFailureInput,
|
|
6
12
|
type ReportRunFailureInput,
|
|
7
13
|
type ReportVectorIndexingFailureInput,
|
|
8
14
|
reportActionPhaseFailure as reportActionPhaseFailureWith,
|
|
15
|
+
reportArtifactLiveWriteFailure as reportArtifactLiveWriteFailureWith,
|
|
16
|
+
reportDatasetIngestFlushFailure as reportDatasetIngestFlushFailureWith,
|
|
17
|
+
reportDatasetIngestRejection as reportDatasetIngestRejectionWith,
|
|
9
18
|
reportEventDeliveryFailure as reportEventDeliveryFailureWith,
|
|
19
|
+
reportLakeRetentionFailure as reportLakeRetentionFailureWith,
|
|
20
|
+
reportMaintenancePassFailure as reportMaintenancePassFailureWith,
|
|
21
|
+
reportOrchestratorDispatchFailure as reportOrchestratorDispatchFailureWith,
|
|
10
22
|
reportRuleEvaluationFailure as reportRuleEvaluationFailureWith,
|
|
11
23
|
reportRunFailure as reportRunFailureWith,
|
|
12
24
|
reportVectorIndexingFailure as reportVectorIndexingFailureWith,
|
|
@@ -47,7 +59,13 @@ export function shareSixbErrorReporter(source: object, target: object): void {
|
|
|
47
59
|
|
|
48
60
|
export type {
|
|
49
61
|
ReportActionPhaseFailureInput,
|
|
62
|
+
ReportArtifactLiveWriteFailureInput,
|
|
63
|
+
ReportDatasetIngestFlushFailureInput,
|
|
64
|
+
ReportDatasetIngestRejectionInput,
|
|
50
65
|
ReportEventDeliveryFailureInput,
|
|
66
|
+
ReportMaintenancePassFailureInput,
|
|
67
|
+
ReportOrchestratorDispatchFailureInput,
|
|
68
|
+
ReportLakeRetentionFailureInput,
|
|
51
69
|
ReportRuleEvaluationFailureInput,
|
|
52
70
|
ReportRunFailureInput,
|
|
53
71
|
ReportVectorIndexingFailureInput,
|
|
@@ -77,6 +95,22 @@ export function reportEventDeliveryFailure(
|
|
|
77
95
|
reportEventDeliveryFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
78
96
|
}
|
|
79
97
|
|
|
98
|
+
export function reportMaintenancePassFailure(
|
|
99
|
+
host: unknown,
|
|
100
|
+
error: unknown,
|
|
101
|
+
input: ReportMaintenancePassFailureInput
|
|
102
|
+
): void {
|
|
103
|
+
reportMaintenancePassFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function reportOrchestratorDispatchFailure(
|
|
107
|
+
host: unknown,
|
|
108
|
+
error: unknown,
|
|
109
|
+
input: ReportOrchestratorDispatchFailureInput
|
|
110
|
+
): void {
|
|
111
|
+
reportOrchestratorDispatchFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
112
|
+
}
|
|
113
|
+
|
|
80
114
|
export function reportRuleEvaluationFailure(
|
|
81
115
|
host: unknown,
|
|
82
116
|
error: unknown,
|
|
@@ -85,6 +119,14 @@ export function reportRuleEvaluationFailure(
|
|
|
85
119
|
reportRuleEvaluationFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
86
120
|
}
|
|
87
121
|
|
|
122
|
+
export function reportArtifactLiveWriteFailure(
|
|
123
|
+
host: unknown,
|
|
124
|
+
error: unknown,
|
|
125
|
+
input: ReportArtifactLiveWriteFailureInput
|
|
126
|
+
): void {
|
|
127
|
+
reportArtifactLiveWriteFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
128
|
+
}
|
|
129
|
+
|
|
88
130
|
export async function flushSixbErrors(host: unknown, timeoutMs?: number): Promise<void> {
|
|
89
131
|
await resolveSixbErrorReporter(host).flush(timeoutMs)
|
|
90
132
|
}
|
|
@@ -96,3 +138,27 @@ export function reportVectorIndexingFailure(
|
|
|
96
138
|
): void {
|
|
97
139
|
reportVectorIndexingFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
98
140
|
}
|
|
141
|
+
|
|
142
|
+
export function reportLakeRetentionFailure(
|
|
143
|
+
host: object,
|
|
144
|
+
error: unknown,
|
|
145
|
+
input: ReportLakeRetentionFailureInput
|
|
146
|
+
): void {
|
|
147
|
+
reportLakeRetentionFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function reportDatasetIngestFlushFailure(
|
|
151
|
+
host: object,
|
|
152
|
+
error: unknown,
|
|
153
|
+
input: ReportDatasetIngestFlushFailureInput
|
|
154
|
+
): void {
|
|
155
|
+
reportDatasetIngestFlushFailureWith(resolveSixbErrorReporter(host), error, input)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function reportDatasetIngestRejection(
|
|
159
|
+
host: object,
|
|
160
|
+
error: unknown,
|
|
161
|
+
input: ReportDatasetIngestRejectionInput
|
|
162
|
+
): void {
|
|
163
|
+
reportDatasetIngestRejectionWith(resolveSixbErrorReporter(host), error, input)
|
|
164
|
+
}
|
|
@@ -2,11 +2,23 @@ export {
|
|
|
2
2
|
attachSixbErrorReporter,
|
|
3
3
|
flushSixbErrors,
|
|
4
4
|
type ReportActionPhaseFailureInput,
|
|
5
|
+
type ReportArtifactLiveWriteFailureInput,
|
|
6
|
+
type ReportDatasetIngestFlushFailureInput,
|
|
7
|
+
type ReportDatasetIngestRejectionInput,
|
|
5
8
|
type ReportEventDeliveryFailureInput,
|
|
9
|
+
type ReportLakeRetentionFailureInput,
|
|
10
|
+
type ReportMaintenancePassFailureInput,
|
|
11
|
+
type ReportOrchestratorDispatchFailureInput,
|
|
6
12
|
type ReportRuleEvaluationFailureInput,
|
|
7
13
|
type ReportRunFailureInput,
|
|
8
14
|
reportActionPhaseFailure,
|
|
15
|
+
reportArtifactLiveWriteFailure,
|
|
16
|
+
reportDatasetIngestFlushFailure,
|
|
17
|
+
reportDatasetIngestRejection,
|
|
9
18
|
reportEventDeliveryFailure,
|
|
19
|
+
reportLakeRetentionFailure,
|
|
20
|
+
reportMaintenancePassFailure,
|
|
21
|
+
reportOrchestratorDispatchFailure,
|
|
10
22
|
reportRuleEvaluationFailure,
|
|
11
23
|
reportRunFailure,
|
|
12
24
|
shareSixbErrorReporter,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PendingTasks } from "../pending-tasks"
|
|
1
2
|
import { normalizeReportedError } from "./normalize"
|
|
2
3
|
import type { SixbErrorContext, SixbErrorHandler } from "./types"
|
|
3
4
|
|
|
@@ -9,7 +10,7 @@ export interface ErrorReporter {
|
|
|
9
10
|
|
|
10
11
|
/** Failure-isolated, non-blocking adapter around the configured callback. */
|
|
11
12
|
export class SixbErrorReporter implements ErrorReporter {
|
|
12
|
-
private readonly pending = new
|
|
13
|
+
private readonly pending = new PendingTasks()
|
|
13
14
|
|
|
14
15
|
constructor(private readonly handler?: SixbErrorHandler) {}
|
|
15
16
|
|
|
@@ -31,26 +32,18 @@ export class SixbErrorReporter implements ErrorReporter {
|
|
|
31
32
|
}
|
|
32
33
|
})
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
this.pending.delete(tracked)
|
|
36
|
-
})
|
|
37
|
-
this.pending.add(tracked)
|
|
35
|
+
this.pending.track(invocation)
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
async flush(timeoutMs = DEFAULT_FLUSH_TIMEOUT_MS): Promise<void> {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} catch {
|
|
50
|
-
// Error reporting must never escape back into framework shutdown.
|
|
51
|
-
}
|
|
52
|
-
return
|
|
53
|
-
}
|
|
39
|
+
if (await this.pending.drain(timeoutMs)) return
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
console.error(
|
|
43
|
+
`[Sixb] Timed out after ${timeoutMs}ms waiting for ${this.pending.size} onError handler(s).`
|
|
44
|
+
)
|
|
45
|
+
} catch {
|
|
46
|
+
// Error reporting must never escape back into framework shutdown.
|
|
54
47
|
}
|
|
55
48
|
}
|
|
56
49
|
}
|
|
@@ -62,20 +55,3 @@ function reportToConsole(error: Error, context: SixbErrorContext): void {
|
|
|
62
55
|
// Error reporting must never escape back into framework execution.
|
|
63
56
|
}
|
|
64
57
|
}
|
|
65
|
-
|
|
66
|
-
async function settleWithin(
|
|
67
|
-
promises: readonly Promise<void>[],
|
|
68
|
-
timeoutMs: number
|
|
69
|
-
): Promise<boolean> {
|
|
70
|
-
let timeout: ReturnType<typeof setTimeout> | undefined
|
|
71
|
-
try {
|
|
72
|
-
return await Promise.race([
|
|
73
|
-
Promise.allSettled(promises).then(() => true),
|
|
74
|
-
new Promise<false>((resolve) => {
|
|
75
|
-
timeout = setTimeout(() => resolve(false), timeoutMs)
|
|
76
|
-
}),
|
|
77
|
-
])
|
|
78
|
-
} finally {
|
|
79
|
-
if (timeout) clearTimeout(timeout)
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -172,6 +172,103 @@ export function reportRuleEvaluationFailure(
|
|
|
172
172
|
})
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
export interface ReportMaintenancePassFailureInput {
|
|
176
|
+
readonly projectId: string
|
|
177
|
+
readonly passId: string
|
|
178
|
+
readonly consecutiveFailures: number
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function reportMaintenancePassFailure(
|
|
182
|
+
reporter: ErrorReporter,
|
|
183
|
+
error: unknown,
|
|
184
|
+
input: ReportMaintenancePassFailureInput
|
|
185
|
+
): void {
|
|
186
|
+
const occurredAt = resolveOccurredAt()
|
|
187
|
+
reporter.report(error, {
|
|
188
|
+
...input,
|
|
189
|
+
type: "maintenance.pass.failed",
|
|
190
|
+
notificationId: `project:${input.projectId}:maintenance:${input.passId}:failed:${randomUUID()}`,
|
|
191
|
+
occurredAt,
|
|
192
|
+
failure: captureSixbFailure(error, {
|
|
193
|
+
allowedCodes: ["internal.unexpected"],
|
|
194
|
+
defaultCode: "internal.unexpected",
|
|
195
|
+
details: { passId: input.passId, consecutiveFailures: input.consecutiveFailures },
|
|
196
|
+
at: new Date(occurredAt),
|
|
197
|
+
}),
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface ReportOrchestratorDispatchFailureInput {
|
|
202
|
+
readonly projectId: string
|
|
203
|
+
readonly eventId: string
|
|
204
|
+
readonly eventType: string
|
|
205
|
+
readonly target: string
|
|
206
|
+
readonly attempts: number
|
|
207
|
+
readonly dropped: boolean
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function reportOrchestratorDispatchFailure(
|
|
211
|
+
reporter: ErrorReporter,
|
|
212
|
+
error: unknown,
|
|
213
|
+
input: ReportOrchestratorDispatchFailureInput
|
|
214
|
+
): void {
|
|
215
|
+
const occurredAt = resolveOccurredAt()
|
|
216
|
+
reporter.report(error, {
|
|
217
|
+
...input,
|
|
218
|
+
type: "orchestrator.dispatch.failed",
|
|
219
|
+
notificationId: `project:${input.projectId}:dispatch:${input.eventId}:${input.target}:${input.dropped ? "dropped" : "retrying"}`,
|
|
220
|
+
occurredAt,
|
|
221
|
+
failure: captureSixbFailure(error, {
|
|
222
|
+
allowedCodes: ["internal.unexpected"],
|
|
223
|
+
defaultCode: "internal.unexpected",
|
|
224
|
+
details: {
|
|
225
|
+
eventId: input.eventId,
|
|
226
|
+
eventType: input.eventType,
|
|
227
|
+
target: input.target,
|
|
228
|
+
attempts: input.attempts,
|
|
229
|
+
dropped: input.dropped,
|
|
230
|
+
},
|
|
231
|
+
at: new Date(occurredAt),
|
|
232
|
+
}),
|
|
233
|
+
})
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface ReportArtifactLiveWriteFailureInput {
|
|
237
|
+
readonly projectId: string
|
|
238
|
+
readonly artifactId: string
|
|
239
|
+
readonly revision: number
|
|
240
|
+
readonly attempts: number
|
|
241
|
+
readonly occurredAt?: Date | string
|
|
242
|
+
/** Identity of this loss. Defaults to a fresh id; pass one to make a report reproducible. */
|
|
243
|
+
readonly occurrenceId?: string
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** Report that changes made to a canvas live were never stored. */
|
|
247
|
+
export function reportArtifactLiveWriteFailure(
|
|
248
|
+
reporter: ErrorReporter,
|
|
249
|
+
error: unknown,
|
|
250
|
+
input: ReportArtifactLiveWriteFailureInput
|
|
251
|
+
): void {
|
|
252
|
+
const occurredAt = resolveOccurredAt(input.occurredAt)
|
|
253
|
+
const failure = captureSixbFailure(error, {
|
|
254
|
+
allowedCodes: ["storage.unavailable", "internal.unexpected"],
|
|
255
|
+
defaultCode: "internal.unexpected",
|
|
256
|
+
details: { artifactId: input.artifactId, revision: input.revision, attempts: input.attempts },
|
|
257
|
+
at: new Date(occurredAt),
|
|
258
|
+
})
|
|
259
|
+
|
|
260
|
+
reporter.report(error, {
|
|
261
|
+
type: "artifact.live_write.failed",
|
|
262
|
+
notificationId: `project:${input.projectId}:artifact:${input.artifactId}:live-write:${input.occurrenceId ?? randomUUID()}`,
|
|
263
|
+
projectId: input.projectId,
|
|
264
|
+
occurredAt,
|
|
265
|
+
failure,
|
|
266
|
+
artifactId: input.artifactId,
|
|
267
|
+
revision: input.revision,
|
|
268
|
+
attempts: input.attempts,
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
|
|
175
272
|
export interface ReportVectorIndexingFailureInput {
|
|
176
273
|
readonly projectId: string
|
|
177
274
|
readonly indexingId: string
|
|
@@ -193,3 +290,73 @@ export function reportVectorIndexingFailure(
|
|
|
193
290
|
notificationId: `vector-indexing:${input.projectId}:${input.indexingId}`,
|
|
194
291
|
})
|
|
195
292
|
}
|
|
293
|
+
|
|
294
|
+
export interface ReportLakeRetentionFailureInput {
|
|
295
|
+
readonly projectId: string
|
|
296
|
+
readonly intervalStart: string
|
|
297
|
+
readonly failure: SixbFailure<"internal.unexpected" | "runtime.cancelled">
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function reportLakeRetentionFailure(
|
|
301
|
+
reporter: ErrorReporter,
|
|
302
|
+
error: unknown,
|
|
303
|
+
input: ReportLakeRetentionFailureInput
|
|
304
|
+
): void {
|
|
305
|
+
reporter.report(error, {
|
|
306
|
+
...input,
|
|
307
|
+
type: "lake.retention.failed",
|
|
308
|
+
occurredAt: input.failure.at,
|
|
309
|
+
notificationId: `lake-retention:${input.projectId}:${input.intervalStart}`,
|
|
310
|
+
})
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface ReportDatasetIngestFlushFailureInput {
|
|
314
|
+
readonly projectId: string
|
|
315
|
+
readonly datasetId: string
|
|
316
|
+
readonly failure: SixbFailure<"internal.unexpected" | "runtime.cancelled">
|
|
317
|
+
readonly failureStreak: number
|
|
318
|
+
readonly pendingDeliveries: number
|
|
319
|
+
readonly oldestReceivedAt: string | null
|
|
320
|
+
/** What this report is about: the flush that keeps failing, or the delivery none flushed. */
|
|
321
|
+
readonly subject: string
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export function reportDatasetIngestFlushFailure(
|
|
325
|
+
reporter: ErrorReporter,
|
|
326
|
+
error: unknown,
|
|
327
|
+
input: ReportDatasetIngestFlushFailureInput
|
|
328
|
+
): void {
|
|
329
|
+
const { subject, ...context } = input
|
|
330
|
+
|
|
331
|
+
reporter.report(error, {
|
|
332
|
+
...context,
|
|
333
|
+
type: "dataset.ingest.flush.failed",
|
|
334
|
+
occurredAt: input.failure.at,
|
|
335
|
+
notificationId: `dataset-ingest:${input.projectId}:${input.datasetId}:${subject}`,
|
|
336
|
+
})
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface ReportDatasetIngestRejectionInput {
|
|
340
|
+
readonly projectId: string
|
|
341
|
+
readonly datasetId: string
|
|
342
|
+
readonly deliveryId: string
|
|
343
|
+
readonly executionId: string
|
|
344
|
+
readonly changes: number
|
|
345
|
+
readonly changeIndex: number
|
|
346
|
+
readonly key: Readonly<Record<string, string>>
|
|
347
|
+
readonly sequence?: string
|
|
348
|
+
readonly failure: SixbFailure<"dataset.change_refused">
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export function reportDatasetIngestRejection(
|
|
352
|
+
reporter: ErrorReporter,
|
|
353
|
+
error: unknown,
|
|
354
|
+
input: ReportDatasetIngestRejectionInput
|
|
355
|
+
): void {
|
|
356
|
+
reporter.report(error, {
|
|
357
|
+
...input,
|
|
358
|
+
type: "dataset.ingest.rejected",
|
|
359
|
+
occurredAt: input.failure.at,
|
|
360
|
+
notificationId: `dataset-ingest-rejected:${input.projectId}:${input.datasetId}:${input.deliveryId}`,
|
|
361
|
+
})
|
|
362
|
+
}
|
|
@@ -159,6 +159,22 @@ export interface SixbRuleEvaluationFailedContext
|
|
|
159
159
|
readonly subject?: { readonly objectTypeId: string; readonly primaryId: string }
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
/**
|
|
163
|
+
* What people changed in a canvas live was never stored: the server stopped before it could write
|
|
164
|
+
* it back, or storage refused it with nobody left who may write it. Until then a failed write-back
|
|
165
|
+
* is only logged: the server keeps the changes and tries again while it runs.
|
|
166
|
+
*/
|
|
167
|
+
export interface SixbArtifactLiveWriteFailedContext
|
|
168
|
+
extends SixbFailureContext<"artifact.live_write.failed"> {
|
|
169
|
+
/** The last write-back's failure. */
|
|
170
|
+
readonly failure: SixbFailure<"storage.unavailable" | "internal.unexpected">
|
|
171
|
+
readonly artifactId: string
|
|
172
|
+
/** The revision the unwritten changes were made on. */
|
|
173
|
+
readonly revision: number
|
|
174
|
+
/** The write-backs tried, none of which was stored. */
|
|
175
|
+
readonly attempts: number
|
|
176
|
+
}
|
|
177
|
+
|
|
162
178
|
/** A terminal automatic-indexing failure, correlated with its persisted request and profile. */
|
|
163
179
|
export interface SixbVectorIndexingFailedContext
|
|
164
180
|
extends SixbFailureContext<"vector.indexing.failed"> {
|
|
@@ -169,16 +185,99 @@ export interface SixbVectorIndexingFailedContext
|
|
|
169
185
|
readonly profile: string
|
|
170
186
|
}
|
|
171
187
|
|
|
188
|
+
/**
|
|
189
|
+
* One pass of the maintenance loop failed, or ran past its budget. It runs again when it is next
|
|
190
|
+
* due, so one report is a blip; `consecutiveFailures` is the field to alert on. `heartbeat` as
|
|
191
|
+
* `passId` means the loop could not write its heartbeat.
|
|
192
|
+
*/
|
|
193
|
+
export interface SixbMaintenancePassFailedContext
|
|
194
|
+
extends SixbFailureContext<"maintenance.pass.failed"> {
|
|
195
|
+
readonly failure: SixbFailure<"internal.unexpected">
|
|
196
|
+
readonly passId: string
|
|
197
|
+
readonly consecutiveFailures: number
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* A job of an event could not be dispatched, and `dropped` says what became of it.
|
|
202
|
+
*
|
|
203
|
+
* True: the failure is about this event, such as a mapper that throws, so retrying cannot help and
|
|
204
|
+
* this trigger is gone. False: the job has failed for minutes and keeps retrying. An outage reads
|
|
205
|
+
* like this. So does a defect that no retry will fix, so a job that stays here wants a look.
|
|
206
|
+
*/
|
|
207
|
+
export interface SixbOrchestratorDispatchFailedContext
|
|
208
|
+
extends SixbFailureContext<"orchestrator.dispatch.failed"> {
|
|
209
|
+
readonly failure: SixbFailure<"internal.unexpected">
|
|
210
|
+
readonly eventId: string
|
|
211
|
+
readonly eventType: string
|
|
212
|
+
/** What the job starts, such as `pipeline:daily-sales`. */
|
|
213
|
+
readonly target: string
|
|
214
|
+
readonly attempts: number
|
|
215
|
+
readonly dropped: boolean
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* One automatic lake retention run failed. The lake keeps what that run would have removed; the
|
|
220
|
+
* next interval's run tries again.
|
|
221
|
+
*/
|
|
222
|
+
export interface SixbLakeRetentionFailedContext
|
|
223
|
+
extends SixbFailureContext<"lake.retention.failed"> {
|
|
224
|
+
readonly failure: SixbFailure<"internal.unexpected" | "runtime.cancelled">
|
|
225
|
+
/** The start of the interval the run was for. */
|
|
226
|
+
readonly intervalStart: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* A dataset's ingested changes have waited too long: its flushes failed this many times in a row,
|
|
231
|
+
* or none ran at all. The changes stay in the inbox, and flushes go on trying.
|
|
232
|
+
*/
|
|
233
|
+
export interface SixbDatasetIngestFlushFailedContext
|
|
234
|
+
extends SixbFailureContext<"dataset.ingest.flush.failed"> {
|
|
235
|
+
readonly failure: SixbFailure<"internal.unexpected" | "runtime.cancelled">
|
|
236
|
+
readonly datasetId: string
|
|
237
|
+
/** Flush attempts that failed in a row. 0 when no flush ran. */
|
|
238
|
+
readonly failureStreak: number
|
|
239
|
+
readonly pendingDeliveries: number
|
|
240
|
+
readonly oldestReceivedAt: string | null
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The lake refused one ingested delivery when its flush wrote it, after `ingest` had accepted it:
|
|
245
|
+
* for example a source sequence another delivery holds with other content. The delivery is
|
|
246
|
+
* dropped and the rest of its batch committed. The context names what to send again.
|
|
247
|
+
*/
|
|
248
|
+
export interface SixbDatasetIngestRejectedContext
|
|
249
|
+
extends SixbFailureContext<"dataset.ingest.rejected"> {
|
|
250
|
+
readonly failure: SixbFailure<"dataset.change_refused">
|
|
251
|
+
readonly datasetId: string
|
|
252
|
+
readonly deliveryId: string
|
|
253
|
+
/** The execution that called `ingest`. */
|
|
254
|
+
readonly executionId: string
|
|
255
|
+
/** How many changes the delivery held. `sixb lake rejected` shows all of them. */
|
|
256
|
+
readonly changes: number
|
|
257
|
+
/** The refused change's position in the delivery, from 0. */
|
|
258
|
+
readonly changeIndex: number
|
|
259
|
+
/** The refused change's primary key. */
|
|
260
|
+
readonly key: Readonly<Record<string, string>>
|
|
261
|
+
/** Its source sequence, on a dataset with `sequenceBy`. */
|
|
262
|
+
readonly sequence?: string
|
|
263
|
+
}
|
|
264
|
+
|
|
172
265
|
/**
|
|
173
266
|
* Context supplied to the global Sixb error handler, discriminated by `type`.
|
|
174
267
|
* Failure notifications never change the outcome of the operation they observe.
|
|
175
268
|
*/
|
|
176
269
|
export type SixbErrorContext =
|
|
270
|
+
| SixbArtifactLiveWriteFailedContext
|
|
177
271
|
| SixbVectorIndexingFailedContext
|
|
272
|
+
| SixbLakeRetentionFailedContext
|
|
273
|
+
| SixbDatasetIngestFlushFailedContext
|
|
274
|
+
| SixbDatasetIngestRejectedContext
|
|
178
275
|
| SixbActionPhaseFailedContext
|
|
179
276
|
| SixbRunFailedContext
|
|
180
277
|
| SixbEventDeliveryFailedContext
|
|
181
278
|
| SixbRuleEvaluationFailedContext
|
|
279
|
+
| SixbMaintenancePassFailedContext
|
|
280
|
+
| SixbOrchestratorDispatchFailedContext
|
|
182
281
|
|
|
183
282
|
/** Observes runtime failures without changing their outcome. */
|
|
184
283
|
export type SixbErrorHandler = (error: Error, context: SixbErrorContext) => void | Promise<void>
|
package/src/errors/catalog.ts
CHANGED
|
@@ -116,6 +116,12 @@ export const SIXB_ERROR_DEFINITIONS = {
|
|
|
116
116
|
publicMessage: "Connector revocation is pending.",
|
|
117
117
|
retryable: true,
|
|
118
118
|
},
|
|
119
|
+
// The lake refused one ingested change at flush time; its message says why.
|
|
120
|
+
"dataset.change_refused": {
|
|
121
|
+
publicMessage: "The lake refused an ingested change.",
|
|
122
|
+
retryable: false,
|
|
123
|
+
explanationIsMessage: true,
|
|
124
|
+
},
|
|
119
125
|
"dataset.not_found": {
|
|
120
126
|
publicMessage: "Dataset not found.",
|
|
121
127
|
retryable: false,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventsError } from "./errors"
|
|
2
|
+
import type { ArtifactEvent } from "./types/artifacts"
|
|
2
3
|
import type { DatasetEvent } from "./types/datasets"
|
|
3
4
|
import type { DomainEvent, DomainEventDraft } from "./types/index"
|
|
4
5
|
import type { LinkEvent } from "./types/links"
|
|
@@ -195,6 +196,18 @@ export const USER_EVENT_DEFINITIONS = defineEventGroup<UserEvent>({
|
|
|
195
196
|
},
|
|
196
197
|
})
|
|
197
198
|
|
|
199
|
+
// One stream per artifact, so its changes stay in order.
|
|
200
|
+
export const ARTIFACT_EVENT_DEFINITIONS = defineEventGroup<ArtifactEvent>({
|
|
201
|
+
"artifact.updated": {
|
|
202
|
+
topic: "artifacts",
|
|
203
|
+
partitionKey: (payload) => payload.artifactId,
|
|
204
|
+
},
|
|
205
|
+
"artifact.commented": {
|
|
206
|
+
topic: "artifacts",
|
|
207
|
+
partitionKey: (payload) => payload.artifactId,
|
|
208
|
+
},
|
|
209
|
+
})
|
|
210
|
+
|
|
198
211
|
export const EVENT_DEFINITIONS = {
|
|
199
212
|
...OBJECT_EVENT_DEFINITIONS,
|
|
200
213
|
...TELEMETRY_EVENT_DEFINITIONS,
|
|
@@ -206,6 +219,7 @@ export const EVENT_DEFINITIONS = {
|
|
|
206
219
|
...DATASET_EVENT_DEFINITIONS,
|
|
207
220
|
...RULE_EVENT_DEFINITIONS,
|
|
208
221
|
...USER_EVENT_DEFINITIONS,
|
|
222
|
+
...ARTIFACT_EVENT_DEFINITIONS,
|
|
209
223
|
} as const satisfies EventDefinitionMap
|
|
210
224
|
|
|
211
225
|
export const EVENT_TYPES = Object.keys(EVENT_DEFINITIONS) as readonly DomainEvent["type"][]
|
package/src/events/execution.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRuntimeArtifactAccessRule } from "../artifacts/execution"
|
|
2
|
+
import { type AuthorizationContext, assertPrivileged, canViewEvent } from "../authorization"
|
|
2
3
|
import { resolveRuntimeAuthorizationForProject } from "../execution/authorization"
|
|
3
4
|
import {
|
|
4
5
|
type AuthorizedObjectReader,
|
|
@@ -26,6 +27,7 @@ import {
|
|
|
26
27
|
export interface EventsRuntime {
|
|
27
28
|
/**
|
|
28
29
|
* The events this execution may read, in order: hidden events are dropped, the others redacted.
|
|
30
|
+
* A shared link's session reads only the events of the artifacts it reads.
|
|
29
31
|
* Markings apply as they are now, with those of the versions an object event's values came from:
|
|
30
32
|
* the version a projection's event applied, and every marking a column declares for projected
|
|
31
33
|
* values that came from earlier versions.
|
|
@@ -68,41 +70,56 @@ export function createEventsRuntime(runtime: SixbRuntimeContext): EventsRuntime
|
|
|
68
70
|
): Promise<readonly StoredDomainEvent[]> => {
|
|
69
71
|
switch (authority.type) {
|
|
70
72
|
case "denied":
|
|
71
|
-
case "delegated":
|
|
72
73
|
return []
|
|
74
|
+
case "delegated": {
|
|
75
|
+
// A shared link's session follows the artifacts its objects hold, and nothing else.
|
|
76
|
+
const readable = await readableArtifactEvents(runtime, events)
|
|
77
|
+
return events.filter((event) => readable.has(event))
|
|
78
|
+
}
|
|
73
79
|
case "unrestricted":
|
|
74
80
|
return events
|
|
75
81
|
case "principal": {
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
: viewable
|
|
89
|
-
const shown = await visibleUnderConditions(
|
|
90
|
-
reader,
|
|
91
|
-
readable,
|
|
92
|
-
conditions,
|
|
93
|
-
clearanceFor,
|
|
94
|
-
history
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
return shown.map((event) => {
|
|
98
|
-
const redacting = clearanceFor(event)
|
|
99
|
-
const redacted = redacting ? redactDomainEvent(event, redacting) : event
|
|
100
|
-
return withoutHiddenPriorState(event, redacted, conditions)
|
|
101
|
-
})
|
|
82
|
+
const shown = await visibleByGrants(authority.context, events)
|
|
83
|
+
if (!events.some((event) => event.topic === "artifacts")) return shown
|
|
84
|
+
|
|
85
|
+
// Artifact events go to whoever reads the artifact, in the log's order with the others.
|
|
86
|
+
const readable = await readableArtifactEvents(runtime, events)
|
|
87
|
+
const byCursor = new Map(shown.map((event) => [event.cursor, event]))
|
|
88
|
+
|
|
89
|
+
return events
|
|
90
|
+
.filter((event) =>
|
|
91
|
+
event.topic === "artifacts" ? readable.has(event) : byCursor.has(event.cursor)
|
|
92
|
+
)
|
|
93
|
+
.map((event) => byCursor.get(event.cursor) ?? event)
|
|
102
94
|
}
|
|
103
95
|
}
|
|
104
96
|
}
|
|
105
97
|
|
|
98
|
+
/** The events a principal's grants show it, redacted as its clearance says. */
|
|
99
|
+
const visibleByGrants = async (
|
|
100
|
+
context: AuthorizationContext,
|
|
101
|
+
events: readonly StoredDomainEvent[]
|
|
102
|
+
): Promise<readonly StoredDomainEvent[]> => {
|
|
103
|
+
const reader = runtime.objectReader
|
|
104
|
+
const conditions = readerViewConditions(reader)
|
|
105
|
+
const viewable = events.filter((event) => canViewEvent(context, event, conditions))
|
|
106
|
+
if (viewable.length === 0) return viewable
|
|
107
|
+
|
|
108
|
+
const clearance = await readerClearance(reader)
|
|
109
|
+
const clearanceFor = await eventClearances(reader, viewable, clearance)
|
|
110
|
+
|
|
111
|
+
const readable = clearance
|
|
112
|
+
? viewable.filter((event) => !readsUnreadable(event, clearance))
|
|
113
|
+
: viewable
|
|
114
|
+
const shown = await visibleUnderConditions(reader, readable, conditions, clearanceFor, history)
|
|
115
|
+
|
|
116
|
+
return shown.map((event) => {
|
|
117
|
+
const redacting = clearanceFor(event)
|
|
118
|
+
const redacted = redacting ? redactDomainEvent(event, redacting) : event
|
|
119
|
+
return withoutHiddenPriorState(event, redacted, conditions)
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
|
|
106
123
|
return {
|
|
107
124
|
visible,
|
|
108
125
|
append: (input) => {
|
|
@@ -163,6 +180,38 @@ export function createEventsRuntime(runtime: SixbRuntimeContext): EventsRuntime
|
|
|
163
180
|
}
|
|
164
181
|
}
|
|
165
182
|
|
|
183
|
+
/**
|
|
184
|
+
* The artifact events the runtime's caller receives: those about an artifact it reads, as the
|
|
185
|
+
* artifact access rule decides now. One read per artifact, however many of its events the batch
|
|
186
|
+
* holds; without artifact storage, none.
|
|
187
|
+
*/
|
|
188
|
+
async function readableArtifactEvents(
|
|
189
|
+
runtime: SixbRuntimeContext,
|
|
190
|
+
events: readonly StoredDomainEvent[]
|
|
191
|
+
): Promise<ReadonlySet<StoredDomainEvent>> {
|
|
192
|
+
const storage = runtime.storage.artifacts
|
|
193
|
+
if (!storage) return new Set()
|
|
194
|
+
|
|
195
|
+
const rule = createRuntimeArtifactAccessRule(runtime)
|
|
196
|
+
const readable = new Map<string, Promise<boolean>>()
|
|
197
|
+
const reads = (artifactId: string) => {
|
|
198
|
+
let read = readable.get(artifactId)
|
|
199
|
+
if (!read) {
|
|
200
|
+
read = storage
|
|
201
|
+
.get({ projectId: runtime.projectId, id: artifactId })
|
|
202
|
+
.then(async (artifact) => artifact !== null && (await rule.accessTo(artifact)) !== "none")
|
|
203
|
+
readable.set(artifactId, read)
|
|
204
|
+
}
|
|
205
|
+
return read
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
const shown = new Set<StoredDomainEvent>()
|
|
209
|
+
for (const event of events) {
|
|
210
|
+
if (event.topic === "artifacts" && (await reads(event.payload.artifactId))) shown.add(event)
|
|
211
|
+
}
|
|
212
|
+
return shown
|
|
213
|
+
}
|
|
214
|
+
|
|
166
215
|
/**
|
|
167
216
|
* The clearance each event is redacted with, resolved once per kind of event for the whole batch.
|
|
168
217
|
* An event that holds only values the current markings describe uses the reader's clearance.
|