@sixb/core 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.js +56 -50
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run/executor.d.ts +0 -2
- package/dist/actions/run/executor.d.ts.map +1 -1
- package/dist/actions/types/context.d.ts +5 -1
- package/dist/actions/types/context.d.ts.map +1 -1
- package/dist/agents/cancel.d.ts +1 -1
- package/dist/agents/cancel.d.ts.map +1 -1
- package/dist/agents/child-question.d.ts +35 -2
- package/dist/agents/child-question.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +3 -2
- package/dist/agents/execution.d.ts.map +1 -1
- package/dist/agents/fork.d.ts.map +1 -1
- package/dist/agents/ids.d.ts +2 -0
- package/dist/agents/ids.d.ts.map +1 -1
- package/dist/agents/index.d.ts +4 -4
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +91 -76
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-loop.d.ts.map +1 -1
- package/dist/agents/request.d.ts +7 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +73 -10
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-session-children.d.ts +9 -0
- package/dist/agents/run-session-children.d.ts.map +1 -1
- package/dist/agents/run-session-http.d.ts.map +1 -1
- package/dist/agents/run-session-serve.d.ts.map +1 -1
- package/dist/agents/run-session.d.ts +3 -0
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/streams/index.js +2 -2
- package/dist/agents/streams/internal.js +2 -2
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/tool-files.d.ts +1 -1
- package/dist/agents/tool-files.d.ts.map +1 -1
- package/dist/agents/tool-input-coercion.d.ts +20 -0
- package/dist/agents/tool-input-coercion.d.ts.map +1 -0
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/access.d.ts +37 -17
- package/dist/artifacts/access.d.ts.map +1 -1
- package/dist/artifacts/canvas-display.d.ts +65 -0
- package/dist/artifacts/canvas-display.d.ts.map +1 -0
- package/dist/artifacts/canvas.d.ts +6 -1
- package/dist/artifacts/canvas.d.ts.map +1 -1
- package/dist/artifacts/comment-text.d.ts +19 -0
- package/dist/artifacts/comment-text.d.ts.map +1 -0
- package/dist/artifacts/comments.d.ts +52 -0
- package/dist/artifacts/comments.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +3 -3
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +14 -0
- package/dist/artifacts/events.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +129 -22
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +12 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/grants.d.ts +8 -5
- package/dist/artifacts/frames/grants.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +1 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +32 -964
- package/dist/artifacts/frames/index.js.map +4 -8
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +129 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +24 -7
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/holders.d.ts +23 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +2 -0
- package/dist/artifacts/ids.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +6 -4
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +134 -13
- package/dist/artifacts/index.js.map +5 -4
- package/dist/artifacts/limits.d.ts +24 -3
- package/dist/artifacts/limits.d.ts.map +1 -1
- package/dist/artifacts/live/board.d.ts +103 -0
- package/dist/artifacts/live/board.d.ts.map +1 -0
- package/dist/artifacts/live/diff.d.ts +43 -0
- package/dist/artifacts/live/diff.d.ts.map +1 -0
- package/dist/artifacts/live/document.d.ts +55 -0
- package/dist/artifacts/live/document.d.ts.map +1 -0
- package/dist/artifacts/live/files.d.ts +16 -0
- package/dist/artifacts/live/files.d.ts.map +1 -0
- package/dist/artifacts/live/index.d.ts +9 -0
- package/dist/artifacts/live/index.d.ts.map +1 -0
- package/dist/artifacts/live/index.js +593 -0
- package/dist/artifacts/live/index.js.map +10 -0
- package/dist/artifacts/live/presence.d.ts +55 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +109 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.js +21 -0
- package/dist/artifacts/live/protocol.js.map +9 -0
- package/dist/artifacts/live/server.d.ts +10 -0
- package/dist/artifacts/live/server.d.ts.map +1 -0
- package/dist/artifacts/live/server.js +86 -0
- package/dist/artifacts/live/server.js.map +9 -0
- package/dist/artifacts/live/state.d.ts +26 -0
- package/dist/artifacts/live/state.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +11 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/publish/index.d.ts +8 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +62 -34
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +75 -0
- package/dist/artifacts/publish/merge.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +153 -0
- package/dist/artifacts/publish/previews.d.ts.map +1 -0
- package/dist/artifacts/publish/publish.d.ts +29 -8
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +20 -0
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +4 -3
- package/dist/artifacts/publish/references.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/canvas.d.ts.map +1 -1
- package/dist/artifacts/theme.d.ts +5 -1
- package/dist/artifacts/theme.d.ts.map +1 -1
- package/dist/auth/directory.d.ts +33 -0
- package/dist/auth/directory.d.ts.map +1 -0
- package/dist/auth/index.js +13 -12
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/member-events.d.ts +5 -1
- package/dist/auth/member-events.d.ts.map +1 -1
- package/dist/auth/runtime.d.ts +22 -1
- package/dist/auth/runtime.d.ts.map +1 -1
- package/dist/auth/strategy.d.ts +2 -2
- package/dist/auth/strategy.d.ts.map +1 -1
- package/dist/auth/types.d.ts +42 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/authorization/decision.d.ts +6 -5
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +7 -6
- package/dist/authorization/index.js.map +1 -1
- package/dist/blob-storage/index.js +4 -4
- package/dist/blob-storage/index.js.map +1 -1
- package/dist/bootstrap/index.js +63 -57
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/broker/in-memory.d.ts.map +1 -1
- package/dist/broker/index.js +1 -1
- package/dist/broker/types.d.ts +4 -0
- package/dist/broker/types.d.ts.map +1 -1
- package/dist/{chunk-s7j8ewqv.js → chunk-0k3r5kb3.js} +257 -43
- package/dist/{chunk-s7j8ewqv.js.map → chunk-0k3r5kb3.js.map} +14 -13
- package/dist/{chunk-e5wf5vz0.js → chunk-0kgrghqx.js} +13 -1
- package/dist/chunk-0kgrghqx.js.map +10 -0
- package/dist/{chunk-80gym75n.js → chunk-186k5yz3.js} +1 -1
- package/dist/chunk-191jz8a6.js +61 -0
- package/dist/chunk-191jz8a6.js.map +10 -0
- package/dist/{chunk-mmagke4x.js → chunk-22d3qg4x.js} +2 -2
- package/dist/{chunk-mmagke4x.js.map → chunk-22d3qg4x.js.map} +3 -3
- package/dist/{chunk-ga63a3dz.js → chunk-2bn6813a.js} +3 -3
- package/dist/chunk-2c4j899j.js.map +2 -2
- package/dist/{chunk-e6xgz4h4.js → chunk-3014rfjz.js} +197 -18
- package/dist/chunk-3014rfjz.js.map +21 -0
- package/dist/{chunk-ytzcxtpt.js → chunk-3ba89vm7.js} +1 -1
- package/dist/chunk-3hzhcfsv.js +139 -0
- package/dist/chunk-3hzhcfsv.js.map +10 -0
- package/dist/chunk-3sgvd10b.js +69 -0
- package/dist/chunk-3sgvd10b.js.map +10 -0
- package/dist/chunk-3z1vxzcm.js +234 -0
- package/dist/chunk-3z1vxzcm.js.map +12 -0
- package/dist/{chunk-djs3hw9p.js → chunk-3zagkr6w.js} +73 -6
- package/dist/chunk-3zagkr6w.js.map +21 -0
- package/dist/{chunk-wkq3kvzd.js → chunk-48c1z8nj.js} +6 -6
- package/dist/chunk-48c1z8nj.js.map +10 -0
- package/dist/{chunk-d04g36fw.js → chunk-5qqmndhm.js} +1 -1
- package/dist/{chunk-scyq22td.js → chunk-5rqqp8cr.js} +19 -4
- package/dist/chunk-5rqqp8cr.js.map +12 -0
- package/dist/chunk-6ef4esq4.js +225 -0
- package/dist/chunk-6ef4esq4.js.map +11 -0
- package/dist/{chunk-jspskey0.js → chunk-7j4yydm2.js} +67 -45
- package/dist/chunk-7j4yydm2.js.map +11 -0
- package/dist/chunk-7kpqntgw.js +70 -0
- package/dist/chunk-7kpqntgw.js.map +10 -0
- package/dist/{chunk-5wtnmpze.js → chunk-7qe46788.js} +1 -1
- package/dist/{chunk-31kcqmhf.js → chunk-855w9nvw.js} +1 -1
- package/dist/{chunk-e7v3trpz.js → chunk-8a8k38tz.js} +4 -3
- package/dist/chunk-8a8k38tz.js.map +10 -0
- package/dist/chunk-8bns0y68.js +1322 -0
- package/dist/chunk-8bns0y68.js.map +25 -0
- package/dist/{chunk-jftd33rc.js → chunk-8t2ynwg0.js} +105 -9
- package/dist/chunk-8t2ynwg0.js.map +11 -0
- package/dist/{chunk-9whfmsfk.js → chunk-8tqnsx3q.js} +1 -1
- package/dist/{chunk-s3we74h8.js → chunk-9nsjjd44.js} +38 -5
- package/dist/chunk-9nsjjd44.js.map +12 -0
- package/dist/{chunk-hz5d43gn.js → chunk-9vsc919v.js} +14 -6
- package/dist/chunk-9vsc919v.js.map +10 -0
- package/dist/{chunk-waqk73p1.js → chunk-a6fjkcne.js} +185 -341
- package/dist/{chunk-waqk73p1.js.map → chunk-a6fjkcne.js.map} +6 -7
- package/dist/chunk-az95tsh3.js.map +2 -2
- package/dist/{chunk-s038wa5v.js → chunk-b9qfh2ya.js} +1 -1
- package/dist/{chunk-5taem5aw.js → chunk-bc3y6gff.js} +13 -4
- package/dist/chunk-bc3y6gff.js.map +10 -0
- package/dist/chunk-bz5bnjjt.js +358 -0
- package/dist/chunk-bz5bnjjt.js.map +12 -0
- package/dist/{chunk-w976a4me.js → chunk-czct88ht.js} +28 -4
- package/dist/chunk-czct88ht.js.map +10 -0
- package/dist/{chunk-5kyvrtjh.js → chunk-d9xbwh3h.js} +131 -32
- package/dist/chunk-d9xbwh3h.js.map +13 -0
- package/dist/{chunk-kfee1h52.js → chunk-dfveegqq.js} +28 -8
- package/dist/chunk-dfveegqq.js.map +13 -0
- package/dist/{chunk-2g0r46hy.js → chunk-dhkc9b23.js} +15 -2
- package/dist/chunk-dhkc9b23.js.map +12 -0
- package/dist/chunk-dmnd9ea6.js +106 -0
- package/dist/chunk-dmnd9ea6.js.map +10 -0
- package/dist/{chunk-nz7815t3.js → chunk-e0hnbb1m.js} +27 -2
- package/dist/chunk-e0hnbb1m.js.map +14 -0
- package/dist/chunk-e91fmg6t.js +288 -0
- package/dist/chunk-e91fmg6t.js.map +11 -0
- package/dist/{chunk-3sqqhpr7.js → chunk-evj5jxz3.js} +134 -19
- package/dist/{chunk-3sqqhpr7.js.map → chunk-evj5jxz3.js.map} +11 -10
- package/dist/{chunk-w122ymx4.js → chunk-f6ahf5gf.js} +15 -4
- package/dist/{chunk-w122ymx4.js.map → chunk-f6ahf5gf.js.map} +3 -3
- package/dist/{chunk-jjmggm9a.js → chunk-fe6r7yhg.js} +1 -1
- package/dist/{chunk-165c9wm6.js → chunk-g2ph4873.js} +1 -1
- package/dist/{chunk-dsv783c3.js → chunk-gxwy4c3s.js} +203 -57
- package/dist/chunk-gxwy4c3s.js.map +47 -0
- package/dist/chunk-hgj98cbb.js +22 -0
- package/dist/chunk-hgj98cbb.js.map +10 -0
- package/dist/chunk-hn2r7z41.js.map +3 -3
- package/dist/chunk-hvbvq7p4.js +1553 -0
- package/dist/chunk-hvbvq7p4.js.map +18 -0
- package/dist/chunk-j0wgh8gv.js +250 -0
- package/dist/chunk-j0wgh8gv.js.map +10 -0
- package/dist/{chunk-z8fx5cgb.js → chunk-j2zm215x.js} +37 -3
- package/dist/chunk-j2zm215x.js.map +12 -0
- package/dist/{chunk-j1ny5fwh.js → chunk-k1g14kk3.js} +11 -83
- package/dist/{chunk-j1ny5fwh.js.map → chunk-k1g14kk3.js.map} +4 -5
- package/dist/chunk-kr6dx38r.js +25 -0
- package/dist/chunk-kr6dx38r.js.map +10 -0
- package/dist/chunk-m2jerfef.js +474 -0
- package/dist/chunk-m2jerfef.js.map +11 -0
- package/dist/{chunk-m2vh8gh0.js → chunk-msyevpp3.js} +62 -15
- package/dist/{chunk-m2vh8gh0.js.map → chunk-msyevpp3.js.map} +5 -5
- package/dist/{chunk-escedwyt.js → chunk-mvz89age.js} +6 -1
- package/dist/{chunk-escedwyt.js.map → chunk-mvz89age.js.map} +3 -3
- package/dist/chunk-mwcqz3e3.js +30 -0
- package/dist/chunk-mwcqz3e3.js.map +10 -0
- package/dist/chunk-n2ay51px.js +21 -0
- package/dist/chunk-n2ay51px.js.map +10 -0
- package/dist/chunk-n4zzaf6q.js.map +1 -1
- package/dist/{chunk-gkv8r794.js → chunk-n68vz95m.js} +5 -5
- package/dist/{chunk-gkv8r794.js.map → chunk-n68vz95m.js.map} +3 -3
- package/dist/{chunk-0j3crh1w.js → chunk-p351afzm.js} +14 -14
- package/dist/{chunk-0j3crh1w.js.map → chunk-p351afzm.js.map} +4 -4
- package/dist/{chunk-c7cfe31p.js → chunk-p8pgnq8d.js} +16 -16
- package/dist/{chunk-c7cfe31p.js.map → chunk-p8pgnq8d.js.map} +1 -1
- package/dist/chunk-pk539cwv.js +370 -0
- package/dist/chunk-pk539cwv.js.map +11 -0
- package/dist/{chunk-jbw70d6t.js → chunk-ppxf7gw2.js} +52 -10
- package/dist/chunk-ppxf7gw2.js.map +11 -0
- package/dist/{chunk-9x8dybsb.js → chunk-pvpq483h.js} +10 -2
- package/dist/chunk-pvpq483h.js.map +10 -0
- package/dist/{chunk-4zm1k3xj.js → chunk-r2psmn42.js} +1 -1
- package/dist/{chunk-a7aa0nzj.js → chunk-r9rtavg9.js} +14 -14
- package/dist/{chunk-a7aa0nzj.js.map → chunk-r9rtavg9.js.map} +1 -1
- package/dist/{chunk-w1btn96n.js → chunk-rsrc7vtw.js} +523 -254
- package/dist/chunk-rsrc7vtw.js.map +49 -0
- package/dist/{chunk-2ajw5rz0.js → chunk-rsxb14an.js} +3 -3
- package/dist/{chunk-kkjfve0t.js → chunk-rt9deb92.js} +4 -3
- package/dist/{chunk-kkjfve0t.js.map → chunk-rt9deb92.js.map} +3 -3
- package/dist/{chunk-r1cxq7vv.js → chunk-rtdrm592.js} +2 -2
- package/dist/{chunk-a5v4gjdx.js → chunk-rtm1jq00.js} +460 -227
- package/dist/{chunk-a5v4gjdx.js.map → chunk-rtm1jq00.js.map} +25 -22
- package/dist/{chunk-4bm0caep.js → chunk-smnt672s.js} +1 -1
- package/dist/{chunk-21q0j5f2.js → chunk-stmxh0hv.js} +2 -2
- package/dist/{chunk-nh26e7c5.js → chunk-sysnvjce.js} +5 -5
- package/dist/{chunk-nh26e7c5.js.map → chunk-sysnvjce.js.map} +3 -3
- package/dist/{chunk-7z5rkf0m.js → chunk-t0s7b3d1.js} +4 -3
- package/dist/{chunk-7z5rkf0m.js.map → chunk-t0s7b3d1.js.map} +3 -3
- package/dist/{chunk-57g0215c.js → chunk-t24yktqr.js} +296 -7
- package/dist/{chunk-57g0215c.js.map → chunk-t24yktqr.js.map} +6 -3
- package/dist/{chunk-mbc5hvnj.js → chunk-td26wjr5.js} +18 -7
- package/dist/{chunk-mbc5hvnj.js.map → chunk-td26wjr5.js.map} +3 -3
- package/dist/{chunk-ff5xkv0p.js → chunk-tfzvjdms.js} +1 -1
- package/dist/{chunk-f1h34y3r.js → chunk-vepea5c3.js} +6 -6
- package/dist/{chunk-f1h34y3r.js.map → chunk-vepea5c3.js.map} +1 -1
- package/dist/chunk-vtjzwymr.js +37 -0
- package/dist/chunk-vtjzwymr.js.map +10 -0
- package/dist/{chunk-twfreyxr.js → chunk-vzkxqf8h.js} +23 -13
- package/dist/{chunk-twfreyxr.js.map → chunk-vzkxqf8h.js.map} +6 -6
- package/dist/{chunk-eqgr6nsa.js → chunk-w1wq7gfr.js} +983 -185
- package/dist/chunk-w1wq7gfr.js.map +75 -0
- package/dist/{chunk-6b61s40c.js → chunk-w3t94hm6.js} +1 -1
- package/dist/{chunk-fwsvshr5.js → chunk-wa05txmk.js} +20 -7
- package/dist/{chunk-fwsvshr5.js.map → chunk-wa05txmk.js.map} +3 -3
- package/dist/chunk-whbwf3np.js +12 -0
- package/dist/chunk-whbwf3np.js.map +10 -0
- package/dist/{chunk-t5608tkq.js → chunk-yv8hv4wq.js} +3 -1
- package/dist/{chunk-t5608tkq.js.map → chunk-yv8hv4wq.js.map} +3 -3
- package/dist/{chunk-j8thxj7w.js → chunk-yy914zfr.js} +1218 -101
- package/dist/chunk-yy914zfr.js.map +30 -0
- package/dist/connectors/builders.d.ts +2 -2
- package/dist/connectors/builders.d.ts.map +1 -1
- package/dist/connectors/connections/access.d.ts +11 -0
- package/dist/connectors/connections/access.d.ts.map +1 -0
- package/dist/connectors/connections/contracts.d.ts +6 -1
- package/dist/connectors/connections/contracts.d.ts.map +1 -1
- package/dist/connectors/connections/internal.js +1 -1
- package/dist/connectors/connections/runs.d.ts +6 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +25 -0
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/connections/views.d.ts +1 -1
- package/dist/connectors/connections/views.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/service.d.ts +3 -0
- package/dist/connectors/service.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +21 -2
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/execution.d.ts +12 -6
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/ingest-flush-batch.d.ts +59 -0
- package/dist/datasets/ingest-flush-batch.d.ts.map +1 -0
- package/dist/datasets/ingest-flush-job.d.ts +33 -0
- package/dist/datasets/ingest-flush-job.d.ts.map +1 -0
- package/dist/datasets/ingest-flush.d.ts +66 -0
- package/dist/datasets/ingest-flush.d.ts.map +1 -0
- package/dist/datasets/produced-version.d.ts +21 -0
- package/dist/datasets/produced-version.d.ts.map +1 -0
- package/dist/datasets/write.d.ts +22 -1
- package/dist/datasets/write.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -4
- package/dist/datasets/write.js.map +1 -1
- package/dist/deploy/internal.js +5 -4
- package/dist/deploy/internal.js.map +4 -4
- package/dist/deploy/types.d.ts +2 -3
- package/dist/deploy/types.d.ts.map +1 -1
- package/dist/error-reporting/capability.d.ts +8 -2
- package/dist/error-reporting/capability.d.ts.map +1 -1
- package/dist/error-reporting/internal.d.ts +1 -1
- package/dist/error-reporting/internal.d.ts.map +1 -1
- package/dist/error-reporting/internal.js +17 -5
- package/dist/error-reporting/internal.js.map +1 -1
- package/dist/error-reporting/reporter.d.ts.map +1 -1
- package/dist/error-reporting/reports.d.ts +55 -0
- package/dist/error-reporting/reports.d.ts.map +1 -1
- package/dist/error-reporting/types.d.ts +82 -1
- package/dist/error-reporting/types.d.ts.map +1 -1
- package/dist/errors/catalog.d.ts +5 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/definitions.d.ts +4 -0
- package/dist/events/definitions.d.ts.map +1 -1
- package/dist/events/execution.d.ts +1 -0
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +5 -5
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/types/artifacts.d.ts +38 -0
- package/dist/events/types/artifacts.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +3 -1
- package/dist/events/types/index.d.ts.map +1 -1
- package/dist/events/types/users.d.ts +5 -2
- package/dist/events/types/users.d.ts.map +1 -1
- package/dist/execution/agent.js +58 -52
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +10 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +6 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -1
- package/dist/execution/object-reader-security.d.ts +9 -2
- package/dist/execution/object-reader-security.d.ts.map +1 -1
- package/dist/execution/primitive.js +56 -50
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +50 -44
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +96 -88
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/errors.d.ts +15 -0
- package/dist/lake-storage/errors.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +3 -2
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +16 -10
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/maintenance.d.ts +88 -0
- package/dist/lake-storage/maintenance.d.ts.map +1 -0
- package/dist/lake-storage/merge.d.ts +3 -1
- package/dist/lake-storage/merge.d.ts.map +1 -1
- package/dist/lake-storage/source-ordering.d.ts +23 -0
- package/dist/lake-storage/source-ordering.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +10 -0
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/maintenance/heartbeat.d.ts +5 -0
- package/dist/maintenance/heartbeat.d.ts.map +1 -0
- package/dist/maintenance/index.d.ts +4 -2
- package/dist/maintenance/index.d.ts.map +1 -1
- package/dist/maintenance/index.js +515 -0
- package/dist/maintenance/index.js.map +16 -0
- package/dist/maintenance/lake-retention-status.d.ts +36 -0
- package/dist/maintenance/lake-retention-status.d.ts.map +1 -0
- package/dist/maintenance/lake-retention.d.ts +84 -0
- package/dist/maintenance/lake-retention.d.ts.map +1 -0
- package/dist/maintenance/loop.d.ts +95 -0
- package/dist/maintenance/loop.d.ts.map +1 -0
- package/dist/maintenance/ontology-maintenance.d.ts +17 -16
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/maintenance/passes/cron-pass.d.ts +21 -0
- package/dist/maintenance/passes/cron-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/directory-pass.d.ts +12 -0
- package/dist/maintenance/passes/directory-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ingest-pass.d.ts +26 -0
- package/dist/maintenance/passes/ingest-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts +38 -0
- package/dist/maintenance/passes/lake-change-feed.d.ts.map +1 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts +20 -0
- package/dist/maintenance/passes/lake-retention-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/ontology-pass.d.ts +8 -0
- package/dist/maintenance/passes/ontology-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/projections-pass.d.ts +26 -0
- package/dist/maintenance/passes/projections-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-pass.d.ts +6 -0
- package/dist/maintenance/passes/recovery-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/recovery-passes.d.ts +24 -0
- package/dist/maintenance/passes/recovery-passes.d.ts.map +1 -0
- package/dist/maintenance/passes/runs-pass.d.ts +6 -0
- package/dist/maintenance/passes/runs-pass.d.ts.map +1 -0
- package/dist/maintenance/passes/triggers-pass.d.ts +41 -0
- package/dist/maintenance/passes/triggers-pass.d.ts.map +1 -0
- package/dist/maintenance/status.d.ts +19 -0
- package/dist/maintenance/status.d.ts.map +1 -0
- package/dist/maintenance/types.d.ts +25 -24
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/materialization/model.d.ts +11 -2
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/edits/artifact-refs.d.ts +33 -0
- package/dist/materializer/edits/artifact-refs.d.ts.map +1 -0
- package/dist/materializer/edits/commit.d.ts.map +1 -1
- package/dist/materializer/edits/operations.d.ts +7 -1
- package/dist/materializer/edits/operations.d.ts.map +1 -1
- package/dist/materializer/edits/plan.d.ts.map +1 -1
- package/dist/materializer/execution/work-records.d.ts +6 -0
- package/dist/materializer/execution/work-records.d.ts.map +1 -1
- package/dist/materializer/index.js +31 -28
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/materializer/telemetry/plan.d.ts.map +1 -1
- package/dist/models/execution/index.js +30 -27
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/language-model.d.ts +6 -0
- package/dist/models/language-model.d.ts.map +1 -1
- package/dist/models/tools.d.ts +2 -0
- package/dist/models/tools.d.ts.map +1 -1
- package/dist/objects/artifact-refs.d.ts +5 -0
- package/dist/objects/artifact-refs.d.ts.map +1 -0
- package/dist/objects/index.js +59 -54
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/materializer-adapter.d.ts +4 -3
- package/dist/objects/materializer-adapter.d.ts.map +1 -1
- package/dist/objects/object/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/upsert.d.ts.map +1 -1
- package/dist/objects/query/index.js +29 -26
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/ir.d.ts +3 -1
- package/dist/objects/query/ir.d.ts.map +1 -1
- package/dist/objects/query/scalar-values.d.ts.map +1 -1
- package/dist/objects/runtime-batch.d.ts +2 -0
- package/dist/objects/runtime-batch.d.ts.map +1 -1
- package/dist/ontology/artifact-ref.d.ts +36 -0
- package/dist/ontology/artifact-ref.d.ts.map +1 -0
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.d.ts +3 -1
- package/dist/ontology/index.d.ts.map +1 -1
- package/dist/ontology/index.js +8 -5
- package/dist/ontology/index.js.map +1 -1
- package/dist/ontology/inference/index.d.ts +2 -0
- package/dist/ontology/inference/index.d.ts.map +1 -1
- package/dist/ontology/internal.js +7 -6
- package/dist/ontology/internal.js.map +1 -1
- package/dist/ontology/json-schema.d.ts.map +1 -1
- package/dist/ontology/primitives.d.ts.map +1 -1
- package/dist/ontology/reference-values.d.ts +10 -0
- package/dist/ontology/reference-values.d.ts.map +1 -0
- package/dist/ontology/refs.d.ts +6 -1
- package/dist/ontology/refs.d.ts.map +1 -1
- package/dist/ontology/registry.d.ts +9 -1
- package/dist/ontology/registry.d.ts.map +1 -1
- package/dist/ontology/types.d.ts +2 -1
- package/dist/ontology/types.d.ts.map +1 -1
- package/dist/ontology/user-ref.d.ts +16 -0
- package/dist/ontology/user-ref.d.ts.map +1 -1
- package/dist/ontology/validation/normalize.d.ts.map +1 -1
- package/dist/ontology/validation/properties.d.ts.map +1 -1
- package/dist/ontology/validation/schema.d.ts.map +1 -1
- package/dist/pending-tasks.d.ts +17 -0
- package/dist/pending-tasks.d.ts.map +1 -0
- package/dist/pipelines/index.js +37 -34
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/run-dispatch.d.ts +6 -0
- package/dist/pipelines/run-dispatch.d.ts.map +1 -1
- package/dist/predicates/types.d.ts +4 -0
- package/dist/predicates/types.d.ts.map +1 -1
- package/dist/projections/builders.d.ts +13 -11
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/internal.js +30 -27
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/types.d.ts +1 -1
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts +2 -2
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +6 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/queues/index.d.ts +1 -1
- package/dist/queues/index.d.ts.map +1 -1
- package/dist/queues/index.js +1 -1
- package/dist/queues/types.d.ts +55 -2
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/create.d.ts +3 -0
- package/dist/runtime/create.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +22 -5
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +6 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +52 -31
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/sixb.d.ts +6 -1
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/index.js +8 -7
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +0 -2
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +3 -6
- package/dist/scheduler/index.js.map +1 -1
- package/dist/schedules/index.js +9 -11
- package/dist/schedules/index.js.map +1 -1
- package/dist/security/internal.js +1 -1
- package/dist/shared/backoff.d.ts +12 -0
- package/dist/shared/backoff.d.ts.map +1 -0
- package/dist/shared/duration.d.ts +3 -0
- package/dist/shared/duration.d.ts.map +1 -0
- package/dist/shared/params/artifact-refs.d.ts +19 -0
- package/dist/shared/params/artifact-refs.d.ts.map +1 -0
- package/dist/shares/guest-name.d.ts +8 -0
- package/dist/shares/guest-name.d.ts.map +1 -0
- package/dist/shares/internal.d.ts +1 -0
- package/dist/shares/internal.d.ts.map +1 -1
- package/dist/shares/internal.js +69 -28
- package/dist/shares/internal.js.map +3 -3
- package/dist/shares/session-protocol.d.ts +13 -0
- package/dist/shares/session-protocol.d.ts.map +1 -1
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/agents/provider.js +1 -1
- package/dist/storage/agents/types.d.ts +1 -1
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +2 -2
- package/dist/storage/artifacts/errors.d.ts +9 -4
- package/dist/storage/artifacts/errors.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +27 -4
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -1
- package/dist/storage/artifacts/index.d.ts +1 -1
- package/dist/storage/artifacts/index.d.ts.map +1 -1
- package/dist/storage/artifacts/record.d.ts +39 -2
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +328 -39
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts +2 -1
- package/dist/storage/auth/in-memory/auth-storage.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/identities.d.ts +4 -0
- package/dist/storage/auth/in-memory/identities.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/shared.d.ts +3 -1
- package/dist/storage/auth/in-memory/shared.d.ts.map +1 -1
- package/dist/storage/auth/in-memory/users.d.ts.map +1 -1
- package/dist/storage/auth/index.d.ts +1 -1
- package/dist/storage/auth/index.d.ts.map +1 -1
- package/dist/storage/auth/types.d.ts +39 -0
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts +1 -1
- package/dist/storage/connector-connections/in-memory.d.ts.map +1 -1
- package/dist/storage/connector-connections/index.d.ts +1 -1
- package/dist/storage/connector-connections/index.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/runs.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider/shared.d.ts +12 -2
- package/dist/storage/connector-connections/provider/shared.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.d.ts +1 -0
- package/dist/storage/connector-connections/provider.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +21 -5
- package/dist/storage/connector-connections/provider.js.map +5 -5
- package/dist/storage/connector-connections/types.d.ts +1 -1
- package/dist/storage/connector-connections/types.d.ts.map +1 -1
- package/dist/storage/dataset-ingest/codec.d.ts +6 -0
- package/dist/storage/dataset-ingest/codec.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts +28 -0
- package/dist/storage/dataset-ingest/in-memory.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/index.d.ts +4 -0
- package/dist/storage/dataset-ingest/index.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.d.ts +157 -0
- package/dist/storage/dataset-ingest/provider.d.ts.map +1 -0
- package/dist/storage/dataset-ingest/provider.js +17 -0
- package/dist/storage/dataset-ingest/provider.js.map +9 -0
- package/dist/storage/dataset-ingest/types.d.ts +188 -0
- package/dist/storage/dataset-ingest/types.d.ts.map +1 -0
- package/dist/storage/file-upload-sessions/provider.js +12 -11
- package/dist/storage/file-upload-sessions/provider.js.map +1 -1
- package/dist/storage/in-memory/index.d.ts +12 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +18 -11
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +56 -46
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +4 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +81 -5
- package/dist/storage/internal.js.map +4 -3
- package/dist/storage/lake-retention-runs/in-memory.d.ts +11 -0
- package/dist/storage/lake-retention-runs/in-memory.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/index.d.ts +3 -0
- package/dist/storage/lake-retention-runs/index.d.ts.map +1 -0
- package/dist/storage/lake-retention-runs/types.d.ts +21 -0
- package/dist/storage/lake-retention-runs/types.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/in-memory.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts +3 -0
- package/dist/storage/maintenance-heartbeats/index.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts +11 -0
- package/dist/storage/maintenance-heartbeats/record.d.ts.map +1 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts +30 -0
- package/dist/storage/maintenance-heartbeats/types.d.ts.map +1 -0
- package/dist/storage/objects/in-memory/query.d.ts.map +1 -1
- package/dist/storage/objects/in-memory/storage.d.ts +15 -1
- package/dist/storage/objects/in-memory/storage.d.ts.map +1 -1
- package/dist/storage/objects/read-scope.d.ts.map +1 -1
- package/dist/storage/objects/types.d.ts +18 -1
- package/dist/storage/objects/types.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/index.d.ts +1 -1
- package/dist/storage/ontology/index.d.ts.map +1 -1
- package/dist/storage/ontology/materializations.d.ts +20 -0
- package/dist/storage/ontology/materializations.d.ts.map +1 -1
- package/dist/storage/ontology/provider-work.d.ts +7 -1
- package/dist/storage/ontology/provider-work.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/pipeline-runs/in-memory.d.ts +8 -2
- package/dist/storage/pipeline-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/index.d.ts +1 -1
- package/dist/storage/pipeline-runs/index.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/provider.js +1 -1
- package/dist/storage/pipeline-runs/transitions.d.ts +2 -2
- package/dist/storage/pipeline-runs/transitions.d.ts.map +1 -1
- package/dist/storage/pipeline-runs/types.d.ts +26 -6
- package/dist/storage/pipeline-runs/types.d.ts.map +1 -1
- package/dist/storage/projection-runs/errors.d.ts +6 -0
- package/dist/storage/projection-runs/errors.d.ts.map +1 -1
- package/dist/storage/projection-runs/in-memory.d.ts +5 -1
- package/dist/storage/projection-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/projection-runs/index.d.ts +2 -2
- package/dist/storage/projection-runs/index.d.ts.map +1 -1
- package/dist/storage/projection-runs/lifecycle.d.ts +1 -0
- package/dist/storage/projection-runs/lifecycle.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +2 -2
- package/dist/storage/projection-runs/types.d.ts +16 -0
- package/dist/storage/projection-runs/types.d.ts.map +1 -1
- package/dist/storage/run-claim.d.ts +132 -0
- package/dist/storage/run-claim.d.ts.map +1 -0
- package/dist/storage/share-grants/provider.js +3 -3
- package/dist/storage/share-sessions/in-memory.d.ts +2 -1
- package/dist/storage/share-sessions/in-memory.d.ts.map +1 -1
- package/dist/storage/share-sessions/index.d.ts +1 -1
- package/dist/storage/share-sessions/index.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.d.ts +1 -1
- package/dist/storage/share-sessions/provider.d.ts.map +1 -1
- package/dist/storage/share-sessions/provider.js +4 -2
- package/dist/storage/share-sessions/provider.js.map +1 -1
- package/dist/storage/share-sessions/record.d.ts +2 -1
- package/dist/storage/share-sessions/record.d.ts.map +1 -1
- package/dist/storage/share-sessions/types.d.ts +17 -1
- package/dist/storage/share-sessions/types.d.ts.map +1 -1
- package/dist/storage/sync-runs/in-memory.d.ts +10 -2
- package/dist/storage/sync-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/sync-runs/index.d.ts +1 -1
- package/dist/storage/sync-runs/index.d.ts.map +1 -1
- package/dist/storage/sync-runs/transitions.d.ts +2 -2
- package/dist/storage/sync-runs/transitions.d.ts.map +1 -1
- package/dist/storage/sync-runs/types.d.ts +29 -3
- package/dist/storage/sync-runs/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +12 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/webhook-runs/in-memory.d.ts +2 -1
- package/dist/storage/webhook-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/webhook-runs/index.d.ts +2 -2
- package/dist/storage/webhook-runs/index.d.ts.map +1 -1
- package/dist/storage/webhook-runs/types.d.ts +33 -2
- package/dist/storage/webhook-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +6 -3
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/index.d.ts +1 -1
- package/dist/storage/workflow-runs/index.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +12 -11
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +11 -28
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +38 -35
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/run-dispatch.d.ts +2 -0
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/ai-model-call-groups-contract.d.ts.map +1 -1
- package/dist/testing/artifact-holders-contract.d.ts +15 -0
- package/dist/testing/artifact-holders-contract.d.ts.map +1 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/broker-contract.d.ts.map +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts +1 -1
- package/dist/testing/connector-connection-storage-contract.d.ts.map +1 -1
- package/dist/testing/dataset-ingest-storage-contract.d.ts +11 -0
- package/dist/testing/dataset-ingest-storage-contract.d.ts.map +1 -0
- package/dist/testing/dataset-sequence-contract.d.ts +1 -1
- package/dist/testing/dataset-sequence-contract.d.ts.map +1 -1
- package/dist/testing/execution.d.ts.map +1 -1
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6245 -3192
- package/dist/testing/index.js.map +28 -19
- package/dist/testing/lake-retention-run-storage-contract.d.ts +9 -0
- package/dist/testing/lake-retention-run-storage-contract.d.ts.map +1 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts +9 -0
- package/dist/testing/maintenance-heartbeat-storage-contract.d.ts.map +1 -0
- package/dist/testing/object-query-contract.d.ts.map +1 -1
- package/dist/testing/pipeline-execution.d.ts.map +1 -1
- package/dist/testing/pipeline-run-read-contract.d.ts +13 -0
- package/dist/testing/pipeline-run-read-contract.d.ts.map +1 -0
- package/dist/testing/projection-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/queues-contract.d.ts.map +1 -1
- package/dist/testing/run-claim-storage-contract.d.ts +12 -0
- package/dist/testing/run-claim-storage-contract.d.ts.map +1 -0
- package/dist/testing/run-claim.d.ts +30 -0
- package/dist/testing/run-claim.d.ts.map +1 -0
- package/dist/testing/run-recovery-contract.d.ts +49 -0
- package/dist/testing/run-recovery-contract.d.ts.map +1 -0
- package/dist/testing/share-session-storage-contract.d.ts.map +1 -1
- package/dist/testing/stored-artifacts.d.ts +10 -0
- package/dist/testing/stored-artifacts.d.ts.map +1 -0
- package/dist/testing/sync-execution.d.ts.map +1 -1
- package/dist/testing/webhook-execution.d.ts +1 -1
- package/dist/testing/webhook-execution.d.ts.map +1 -1
- package/dist/testing/webhook-run-storage-contract.d.ts.map +1 -1
- package/dist/users/execution.d.ts +18 -1
- package/dist/users/execution.d.ts.map +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/users/index.d.ts.map +1 -1
- package/dist/webhooks/delivery-lease.d.ts +13 -0
- package/dist/webhooks/delivery-lease.d.ts.map +1 -0
- package/dist/webhooks/internal.d.ts +2 -0
- package/dist/webhooks/internal.d.ts.map +1 -1
- package/dist/webhooks/internal.js +68 -36
- package/dist/webhooks/internal.js.map +5 -4
- package/dist/webhooks/run-admission.d.ts.map +1 -1
- package/dist/workers/index.d.ts +5 -1
- package/dist/workers/index.d.ts.map +1 -1
- package/dist/workers/index.js +193 -58
- package/dist/workers/index.js.map +8 -7
- package/dist/workers/job-ids.d.ts +17 -0
- package/dist/workers/job-ids.d.ts.map +1 -0
- package/dist/workers/lost-projection-runs.d.ts +26 -0
- package/dist/workers/lost-projection-runs.d.ts.map +1 -0
- package/dist/workers/lost-runs.d.ts +51 -0
- package/dist/workers/lost-runs.d.ts.map +1 -0
- package/dist/workers/queue-delivery.d.ts.map +1 -1
- package/dist/workers/queue-worker.d.ts +1 -2
- package/dist/workers/queue-worker.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts +90 -0
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -0
- package/dist/workers/run-lease.d.ts +25 -0
- package/dist/workers/run-lease.d.ts.map +1 -0
- package/dist/workers/run-worker.d.ts +95 -0
- package/dist/workers/run-worker.d.ts.map +1 -0
- package/dist/workflows/index.js +64 -58
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/request.d.ts.map +1 -1
- package/dist/workflows/run-dispatch.d.ts +6 -1
- package/dist/workflows/run-dispatch.d.ts.map +1 -1
- package/package.json +41 -3
- package/src/actions/request.ts +24 -7
- package/src/actions/run/executor.ts +9 -42
- package/src/actions/types/context.ts +8 -3
- package/src/agents/approval-outcome.ts +2 -2
- package/src/agents/cancel.ts +2 -2
- package/src/agents/child-question.ts +76 -8
- package/src/agents/execution.ts +11 -3
- package/src/agents/fork.ts +12 -4
- package/src/agents/ids.ts +4 -1
- package/src/agents/index.ts +16 -3
- package/src/agents/model-loop.ts +3 -1
- package/src/agents/request.ts +42 -31
- package/src/agents/run-artifacts.ts +290 -46
- package/src/agents/run-session-children.ts +33 -0
- package/src/agents/run-session-http.ts +5 -0
- package/src/agents/run-session-serve.ts +11 -0
- package/src/agents/run-session.ts +8 -1
- package/src/agents/streams/protocol.ts +5 -10
- package/src/agents/tool-files.ts +1 -1
- package/src/agents/tool-input-coercion.ts +140 -0
- package/src/agents/validation.ts +12 -1
- package/src/artifacts/access.ts +71 -28
- package/src/artifacts/canvas-display.ts +160 -0
- package/src/artifacts/canvas.ts +26 -1
- package/src/artifacts/comment-text.ts +32 -0
- package/src/artifacts/comments.ts +275 -0
- package/src/artifacts/errors.ts +6 -1
- package/src/artifacts/events.ts +58 -0
- package/src/artifacts/execution.ts +496 -53
- package/src/artifacts/frames/assets.ts +20 -1
- package/src/artifacts/frames/grants.ts +31 -10
- package/src/artifacts/frames/index.ts +2 -0
- package/src/artifacts/frames/kit.ts +8 -5
- package/src/artifacts/frames/protocol.ts +231 -0
- package/src/artifacts/frames/runtime.ts +600 -29
- package/src/artifacts/holders.ts +120 -0
- package/src/artifacts/ids.ts +8 -0
- package/src/artifacts/index.ts +31 -2
- package/src/artifacts/limits.ts +28 -4
- package/src/artifacts/live/board.ts +759 -0
- package/src/artifacts/live/diff.ts +297 -0
- package/src/artifacts/live/document.ts +354 -0
- package/src/artifacts/live/files.ts +82 -0
- package/src/artifacts/live/index.ts +50 -0
- package/src/artifacts/live/presence.ts +144 -0
- package/src/artifacts/live/protocol.ts +134 -0
- package/src/artifacts/live/server.ts +16 -0
- package/src/artifacts/live/state.ts +115 -0
- package/src/artifacts/outline.ts +12 -0
- package/src/artifacts/publish/index.ts +26 -1
- package/src/artifacts/publish/merge.ts +271 -0
- package/src/artifacts/publish/previews.ts +485 -0
- package/src/artifacts/publish/publish.ts +92 -39
- package/src/artifacts/publish/query-answers.ts +85 -0
- package/src/artifacts/publish/references.ts +10 -4
- package/src/artifacts/publish/validate/canvas.ts +133 -1
- package/src/artifacts/theme.ts +9 -1
- package/src/auth/directory.ts +166 -0
- package/src/auth/member-events.ts +10 -3
- package/src/auth/runtime.ts +108 -8
- package/src/auth/strategy.ts +3 -1
- package/src/auth/types.ts +44 -0
- package/src/authorization/decision.ts +6 -5
- package/src/authorization/event-visibility.ts +4 -0
- package/src/broker/in-memory.ts +33 -6
- package/src/broker/types.ts +4 -0
- package/src/connectors/builders.ts +34 -2
- package/src/connectors/connections/access.ts +83 -0
- package/src/connectors/connections/contracts.ts +6 -1
- package/src/connectors/connections/execution.ts +2 -2
- package/src/connectors/connections/runs.ts +51 -2
- package/src/connectors/connections/service.ts +208 -41
- package/src/connectors/connections/views.ts +11 -4
- package/src/connectors/execution.ts +27 -3
- package/src/connectors/index.ts +2 -0
- package/src/connectors/service.ts +12 -0
- package/src/connectors/types.ts +37 -2
- package/src/datasets/execution.ts +74 -37
- package/src/datasets/ingest-flush-batch.ts +289 -0
- package/src/datasets/ingest-flush-job.ts +112 -0
- package/src/datasets/ingest-flush.ts +377 -0
- package/src/datasets/produced-version.ts +55 -0
- package/src/datasets/write.ts +65 -11
- package/src/deploy/services.ts +1 -1
- package/src/deploy/types.ts +2 -3
- package/src/deploy/validation.ts +1 -0
- package/src/error-reporting/capability.ts +66 -0
- package/src/error-reporting/internal.ts +12 -0
- package/src/error-reporting/reporter.ts +11 -35
- package/src/error-reporting/reports.ts +167 -0
- package/src/error-reporting/types.ts +99 -0
- package/src/errors/catalog.ts +6 -0
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +77 -28
- package/src/events/index.ts +3 -0
- package/src/events/scope.ts +2 -0
- package/src/events/types/artifacts.ts +40 -0
- package/src/events/types/index.ts +3 -0
- package/src/events/types/users.ts +5 -2
- package/src/execution/authorized-object-reader.ts +34 -0
- package/src/execution/object-reader-clearance.ts +31 -0
- package/src/execution/object-reader-security.ts +33 -13
- package/src/http/api-routes.ts +106 -5
- package/src/index.ts +22 -4
- package/src/lake-storage/errors.ts +21 -0
- package/src/lake-storage/index.ts +9 -1
- package/src/lake-storage/maintenance.ts +93 -0
- package/src/lake-storage/merge.ts +3 -1
- package/src/lake-storage/source-ordering.ts +28 -2
- package/src/lake-storage/types.ts +14 -0
- package/src/maintenance/heartbeat.ts +14 -0
- package/src/maintenance/index.ts +5 -3
- package/src/maintenance/lake-retention-status.ts +81 -0
- package/src/maintenance/lake-retention.ts +347 -0
- package/src/maintenance/loop.ts +365 -0
- package/src/maintenance/ontology-maintenance.ts +76 -229
- package/src/maintenance/passes/cron-pass.ts +217 -0
- package/src/maintenance/passes/directory-pass.ts +22 -0
- package/src/maintenance/passes/ingest-pass.ts +94 -0
- package/src/maintenance/passes/lake-change-feed.ts +112 -0
- package/src/maintenance/passes/lake-retention-pass.ts +71 -0
- package/src/maintenance/passes/ontology-pass.ts +19 -0
- package/src/maintenance/passes/projections-pass.ts +238 -0
- package/src/maintenance/passes/recovery-pass.ts +17 -0
- package/src/maintenance/passes/recovery-passes.ts +39 -0
- package/src/maintenance/passes/runs-pass.ts +12 -0
- package/src/maintenance/passes/triggers-pass.ts +332 -0
- package/src/maintenance/status.ts +75 -0
- package/src/maintenance/types.ts +27 -25
- package/src/materialization/model.ts +33 -21
- package/src/materializer/README.md +13 -2
- package/src/materializer/edits/artifact-refs.ts +140 -0
- package/src/materializer/edits/commit.ts +20 -7
- package/src/materializer/edits/operations.ts +23 -7
- package/src/materializer/edits/plan.ts +2 -0
- package/src/materializer/execution/work-records.ts +61 -0
- package/src/materializer/projections/replacement-plan.ts +2 -0
- package/src/materializer/shared/normalize.ts +14 -0
- package/src/materializer/telemetry/plan.ts +2 -0
- package/src/models/language-model.ts +6 -0
- package/src/models/tools.ts +2 -0
- package/src/objects/artifact-refs.ts +34 -0
- package/src/objects/materializer-adapter.ts +8 -3
- package/src/objects/object/upsert-batch.ts +7 -0
- package/src/objects/object/upsert.ts +11 -2
- package/src/objects/query/ir.ts +2 -0
- package/src/objects/query/scalar-values.ts +5 -3
- package/src/objects/runtime-batch.ts +8 -1
- package/src/objects/vectors/README.md +4 -4
- package/src/ontology/artifact-ref.ts +83 -0
- package/src/ontology/docs-markdown.ts +17 -0
- package/src/ontology/index.ts +3 -1
- package/src/ontology/inference/index.ts +2 -0
- package/src/ontology/json-schema.ts +13 -0
- package/src/ontology/primitives.ts +14 -0
- package/src/ontology/reference-values.ts +62 -0
- package/src/ontology/refs.ts +7 -1
- package/src/ontology/registry.ts +26 -1
- package/src/ontology/types.ts +2 -0
- package/src/ontology/user-ref.ts +35 -45
- package/src/ontology/validation/normalize.ts +13 -0
- package/src/ontology/validation/properties.ts +9 -0
- package/src/ontology/validation/schema.ts +12 -0
- package/src/pending-tasks.ts +51 -0
- package/src/pipelines/run-dispatch.ts +120 -238
- package/src/predicates/types.ts +2 -1
- package/src/projections/builders.ts +28 -13
- package/src/projections/run-dispatch.ts +1 -1
- package/src/projections/types.ts +1 -1
- package/src/projections/validation.ts +22 -8
- package/src/queues/in-memory.ts +50 -3
- package/src/queues/index.ts +4 -0
- package/src/queues/types.ts +68 -1
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +118 -13
- package/src/runtime/index.ts +0 -1
- package/src/runtime/internal.ts +13 -0
- package/src/runtime/ontology-mutations.ts +1 -1
- package/src/runtime/sixb.ts +14 -5
- package/src/scheduler/index.ts +0 -2
- package/src/shared/backoff.ts +34 -0
- package/src/shared/duration.ts +15 -0
- package/src/shared/params/artifact-refs.ts +42 -0
- package/src/shares/compiler.ts +1 -1
- package/src/shares/guest-name.ts +20 -0
- package/src/shares/internal.ts +1 -0
- package/src/shares/session-protocol.ts +63 -0
- package/src/storage/agents/types.ts +1 -1
- package/src/storage/artifacts/errors.ts +10 -2
- package/src/storage/artifacts/in-memory.ts +579 -96
- package/src/storage/artifacts/index.ts +22 -1
- package/src/storage/artifacts/record.ts +255 -11
- package/src/storage/artifacts/types.ts +343 -40
- package/src/storage/auth/in-memory/auth-storage.ts +42 -5
- package/src/storage/auth/in-memory/identities.ts +16 -0
- package/src/storage/auth/in-memory/shared.ts +15 -0
- package/src/storage/auth/in-memory/users.ts +17 -16
- package/src/storage/auth/index.ts +3 -0
- package/src/storage/auth/types.ts +38 -0
- package/src/storage/connector-connections/in-memory.ts +4 -1
- package/src/storage/connector-connections/index.ts +1 -0
- package/src/storage/connector-connections/provider/runs.ts +3 -0
- package/src/storage/connector-connections/provider/shared.ts +30 -0
- package/src/storage/connector-connections/provider.ts +4 -0
- package/src/storage/connector-connections/types.ts +1 -0
- package/src/storage/dataset-ingest/codec.ts +90 -0
- package/src/storage/dataset-ingest/in-memory.ts +277 -0
- package/src/storage/dataset-ingest/index.ts +16 -0
- package/src/storage/dataset-ingest/provider.ts +592 -0
- package/src/storage/dataset-ingest/types.ts +191 -0
- package/src/storage/in-memory/index.ts +33 -0
- package/src/storage/index.ts +65 -5
- package/src/storage/internal.ts +20 -0
- package/src/storage/lake-retention-runs/in-memory.ts +22 -0
- package/src/storage/lake-retention-runs/index.ts +2 -0
- package/src/storage/lake-retention-runs/types.ts +19 -0
- package/src/storage/maintenance-heartbeats/in-memory.ts +24 -0
- package/src/storage/maintenance-heartbeats/index.ts +7 -0
- package/src/storage/maintenance-heartbeats/record.ts +50 -0
- package/src/storage/maintenance-heartbeats/types.ts +30 -0
- package/src/storage/objects/in-memory/query.ts +1 -0
- package/src/storage/objects/in-memory/storage.ts +81 -0
- package/src/storage/objects/read-scope.ts +1 -0
- package/src/storage/objects/types.ts +16 -1
- package/src/storage/ontology/in-memory/materializations.ts +8 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +4 -1
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/materializations.ts +18 -0
- package/src/storage/ontology/provider-work.ts +39 -0
- package/src/storage/pipeline-runs/in-memory.ts +97 -24
- package/src/storage/pipeline-runs/index.ts +0 -1
- package/src/storage/pipeline-runs/provider.ts +1 -1
- package/src/storage/pipeline-runs/transitions.ts +7 -4
- package/src/storage/pipeline-runs/types.ts +33 -7
- package/src/storage/projection-runs/errors.ts +10 -0
- package/src/storage/projection-runs/in-memory.ts +56 -1
- package/src/storage/projection-runs/index.ts +2 -1
- package/src/storage/projection-runs/lifecycle.ts +9 -1
- package/src/storage/projection-runs/types.ts +20 -1
- package/src/storage/run-claim.ts +224 -0
- package/src/storage/share-sessions/in-memory.ts +21 -0
- package/src/storage/share-sessions/index.ts +1 -0
- package/src/storage/share-sessions/provider.ts +1 -0
- package/src/storage/share-sessions/record.ts +28 -0
- package/src/storage/share-sessions/types.ts +19 -1
- package/src/storage/sync-runs/in-memory.ts +109 -29
- package/src/storage/sync-runs/index.ts +1 -1
- package/src/storage/sync-runs/transitions.ts +7 -4
- package/src/storage/sync-runs/types.ts +36 -3
- package/src/storage/types.ts +15 -5
- package/src/storage/webhook-runs/in-memory.ts +26 -2
- package/src/storage/webhook-runs/index.ts +3 -1
- package/src/storage/webhook-runs/types.ts +44 -3
- package/src/storage/workflow-runs/in-memory.ts +50 -36
- package/src/storage/workflow-runs/index.ts +0 -2
- package/src/storage/workflow-runs/types.ts +18 -30
- package/src/syncs/run-dispatch.ts +118 -239
- package/src/testing/ai-model-call-groups-contract.ts +2 -1
- package/src/testing/artifact-holders-contract.ts +392 -0
- package/src/testing/artifact-storage-contract.ts +1205 -151
- package/src/testing/auth-storage-contract.ts +228 -1
- package/src/testing/broker-contract.ts +56 -0
- package/src/testing/connector-connection-storage-contract.ts +94 -5
- package/src/testing/dataset-ingest-storage-contract.ts +480 -0
- package/src/testing/dataset-sequence-contract.ts +97 -12
- package/src/testing/execution.ts +23 -0
- package/src/testing/index.ts +31 -0
- package/src/testing/lake-retention-run-storage-contract.ts +75 -0
- package/src/testing/maintenance-heartbeat-storage-contract.ts +99 -0
- package/src/testing/object-query-contract.ts +93 -0
- package/src/testing/pipeline-execution.ts +3 -1
- package/src/testing/pipeline-run-read-contract.ts +123 -0
- package/src/testing/projection-run-storage-contract.ts +113 -0
- package/src/testing/queues-contract.ts +112 -0
- package/src/testing/run-claim-storage-contract.ts +736 -0
- package/src/testing/run-claim.ts +69 -0
- package/src/testing/run-recovery-contract.ts +176 -0
- package/src/testing/share-session-storage-contract.ts +43 -0
- package/src/testing/stored-artifacts.ts +43 -0
- package/src/testing/sync-execution.ts +3 -1
- package/src/testing/webhook-execution.ts +7 -2
- package/src/testing/webhook-run-storage-contract.ts +102 -5
- package/src/users/execution.ts +50 -2
- package/src/users/index.ts +1 -0
- package/src/webhooks/delivery-lease.ts +40 -0
- package/src/webhooks/internal.ts +2 -0
- package/src/webhooks/run-admission.ts +22 -9
- package/src/workers/README.md +169 -0
- package/src/workers/index.ts +9 -1
- package/src/workers/job-ids.ts +31 -0
- package/src/workers/lost-projection-runs.ts +114 -0
- package/src/workers/lost-runs.ts +397 -0
- package/src/workers/queue-delivery.ts +2 -14
- package/src/workers/queue-worker.ts +9 -17
- package/src/workers/queued-run-dispatch.ts +308 -0
- package/src/workers/run-lease.ts +46 -0
- package/src/workers/run-worker.ts +312 -0
- package/src/workers/worker.ts +4 -17
- package/src/workflows/request.ts +2 -0
- package/src/workflows/run-dispatch.ts +22 -4
- package/src/workflows/snapshot.ts +1 -0
- package/dist/chunk-2g0r46hy.js.map +0 -12
- package/dist/chunk-3fqxbn31.js +0 -107
- package/dist/chunk-3fqxbn31.js.map +0 -11
- package/dist/chunk-4s753g3k.js +0 -314
- package/dist/chunk-4s753g3k.js.map +0 -12
- package/dist/chunk-5kyvrtjh.js.map +0 -12
- package/dist/chunk-5taem5aw.js.map +0 -10
- package/dist/chunk-65abf64x.js +0 -13
- package/dist/chunk-65abf64x.js.map +0 -10
- package/dist/chunk-9x8dybsb.js.map +0 -10
- package/dist/chunk-az47zep4.js +0 -41
- package/dist/chunk-az47zep4.js.map +0 -10
- package/dist/chunk-c706qvyc.js +0 -299
- package/dist/chunk-c706qvyc.js.map +0 -11
- package/dist/chunk-djs3hw9p.js.map +0 -20
- package/dist/chunk-dsv783c3.js.map +0 -47
- package/dist/chunk-e5wf5vz0.js.map +0 -10
- package/dist/chunk-e6xgz4h4.js.map +0 -21
- package/dist/chunk-e7v3trpz.js.map +0 -10
- package/dist/chunk-eqgr6nsa.js.map +0 -72
- package/dist/chunk-fb3feg1e.js +0 -298
- package/dist/chunk-fb3feg1e.js.map +0 -12
- package/dist/chunk-hz5d43gn.js.map +0 -10
- package/dist/chunk-j8thxj7w.js.map +0 -22
- package/dist/chunk-jbw70d6t.js.map +0 -10
- package/dist/chunk-jftd33rc.js.map +0 -11
- package/dist/chunk-jspskey0.js.map +0 -10
- package/dist/chunk-kfee1h52.js.map +0 -13
- package/dist/chunk-kwfhd1g0.js +0 -144
- package/dist/chunk-kwfhd1g0.js.map +0 -13
- package/dist/chunk-nz7815t3.js.map +0 -14
- package/dist/chunk-s3we74h8.js.map +0 -12
- package/dist/chunk-scyq22td.js.map +0 -12
- package/dist/chunk-w1btn96n.js.map +0 -44
- package/dist/chunk-w976a4me.js.map +0 -10
- package/dist/chunk-wkq3kvzd.js.map +0 -10
- package/dist/chunk-wrjx1fqz.js +0 -587
- package/dist/chunk-wrjx1fqz.js.map +0 -18
- package/dist/chunk-yw9pyg66.js +0 -143
- package/dist/chunk-yw9pyg66.js.map +0 -11
- package/dist/chunk-z8fx5cgb.js.map +0 -11
- package/dist/scheduler/runtime.d.ts +0 -40
- package/dist/scheduler/runtime.d.ts.map +0 -1
- package/dist/workers/unstarted-run.d.ts +0 -10
- package/dist/workers/unstarted-run.d.ts.map +0 -1
- package/src/scheduler/runtime.ts +0 -214
- package/src/workers/unstarted-run.ts +0 -18
- /package/dist/{chunk-80gym75n.js.map → chunk-186k5yz3.js.map} +0 -0
- /package/dist/{chunk-ga63a3dz.js.map → chunk-2bn6813a.js.map} +0 -0
- /package/dist/{chunk-ytzcxtpt.js.map → chunk-3ba89vm7.js.map} +0 -0
- /package/dist/{chunk-d04g36fw.js.map → chunk-5qqmndhm.js.map} +0 -0
- /package/dist/{chunk-5wtnmpze.js.map → chunk-7qe46788.js.map} +0 -0
- /package/dist/{chunk-31kcqmhf.js.map → chunk-855w9nvw.js.map} +0 -0
- /package/dist/{chunk-9whfmsfk.js.map → chunk-8tqnsx3q.js.map} +0 -0
- /package/dist/{chunk-s038wa5v.js.map → chunk-b9qfh2ya.js.map} +0 -0
- /package/dist/{chunk-jjmggm9a.js.map → chunk-fe6r7yhg.js.map} +0 -0
- /package/dist/{chunk-165c9wm6.js.map → chunk-g2ph4873.js.map} +0 -0
- /package/dist/{chunk-4zm1k3xj.js.map → chunk-r2psmn42.js.map} +0 -0
- /package/dist/{chunk-2ajw5rz0.js.map → chunk-rsxb14an.js.map} +0 -0
- /package/dist/{chunk-r1cxq7vv.js.map → chunk-rtdrm592.js.map} +0 -0
- /package/dist/{chunk-4bm0caep.js.map → chunk-smnt672s.js.map} +0 -0
- /package/dist/{chunk-21q0j5f2.js.map → chunk-stmxh0hv.js.map} +0 -0
- /package/dist/{chunk-ff5xkv0p.js.map → chunk-tfzvjdms.js.map} +0 -0
- /package/dist/{chunk-6b61s40c.js.map → chunk-w3t94hm6.js.map} +0 -0
|
@@ -16,7 +16,7 @@ eligible set after link and property authorization; it never filters a global to
|
|
|
16
16
|
|
|
17
17
|
```text
|
|
18
18
|
Effective object change → invalidate stale vector + persist latest intent (one transaction)
|
|
19
|
-
Commit wake-up (or
|
|
19
|
+
Commit wake-up (or orchestrator maintenance pass) → durable queue
|
|
20
20
|
ProjectionWorker → project AI admission → provider → save result → fenced commit
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -28,9 +28,9 @@ There is no historical scan or configuration-only backfill.
|
|
|
28
28
|
The queue owns delivery leases. Ontology storage owns intent keyed by project/object/profile, plus
|
|
29
29
|
its generation id and `pending → running → ready` state. Dispatch has a separate due time so long
|
|
30
30
|
queues cannot starve later entries. `indexing-dispatch.ts` enqueues due intent after every commit
|
|
31
|
-
in the committing process and pushes its due time 30 seconds out; the
|
|
32
|
-
drains the same path, so intent a crash left undispatched waits at most one pass. Enqueueing
|
|
33
|
-
same generation twice is safe.
|
|
31
|
+
in the committing process and pushes its due time 30 seconds out; the orchestrator's maintenance
|
|
32
|
+
pass drains the same path, so intent a crash left undispatched waits at most one pass. Enqueueing
|
|
33
|
+
the same generation twice is safe.
|
|
34
34
|
|
|
35
35
|
`indexing.ts` exposes only a core-owned processing capability. Kernel authority cannot bind the
|
|
36
36
|
public domain SDK. `ontology.indexVectors` authorizes only the persisted results of its work item or durable group.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { isArtifactId } from "../artifacts/ids"
|
|
2
|
+
import { OntologyValidationError } from "./errors"
|
|
3
|
+
import { visitPrimitiveValues } from "./reference-values"
|
|
4
|
+
import type { Schema, ValueType } from "./types"
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Value of a `ref.artifact()` (`"artifactRef"`) schema: one artifact, followed at its latest
|
|
8
|
+
* version.
|
|
9
|
+
*
|
|
10
|
+
* Like a user reference, it carries no title or kind: a writer could make them up, and the
|
|
11
|
+
* artifact keeps its own.
|
|
12
|
+
*/
|
|
13
|
+
export interface ArtifactRef {
|
|
14
|
+
readonly type: "artifact"
|
|
15
|
+
readonly id: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Build a reference to one artifact, for writes and query predicates:
|
|
20
|
+
* `where(({ p }) => p.kickoffDoc.eq(artifactRef("art_k3m9q2x7tp")))`.
|
|
21
|
+
*/
|
|
22
|
+
export function artifactRef(id: string): ArtifactRef {
|
|
23
|
+
if (typeof id !== "string" || !isArtifactId(id)) {
|
|
24
|
+
throw new OntologyValidationError(
|
|
25
|
+
`[Sixb] Artifact reference id must be an artifact id such as 'art_k3m9q2x7tp', got ${JSON.stringify(id)}.`
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return Object.freeze({ type: "artifact" as const, id })
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** Exactly `{ type: "artifact", id }` with an artifact id and no other field. */
|
|
33
|
+
export function isArtifactRef(value: unknown): value is ArtifactRef {
|
|
34
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return false
|
|
35
|
+
|
|
36
|
+
const record = value as Record<string, unknown>
|
|
37
|
+
return (
|
|
38
|
+
Object.keys(record).every((key) => key === "type" || key === "id") &&
|
|
39
|
+
record.type === "artifact" &&
|
|
40
|
+
typeof record.id === "string" &&
|
|
41
|
+
isArtifactId(record.id)
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** A `ref.artifact()` schema, or an array of them. */
|
|
46
|
+
export function isArtifactRefPropertySchema(schema: Schema): boolean {
|
|
47
|
+
if (schema === "artifactRef") return true
|
|
48
|
+
return typeof schema === "object" && schema.type === "array" && schema.items === "artifactRef"
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Collect the artifact ids a value holds at `artifactRef` positions of its schema, however deeply
|
|
53
|
+
* nested.
|
|
54
|
+
*
|
|
55
|
+
* Positions whose value does not match the schema are skipped: shape validation reports them.
|
|
56
|
+
*/
|
|
57
|
+
export function collectArtifactRefIds(
|
|
58
|
+
schema: Schema,
|
|
59
|
+
value: unknown,
|
|
60
|
+
valueTypesById: ReadonlyMap<string, ValueType>,
|
|
61
|
+
into: Set<string>,
|
|
62
|
+
seenValueTypeIds: ReadonlySet<string> = new Set()
|
|
63
|
+
): Set<string> {
|
|
64
|
+
const collect = (held: unknown) => {
|
|
65
|
+
if (isArtifactRef(held)) into.add(held.id)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
visitPrimitiveValues(schema, "artifactRef", value, valueTypesById, collect, seenValueTypeIds)
|
|
69
|
+
return into
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Why `path` cannot newly reference artifact `id`. A missing artifact and one the writer may not
|
|
74
|
+
* change get this same message, so a write never tells them apart.
|
|
75
|
+
*/
|
|
76
|
+
export function artifactReferenceProblem(path: string, id: string): string {
|
|
77
|
+
return `[Sixb] ${path} references artifact '${id}', which does not exist.`
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Why `path` cannot reference artifacts at all: this runtime has nowhere to look them up. */
|
|
81
|
+
export function artifactsUnverifiableProblem(path: string, id: string): string {
|
|
82
|
+
return `[Sixb] ${path} references artifact '${id}', but this runtime has no artifact storage to verify it. Configure storage with artifacts to write artifact references.`
|
|
83
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type { ActionDescriptor, ActionParamDescriptor } from "../actions/descriptor"
|
|
7
7
|
import type { AgentProjectFile } from "../agents/skills"
|
|
8
|
+
import { isArtifactRefPropertySchema } from "./artifact-ref"
|
|
8
9
|
import type { OntologyDoc, OntologyDocsCatalog } from "./docs"
|
|
9
10
|
import {
|
|
10
11
|
type PropertyQueryOperator,
|
|
@@ -127,6 +128,11 @@ function renderProperties(
|
|
|
127
128
|
const userPropertyIds = objectType.properties
|
|
128
129
|
.filter((property) => !restricted.has(property.id) && isUserRefPropertySchema(property.schema))
|
|
129
130
|
.map((property) => code(property.id))
|
|
131
|
+
const artifactPropertyIds = objectType.properties
|
|
132
|
+
.filter(
|
|
133
|
+
(property) => !restricted.has(property.id) && isArtifactRefPropertySchema(property.schema)
|
|
134
|
+
)
|
|
135
|
+
.map((property) => code(property.id))
|
|
130
136
|
return [
|
|
131
137
|
"## Properties",
|
|
132
138
|
"",
|
|
@@ -150,6 +156,9 @@ function renderProperties(
|
|
|
150
156
|
])
|
|
151
157
|
),
|
|
152
158
|
...(userPropertyIds.length === 0 ? [] : ["", renderUserProperties(userPropertyIds)]),
|
|
159
|
+
...(artifactPropertyIds.length === 0
|
|
160
|
+
? []
|
|
161
|
+
: ["", renderArtifactProperties(artifactPropertyIds)]),
|
|
153
162
|
].join("\n")
|
|
154
163
|
}
|
|
155
164
|
|
|
@@ -162,6 +171,14 @@ function renderUserProperties(propertyIds: readonly string[]): string {
|
|
|
162
171
|
].join(" ")
|
|
163
172
|
}
|
|
164
173
|
|
|
174
|
+
/** How to fill the properties that hold artifacts: with an artifact the writer may change. */
|
|
175
|
+
function renderArtifactProperties(propertyIds: readonly string[]): string {
|
|
176
|
+
return [
|
|
177
|
+
`Artifact properties (${propertyIds.join(", ")}) hold \`{"type":"artifact","id":"<artifact-id>"}\`.`,
|
|
178
|
+
"Write the id of an artifact you can change, such as one you published (`art_k3m9q2x7tp`).",
|
|
179
|
+
].join(" ")
|
|
180
|
+
}
|
|
181
|
+
|
|
165
182
|
function queryLabel(property: Property, valueTypesById: ReadonlyMap<string, ValueType>): string {
|
|
166
183
|
const capabilities = resolvePropertyQueryCapabilities(property, valueTypesById)
|
|
167
184
|
const schema = resolveQuerySchema(property.schema, valueTypesById)
|
package/src/ontology/index.ts
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
// ── Types ───────────────────────────────────────────────────
|
|
12
12
|
|
|
13
13
|
export type { EmbeddingModelDefinition, EmbeddingModelRef } from "../models/embedding-model"
|
|
14
|
+
export type { ArtifactRef } from "./artifact-ref"
|
|
15
|
+
export { artifactRef } from "./artifact-ref"
|
|
14
16
|
export type { DecimalValue } from "./decimal"
|
|
15
17
|
export {
|
|
16
18
|
compareDecimalValues,
|
|
@@ -64,7 +66,7 @@ export type {
|
|
|
64
66
|
ValueType,
|
|
65
67
|
ValueTypeRefSchema,
|
|
66
68
|
} from "./types"
|
|
67
|
-
export type { CurrentUserRef, UserEmailColumn, UserRef } from "./user-ref"
|
|
69
|
+
export type { CurrentUserRef, UserEmailColumn, UserIdColumn, UserRef } from "./user-ref"
|
|
68
70
|
export { currentUser, userRef } from "./user-ref"
|
|
69
71
|
|
|
70
72
|
// ── Registry ──────────────────────────────────────────────
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
ValueType,
|
|
13
13
|
ValueTypeRefSchema,
|
|
14
14
|
} from ".."
|
|
15
|
+
import type { ArtifactRef } from "../artifact-ref"
|
|
15
16
|
import type { DecimalValue } from "../decimal"
|
|
16
17
|
import type { RegisteredValueTypes } from "../registered"
|
|
17
18
|
import type { QuantitativeTypeId, UnitsOf } from "../units"
|
|
@@ -76,6 +77,7 @@ type InferObjectFields<
|
|
|
76
77
|
interface PrimitiveSchemaValueMap {
|
|
77
78
|
fileRef: FileRef
|
|
78
79
|
userRef: UserRef
|
|
80
|
+
artifactRef: ArtifactRef
|
|
79
81
|
string: string
|
|
80
82
|
uuid: string
|
|
81
83
|
boolean: boolean
|
|
@@ -5,6 +5,8 @@ import type { Schema, ValueType } from "./types"
|
|
|
5
5
|
|
|
6
6
|
// A user reference carries no name, so whoever reads the schema is told how one is written.
|
|
7
7
|
const USER_REF_DESCRIPTION = 'A Sixb user, written {"type":"user","id":"<user-id>"}.'
|
|
8
|
+
const ARTIFACT_REF_DESCRIPTION =
|
|
9
|
+
'A Sixb artifact, written {"type":"artifact","id":"<artifact-id>"}, such as "art_k3m9q2x7tp".'
|
|
8
10
|
|
|
9
11
|
type DeepReadonly<T> = T extends object ? { readonly [K in keyof T]: DeepReadonly<T[K]> } : T
|
|
10
12
|
|
|
@@ -115,6 +117,17 @@ function schemaJsonSchema(
|
|
|
115
117
|
required: ["type", "id"],
|
|
116
118
|
additionalProperties: false,
|
|
117
119
|
}
|
|
120
|
+
case "artifactRef":
|
|
121
|
+
return {
|
|
122
|
+
type: "object",
|
|
123
|
+
description: ARTIFACT_REF_DESCRIPTION,
|
|
124
|
+
properties: {
|
|
125
|
+
type: { type: "string", enum: ["artifact"] },
|
|
126
|
+
id: { type: "string", pattern: "^art_[0-9a-z]{10}$" },
|
|
127
|
+
},
|
|
128
|
+
required: ["type", "id"],
|
|
129
|
+
additionalProperties: false,
|
|
130
|
+
}
|
|
118
131
|
default:
|
|
119
132
|
schema satisfies never
|
|
120
133
|
}
|
|
@@ -88,6 +88,20 @@ const PRIMITIVE_TRAITS = {
|
|
|
88
88
|
shareableParam: false,
|
|
89
89
|
unique: "userRef",
|
|
90
90
|
},
|
|
91
|
+
// Artifact references match by identity alone. An artifact is reached through the object that
|
|
92
|
+
// holds it, so a reference stays out of telemetry, shared sessions, facets and unique values.
|
|
93
|
+
artifactRef: {
|
|
94
|
+
queryScalarKind: "artifactRef",
|
|
95
|
+
exact: true,
|
|
96
|
+
exactSearch: false,
|
|
97
|
+
sortable: false,
|
|
98
|
+
text: false,
|
|
99
|
+
contains: false,
|
|
100
|
+
facet: false,
|
|
101
|
+
telemetry: false,
|
|
102
|
+
shareableParam: false,
|
|
103
|
+
unique: undefined,
|
|
104
|
+
},
|
|
91
105
|
} as const satisfies Record<PrimitiveSchema, PrimitiveTraits>
|
|
92
106
|
|
|
93
107
|
export function isPrimitiveSchema(schema: unknown): schema is PrimitiveSchema {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PrimitiveSchema, Schema, ValueType } from "./types"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Visit each value a schema holds at positions of one primitive, however deeply nested: array
|
|
5
|
+
* items, map values, object fields, and through value types.
|
|
6
|
+
*
|
|
7
|
+
* Positions whose value does not match the schema are skipped: shape validation reports them. A
|
|
8
|
+
* value type that refers to itself is followed once.
|
|
9
|
+
*/
|
|
10
|
+
export function visitPrimitiveValues(
|
|
11
|
+
schema: Schema,
|
|
12
|
+
primitive: PrimitiveSchema,
|
|
13
|
+
value: unknown,
|
|
14
|
+
valueTypesById: ReadonlyMap<string, ValueType>,
|
|
15
|
+
visit: (value: unknown) => void,
|
|
16
|
+
seenValueTypeIds: ReadonlySet<string> = new Set()
|
|
17
|
+
): void {
|
|
18
|
+
if (value === null || value === undefined) return
|
|
19
|
+
|
|
20
|
+
if (typeof schema === "string") {
|
|
21
|
+
if (schema === primitive) visit(value)
|
|
22
|
+
return
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const visitBelow = (below: Schema, belowValue: unknown, seen = seenValueTypeIds) =>
|
|
26
|
+
visitPrimitiveValues(below, primitive, belowValue, valueTypesById, visit, seen)
|
|
27
|
+
|
|
28
|
+
switch (schema.type) {
|
|
29
|
+
case "array":
|
|
30
|
+
if (Array.isArray(value)) {
|
|
31
|
+
for (const item of value) visitBelow(schema.items, item)
|
|
32
|
+
}
|
|
33
|
+
return
|
|
34
|
+
case "map":
|
|
35
|
+
if (isRecord(value)) {
|
|
36
|
+
for (const item of Object.values(value)) visitBelow(schema.valueSchema, item)
|
|
37
|
+
}
|
|
38
|
+
return
|
|
39
|
+
case "object":
|
|
40
|
+
if (isRecord(value)) {
|
|
41
|
+
for (const [fieldId, field] of Object.entries(schema.properties)) {
|
|
42
|
+
visitBelow(field.schema, value[fieldId])
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return
|
|
46
|
+
case "valueTypeRef": {
|
|
47
|
+
if (seenValueTypeIds.has(schema.valueTypeId)) return
|
|
48
|
+
|
|
49
|
+
const resolved = schema._resolved ?? valueTypesById.get(schema.valueTypeId)?.schema
|
|
50
|
+
if (!resolved) return
|
|
51
|
+
|
|
52
|
+
visitBelow(resolved, value, new Set([...seenValueTypeIds, schema.valueTypeId]))
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
case "enum":
|
|
56
|
+
return
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
61
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
62
|
+
}
|
package/src/ontology/refs.ts
CHANGED
|
@@ -40,13 +40,18 @@ interface RefBuilder {
|
|
|
40
40
|
user(): "userRef"
|
|
41
41
|
/** Reference to a stored file, valued as a `FileRef`. Serialized as `"fileRef"`. */
|
|
42
42
|
file(): "fileRef"
|
|
43
|
+
/**
|
|
44
|
+
* Reference to an artifact, valued `{ type: "artifact", id }` and followed at its latest
|
|
45
|
+
* version. Serialized as `"artifactRef"`.
|
|
46
|
+
*/
|
|
47
|
+
artifact(): "artifactRef"
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
/**
|
|
46
51
|
* Schemas that point outside the value itself.
|
|
47
52
|
*
|
|
48
53
|
* Scalars are plain strings (`"string"`, `"timestamp"`); anything that points elsewhere or takes
|
|
49
|
-
* parameters is a builder: `ref(Customer)`, `ref.user()`, `ref.file()`.
|
|
54
|
+
* parameters is a builder: `ref(Customer)`, `ref.user()`, `ref.file()`, `ref.artifact()`.
|
|
50
55
|
*/
|
|
51
56
|
export const ref: RefBuilder = Object.assign(
|
|
52
57
|
<const TObjectType extends ObjectType>(
|
|
@@ -58,6 +63,7 @@ export const ref: RefBuilder = Object.assign(
|
|
|
58
63
|
{
|
|
59
64
|
user: (): "userRef" => "userRef",
|
|
60
65
|
file: (): "fileRef" => "fileRef",
|
|
66
|
+
artifact: (): "artifactRef" => "artifactRef",
|
|
61
67
|
}
|
|
62
68
|
)
|
|
63
69
|
|
package/src/ontology/registry.ts
CHANGED
|
@@ -13,9 +13,10 @@ import {
|
|
|
13
13
|
} from "./errors"
|
|
14
14
|
import type { ObjectTypeWithPropertyTokens } from "./tokens"
|
|
15
15
|
import { createLinkTokenMap, createPropertyTokenMap } from "./tokens"
|
|
16
|
-
import type { ObjectType, Schema, ValueType } from "./types"
|
|
16
|
+
import type { ObjectType, Property, Schema, ValueType } from "./types"
|
|
17
17
|
import { type UniquePropertyDefinition, uniquePropertiesOf } from "./unique-values"
|
|
18
18
|
import {
|
|
19
|
+
findPrimitiveSchema,
|
|
19
20
|
validatePrimaryProperties,
|
|
20
21
|
validatePropertyDefinitions,
|
|
21
22
|
validateQueryMetadata,
|
|
@@ -181,6 +182,7 @@ export class OntologyRegistry implements OntologyDefinitionCatalog {
|
|
|
181
182
|
private readonly subTypesById = new Map<string, Set<string>>()
|
|
182
183
|
private readonly primaryByTypeId: Map<string, string>
|
|
183
184
|
private readonly uniqueByTypeId = new Map<string, readonly UniquePropertyDefinition[]>()
|
|
185
|
+
private readonly artifactRefsByTypeId = new Map<string, readonly Property[]>()
|
|
184
186
|
|
|
185
187
|
constructor(options: OntologyRegistryOptions) {
|
|
186
188
|
const { objectTypes, valueTypes } = collectOntology(options.sources)
|
|
@@ -212,6 +214,7 @@ export class OntologyRegistry implements OntologyDefinitionCatalog {
|
|
|
212
214
|
}
|
|
213
215
|
this.primaryByTypeId = validatePrimaryProperties(this.objectTypesById)
|
|
214
216
|
this.indexUniqueProperties()
|
|
217
|
+
this.indexArtifactRefProperties()
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
// ── Public read API ──────────────────────────────────────
|
|
@@ -252,6 +255,14 @@ export class OntologyRegistry implements OntologyDefinitionCatalog {
|
|
|
252
255
|
return this.uniqueByTypeId.get(objectTypeId) ?? []
|
|
253
256
|
}
|
|
254
257
|
|
|
258
|
+
/**
|
|
259
|
+
* The properties of a type that can hold artifact references, however deeply nested, its
|
|
260
|
+
* inherited ones included. Empty for an unknown type.
|
|
261
|
+
*/
|
|
262
|
+
listArtifactRefProperties(objectTypeId: string): readonly Property[] {
|
|
263
|
+
return this.artifactRefsByTypeId.get(objectTypeId) ?? []
|
|
264
|
+
}
|
|
265
|
+
|
|
255
266
|
/** Collect all transitive sub-types of the given object type id. */
|
|
256
267
|
listSubTypes(objectTypeId: string): string[] {
|
|
257
268
|
const result: string[] = []
|
|
@@ -330,6 +341,20 @@ export class OntologyRegistry implements OntologyDefinitionCatalog {
|
|
|
330
341
|
}
|
|
331
342
|
}
|
|
332
343
|
|
|
344
|
+
/** Every object write records the artifacts its type's properties hold: find those once. */
|
|
345
|
+
private indexArtifactRefProperties(): void {
|
|
346
|
+
for (const [typeId, objectType] of this.objectTypesById) {
|
|
347
|
+
const properties = objectType.properties.filter((property) =>
|
|
348
|
+
findPrimitiveSchema(
|
|
349
|
+
property.schema,
|
|
350
|
+
this.valueTypesById,
|
|
351
|
+
(schema) => schema === "artifactRef"
|
|
352
|
+
)
|
|
353
|
+
)
|
|
354
|
+
if (properties.length > 0) this.artifactRefsByTypeId.set(typeId, properties)
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
333
358
|
/**
|
|
334
359
|
* Build the subtype graph from `extends` and `parents` declarations.
|
|
335
360
|
*
|
package/src/ontology/types.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { QuantitativeTypeId } from "./units"
|
|
|
23
23
|
* - `"timestamp"` for `lastObservedAt`.
|
|
24
24
|
* - `"fileRef"` for blob-backed documents, images, and attachments.
|
|
25
25
|
* - `"userRef"` for a Sixb user, such as a task's assignee (author it with `ref.user()`).
|
|
26
|
+
* - `"artifactRef"` for an artifact, such as a meeting's kick-off canvas (`ref.artifact()`).
|
|
26
27
|
* - `"double"` for telemetry such as temperature or humidity.
|
|
27
28
|
*/
|
|
28
29
|
export type PrimitiveSchema =
|
|
@@ -36,6 +37,7 @@ export type PrimitiveSchema =
|
|
|
36
37
|
| "uuid"
|
|
37
38
|
| "fileRef"
|
|
38
39
|
| "userRef"
|
|
40
|
+
| "artifactRef"
|
|
39
41
|
|
|
40
42
|
export interface ValueTypeRefSchema {
|
|
41
43
|
type: "valueTypeRef"
|
package/src/ontology/user-ref.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Principal } from "../auth/types"
|
|
2
2
|
import type { UserStatus } from "../storage/auth/types"
|
|
3
3
|
import { OntologyValidationError } from "./errors"
|
|
4
|
+
import { visitPrimitiveValues } from "./reference-values"
|
|
4
5
|
import type { Schema, ValueType } from "./types"
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -21,6 +22,15 @@ export interface UserEmailColumn<TColumn extends string = string> {
|
|
|
21
22
|
readonly column: TColumn
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
/**
|
|
26
|
+
* A dataset column that names a member by user id, mapped to a `ref.user()` property of a
|
|
27
|
+
* projection. Built with `userRef.fromId(column)`.
|
|
28
|
+
*/
|
|
29
|
+
export interface UserIdColumn<TColumn extends string = string> {
|
|
30
|
+
readonly kind: "userIdColumn"
|
|
31
|
+
readonly column: TColumn
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
export const userRef: {
|
|
25
35
|
/**
|
|
26
36
|
* Build a reference to one user, for writes and query predicates:
|
|
@@ -34,6 +44,13 @@ export const userRef: {
|
|
|
34
44
|
* The match ignores case. A row whose email no member has leaves the property empty.
|
|
35
45
|
*/
|
|
36
46
|
fromEmail<const TColumn extends string>(column: TColumn): UserEmailColumn<TColumn>
|
|
47
|
+
/**
|
|
48
|
+
* Map a `ref.user()` property of a projection from a string column holding the member's user id:
|
|
49
|
+
* `.properties({ owner: userRef.fromId("owner_id") })`.
|
|
50
|
+
*
|
|
51
|
+
* A row whose id no member has leaves the property empty.
|
|
52
|
+
*/
|
|
53
|
+
fromId<const TColumn extends string>(column: TColumn): UserIdColumn<TColumn>
|
|
37
54
|
} = Object.assign(
|
|
38
55
|
(id: string): UserRef => {
|
|
39
56
|
if (typeof id !== "string" || !id.trim()) {
|
|
@@ -48,6 +65,13 @@ export const userRef: {
|
|
|
48
65
|
}
|
|
49
66
|
return Object.freeze({ kind: "userEmailColumn" as const, column })
|
|
50
67
|
},
|
|
68
|
+
|
|
69
|
+
fromId<const TColumn extends string>(column: TColumn): UserIdColumn<TColumn> {
|
|
70
|
+
if (typeof column !== "string" || !column.trim()) {
|
|
71
|
+
throw new OntologyValidationError("[Sixb] userRef.fromId() needs a dataset column name.")
|
|
72
|
+
}
|
|
73
|
+
return Object.freeze({ kind: "userIdColumn" as const, column })
|
|
74
|
+
},
|
|
51
75
|
}
|
|
52
76
|
)
|
|
53
77
|
|
|
@@ -57,6 +81,12 @@ export function isUserEmailColumn(value: unknown): value is UserEmailColumn {
|
|
|
57
81
|
return record.kind === "userEmailColumn" && typeof record.column === "string"
|
|
58
82
|
}
|
|
59
83
|
|
|
84
|
+
export function isUserIdColumn(value: unknown): value is UserIdColumn {
|
|
85
|
+
if (typeof value !== "object" || value === null) return false
|
|
86
|
+
const record = value as Record<string, unknown>
|
|
87
|
+
return record.kind === "userIdColumn" && typeof record.column === "string"
|
|
88
|
+
}
|
|
89
|
+
|
|
60
90
|
/** Exactly `{ type: "user", id }` with a nonblank id and no other field. */
|
|
61
91
|
export function isUserRef(value: unknown): value is UserRef {
|
|
62
92
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return false
|
|
@@ -120,48 +150,12 @@ export function collectUserRefIds(
|
|
|
120
150
|
into: Set<string>,
|
|
121
151
|
seenValueTypeIds: ReadonlySet<string> = new Set()
|
|
122
152
|
): Set<string> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (schema === "userRef" && isUserRef(value)) into.add(value.id)
|
|
126
|
-
return into
|
|
127
|
-
}
|
|
128
|
-
switch (schema.type) {
|
|
129
|
-
case "array":
|
|
130
|
-
if (Array.isArray(value)) {
|
|
131
|
-
for (const item of value) {
|
|
132
|
-
collectUserRefIds(schema.items, item, valueTypesById, into, seenValueTypeIds)
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return into
|
|
136
|
-
case "map":
|
|
137
|
-
if (isRecord(value)) {
|
|
138
|
-
for (const item of Object.values(value)) {
|
|
139
|
-
collectUserRefIds(schema.valueSchema, item, valueTypesById, into, seenValueTypeIds)
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return into
|
|
143
|
-
case "object":
|
|
144
|
-
if (isRecord(value)) {
|
|
145
|
-
for (const [fieldId, field] of Object.entries(schema.properties)) {
|
|
146
|
-
collectUserRefIds(field.schema, value[fieldId], valueTypesById, into, seenValueTypeIds)
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return into
|
|
150
|
-
case "valueTypeRef": {
|
|
151
|
-
if (seenValueTypeIds.has(schema.valueTypeId)) return into
|
|
152
|
-
const resolved = schema._resolved ?? valueTypesById.get(schema.valueTypeId)?.schema
|
|
153
|
-
if (!resolved) return into
|
|
154
|
-
return collectUserRefIds(
|
|
155
|
-
resolved,
|
|
156
|
-
value,
|
|
157
|
-
valueTypesById,
|
|
158
|
-
into,
|
|
159
|
-
new Set([...seenValueTypeIds, schema.valueTypeId])
|
|
160
|
-
)
|
|
161
|
-
}
|
|
162
|
-
case "enum":
|
|
163
|
-
return into
|
|
153
|
+
const collect = (held: unknown) => {
|
|
154
|
+
if (isUserRef(held)) into.add(held.id)
|
|
164
155
|
}
|
|
156
|
+
|
|
157
|
+
visitPrimitiveValues(schema, "userRef", value, valueTypesById, collect, seenValueTypeIds)
|
|
158
|
+
return into
|
|
165
159
|
}
|
|
166
160
|
|
|
167
161
|
/**
|
|
@@ -187,7 +181,3 @@ export function userReferenceProblem(
|
|
|
187
181
|
return `[Sixb] ${path} references user '${id}', who is ${status}. Only active users can be newly referenced; existing references are kept.`
|
|
188
182
|
}
|
|
189
183
|
}
|
|
190
|
-
|
|
191
|
-
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
192
|
-
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
193
|
-
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { assertJsonValue, cloneJsonValue, type JsonValue } from "../../json"
|
|
2
2
|
import type { ObjectFieldSchema, Property, Schema, ValueType } from ".."
|
|
3
|
+
import { isArtifactRef } from "../artifact-ref"
|
|
3
4
|
import { normalizeDecimalValue } from "../decimal"
|
|
4
5
|
import { OntologyValidationError } from "../errors"
|
|
5
6
|
import { isUserRef } from "../user-ref"
|
|
@@ -55,6 +56,8 @@ export function normalizeSchemaValue(
|
|
|
55
56
|
return cloneJsonValue(value)
|
|
56
57
|
case "userRef":
|
|
57
58
|
return normalizeUserRef(value, path)
|
|
59
|
+
case "artifactRef":
|
|
60
|
+
return normalizeArtifactRef(value, path)
|
|
58
61
|
default:
|
|
59
62
|
// Untyped definitions can still carry an unknown string; it keeps the JSON pass-through.
|
|
60
63
|
schema satisfies never
|
|
@@ -162,6 +165,15 @@ function normalizeUserRef(value: unknown, path: string): JsonValue {
|
|
|
162
165
|
return { type: "user", id: value.id }
|
|
163
166
|
}
|
|
164
167
|
|
|
168
|
+
function normalizeArtifactRef(value: unknown, path: string): JsonValue {
|
|
169
|
+
if (!isArtifactRef(value)) {
|
|
170
|
+
throw new OntologyValidationError(
|
|
171
|
+
`[Sixb] Property ${path} must be an artifact reference { type: "artifact", id }`
|
|
172
|
+
)
|
|
173
|
+
}
|
|
174
|
+
return { type: "artifact", id: value.id }
|
|
175
|
+
}
|
|
176
|
+
|
|
165
177
|
function normalizeDateLike(value: unknown, path: string): Date {
|
|
166
178
|
const date = value instanceof Date ? value : new Date(String(value))
|
|
167
179
|
if (Number.isNaN(date.getTime())) {
|
|
@@ -199,6 +211,7 @@ export function coerceSchemaValueToTyped(
|
|
|
199
211
|
case "boolean":
|
|
200
212
|
case "fileRef":
|
|
201
213
|
case "userRef":
|
|
214
|
+
case "artifactRef":
|
|
202
215
|
return value
|
|
203
216
|
default:
|
|
204
217
|
schema satisfies never
|
|
@@ -202,6 +202,15 @@ export function validatePropertyDefinitions(
|
|
|
202
202
|
`[Sixb] ${path} cannot use ref.user(). User references are supported on object properties only.`
|
|
203
203
|
)
|
|
204
204
|
}
|
|
205
|
+
|
|
206
|
+
// Nor that referenced artifacts exist, and no index records the links that hold one.
|
|
207
|
+
if (
|
|
208
|
+
findPrimitiveSchema(property.schema, valueTypesById, (schema) => schema === "artifactRef")
|
|
209
|
+
) {
|
|
210
|
+
throw new OntologyValidationError(
|
|
211
|
+
`[Sixb] ${path} cannot use ref.artifact(). Artifact references are supported on object properties only.`
|
|
212
|
+
)
|
|
213
|
+
}
|
|
205
214
|
}
|
|
206
215
|
}
|
|
207
216
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isFileRef, isValidFileRef } from "../../blob-storage/validation"
|
|
2
2
|
import { withFailureMessage } from "../../errors/failure-message"
|
|
3
3
|
import type { ObjectFieldSchema, Schema, ValueType, ValueTypeRefSchema } from ".."
|
|
4
|
+
import { isArtifactRef } from "../artifact-ref"
|
|
4
5
|
import { isDecimalString } from "../decimal"
|
|
5
6
|
import { OntologyValidationError } from "../errors"
|
|
6
7
|
import { currentUserNotStorableMessage, isCurrentUser, isUserRef } from "../user-ref"
|
|
@@ -99,6 +100,17 @@ export function validateSchemaValue(
|
|
|
99
100
|
}
|
|
100
101
|
return
|
|
101
102
|
}
|
|
103
|
+
case "artifactRef": {
|
|
104
|
+
if (!isArtifactRef(value)) {
|
|
105
|
+
throw withFailureMessage(
|
|
106
|
+
new OntologyValidationError(
|
|
107
|
+
`[Sixb] Property ${path} must be an artifact reference { type: "artifact", id }`
|
|
108
|
+
),
|
|
109
|
+
`Property ${diagnosticPath} must be an artifact reference.`
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
return
|
|
113
|
+
}
|
|
102
114
|
default:
|
|
103
115
|
// Every primitive validates its values above. Untyped definitions can still carry an
|
|
104
116
|
// unknown string; it keeps falling through without a check.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Work that was started and has not finished, so shutdown can wait for it without waiting forever.
|
|
3
|
+
*
|
|
4
|
+
* Whoever started the work handles how it ends; this only waits, so a rejection is not reported here.
|
|
5
|
+
*/
|
|
6
|
+
export class PendingTasks {
|
|
7
|
+
private readonly tasks = new Set<Promise<void>>()
|
|
8
|
+
|
|
9
|
+
get size(): number {
|
|
10
|
+
return this.tasks.size
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
track(task: Promise<unknown>): void {
|
|
14
|
+
const settled: Promise<void> = task
|
|
15
|
+
.then(
|
|
16
|
+
() => undefined,
|
|
17
|
+
() => undefined
|
|
18
|
+
)
|
|
19
|
+
.finally(() => {
|
|
20
|
+
this.tasks.delete(settled)
|
|
21
|
+
})
|
|
22
|
+
this.tasks.add(settled)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Wait for the tracked work, and for work tracked meanwhile, for at most `timeoutMs`. Resolves
|
|
27
|
+
* `false` when time ran out first: a task that never settles must not stop shutdown.
|
|
28
|
+
*/
|
|
29
|
+
async drain(timeoutMs: number): Promise<boolean> {
|
|
30
|
+
const deadline = Date.now() + Math.max(0, timeoutMs)
|
|
31
|
+
while (this.tasks.size > 0) {
|
|
32
|
+
const remainingMs = deadline - Date.now()
|
|
33
|
+
if (remainingMs <= 0 || !(await this.settleWithin(remainingMs))) return false
|
|
34
|
+
}
|
|
35
|
+
return true
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
private async settleWithin(timeoutMs: number): Promise<boolean> {
|
|
39
|
+
let timeout: ReturnType<typeof setTimeout> | undefined
|
|
40
|
+
try {
|
|
41
|
+
return await Promise.race([
|
|
42
|
+
Promise.all([...this.tasks]).then(() => true),
|
|
43
|
+
new Promise<false>((resolve) => {
|
|
44
|
+
timeout = setTimeout(() => resolve(false), timeoutMs)
|
|
45
|
+
}),
|
|
46
|
+
])
|
|
47
|
+
} finally {
|
|
48
|
+
if (timeout) clearTimeout(timeout)
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|