@sixb/core 0.1.20 → 0.1.21
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/execution.d.ts.map +1 -1
- package/dist/actions/index.js +54 -47
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/request.d.ts.map +1 -1
- package/dist/actions/run-authorization.d.ts +9 -0
- package/dist/actions/run-authorization.d.ts.map +1 -1
- package/dist/activity/connection.d.ts +62 -0
- package/dist/activity/connection.d.ts.map +1 -0
- package/dist/activity/device.d.ts +8 -0
- package/dist/activity/device.d.ts.map +1 -0
- package/dist/activity/execution.d.ts +48 -0
- package/dist/activity/execution.d.ts.map +1 -0
- package/dist/activity/service.d.ts +79 -0
- package/dist/activity/service.d.ts.map +1 -0
- package/dist/activity/shares.d.ts +24 -0
- package/dist/activity/shares.d.ts.map +1 -0
- package/dist/activity/timeline.d.ts +96 -0
- package/dist/activity/timeline.d.ts.map +1 -0
- package/dist/agents/index.d.ts +2 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +63 -50
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/skills.d.ts.map +1 -1
- package/dist/agents/streams/index.js +3 -3
- package/dist/agents/streams/internal.js +3 -3
- package/dist/agents/types.d.ts +8 -8
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/validation.d.ts +1 -1
- package/dist/agents/validation.d.ts.map +1 -1
- package/dist/artifacts/address.d.ts +48 -0
- package/dist/artifacts/address.d.ts.map +1 -0
- package/dist/artifacts/csv.d.ts +22 -0
- package/dist/artifacts/csv.d.ts.map +1 -0
- package/dist/artifacts/errors.d.ts +11 -0
- package/dist/artifacts/errors.d.ts.map +1 -0
- package/dist/artifacts/execution.d.ts +43 -0
- package/dist/artifacts/execution.d.ts.map +1 -0
- package/dist/artifacts/frames/assets.d.ts +28 -0
- package/dist/artifacts/frames/assets.d.ts.map +1 -0
- package/dist/artifacts/frames/grants.d.ts +37 -0
- package/dist/artifacts/frames/grants.d.ts.map +1 -0
- package/dist/artifacts/frames/index.d.ts +10 -0
- package/dist/artifacts/frames/index.d.ts.map +1 -0
- package/dist/artifacts/frames/index.js +892 -0
- package/dist/artifacts/frames/index.js.map +14 -0
- package/dist/artifacts/frames/kit.d.ts +66 -0
- package/dist/artifacts/frames/kit.d.ts.map +1 -0
- package/dist/artifacts/frames/probe.d.ts +41 -0
- package/dist/artifacts/frames/probe.d.ts.map +1 -0
- package/dist/artifacts/frames/protocol.d.ts +98 -0
- package/dist/artifacts/frames/protocol.d.ts.map +1 -0
- package/dist/artifacts/frames/runtime.d.ts +13 -0
- package/dist/artifacts/frames/runtime.d.ts.map +1 -0
- package/dist/artifacts/html.d.ts +6 -0
- package/dist/artifacts/html.d.ts.map +1 -0
- package/dist/artifacts/ids.d.ts +5 -0
- package/dist/artifacts/ids.d.ts.map +1 -0
- package/dist/artifacts/index.d.ts +16 -0
- package/dist/artifacts/index.d.ts.map +1 -0
- package/dist/artifacts/index.js +125 -0
- package/dist/artifacts/index.js.map +10 -0
- package/dist/artifacts/kinds.d.ts +5 -0
- package/dist/artifacts/kinds.d.ts.map +1 -0
- package/dist/artifacts/limits.d.ts +28 -0
- package/dist/artifacts/limits.d.ts.map +1 -0
- package/dist/artifacts/outline.d.ts +44 -0
- package/dist/artifacts/outline.d.ts.map +1 -0
- package/dist/artifacts/publish/files.d.ts +15 -0
- package/dist/artifacts/publish/files.d.ts.map +1 -0
- package/dist/artifacts/publish/index.d.ts +5 -0
- package/dist/artifacts/publish/index.d.ts.map +1 -0
- package/dist/artifacts/publish/index.js +36 -0
- package/dist/artifacts/publish/index.js.map +9 -0
- package/dist/artifacts/publish/publish.d.ts +52 -0
- package/dist/artifacts/publish/publish.d.ts.map +1 -0
- package/dist/artifacts/publish/references.d.ts +27 -0
- package/dist/artifacts/publish/references.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/document.d.ts +17 -0
- package/dist/artifacts/publish/validate/document.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/file.d.ts +8 -0
- package/dist/artifacts/publish/validate/file.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/sheet.d.ts +15 -0
- package/dist/artifacts/publish/validate/sheet.d.ts.map +1 -0
- package/dist/artifacts/publish/validate/slides.d.ts +21 -0
- package/dist/artifacts/publish/validate/slides.d.ts.map +1 -0
- package/dist/artifacts/references.d.ts +12 -0
- package/dist/artifacts/references.d.ts.map +1 -0
- package/dist/artifacts/resolve.d.ts +41 -0
- package/dist/artifacts/resolve.d.ts.map +1 -0
- package/dist/artifacts/theme.d.ts +19 -0
- package/dist/artifacts/theme.d.ts.map +1 -0
- package/dist/artifacts/warnings.d.ts +11 -0
- package/dist/artifacts/warnings.d.ts.map +1 -0
- package/dist/artifacts/workbook.d.ts +64 -0
- package/dist/artifacts/workbook.d.ts.map +1 -0
- package/dist/auth/index.js +10 -10
- package/dist/authorization/decision.d.ts +2 -0
- package/dist/authorization/decision.d.ts.map +1 -1
- package/dist/authorization/grant-kinds.d.ts +2 -2
- package/dist/authorization/grant-kinds.d.ts.map +1 -1
- package/dist/authorization/index.js +6 -6
- package/dist/blob-storage/browser.js +1 -1
- package/dist/blob-storage/index.js +2 -2
- package/dist/blob-storage/internal.d.ts +1 -1
- package/dist/blob-storage/internal.d.ts.map +1 -1
- package/dist/blob-storage/internal.js +11 -5
- package/dist/blob-storage/internal.js.map +1 -1
- package/dist/blob-storage/media-type.d.ts +12 -0
- package/dist/blob-storage/media-type.d.ts.map +1 -1
- package/dist/bootstrap/index.js +53 -47
- package/dist/bootstrap/index.js.map +2 -2
- package/dist/{chunk-xfs8x8m9.js → chunk-0bphap9y.js} +5 -5
- package/dist/{chunk-1zq2p6g0.js → chunk-1cc1xaf3.js} +3 -3
- package/dist/chunk-3jms7je7.js +14 -0
- package/dist/chunk-3jms7je7.js.map +10 -0
- package/dist/{chunk-s54c868q.js → chunk-3qct2mdc.js} +3 -13
- package/dist/chunk-3qct2mdc.js.map +12 -0
- package/dist/{chunk-t7x8dmn0.js → chunk-431pyp2c.js} +3 -3
- package/dist/{chunk-c85m1hyj.js → chunk-447a5c0p.js} +2 -2
- package/dist/chunk-48qjhh6v.js +185 -0
- package/dist/chunk-48qjhh6v.js.map +13 -0
- package/dist/{chunk-ren4kg2j.js → chunk-561r0yc9.js} +8 -8
- package/dist/{chunk-5e43w60z.js → chunk-5948n82c.js} +2 -2
- package/dist/{chunk-yzwja0mj.js → chunk-5hx48dnn.js} +2 -2
- package/dist/{chunk-x6m907x7.js → chunk-5vems3nx.js} +5 -6
- package/dist/{chunk-x6m907x7.js.map → chunk-5vems3nx.js.map} +3 -3
- package/dist/{chunk-0rbyz4qy.js → chunk-61y5xs4p.js} +560 -164
- package/dist/{chunk-0rbyz4qy.js.map → chunk-61y5xs4p.js.map} +12 -9
- package/dist/chunk-65abf64x.js +13 -0
- package/dist/chunk-65abf64x.js.map +10 -0
- package/dist/{chunk-z3y5kg1x.js → chunk-6eqsgvxk.js} +3 -3
- package/dist/{chunk-z3y5kg1x.js.map → chunk-6eqsgvxk.js.map} +2 -2
- package/dist/chunk-6rqgmkde.js +2028 -0
- package/dist/chunk-6rqgmkde.js.map +29 -0
- package/dist/{chunk-d0bqz29d.js → chunk-6vb4st8k.js} +8 -4
- package/dist/{chunk-d0bqz29d.js.map → chunk-6vb4st8k.js.map} +3 -3
- package/dist/chunk-7q8t23v4.js +467 -0
- package/dist/chunk-7q8t23v4.js.map +14 -0
- package/dist/{chunk-5j58wjct.js → chunk-858emn8m.js} +6 -6
- package/dist/{chunk-hvsb78a1.js → chunk-8frc8a4j.js} +26 -26
- package/dist/{chunk-hvsb78a1.js.map → chunk-8frc8a4j.js.map} +2 -2
- package/dist/{chunk-3zxk45er.js → chunk-8ncg20rd.js} +3 -68
- package/dist/{chunk-3zxk45er.js.map → chunk-8ncg20rd.js.map} +4 -5
- package/dist/{chunk-n33z5bjw.js → chunk-918wwnaa.js} +490 -24
- package/dist/{chunk-n33z5bjw.js.map → chunk-918wwnaa.js.map} +13 -11
- package/dist/{chunk-rrzt8jdy.js → chunk-9j4jw7as.js} +103 -110
- package/dist/chunk-9j4jw7as.js.map +14 -0
- package/dist/chunk-9kgkfg6v.js +502 -0
- package/dist/chunk-9kgkfg6v.js.map +14 -0
- package/dist/chunk-a3faa34j.js +74 -0
- package/dist/chunk-a3faa34j.js.map +10 -0
- package/dist/{chunk-6c6sn0bh.js → chunk-akzryx9h.js} +335 -1167
- package/dist/{chunk-6c6sn0bh.js.map → chunk-akzryx9h.js.map} +18 -24
- package/dist/chunk-arns890k.js +10 -0
- package/dist/chunk-arns890k.js.map +10 -0
- package/dist/{chunk-hjzdd750.js → chunk-bk9svbcq.js} +11 -11
- package/dist/{chunk-hjzdd750.js.map → chunk-bk9svbcq.js.map} +2 -2
- package/dist/{chunk-hkc3jct7.js → chunk-c06hmxyy.js} +2 -10
- package/dist/chunk-c06hmxyy.js.map +10 -0
- package/dist/{chunk-6p49a5cq.js → chunk-c1rxbz5y.js} +3 -3
- package/dist/chunk-cfj9dfbb.js +288 -0
- package/dist/chunk-cfj9dfbb.js.map +12 -0
- package/dist/{chunk-bx9q3cwv.js → chunk-cn0fwwhy.js} +7 -7
- package/dist/{chunk-bx9q3cwv.js.map → chunk-cn0fwwhy.js.map} +1 -1
- package/dist/{chunk-gc4ntf7d.js → chunk-cwdzcv37.js} +1 -1
- package/dist/{chunk-fa02jy15.js → chunk-cy4mbddw.js} +1 -1
- package/dist/{chunk-9w055r5b.js → chunk-d09e3rax.js} +1 -1
- package/dist/chunk-d5rjr8c0.js +176 -0
- package/dist/chunk-d5rjr8c0.js.map +12 -0
- package/dist/{chunk-dk8tkk5f.js → chunk-d7dnxdep.js} +3 -3
- package/dist/{chunk-b38szspf.js → chunk-dhcv7yxc.js} +1 -1
- package/dist/{chunk-b38szspf.js.map → chunk-dhcv7yxc.js.map} +1 -1
- package/dist/{chunk-gsjm1wms.js → chunk-dhdha526.js} +8 -2
- package/dist/chunk-dhdha526.js.map +10 -0
- package/dist/{chunk-8mx7qw3y.js → chunk-dvd2fp9q.js} +2 -2
- package/dist/{chunk-8mx7qw3y.js.map → chunk-dvd2fp9q.js.map} +3 -3
- package/dist/{chunk-way52z4h.js → chunk-e17zdm62.js} +6 -12
- package/dist/{chunk-way52z4h.js.map → chunk-e17zdm62.js.map} +3 -4
- package/dist/{chunk-tpn40322.js → chunk-e6k4thh5.js} +11 -10
- package/dist/{chunk-tpn40322.js.map → chunk-e6k4thh5.js.map} +3 -3
- package/dist/{chunk-tw03bsmb.js → chunk-eptrvnby.js} +224 -3
- package/dist/chunk-eptrvnby.js.map +12 -0
- package/dist/{chunk-es1gxsbf.js → chunk-f4pamkt9.js} +8 -10
- package/dist/chunk-f4pamkt9.js.map +12 -0
- package/dist/chunk-ff5xkv0p.js +211 -0
- package/dist/chunk-ff5xkv0p.js.map +10 -0
- package/dist/{chunk-d09tj99x.js → chunk-g257jwnc.js} +10 -4
- package/dist/{chunk-d09tj99x.js.map → chunk-g257jwnc.js.map} +3 -3
- package/dist/chunk-g5bvzyyr.js +32 -0
- package/dist/chunk-g5bvzyyr.js.map +10 -0
- package/dist/chunk-hke9aeen.js +9 -0
- package/dist/chunk-hke9aeen.js.map +10 -0
- package/dist/{chunk-1sr8ryzk.js → chunk-hwksyjks.js} +122 -1
- package/dist/{chunk-1sr8ryzk.js.map → chunk-hwksyjks.js.map} +3 -3
- package/dist/chunk-jcfw4h7m.js +9 -0
- package/dist/chunk-jcfw4h7m.js.map +10 -0
- package/dist/{chunk-k6q3n2sc.js → chunk-k43ct2ke.js} +20 -11
- package/dist/chunk-k43ct2ke.js.map +12 -0
- package/dist/{chunk-3t2hgbgd.js → chunk-kge7k6ey.js} +40 -8
- package/dist/chunk-kge7k6ey.js.map +15 -0
- package/dist/{chunk-tg2cw67r.js → chunk-ky3j490c.js} +2 -2
- package/dist/chunk-mjddfa7k.js +129 -0
- package/dist/chunk-mjddfa7k.js.map +12 -0
- package/dist/{chunk-vpq4shxz.js → chunk-nn5xnx3s.js} +45 -10
- package/dist/{chunk-vpq4shxz.js.map → chunk-nn5xnx3s.js.map} +7 -6
- package/dist/{chunk-0yh890a4.js → chunk-q5e5tv4b.js} +35 -7
- package/dist/{chunk-0yh890a4.js.map → chunk-q5e5tv4b.js.map} +3 -3
- package/dist/{chunk-vyf9kfqf.js → chunk-q7gn29y3.js} +1 -1
- package/dist/{chunk-yevzdx4y.js → chunk-rmakanzx.js} +10 -12
- package/dist/{chunk-yevzdx4y.js.map → chunk-rmakanzx.js.map} +3 -4
- package/dist/{chunk-v9xd5wzd.js → chunk-s7jg7pmn.js} +1 -1
- package/dist/chunk-tbc1ngpd.js +642 -0
- package/dist/chunk-tbc1ngpd.js.map +18 -0
- package/dist/chunk-twe4dx8p.js +676 -0
- package/dist/chunk-twe4dx8p.js.map +15 -0
- package/dist/{chunk-9dmt152s.js → chunk-vf57cr4t.js} +2 -2
- package/dist/{chunk-9ybhtmg4.js → chunk-vvxtn22d.js} +1 -1
- package/dist/{chunk-jhm3zsa7.js → chunk-wkv3h3q7.js} +64 -2
- package/dist/{chunk-jhm3zsa7.js.map → chunk-wkv3h3q7.js.map} +3 -3
- package/dist/chunk-x0v3jd47.js +124 -0
- package/dist/chunk-x0v3jd47.js.map +10 -0
- package/dist/{chunk-7t429e3f.js → chunk-xvsc5m8n.js} +1 -1
- package/dist/{chunk-z4m0yz8c.js → chunk-y5tah2kf.js} +1 -1
- package/dist/{chunk-fkgc1wt8.js → chunk-z58tm0hm.js} +2 -2
- package/dist/datasets/builders.d.ts +15 -2
- package/dist/datasets/builders.d.ts.map +1 -1
- package/dist/datasets/column-index.d.ts +7 -0
- package/dist/datasets/column-index.d.ts.map +1 -0
- package/dist/datasets/execution.d.ts +3 -2
- package/dist/datasets/execution.d.ts.map +1 -1
- package/dist/datasets/write.js +8 -8
- package/dist/error-reporting/internal.js +4 -4
- package/dist/errors/internal.d.ts +1 -0
- package/dist/errors/internal.d.ts.map +1 -1
- package/dist/errors/internal.js +7 -4
- package/dist/errors/internal.js.map +1 -1
- package/dist/events/execution.d.ts +12 -2
- package/dist/events/execution.d.ts.map +1 -1
- package/dist/events/index.js +4 -4
- package/dist/execution/agent.js +56 -49
- package/dist/execution/agent.js.map +1 -1
- package/dist/execution/authorized-object-reader.d.ts +52 -11
- package/dist/execution/authorized-object-reader.d.ts.map +1 -1
- package/dist/execution/object-reader-clearance.d.ts +41 -0
- package/dist/execution/object-reader-clearance.d.ts.map +1 -0
- package/dist/execution/object-reader-ontology.d.ts +12 -0
- package/dist/execution/object-reader-ontology.d.ts.map +1 -0
- package/dist/execution/object-reader-security.d.ts +45 -0
- package/dist/execution/object-reader-security.d.ts.map +1 -0
- package/dist/execution/primitive.js +54 -47
- package/dist/execution/primitive.js.map +1 -1
- package/dist/execution/request.js +48 -41
- package/dist/execution/request.js.map +2 -2
- package/dist/http/api-routes.d.ts.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/index.d.ts +20 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +112 -97
- package/dist/index.js.map +1 -1
- package/dist/lake-storage/in-memory.d.ts +1 -0
- package/dist/lake-storage/in-memory.d.ts.map +1 -1
- package/dist/lake-storage/index.d.ts +6 -3
- package/dist/lake-storage/index.d.ts.map +1 -1
- package/dist/lake-storage/index.js +21 -13
- package/dist/lake-storage/index.js.map +1 -1
- package/dist/lake-storage/lineage.d.ts +94 -0
- package/dist/lake-storage/lineage.d.ts.map +1 -0
- package/dist/lake-storage/sql-transforms.d.ts +45 -0
- package/dist/lake-storage/sql-transforms.d.ts.map +1 -1
- package/dist/lake-storage/types.d.ts +55 -1
- package/dist/lake-storage/types.d.ts.map +1 -1
- package/dist/lake-storage/version-inputs.d.ts +14 -3
- package/dist/lake-storage/version-inputs.d.ts.map +1 -1
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/materializer/index.js +31 -30
- package/dist/materializer/index.js.map +1 -1
- package/dist/models/execution/index.js +25 -24
- package/dist/models/execution/index.js.map +1 -1
- package/dist/objects/clearance-redaction.d.ts +27 -0
- package/dist/objects/clearance-redaction.d.ts.map +1 -0
- package/dist/objects/index.js +54 -47
- package/dist/objects/index.js.map +1 -1
- package/dist/objects/link/authorization.d.ts +8 -5
- package/dist/objects/link/authorization.d.ts.map +1 -1
- package/dist/objects/link/upsert-batch.d.ts.map +1 -1
- package/dist/objects/object/delete.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/property-clearance.d.ts +47 -24
- package/dist/objects/property-clearance.d.ts.map +1 -1
- package/dist/objects/query/clearance-admission.d.ts +10 -0
- package/dist/objects/query/clearance-admission.d.ts.map +1 -0
- package/dist/objects/query/index.js +29 -28
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/query/link-query-clearance.d.ts +21 -0
- package/dist/objects/query/link-query-clearance.d.ts.map +1 -0
- package/dist/ontology/builders.d.ts.map +1 -1
- package/dist/ontology/docs-markdown.d.ts +1 -1
- package/dist/ontology/docs-markdown.d.ts.map +1 -1
- package/dist/ontology/index.js +7 -7
- package/dist/ontology/internal.js +4 -4
- package/dist/ontology/internal.js.map +1 -1
- package/dist/pipelines/index.d.ts +2 -0
- package/dist/pipelines/index.d.ts.map +1 -1
- package/dist/pipelines/index.js +47 -35
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/lineage.d.ts +17 -0
- package/dist/pipelines/lineage.d.ts.map +1 -0
- package/dist/projections/internal.d.ts +2 -2
- package/dist/projections/internal.js +30 -29
- package/dist/projections/internal.js.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 +6 -0
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/internal.d.ts +2 -0
- package/dist/runtime/internal.d.ts.map +1 -1
- package/dist/runtime/internal.js +46 -42
- package/dist/runtime/internal.js.map +1 -1
- package/dist/runtime/ontology-mutations.d.ts +2 -0
- package/dist/runtime/ontology-mutations.d.ts.map +1 -1
- package/dist/runtime/resolve-definitions.d.ts.map +1 -1
- package/dist/runtime/sixb.d.ts +8 -0
- package/dist/runtime/sixb.d.ts.map +1 -1
- package/dist/sandboxes/auth.d.ts +16 -0
- package/dist/sandboxes/auth.d.ts.map +1 -1
- package/dist/sandboxes/config.d.ts.map +1 -1
- package/dist/sandboxes/configuration.d.ts +26 -0
- package/dist/sandboxes/configuration.d.ts.map +1 -1
- package/dist/sandboxes/index.d.ts +1 -1
- package/dist/sandboxes/index.d.ts.map +1 -1
- package/dist/sandboxes/index.js +14 -13
- package/dist/sandboxes/index.js.map +1 -1
- package/dist/sandboxes/sandbox.d.ts +28 -5
- package/dist/sandboxes/sandbox.d.ts.map +1 -1
- package/dist/security/applied-markings-contribution.d.ts +58 -0
- package/dist/security/applied-markings-contribution.d.ts.map +1 -0
- package/dist/security/applied-markings-host.d.ts +10 -0
- package/dist/security/applied-markings-host.d.ts.map +1 -0
- package/dist/security/applied-markings-snapshot.d.ts +67 -0
- package/dist/security/applied-markings-snapshot.d.ts.map +1 -0
- package/dist/security/applied-markings.d.ts +73 -0
- package/dist/security/applied-markings.d.ts.map +1 -0
- package/dist/security/dataset-version-markings.d.ts +47 -0
- package/dist/security/dataset-version-markings.d.ts.map +1 -0
- package/dist/security/grants.d.ts +3 -2
- package/dist/security/grants.d.ts.map +1 -1
- package/dist/security/index.d.ts +2 -1
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/internal.d.ts +15 -0
- package/dist/security/internal.d.ts.map +1 -0
- package/dist/security/internal.js +135 -0
- package/dist/security/internal.js.map +10 -0
- package/dist/security/marking-propagation.d.ts +62 -0
- package/dist/security/marking-propagation.d.ts.map +1 -0
- package/dist/security/marking-sets.d.ts +14 -0
- package/dist/security/marking-sets.d.ts.map +1 -0
- package/dist/security/markings.d.ts +6 -3
- package/dist/security/markings.d.ts.map +1 -1
- package/dist/security/pipeline-markings.d.ts +20 -0
- package/dist/security/pipeline-markings.d.ts.map +1 -0
- package/dist/security/project.d.ts +4 -0
- package/dist/security/project.d.ts.map +1 -0
- package/dist/security/projection-markings.d.ts +71 -0
- package/dist/security/projection-markings.d.ts.map +1 -0
- package/dist/security/public.js +2 -2
- package/dist/security/redactions.d.ts +4 -1
- package/dist/security/redactions.d.ts.map +1 -1
- package/dist/security/types.d.ts +22 -2
- package/dist/security/types.d.ts.map +1 -1
- package/dist/security/validation.d.ts.map +1 -1
- package/dist/shares/internal.js +24 -23
- package/dist/shares/internal.js.map +2 -2
- package/dist/storage/action-runs/failure.js +3 -3
- package/dist/storage/action-runs/in-memory.d.ts +4 -0
- package/dist/storage/action-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/action-runs/types.d.ts +8 -0
- package/dist/storage/action-runs/types.d.ts.map +1 -1
- package/dist/storage/activity/in-memory.d.ts +55 -0
- package/dist/storage/activity/in-memory.d.ts.map +1 -0
- package/dist/storage/activity/index.d.ts +3 -0
- package/dist/storage/activity/index.d.ts.map +1 -0
- package/dist/storage/activity/policy.d.ts +96 -0
- package/dist/storage/activity/policy.d.ts.map +1 -0
- package/dist/storage/activity/types.d.ts +191 -0
- package/dist/storage/activity/types.d.ts.map +1 -0
- package/dist/storage/agents/in-memory.d.ts +4 -0
- package/dist/storage/agents/in-memory.d.ts.map +1 -1
- package/dist/storage/agents/provider.d.ts.map +1 -1
- package/dist/storage/agents/provider.js +2 -5
- package/dist/storage/agents/provider.js.map +1 -1
- package/dist/storage/agents/types.d.ts +9 -8
- package/dist/storage/agents/types.d.ts.map +1 -1
- package/dist/storage/ai-limits/enforcement.js +3 -3
- package/dist/storage/artifacts/errors.d.ts +8 -0
- package/dist/storage/artifacts/errors.d.ts.map +1 -0
- package/dist/storage/artifacts/in-memory.d.ts +34 -0
- package/dist/storage/artifacts/in-memory.d.ts.map +1 -0
- package/dist/storage/artifacts/index.d.ts +5 -0
- package/dist/storage/artifacts/index.d.ts.map +1 -0
- package/dist/storage/artifacts/record.d.ts +17 -0
- package/dist/storage/artifacts/record.d.ts.map +1 -0
- package/dist/storage/artifacts/types.d.ts +184 -0
- package/dist/storage/artifacts/types.d.ts.map +1 -0
- package/dist/storage/auth/in-memory/sessions.d.ts +2 -1
- package/dist/storage/auth/in-memory/sessions.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 +19 -0
- package/dist/storage/auth/types.d.ts.map +1 -1
- package/dist/storage/connector-connections/provider.js +2 -2
- package/dist/storage/executions/in-memory.d.ts +2 -1
- package/dist/storage/executions/in-memory.d.ts.map +1 -1
- package/dist/storage/executions/index.d.ts +1 -1
- package/dist/storage/executions/index.d.ts.map +1 -1
- package/dist/storage/executions/provider.d.ts +2 -0
- package/dist/storage/executions/provider.d.ts.map +1 -1
- package/dist/storage/executions/provider.js +9 -223
- package/dist/storage/executions/provider.js.map +3 -4
- package/dist/storage/executions/types.d.ts +31 -0
- package/dist/storage/executions/types.d.ts.map +1 -1
- package/dist/storage/file-upload-sessions/provider.js +11 -11
- package/dist/storage/in-memory/index.d.ts +8 -0
- package/dist/storage/in-memory/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +6 -4
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +54 -53
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.d.ts +3 -0
- package/dist/storage/internal.d.ts.map +1 -1
- package/dist/storage/internal.js +66 -16
- package/dist/storage/internal.js.map +1 -1
- package/dist/storage/ontology/in-memory/sources.d.ts +2 -1
- package/dist/storage/ontology/in-memory/sources.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/sources.d.ts +15 -0
- package/dist/storage/ontology/sources.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +3 -3
- package/dist/storage/share-grants/in-memory.d.ts +2 -1
- package/dist/storage/share-grants/in-memory.d.ts.map +1 -1
- package/dist/storage/share-grants/index.d.ts +1 -1
- package/dist/storage/share-grants/index.d.ts.map +1 -1
- package/dist/storage/share-grants/types.d.ts +6 -0
- package/dist/storage/share-grants/types.d.ts.map +1 -1
- package/dist/storage/types.d.ts +4 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/in-memory.d.ts +4 -0
- package/dist/storage/workflow-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +13 -12
- package/dist/storage/workflow-runs/provider.js.map +1 -1
- package/dist/storage/workflow-runs/types.d.ts +5 -0
- package/dist/storage/workflow-runs/types.d.ts.map +1 -1
- package/dist/syncs/index.js +35 -34
- package/dist/syncs/index.js.map +1 -1
- package/dist/testing/action-run-storage-contract.d.ts.map +1 -1
- package/dist/testing/activity-storage-contract.d.ts +14 -0
- package/dist/testing/activity-storage-contract.d.ts.map +1 -0
- package/dist/testing/agent-storage-contract.d.ts.map +1 -1
- package/dist/testing/artifact-storage-contract.d.ts +13 -0
- package/dist/testing/artifact-storage-contract.d.ts.map +1 -0
- package/dist/testing/auth-storage-contract.d.ts.map +1 -1
- package/dist/testing/execution-storage-contract.d.ts.map +1 -1
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +4488 -3137
- package/dist/testing/index.js.map +14 -12
- package/dist/testing/lake-merge-storage-contract.d.ts.map +1 -1
- package/dist/testing/lake-storage-contract.d.ts +2 -0
- package/dist/testing/lake-storage-contract.d.ts.map +1 -1
- package/dist/testing/ontology-storage-contract.d.ts.map +1 -1
- package/dist/testing/share-grant-storage-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +27 -26
- package/dist/webhooks/internal.js.map +2 -2
- package/dist/workers/index.js +2 -2
- package/dist/workflows/builders.d.ts.map +1 -1
- package/dist/workflows/index.js +57 -51
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/types.d.ts +9 -0
- package/dist/workflows/types.d.ts.map +1 -1
- package/dist/workflows/validation.d.ts +7 -0
- package/dist/workflows/validation.d.ts.map +1 -1
- package/package.json +25 -1
- package/src/actions/execution.ts +18 -13
- package/src/actions/request.ts +18 -3
- package/src/actions/run-authorization.ts +23 -0
- package/src/activity/README.md +155 -0
- package/src/activity/connection.ts +217 -0
- package/src/activity/device.ts +41 -0
- package/src/activity/execution.ts +210 -0
- package/src/activity/service.ts +274 -0
- package/src/activity/shares.ts +62 -0
- package/src/activity/timeline.ts +424 -0
- package/src/agents/index.ts +8 -3
- package/src/agents/request.ts +5 -0
- package/src/agents/skills.ts +6 -0
- package/src/agents/types.ts +8 -8
- package/src/agents/validation.ts +2 -0
- package/src/artifacts/address.ts +132 -0
- package/src/artifacts/csv.ts +108 -0
- package/src/artifacts/errors.ts +21 -0
- package/src/artifacts/execution.ts +153 -0
- package/src/artifacts/frames/assets.ts +88 -0
- package/src/artifacts/frames/grants.ts +124 -0
- package/src/artifacts/frames/index.ts +15 -0
- package/src/artifacts/frames/kit.ts +392 -0
- package/src/artifacts/frames/probe.ts +309 -0
- package/src/artifacts/frames/protocol.ts +174 -0
- package/src/artifacts/frames/runtime.ts +213 -0
- package/src/artifacts/html.ts +25 -0
- package/src/artifacts/ids.ts +18 -0
- package/src/artifacts/index.ts +61 -0
- package/src/artifacts/kinds.ts +8 -0
- package/src/artifacts/limits.ts +27 -0
- package/src/artifacts/outline.ts +62 -0
- package/src/artifacts/publish/files.ts +87 -0
- package/src/artifacts/publish/index.ts +12 -0
- package/src/artifacts/publish/publish.ts +250 -0
- package/src/artifacts/publish/references.ts +130 -0
- package/src/artifacts/publish/validate/document.ts +114 -0
- package/src/artifacts/publish/validate/file.ts +19 -0
- package/src/artifacts/publish/validate/sheet.ts +251 -0
- package/src/artifacts/publish/validate/slides.ts +134 -0
- package/src/artifacts/references.ts +11 -0
- package/src/artifacts/resolve.ts +97 -0
- package/src/artifacts/theme.ts +116 -0
- package/src/artifacts/warnings.ts +10 -0
- package/src/artifacts/workbook.ts +315 -0
- package/src/authorization/decision.ts +5 -0
- package/src/authorization/grant-kinds.ts +14 -2
- package/src/blob-storage/internal.ts +1 -1
- package/src/blob-storage/media-type.ts +69 -0
- package/src/datasets/builders.ts +66 -2
- package/src/datasets/column-index.ts +19 -0
- package/src/datasets/execution.ts +23 -9
- package/src/errors/internal.ts +1 -0
- package/src/events/execution.ts +134 -21
- package/src/execution/authorized-object-reader.ts +270 -256
- package/src/execution/object-reader-clearance.ts +91 -0
- package/src/execution/object-reader-ontology.ts +63 -0
- package/src/execution/object-reader-security.ts +146 -0
- package/src/http/api-routes.ts +125 -0
- package/src/index.ts +71 -3
- package/src/lake-storage/in-memory.ts +26 -3
- package/src/lake-storage/index.ts +13 -1
- package/src/lake-storage/lineage.ts +385 -0
- package/src/lake-storage/sql-transforms.ts +45 -0
- package/src/lake-storage/types.ts +59 -1
- package/src/lake-storage/version-inputs.ts +35 -6
- package/src/maintenance/ontology-maintenance.ts +15 -0
- package/src/objects/clearance-redaction.ts +138 -0
- package/src/objects/link/authorization.ts +27 -7
- package/src/objects/link/remove.ts +2 -2
- package/src/objects/link/upsert-batch.ts +7 -5
- package/src/objects/link/upsert.ts +2 -2
- package/src/objects/object/delete.ts +2 -0
- package/src/objects/object/upsert-batch.ts +2 -4
- package/src/objects/object/upsert.ts +2 -3
- package/src/objects/property-clearance.ts +171 -152
- package/src/objects/query/clearance-admission.ts +112 -0
- package/src/objects/query/link-query-clearance.ts +73 -0
- package/src/ontology/builders.ts +12 -1
- package/src/ontology/docs-markdown.ts +1 -1
- package/src/pipelines/index.ts +2 -0
- package/src/pipelines/lineage.ts +45 -0
- package/src/projections/internal.ts +2 -2
- package/src/runtime/create.ts +4 -0
- package/src/runtime/host.ts +55 -0
- package/src/runtime/internal.ts +2 -0
- package/src/runtime/ontology-mutations.ts +19 -4
- package/src/runtime/resolve-definitions.ts +66 -3
- package/src/runtime/sixb.ts +18 -1
- package/src/sandboxes/README.md +29 -7
- package/src/sandboxes/auth.ts +16 -0
- package/src/sandboxes/config.ts +2 -7
- package/src/sandboxes/configuration.ts +61 -7
- package/src/sandboxes/index.ts +1 -0
- package/src/sandboxes/sandbox.ts +27 -5
- package/src/security/applied-markings-contribution.ts +277 -0
- package/src/security/applied-markings-host.ts +41 -0
- package/src/security/applied-markings-snapshot.ts +235 -0
- package/src/security/applied-markings.ts +405 -0
- package/src/security/dataset-version-markings.ts +163 -0
- package/src/security/grants.ts +39 -4
- package/src/security/index.ts +3 -0
- package/src/security/internal.ts +18 -0
- package/src/security/marking-propagation.ts +255 -0
- package/src/security/marking-sets.ts +42 -0
- package/src/security/markings.ts +29 -178
- package/src/security/pipeline-markings.ts +175 -0
- package/src/security/project.ts +8 -0
- package/src/security/projection-markings.ts +421 -0
- package/src/security/redactions.ts +7 -2
- package/src/security/types.ts +20 -2
- package/src/security/validation.ts +11 -4
- package/src/storage/action-runs/in-memory.ts +18 -0
- package/src/storage/action-runs/types.ts +8 -0
- package/src/storage/activity/in-memory.ts +374 -0
- package/src/storage/activity/index.ts +27 -0
- package/src/storage/activity/policy.ts +430 -0
- package/src/storage/activity/types.ts +211 -0
- package/src/storage/agents/in-memory.ts +10 -0
- package/src/storage/agents/provider.ts +2 -13
- package/src/storage/agents/types.ts +9 -16
- package/src/storage/artifacts/errors.ts +16 -0
- package/src/storage/artifacts/in-memory.ts +240 -0
- package/src/storage/artifacts/index.ts +30 -0
- package/src/storage/artifacts/record.ts +200 -0
- package/src/storage/artifacts/types.ts +209 -0
- package/src/storage/auth/in-memory/sessions.ts +21 -0
- package/src/storage/auth/index.ts +2 -0
- package/src/storage/auth/types.ts +18 -0
- package/src/storage/executions/in-memory.ts +61 -1
- package/src/storage/executions/index.ts +3 -0
- package/src/storage/executions/provider.ts +12 -0
- package/src/storage/executions/types.ts +30 -0
- package/src/storage/in-memory/index.ts +16 -0
- package/src/storage/index.ts +63 -0
- package/src/storage/internal.ts +30 -0
- package/src/storage/ontology/in-memory/sources.ts +23 -0
- package/src/storage/ontology/index.ts +2 -0
- package/src/storage/ontology/sources.ts +17 -0
- package/src/storage/share-grants/in-memory.ts +8 -0
- package/src/storage/share-grants/index.ts +1 -0
- package/src/storage/share-grants/types.ts +8 -0
- package/src/storage/types.ts +4 -0
- package/src/storage/workflow-runs/in-memory.ts +16 -0
- package/src/storage/workflow-runs/types.ts +5 -0
- package/src/testing/action-run-storage-contract.ts +25 -0
- package/src/testing/activity-storage-contract.ts +840 -0
- package/src/testing/agent-storage-contract.ts +22 -21
- package/src/testing/artifact-storage-contract.ts +517 -0
- package/src/testing/auth-storage-contract.ts +47 -0
- package/src/testing/execution-storage-contract.ts +147 -1
- package/src/testing/index.ts +9 -0
- package/src/testing/lake-merge-storage-contract.ts +38 -0
- package/src/testing/lake-storage-contract.ts +247 -2
- package/src/testing/materializer-storage-contract.ts +1 -0
- package/src/testing/ontology-storage-contract.ts +57 -2
- package/src/testing/share-grant-storage-contract.ts +15 -0
- package/src/workflows/builders.ts +14 -0
- package/src/workflows/types.ts +9 -0
- package/src/workflows/validation.ts +72 -0
- package/dist/chunk-1k89ecfr.js +0 -85
- package/dist/chunk-1k89ecfr.js.map +0 -10
- package/dist/chunk-3t2hgbgd.js.map +0 -15
- package/dist/chunk-4vyr1j8f.js +0 -128
- package/dist/chunk-4vyr1j8f.js.map +0 -11
- package/dist/chunk-9gyp8hg1.js +0 -363
- package/dist/chunk-9gyp8hg1.js.map +0 -14
- package/dist/chunk-es1gxsbf.js.map +0 -13
- package/dist/chunk-gsjm1wms.js.map +0 -10
- package/dist/chunk-hkc3jct7.js.map +0 -10
- package/dist/chunk-k6q3n2sc.js.map +0 -12
- package/dist/chunk-rrzt8jdy.js.map +0 -14
- package/dist/chunk-s16apyk9.js +0 -256
- package/dist/chunk-s16apyk9.js.map +0 -16
- package/dist/chunk-s54c868q.js.map +0 -12
- package/dist/chunk-tw03bsmb.js.map +0 -11
- /package/dist/{chunk-xfs8x8m9.js.map → chunk-0bphap9y.js.map} +0 -0
- /package/dist/{chunk-1zq2p6g0.js.map → chunk-1cc1xaf3.js.map} +0 -0
- /package/dist/{chunk-t7x8dmn0.js.map → chunk-431pyp2c.js.map} +0 -0
- /package/dist/{chunk-c85m1hyj.js.map → chunk-447a5c0p.js.map} +0 -0
- /package/dist/{chunk-ren4kg2j.js.map → chunk-561r0yc9.js.map} +0 -0
- /package/dist/{chunk-5e43w60z.js.map → chunk-5948n82c.js.map} +0 -0
- /package/dist/{chunk-yzwja0mj.js.map → chunk-5hx48dnn.js.map} +0 -0
- /package/dist/{chunk-5j58wjct.js.map → chunk-858emn8m.js.map} +0 -0
- /package/dist/{chunk-6p49a5cq.js.map → chunk-c1rxbz5y.js.map} +0 -0
- /package/dist/{chunk-gc4ntf7d.js.map → chunk-cwdzcv37.js.map} +0 -0
- /package/dist/{chunk-fa02jy15.js.map → chunk-cy4mbddw.js.map} +0 -0
- /package/dist/{chunk-9w055r5b.js.map → chunk-d09e3rax.js.map} +0 -0
- /package/dist/{chunk-dk8tkk5f.js.map → chunk-d7dnxdep.js.map} +0 -0
- /package/dist/{chunk-tg2cw67r.js.map → chunk-ky3j490c.js.map} +0 -0
- /package/dist/{chunk-vyf9kfqf.js.map → chunk-q7gn29y3.js.map} +0 -0
- /package/dist/{chunk-v9xd5wzd.js.map → chunk-s7jg7pmn.js.map} +0 -0
- /package/dist/{chunk-9dmt152s.js.map → chunk-vf57cr4t.js.map} +0 -0
- /package/dist/{chunk-9ybhtmg4.js.map → chunk-vvxtn22d.js.map} +0 -0
- /package/dist/{chunk-7t429e3f.js.map → chunk-xvsc5m8n.js.map} +0 -0
- /package/dist/{chunk-z4m0yz8c.js.map → chunk-y5tah2kf.js.map} +0 -0
- /package/dist/{chunk-fkgc1wt8.js.map → chunk-z58tm0hm.js.map} +0 -0
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
createSixbError2,
|
|
7
7
|
toSixbFailure2,
|
|
8
8
|
parseSixbFailure2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-dvd2fp9q.js";
|
|
10
10
|
import {
|
|
11
11
|
paginate,
|
|
12
12
|
InMemoryAuthStorage2,
|
|
13
13
|
principalsEqual2
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-nn5xnx3s.js";
|
|
15
15
|
import {
|
|
16
16
|
ObjectReadLimitExceededError2,
|
|
17
17
|
snapshotObjectReadExecutionLimits2,
|
|
18
18
|
assertObjectReadFacetCount2,
|
|
19
19
|
assertObjectReadOutputWithinLimit2
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6vb4st8k.js";
|
|
21
21
|
import {
|
|
22
22
|
assertObjectReaderProject2
|
|
23
23
|
} from "./chunk-v4jbb3rs.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
queryScalarKindForSchema,
|
|
26
26
|
resolvePropertyQueryCapabilities2,
|
|
27
27
|
resolveQuerySchema
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-8frc8a4j.js";
|
|
29
29
|
import {
|
|
30
30
|
AgentStorageError2,
|
|
31
31
|
transitionAgentThreadSandbox2,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
assertAgentContextCheckpointAnchors2,
|
|
41
41
|
assertAgentContextCheckpointReplayState2,
|
|
42
42
|
agentContextCheckpointMatchesCreateInput2
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3qct2mdc.js";
|
|
44
44
|
import {
|
|
45
45
|
InMemoryAiUsageStorage2,
|
|
46
46
|
buildAiAccountingOverview,
|
|
@@ -82,12 +82,30 @@ import {
|
|
|
82
82
|
} from "./chunk-h89wz928.js";
|
|
83
83
|
import {
|
|
84
84
|
DurableFileUploadSessions2
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-d09e3rax.js";
|
|
86
|
+
import {
|
|
87
|
+
actionSubjectsEqual,
|
|
88
|
+
normalizeRecordActionRunInput2,
|
|
89
|
+
resolveActionRunEffects2,
|
|
90
|
+
StorageTransactionError2,
|
|
91
|
+
ACTIVITY_MAX_VISIT_MS2,
|
|
92
|
+
validateActivityAppend2,
|
|
93
|
+
planActivityAppend2,
|
|
94
|
+
activityCalendarDays2,
|
|
95
|
+
activityDay,
|
|
96
|
+
artifactStorageErrors2,
|
|
97
|
+
cloneFileDownloadGrantRecord,
|
|
98
|
+
canRequeuePipelineRunAfterEnqueueFailure2,
|
|
99
|
+
canRequeueSyncRunAfterEnqueueFailure2,
|
|
100
|
+
createTransactionStorageProxy2,
|
|
101
|
+
throwNestedStorageTransaction2
|
|
102
|
+
} from "./chunk-tbc1ngpd.js";
|
|
86
103
|
import {
|
|
87
104
|
ExecutionStorageError2,
|
|
88
105
|
prepareExecutionRecord2,
|
|
89
|
-
cloneExecutionRecord
|
|
90
|
-
|
|
106
|
+
cloneExecutionRecord,
|
|
107
|
+
compareExecutionCreation2
|
|
108
|
+
} from "./chunk-eptrvnby.js";
|
|
91
109
|
import {
|
|
92
110
|
sha256Canonical2,
|
|
93
111
|
createEventId2,
|
|
@@ -186,7 +204,7 @@ import {
|
|
|
186
204
|
assertProjectionMissingTarget2,
|
|
187
205
|
requireTelemetryProjectionRun2,
|
|
188
206
|
assertProjectionRunDurableExecution2
|
|
189
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-vvxtn22d.js";
|
|
190
208
|
import {
|
|
191
209
|
SyncRunError2,
|
|
192
210
|
assertSyncRunExecution2
|
|
@@ -199,7 +217,7 @@ import {
|
|
|
199
217
|
WorkflowRunError2,
|
|
200
218
|
assertWorkflowRunExecution2,
|
|
201
219
|
assertWorkflowAgentNodeRunExecution2
|
|
202
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-9j4jw7as.js";
|
|
203
221
|
import {
|
|
204
222
|
ShareGrantStorageError2,
|
|
205
223
|
normalizeShareGrantCreate2,
|
|
@@ -222,17 +240,6 @@ import {
|
|
|
222
240
|
ConnectorConnectionStorageError2,
|
|
223
241
|
CONNECTOR_CONNECTION_RUN_FAILURE_CODES2
|
|
224
242
|
} from "./chunk-2c4j899j.js";
|
|
225
|
-
import {
|
|
226
|
-
actionSubjectsEqual,
|
|
227
|
-
normalizeRecordActionRunInput2,
|
|
228
|
-
resolveActionRunEffects2,
|
|
229
|
-
StorageTransactionError2,
|
|
230
|
-
cloneFileDownloadGrantRecord,
|
|
231
|
-
canRequeuePipelineRunAfterEnqueueFailure2,
|
|
232
|
-
canRequeueSyncRunAfterEnqueueFailure2,
|
|
233
|
-
createTransactionStorageProxy2,
|
|
234
|
-
throwNestedStorageTransaction2
|
|
235
|
-
} from "./chunk-s16apyk9.js";
|
|
236
243
|
import {
|
|
237
244
|
ActionRunError2
|
|
238
245
|
} from "./chunk-y0c4e6ex.js";
|
|
@@ -245,7 +252,7 @@ import {
|
|
|
245
252
|
} from "./chunk-96yw3pwd.js";
|
|
246
253
|
import {
|
|
247
254
|
AGENT_RUN_FAILURE_CODES2
|
|
248
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-c06hmxyy.js";
|
|
249
256
|
import {
|
|
250
257
|
compareDecimalValues2
|
|
251
258
|
} from "./chunk-3bh94gbw.js";
|
|
@@ -327,6 +334,15 @@ class InMemoryActionRunStorage2 {
|
|
|
327
334
|
return record ? cloneActionRunRecord(record) : null;
|
|
328
335
|
});
|
|
329
336
|
}
|
|
337
|
+
async getByExecutionIds(params) {
|
|
338
|
+
return this.runRootOperation(() => {
|
|
339
|
+
const byExecution = new Map([...this.rows.values()].filter((record) => record.projectId === params.projectId).map((record) => [record.executionId, record]));
|
|
340
|
+
return [...new Set(params.executionIds)].flatMap((executionId) => {
|
|
341
|
+
const record = byExecution.get(executionId);
|
|
342
|
+
return record ? [cloneActionRunRecord(record)] : [];
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
}
|
|
330
346
|
async list(input) {
|
|
331
347
|
return this.runRootOperation(() => {
|
|
332
348
|
if (input.actionIds?.length === 0) {
|
|
@@ -416,6 +432,12 @@ class InMemoryAgentThreadStore {
|
|
|
416
432
|
const record = this.state.threads.get(key(params.projectId, params.id));
|
|
417
433
|
return record ? clone(record) : null;
|
|
418
434
|
}
|
|
435
|
+
async getByIds(params) {
|
|
436
|
+
return [...new Set(params.ids)].flatMap((id) => {
|
|
437
|
+
const record = this.state.threads.get(key(params.projectId, id));
|
|
438
|
+
return record ? [clone(record)] : [];
|
|
439
|
+
});
|
|
440
|
+
}
|
|
419
441
|
async list(input) {
|
|
420
442
|
const order = input.order ?? "desc";
|
|
421
443
|
const statuses = input.statuses ? new Set(input.statuses) : null;
|
|
@@ -2338,6 +2360,383 @@ class InMemoryFileUploadSessionPersistence {
|
|
|
2338
2360
|
// src/storage/in-memory/index.ts
|
|
2339
2361
|
import { AsyncLocalStorage } from "async_hooks";
|
|
2340
2362
|
|
|
2363
|
+
// src/storage/activity/in-memory.ts
|
|
2364
|
+
class InMemoryActivityStorage {
|
|
2365
|
+
sources = new Map;
|
|
2366
|
+
visits = new Map;
|
|
2367
|
+
pageViews = [];
|
|
2368
|
+
interactions = [];
|
|
2369
|
+
async append(input) {
|
|
2370
|
+
validateActivityAppend2(input);
|
|
2371
|
+
const sourceKey = JSON.stringify([input.projectId, input.actor.type, input.sessionId]);
|
|
2372
|
+
const stored = [...this.pageViews, ...this.interactions].filter((event) => event.projectId === input.projectId && this.isFromSession(event, input) && input.events.some((candidate) => candidate.id === event.id));
|
|
2373
|
+
const plan = planActivityAppend2(input, this.source(sourceKey, input.projectId), stored);
|
|
2374
|
+
if (plan.status !== "append") {
|
|
2375
|
+
return { status: plan.status === "duplicate" ? "accepted" : "throttled", accepted: 0 };
|
|
2376
|
+
}
|
|
2377
|
+
const visitKey = JSON.stringify([input.projectId, plan.state.visitId]);
|
|
2378
|
+
const lastSeenAt = new Date(plan.state.lastSeenAt);
|
|
2379
|
+
if (plan.newVisit) {
|
|
2380
|
+
if (this.visits.has(visitKey)) {
|
|
2381
|
+
throw new Error("[Sixb] Activity visit id already exists.");
|
|
2382
|
+
}
|
|
2383
|
+
this.visits.set(visitKey, {
|
|
2384
|
+
projectId: input.projectId,
|
|
2385
|
+
id: plan.state.visitId,
|
|
2386
|
+
actor: structuredClone(input.actor),
|
|
2387
|
+
sessionId: input.sessionId,
|
|
2388
|
+
attribution: plan.newVisit.attribution,
|
|
2389
|
+
startedAt: lastSeenAt,
|
|
2390
|
+
lastSeenAt,
|
|
2391
|
+
pageViews: plan.pageViews.length,
|
|
2392
|
+
interactions: plan.interactions.length
|
|
2393
|
+
});
|
|
2394
|
+
} else {
|
|
2395
|
+
const visit = this.requireVisit(input.projectId, plan.state.visitId);
|
|
2396
|
+
visit.lastSeenAt = lastSeenAt;
|
|
2397
|
+
visit.pageViews += plan.pageViews.length;
|
|
2398
|
+
visit.interactions += plan.interactions.length;
|
|
2399
|
+
}
|
|
2400
|
+
const { visitStartedAt: _startedAt, ...source } = plan.state;
|
|
2401
|
+
this.sources.set(sourceKey, source);
|
|
2402
|
+
for (const pageView of plan.pageViews) {
|
|
2403
|
+
this.pageViews.push({ ...pageView, projectId: input.projectId });
|
|
2404
|
+
}
|
|
2405
|
+
for (const interaction of plan.interactions) {
|
|
2406
|
+
this.interactions.push({ ...interaction, projectId: input.projectId });
|
|
2407
|
+
}
|
|
2408
|
+
return { status: "accepted", accepted: plan.accepted };
|
|
2409
|
+
}
|
|
2410
|
+
async list(input) {
|
|
2411
|
+
const visits = this.overlapping(input).filter((visit) => isBefore(visit.lastSeenAt, visit.id, input.before)).sort(byLastSeenDescending((visit) => visit.id));
|
|
2412
|
+
return {
|
|
2413
|
+
visits: visits.slice(0, input.limit).map(toVisit),
|
|
2414
|
+
hasMore: visits.length > input.limit
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
async users(input) {
|
|
2418
|
+
const byUser = new Map;
|
|
2419
|
+
for (const visit of this.overlapping(input)) {
|
|
2420
|
+
if (visit.actor.type !== "user") {
|
|
2421
|
+
continue;
|
|
2422
|
+
}
|
|
2423
|
+
const user = byUser.get(visit.actor.userId) ?? {
|
|
2424
|
+
lastSeenAt: visit.lastSeenAt,
|
|
2425
|
+
visits: 0,
|
|
2426
|
+
pageViews: 0
|
|
2427
|
+
};
|
|
2428
|
+
if (visit.lastSeenAt > user.lastSeenAt) {
|
|
2429
|
+
user.lastSeenAt = visit.lastSeenAt;
|
|
2430
|
+
}
|
|
2431
|
+
user.visits += 1;
|
|
2432
|
+
user.pageViews += this.pageViewsInPeriod(visit, input).length;
|
|
2433
|
+
byUser.set(visit.actor.userId, user);
|
|
2434
|
+
}
|
|
2435
|
+
const users = [...byUser].map(([userId, user]) => ({ userId, ...user })).filter((user) => isBefore(user.lastSeenAt, user.userId, input.before)).sort(byLastSeenDescending((user) => user.userId));
|
|
2436
|
+
return {
|
|
2437
|
+
users: users.slice(0, input.limit).map((user) => ({ ...user })),
|
|
2438
|
+
hasMore: users.length > input.limit
|
|
2439
|
+
};
|
|
2440
|
+
}
|
|
2441
|
+
async summarize(input) {
|
|
2442
|
+
const visits = this.overlapping(input);
|
|
2443
|
+
const userIds = visits.flatMap((visit) => visit.actor.type === "user" ? [visit.actor.userId] : []);
|
|
2444
|
+
return {
|
|
2445
|
+
users: new Set(userIds).size,
|
|
2446
|
+
visits: visits.length,
|
|
2447
|
+
sharedVisits: visits.filter((visit) => visit.actor.type === "share").length,
|
|
2448
|
+
pageViews: visits.reduce((total, visit) => total + this.pageViewsInPeriod(visit, input).length, 0)
|
|
2449
|
+
};
|
|
2450
|
+
}
|
|
2451
|
+
async calendar(input) {
|
|
2452
|
+
const visits = this.overlapping(input);
|
|
2453
|
+
const pageViewsByDay = new Map;
|
|
2454
|
+
for (const visit of visits) {
|
|
2455
|
+
for (const pageView of this.pageViewsInPeriod(visit, input)) {
|
|
2456
|
+
const day = activityDay(pageView.receivedAt);
|
|
2457
|
+
pageViewsByDay.set(day, (pageViewsByDay.get(day) ?? 0) + 1);
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
return activityCalendarDays2(input, visits, pageViewsByDay);
|
|
2461
|
+
}
|
|
2462
|
+
async read(input) {
|
|
2463
|
+
const visit = this.visits.get(JSON.stringify([input.projectId, input.id]));
|
|
2464
|
+
if (!visit) {
|
|
2465
|
+
return null;
|
|
2466
|
+
}
|
|
2467
|
+
const ofVisit = (event) => event.projectId === visit.projectId && event.visitId === visit.id;
|
|
2468
|
+
const events = [...this.pageViews.filter(ofVisit), ...this.interactions.filter(ofVisit)].sort((left, right) => left.sequence - right.sequence);
|
|
2469
|
+
const pageViews = [];
|
|
2470
|
+
const interactions = [];
|
|
2471
|
+
for (const event of events.slice(0, input.limit)) {
|
|
2472
|
+
const { id, visitId, sequence, route } = event;
|
|
2473
|
+
const pageView = { id, visitId, sequence, route, receivedAt: new Date(event.receivedAt) };
|
|
2474
|
+
if ("name" in event) {
|
|
2475
|
+
interactions.push({ ...pageView, name: event.name });
|
|
2476
|
+
} else {
|
|
2477
|
+
pageViews.push(pageView);
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
return {
|
|
2481
|
+
visit: toVisit(visit),
|
|
2482
|
+
sessionId: visit.sessionId,
|
|
2483
|
+
pageViews,
|
|
2484
|
+
interactions,
|
|
2485
|
+
hasMore: events.length > input.limit
|
|
2486
|
+
};
|
|
2487
|
+
}
|
|
2488
|
+
async sessionVisits(input) {
|
|
2489
|
+
const sessionIds = new Set(input.sessionIds);
|
|
2490
|
+
const bySession = new Map;
|
|
2491
|
+
for (const visit of this.visits.values()) {
|
|
2492
|
+
if (visit.projectId !== input.projectId || visit.actor.type !== "user" || visit.actor.userId !== input.userId || !sessionIds.has(visit.sessionId)) {
|
|
2493
|
+
continue;
|
|
2494
|
+
}
|
|
2495
|
+
const visits = bySession.get(visit.sessionId) ?? [];
|
|
2496
|
+
visits.push(visit);
|
|
2497
|
+
bySession.set(visit.sessionId, visits);
|
|
2498
|
+
}
|
|
2499
|
+
return [...bySession].map(([sessionId, visits]) => ({
|
|
2500
|
+
sessionId,
|
|
2501
|
+
visits: visits.length,
|
|
2502
|
+
latest: visits.sort(byStartDescending).slice(0, input.limit).map(toVisit)
|
|
2503
|
+
}));
|
|
2504
|
+
}
|
|
2505
|
+
snapshot() {
|
|
2506
|
+
return structuredClone({
|
|
2507
|
+
sources: this.sources,
|
|
2508
|
+
visits: this.visits,
|
|
2509
|
+
pageViews: this.pageViews,
|
|
2510
|
+
interactions: this.interactions
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
restore(snapshot) {
|
|
2514
|
+
const restored = structuredClone(snapshot);
|
|
2515
|
+
this.sources = restored.sources;
|
|
2516
|
+
this.visits = restored.visits;
|
|
2517
|
+
this.pageViews = restored.pageViews;
|
|
2518
|
+
this.interactions = restored.interactions;
|
|
2519
|
+
}
|
|
2520
|
+
source(key, projectId) {
|
|
2521
|
+
const source = this.sources.get(key);
|
|
2522
|
+
if (!source) {
|
|
2523
|
+
return;
|
|
2524
|
+
}
|
|
2525
|
+
const visit = this.visits.get(JSON.stringify([projectId, source.visitId]));
|
|
2526
|
+
return { ...source, visitStartedAt: visit ? visit.startedAt.getTime() : null };
|
|
2527
|
+
}
|
|
2528
|
+
overlapping(input) {
|
|
2529
|
+
const earliestStart = input.from.getTime() - ACTIVITY_MAX_VISIT_MS2;
|
|
2530
|
+
return [...this.visits.values()].filter((visit) => visit.projectId === input.projectId && visit.startedAt.getTime() >= earliestStart && visit.startedAt < input.to && visit.lastSeenAt >= input.from && (input.userId === undefined || visit.actor.type === "user" && visit.actor.userId === input.userId));
|
|
2531
|
+
}
|
|
2532
|
+
pageViewsOf(visit) {
|
|
2533
|
+
return this.pageViews.filter((pageView) => pageView.projectId === visit.projectId && pageView.visitId === visit.id);
|
|
2534
|
+
}
|
|
2535
|
+
pageViewsInPeriod(visit, period) {
|
|
2536
|
+
return this.pageViewsOf(visit).filter((pageView) => pageView.receivedAt >= period.from && pageView.receivedAt < period.to);
|
|
2537
|
+
}
|
|
2538
|
+
isFromSession(event, input) {
|
|
2539
|
+
const visit = this.visits.get(JSON.stringify([event.projectId, event.visitId]));
|
|
2540
|
+
return visit?.actor.type === input.actor.type && visit.sessionId === input.sessionId;
|
|
2541
|
+
}
|
|
2542
|
+
requireVisit(projectId, id) {
|
|
2543
|
+
const visit = this.visits.get(JSON.stringify([projectId, id]));
|
|
2544
|
+
if (!visit) {
|
|
2545
|
+
throw new Error("[Sixb] Activity visit is missing.");
|
|
2546
|
+
}
|
|
2547
|
+
return visit;
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
function toVisit(visit) {
|
|
2551
|
+
return {
|
|
2552
|
+
id: visit.id,
|
|
2553
|
+
actor: structuredClone(visit.actor),
|
|
2554
|
+
attribution: structuredClone(visit.attribution),
|
|
2555
|
+
startedAt: new Date(visit.startedAt),
|
|
2556
|
+
lastSeenAt: new Date(visit.lastSeenAt),
|
|
2557
|
+
pageViews: visit.pageViews,
|
|
2558
|
+
interactions: visit.interactions
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
function isBefore(at, id, cursor) {
|
|
2562
|
+
if (!cursor) {
|
|
2563
|
+
return true;
|
|
2564
|
+
}
|
|
2565
|
+
return at < cursor.at || at.getTime() === cursor.at.getTime() && id < cursor.id;
|
|
2566
|
+
}
|
|
2567
|
+
function byStartDescending(left, right) {
|
|
2568
|
+
const byTime = right.startedAt.getTime() - left.startedAt.getTime();
|
|
2569
|
+
if (byTime !== 0) {
|
|
2570
|
+
return byTime;
|
|
2571
|
+
}
|
|
2572
|
+
return left.id < right.id ? 1 : left.id > right.id ? -1 : 0;
|
|
2573
|
+
}
|
|
2574
|
+
function byLastSeenDescending(id) {
|
|
2575
|
+
return (left, right) => {
|
|
2576
|
+
const byTime = right.lastSeenAt.getTime() - left.lastSeenAt.getTime();
|
|
2577
|
+
if (byTime !== 0) {
|
|
2578
|
+
return byTime;
|
|
2579
|
+
}
|
|
2580
|
+
return id(left) < id(right) ? 1 : id(left) > id(right) ? -1 : 0;
|
|
2581
|
+
};
|
|
2582
|
+
}
|
|
2583
|
+
// src/storage/artifacts/in-memory.ts
|
|
2584
|
+
class InMemoryArtifactStorage {
|
|
2585
|
+
artifacts = new Map;
|
|
2586
|
+
frameGrants = new Map;
|
|
2587
|
+
async create(input) {
|
|
2588
|
+
const key = artifactKey(input.projectId, input.id);
|
|
2589
|
+
if (this.artifacts.has(key))
|
|
2590
|
+
throw artifactStorageErrors2.exists(input.id);
|
|
2591
|
+
const version = versionRecord(input.projectId, input.id, 1, input.version);
|
|
2592
|
+
const record = {
|
|
2593
|
+
projectId: input.projectId,
|
|
2594
|
+
id: input.id,
|
|
2595
|
+
kind: input.kind,
|
|
2596
|
+
title: version.title,
|
|
2597
|
+
owner: { ...input.owner },
|
|
2598
|
+
latestVersion: 1,
|
|
2599
|
+
createdAt: new Date(version.createdAt),
|
|
2600
|
+
updatedAt: new Date(version.createdAt)
|
|
2601
|
+
};
|
|
2602
|
+
this.artifacts.set(key, { record, versions: [version], nextVersion: 2 });
|
|
2603
|
+
return published(record, version);
|
|
2604
|
+
}
|
|
2605
|
+
async publish(input) {
|
|
2606
|
+
const key = artifactKey(input.projectId, input.artifactId);
|
|
2607
|
+
const stored = this.artifacts.get(key);
|
|
2608
|
+
if (!stored)
|
|
2609
|
+
throw artifactStorageErrors2.notFound(input.artifactId);
|
|
2610
|
+
if (stored.record.kind !== input.kind) {
|
|
2611
|
+
throw artifactStorageErrors2.kindMismatch(input.artifactId, stored.record.kind, input.kind);
|
|
2612
|
+
}
|
|
2613
|
+
const version = versionRecord(input.projectId, input.artifactId, stored.nextVersion, input.version);
|
|
2614
|
+
const record = {
|
|
2615
|
+
...stored.record,
|
|
2616
|
+
title: version.title,
|
|
2617
|
+
latestVersion: version.version,
|
|
2618
|
+
updatedAt: new Date(version.createdAt)
|
|
2619
|
+
};
|
|
2620
|
+
this.artifacts.set(key, {
|
|
2621
|
+
record,
|
|
2622
|
+
versions: [...stored.versions, version],
|
|
2623
|
+
nextVersion: stored.nextVersion + 1
|
|
2624
|
+
});
|
|
2625
|
+
return published(record, version);
|
|
2626
|
+
}
|
|
2627
|
+
async get(input) {
|
|
2628
|
+
const stored = this.artifacts.get(artifactKey(input.projectId, input.id));
|
|
2629
|
+
return stored ? structuredClone(stored.record) : null;
|
|
2630
|
+
}
|
|
2631
|
+
async list(input) {
|
|
2632
|
+
const matching = [...this.artifacts.values()].filter(({ record, versions }) => record.projectId === input.projectId && (!input.owner || principalsEqual2(record.owner, input.owner)) && (input.kind === undefined || record.kind === input.kind) && (input.originThreadId === undefined || versions.some((version) => version.origin?.threadId === input.originThreadId))).map(({ record }) => record).sort((left, right) => right.updatedAt.getTime() - left.updatedAt.getTime() || left.id.localeCompare(right.id));
|
|
2633
|
+
const { page, hasMore, total } = paginate(matching, input);
|
|
2634
|
+
return { artifacts: structuredClone(page), hasMore, total };
|
|
2635
|
+
}
|
|
2636
|
+
async getVersion(input) {
|
|
2637
|
+
const stored = this.artifacts.get(artifactKey(input.projectId, input.artifactId));
|
|
2638
|
+
const version = stored?.versions.find((candidate) => candidate.version === input.version);
|
|
2639
|
+
return version ? structuredClone(version) : null;
|
|
2640
|
+
}
|
|
2641
|
+
async listVersions(input) {
|
|
2642
|
+
const stored = this.artifacts.get(artifactKey(input.projectId, input.artifactId));
|
|
2643
|
+
const newestFirst = [...stored?.versions ?? []].reverse();
|
|
2644
|
+
const { page, hasMore, total } = paginate(newestFirst, input);
|
|
2645
|
+
return { versions: structuredClone(page), hasMore, total };
|
|
2646
|
+
}
|
|
2647
|
+
async listReferencingVersions(input) {
|
|
2648
|
+
const prefix = `artifact:${input.artifactId}`;
|
|
2649
|
+
const referencing = [];
|
|
2650
|
+
for (const stored of this.artifacts.values()) {
|
|
2651
|
+
if (stored.record.projectId !== input.projectId)
|
|
2652
|
+
continue;
|
|
2653
|
+
const latest = stored.versions.find((candidate) => candidate.version === stored.record.latestVersion);
|
|
2654
|
+
if (latest?.references.some((reference) => refersTo(reference.address, prefix))) {
|
|
2655
|
+
referencing.push(structuredClone(latest));
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
return referencing.sort((left, right) => left.artifactId < right.artifactId ? -1 : 1);
|
|
2659
|
+
}
|
|
2660
|
+
async createFrameGrant(record) {
|
|
2661
|
+
if (!this.artifacts.has(artifactKey(record.projectId, record.artifactId))) {
|
|
2662
|
+
throw artifactStorageErrors2.notFound(record.artifactId);
|
|
2663
|
+
}
|
|
2664
|
+
this.frameGrants.set(artifactKey(record.projectId, record.tokenHash), structuredClone(record));
|
|
2665
|
+
}
|
|
2666
|
+
async findFrameGrant(input) {
|
|
2667
|
+
const grant = this.frameGrants.get(artifactKey(input.projectId, input.tokenHash));
|
|
2668
|
+
return grant ? structuredClone(grant) : null;
|
|
2669
|
+
}
|
|
2670
|
+
async deleteExpiredFrameGrants(input) {
|
|
2671
|
+
let deleted = 0;
|
|
2672
|
+
for (const [key, grant] of this.frameGrants) {
|
|
2673
|
+
if (deleted >= input.limit)
|
|
2674
|
+
break;
|
|
2675
|
+
if (grant.projectId !== input.projectId || grant.expiresAt >= input.expiredBefore)
|
|
2676
|
+
continue;
|
|
2677
|
+
this.frameGrants.delete(key);
|
|
2678
|
+
deleted += 1;
|
|
2679
|
+
}
|
|
2680
|
+
return deleted;
|
|
2681
|
+
}
|
|
2682
|
+
async delete(input) {
|
|
2683
|
+
return this.deleteArtifact(artifactKey(input.projectId, input.id));
|
|
2684
|
+
}
|
|
2685
|
+
async deleteVersionsByOrigin(input) {
|
|
2686
|
+
let deleted = 0;
|
|
2687
|
+
for (const [key, stored] of this.artifacts) {
|
|
2688
|
+
if (stored.record.projectId !== input.projectId)
|
|
2689
|
+
continue;
|
|
2690
|
+
const remaining = stored.versions.filter((version) => version.origin?.runId !== input.runId);
|
|
2691
|
+
if (remaining.length === stored.versions.length)
|
|
2692
|
+
continue;
|
|
2693
|
+
deleted += stored.versions.length - remaining.length;
|
|
2694
|
+
const latest = remaining.at(-1);
|
|
2695
|
+
if (!latest) {
|
|
2696
|
+
this.deleteArtifact(key);
|
|
2697
|
+
continue;
|
|
2698
|
+
}
|
|
2699
|
+
this.artifacts.set(key, {
|
|
2700
|
+
...stored,
|
|
2701
|
+
record: {
|
|
2702
|
+
...stored.record,
|
|
2703
|
+
title: latest.title,
|
|
2704
|
+
latestVersion: latest.version,
|
|
2705
|
+
updatedAt: new Date(latest.createdAt)
|
|
2706
|
+
},
|
|
2707
|
+
versions: remaining
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
return deleted;
|
|
2711
|
+
}
|
|
2712
|
+
snapshot() {
|
|
2713
|
+
return structuredClone({ artifacts: this.artifacts, frameGrants: this.frameGrants });
|
|
2714
|
+
}
|
|
2715
|
+
restore(snapshot) {
|
|
2716
|
+
const restored = structuredClone(snapshot);
|
|
2717
|
+
this.artifacts = new Map(restored.artifacts);
|
|
2718
|
+
this.frameGrants = new Map(restored.frameGrants);
|
|
2719
|
+
}
|
|
2720
|
+
deleteArtifact(key) {
|
|
2721
|
+
for (const [grantKey, grant] of this.frameGrants) {
|
|
2722
|
+
if (artifactKey(grant.projectId, grant.artifactId) === key)
|
|
2723
|
+
this.frameGrants.delete(grantKey);
|
|
2724
|
+
}
|
|
2725
|
+
return this.artifacts.delete(key);
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
function versionRecord(projectId, artifactId, version, input) {
|
|
2729
|
+
return structuredClone({ ...input, projectId, artifactId, version });
|
|
2730
|
+
}
|
|
2731
|
+
function published(record, version) {
|
|
2732
|
+
return structuredClone({ artifact: record, version });
|
|
2733
|
+
}
|
|
2734
|
+
function artifactKey(projectId, id) {
|
|
2735
|
+
return `${projectId}\x00${id}`;
|
|
2736
|
+
}
|
|
2737
|
+
function refersTo(address, prefix) {
|
|
2738
|
+
return address.startsWith(prefix) && /^(?:$|[@/#])/.test(address.slice(prefix.length));
|
|
2739
|
+
}
|
|
2341
2740
|
// src/storage/executions/in-memory.ts
|
|
2342
2741
|
var runDirectly2 = async (run) => run();
|
|
2343
2742
|
function executionKey(projectId, id) {
|
|
@@ -2387,6 +2786,30 @@ class InMemoryExecutionStorage {
|
|
|
2387
2786
|
return record ? cloneExecutionRecord(record) : null;
|
|
2388
2787
|
});
|
|
2389
2788
|
}
|
|
2789
|
+
async listBySession(input) {
|
|
2790
|
+
return this.runRootOperation(() => {
|
|
2791
|
+
const rows = [...this.rows.values()].filter((row) => row.projectId === input.projectId);
|
|
2792
|
+
const roots = rows.filter((row) => row.source.type !== "execution" && row.createdAt >= input.from && row.createdAt < input.to && isFromSession(row, input.session)).sort(compareExecutionCreation2).slice(0, input.limit + 1);
|
|
2793
|
+
const found = [...roots];
|
|
2794
|
+
let level = roots;
|
|
2795
|
+
while (level.length > 0 && found.length <= input.limit) {
|
|
2796
|
+
const parents = new Set(level.map((row) => row.id));
|
|
2797
|
+
level = rows.filter((row) => row.source.type === "execution" && parents.has(row.source.executionId)).sort(compareExecutionCreation2);
|
|
2798
|
+
found.push(...level);
|
|
2799
|
+
}
|
|
2800
|
+
return {
|
|
2801
|
+
executions: found.slice(0, input.limit).sort(compareExecutionCreation2).map(cloneExecutionRecord),
|
|
2802
|
+
truncated: found.length > input.limit
|
|
2803
|
+
};
|
|
2804
|
+
});
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
function isFromSession(row, session) {
|
|
2808
|
+
const ref = row.authorizationRef;
|
|
2809
|
+
if (session.type === "user") {
|
|
2810
|
+
return ref.type === "principal" && ref.credential?.type === "session" && ref.credential.id === session.id;
|
|
2811
|
+
}
|
|
2812
|
+
return ref.type === "delegated" && ref.delegation.sessionId === session.id;
|
|
2390
2813
|
}
|
|
2391
2814
|
|
|
2392
2815
|
// src/storage/file-download-grants/in-memory.ts
|
|
@@ -5843,6 +6266,24 @@ class InMemoryOntologySourceStorage {
|
|
|
5843
6266
|
return active ? sourceMaterializationRecord(active) : null;
|
|
5844
6267
|
});
|
|
5845
6268
|
}
|
|
6269
|
+
async listActive(input) {
|
|
6270
|
+
return this.runRootOperation(() => {
|
|
6271
|
+
assertNonblank(input.projectId, "Source project id");
|
|
6272
|
+
const active = [];
|
|
6273
|
+
for (const materialization of this.state.sourceMaterializations.values()) {
|
|
6274
|
+
if (materialization.projectId !== input.projectId)
|
|
6275
|
+
continue;
|
|
6276
|
+
if (materialization.status !== "active")
|
|
6277
|
+
continue;
|
|
6278
|
+
active.push({
|
|
6279
|
+
source: { projectionId: materialization.source.projectionId },
|
|
6280
|
+
datasetVersion: { ...materialization.datasetVersion },
|
|
6281
|
+
projectionRevision: materialization.projectionRevision
|
|
6282
|
+
});
|
|
6283
|
+
}
|
|
6284
|
+
return active;
|
|
6285
|
+
});
|
|
6286
|
+
}
|
|
5846
6287
|
async adopt(input) {
|
|
5847
6288
|
return this.runRootOperation(async () => {
|
|
5848
6289
|
assertSourceProject2(input);
|
|
@@ -7155,6 +7596,12 @@ class InMemoryShareGrantStorage2 {
|
|
|
7155
7596
|
const record = this.rows.get(rowKey2(normalized.projectId, normalized.id));
|
|
7156
7597
|
return record ? cloneShareGrantRecord2(record) : null;
|
|
7157
7598
|
}
|
|
7599
|
+
async getByIds(input) {
|
|
7600
|
+
return [...new Set(input.ids)].flatMap((id) => {
|
|
7601
|
+
const record = this.rows.get(rowKey2(input.projectId, id));
|
|
7602
|
+
return record ? [cloneShareGrantRecord2(record)] : [];
|
|
7603
|
+
});
|
|
7604
|
+
}
|
|
7158
7605
|
async list(input) {
|
|
7159
7606
|
const normalized = normalizeListShareGrantsInput2(input);
|
|
7160
7607
|
const matching = [...this.rows.values()].filter((record) => record.projectId === normalized.projectId && (normalized.definitionId === undefined || record.definitionId === normalized.definitionId) && (normalized.target === undefined || record.target.objectTypeId === normalized.target.objectTypeId && record.target.primaryId === normalized.target.primaryId) && (normalized.includeRevoked || record.revokedAt === undefined) && (normalized.includeExpired || record.expiresAt.getTime() > normalized.now.getTime())).sort(compareShareGrants);
|
|
@@ -7868,6 +8315,13 @@ class InMemoryWorkflowRunStorage2 {
|
|
|
7868
8315
|
const record = this.runs.get(storageKey(params.projectId, params.id));
|
|
7869
8316
|
return record ? cloneRecord(record) : null;
|
|
7870
8317
|
}
|
|
8318
|
+
async getByExecutionIds(params) {
|
|
8319
|
+
const byExecution = new Map([...this.runs.values()].filter((record) => record.projectId === params.projectId).map((record) => [record.executionId, record]));
|
|
8320
|
+
return [...new Set(params.executionIds)].flatMap((executionId) => {
|
|
8321
|
+
const record = byExecution.get(executionId);
|
|
8322
|
+
return record ? [cloneRecord(record)] : [];
|
|
8323
|
+
});
|
|
8324
|
+
}
|
|
7871
8325
|
async list(input) {
|
|
7872
8326
|
if (hasEmptyStatuses(input) || input.workflowIds?.length === 0) {
|
|
7873
8327
|
return {
|
|
@@ -8245,6 +8699,7 @@ class InMemoryStorage2 {
|
|
|
8245
8699
|
shareSessions: this.shareSessionStorage
|
|
8246
8700
|
});
|
|
8247
8701
|
agentStorage = new InMemoryAgentStorage2(this.executionStorage);
|
|
8702
|
+
artifactStorage = new InMemoryArtifactStorage;
|
|
8248
8703
|
aiUsageStorage = new InMemoryAiUsageStorage2(this.executionStorage);
|
|
8249
8704
|
aiCostStorage = new InMemoryAiCostStorage2(this.aiUsageStorage, {
|
|
8250
8705
|
resolve: (input) => this.resolveAiAccountingAttribution(input),
|
|
@@ -8286,9 +8741,11 @@ class InMemoryStorage2 {
|
|
|
8286
8741
|
fileUploadSessionStorage = new InMemoryFileUploadSessions2;
|
|
8287
8742
|
fileDownloadGrantStorage = new InMemoryFileDownloadGrantStorage;
|
|
8288
8743
|
connectorConnectionStorage;
|
|
8744
|
+
activityStorage = new InMemoryActivityStorage;
|
|
8289
8745
|
auth;
|
|
8290
8746
|
executions;
|
|
8291
8747
|
agents;
|
|
8748
|
+
artifacts;
|
|
8292
8749
|
aiUsage;
|
|
8293
8750
|
aiCosts;
|
|
8294
8751
|
aiLimits;
|
|
@@ -8305,6 +8762,7 @@ class InMemoryStorage2 {
|
|
|
8305
8762
|
fileUploadSessions;
|
|
8306
8763
|
fileDownloadGrants;
|
|
8307
8764
|
connectorConnections;
|
|
8765
|
+
activity;
|
|
8308
8766
|
constructor(options = {}) {
|
|
8309
8767
|
this.connectorConnectionStorage = new InMemoryConnectorConnectionStorage2(options.connectorConnections);
|
|
8310
8768
|
const scope = createStorageOperationScope2((run) => this.withStorageOperation(run), () => this.assertRootOperationAvailable());
|
|
@@ -8313,6 +8771,7 @@ class InMemoryStorage2 {
|
|
|
8313
8771
|
this.auth = createAuthOperationScope2(this.authStorage, scope);
|
|
8314
8772
|
this.executions = createOperationScopedFacade2(this.executionStorage, scope);
|
|
8315
8773
|
this.agents = createAgentOperationScope2(this.agentStorage, scope);
|
|
8774
|
+
this.artifacts = createOperationScopedFacade2(this.artifactStorage, scope);
|
|
8316
8775
|
this.aiUsage = createOperationScopedFacade2(this.aiUsageStorage, scope);
|
|
8317
8776
|
this.aiCosts = createOperationScopedFacade2(this.aiCostStorage, scope);
|
|
8318
8777
|
this.aiLimits = createOperationScopedFacade2(this.aiLimitStorage, scope);
|
|
@@ -8329,6 +8788,7 @@ class InMemoryStorage2 {
|
|
|
8329
8788
|
this.fileUploadSessions = createOperationScopedFacade2(this.fileUploadSessionStorage, scope);
|
|
8330
8789
|
this.fileDownloadGrants = createOperationScopedFacade2(this.fileDownloadGrantStorage, scope);
|
|
8331
8790
|
this.connectorConnections = createOperationScopedFacade2(this.connectorConnectionStorage, scope);
|
|
8791
|
+
this.activity = createOperationScopedFacade2(this.activityStorage, scope);
|
|
8332
8792
|
this.ontologyStorage = new InMemoryOntologyStorage(this.objectStorage, this.timeseriesStorage, {
|
|
8333
8793
|
runRootOperation: async (run) => run(),
|
|
8334
8794
|
getTransactionToken: () => this.getActiveTransactionToken(),
|
|
@@ -8474,6 +8934,7 @@ class InMemoryStorage2 {
|
|
|
8474
8934
|
auth: this.authStorage,
|
|
8475
8935
|
executions: this.executionStorage,
|
|
8476
8936
|
agents: this.agentStorage,
|
|
8937
|
+
artifacts: this.artifactStorage,
|
|
8477
8938
|
aiUsage: this.aiUsageStorage,
|
|
8478
8939
|
aiCosts: this.aiCostStorage,
|
|
8479
8940
|
aiLimits: this.aiLimitStorage,
|
|
@@ -8490,6 +8951,7 @@ class InMemoryStorage2 {
|
|
|
8490
8951
|
fileUploadSessions: this.fileUploadSessionStorage,
|
|
8491
8952
|
fileDownloadGrants: this.fileDownloadGrantStorage,
|
|
8492
8953
|
connectorConnections: this.connectorConnectionStorage,
|
|
8954
|
+
activity: this.activityStorage,
|
|
8493
8955
|
ping: async () => {
|
|
8494
8956
|
return;
|
|
8495
8957
|
},
|
|
@@ -8506,6 +8968,7 @@ class InMemoryStorage2 {
|
|
|
8506
8968
|
auth: this.authStorage.snapshot(),
|
|
8507
8969
|
executions: this.executionStorage.snapshot(),
|
|
8508
8970
|
agents: this.agentStorage.snapshot(),
|
|
8971
|
+
artifacts: this.artifactStorage.snapshot(),
|
|
8509
8972
|
aiUsage: this.aiUsageStorage.snapshot(),
|
|
8510
8973
|
aiCosts: this.aiCostStorage.snapshot(),
|
|
8511
8974
|
aiLimits: this.aiLimitStorage.snapshot(),
|
|
@@ -8521,7 +8984,8 @@ class InMemoryStorage2 {
|
|
|
8521
8984
|
shareSessions: this.shareSessionStorage.snapshot(),
|
|
8522
8985
|
fileUploadSessions: this.fileUploadSessionStorage.snapshot(),
|
|
8523
8986
|
fileDownloadGrants: this.fileDownloadGrantStorage.snapshot(),
|
|
8524
|
-
connectorConnections: this.connectorConnectionStorage.snapshot()
|
|
8987
|
+
connectorConnections: this.connectorConnectionStorage.snapshot(),
|
|
8988
|
+
activity: this.activityStorage.snapshot()
|
|
8525
8989
|
};
|
|
8526
8990
|
}
|
|
8527
8991
|
restore(snapshot) {
|
|
@@ -8531,6 +8995,7 @@ class InMemoryStorage2 {
|
|
|
8531
8995
|
this.authStorage.restore(snapshot.auth);
|
|
8532
8996
|
this.executionStorage.restore(snapshot.executions);
|
|
8533
8997
|
this.agentStorage.restore(snapshot.agents);
|
|
8998
|
+
this.artifactStorage.restore(snapshot.artifacts);
|
|
8534
8999
|
this.aiUsageStorage.restore(snapshot.aiUsage);
|
|
8535
9000
|
this.aiCostStorage.restore(snapshot.aiCosts);
|
|
8536
9001
|
this.aiLimitStorage.restore(snapshot.aiLimits);
|
|
@@ -8547,6 +9012,7 @@ class InMemoryStorage2 {
|
|
|
8547
9012
|
this.fileUploadSessionStorage.restore(snapshot.fileUploadSessions);
|
|
8548
9013
|
this.fileDownloadGrantStorage.restore(snapshot.fileDownloadGrants);
|
|
8549
9014
|
this.connectorConnectionStorage.restore(snapshot.connectorConnections);
|
|
9015
|
+
this.activityStorage.restore(snapshot.activity);
|
|
8550
9016
|
}
|
|
8551
9017
|
}
|
|
8552
9018
|
// src/storage/objects/query-preparation.ts
|
|
@@ -8806,4 +9272,4 @@ var VECTOR_INDEXING_FAILURE_CODES2 = [
|
|
|
8806
9272
|
];
|
|
8807
9273
|
export { MAX_VECTOR_K, INDEXING_EMBEDDING_TIMEOUT_MS, vectorConfiguration, vectorSources, normalizeVector2, vectorSearchCandidateLimit2, hasVectorProfile2, isVectorProfileQuery2, InMemoryActionRunStorage2, AGENT_MESSAGE_CONTENT_VERSION2, InMemoryAgentStorage2, AiCostStorageError2, InMemoryAiCostStorage2, InMemoryAiLimitStorage2, InMemoryConnectorConnectionStorage2, InMemoryFileUploadSessions2, objectBatchKey2, linkBatchKey2, objectLinkCursor2, compareQueryScalarValues, queryScalarValuesEqual, PIPELINE_RUN_FAILURE_CODES2, InMemoryPipelineRunStorage2, InMemoryProjectionRunStorage2, InMemoryRulesStorage2, InMemoryShareGrantStorage2, InMemoryShareSessionStorage2, SYNC_RUN_FAILURE_CODES2, InMemorySyncRunStorage2, WEBHOOK_RUN_FAILURE_CODES2, canRetryWebhookRun2, InMemoryWebhookRunStorage2, WorkflowInterventionError2, InMemoryWorkflowInterventionStorage2, WORKFLOW_RUN_FAILURE_CODES2, InMemoryWorkflowRunStorage2, InMemoryWorkflowNodeRunStorage2, InMemoryWorkflowAgentNodeRunStorage2, InMemoryStorage2, prepareObjectQueries2, isMigrationCapableStorage2, migrateStorage2, checkStorageSchema2, step2, defineMigrations2, runMigrationSet2, describeMigrationHistory2, VECTOR_INDEXING_FAILURE_CODES2 };
|
|
8808
9274
|
|
|
8809
|
-
//# debugId=
|
|
9275
|
+
//# debugId=9F75904DDA2912F064756E2164756E21
|