@sixb/core 0.2.4 → 0.2.6
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 +41 -40
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/validation.d.ts.map +1 -1
- package/dist/agents/errors.d.ts +1 -1
- package/dist/agents/errors.d.ts.map +1 -1
- package/dist/agents/execution.d.ts +50 -3
- package/dist/agents/execution.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 +7 -5
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +74 -50
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-routing.d.ts +5 -2
- package/dist/agents/model-routing.d.ts.map +1 -1
- package/dist/agents/queued-turn.d.ts +16 -0
- package/dist/agents/queued-turn.d.ts.map +1 -0
- package/dist/agents/request.d.ts +120 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/run-after-finish.d.ts +10 -0
- package/dist/agents/run-after-finish.d.ts.map +1 -1
- package/dist/agents/run-artifacts.d.ts +0 -38
- package/dist/agents/run-artifacts.d.ts.map +1 -1
- package/dist/agents/run-events.d.ts +10 -1
- package/dist/agents/run-events.d.ts.map +1 -1
- 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 +14 -1
- package/dist/agents/run-session.d.ts.map +1 -1
- package/dist/agents/run-turn.d.ts +9 -1
- package/dist/agents/run-turn.d.ts.map +1 -1
- package/dist/agents/streams/index.d.ts +1 -1
- package/dist/agents/streams/index.d.ts.map +1 -1
- package/dist/agents/streams/index.js +1 -1
- package/dist/agents/streams/internal.d.ts +2 -1
- package/dist/agents/streams/internal.d.ts.map +1 -1
- package/dist/agents/streams/internal.js +22 -2
- package/dist/agents/streams/internal.js.map +1 -1
- package/dist/agents/streams/protocol.d.ts +53 -0
- package/dist/agents/streams/protocol.d.ts.map +1 -1
- package/dist/agents/streams/steps.d.ts +24 -0
- package/dist/agents/streams/steps.d.ts.map +1 -0
- package/dist/agents/thread-access.d.ts +44 -2
- package/dist/agents/thread-access.d.ts.map +1 -1
- package/dist/agents/turn-answered.d.ts +7 -0
- package/dist/agents/turn-answered.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/canvas-display.d.ts +3 -5
- package/dist/artifacts/canvas-display.d.ts.map +1 -1
- package/dist/artifacts/comments.d.ts +14 -3
- package/dist/artifacts/comments.d.ts.map +1 -1
- package/dist/artifacts/document-fill.d.ts +18 -0
- package/dist/artifacts/document-fill.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +1 -1
- package/dist/artifacts/errors.d.ts.map +1 -1
- package/dist/artifacts/events.d.ts +3 -2
- package/dist/artifacts/events.d.ts.map +1 -1
- package/dist/artifacts/execution.d.ts +40 -4
- package/dist/artifacts/execution.d.ts.map +1 -1
- package/dist/artifacts/frames/assets.d.ts +8 -1
- package/dist/artifacts/frames/assets.d.ts.map +1 -1
- package/dist/artifacts/frames/document-data.d.ts +98 -0
- package/dist/artifacts/frames/document-data.d.ts.map +1 -0
- package/dist/artifacts/frames/entries.d.ts +12 -7
- package/dist/artifacts/frames/entries.d.ts.map +1 -1
- package/dist/artifacts/frames/index.d.ts +2 -1
- package/dist/artifacts/frames/index.d.ts.map +1 -1
- package/dist/artifacts/frames/index.js +22 -13
- package/dist/artifacts/frames/index.js.map +4 -4
- package/dist/artifacts/frames/kit.d.ts +15 -0
- package/dist/artifacts/frames/kit.d.ts.map +1 -1
- package/dist/artifacts/frames/protocol.d.ts +12 -1
- package/dist/artifacts/frames/protocol.d.ts.map +1 -1
- package/dist/artifacts/frames/runtime.d.ts +24 -4
- package/dist/artifacts/frames/runtime.d.ts.map +1 -1
- package/dist/artifacts/index.d.ts +3 -1
- package/dist/artifacts/index.d.ts.map +1 -1
- package/dist/artifacts/index.js +9 -3
- package/dist/artifacts/index.js.map +3 -3
- package/dist/artifacts/live/blocks.d.ts +62 -0
- package/dist/artifacts/live/blocks.d.ts.map +1 -0
- package/dist/artifacts/live/board.d.ts +6 -0
- package/dist/artifacts/live/board.d.ts.map +1 -1
- package/dist/artifacts/live/document.d.ts +12 -0
- package/dist/artifacts/live/document.d.ts.map +1 -1
- package/dist/artifacts/live/index.d.ts +2 -0
- package/dist/artifacts/live/index.d.ts.map +1 -1
- package/dist/artifacts/live/index.js +148 -44
- package/dist/artifacts/live/index.js.map +3 -3
- package/dist/artifacts/live/page.d.ts +49 -0
- package/dist/artifacts/live/page.d.ts.map +1 -0
- package/dist/artifacts/live/protocol.d.ts +5 -0
- package/dist/artifacts/live/protocol.d.ts.map +1 -1
- package/dist/artifacts/live/server.d.ts +2 -2
- package/dist/artifacts/live/server.d.ts.map +1 -1
- package/dist/artifacts/live/server.js +29 -24
- package/dist/artifacts/live/server.js.map +1 -1
- package/dist/artifacts/live/state.d.ts +4 -1
- package/dist/artifacts/live/state.d.ts.map +1 -1
- package/dist/artifacts/outline.d.ts +16 -0
- package/dist/artifacts/outline.d.ts.map +1 -1
- package/dist/artifacts/paper.d.ts +22 -0
- package/dist/artifacts/paper.d.ts.map +1 -0
- package/dist/artifacts/pdf-job.d.ts +9 -0
- package/dist/artifacts/pdf-job.d.ts.map +1 -0
- package/dist/artifacts/publish/fields.d.ts +25 -0
- package/dist/artifacts/publish/fields.d.ts.map +1 -0
- package/dist/artifacts/publish/index.d.ts +2 -1
- package/dist/artifacts/publish/index.d.ts.map +1 -1
- package/dist/artifacts/publish/index.js +32 -23
- package/dist/artifacts/publish/index.js.map +1 -1
- package/dist/artifacts/publish/merge.d.ts +7 -6
- package/dist/artifacts/publish/merge.d.ts.map +1 -1
- package/dist/artifacts/publish/pdf.d.ts +28 -0
- package/dist/artifacts/publish/pdf.d.ts.map +1 -0
- package/dist/artifacts/publish/previews.d.ts +12 -20
- package/dist/artifacts/publish/previews.d.ts.map +1 -1
- package/dist/artifacts/publish/publish.d.ts.map +1 -1
- package/dist/artifacts/publish/queries.d.ts +6 -1
- package/dist/artifacts/publish/queries.d.ts.map +1 -1
- package/dist/artifacts/publish/query-answers.d.ts +5 -2
- package/dist/artifacts/publish/query-answers.d.ts.map +1 -1
- package/dist/artifacts/publish/validate/document-html.d.ts +24 -0
- package/dist/artifacts/publish/validate/document-html.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/document.d.ts +5 -3
- package/dist/artifacts/publish/validate/document.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +16 -2
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/run-query.d.ts.map +1 -1
- package/dist/auth/index.js +6 -6
- package/dist/authorization/event-visibility.d.ts.map +1 -1
- package/dist/authorization/index.js +2 -2
- package/dist/blob-storage/index.js +1 -1
- package/dist/bootstrap/index.js +50 -48
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/calendar.d.ts +55 -0
- package/dist/calendar.d.ts.map +1 -0
- package/dist/calendar.js +19 -0
- package/dist/calendar.js.map +9 -0
- package/dist/{chunk-5a4a52tq.js → chunk-0pmpwn3g.js} +18 -2
- package/dist/chunk-0pmpwn3g.js.map +10 -0
- package/dist/{chunk-0k3r5kb3.js → chunk-394zjzjs.js} +20 -10
- package/dist/{chunk-0k3r5kb3.js.map → chunk-394zjzjs.js.map} +5 -5
- package/dist/{chunk-stmxh0hv.js → chunk-3neam1y5.js} +2 -2
- package/dist/{chunk-zeykm8my.js → chunk-3qtk0070.js} +16 -42
- package/dist/chunk-3qtk0070.js.map +14 -0
- package/dist/{chunk-p8pgnq8d.js → chunk-425ydk65.js} +5 -5
- package/dist/{chunk-p351afzm.js → chunk-5sswe5ej.js} +2 -2
- package/dist/{chunk-a6fjkcne.js → chunk-60662fyv.js} +54 -28
- package/dist/{chunk-a6fjkcne.js.map → chunk-60662fyv.js.map} +7 -6
- package/dist/{chunk-e0hnbb1m.js → chunk-61zptves.js} +1 -1
- package/dist/chunk-6hfbz4d0.js +98 -0
- package/dist/chunk-6hfbz4d0.js.map +10 -0
- package/dist/{chunk-3zagkr6w.js → chunk-7mhbs9yy.js} +4 -4
- package/dist/{chunk-3zagkr6w.js.map → chunk-7mhbs9yy.js.map} +1 -1
- package/dist/{chunk-gxwy4c3s.js → chunk-7r9mqpva.js} +570 -104
- package/dist/chunk-7r9mqpva.js.map +47 -0
- package/dist/{chunk-3014rfjz.js → chunk-88xeh6zx.js} +28 -8
- package/dist/{chunk-3014rfjz.js.map → chunk-88xeh6zx.js.map} +4 -4
- package/dist/{chunk-9nsjjd44.js → chunk-8tv3qd65.js} +2 -1
- package/dist/chunk-8tv3qd65.js.map +12 -0
- package/dist/chunk-90nqenq8.js +386 -0
- package/dist/chunk-90nqenq8.js.map +14 -0
- package/dist/{chunk-fe6r7yhg.js → chunk-92wrka15.js} +1 -1
- package/dist/{chunk-w1wq7gfr.js → chunk-9c9yknwt.js} +464 -29
- package/dist/{chunk-w1wq7gfr.js.map → chunk-9c9yknwt.js.map} +7 -7
- package/dist/{chunk-q9nkpr8k.js → chunk-9tpmfh3n.js} +1 -1
- package/dist/chunk-9wr3yajk.js.map +2 -2
- package/dist/{chunk-rtm1jq00.js → chunk-ats8y3d9.js} +1202 -246
- package/dist/{chunk-rtm1jq00.js.map → chunk-ats8y3d9.js.map} +16 -14
- package/dist/{chunk-td26wjr5.js → chunk-bcz9dxtf.js} +17 -47
- package/dist/chunk-bcz9dxtf.js.map +12 -0
- package/dist/chunk-bqr703h4.js +1799 -0
- package/dist/chunk-bqr703h4.js.map +13 -0
- package/dist/{chunk-sysnvjce.js → chunk-brhp9d97.js} +2 -2
- package/dist/{chunk-8a8k38tz.js → chunk-brybqw5k.js} +1 -1
- package/dist/{chunk-rsxb14an.js → chunk-bs1sd0e0.js} +12 -8
- package/dist/chunk-bs1sd0e0.js.map +18 -0
- package/dist/{chunk-eptrvnby.js → chunk-c29729me.js} +42 -3
- package/dist/chunk-c29729me.js.map +12 -0
- package/dist/{chunk-855w9nvw.js → chunk-cg7cygfj.js} +1 -1
- package/dist/chunk-dq3t5sr3.js +114 -0
- package/dist/chunk-dq3t5sr3.js.map +11 -0
- package/dist/{chunk-t24yktqr.js → chunk-dvgc56n2.js} +20 -4
- package/dist/{chunk-t24yktqr.js.map → chunk-dvgc56n2.js.map} +5 -5
- package/dist/{chunk-r2psmn42.js → chunk-eg6xqef7.js} +1 -1
- package/dist/{chunk-7kpqntgw.js → chunk-f05994as.js} +1 -1
- package/dist/{chunk-msyevpp3.js → chunk-fmgf9h5e.js} +38 -14
- package/dist/chunk-fmgf9h5e.js.map +22 -0
- package/dist/{chunk-b9qfh2ya.js → chunk-fzbhybya.js} +29 -2
- package/dist/chunk-fzbhybya.js.map +11 -0
- package/dist/{chunk-t0s7b3d1.js → chunk-gaj8djsw.js} +251 -6
- package/dist/chunk-gaj8djsw.js.map +13 -0
- package/dist/{chunk-2bn6813a.js → chunk-grt2j5vp.js} +2 -2
- package/dist/{chunk-s7xqfxs9.js → chunk-hkbks1xm.js} +3 -1
- package/dist/{chunk-s7xqfxs9.js.map → chunk-hkbks1xm.js.map} +3 -3
- package/dist/chunk-hn2r7z41.js.map +1 -1
- package/dist/{chunk-rtdrm592.js → chunk-htdzx40w.js} +2 -2
- package/dist/{chunk-bc3y6gff.js → chunk-jka26v8c.js} +1 -1
- package/dist/{chunk-yy914zfr.js → chunk-jt012fxq.js} +772 -98
- package/dist/chunk-jt012fxq.js.map +34 -0
- package/dist/{chunk-48c1z8nj.js → chunk-kft7mp7z.js} +28 -3
- package/dist/chunk-kft7mp7z.js.map +10 -0
- package/dist/chunk-mbwsgjn7.js +40 -0
- package/dist/chunk-mbwsgjn7.js.map +11 -0
- package/dist/{chunk-wa05txmk.js → chunk-n1hbwc6y.js} +51 -8
- package/dist/chunk-n1hbwc6y.js.map +12 -0
- package/dist/{chunk-n4zzaf6q.js → chunk-nxysqbt0.js} +4 -2
- package/dist/chunk-nxysqbt0.js.map +10 -0
- package/dist/{chunk-6ef4esq4.js → chunk-pqj8vff9.js} +4 -4
- package/dist/chunk-pvpq483h.js.map +2 -2
- package/dist/{chunk-mzx71snp.js → chunk-q7g9cqwt.js} +7 -2
- package/dist/{chunk-mzx71snp.js.map → chunk-q7g9cqwt.js.map} +3 -3
- package/dist/{chunk-n68vz95m.js → chunk-qbd282aa.js} +2 -2
- package/dist/{chunk-e91fmg6t.js → chunk-qsa7nw6f.js} +2 -1
- package/dist/{chunk-e91fmg6t.js.map → chunk-qsa7nw6f.js.map} +3 -3
- package/dist/{chunk-rsrc7vtw.js → chunk-s8xxef60.js} +240 -46
- package/dist/chunk-s8xxef60.js.map +50 -0
- package/dist/{chunk-r9rtavg9.js → chunk-t19wjmnc.js} +7 -7
- package/dist/{chunk-vzkxqf8h.js → chunk-tapdssb5.js} +50 -6
- package/dist/chunk-tapdssb5.js.map +23 -0
- package/dist/{chunk-dhkc9b23.js → chunk-v8a1qjzp.js} +1 -1
- package/dist/{chunk-hvbvq7p4.js → chunk-vs2s3p8n.js} +731 -10
- package/dist/chunk-vs2s3p8n.js.map +20 -0
- package/dist/chunk-vtjzwymr.js.map +2 -2
- package/dist/{chunk-8t2ynwg0.js → chunk-wzcjhv54.js} +31 -1
- package/dist/{chunk-8t2ynwg0.js.map → chunk-wzcjhv54.js.map} +3 -3
- package/dist/{chunk-8tqnsx3q.js → chunk-xavet0qs.js} +5 -3
- package/dist/{chunk-8tqnsx3q.js.map → chunk-xavet0qs.js.map} +3 -3
- package/dist/{chunk-8bns0y68.js → chunk-xf76csps.js} +5 -5
- package/dist/{chunk-cwdzcv37.js → chunk-xrmbhap8.js} +2 -2
- package/dist/{chunk-cwdzcv37.js.map → chunk-xrmbhap8.js.map} +2 -2
- package/dist/{chunk-f6ahf5gf.js → chunk-xxfj0rr2.js} +20 -5
- package/dist/chunk-xxfj0rr2.js.map +13 -0
- package/dist/{chunk-3hzhcfsv.js → chunk-y8fwm3z2.js} +2 -2
- package/dist/{chunk-3hzhcfsv.js.map → chunk-y8fwm3z2.js.map} +3 -3
- package/dist/{chunk-smnt672s.js → chunk-ygvay56w.js} +20 -4
- package/dist/chunk-ygvay56w.js.map +10 -0
- package/dist/{chunk-evj5jxz3.js → chunk-ykchk644.js} +63 -15
- package/dist/{chunk-evj5jxz3.js.map → chunk-ykchk644.js.map} +7 -7
- package/dist/{chunk-vepea5c3.js → chunk-ym1bqd98.js} +6 -6
- package/dist/{chunk-yv8hv4wq.js → chunk-z4jqb44a.js} +3 -1
- package/dist/chunk-z4jqb44a.js.map +10 -0
- package/dist/connectors/connection-handles.d.ts +9 -0
- package/dist/connectors/connection-handles.d.ts.map +1 -0
- package/dist/connectors/connections/authorizations.d.ts +9 -0
- package/dist/connectors/connections/authorizations.d.ts.map +1 -1
- package/dist/connectors/connections/capability.d.ts +11 -0
- package/dist/connectors/connections/capability.d.ts.map +1 -1
- package/dist/connectors/connections/events.d.ts +17 -0
- package/dist/connectors/connections/events.d.ts.map +1 -0
- package/dist/connectors/connections/internal.d.ts +2 -1
- package/dist/connectors/connections/internal.d.ts.map +1 -1
- package/dist/connectors/connections/internal.js +8 -4
- package/dist/connectors/connections/internal.js.map +1 -1
- package/dist/connectors/connections/runs.d.ts +3 -0
- package/dist/connectors/connections/runs.d.ts.map +1 -1
- package/dist/connectors/connections/service.d.ts +13 -1
- package/dist/connectors/connections/service.d.ts.map +1 -1
- package/dist/connectors/execution.d.ts +14 -2
- 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 +5 -1
- package/dist/connectors/service.d.ts.map +1 -1
- package/dist/connectors/types.d.ts +22 -1
- package/dist/connectors/types.d.ts.map +1 -1
- package/dist/datasets/write.js +1 -1
- package/dist/deploy/index.d.ts +1 -1
- package/dist/deploy/index.d.ts.map +1 -1
- package/dist/deploy/internal.js +3 -2
- package/dist/deploy/internal.js.map +3 -3
- package/dist/deploy/services.d.ts.map +1 -1
- package/dist/deploy/types.d.ts +22 -2
- package/dist/deploy/types.d.ts.map +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 +8 -1
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +3 -3
- package/dist/events/outbox-dispatcher.d.ts +7 -0
- package/dist/events/outbox-dispatcher.d.ts.map +1 -1
- package/dist/events/scope.d.ts +1 -0
- package/dist/events/scope.d.ts.map +1 -1
- package/dist/events/scope.js +1 -1
- package/dist/events/selectors/builder.d.ts +9 -1
- package/dist/events/selectors/builder.d.ts.map +1 -1
- package/dist/events/selectors/index.d.ts +2 -2
- package/dist/events/selectors/index.d.ts.map +1 -1
- package/dist/events/selectors/index.js +2 -2
- package/dist/events/selectors/predicate.d.ts.map +1 -1
- package/dist/events/selectors/types.d.ts +18 -3
- package/dist/events/selectors/types.d.ts.map +1 -1
- package/dist/events/types/artifacts.d.ts +7 -1
- package/dist/events/types/artifacts.d.ts.map +1 -1
- package/dist/events/types/connectors.d.ts +32 -0
- package/dist/events/types/connectors.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/syncs.d.ts +4 -0
- package/dist/events/types/syncs.d.ts.map +1 -1
- package/dist/execution/agent.js +43 -42
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorization.d.ts +5 -0
- package/dist/execution/authorization.d.ts.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +4 -0
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-ontology.d.ts +3 -0
- package/dist/execution/object-reader-ontology.d.ts.map +1 -1
- package/dist/execution/primitive.js +41 -40
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.d.ts +1 -1
- package/dist/execution/request.d.ts.map +1 -1
- package/dist/execution/request.js +39 -38
- package/dist/execution/request.js.map +3 -3
- package/dist/execution/scopes.d.ts +8 -0
- package/dist/execution/scopes.d.ts.map +1 -1
- package/dist/execution/script.d.ts +7 -0
- package/dist/execution/script.d.ts.map +1 -0
- package/dist/execution/types.d.ts +16 -1
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +13 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +74 -70
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/index.js +1 -1
- package/dist/lineage/executors.d.ts +1 -1
- package/dist/lineage/executors.d.ts.map +1 -1
- package/dist/maintenance/index.js +2 -2
- package/dist/materialization/event-envelopes.d.ts +3 -3
- package/dist/materialization/event-envelopes.d.ts.map +1 -1
- package/dist/materialization/events.d.ts +6 -0
- package/dist/materialization/events.d.ts.map +1 -1
- package/dist/materialization/index.js +1 -1
- package/dist/materialization/model.d.ts +6 -0
- package/dist/materialization/model.d.ts.map +1 -1
- package/dist/materializer/index.js +24 -23
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/replace.d.ts.map +1 -1
- package/dist/materializer/projections/replacement-plan.d.ts +2 -0
- package/dist/materializer/projections/replacement-plan.d.ts.map +1 -1
- package/dist/materializer/shared/normalize.d.ts +1 -0
- package/dist/materializer/shared/normalize.d.ts.map +1 -1
- package/dist/models/audio/runtime.d.ts.map +1 -1
- package/dist/models/audio/types.d.ts +19 -0
- package/dist/models/audio/types.d.ts.map +1 -1
- package/dist/models/execution/index.js +22 -21
- package/dist/models/execution/index.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/objects/index.js +41 -40
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/query/executor.d.ts +3 -1
- package/dist/objects/query/executor.d.ts.map +1 -1
- package/dist/objects/query/explain.d.ts +3 -1
- package/dist/objects/query/explain.d.ts.map +1 -1
- package/dist/objects/query/index.d.ts +1 -1
- package/dist/objects/query/index.d.ts.map +1 -1
- package/dist/objects/query/index.js +21 -20
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/link-query-clearance.d.ts +3 -0
- package/dist/objects/query/link-query-clearance.d.ts.map +1 -1
- package/dist/objects/query/links.d.ts +1 -1
- package/dist/objects/query/links.d.ts.map +1 -1
- package/dist/objects/query/validate.d.ts +17 -0
- package/dist/objects/query/validate.d.ts.map +1 -1
- package/dist/objects/sdk/runtime-query-executor.d.ts +1 -1
- package/dist/objects/sdk/runtime-query-executor.d.ts.map +1 -1
- package/dist/ontology/index.js +3 -3
- package/dist/ontology/internal.js +3 -3
- package/dist/pipelines/index.js +27 -26
- package/dist/pipelines/index.js.map +1 -1
- package/dist/projections/builders.d.ts +7 -1
- package/dist/projections/builders.d.ts.map +1 -1
- package/dist/projections/index.d.ts +1 -1
- package/dist/projections/index.d.ts.map +1 -1
- package/dist/projections/internal.js +22 -21
- package/dist/projections/internal.js.map +1 -1
- package/dist/projections/types.d.ts +10 -0
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/projections/validation.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +3 -2
- 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 +40 -13
- package/dist/queues/types.d.ts.map +1 -1
- package/dist/runtime/host.d.ts +13 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +1 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +47 -25
- package/dist/runtime/internal.js.map +4 -3
- package/dist/runtime/locale.d.ts +0 -2
- package/dist/runtime/locale.d.ts.map +1 -1
- package/dist/runtime/resolve-definitions.d.ts +1 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/script.d.ts +39 -0
- package/dist/runtime/script.d.ts.map +1 -0
- package/dist/runtime/sixb.d.ts +2 -2
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/auth.d.ts +26 -4
- package/dist/sandboxes/auth.d.ts.map +1 -1
- package/dist/sandboxes/index.d.ts +3 -1
- package/dist/sandboxes/index.d.ts.map +1 -1
- package/dist/sandboxes/index.js +5 -5
- package/dist/schedules/builders.d.ts.map +1 -1
- package/dist/schedules/index.js +3 -3
- package/dist/schedules/runtime.d.ts.map +1 -1
- package/dist/schedules/validation.d.ts +2 -0
- package/dist/schedules/validation.d.ts.map +1 -1
- package/dist/security/view-conditions.d.ts.map +1 -1
- package/dist/shares/internal.js +19 -18
- package/dist/shares/internal.js.map +2 -2
- package/dist/storage/agents/errors.d.ts +1 -1
- package/dist/storage/agents/errors.d.ts.map +1 -1
- package/dist/storage/agents/in-memory.d.ts +43 -1
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/index.d.ts +2 -2
- package/dist/storage/agents/index.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts +54 -11
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +41 -5
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +291 -3
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-cost/analytics.d.ts +3 -2
- package/dist/storage/ai-cost/analytics.d.ts.map +1 -1
- package/dist/storage/ai-cost/provider.js +4 -3
- package/dist/storage/ai-cost/provider.js.map +1 -1
- package/dist/storage/ai-cost/types.d.ts +5 -1
- package/dist/storage/ai-cost/types.d.ts.map +1 -1
- package/dist/storage/artifacts/in-memory.d.ts +7 -1
- 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 +5 -2
- package/dist/storage/artifacts/record.d.ts.map +1 -1
- package/dist/storage/artifacts/types.d.ts +41 -0
- package/dist/storage/artifacts/types.d.ts.map +1 -1
- package/dist/storage/executions/provider.d.ts +3 -3
- package/dist/storage/executions/provider.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +1 -1
- package/dist/storage/executions/types.d.ts +6 -0
- package/dist/storage/executions/types.d.ts.map +1 -1
- package/dist/storage/executions/validation.d.ts.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +7 -7
- package/dist/storage/index.d.ts +4 -4
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +30 -25
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +1 -1
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +12 -10
- package/dist/storage/internal.js.map +2 -2
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts +2 -0
- package/dist/storage/ontology/in-memory/replacement-plans.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +1 -1
- package/dist/storage/ontology/replacement-plans.d.ts +8 -0
- package/dist/storage/ontology/replacement-plans.d.ts.map +1 -1
- package/dist/storage/operation-scope.d.ts.map +1 -1
- package/dist/storage/operation-scope.js +1 -1
- package/dist/storage/sync-runs/idempotency.d.ts.map +1 -1
- package/dist/storage/sync-runs/in-memory.d.ts +2 -1
- 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/types.d.ts +27 -2
- package/dist/storage/sync-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +7 -7
- package/dist/syncs/accounts.d.ts +36 -0
- package/dist/syncs/accounts.d.ts.map +1 -0
- package/dist/syncs/builders.d.ts.map +1 -1
- package/dist/syncs/connections.d.ts +36 -0
- package/dist/syncs/connections.d.ts.map +1 -0
- package/dist/syncs/execution.d.ts +14 -4
- package/dist/syncs/execution.d.ts.map +1 -1
- package/dist/syncs/index.d.ts +2 -1
- package/dist/syncs/index.d.ts.map +1 -1
- package/dist/syncs/index.js +28 -27
- package/dist/syncs/index.js.map +1 -1
- package/dist/syncs/request.d.ts +16 -2
- package/dist/syncs/request.d.ts.map +1 -1
- package/dist/syncs/run-dispatch.d.ts +14 -2
- package/dist/syncs/run-dispatch.d.ts.map +1 -1
- package/dist/testing/agent-approval-storage-contract.d.ts.map +1 -1
- package/dist/testing/agent-execution.d.ts +3 -0
- package/dist/testing/agent-execution.d.ts.map +1 -1
- package/dist/testing/agent-inbox-storage-contract.d.ts +15 -0
- package/dist/testing/agent-inbox-storage-contract.d.ts.map +1 -0
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/ai-cost-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +6589 -4627
- package/dist/testing/index.js.map +13 -12
- package/dist/testing/materializer-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.map +1 -1
- package/dist/webhooks/connections.d.ts +3 -4
- package/dist/webhooks/connections.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +1 -1
- package/dist/webhooks/index.d.ts.map +1 -1
- package/dist/webhooks/internal.js +22 -54
- package/dist/webhooks/internal.js.map +3 -3
- package/dist/webhooks/types.d.ts +2 -11
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/workers/index.js +66 -13
- package/dist/workers/index.js.map +4 -4
- package/dist/workers/queue-worker.d.ts +5 -0
- package/dist/workers/queue-worker.d.ts.map +1 -1
- package/dist/workers/queued-run-dispatch.d.ts.map +1 -1
- package/dist/workers/worker.d.ts +8 -0
- package/dist/workers/worker.d.ts.map +1 -1
- package/dist/workflows/index.js +50 -48
- package/dist/workflows/index.js.map +1 -1
- package/package.json +12 -1
- package/src/actions/validation.ts +3 -1
- package/src/agents/README.md +6 -2
- package/src/agents/children.ts +6 -0
- package/src/agents/errors.ts +3 -0
- package/src/agents/execution.ts +331 -43
- package/src/agents/ids.ts +5 -0
- package/src/agents/index.ts +22 -4
- package/src/agents/model-routing.ts +25 -9
- package/src/agents/queued-turn.ts +46 -0
- package/src/agents/request.ts +1444 -210
- package/src/agents/run-after-finish.ts +259 -2
- package/src/agents/run-artifacts.ts +3 -93
- package/src/agents/run-events.ts +256 -34
- package/src/agents/run-session-children.ts +13 -2
- package/src/agents/run-session-http.ts +9 -2
- package/src/agents/run-session-serve.ts +2 -8
- package/src/agents/run-session.ts +142 -3
- package/src/agents/run-turn.ts +148 -23
- package/src/agents/streams/index.ts +3 -0
- package/src/agents/streams/internal.ts +12 -0
- package/src/agents/streams/protocol.ts +109 -1
- package/src/agents/streams/steps.ts +131 -0
- package/src/agents/thread-access.ts +57 -2
- package/src/agents/turn-answered.ts +31 -0
- package/src/agents/validation.ts +2 -0
- package/src/artifacts/canvas-display.ts +4 -6
- package/src/artifacts/comments.ts +70 -17
- package/src/artifacts/document-fill.ts +103 -0
- package/src/artifacts/errors.ts +2 -0
- package/src/artifacts/events.ts +4 -1
- package/src/artifacts/execution.ts +265 -31
- package/src/artifacts/frames/assets.ts +42 -7
- package/src/artifacts/frames/document-data.ts +353 -0
- package/src/artifacts/frames/entries.ts +22 -16
- package/src/artifacts/frames/grants.ts +2 -2
- package/src/artifacts/frames/index.ts +3 -0
- package/src/artifacts/frames/kit.ts +102 -0
- package/src/artifacts/frames/protocol.ts +12 -1
- package/src/artifacts/frames/runtime.ts +413 -6
- package/src/artifacts/index.ts +3 -0
- package/src/artifacts/live/blocks.ts +889 -0
- package/src/artifacts/live/board.ts +195 -42
- package/src/artifacts/live/document.ts +170 -5
- package/src/artifacts/live/index.ts +7 -0
- package/src/artifacts/live/page.ts +807 -0
- package/src/artifacts/live/protocol.ts +5 -0
- package/src/artifacts/live/server.ts +2 -2
- package/src/artifacts/live/state.ts +9 -4
- package/src/artifacts/outline.ts +17 -0
- package/src/artifacts/paper.ts +173 -0
- package/src/artifacts/pdf-job.ts +11 -0
- package/src/artifacts/publish/fields.ts +177 -0
- package/src/artifacts/publish/index.ts +6 -1
- package/src/artifacts/publish/merge.ts +28 -15
- package/src/artifacts/publish/pdf.ts +82 -0
- package/src/artifacts/publish/previews.ts +24 -34
- package/src/artifacts/publish/publish.ts +26 -3
- package/src/artifacts/publish/queries.ts +20 -4
- package/src/artifacts/publish/query-answers.ts +14 -3
- package/src/artifacts/publish/validate/document-html.ts +245 -0
- package/src/artifacts/publish/validate/document.ts +34 -3
- package/src/artifacts/queries.ts +59 -13
- package/src/artifacts/run-query.ts +5 -2
- package/src/authorization/event-visibility.ts +13 -0
- package/src/calendar.ts +195 -0
- package/src/connectors/connection-handles.ts +71 -0
- package/src/connectors/connections/authorizations.ts +50 -2
- package/src/connectors/connections/capability.ts +40 -0
- package/src/connectors/connections/events.ts +57 -0
- package/src/connectors/connections/internal.ts +3 -0
- package/src/connectors/connections/runs.ts +5 -0
- package/src/connectors/connections/service.ts +93 -6
- package/src/connectors/execution.ts +35 -8
- package/src/connectors/index.ts +3 -0
- package/src/connectors/service.ts +23 -0
- package/src/connectors/types.ts +29 -1
- package/src/deploy/index.ts +1 -0
- package/src/deploy/services.ts +1 -0
- package/src/deploy/types.ts +30 -2
- package/src/events/definitions.ts +14 -0
- package/src/events/execution.ts +51 -4
- package/src/events/index.ts +8 -0
- package/src/events/outbox-dispatcher.ts +12 -2
- package/src/events/scope.ts +3 -0
- package/src/events/selectors/builder.ts +49 -0
- package/src/events/selectors/index.ts +5 -0
- package/src/events/selectors/predicate.ts +2 -0
- package/src/events/selectors/types.ts +30 -1
- package/src/events/types/artifacts.ts +7 -1
- package/src/events/types/connectors.ts +36 -0
- package/src/events/types/index.ts +7 -0
- package/src/events/types/syncs.ts +4 -0
- package/src/execution/authorization.ts +45 -0
- package/src/execution/authorized-object-reader.ts +33 -5
- package/src/execution/durable.ts +2 -0
- package/src/execution/object-reader-ontology.ts +6 -0
- package/src/execution/request.ts +1 -0
- package/src/execution/scopes.ts +24 -0
- package/src/execution/script.ts +27 -0
- package/src/execution/types.ts +7 -1
- package/src/http/api-routes.ts +33 -0
- package/src/index.ts +39 -4
- package/src/lineage/executors.ts +3 -1
- package/src/materialization/event-envelopes.ts +10 -5
- package/src/materialization/events.ts +2 -0
- package/src/materialization/model.ts +6 -0
- package/src/materializer/README.md +10 -0
- package/src/materializer/projections/replace.ts +42 -1
- package/src/materializer/projections/replacement-plan.ts +44 -4
- package/src/materializer/shared/normalize.ts +4 -0
- package/src/models/audio/runtime.ts +57 -14
- package/src/models/audio/types.ts +20 -0
- package/src/models/index.ts +1 -0
- package/src/objects/query/executor.ts +4 -0
- package/src/objects/query/explain.ts +5 -0
- package/src/objects/query/index.ts +1 -0
- package/src/objects/query/link-query-clearance.ts +4 -1
- package/src/objects/query/links.ts +5 -1
- package/src/objects/query/validate.ts +33 -1
- package/src/objects/sdk/runtime-query-executor.ts +7 -3
- package/src/projections/builders.ts +20 -0
- package/src/projections/index.ts +1 -0
- package/src/projections/registry.ts +1 -0
- package/src/projections/revision.ts +2 -0
- package/src/projections/types.ts +11 -0
- package/src/projections/validation.ts +6 -0
- package/src/queues/in-memory.ts +5 -0
- package/src/queues/index.ts +3 -1
- package/src/queues/types.ts +45 -14
- package/src/runtime/host.ts +125 -11
- package/src/runtime/internal.ts +1 -0
- package/src/runtime/locale.ts +0 -10
- package/src/runtime/resolve-definitions.ts +4 -1
- package/src/runtime/script.ts +62 -0
- package/src/runtime/sixb.ts +15 -5
- package/src/sandboxes/README.md +3 -1
- package/src/sandboxes/auth.ts +32 -4
- package/src/sandboxes/index.ts +15 -1
- package/src/schedules/builders.ts +4 -1
- package/src/schedules/runtime.ts +3 -0
- package/src/schedules/validation.ts +20 -2
- package/src/security/view-conditions.ts +2 -1
- package/src/storage/agents/errors.ts +1 -0
- package/src/storage/agents/in-memory.ts +500 -7
- package/src/storage/agents/index.ts +26 -0
- package/src/storage/agents/provider.ts +454 -15
- package/src/storage/agents/types.ts +315 -3
- package/src/storage/ai-cost/analytics.ts +22 -43
- package/src/storage/ai-cost/types.ts +5 -1
- package/src/storage/artifacts/in-memory.ts +52 -6
- package/src/storage/artifacts/index.ts +2 -0
- package/src/storage/artifacts/record.ts +33 -4
- package/src/storage/artifacts/types.ts +44 -0
- package/src/storage/executions/provider.ts +22 -2
- package/src/storage/executions/types.ts +2 -0
- package/src/storage/executions/validation.ts +27 -0
- package/src/storage/index.ts +29 -0
- package/src/storage/internal.ts +1 -0
- package/src/storage/ontology/in-memory/replacement-plans.ts +22 -0
- package/src/storage/ontology/replacement-plans.ts +6 -0
- package/src/storage/operation-scope.ts +2 -0
- package/src/storage/sync-runs/idempotency.ts +1 -0
- package/src/storage/sync-runs/in-memory.ts +43 -1
- package/src/storage/sync-runs/index.ts +1 -0
- package/src/storage/sync-runs/types.ts +30 -1
- package/src/syncs/accounts.ts +85 -0
- package/src/syncs/builders.ts +18 -1
- package/src/syncs/connections.ts +123 -0
- package/src/syncs/execution.ts +64 -22
- package/src/syncs/index.ts +3 -0
- package/src/syncs/request.ts +81 -23
- package/src/syncs/run-dispatch.ts +69 -7
- package/src/testing/agent-approval-storage-contract.ts +123 -0
- package/src/testing/agent-execution.ts +45 -2
- package/src/testing/agent-inbox-storage-contract.ts +874 -0
- package/src/testing/agent-storage-contract.ts +965 -103
- package/src/testing/ai-cost-storage-contract.ts +80 -0
- package/src/testing/artifact-storage-contract.ts +201 -4
- package/src/testing/execution-storage-contract.ts +31 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/materializer-storage-contract.ts +139 -1
- package/src/testing/queues-contract.ts +22 -0
- package/src/testing/run-claim-storage-contract.ts +116 -0
- package/src/webhooks/connections.ts +9 -50
- package/src/webhooks/index.ts +0 -2
- package/src/webhooks/types.ts +2 -13
- package/src/workers/README.md +4 -1
- package/src/workers/lost-runs.ts +1 -0
- package/src/workers/queue-worker.ts +16 -5
- package/src/workers/queued-run-dispatch.ts +8 -1
- package/src/workers/worker.ts +67 -7
- package/dist/chunk-3z1vxzcm.js +0 -234
- package/dist/chunk-3z1vxzcm.js.map +0 -12
- package/dist/chunk-48c1z8nj.js.map +0 -10
- package/dist/chunk-58geavnf.js +0 -29
- package/dist/chunk-58geavnf.js.map +0 -10
- package/dist/chunk-5a4a52tq.js.map +0 -10
- package/dist/chunk-9nsjjd44.js.map +0 -12
- package/dist/chunk-b9qfh2ya.js.map +0 -11
- package/dist/chunk-eptrvnby.js.map +0 -12
- package/dist/chunk-f6ahf5gf.js.map +0 -13
- package/dist/chunk-gxwy4c3s.js.map +0 -47
- package/dist/chunk-hvbvq7p4.js.map +0 -18
- package/dist/chunk-m2jerfef.js +0 -474
- package/dist/chunk-m2jerfef.js.map +0 -11
- package/dist/chunk-msyevpp3.js.map +0 -22
- package/dist/chunk-n4zzaf6q.js.map +0 -10
- package/dist/chunk-rsrc7vtw.js.map +0 -49
- package/dist/chunk-rsxb14an.js.map +0 -18
- package/dist/chunk-smnt672s.js.map +0 -10
- package/dist/chunk-t0s7b3d1.js.map +0 -13
- package/dist/chunk-td26wjr5.js.map +0 -13
- package/dist/chunk-vzkxqf8h.js.map +0 -23
- package/dist/chunk-wa05txmk.js.map +0 -11
- package/dist/chunk-yv8hv4wq.js.map +0 -10
- package/dist/chunk-yy914zfr.js.map +0 -30
- package/dist/chunk-zeykm8my.js.map +0 -14
- /package/dist/{chunk-stmxh0hv.js.map → chunk-3neam1y5.js.map} +0 -0
- /package/dist/{chunk-p8pgnq8d.js.map → chunk-425ydk65.js.map} +0 -0
- /package/dist/{chunk-p351afzm.js.map → chunk-5sswe5ej.js.map} +0 -0
- /package/dist/{chunk-e0hnbb1m.js.map → chunk-61zptves.js.map} +0 -0
- /package/dist/{chunk-fe6r7yhg.js.map → chunk-92wrka15.js.map} +0 -0
- /package/dist/{chunk-q9nkpr8k.js.map → chunk-9tpmfh3n.js.map} +0 -0
- /package/dist/{chunk-sysnvjce.js.map → chunk-brhp9d97.js.map} +0 -0
- /package/dist/{chunk-8a8k38tz.js.map → chunk-brybqw5k.js.map} +0 -0
- /package/dist/{chunk-855w9nvw.js.map → chunk-cg7cygfj.js.map} +0 -0
- /package/dist/{chunk-r2psmn42.js.map → chunk-eg6xqef7.js.map} +0 -0
- /package/dist/{chunk-7kpqntgw.js.map → chunk-f05994as.js.map} +0 -0
- /package/dist/{chunk-2bn6813a.js.map → chunk-grt2j5vp.js.map} +0 -0
- /package/dist/{chunk-rtdrm592.js.map → chunk-htdzx40w.js.map} +0 -0
- /package/dist/{chunk-bc3y6gff.js.map → chunk-jka26v8c.js.map} +0 -0
- /package/dist/{chunk-6ef4esq4.js.map → chunk-pqj8vff9.js.map} +0 -0
- /package/dist/{chunk-n68vz95m.js.map → chunk-qbd282aa.js.map} +0 -0
- /package/dist/{chunk-r9rtavg9.js.map → chunk-t19wjmnc.js.map} +0 -0
- /package/dist/{chunk-dhkc9b23.js.map → chunk-v8a1qjzp.js.map} +0 -0
- /package/dist/{chunk-8bns0y68.js.map → chunk-xf76csps.js.map} +0 -0
- /package/dist/{chunk-vepea5c3.js.map → chunk-ym1bqd98.js.map} +0 -0
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-wkv3h3q7.js";
|
|
5
5
|
import {
|
|
6
6
|
OntologyRegistry2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-v8a1qjzp.js";
|
|
8
8
|
import {
|
|
9
9
|
assertViewConditionsReadable,
|
|
10
10
|
SecurityRegistry,
|
|
11
11
|
AuthRuntime2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-394zjzjs.js";
|
|
13
13
|
import {
|
|
14
14
|
captureSixbFailure2,
|
|
15
15
|
isSixbError2
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
captureExecutionScope,
|
|
19
19
|
resolveExecutionScopeAuthorization,
|
|
20
20
|
AuthorizationError2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-tapdssb5.js";
|
|
22
22
|
import {
|
|
23
23
|
AuthRuntimeError2,
|
|
24
24
|
isMagicLinkAuthStrategy2,
|
|
@@ -38,9 +38,15 @@ import {
|
|
|
38
38
|
createModelCatalog2,
|
|
39
39
|
estimateModelCall
|
|
40
40
|
} from "./chunk-qttqe1ah.js";
|
|
41
|
+
import {
|
|
42
|
+
DEFAULT_PROJECT_LOCALE,
|
|
43
|
+
DEFAULT_PROJECT_TIME_ZONE,
|
|
44
|
+
canonicalLocale,
|
|
45
|
+
canonicalTimeZone2
|
|
46
|
+
} from "./chunk-dq3t5sr3.js";
|
|
41
47
|
import {
|
|
42
48
|
FileUploadSessionError2
|
|
43
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-cg7cygfj.js";
|
|
44
50
|
import {
|
|
45
51
|
ACTIVITY_VISIT_ID_PATTERN2,
|
|
46
52
|
ACTIVITY_ID_MAX_LENGTH2,
|
|
@@ -48,30 +54,26 @@ import {
|
|
|
48
54
|
ACTIVITY_MAX_PAGE_SIZE2,
|
|
49
55
|
ACTIVITY_MIN_IDLE_TIMEOUT_MS,
|
|
50
56
|
validateActivityEvents
|
|
51
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-88xeh6zx.js";
|
|
52
58
|
import {
|
|
53
59
|
isMigrationCapableStorage2,
|
|
54
60
|
checkStorageSchema2
|
|
55
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-9c9yknwt.js";
|
|
56
62
|
import {
|
|
57
63
|
createAuthorizedObjectReader
|
|
58
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-fmgf9h5e.js";
|
|
59
65
|
import {
|
|
60
66
|
ActionRegistry2,
|
|
61
67
|
createAgentApprovalExecutor,
|
|
62
68
|
registerAgentApprovalExecutor,
|
|
63
69
|
assertTurnModelRouting,
|
|
64
|
-
DEFAULT_PROJECT_LOCALE,
|
|
65
|
-
DEFAULT_PROJECT_TIME_ZONE,
|
|
66
|
-
canonicalLocale,
|
|
67
|
-
canonicalTimeZone,
|
|
68
70
|
assertNoAgentDefinitions,
|
|
69
71
|
validateWorkflowsAtStartup2,
|
|
70
72
|
validateWorkflowAgentStepGroupReferences2,
|
|
71
73
|
createBoundSixb,
|
|
72
74
|
ActionRunExecutor,
|
|
73
75
|
registerActionRunExecutor
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-ats8y3d9.js";
|
|
75
77
|
import {
|
|
76
78
|
attachSixbErrorReporter2,
|
|
77
79
|
shareSixbErrorReporter2
|
|
@@ -81,10 +83,11 @@ import {
|
|
|
81
83
|
createOntologyMutationRuntime2,
|
|
82
84
|
decodeActivityConnectionsCursor,
|
|
83
85
|
ModelExecutionSession
|
|
84
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ym1bqd98.js";
|
|
85
87
|
import {
|
|
86
|
-
registerConnectorConnectionCallbackProcess
|
|
87
|
-
|
|
88
|
+
registerConnectorConnectionCallbackProcess,
|
|
89
|
+
registerSandboxConnectionTokenAccess2
|
|
90
|
+
} from "./chunk-0pmpwn3g.js";
|
|
88
91
|
import {
|
|
89
92
|
ConnectorError2,
|
|
90
93
|
ConnectorNotFoundError2,
|
|
@@ -95,8 +98,9 @@ import {
|
|
|
95
98
|
providerBoundaryError,
|
|
96
99
|
isConnectorStorageError,
|
|
97
100
|
storageBoundaryError,
|
|
98
|
-
recoverConnectorFailure
|
|
99
|
-
|
|
101
|
+
recoverConnectorFailure,
|
|
102
|
+
assertPersonalConnectionRequester
|
|
103
|
+
} from "./chunk-n1hbwc6y.js";
|
|
100
104
|
import {
|
|
101
105
|
assertDatasetDefinition2,
|
|
102
106
|
isDatasetPick2
|
|
@@ -104,24 +108,29 @@ import {
|
|
|
104
108
|
import {
|
|
105
109
|
ProjectionRegistry2,
|
|
106
110
|
createOntologyMaterializer2
|
|
107
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-ykchk644.js";
|
|
112
|
+
import {
|
|
113
|
+
registerSyncConnections,
|
|
114
|
+
createSyncConnections,
|
|
115
|
+
SyncValidationError2
|
|
116
|
+
} from "./chunk-90nqenq8.js";
|
|
108
117
|
import {
|
|
109
118
|
LoggingService2
|
|
110
119
|
} from "./chunk-1vg43g9q.js";
|
|
111
120
|
import {
|
|
112
121
|
OntologyOutboxDispatcher2,
|
|
113
122
|
createDomainEventService2
|
|
114
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-xxfj0rr2.js";
|
|
115
124
|
import {
|
|
116
125
|
nextCronOccurrence2,
|
|
117
126
|
validateSchedulesAtStartup2
|
|
118
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-dvgc56n2.js";
|
|
119
128
|
import {
|
|
120
129
|
resolveAgentWebOptions,
|
|
121
130
|
assertNoProviderWebTools,
|
|
122
131
|
toolsFromProjectConfig,
|
|
123
132
|
assertMaxSteps
|
|
124
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-7r9mqpva.js";
|
|
125
134
|
import {
|
|
126
135
|
discoverOntologyFiles,
|
|
127
136
|
discoverAgentSkills,
|
|
@@ -130,7 +139,7 @@ import {
|
|
|
130
139
|
validateSharesAtStartup,
|
|
131
140
|
discoverOntologySources,
|
|
132
141
|
discoverProjectDefinitions2
|
|
133
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-t19wjmnc.js";
|
|
134
143
|
import {
|
|
135
144
|
createDatasetIngestRuntime,
|
|
136
145
|
registerDatasetIngestRuntime,
|
|
@@ -143,10 +152,10 @@ import {
|
|
|
143
152
|
createVectorIndexingRuntime,
|
|
144
153
|
registerVectorIndexingRuntime,
|
|
145
154
|
getApiPublicOrigin
|
|
146
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-xf76csps.js";
|
|
147
156
|
import {
|
|
148
157
|
registerProjectionRegistry2
|
|
149
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-brhp9d97.js";
|
|
150
159
|
import {
|
|
151
160
|
registeredSteps,
|
|
152
161
|
runStepLineages,
|
|
@@ -168,17 +177,14 @@ import {
|
|
|
168
177
|
everyMs,
|
|
169
178
|
MaintenanceLoop
|
|
170
179
|
} from "./chunk-j0wgh8gv.js";
|
|
171
|
-
import {
|
|
172
|
-
SyncValidationError2
|
|
173
|
-
} from "./chunk-3z1vxzcm.js";
|
|
174
180
|
import {
|
|
175
181
|
SandboxError2,
|
|
176
182
|
createSandboxDefinition,
|
|
177
183
|
sandboxCredentialIssue2
|
|
178
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-htdzx40w.js";
|
|
179
185
|
import {
|
|
180
186
|
ensureExecutionRecord2
|
|
181
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-xavet0qs.js";
|
|
182
188
|
import {
|
|
183
189
|
PendingTasks,
|
|
184
190
|
reportEventDeliveryFailure3,
|
|
@@ -1475,8 +1481,10 @@ class DefaultConnectorAuthorizationLifecycle {
|
|
|
1475
1481
|
mutations;
|
|
1476
1482
|
credentials;
|
|
1477
1483
|
tokens;
|
|
1484
|
+
events;
|
|
1478
1485
|
constructor(options) {
|
|
1479
1486
|
this.projectId = options.projectId;
|
|
1487
|
+
this.events = options.events;
|
|
1480
1488
|
this.storage = options.storage;
|
|
1481
1489
|
this.resolveDefinition = options.resolveDefinition;
|
|
1482
1490
|
this.accountSelectionTtlMs = positiveDuration(options.accountSelectionTtlMs, "account selection TTL");
|
|
@@ -1573,7 +1581,17 @@ class DefaultConnectorAuthorizationLifecycle {
|
|
|
1573
1581
|
}
|
|
1574
1582
|
async completeReauthorization(input) {
|
|
1575
1583
|
this.assertRegistered(input.definition);
|
|
1576
|
-
|
|
1584
|
+
const authorization = await this.mutations.runLocallySerialized(input.authorizationId, () => this.completeReauthorizationMutation(input));
|
|
1585
|
+
const connections = await this.storage.listConnectionsByAuthorization({
|
|
1586
|
+
projectId: this.projectId,
|
|
1587
|
+
connectorId: input.definition.id,
|
|
1588
|
+
authorizationId: authorization.id
|
|
1589
|
+
}).catch((error) => {
|
|
1590
|
+
console.warn("[Sixb] Reconnected connections could not be read to announce them.", error);
|
|
1591
|
+
return [];
|
|
1592
|
+
});
|
|
1593
|
+
await this.events.connected(connections.filter((connection) => connection.status === "connected"), "reconnected");
|
|
1594
|
+
return authorization;
|
|
1577
1595
|
}
|
|
1578
1596
|
async revokeAuthorization(input) {
|
|
1579
1597
|
this.assertRegistered(input.definition);
|
|
@@ -1637,7 +1655,8 @@ class DefaultConnectorAuthorizationLifecycle {
|
|
|
1637
1655
|
try {
|
|
1638
1656
|
await this.mutations.executeCredentialMutation(claim.authorization, async (executing, signal) => {
|
|
1639
1657
|
if (definition.adapter.authentication.revoke && credentials) {
|
|
1640
|
-
await
|
|
1658
|
+
const connectedAccountIds = await this.accountsConnectedElsewhere(definition.id, claim.authorization.id);
|
|
1659
|
+
await definition.adapter.authentication.revoke(this.adapterContext(definition.id, signal), credentials, { connectedAccountIds });
|
|
1641
1660
|
}
|
|
1642
1661
|
return this.mutations.stageCredentialMutationRevocation(executing, signal);
|
|
1643
1662
|
});
|
|
@@ -1721,6 +1740,11 @@ class DefaultConnectorAuthorizationLifecycle {
|
|
|
1721
1740
|
async discoverAccounts(definition, credentials) {
|
|
1722
1741
|
return validateAccounts(await this.mutations.withBoundedProviderSignal((signal) => definition.adapter.discoverAccounts(this.adapterContext(definition.id, signal), credentials), () => createConnectorCodedError("connector.provider_failed", "Connector account discovery did not complete.")));
|
|
1723
1742
|
}
|
|
1743
|
+
async accountsConnectedElsewhere(connectorId, authorizationId) {
|
|
1744
|
+
const connections = await withConnectorStorageBoundary("Connector connections could not be read before revocation.", () => this.storage.listConnections({ projectId: this.projectId, connectorId }));
|
|
1745
|
+
const accountIds = connections.filter((connection) => connection.status === "connected").filter((connection) => connection.authorizationId !== authorizationId).map((connection) => connection.account.id);
|
|
1746
|
+
return [...new Set(accountIds)].sort();
|
|
1747
|
+
}
|
|
1724
1748
|
adapterContext(connectorId, signal) {
|
|
1725
1749
|
return { projectId: this.projectId, connectorId, signal };
|
|
1726
1750
|
}
|
|
@@ -1792,6 +1816,40 @@ function sameConnectorConnectionCommandActor(left, right) {
|
|
|
1792
1816
|
return left.principal.type === right.principal.type && left.principal.id === right.principal.id && left.credential.type === right.credential.type && left.credential.id === right.credential.id;
|
|
1793
1817
|
}
|
|
1794
1818
|
|
|
1819
|
+
// src/connectors/connections/events.ts
|
|
1820
|
+
class ConnectorConnectionEvents {
|
|
1821
|
+
events;
|
|
1822
|
+
constructor(events) {
|
|
1823
|
+
this.events = events;
|
|
1824
|
+
}
|
|
1825
|
+
connected(connections, reason) {
|
|
1826
|
+
return this.emit(connections.map((connection) => ({
|
|
1827
|
+
type: "connector.connection.connected",
|
|
1828
|
+
payload: { connectorId: connection.connectorId, connection: metadata(connection), reason }
|
|
1829
|
+
})));
|
|
1830
|
+
}
|
|
1831
|
+
disconnected(connections, reason) {
|
|
1832
|
+
return this.emit(connections.map((connection) => ({
|
|
1833
|
+
type: "connector.connection.disconnected",
|
|
1834
|
+
payload: { connectorId: connection.connectorId, connection: metadata(connection), reason }
|
|
1835
|
+
})));
|
|
1836
|
+
}
|
|
1837
|
+
async emit(events) {
|
|
1838
|
+
if (!this.events || events.length === 0)
|
|
1839
|
+
return;
|
|
1840
|
+
await this.events.emit({ events }, { source: "Sixb" });
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
function metadata(connection) {
|
|
1844
|
+
return {
|
|
1845
|
+
id: connection.id,
|
|
1846
|
+
connectorId: connection.connectorId,
|
|
1847
|
+
owner: connection.owner,
|
|
1848
|
+
slot: connection.slot,
|
|
1849
|
+
account: connection.account
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1795
1853
|
// src/connectors/connections/request.ts
|
|
1796
1854
|
import { createHash as createHash2, randomBytes as randomBytes2, randomUUID as randomUUID4 } from "crypto";
|
|
1797
1855
|
|
|
@@ -2062,6 +2120,7 @@ class ConnectorConnectionRunService {
|
|
|
2062
2120
|
processingTtlMs;
|
|
2063
2121
|
selectionTtlMs;
|
|
2064
2122
|
now;
|
|
2123
|
+
events;
|
|
2065
2124
|
maintenanceTimers = new Map;
|
|
2066
2125
|
constructor(options) {
|
|
2067
2126
|
this.projectId = options.projectId;
|
|
@@ -2073,6 +2132,7 @@ class ConnectorConnectionRunService {
|
|
|
2073
2132
|
this.processingTtlMs = positiveDuration(options.processingTtlMs, "connection run processing TTL");
|
|
2074
2133
|
this.selectionTtlMs = positiveDuration(options.selectionTtlMs, "account selection TTL");
|
|
2075
2134
|
this.now = options.now;
|
|
2135
|
+
this.events = options.events;
|
|
2076
2136
|
}
|
|
2077
2137
|
async startSelection(command, connectorId, input) {
|
|
2078
2138
|
const runId = `ccr_${randomUUID5()}`;
|
|
@@ -2273,6 +2333,7 @@ class ConnectorConnectionRunService {
|
|
|
2273
2333
|
}
|
|
2274
2334
|
throw storageBoundaryError(error, "Connector account selection could not be persisted.");
|
|
2275
2335
|
}
|
|
2336
|
+
await this.events.connected([selected.connection], selected.replaced ? "replaced" : "connected");
|
|
2276
2337
|
const cleanupCompleted = selected.revocationPendingAuthorizationId ? await this.continuePendingRevocation(run.connectorId, selected.revocationPendingAuthorizationId) : true;
|
|
2277
2338
|
if (cleanupCompleted) {
|
|
2278
2339
|
this.cancelRunMaintenance(run.id);
|
|
@@ -2576,6 +2637,7 @@ class ConnectorConnectionService {
|
|
|
2576
2637
|
authorizations;
|
|
2577
2638
|
requests;
|
|
2578
2639
|
runs;
|
|
2640
|
+
events;
|
|
2579
2641
|
callbackProcess;
|
|
2580
2642
|
constructor(projectId, definitions, options = {}) {
|
|
2581
2643
|
this.projectId = projectId;
|
|
@@ -2590,6 +2652,7 @@ class ConnectorConnectionService {
|
|
|
2590
2652
|
const accountSelectionTtlMs = options.accountSelectionTtlMs ?? DEFAULT_SELECTION_TTL_MS;
|
|
2591
2653
|
const providerOperationTimeoutMs = positiveDuration(options.providerOperationTimeoutMs ?? DEFAULT_PROVIDER_OPERATION_TIMEOUT_MS, "provider operation timeout");
|
|
2592
2654
|
this.providerOperationTimeoutMs = providerOperationTimeoutMs;
|
|
2655
|
+
this.events = new ConnectorConnectionEvents(options.events);
|
|
2593
2656
|
this.authorizations = new DefaultConnectorAuthorizationLifecycle({
|
|
2594
2657
|
projectId,
|
|
2595
2658
|
storage: storage.connectorConnections,
|
|
@@ -2600,7 +2663,8 @@ class ConnectorConnectionService {
|
|
|
2600
2663
|
credentialMutationLeaseMs: options.credentialMutationLeaseMs ?? DEFAULT_CREDENTIAL_MUTATION_LEASE_MS,
|
|
2601
2664
|
providerOperationTimeoutMs,
|
|
2602
2665
|
refreshSkewMs: options.refreshSkewMs ?? DEFAULT_REFRESH_SKEW_MS,
|
|
2603
|
-
now
|
|
2666
|
+
now,
|
|
2667
|
+
events: this.events
|
|
2604
2668
|
});
|
|
2605
2669
|
this.requests = new ConnectorAuthorizationRequestHandler({
|
|
2606
2670
|
projectId,
|
|
@@ -2620,13 +2684,40 @@ class ConnectorConnectionService {
|
|
|
2620
2684
|
resolveDefinition,
|
|
2621
2685
|
processingTtlMs: options.connectionRunProcessingTtlMs ?? providerOperationTimeoutMs * 2 + 30000,
|
|
2622
2686
|
selectionTtlMs: accountSelectionTtlMs,
|
|
2623
|
-
now
|
|
2687
|
+
now,
|
|
2688
|
+
events: this.events
|
|
2624
2689
|
});
|
|
2625
2690
|
this.callbackProcess = Object.freeze({
|
|
2626
2691
|
completeConnectionRun: (input) => this.completeConnectionRun(input)
|
|
2627
2692
|
});
|
|
2628
2693
|
}
|
|
2629
2694
|
async connectConnection(definition, selector) {
|
|
2695
|
+
const readable = await this.requireReadableConnection(definition, selector);
|
|
2696
|
+
return this.connectExecutionConnection(definition, readable);
|
|
2697
|
+
}
|
|
2698
|
+
createConnectionTokenSource(definition, selector) {
|
|
2699
|
+
this.assertOAuthRegistered(definition);
|
|
2700
|
+
assertConnectorConnectionSelector(selector);
|
|
2701
|
+
let current;
|
|
2702
|
+
return Object.freeze({
|
|
2703
|
+
get: async () => {
|
|
2704
|
+
const readable = await this.requireReadableConnection(definition, selector);
|
|
2705
|
+
if (readable.projectId !== this.projectId || readable.connectorId !== definition.id || readable.status !== "connected") {
|
|
2706
|
+
throw createConnectorCodedError("connector.not_found", `Connector '${definition.id}' connection '${readable.id}' is not active in this project.`);
|
|
2707
|
+
}
|
|
2708
|
+
const authorization = await this.authorizations.requireStableActiveAuthorization(definition, readable.authorizationId);
|
|
2709
|
+
if (current?.authorizationId !== authorization.id || current.accountId !== readable.account.id) {
|
|
2710
|
+
current = {
|
|
2711
|
+
authorizationId: authorization.id,
|
|
2712
|
+
accountId: readable.account.id,
|
|
2713
|
+
source: this.authorizations.createTokenSource(definition, authorization.id, readable.account)
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
return current.source.get();
|
|
2717
|
+
}
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
async requireReadableConnection(definition, selector) {
|
|
2630
2721
|
this.assertOAuthRegistered(definition);
|
|
2631
2722
|
assertConnectorConnectionSelector(selector);
|
|
2632
2723
|
const connection = await withConnectorStorageBoundary("Connector connection could not be read.", () => this.connectionStorage.getConnection({
|
|
@@ -2641,21 +2732,25 @@ class ConnectorConnectionService {
|
|
|
2641
2732
|
if (!readable) {
|
|
2642
2733
|
throw createConnectorCodedError("connector.not_found", `Connector '${definition.id}' does not open the connections of a suspended member.`);
|
|
2643
2734
|
}
|
|
2644
|
-
return
|
|
2735
|
+
return readable;
|
|
2645
2736
|
}
|
|
2646
2737
|
async listExecutionConnections(definition) {
|
|
2738
|
+
const connections = await this.listAllConnections(definition);
|
|
2739
|
+
const connected = connections.filter((connection) => connection.status === "connected");
|
|
2740
|
+
return this.withoutSuspendedOwners(connected);
|
|
2741
|
+
}
|
|
2742
|
+
async listAllConnections(definition) {
|
|
2647
2743
|
this.assertOAuthRegistered(definition);
|
|
2648
2744
|
const connections = await withConnectorStorageBoundary("Connector connections could not be listed.", () => this.connectionStorage.listConnections({
|
|
2649
2745
|
projectId: this.projectId,
|
|
2650
2746
|
connectorId: definition.id
|
|
2651
2747
|
}));
|
|
2652
|
-
|
|
2653
|
-
const readable = await this.withoutSuspendedOwners(connected);
|
|
2654
|
-
return [...readable].sort((left, right) => left.id.localeCompare(right.id));
|
|
2748
|
+
return [...connections].sort((left, right) => left.id.localeCompare(right.id));
|
|
2655
2749
|
}
|
|
2656
2750
|
async revokeUserConnections(userId) {
|
|
2657
2751
|
const principal = { type: "user", id: nonblank(userId, "user id") };
|
|
2658
2752
|
const failures = [];
|
|
2753
|
+
const suspended = [];
|
|
2659
2754
|
for (const definition of this.definitionsById.values()) {
|
|
2660
2755
|
if (!isOAuthConnectorDefinition2(definition))
|
|
2661
2756
|
continue;
|
|
@@ -2668,12 +2763,18 @@ class ConnectorConnectionService {
|
|
|
2668
2763
|
const authorizationIds = new Set(connections.filter(({ owner }) => owner.type === "user" && owner.id === principal.id).map((connection) => connection.authorizationId));
|
|
2669
2764
|
for (const authorizationId of authorizationIds) {
|
|
2670
2765
|
try {
|
|
2671
|
-
await this.authorizations.revokeAuthorization({
|
|
2766
|
+
const revoked = await this.authorizations.revokeAuthorization({
|
|
2767
|
+
definition,
|
|
2768
|
+
authorizationId,
|
|
2769
|
+
principal
|
|
2770
|
+
});
|
|
2771
|
+
suspended.push(...revoked.disconnected);
|
|
2672
2772
|
} catch (error) {
|
|
2673
2773
|
failures.push(error);
|
|
2674
2774
|
}
|
|
2675
2775
|
}
|
|
2676
2776
|
}
|
|
2777
|
+
await this.events.disconnected(suspended, "suspended");
|
|
2677
2778
|
if (failures.length > 0) {
|
|
2678
2779
|
throw new AggregateError(failures, `[Sixb] ${failures.length} connector grants of user '${principal.id}' could not be revoked.`);
|
|
2679
2780
|
}
|
|
@@ -2846,6 +2947,7 @@ class ConnectorConnectionService {
|
|
|
2846
2947
|
}
|
|
2847
2948
|
throw storageBoundaryError(error, "Connector account selection could not be persisted.");
|
|
2848
2949
|
}
|
|
2950
|
+
await this.events.connected([result.connection], result.replaced ? "replaced" : "connected");
|
|
2849
2951
|
if (result.revocationPendingAuthorizationId) {
|
|
2850
2952
|
await this.continuePendingRevocation(definition, result.revocationPendingAuthorizationId);
|
|
2851
2953
|
}
|
|
@@ -2879,6 +2981,7 @@ class ConnectorConnectionService {
|
|
|
2879
2981
|
});
|
|
2880
2982
|
if (!disconnected)
|
|
2881
2983
|
return null;
|
|
2984
|
+
await this.events.disconnected([disconnected.connection], "disconnected");
|
|
2882
2985
|
if (disconnected.revocationPendingAuthorizationId) {
|
|
2883
2986
|
await this.continuePendingRevocation(definition, disconnected.revocationPendingAuthorizationId);
|
|
2884
2987
|
}
|
|
@@ -2897,6 +3000,7 @@ class ConnectorConnectionService {
|
|
|
2897
3000
|
authorizationId: nonblank(authorizationId, "authorization id", "connector.authorization_invalid"),
|
|
2898
3001
|
principal: actor.principal
|
|
2899
3002
|
});
|
|
3003
|
+
await this.events.disconnected(revoked.disconnected, "revoked");
|
|
2900
3004
|
return {
|
|
2901
3005
|
affectedConnections: revoked.disconnected.map((connection) => connectorConnectionView(connection, "revoked"))
|
|
2902
3006
|
};
|
|
@@ -3036,9 +3140,19 @@ class ConnectorService {
|
|
|
3036
3140
|
connectConnection(definition, selector) {
|
|
3037
3141
|
return this.requireConnections().connectConnection(definition, selector);
|
|
3038
3142
|
}
|
|
3143
|
+
createConnectionTokenSource(connector, selector) {
|
|
3144
|
+
const definition = connector;
|
|
3145
|
+
if (!isOAuthConnectorDefinition2(definition)) {
|
|
3146
|
+
throw createConnectorCodedError("connector.configuration_invalid", `[Sixb] Connector '${connector.id}' does not use persistent OAuth connections.`);
|
|
3147
|
+
}
|
|
3148
|
+
return this.requireConnections().createConnectionTokenSource(definition, selector);
|
|
3149
|
+
}
|
|
3039
3150
|
listExecutionConnections(definition) {
|
|
3040
3151
|
return this.requireConnections().listExecutionConnections(definition);
|
|
3041
3152
|
}
|
|
3153
|
+
listAllConnections(definition) {
|
|
3154
|
+
return this.requireConnections().listAllConnections(definition);
|
|
3155
|
+
}
|
|
3042
3156
|
async revokeUserConnections(userId) {
|
|
3043
3157
|
await this.connections?.revokeUserConnections(userId);
|
|
3044
3158
|
}
|
|
@@ -4206,7 +4320,8 @@ function resolveDefinitions(options) {
|
|
|
4206
4320
|
registeredRuleIds: new Set(rulesById.keys()),
|
|
4207
4321
|
registeredDatasetIds: new Set(datasetsById.keys()),
|
|
4208
4322
|
registeredSyncIds: new Set(syncsById.keys()),
|
|
4209
|
-
registeredPipelineIds: new Set(pipelinesById.keys())
|
|
4323
|
+
registeredPipelineIds: new Set(pipelinesById.keys()),
|
|
4324
|
+
registeredOAuthConnectorIds: new Set([...connectorsById.values()].filter(isOAuthConnectorDefinition2).map(({ id }) => id))
|
|
4210
4325
|
});
|
|
4211
4326
|
for (const sync of syncs) {
|
|
4212
4327
|
validateScheduleReferences("Sync", sync.id, sync.triggers, schedulesById);
|
|
@@ -4442,9 +4557,12 @@ class SixbHost2 {
|
|
|
4442
4557
|
sandboxes;
|
|
4443
4558
|
projectRoot;
|
|
4444
4559
|
cron;
|
|
4560
|
+
errorReporter;
|
|
4561
|
+
scriptProcess = null;
|
|
4445
4562
|
auth;
|
|
4446
4563
|
constructor(options) {
|
|
4447
4564
|
const errorReporter = attachSixbErrorReporter2(this, options.onError);
|
|
4565
|
+
this.errorReporter = errorReporter;
|
|
4448
4566
|
this.projectId = options.id ?? "default";
|
|
4449
4567
|
this.locale = resolveProjectLocale(options.locale);
|
|
4450
4568
|
this.timeZone = resolveProjectTimeZone(options.timeZone);
|
|
@@ -4510,11 +4628,17 @@ class SixbHost2 {
|
|
|
4510
4628
|
const credentialProtector = hasOAuthConnectors && options.connectorConnections?.encryptionKey !== undefined ? createConnectorCredentialProtectorFromKey(options.connectorConnections.encryptionKey) : undefined;
|
|
4511
4629
|
this.connectorService = new ConnectorService(this.projectId, connectors, {
|
|
4512
4630
|
storage: this.storage,
|
|
4513
|
-
credentialProtector
|
|
4631
|
+
credentialProtector,
|
|
4632
|
+
events: this.eventService
|
|
4514
4633
|
});
|
|
4515
4634
|
if (this.connectorService.connectionProcess) {
|
|
4516
4635
|
registerConnectorConnectionCallbackProcess(this, this.connectorService.connectionProcess.callbackProcess);
|
|
4636
|
+
registerSyncConnections(this, createSyncConnections(this.connectorService));
|
|
4517
4637
|
}
|
|
4638
|
+
registerSandboxConnectionTokenAccess2(this, ({ connector, selector, requestedBy }) => {
|
|
4639
|
+
assertPersonalConnectionRequester(connector, requestedBy, selector);
|
|
4640
|
+
return this.connectorService.createConnectionTokenSource(connector, selector);
|
|
4641
|
+
});
|
|
4518
4642
|
assertWebhookRunStorage(connectors, this.storage);
|
|
4519
4643
|
this.webhookRegistry = new WebhookRegistry({ connectors });
|
|
4520
4644
|
this.materializer = createOntologyMaterializer2({
|
|
@@ -4598,7 +4722,11 @@ class SixbHost2 {
|
|
|
4598
4722
|
if (authorization.type === "unrestricted" && authorization.ref.type === "kernel") {
|
|
4599
4723
|
throw new Error("[Sixb] Kernel authority cannot be bound to the domain SDK.");
|
|
4600
4724
|
}
|
|
4601
|
-
|
|
4725
|
+
if (capturedScope.execution.executor.type === "script")
|
|
4726
|
+
this.enterScriptProcess();
|
|
4727
|
+
const hostContext = this.scriptProcess?.context ?? this.hostContext;
|
|
4728
|
+
const enqueues = this.scriptProcess?.enqueues ?? true;
|
|
4729
|
+
const modelExecution = new ModelExecutionSession({ ...hostContext, runtimeAuthorization: capturedScope.authorization }, capturedScope.execution);
|
|
4602
4730
|
const embeddingModels = bindEmbeddingModels(this.hostContext.embeddingModels, modelExecution);
|
|
4603
4731
|
const rerankingModels = bindRerankingModels(this.hostContext.rerankingModels, modelExecution);
|
|
4604
4732
|
const objectReader = createAuthorizedObjectReader({
|
|
@@ -4611,7 +4739,7 @@ class SixbHost2 {
|
|
|
4611
4739
|
users: this.storage.auth?.users
|
|
4612
4740
|
});
|
|
4613
4741
|
const runtime = {
|
|
4614
|
-
...
|
|
4742
|
+
...hostContext,
|
|
4615
4743
|
embeddingModels,
|
|
4616
4744
|
rerankingModels,
|
|
4617
4745
|
modelExecution,
|
|
@@ -4623,12 +4751,29 @@ class SixbHost2 {
|
|
|
4623
4751
|
materializer: this.materializer.withScope(capturedScope),
|
|
4624
4752
|
notifyCommittedFacts: () => {
|
|
4625
4753
|
this.committedFacts.notify();
|
|
4626
|
-
|
|
4754
|
+
if (enqueues)
|
|
4755
|
+
this.vectorIndexing?.notify();
|
|
4627
4756
|
},
|
|
4628
4757
|
onProjectionApplied: () => this.appliedMarkings.invalidate()
|
|
4629
4758
|
}));
|
|
4630
4759
|
return createBoundSixb(runtime, this.sixbDependencies(), capturedScope.execution);
|
|
4631
4760
|
}
|
|
4761
|
+
enterScriptProcess() {
|
|
4762
|
+
if (this.scriptProcess)
|
|
4763
|
+
return;
|
|
4764
|
+
const publishes = this.broker.scope !== "process";
|
|
4765
|
+
const enqueues = this.queues.scope !== "process";
|
|
4766
|
+
if (!publishes)
|
|
4767
|
+
this.committedFacts.relinquish();
|
|
4768
|
+
this.scriptProcess = {
|
|
4769
|
+
enqueues,
|
|
4770
|
+
context: {
|
|
4771
|
+
...this.hostContext,
|
|
4772
|
+
...publishes ? {} : { events: refuseScriptEvents(this.eventService, this.projectId, this.errorReporter) },
|
|
4773
|
+
...enqueues ? {} : { queues: refuseScriptEnqueues(this.queues) }
|
|
4774
|
+
}
|
|
4775
|
+
};
|
|
4776
|
+
}
|
|
4632
4777
|
get id() {
|
|
4633
4778
|
return this.projectId;
|
|
4634
4779
|
}
|
|
@@ -4708,7 +4853,7 @@ class SixbHost2 {
|
|
|
4708
4853
|
definition: this.sandboxDefinition,
|
|
4709
4854
|
supportsPersistence: typeof this.sandboxes?.resume === "function"
|
|
4710
4855
|
},
|
|
4711
|
-
|
|
4856
|
+
rendersInSandboxes: this.sandboxes !== undefined,
|
|
4712
4857
|
logging: this.logging,
|
|
4713
4858
|
activity: this.activity,
|
|
4714
4859
|
connectorService: this.connectorService,
|
|
@@ -4734,7 +4879,7 @@ function resolveProjectLocale(locale) {
|
|
|
4734
4879
|
function resolveProjectTimeZone(timeZone) {
|
|
4735
4880
|
if (timeZone === undefined)
|
|
4736
4881
|
return DEFAULT_PROJECT_TIME_ZONE;
|
|
4737
|
-
const canonical =
|
|
4882
|
+
const canonical = canonicalTimeZone2(timeZone);
|
|
4738
4883
|
if (canonical === undefined) {
|
|
4739
4884
|
throw new RuntimeError2(`[Sixb] 'timeZone' must be an IANA time zone such as "Europe/Paris"; received ${JSON.stringify(timeZone)}.`);
|
|
4740
4885
|
}
|
|
@@ -4772,6 +4917,55 @@ function assertSandboxCredentials(sandboxes) {
|
|
|
4772
4917
|
if (issue)
|
|
4773
4918
|
throw new SandboxError2(`[Sixb] ${issue}`);
|
|
4774
4919
|
}
|
|
4920
|
+
var QUEUE_LANES = [
|
|
4921
|
+
"vectorIndexing",
|
|
4922
|
+
"lake",
|
|
4923
|
+
"syncRuns",
|
|
4924
|
+
"pipelines",
|
|
4925
|
+
"projections",
|
|
4926
|
+
"workflows",
|
|
4927
|
+
"agents"
|
|
4928
|
+
];
|
|
4929
|
+
function refuseScriptEvents(events, projectId, errorReporter) {
|
|
4930
|
+
const refusal = () => new Error("[Sixb] A script cannot append events on this project's broker: it only works inside one " + "process. Append them from the app or the API, or configure a shared broker.");
|
|
4931
|
+
return delegate(events, (property) => {
|
|
4932
|
+
if (property === "append") {
|
|
4933
|
+
return async () => {
|
|
4934
|
+
throw refusal();
|
|
4935
|
+
};
|
|
4936
|
+
}
|
|
4937
|
+
if (property === "emit") {
|
|
4938
|
+
return async (input) => {
|
|
4939
|
+
reportEventDeliveryFailure3(errorReporter, refusal(), {
|
|
4940
|
+
projectId,
|
|
4941
|
+
eventTypes: input.events.map((event) => event.type)
|
|
4942
|
+
});
|
|
4943
|
+
};
|
|
4944
|
+
}
|
|
4945
|
+
return;
|
|
4946
|
+
});
|
|
4947
|
+
}
|
|
4948
|
+
function refuseScriptEnqueues(queues) {
|
|
4949
|
+
const refused = async () => {
|
|
4950
|
+
throw new Error("[Sixb] A script cannot start work on this project's queues: they only work inside one " + "process. Start it from the app or the API, or configure shared queues.");
|
|
4951
|
+
};
|
|
4952
|
+
const lanes = new Map(QUEUE_LANES.map((lane) => [
|
|
4953
|
+
lane,
|
|
4954
|
+
delegate(queues[lane], (property) => property === "enqueue" ? refused : undefined)
|
|
4955
|
+
]));
|
|
4956
|
+
return delegate(queues, (property) => lanes.get(property));
|
|
4957
|
+
}
|
|
4958
|
+
function delegate(target, override) {
|
|
4959
|
+
return new Proxy(target, {
|
|
4960
|
+
get(object, property) {
|
|
4961
|
+
const replaced = override(property);
|
|
4962
|
+
if (replaced !== undefined)
|
|
4963
|
+
return replaced;
|
|
4964
|
+
const value = Reflect.get(object, property, object);
|
|
4965
|
+
return typeof value === "function" ? value.bind(object) : value;
|
|
4966
|
+
}
|
|
4967
|
+
});
|
|
4968
|
+
}
|
|
4775
4969
|
|
|
4776
4970
|
// src/runtime/create.ts
|
|
4777
4971
|
async function createSixb2(options) {
|
|
@@ -4835,4 +5029,4 @@ async function createSixb2(options) {
|
|
|
4835
5029
|
}
|
|
4836
5030
|
export { WebhookValidationError2, defineWebhook2, webhookConnector2, UnverifiedWebhookError2, resolveWebhookVerification2, warnUnverifiedWebhook2, SixbHost2, createSixb2 };
|
|
4837
5031
|
|
|
4838
|
-
//# debugId=
|
|
5032
|
+
//# debugId=6A58420C6215A8CE64756E2164756E21
|