@sixb/core 0.1.14 → 0.1.16
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 +26 -26
- package/dist/actions/worker.js +1 -1
- package/dist/agents/index.js +41 -41
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/streams/index.js +2 -2
- package/dist/agents/streams/internal.js +2 -2
- package/dist/auth/index.js +6 -6
- package/dist/authorization/index.js +3 -3
- package/dist/bootstrap/index.js +44 -44
- package/dist/{chunk-6rzb1g6h.js → chunk-2xvgy3x5.js} +2 -2
- package/dist/{chunk-16jenmzw.js → chunk-3q7z9hd4.js} +33 -33
- package/dist/{chunk-16jenmzw.js.map → chunk-3q7z9hd4.js.map} +1 -1
- package/dist/{chunk-hxgj4kzd.js → chunk-40qb8wpe.js} +11 -11
- package/dist/{chunk-hxgj4kzd.js.map → chunk-40qb8wpe.js.map} +3 -3
- package/dist/{chunk-vn3yh259.js → chunk-4gmng3vf.js} +1 -1
- package/dist/{chunk-znw0zvy4.js → chunk-4wn7bxxa.js} +25 -7
- package/dist/chunk-4wn7bxxa.js.map +12 -0
- package/dist/{chunk-gct3m1da.js → chunk-667x4drs.js} +3 -3
- package/dist/{chunk-rzcjp5m2.js → chunk-69kt9q43.js} +2 -2
- package/dist/{chunk-3qpcrcj8.js → chunk-6aawea28.js} +2 -4
- package/dist/chunk-6aawea28.js.map +10 -0
- package/dist/{chunk-rzkr70gr.js → chunk-6fsr7y93.js} +5 -1
- package/dist/{chunk-rzkr70gr.js.map → chunk-6fsr7y93.js.map} +3 -3
- package/dist/{chunk-3fpgxpsq.js → chunk-6z1q7j19.js} +144 -73
- package/dist/{chunk-3fpgxpsq.js.map → chunk-6z1q7j19.js.map} +6 -6
- package/dist/{chunk-ypj2wqtj.js → chunk-70jmg2zx.js} +2 -2
- package/dist/{chunk-m8zkvep1.js → chunk-7g2gjvah.js} +1 -1
- package/dist/{chunk-pvgpckm1.js → chunk-8x74221e.js} +10 -10
- package/dist/{chunk-ma1mhh7w.js → chunk-a7ne02hk.js} +6 -6
- package/dist/{chunk-bxx3ms5t.js → chunk-b9y8hcm2.js} +2 -2
- package/dist/{chunk-ww185kt6.js → chunk-chdg6eqq.js} +2 -2
- package/dist/{chunk-y487ywrv.js → chunk-cq44v1a6.js} +4 -4
- package/dist/{chunk-4ypbe95r.js → chunk-cxj8y8t0.js} +2 -2
- package/dist/{chunk-3a338wrp.js → chunk-dp7yk20b.js} +1 -1
- package/dist/{chunk-dv4ct8mp.js → chunk-dsv8kdgk.js} +4 -4
- package/dist/{chunk-dsfw1bdr.js → chunk-f72rbvsb.js} +2 -2
- package/dist/{chunk-4tnrzqqh.js → chunk-fj1dvp37.js} +1 -1
- package/dist/{chunk-ht4a7mjg.js → chunk-g4rbm4a6.js} +42 -8
- package/dist/{chunk-ht4a7mjg.js.map → chunk-g4rbm4a6.js.map} +3 -3
- package/dist/{chunk-wnxabtn4.js → chunk-gkxsenvp.js} +19 -11
- package/dist/{chunk-wnxabtn4.js.map → chunk-gkxsenvp.js.map} +4 -4
- package/dist/{chunk-vef6qa14.js → chunk-gmdvns8f.js} +2 -2
- package/dist/{chunk-728fp090.js → chunk-h044jb97.js} +1072 -1075
- package/dist/chunk-h044jb97.js.map +15 -0
- package/dist/{chunk-00pfcqh4.js → chunk-h4138ww2.js} +130 -71
- package/dist/{chunk-00pfcqh4.js.map → chunk-h4138ww2.js.map} +5 -5
- package/dist/{chunk-yvf2jqj8.js → chunk-h866d223.js} +1 -1
- package/dist/{chunk-qma80ych.js → chunk-hn2r7z41.js} +3 -2
- package/dist/chunk-hn2r7z41.js.map +11 -0
- package/dist/{chunk-bdhfn0ww.js → chunk-kkqwzy6h.js} +1 -1
- package/dist/{chunk-wn7mznxc.js → chunk-kttr5ftm.js} +5 -5
- package/dist/{chunk-kxea54yg.js → chunk-kvysp909.js} +3 -3
- package/dist/{chunk-p1683c0v.js → chunk-kyjcwqz6.js} +5 -2
- package/dist/{chunk-p1683c0v.js.map → chunk-kyjcwqz6.js.map} +3 -3
- package/dist/{chunk-ffwvdgk1.js → chunk-nj0020ay.js} +1 -1
- package/dist/{chunk-q2xghyft.js → chunk-nkbev3tr.js} +5 -5
- package/dist/{chunk-cbn96bve.js → chunk-nvymebc1.js} +2 -2
- package/dist/{chunk-2fv8sajb.js → chunk-qnd7ehe5.js} +2 -2
- package/dist/{chunk-jfdggg1p.js → chunk-sbcm1b92.js} +5 -5
- package/dist/{chunk-d8yes9yx.js → chunk-swxzncrv.js} +1 -1
- package/dist/{chunk-drz59ve0.js → chunk-tkdbge6v.js} +1 -1
- package/dist/{chunk-ky7zpbtt.js → chunk-tnvafr7g.js} +1 -1
- package/dist/{chunk-y6vnvayj.js → chunk-vjcd8d27.js} +1 -1
- package/dist/{chunk-hj0n3c2p.js → chunk-vjqt7q3a.js} +45 -27
- package/dist/{chunk-hj0n3c2p.js.map → chunk-vjqt7q3a.js.map} +3 -3
- package/dist/{chunk-z9h698s8.js → chunk-vsvrv7n8.js} +1 -1
- package/dist/{chunk-xgptywp0.js → chunk-y2aq6ag9.js} +1 -1
- package/dist/{chunk-e2c5yxfe.js → chunk-zb47r1c8.js} +2 -2
- package/dist/{chunk-3nx8vj5a.js → chunk-zvmr2hqk.js} +3 -2
- package/dist/chunk-zvmr2hqk.js.map +12 -0
- package/dist/deploy/define.d.ts +4 -0
- package/dist/deploy/define.d.ts.map +1 -0
- package/dist/deploy/index.d.ts +3 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/index.js +10 -0
- package/dist/deploy/index.js.map +10 -0
- package/dist/deploy/internal.d.ts +3 -0
- package/dist/deploy/internal.d.ts.map +1 -0
- package/dist/deploy/internal.js +244 -0
- package/dist/deploy/internal.js.map +11 -0
- package/dist/deploy/services.d.ts +8 -0
- package/dist/deploy/services.d.ts.map +1 -0
- package/dist/deploy/types.d.ts +309 -0
- package/dist/deploy/types.d.ts.map +1 -0
- package/dist/deploy/validation.d.ts +7 -0
- package/dist/deploy/validation.d.ts.map +1 -0
- package/dist/error-reporting/internal.js +3 -3
- package/dist/errors/catalog.d.ts +4 -0
- package/dist/errors/catalog.d.ts.map +1 -1
- package/dist/errors/internal.js +1 -1
- package/dist/events/index.js +3 -3
- package/dist/execution/agent.js +38 -38
- package/dist/execution/primitive.js +34 -34
- package/dist/execution/request.js +36 -36
- package/dist/execution/request.js.map +1 -1
- package/dist/index.js +56 -56
- package/dist/index.js.map +1 -1
- package/dist/maintenance/ontology-maintenance.d.ts +2 -0
- package/dist/maintenance/ontology-maintenance.d.ts.map +1 -1
- package/dist/maintenance/types.d.ts +8 -2
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/materialization/dataset-watermark.d.ts +6 -1
- package/dist/materialization/dataset-watermark.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 +22 -22
- package/dist/materializer/index.js.map +1 -1
- package/dist/materializer/projections/finish-run.d.ts.map +1 -1
- package/dist/materializer/projections/replace.d.ts.map +1 -1
- package/dist/materializer/projections/source-materialization.d.ts +6 -2
- package/dist/materializer/projections/source-materialization.d.ts.map +1 -1
- package/dist/models/embedding-model.d.ts +4 -0
- package/dist/models/embedding-model.d.ts.map +1 -1
- package/dist/models/execution/index.js +19 -19
- package/dist/models/index.js +2 -2
- package/dist/objects/index.js +25 -25
- package/dist/objects/query/index.js +21 -21
- package/dist/objects/query/index.js.map +1 -1
- package/dist/objects/vectors/indexing-generate.d.ts.map +1 -1
- package/dist/objects/vectors/profile.d.ts.map +1 -1
- package/dist/objects/vectors/query.d.ts +1 -1
- package/dist/objects/vectors/query.d.ts.map +1 -1
- package/dist/objects/vectors/resolve-query.d.ts.map +1 -1
- package/dist/objects/vectors/types.d.ts +1 -1
- package/dist/objects/vectors/types.d.ts.map +1 -1
- package/dist/ontology/builders.d.ts +13 -4
- package/dist/ontology/builders.d.ts.map +1 -1
- package/dist/ontology/index.js +3 -3
- package/dist/ontology/internal.js +2 -2
- package/dist/ontology/vector-profiles.d.ts.map +1 -1
- package/dist/pipelines/index.js +23 -23
- package/dist/projections/internal.js +20 -20
- package/dist/projections/types.d.ts +1 -1
- package/dist/projections/types.d.ts.map +1 -1
- package/dist/queues/in-memory.d.ts +1 -1
- package/dist/queues/in-memory.d.ts.map +1 -1
- package/dist/runtime/internal.js +23 -23
- package/dist/sandboxes/index.js +5 -5
- package/dist/shares/internal.js +18 -18
- package/dist/shares/internal.js.map +1 -1
- package/dist/storage/action-runs/failure.js +2 -2
- package/dist/storage/agents/provider.js +1 -1
- package/dist/storage/ai-limits/enforcement.js +2 -2
- package/dist/storage/connector-connections/provider.js +1 -1
- package/dist/storage/file-upload-sessions/provider.js +7 -7
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +33 -33
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/internal.js +1 -1
- package/dist/storage/ontology/in-memory/sources.d.ts +6 -3
- 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/provider.d.ts +16 -3
- package/dist/storage/ontology/provider.d.ts.map +1 -1
- package/dist/storage/ontology/provider.js +8 -4
- package/dist/storage/ontology/provider.js.map +1 -1
- package/dist/storage/ontology/sources.d.ts +36 -8
- package/dist/storage/ontology/sources.d.ts.map +1 -1
- package/dist/storage/projection-runs/in-memory.d.ts +3 -1
- package/dist/storage/projection-runs/in-memory.d.ts.map +1 -1
- package/dist/storage/projection-runs/index.d.ts +1 -1
- package/dist/storage/projection-runs/index.d.ts.map +1 -1
- package/dist/storage/projection-runs/lifecycle.d.ts +12 -0
- package/dist/storage/projection-runs/lifecycle.d.ts.map +1 -1
- package/dist/storage/projection-runs/provider.js +10 -4
- package/dist/storage/projection-runs/provider.js.map +1 -1
- package/dist/storage/projection-runs/types.d.ts +32 -1
- package/dist/storage/projection-runs/types.d.ts.map +1 -1
- package/dist/storage/workflow-runs/provider.js +7 -7
- package/dist/syncs/index.js +24 -24
- package/dist/testing/index.js +306 -64
- package/dist/testing/index.js.map +4 -4
- package/dist/testing/ontology-storage-contract.d.ts.map +1 -1
- package/dist/testing/projection-run-storage-contract.d.ts.map +1 -1
- package/dist/webhooks/internal.js +19 -19
- package/dist/webhooks/internal.js.map +1 -1
- package/dist/workers/index.js +1 -1
- package/dist/workflows/index.js +41 -41
- package/package.json +13 -1
- package/src/deploy/define.ts +6 -0
- package/src/deploy/index.ts +41 -0
- package/src/deploy/internal.ts +7 -0
- package/src/deploy/services.ts +51 -0
- package/src/deploy/types.ts +338 -0
- package/src/deploy/validation.ts +261 -0
- package/src/errors/catalog.ts +4 -0
- package/src/maintenance/ontology-maintenance.ts +32 -2
- package/src/maintenance/types.ts +8 -2
- package/src/materialization/dataset-watermark.ts +6 -4
- package/src/materialization/model.ts +7 -0
- package/src/materializer/README.md +26 -6
- package/src/materializer/projections/finish-run.ts +129 -26
- package/src/materializer/projections/replace.ts +67 -49
- package/src/materializer/projections/source-materialization.ts +11 -6
- package/src/models/embedding-model.ts +12 -0
- package/src/models/execution/embedding.ts +5 -1
- package/src/objects/query/validate.ts +1 -10
- package/src/objects/vectors/README.md +8 -0
- package/src/objects/vectors/handle.ts +1 -1
- package/src/objects/vectors/indexing-generate.ts +5 -1
- package/src/objects/vectors/profile.ts +2 -0
- package/src/objects/vectors/query.ts +18 -4
- package/src/objects/vectors/resolve-query.ts +9 -5
- package/src/objects/vectors/types.ts +3 -1
- package/src/ontology/builders.ts +21 -7
- package/src/ontology/vector-profiles.ts +1 -0
- package/src/projections/types.ts +1 -0
- package/src/storage/index.ts +6 -1
- package/src/storage/ontology/in-memory/sources.ts +119 -55
- package/src/storage/ontology/index.ts +4 -1
- package/src/storage/ontology/provider.ts +64 -7
- package/src/storage/ontology/sources.ts +42 -8
- package/src/storage/projection-runs/in-memory.ts +41 -2
- package/src/storage/projection-runs/index.ts +2 -0
- package/src/storage/projection-runs/lifecycle.ts +61 -4
- package/src/storage/projection-runs/types.ts +41 -1
- package/src/testing/ontology-storage-contract.ts +141 -15
- package/src/testing/projection-run-storage-contract.ts +174 -1
- package/dist/chunk-3nx8vj5a.js.map +0 -12
- package/dist/chunk-3qpcrcj8.js.map +0 -10
- package/dist/chunk-728fp090.js.map +0 -15
- package/dist/chunk-qma80ych.js.map +0 -11
- package/dist/chunk-znw0zvy4.js.map +0 -12
- /package/dist/{chunk-6rzb1g6h.js.map → chunk-2xvgy3x5.js.map} +0 -0
- /package/dist/{chunk-vn3yh259.js.map → chunk-4gmng3vf.js.map} +0 -0
- /package/dist/{chunk-gct3m1da.js.map → chunk-667x4drs.js.map} +0 -0
- /package/dist/{chunk-rzcjp5m2.js.map → chunk-69kt9q43.js.map} +0 -0
- /package/dist/{chunk-ypj2wqtj.js.map → chunk-70jmg2zx.js.map} +0 -0
- /package/dist/{chunk-m8zkvep1.js.map → chunk-7g2gjvah.js.map} +0 -0
- /package/dist/{chunk-pvgpckm1.js.map → chunk-8x74221e.js.map} +0 -0
- /package/dist/{chunk-ma1mhh7w.js.map → chunk-a7ne02hk.js.map} +0 -0
- /package/dist/{chunk-bxx3ms5t.js.map → chunk-b9y8hcm2.js.map} +0 -0
- /package/dist/{chunk-ww185kt6.js.map → chunk-chdg6eqq.js.map} +0 -0
- /package/dist/{chunk-y487ywrv.js.map → chunk-cq44v1a6.js.map} +0 -0
- /package/dist/{chunk-4ypbe95r.js.map → chunk-cxj8y8t0.js.map} +0 -0
- /package/dist/{chunk-3a338wrp.js.map → chunk-dp7yk20b.js.map} +0 -0
- /package/dist/{chunk-dv4ct8mp.js.map → chunk-dsv8kdgk.js.map} +0 -0
- /package/dist/{chunk-dsfw1bdr.js.map → chunk-f72rbvsb.js.map} +0 -0
- /package/dist/{chunk-4tnrzqqh.js.map → chunk-fj1dvp37.js.map} +0 -0
- /package/dist/{chunk-vef6qa14.js.map → chunk-gmdvns8f.js.map} +0 -0
- /package/dist/{chunk-yvf2jqj8.js.map → chunk-h866d223.js.map} +0 -0
- /package/dist/{chunk-bdhfn0ww.js.map → chunk-kkqwzy6h.js.map} +0 -0
- /package/dist/{chunk-wn7mznxc.js.map → chunk-kttr5ftm.js.map} +0 -0
- /package/dist/{chunk-kxea54yg.js.map → chunk-kvysp909.js.map} +0 -0
- /package/dist/{chunk-ffwvdgk1.js.map → chunk-nj0020ay.js.map} +0 -0
- /package/dist/{chunk-q2xghyft.js.map → chunk-nkbev3tr.js.map} +0 -0
- /package/dist/{chunk-cbn96bve.js.map → chunk-nvymebc1.js.map} +0 -0
- /package/dist/{chunk-2fv8sajb.js.map → chunk-qnd7ehe5.js.map} +0 -0
- /package/dist/{chunk-jfdggg1p.js.map → chunk-sbcm1b92.js.map} +0 -0
- /package/dist/{chunk-d8yes9yx.js.map → chunk-swxzncrv.js.map} +0 -0
- /package/dist/{chunk-drz59ve0.js.map → chunk-tkdbge6v.js.map} +0 -0
- /package/dist/{chunk-ky7zpbtt.js.map → chunk-tnvafr7g.js.map} +0 -0
- /package/dist/{chunk-y6vnvayj.js.map → chunk-vjcd8d27.js.map} +0 -0
- /package/dist/{chunk-z9h698s8.js.map → chunk-vsvrv7n8.js.map} +0 -0
- /package/dist/{chunk-xgptywp0.js.map → chunk-y2aq6ag9.js.map} +0 -0
- /package/dist/{chunk-e2c5yxfe.js.map → chunk-zb47r1c8.js.map} +0 -0
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createSixbError2,
|
|
4
4
|
toSixbFailure2,
|
|
5
5
|
parseSixbFailure2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6fsr7y93.js";
|
|
7
7
|
import {
|
|
8
8
|
parseActionRunFailure2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-y2aq6ag9.js";
|
|
10
10
|
import {
|
|
11
11
|
ActionRunError2,
|
|
12
12
|
assertActionRunExecution2
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
paginate,
|
|
16
16
|
InMemoryAuthStorage2,
|
|
17
17
|
principalsEqual2
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2xvgy3x5.js";
|
|
19
19
|
import {
|
|
20
20
|
ObjectReadLimitExceededError2,
|
|
21
21
|
snapshotObjectReadExecutionLimits2,
|
|
22
22
|
assertObjectReadFacetCount2,
|
|
23
23
|
assertObjectReadOutputWithinLimit2
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-69kt9q43.js";
|
|
25
25
|
import {
|
|
26
26
|
assertObjectReaderProject2
|
|
27
27
|
} from "./chunk-v4jbb3rs.js";
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
} from "./chunk-h89wz928.js";
|
|
81
81
|
import {
|
|
82
82
|
DurableFileUploadSessions2
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-dp7yk20b.js";
|
|
84
84
|
import {
|
|
85
85
|
ExecutionStorageError2,
|
|
86
86
|
prepareExecutionRecord2,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
assertSourceStagedRow2,
|
|
120
120
|
isExactStagingManifest2,
|
|
121
121
|
sourceConflict2
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-g4rbm4a6.js";
|
|
123
123
|
import {
|
|
124
124
|
objectRefKey2,
|
|
125
125
|
linkRefKey2,
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
} from "./chunk-mmagke4x.js";
|
|
147
147
|
import {
|
|
148
148
|
projectionRunObjectTypesVisible2
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-hn2r7z41.js";
|
|
150
150
|
import {
|
|
151
151
|
ProjectionRunError2,
|
|
152
152
|
assertProjectionRunNonEmpty2,
|
|
@@ -163,7 +163,9 @@ import {
|
|
|
163
163
|
advanceProjectionTelemetry2,
|
|
164
164
|
finishProjectionRunRecord2,
|
|
165
165
|
failProjectionRunEnqueue2,
|
|
166
|
+
parseProjectionAttemptFailure2,
|
|
166
167
|
canRequeueProjectionRunAfterEnqueueFailure2,
|
|
168
|
+
projectionRunSupersedes2,
|
|
167
169
|
publicProjectionRunRecord2,
|
|
168
170
|
createProjectionRunClaim2,
|
|
169
171
|
staleProjectionRunExecution2,
|
|
@@ -172,7 +174,7 @@ import {
|
|
|
172
174
|
assertProjectionMissingTarget2,
|
|
173
175
|
requireTelemetryProjectionRun2,
|
|
174
176
|
assertProjectionRunDurableExecution2
|
|
175
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-4wn7bxxa.js";
|
|
176
178
|
import {
|
|
177
179
|
SyncRunError2,
|
|
178
180
|
assertSyncRunExecution2
|
|
@@ -185,18 +187,7 @@ import {
|
|
|
185
187
|
WorkflowRunError2,
|
|
186
188
|
assertWorkflowRunExecution2,
|
|
187
189
|
assertWorkflowAgentNodeRunExecution2
|
|
188
|
-
} from "./chunk-
|
|
189
|
-
import {
|
|
190
|
-
actionSubjectsEqual2,
|
|
191
|
-
actionRunPhaseRecordsEqual2,
|
|
192
|
-
canRequeueActionRunAfterEnqueueFailure2,
|
|
193
|
-
isTerminalActionRun2,
|
|
194
|
-
StorageTransactionError2,
|
|
195
|
-
canRequeuePipelineRunAfterEnqueueFailure2,
|
|
196
|
-
canRequeueSyncRunAfterEnqueueFailure2,
|
|
197
|
-
createTransactionStorageProxy2,
|
|
198
|
-
throwNestedStorageTransaction2
|
|
199
|
-
} from "./chunk-zdkcdshk.js";
|
|
190
|
+
} from "./chunk-667x4drs.js";
|
|
200
191
|
import {
|
|
201
192
|
ShareGrantStorageError2,
|
|
202
193
|
normalizeShareGrantCreate2,
|
|
@@ -215,13 +206,24 @@ import {
|
|
|
215
206
|
normalizeRevokeShareSessionInput2,
|
|
216
207
|
cloneShareSessionRecord2
|
|
217
208
|
} from "./chunk-z8fx5cgb.js";
|
|
209
|
+
import {
|
|
210
|
+
actionSubjectsEqual2,
|
|
211
|
+
actionRunPhaseRecordsEqual2,
|
|
212
|
+
canRequeueActionRunAfterEnqueueFailure2,
|
|
213
|
+
isTerminalActionRun2,
|
|
214
|
+
StorageTransactionError2,
|
|
215
|
+
canRequeuePipelineRunAfterEnqueueFailure2,
|
|
216
|
+
canRequeueSyncRunAfterEnqueueFailure2,
|
|
217
|
+
createTransactionStorageProxy2,
|
|
218
|
+
throwNestedStorageTransaction2
|
|
219
|
+
} from "./chunk-zdkcdshk.js";
|
|
218
220
|
import {
|
|
219
221
|
ConnectorConnectionStorageError2,
|
|
220
222
|
CONNECTOR_CONNECTION_RUN_FAILURE_CODES2
|
|
221
223
|
} from "./chunk-2c4j899j.js";
|
|
222
224
|
import {
|
|
223
225
|
assertPinnedDatasetWatermark2
|
|
224
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-6aawea28.js";
|
|
225
227
|
import {
|
|
226
228
|
MaterializationValidationError2,
|
|
227
229
|
MaterializationConflictError2
|
|
@@ -2572,10 +2574,22 @@ function isVectorProfileQuery2(query) {
|
|
|
2572
2574
|
return isVectorProfileQuery2(query.input);
|
|
2573
2575
|
if (query.kind !== "vector" || !query.profile)
|
|
2574
2576
|
return false;
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2577
|
+
return isVectorCandidateQuery(query.input);
|
|
2578
|
+
}
|
|
2579
|
+
function isVectorCandidateQuery(query) {
|
|
2580
|
+
switch (query.kind) {
|
|
2581
|
+
case "start":
|
|
2582
|
+
return !query.includeSubtypes;
|
|
2583
|
+
case "refs":
|
|
2584
|
+
return true;
|
|
2585
|
+
case "filter":
|
|
2586
|
+
case "traverse":
|
|
2587
|
+
return isVectorCandidateQuery(query.input);
|
|
2588
|
+
case "set":
|
|
2589
|
+
return query.inputs.every(isVectorCandidateQuery);
|
|
2590
|
+
default:
|
|
2591
|
+
return false;
|
|
2592
|
+
}
|
|
2579
2593
|
}
|
|
2580
2594
|
|
|
2581
2595
|
// src/storage/objects/keys.ts
|
|
@@ -2741,6 +2755,7 @@ function vectorConfiguration(profile) {
|
|
|
2741
2755
|
model: profile.model.modelId,
|
|
2742
2756
|
representation: profile.model.definition.representation ?? { name: profile.model.modelId },
|
|
2743
2757
|
dimensions: profile.model.definition.dimensions,
|
|
2758
|
+
...profile.model.definition.inputMode === "asymmetric" ? { inputMode: "asymmetric" } : {},
|
|
2744
2759
|
metric: "cosine",
|
|
2745
2760
|
precision: "float32",
|
|
2746
2761
|
normalization: "l2-v1"
|
|
@@ -5701,7 +5716,7 @@ class InMemoryOntologySourceStorage {
|
|
|
5701
5716
|
}
|
|
5702
5717
|
const nonterminal = this.findRunCandidates(input.projectId, input.source.projectionId, input.execution.projectionRunId);
|
|
5703
5718
|
if (nonterminal.length > 0) {
|
|
5704
|
-
throw sourceConflict2(`Projection run '${input.execution.projectionRunId}' already has a nonterminal source materialization;
|
|
5719
|
+
throw sourceConflict2(`Projection run '${input.execution.projectionRunId}' already has a nonterminal source materialization; adopt it before beginning another.`);
|
|
5705
5720
|
}
|
|
5706
5721
|
const materialization = {
|
|
5707
5722
|
projectId: input.projectId,
|
|
@@ -5785,72 +5800,105 @@ class InMemoryOntologySourceStorage {
|
|
|
5785
5800
|
return active ? sourceMaterializationRecord(active) : null;
|
|
5786
5801
|
});
|
|
5787
5802
|
}
|
|
5803
|
+
async adopt(input) {
|
|
5804
|
+
return this.runRootOperation(async () => {
|
|
5805
|
+
assertSourceProject2(input);
|
|
5806
|
+
assertSourceExecutionIdentity2(input.execution.projectionRunId, input.execution.executionToken);
|
|
5807
|
+
assertTimestamp2(input.adoptedAt, "Source adoptedAt");
|
|
5808
|
+
await this.assertCurrentExecution(input);
|
|
5809
|
+
const [candidate, ...others] = this.findRunCandidates(input.projectId, input.source.projectionId, input.execution.projectionRunId);
|
|
5810
|
+
if (!candidate)
|
|
5811
|
+
return null;
|
|
5812
|
+
if (others.length > 0)
|
|
5813
|
+
throw multipleRunCandidates(input.execution.projectionRunId);
|
|
5814
|
+
const [key, materialization] = candidate;
|
|
5815
|
+
const adopted = {
|
|
5816
|
+
...materialization,
|
|
5817
|
+
executionToken: input.execution.executionToken,
|
|
5818
|
+
updatedAt: input.adoptedAt > materialization.updatedAt ? input.adoptedAt : materialization.updatedAt
|
|
5819
|
+
};
|
|
5820
|
+
this.state.sourceMaterializations.set(key, adopted);
|
|
5821
|
+
return {
|
|
5822
|
+
record: sourceMaterializationRecord(adopted),
|
|
5823
|
+
resumeStagingOrdinal: adopted.status === "ready" ? adopted.rootCount ?? 0 : Math.max(0, ...adopted.ordinalRoots.keys())
|
|
5824
|
+
};
|
|
5825
|
+
});
|
|
5826
|
+
}
|
|
5788
5827
|
async abandon(input) {
|
|
5789
5828
|
return this.runRootOperation(async () => {
|
|
5790
5829
|
assertSourceProject2(input);
|
|
5791
5830
|
assertSourceExecutionIdentity2(input.execution.projectionRunId, input.execution.executionToken);
|
|
5792
5831
|
assertTimestamp2(input.abandonedAt, "Source abandonedAt");
|
|
5793
5832
|
await this.assertCurrentExecution(input);
|
|
5794
|
-
return input.kind === "candidate" ? this.abandonCandidate(input) : this.
|
|
5833
|
+
return input.kind === "candidate" ? this.abandonCandidate(input) : this.abandonRunCandidate(input);
|
|
5795
5834
|
});
|
|
5796
5835
|
}
|
|
5797
5836
|
async cleanupTerminal(input) {
|
|
5798
5837
|
return this.runRootOperation(() => {
|
|
5799
5838
|
assertNonblank(input.projectId, "Terminal source cleanup project id");
|
|
5800
5839
|
assertTimestamp2(input.terminalBefore, "Terminal source cleanup cutoff");
|
|
5801
|
-
|
|
5802
|
-
throw new MaterializationValidationError2("Terminal source cleanup limit must be a positive safe integer.");
|
|
5803
|
-
}
|
|
5840
|
+
assertCleanupLimit(input.limit);
|
|
5804
5841
|
const candidates = [];
|
|
5805
5842
|
for (const entry of this.state.sourceMaterializations.entries()) {
|
|
5806
5843
|
const materialization = entry[1];
|
|
5807
|
-
if (materialization.projectId !== input.projectId || materialization.status !== "superseded"
|
|
5844
|
+
if (materialization.projectId !== input.projectId || materialization.status !== "superseded" || materialization.terminalAt === null || materialization.terminalAt >= input.terminalBefore) {
|
|
5808
5845
|
continue;
|
|
5809
5846
|
}
|
|
5810
5847
|
if (materialization.roots.size > 0 && ![...materialization.roots.values()].some((root) => !root.active && root.retiredAt !== null && root.retiredAt < input.terminalBefore))
|
|
5811
5848
|
continue;
|
|
5812
5849
|
insertBounded(candidates, entry, input.limit, compareTerminalMaterializations);
|
|
5813
5850
|
}
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5851
|
+
return this.deleteRetiredRoots(candidates, input.limit, (root) => !root.active && root.retiredAt !== null && root.retiredAt < input.terminalBefore);
|
|
5852
|
+
});
|
|
5853
|
+
}
|
|
5854
|
+
async purgeAbandoned(input) {
|
|
5855
|
+
return this.runRootOperation(() => {
|
|
5856
|
+
assertNonblank(input.projectId, "Abandoned source purge project id");
|
|
5857
|
+
assertCleanupLimit(input.limit);
|
|
5858
|
+
const abandoned = [...this.state.sourceMaterializations.entries()].filter(([, materialization]) => materialization.projectId === input.projectId && materialization.status === "abandoned").sort(compareTerminalMaterializations);
|
|
5859
|
+
return this.deleteRetiredRoots(abandoned, input.limit, () => true);
|
|
5860
|
+
});
|
|
5861
|
+
}
|
|
5862
|
+
deleteRetiredRoots(candidates, limit, retired) {
|
|
5863
|
+
let remaining = limit;
|
|
5864
|
+
let rowsDeleted = 0;
|
|
5865
|
+
let materializationsDeleted = 0;
|
|
5866
|
+
for (const [key, candidate] of candidates) {
|
|
5867
|
+
if (remaining === 0)
|
|
5868
|
+
break;
|
|
5869
|
+
const current = this.state.sourceMaterializations.get(key);
|
|
5870
|
+
if (current !== candidate)
|
|
5871
|
+
continue;
|
|
5872
|
+
current.rootOrdinals.clear();
|
|
5873
|
+
current.ordinalRoots.clear();
|
|
5874
|
+
for (const [rootKey, root] of current.roots) {
|
|
5818
5875
|
if (remaining === 0)
|
|
5819
5876
|
break;
|
|
5820
|
-
|
|
5821
|
-
if (current !== candidate)
|
|
5877
|
+
if (!retired(root))
|
|
5822
5878
|
continue;
|
|
5823
|
-
|
|
5824
|
-
current.ordinalRoots.clear();
|
|
5825
|
-
for (const [rootKey, root] of current.roots) {
|
|
5879
|
+
for (const entityKey of root.entityKeys) {
|
|
5826
5880
|
if (remaining === 0)
|
|
5827
5881
|
break;
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
break;
|
|
5833
|
-
current.rowsByEntity.delete(entityKey);
|
|
5834
|
-
root.entityKeys.delete(entityKey);
|
|
5835
|
-
rowsDeleted += 1;
|
|
5836
|
-
remaining -= 1;
|
|
5837
|
-
}
|
|
5838
|
-
if (root.entityKeys.size === 0 && remaining > 0) {
|
|
5839
|
-
current.roots.delete(rootKey);
|
|
5840
|
-
current.rootOrdinals.delete(rootKey);
|
|
5841
|
-
current.ordinalRoots.delete(root.stagingOrdinal);
|
|
5842
|
-
rowsDeleted += 1;
|
|
5843
|
-
remaining -= 1;
|
|
5844
|
-
}
|
|
5882
|
+
current.rowsByEntity.delete(entityKey);
|
|
5883
|
+
root.entityKeys.delete(entityKey);
|
|
5884
|
+
rowsDeleted += 1;
|
|
5885
|
+
remaining -= 1;
|
|
5845
5886
|
}
|
|
5846
|
-
if (
|
|
5847
|
-
|
|
5848
|
-
|
|
5887
|
+
if (root.entityKeys.size === 0 && remaining > 0) {
|
|
5888
|
+
current.roots.delete(rootKey);
|
|
5889
|
+
current.rootOrdinals.delete(rootKey);
|
|
5890
|
+
current.ordinalRoots.delete(root.stagingOrdinal);
|
|
5891
|
+
rowsDeleted += 1;
|
|
5849
5892
|
remaining -= 1;
|
|
5850
5893
|
}
|
|
5851
5894
|
}
|
|
5852
|
-
|
|
5853
|
-
|
|
5895
|
+
if (current.roots.size === 0 && current.rowsByEntity.size === 0 && remaining > 0) {
|
|
5896
|
+
this.state.sourceMaterializations.delete(key);
|
|
5897
|
+
materializationsDeleted += 1;
|
|
5898
|
+
remaining -= 1;
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5901
|
+
return { rowsDeleted, materializationsDeleted };
|
|
5854
5902
|
}
|
|
5855
5903
|
async summarizeTerminal(input) {
|
|
5856
5904
|
return this.runRootOperation(() => {
|
|
@@ -5898,14 +5946,10 @@ class InMemoryOntologySourceStorage {
|
|
|
5898
5946
|
}
|
|
5899
5947
|
return this.transitionToAbandoned(materialization, input.abandonedAt);
|
|
5900
5948
|
}
|
|
5901
|
-
|
|
5949
|
+
abandonRunCandidate(input) {
|
|
5902
5950
|
const candidates = this.findRunCandidates(input.projectId, input.source.projectionId, input.execution.projectionRunId);
|
|
5903
|
-
if (candidates.
|
|
5904
|
-
throw
|
|
5905
|
-
}
|
|
5906
|
-
if (candidates.length > 1) {
|
|
5907
|
-
throw sourceConflict2(`Projection run '${input.execution.projectionRunId}' has multiple nonterminal source materializations.`);
|
|
5908
|
-
}
|
|
5951
|
+
if (candidates.length > 1)
|
|
5952
|
+
throw multipleRunCandidates(input.execution.projectionRunId);
|
|
5909
5953
|
const candidate = candidates[0]?.[1];
|
|
5910
5954
|
return candidate ? this.transitionToAbandoned(candidate, input.abandonedAt) : null;
|
|
5911
5955
|
}
|
|
@@ -6058,6 +6102,14 @@ function assertNotBefore(value, minimum, label, minimumLabel) {
|
|
|
6058
6102
|
throw new MaterializationValidationError2(`${label} cannot precede source ${minimumLabel}.`);
|
|
6059
6103
|
}
|
|
6060
6104
|
}
|
|
6105
|
+
function assertCleanupLimit(limit) {
|
|
6106
|
+
if (!Number.isSafeInteger(limit) || limit <= 0) {
|
|
6107
|
+
throw new MaterializationValidationError2("Terminal source cleanup limit must be a positive safe integer.");
|
|
6108
|
+
}
|
|
6109
|
+
}
|
|
6110
|
+
function multipleRunCandidates(projectionRunId) {
|
|
6111
|
+
return sourceConflict2(`Projection run '${projectionRunId}' has multiple nonterminal source materializations.`);
|
|
6112
|
+
}
|
|
6061
6113
|
function compareTerminalMaterializations([, left], [, right]) {
|
|
6062
6114
|
return (left.terminalAt ?? "").localeCompare(right.terminalAt ?? "") || left.source.projectionId.localeCompare(right.source.projectionId) || left.materializationId.localeCompare(right.materializationId);
|
|
6063
6115
|
}
|
|
@@ -6613,6 +6665,9 @@ var runDirectly3 = async (run) => run();
|
|
|
6613
6665
|
function projectionRunKey(projectId, id) {
|
|
6614
6666
|
return JSON.stringify([projectId, id]);
|
|
6615
6667
|
}
|
|
6668
|
+
function compareText(left, right) {
|
|
6669
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
6670
|
+
}
|
|
6616
6671
|
function compareRuns2(a, b, order) {
|
|
6617
6672
|
return compareStartedAt(a, b, order);
|
|
6618
6673
|
}
|
|
@@ -6684,8 +6739,7 @@ class InMemoryProjectionRunStorage2 {
|
|
|
6684
6739
|
attempt,
|
|
6685
6740
|
executionToken,
|
|
6686
6741
|
startedAt: existing.startedAt ?? new Date(input.startedAt ?? new Date),
|
|
6687
|
-
finishedAt: undefined
|
|
6688
|
-
error: undefined
|
|
6742
|
+
finishedAt: undefined
|
|
6689
6743
|
};
|
|
6690
6744
|
this.rows.set(key, structuredClone(record));
|
|
6691
6745
|
return createProjectionRunClaim2(record);
|
|
@@ -6759,6 +6813,14 @@ class InMemoryProjectionRunStorage2 {
|
|
|
6759
6813
|
return publicProjectionRunRecord2(next);
|
|
6760
6814
|
});
|
|
6761
6815
|
}
|
|
6816
|
+
async recordAttemptFailure(input) {
|
|
6817
|
+
return this.runRootOperation(() => {
|
|
6818
|
+
const existing = this.requireExecution(input);
|
|
6819
|
+
const next = { ...existing, error: parseProjectionAttemptFailure2(existing, input.error) };
|
|
6820
|
+
this.rows.set(projectionRunKey(input.projectId, input.id), structuredClone(next));
|
|
6821
|
+
return publicProjectionRunRecord2(next);
|
|
6822
|
+
});
|
|
6823
|
+
}
|
|
6762
6824
|
async finish(input) {
|
|
6763
6825
|
return this.runRootOperation(() => {
|
|
6764
6826
|
const existing = this.requireExecution(input);
|
|
@@ -6795,9 +6857,18 @@ class InMemoryProjectionRunStorage2 {
|
|
|
6795
6857
|
return { runs, hasMore: offset + runs.length < total, total };
|
|
6796
6858
|
});
|
|
6797
6859
|
}
|
|
6860
|
+
async findSupersedingRun(input) {
|
|
6861
|
+
return this.runRootOperation(() => {
|
|
6862
|
+
const run = this.rows.get(projectionRunKey(input.projectId, input.id));
|
|
6863
|
+
if (!run)
|
|
6864
|
+
throw projectionRunNotFound2(input.projectId, input.id);
|
|
6865
|
+
const newest = [...this.rows.values()].filter((candidate) => projectionRunSupersedes2(candidate, run)).sort((left, right) => compareText(right.identity.datasetVersion.createdAt, left.identity.datasetVersion.createdAt) || compareText(right.id, left.id))[0];
|
|
6866
|
+
return newest ? publicProjectionRunRecord2(newest) : null;
|
|
6867
|
+
});
|
|
6868
|
+
}
|
|
6798
6869
|
async listLatestByProjectionIds(input) {
|
|
6799
6870
|
return this.runRootOperation(() => {
|
|
6800
|
-
const runs = latestStartedAtByOwnerId([...this.rows.values()].filter((record) => record.projectId === input.projectId), input.projectionIds, (record) => record.identity.projectionId);
|
|
6871
|
+
const runs = latestStartedAtByOwnerId([...this.rows.values()].filter((record) => record.projectId === input.projectId && record.status !== "superseded"), input.projectionIds, (record) => record.identity.projectionId);
|
|
6801
6872
|
return { runs: runs.map(publicProjectionRunRecord2) };
|
|
6802
6873
|
});
|
|
6803
6874
|
}
|
|
@@ -8579,4 +8650,4 @@ var VECTOR_INDEXING_FAILURE_CODES2 = [
|
|
|
8579
8650
|
];
|
|
8580
8651
|
export { InMemoryActionRunStorage2, AGENT_MESSAGE_CONTENT_VERSION2, InMemoryAgentStorage2, AiCostStorageError2, InMemoryAiCostStorage2, InMemoryAiLimitStorage2, InMemoryConnectorConnectionStorage2, InMemoryFileUploadSessions2, hasVectorProfile2, isVectorProfileQuery2, objectBatchKey2, linkBatchKey2, objectLinkCursor2, compareQueryScalarValues, queryScalarValuesEqual, MAX_VECTOR_K, vectorConfiguration, vectorSources, normalizeVector2, vectorSearchCandidateLimit2, 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, isMigrationCapableStorage2, migrateStorage2, checkStorageSchema2, step2, defineMigrations2, runMigrationSet2, describeMigrationHistory2, VECTOR_INDEXING_FAILURE_CODES2 };
|
|
8581
8652
|
|
|
8582
|
-
//# debugId=
|
|
8653
|
+
//# debugId=3E8E5105D8B7FDCD64756E2164756E21
|