@farukada/aws-langgraph-dynamodb-ts 0.9.0 → 1.0.0-rc.2
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/README.md +1720 -154
- package/dist/backfill/backfill.d.ts +168 -0
- package/dist/backfill/backfill.js +393 -0
- package/dist/checkpointer/actions/delete-thread.d.ts +47 -6
- package/dist/checkpointer/actions/delete-thread.js +58 -21
- package/dist/checkpointer/actions/get-tuple.d.ts +29 -4
- package/dist/checkpointer/actions/get-tuple.js +44 -10
- package/dist/checkpointer/actions/list.d.ts +46 -4
- package/dist/checkpointer/actions/list.js +121 -66
- package/dist/checkpointer/actions/put-writes.d.ts +41 -9
- package/dist/checkpointer/actions/put-writes.js +62 -77
- package/dist/checkpointer/actions/put.d.ts +83 -4
- package/dist/checkpointer/actions/put.js +177 -25
- package/dist/checkpointer/internal/delta-history.d.ts +112 -0
- package/dist/checkpointer/internal/delta-history.js +252 -0
- package/dist/checkpointer/internal/listing.d.ts +149 -0
- package/dist/checkpointer/internal/listing.js +245 -0
- package/dist/checkpointer/internal/parse.d.ts +262 -0
- package/dist/checkpointer/internal/parse.js +372 -0
- package/dist/checkpointer/internal/pending-writes.d.ts +275 -0
- package/dist/checkpointer/internal/pending-writes.js +588 -0
- package/dist/checkpointer/internal/read.d.ts +130 -0
- package/dist/checkpointer/internal/read.js +264 -0
- package/dist/checkpointer/internal/rows.d.ts +571 -0
- package/dist/checkpointer/internal/rows.js +834 -0
- package/dist/checkpointer/internal/setup.d.ts +42 -19
- package/dist/checkpointer/internal/setup.js +65 -29
- package/dist/checkpointer/saver.d.ts +256 -16
- package/dist/checkpointer/saver.js +275 -29
- package/dist/checkpointer/types.d.ts +39 -39
- package/dist/checkpointer/types.js +10 -1
- package/dist/factory/factory.d.ts +134 -28
- package/dist/factory/factory.js +240 -21
- package/dist/factory/types.d.ts +76 -0
- package/dist/factory/types.js +10 -0
- package/dist/history/actions/add-messages.d.ts +31 -4
- package/dist/history/actions/add-messages.js +38 -58
- package/dist/history/actions/clear.d.ts +49 -6
- package/dist/history/actions/clear.js +66 -14
- package/dist/history/actions/get-messages.d.ts +54 -6
- package/dist/history/actions/get-messages.js +126 -43
- package/dist/history/actions/list-sessions.d.ts +52 -10
- package/dist/history/actions/list-sessions.js +139 -40
- package/dist/history/actions/reconcile-count.d.ts +42 -10
- package/dist/history/actions/reconcile-count.js +45 -45
- package/dist/history/chat-message-history.d.ts +220 -33
- package/dist/history/chat-message-history.js +240 -43
- package/dist/history/internal/append.d.ts +212 -0
- package/dist/history/internal/append.js +500 -0
- package/dist/history/internal/message-read.d.ts +84 -0
- package/dist/history/internal/message-read.js +204 -0
- package/dist/history/internal/parse.d.ts +153 -0
- package/dist/history/internal/parse.js +252 -0
- package/dist/history/internal/rows.d.ts +195 -0
- package/dist/history/internal/rows.js +250 -0
- package/dist/history/internal/session.d.ts +331 -0
- package/dist/history/internal/session.js +628 -0
- package/dist/history/internal/setup.d.ts +52 -17
- package/dist/history/internal/setup.js +92 -21
- package/dist/history/session-adapter.d.ts +102 -7
- package/dist/history/session-adapter.js +103 -9
- package/dist/history/types.d.ts +80 -29
- package/dist/history/types.js +10 -1
- package/dist/index.d.ts +42 -11
- package/dist/index.js +33 -12
- package/dist/shared/adapter.d.ts +135 -0
- package/dist/shared/adapter.js +143 -0
- package/dist/shared/clock.d.ts +51 -2
- package/dist/shared/clock.js +57 -2
- package/dist/shared/codec/codec.d.ts +288 -13
- package/dist/shared/codec/codec.js +416 -19
- package/dist/shared/codec/compression.d.ts +43 -7
- package/dist/shared/codec/compression.js +53 -13
- package/dist/shared/codec/json-serde.d.ts +76 -4
- package/dist/shared/codec/json-serde.js +181 -8
- package/dist/shared/codec/s3/client-types.d.ts +53 -0
- package/dist/shared/codec/s3/client-types.js +26 -0
- package/dist/shared/codec/s3/client.d.ts +43 -10
- package/dist/shared/codec/s3/client.js +82 -9
- package/dist/shared/codec/s3/config.d.ts +242 -11
- package/dist/shared/codec/s3/config.js +293 -11
- package/dist/shared/codec/s3/lifecycle.d.ts +164 -6
- package/dist/shared/codec/s3/lifecycle.js +335 -27
- package/dist/shared/codec/s3/offloader.d.ts +393 -18
- package/dist/shared/codec/s3/offloader.js +595 -37
- package/dist/shared/concurrency.d.ts +43 -0
- package/dist/shared/concurrency.js +78 -0
- package/dist/shared/dynamodb/abort.d.ts +47 -0
- package/dist/shared/dynamodb/abort.js +59 -0
- package/dist/shared/dynamodb/batch-write.d.ts +77 -14
- package/dist/shared/dynamodb/batch-write.js +146 -27
- package/dist/shared/dynamodb/cancellation.d.ts +121 -4
- package/dist/shared/dynamodb/cancellation.js +147 -3
- package/dist/shared/dynamodb/client.d.ts +162 -8
- package/dist/shared/dynamodb/client.js +153 -5
- package/dist/shared/dynamodb/idempotent-write.d.ts +551 -0
- package/dist/shared/dynamodb/idempotent-write.js +593 -0
- package/dist/shared/dynamodb/paginate.d.ts +105 -9
- package/dist/shared/dynamodb/paginate.js +175 -7
- package/dist/shared/dynamodb/partition-delete.d.ts +185 -14
- package/dist/shared/dynamodb/partition-delete.js +314 -44
- package/dist/shared/dynamodb/recency-index.d.ts +231 -0
- package/dist/shared/dynamodb/recency-index.js +377 -0
- package/dist/shared/dynamodb/retry.d.ts +276 -8
- package/dist/shared/dynamodb/retry.js +433 -23
- package/dist/shared/dynamodb/table-schema.d.ts +190 -0
- package/dist/shared/dynamodb/table-schema.js +209 -0
- package/dist/shared/errors/base-error.d.ts +184 -10
- package/dist/shared/errors/base-error.js +160 -14
- package/dist/shared/errors/boundary.d.ts +71 -0
- package/dist/shared/errors/boundary.js +143 -0
- package/dist/shared/errors/classify.d.ts +97 -0
- package/dist/shared/errors/classify.js +257 -0
- package/dist/shared/errors/error-code.d.ts +77 -2
- package/dist/shared/errors/error-code.js +83 -1
- package/dist/shared/errors/errors.d.ts +158 -59
- package/dist/shared/errors/errors.js +219 -92
- package/dist/shared/logging/logger.d.ts +69 -3
- package/dist/shared/logging/logger.js +97 -3
- package/dist/shared/logging/redaction.d.ts +92 -8
- package/dist/shared/logging/redaction.js +273 -17
- package/dist/shared/logging/secret-patterns.d.ts +149 -19
- package/dist/shared/logging/secret-patterns.js +188 -27
- package/dist/shared/logging/truncate.d.ts +197 -0
- package/dist/shared/logging/truncate.js +231 -0
- package/dist/shared/options.d.ts +59 -7
- package/dist/shared/options.js +9 -1
- package/dist/shared/ulid.d.ts +77 -7
- package/dist/shared/ulid.js +103 -8
- package/dist/shared/validation/collaborators.d.ts +141 -0
- package/dist/shared/validation/collaborators.js +188 -0
- package/dist/shared/validation/option-shape.d.ts +89 -0
- package/dist/shared/validation/option-shape.js +113 -0
- package/dist/shared/validation/options.d.ts +145 -0
- package/dist/shared/validation/options.js +328 -0
- package/dist/shared/validation/primitives.d.ts +288 -21
- package/dist/shared/validation/primitives.js +353 -50
- package/dist/shared/validation/ttl.d.ts +66 -10
- package/dist/shared/validation/ttl.js +113 -15
- package/dist/store/actions/list-namespaces.d.ts +76 -6
- package/dist/store/actions/list-namespaces.js +166 -24
- package/dist/store/actions/put.d.ts +33 -8
- package/dist/store/actions/put.js +53 -60
- package/dist/store/actions/reconcile-vector-index.d.ts +31 -10
- package/dist/store/actions/reconcile-vector-index.js +34 -15
- package/dist/store/actions/search.d.ts +34 -6
- package/dist/store/actions/search.js +56 -51
- package/dist/store/internal/batch-plan.d.ts +26 -0
- package/dist/store/internal/batch-plan.js +109 -0
- package/dist/store/internal/filter.d.ts +36 -3
- package/dist/store/internal/filter.js +66 -15
- package/dist/store/internal/get-item.d.ts +45 -0
- package/dist/store/internal/get-item.js +115 -0
- package/dist/store/internal/item-write.d.ts +230 -0
- package/dist/store/internal/item-write.js +463 -0
- package/dist/store/internal/parse.d.ts +225 -0
- package/dist/store/internal/parse.js +350 -0
- package/dist/store/internal/rows.d.ts +355 -0
- package/dist/store/internal/rows.js +447 -0
- package/dist/store/internal/semantic-search.d.ts +161 -6
- package/dist/store/internal/semantic-search.js +360 -18
- package/dist/store/internal/setup.d.ts +77 -20
- package/dist/store/internal/setup.js +178 -47
- package/dist/store/internal/table-search.d.ts +100 -0
- package/dist/store/internal/table-search.js +213 -0
- package/dist/store/internal/vector-index.d.ts +247 -0
- package/dist/store/internal/vector-index.js +546 -0
- package/dist/store/store.d.ts +270 -17
- package/dist/store/store.js +329 -38
- package/dist/store/types.d.ts +76 -26
- package/dist/store/types.js +13 -1
- package/dist/store/vector-backend.d.ts +64 -4
- package/dist/store/vector-backend.js +15 -1
- package/package.json +58 -36
- package/dist/checkpointer/actions/delete-thread.d.ts.map +0 -1
- package/dist/checkpointer/actions/delete-thread.js.map +0 -1
- package/dist/checkpointer/actions/get-tuple.d.ts.map +0 -1
- package/dist/checkpointer/actions/get-tuple.js.map +0 -1
- package/dist/checkpointer/actions/list.d.ts.map +0 -1
- package/dist/checkpointer/actions/list.js.map +0 -1
- package/dist/checkpointer/actions/put-writes.d.ts.map +0 -1
- package/dist/checkpointer/actions/put-writes.js.map +0 -1
- package/dist/checkpointer/actions/put.d.ts.map +0 -1
- package/dist/checkpointer/actions/put.js.map +0 -1
- package/dist/checkpointer/internal/assemble.d.ts +0 -10
- package/dist/checkpointer/internal/assemble.d.ts.map +0 -1
- package/dist/checkpointer/internal/assemble.js +0 -37
- package/dist/checkpointer/internal/assemble.js.map +0 -1
- package/dist/checkpointer/internal/configurable.d.ts +0 -13
- package/dist/checkpointer/internal/configurable.d.ts.map +0 -1
- package/dist/checkpointer/internal/configurable.js +0 -23
- package/dist/checkpointer/internal/configurable.js.map +0 -1
- package/dist/checkpointer/internal/fetch.d.ts +0 -10
- package/dist/checkpointer/internal/fetch.d.ts.map +0 -1
- package/dist/checkpointer/internal/fetch.js +0 -46
- package/dist/checkpointer/internal/fetch.js.map +0 -1
- package/dist/checkpointer/internal/filter-match.d.ts +0 -12
- package/dist/checkpointer/internal/filter-match.d.ts.map +0 -1
- package/dist/checkpointer/internal/filter-match.js +0 -14
- package/dist/checkpointer/internal/filter-match.js.map +0 -1
- package/dist/checkpointer/internal/item-reader.d.ts +0 -55
- package/dist/checkpointer/internal/item-reader.d.ts.map +0 -1
- package/dist/checkpointer/internal/item-reader.js +0 -88
- package/dist/checkpointer/internal/item-reader.js.map +0 -1
- package/dist/checkpointer/internal/item-writer.d.ts +0 -26
- package/dist/checkpointer/internal/item-writer.d.ts.map +0 -1
- package/dist/checkpointer/internal/item-writer.js +0 -92
- package/dist/checkpointer/internal/item-writer.js.map +0 -1
- package/dist/checkpointer/internal/keys.d.ts +0 -31
- package/dist/checkpointer/internal/keys.d.ts.map +0 -1
- package/dist/checkpointer/internal/keys.js +0 -87
- package/dist/checkpointer/internal/keys.js.map +0 -1
- package/dist/checkpointer/internal/query.d.ts +0 -20
- package/dist/checkpointer/internal/query.d.ts.map +0 -1
- package/dist/checkpointer/internal/query.js +0 -36
- package/dist/checkpointer/internal/query.js.map +0 -1
- package/dist/checkpointer/internal/setup.d.ts.map +0 -1
- package/dist/checkpointer/internal/setup.js.map +0 -1
- package/dist/checkpointer/internal/special-write-cas.d.ts +0 -30
- package/dist/checkpointer/internal/special-write-cas.d.ts.map +0 -1
- package/dist/checkpointer/internal/special-write-cas.js +0 -104
- package/dist/checkpointer/internal/special-write-cas.js.map +0 -1
- package/dist/checkpointer/internal/special-write-cleanup.d.ts +0 -24
- package/dist/checkpointer/internal/special-write-cleanup.d.ts.map +0 -1
- package/dist/checkpointer/internal/special-write-cleanup.js +0 -47
- package/dist/checkpointer/internal/special-write-cleanup.js.map +0 -1
- package/dist/checkpointer/internal/special-write-verify.d.ts +0 -54
- package/dist/checkpointer/internal/special-write-verify.d.ts.map +0 -1
- package/dist/checkpointer/internal/special-write-verify.js +0 -65
- package/dist/checkpointer/internal/special-write-verify.js.map +0 -1
- package/dist/checkpointer/internal/validation.d.ts +0 -13
- package/dist/checkpointer/internal/validation.d.ts.map +0 -1
- package/dist/checkpointer/internal/validation.js +0 -30
- package/dist/checkpointer/internal/validation.js.map +0 -1
- package/dist/checkpointer/internal/write-guard.d.ts +0 -13
- package/dist/checkpointer/internal/write-guard.d.ts.map +0 -1
- package/dist/checkpointer/internal/write-guard.js +0 -39
- package/dist/checkpointer/internal/write-guard.js.map +0 -1
- package/dist/checkpointer/internal/write-index.d.ts +0 -37
- package/dist/checkpointer/internal/write-index.d.ts.map +0 -1
- package/dist/checkpointer/internal/write-index.js +0 -42
- package/dist/checkpointer/internal/write-index.js.map +0 -1
- package/dist/checkpointer/saver.d.ts.map +0 -1
- package/dist/checkpointer/saver.js.map +0 -1
- package/dist/checkpointer/types.d.ts.map +0 -1
- package/dist/checkpointer/types.js.map +0 -1
- package/dist/factory/factory.d.ts.map +0 -1
- package/dist/factory/factory.js.map +0 -1
- package/dist/history/actions/add-messages.d.ts.map +0 -1
- package/dist/history/actions/add-messages.js.map +0 -1
- package/dist/history/actions/clear.d.ts.map +0 -1
- package/dist/history/actions/clear.js.map +0 -1
- package/dist/history/actions/get-messages.d.ts.map +0 -1
- package/dist/history/actions/get-messages.js.map +0 -1
- package/dist/history/actions/list-sessions.d.ts.map +0 -1
- package/dist/history/actions/list-sessions.js.map +0 -1
- package/dist/history/actions/reconcile-count.d.ts.map +0 -1
- package/dist/history/actions/reconcile-count.js.map +0 -1
- package/dist/history/chat-message-history.d.ts.map +0 -1
- package/dist/history/chat-message-history.js.map +0 -1
- package/dist/history/internal/append-saga.d.ts +0 -20
- package/dist/history/internal/append-saga.d.ts.map +0 -1
- package/dist/history/internal/append-saga.js +0 -35
- package/dist/history/internal/append-saga.js.map +0 -1
- package/dist/history/internal/compensation.d.ts +0 -21
- package/dist/history/internal/compensation.d.ts.map +0 -1
- package/dist/history/internal/compensation.js +0 -84
- package/dist/history/internal/compensation.js.map +0 -1
- package/dist/history/internal/item-mapper.d.ts +0 -12
- package/dist/history/internal/item-mapper.d.ts.map +0 -1
- package/dist/history/internal/item-mapper.js +0 -33
- package/dist/history/internal/item-mapper.js.map +0 -1
- package/dist/history/internal/keys.d.ts +0 -17
- package/dist/history/internal/keys.d.ts.map +0 -1
- package/dist/history/internal/keys.js +0 -49
- package/dist/history/internal/keys.js.map +0 -1
- package/dist/history/internal/message-chunker.d.ts +0 -14
- package/dist/history/internal/message-chunker.d.ts.map +0 -1
- package/dist/history/internal/message-chunker.js +0 -68
- package/dist/history/internal/message-chunker.js.map +0 -1
- package/dist/history/internal/message-transaction.d.ts +0 -26
- package/dist/history/internal/message-transaction.d.ts.map +0 -1
- package/dist/history/internal/message-transaction.js +0 -60
- package/dist/history/internal/message-transaction.js.map +0 -1
- package/dist/history/internal/query.d.ts +0 -10
- package/dist/history/internal/query.d.ts.map +0 -1
- package/dist/history/internal/query.js +0 -31
- package/dist/history/internal/query.js.map +0 -1
- package/dist/history/internal/session-count.d.ts +0 -41
- package/dist/history/internal/session-count.d.ts.map +0 -1
- package/dist/history/internal/session-count.js +0 -109
- package/dist/history/internal/session-count.js.map +0 -1
- package/dist/history/internal/session-title.d.ts +0 -20
- package/dist/history/internal/session-title.d.ts.map +0 -1
- package/dist/history/internal/session-title.js +0 -44
- package/dist/history/internal/session-title.js.map +0 -1
- package/dist/history/internal/session-update.d.ts +0 -28
- package/dist/history/internal/session-update.d.ts.map +0 -1
- package/dist/history/internal/session-update.js +0 -70
- package/dist/history/internal/session-update.js.map +0 -1
- package/dist/history/internal/setup.d.ts.map +0 -1
- package/dist/history/internal/setup.js.map +0 -1
- package/dist/history/internal/title-generator.d.ts +0 -13
- package/dist/history/internal/title-generator.d.ts.map +0 -1
- package/dist/history/internal/title-generator.js +0 -25
- package/dist/history/internal/title-generator.js.map +0 -1
- package/dist/history/internal/ttl-anchor.d.ts +0 -25
- package/dist/history/internal/ttl-anchor.d.ts.map +0 -1
- package/dist/history/internal/ttl-anchor.js +0 -38
- package/dist/history/internal/ttl-anchor.js.map +0 -1
- package/dist/history/internal/validation.d.ts +0 -9
- package/dist/history/internal/validation.d.ts.map +0 -1
- package/dist/history/internal/validation.js +0 -16
- package/dist/history/internal/validation.js.map +0 -1
- package/dist/history/session-adapter.d.ts.map +0 -1
- package/dist/history/session-adapter.js.map +0 -1
- package/dist/history/types.d.ts.map +0 -1
- package/dist/history/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/shared/clock.d.ts.map +0 -1
- package/dist/shared/clock.js.map +0 -1
- package/dist/shared/codec/codec.d.ts.map +0 -1
- package/dist/shared/codec/codec.js.map +0 -1
- package/dist/shared/codec/compression.d.ts.map +0 -1
- package/dist/shared/codec/compression.js.map +0 -1
- package/dist/shared/codec/descriptor-keys.d.ts +0 -4
- package/dist/shared/codec/descriptor-keys.d.ts.map +0 -1
- package/dist/shared/codec/descriptor-keys.js +0 -14
- package/dist/shared/codec/descriptor-keys.js.map +0 -1
- package/dist/shared/codec/json-serde.d.ts.map +0 -1
- package/dist/shared/codec/json-serde.js.map +0 -1
- package/dist/shared/codec/s3/client.d.ts.map +0 -1
- package/dist/shared/codec/s3/client.js.map +0 -1
- package/dist/shared/codec/s3/config.d.ts.map +0 -1
- package/dist/shared/codec/s3/config.js.map +0 -1
- package/dist/shared/codec/s3/delete.d.ts +0 -8
- package/dist/shared/codec/s3/delete.d.ts.map +0 -1
- package/dist/shared/codec/s3/delete.js +0 -29
- package/dist/shared/codec/s3/delete.js.map +0 -1
- package/dist/shared/codec/s3/lifecycle.d.ts.map +0 -1
- package/dist/shared/codec/s3/lifecycle.js.map +0 -1
- package/dist/shared/codec/s3/offloader.d.ts.map +0 -1
- package/dist/shared/codec/s3/offloader.js.map +0 -1
- package/dist/shared/codec/s3/orphans.d.ts +0 -18
- package/dist/shared/codec/s3/orphans.d.ts.map +0 -1
- package/dist/shared/codec/s3/orphans.js +0 -58
- package/dist/shared/codec/s3/orphans.js.map +0 -1
- package/dist/shared/codec/s3/read-write.d.ts +0 -14
- package/dist/shared/codec/s3/read-write.d.ts.map +0 -1
- package/dist/shared/codec/s3/read-write.js +0 -43
- package/dist/shared/codec/s3/read-write.js.map +0 -1
- package/dist/shared/codec/s3/retry.d.ts +0 -5
- package/dist/shared/codec/s3/retry.d.ts.map +0 -1
- package/dist/shared/codec/s3/retry.js +0 -25
- package/dist/shared/codec/s3/retry.js.map +0 -1
- package/dist/shared/constants.d.ts +0 -64
- package/dist/shared/constants.d.ts.map +0 -1
- package/dist/shared/constants.js +0 -67
- package/dist/shared/constants.js.map +0 -1
- package/dist/shared/dynamodb/backoff.d.ts +0 -15
- package/dist/shared/dynamodb/backoff.d.ts.map +0 -1
- package/dist/shared/dynamodb/backoff.js +0 -48
- package/dist/shared/dynamodb/backoff.js.map +0 -1
- package/dist/shared/dynamodb/batch-write.d.ts.map +0 -1
- package/dist/shared/dynamodb/batch-write.js.map +0 -1
- package/dist/shared/dynamodb/cancellation.d.ts.map +0 -1
- package/dist/shared/dynamodb/cancellation.js.map +0 -1
- package/dist/shared/dynamodb/client.d.ts.map +0 -1
- package/dist/shared/dynamodb/client.js.map +0 -1
- package/dist/shared/dynamodb/conditional-put.d.ts +0 -51
- package/dist/shared/dynamodb/conditional-put.d.ts.map +0 -1
- package/dist/shared/dynamodb/conditional-put.js +0 -59
- package/dist/shared/dynamodb/conditional-put.js.map +0 -1
- package/dist/shared/dynamodb/drain-unprocessed.d.ts +0 -19
- package/dist/shared/dynamodb/drain-unprocessed.d.ts.map +0 -1
- package/dist/shared/dynamodb/drain-unprocessed.js +0 -44
- package/dist/shared/dynamodb/drain-unprocessed.js.map +0 -1
- package/dist/shared/dynamodb/paginate-core.d.ts +0 -22
- package/dist/shared/dynamodb/paginate-core.d.ts.map +0 -1
- package/dist/shared/dynamodb/paginate-core.js +0 -52
- package/dist/shared/dynamodb/paginate-core.js.map +0 -1
- package/dist/shared/dynamodb/paginate.d.ts.map +0 -1
- package/dist/shared/dynamodb/paginate.js.map +0 -1
- package/dist/shared/dynamodb/partition-delete.d.ts.map +0 -1
- package/dist/shared/dynamodb/partition-delete.js.map +0 -1
- package/dist/shared/dynamodb/retry-classifier.d.ts +0 -9
- package/dist/shared/dynamodb/retry-classifier.d.ts.map +0 -1
- package/dist/shared/dynamodb/retry-classifier.js +0 -87
- package/dist/shared/dynamodb/retry-classifier.js.map +0 -1
- package/dist/shared/dynamodb/retry.d.ts.map +0 -1
- package/dist/shared/dynamodb/retry.js.map +0 -1
- package/dist/shared/dynamodb/scan.d.ts +0 -15
- package/dist/shared/dynamodb/scan.d.ts.map +0 -1
- package/dist/shared/dynamodb/scan.js +0 -20
- package/dist/shared/dynamodb/scan.js.map +0 -1
- package/dist/shared/dynamodb/types.d.ts +0 -24
- package/dist/shared/dynamodb/types.d.ts.map +0 -1
- package/dist/shared/dynamodb/types.js +0 -3
- package/dist/shared/dynamodb/types.js.map +0 -1
- package/dist/shared/errors/base-error.d.ts.map +0 -1
- package/dist/shared/errors/base-error.js.map +0 -1
- package/dist/shared/errors/error-code.d.ts.map +0 -1
- package/dist/shared/errors/error-code.js.map +0 -1
- package/dist/shared/errors/errors.d.ts.map +0 -1
- package/dist/shared/errors/errors.js.map +0 -1
- package/dist/shared/errors/wrap-error.d.ts +0 -16
- package/dist/shared/errors/wrap-error.d.ts.map +0 -1
- package/dist/shared/errors/wrap-error.js +0 -30
- package/dist/shared/errors/wrap-error.js.map +0 -1
- package/dist/shared/logging/logger.d.ts.map +0 -1
- package/dist/shared/logging/logger.js.map +0 -1
- package/dist/shared/logging/redaction-walk.d.ts +0 -23
- package/dist/shared/logging/redaction-walk.d.ts.map +0 -1
- package/dist/shared/logging/redaction-walk.js +0 -92
- package/dist/shared/logging/redaction-walk.js.map +0 -1
- package/dist/shared/logging/redaction.d.ts.map +0 -1
- package/dist/shared/logging/redaction.js.map +0 -1
- package/dist/shared/logging/secret-patterns.d.ts.map +0 -1
- package/dist/shared/logging/secret-patterns.js.map +0 -1
- package/dist/shared/options.d.ts.map +0 -1
- package/dist/shared/options.js.map +0 -1
- package/dist/shared/ulid.d.ts.map +0 -1
- package/dist/shared/ulid.js.map +0 -1
- package/dist/shared/validation/primitives.d.ts.map +0 -1
- package/dist/shared/validation/primitives.js.map +0 -1
- package/dist/shared/validation/ttl.d.ts.map +0 -1
- package/dist/shared/validation/ttl.js.map +0 -1
- package/dist/store/actions/get.d.ts +0 -5
- package/dist/store/actions/get.d.ts.map +0 -1
- package/dist/store/actions/get.js +0 -35
- package/dist/store/actions/get.js.map +0 -1
- package/dist/store/actions/list-namespaces.d.ts.map +0 -1
- package/dist/store/actions/list-namespaces.js.map +0 -1
- package/dist/store/actions/put.d.ts.map +0 -1
- package/dist/store/actions/put.js.map +0 -1
- package/dist/store/actions/reconcile-vector-index.d.ts.map +0 -1
- package/dist/store/actions/reconcile-vector-index.js.map +0 -1
- package/dist/store/actions/search.d.ts.map +0 -1
- package/dist/store/actions/search.js.map +0 -1
- package/dist/store/internal/backend-search.d.ts +0 -5
- package/dist/store/internal/backend-search.d.ts.map +0 -1
- package/dist/store/internal/backend-search.js +0 -68
- package/dist/store/internal/backend-search.js.map +0 -1
- package/dist/store/internal/filter.d.ts.map +0 -1
- package/dist/store/internal/filter.js.map +0 -1
- package/dist/store/internal/index-reconcile.d.ts +0 -22
- package/dist/store/internal/index-reconcile.d.ts.map +0 -1
- package/dist/store/internal/index-reconcile.js +0 -105
- package/dist/store/internal/index-reconcile.js.map +0 -1
- package/dist/store/internal/index-sync.d.ts +0 -11
- package/dist/store/internal/index-sync.d.ts.map +0 -1
- package/dist/store/internal/index-sync.js +0 -26
- package/dist/store/internal/index-sync.js.map +0 -1
- package/dist/store/internal/item-mapper.d.ts +0 -25
- package/dist/store/internal/item-mapper.d.ts.map +0 -1
- package/dist/store/internal/item-mapper.js +0 -53
- package/dist/store/internal/item-mapper.js.map +0 -1
- package/dist/store/internal/keys.d.ts +0 -18
- package/dist/store/internal/keys.d.ts.map +0 -1
- package/dist/store/internal/keys.js +0 -42
- package/dist/store/internal/keys.js.map +0 -1
- package/dist/store/internal/namespace-match.d.ts +0 -12
- package/dist/store/internal/namespace-match.d.ts.map +0 -1
- package/dist/store/internal/namespace-match.js +0 -41
- package/dist/store/internal/namespace-match.js.map +0 -1
- package/dist/store/internal/overwrite-swap.d.ts +0 -33
- package/dist/store/internal/overwrite-swap.d.ts.map +0 -1
- package/dist/store/internal/overwrite-swap.js +0 -62
- package/dist/store/internal/overwrite-swap.js.map +0 -1
- package/dist/store/internal/persist.d.ts +0 -27
- package/dist/store/internal/persist.d.ts.map +0 -1
- package/dist/store/internal/persist.js +0 -59
- package/dist/store/internal/persist.js.map +0 -1
- package/dist/store/internal/query.d.ts +0 -6
- package/dist/store/internal/query.d.ts.map +0 -1
- package/dist/store/internal/query.js +0 -32
- package/dist/store/internal/query.js.map +0 -1
- package/dist/store/internal/ranker.d.ts +0 -13
- package/dist/store/internal/ranker.d.ts.map +0 -1
- package/dist/store/internal/ranker.js +0 -31
- package/dist/store/internal/ranker.js.map +0 -1
- package/dist/store/internal/read-existing.d.ts +0 -19
- package/dist/store/internal/read-existing.d.ts.map +0 -1
- package/dist/store/internal/read-existing.js +0 -29
- package/dist/store/internal/read-existing.js.map +0 -1
- package/dist/store/internal/score-direction.d.ts +0 -32
- package/dist/store/internal/score-direction.d.ts.map +0 -1
- package/dist/store/internal/score-direction.js +0 -39
- package/dist/store/internal/score-direction.js.map +0 -1
- package/dist/store/internal/search-filter.d.ts +0 -4
- package/dist/store/internal/search-filter.d.ts.map +0 -1
- package/dist/store/internal/search-filter.js +0 -11
- package/dist/store/internal/search-filter.js.map +0 -1
- package/dist/store/internal/semantic-search.d.ts.map +0 -1
- package/dist/store/internal/semantic-search.js.map +0 -1
- package/dist/store/internal/setup.d.ts.map +0 -1
- package/dist/store/internal/setup.js.map +0 -1
- package/dist/store/internal/validation.d.ts +0 -13
- package/dist/store/internal/validation.d.ts.map +0 -1
- package/dist/store/internal/validation.js +0 -35
- package/dist/store/internal/validation.js.map +0 -1
- package/dist/store/internal/write-verify.d.ts +0 -37
- package/dist/store/internal/write-verify.d.ts.map +0 -1
- package/dist/store/internal/write-verify.js +0 -68
- package/dist/store/internal/write-verify.js.map +0 -1
- package/dist/store/store.d.ts.map +0 -1
- package/dist/store/store.js.map +0 -1
- package/dist/store/types.d.ts.map +0 -1
- package/dist/store/types.js.map +0 -1
- package/dist/store/vector-backend.d.ts.map +0 -1
- package/dist/store/vector-backend.js.map +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { StoreItemRecord } from '../types';
|
|
2
|
-
import type { ExistingRecordMeta } from './read-existing';
|
|
3
|
-
import type { StoreContext } from './setup';
|
|
4
|
-
/**
|
|
5
|
-
* Put the record and clean up whichever side is now dead.
|
|
6
|
-
*
|
|
7
|
-
* The compare-and-swap path runs **only when an offloader is configured**:
|
|
8
|
-
* without one there is no S3 object to orphan, so a plain last-write-wins put
|
|
9
|
-
* stays correct and costs no extra write capacity (DynamoDB charges for a
|
|
10
|
-
* failed conditional write too). With one, the swap is what lets this call
|
|
11
|
-
* delete exactly the payload it superseded rather than a descriptor a racer may
|
|
12
|
-
* already have replaced.
|
|
13
|
-
*
|
|
14
|
-
* Every failure reaching the catch arrives after at least one put was issued —
|
|
15
|
-
* `putWithRevisionSwap` only re-reads from inside its own catch — so none of
|
|
16
|
-
* them proves a non-commit on its own: a put can commit server-side and lose
|
|
17
|
-
* its response, and a `ConditionalCheckFailedException` is as consistent with
|
|
18
|
-
* hitting the row this call just wrote as with a competitor's win. The row is
|
|
19
|
-
* therefore read back (`verifyWriteLanded`) before anything is deleted. Only a
|
|
20
|
-
* confirmed `'not-landed'` deletes this record's own nonced object; a confirmed
|
|
21
|
-
* `'landed'` cleans up the previous object like the success path and swallows
|
|
22
|
-
* the error, and an `'unverified'` read deletes nothing and rethrows — leaking
|
|
23
|
-
* one object at worst rather than stranding a live row pointing at a deleted
|
|
24
|
-
* one. An inline payload has no object to leak, so it needs no read.
|
|
25
|
-
*/
|
|
26
|
-
export declare function persistRecord(context: StoreContext, record: StoreItemRecord, existing: ExistingRecordMeta): Promise<void>;
|
|
27
|
-
//# sourceMappingURL=persist.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../../../src/store/internal/persist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAa5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,kBAAkB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAmBf"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.persistRecord = persistRecord;
|
|
4
|
-
const codec_1 = require("../../shared/codec/codec");
|
|
5
|
-
const descriptor_keys_1 = require("../../shared/codec/descriptor-keys");
|
|
6
|
-
const orphans_1 = require("../../shared/codec/s3/orphans");
|
|
7
|
-
const retry_1 = require("../../shared/dynamodb/retry");
|
|
8
|
-
const overwrite_swap_1 = require("./overwrite-swap");
|
|
9
|
-
const write_verify_1 = require("./write-verify");
|
|
10
|
-
/** Best-effort delete of one descriptor's S3 object. */
|
|
11
|
-
async function cleanUp(context, descriptor, label) {
|
|
12
|
-
if (!context.offloader || !descriptor)
|
|
13
|
-
return;
|
|
14
|
-
await (0, orphans_1.cleanUpS3Orphans)(context.offloader, (0, descriptor_keys_1.collectS3Keys)([descriptor]), label, context.logger);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Put the record and clean up whichever side is now dead.
|
|
18
|
-
*
|
|
19
|
-
* The compare-and-swap path runs **only when an offloader is configured**:
|
|
20
|
-
* without one there is no S3 object to orphan, so a plain last-write-wins put
|
|
21
|
-
* stays correct and costs no extra write capacity (DynamoDB charges for a
|
|
22
|
-
* failed conditional write too). With one, the swap is what lets this call
|
|
23
|
-
* delete exactly the payload it superseded rather than a descriptor a racer may
|
|
24
|
-
* already have replaced.
|
|
25
|
-
*
|
|
26
|
-
* Every failure reaching the catch arrives after at least one put was issued —
|
|
27
|
-
* `putWithRevisionSwap` only re-reads from inside its own catch — so none of
|
|
28
|
-
* them proves a non-commit on its own: a put can commit server-side and lose
|
|
29
|
-
* its response, and a `ConditionalCheckFailedException` is as consistent with
|
|
30
|
-
* hitting the row this call just wrote as with a competitor's win. The row is
|
|
31
|
-
* therefore read back (`verifyWriteLanded`) before anything is deleted. Only a
|
|
32
|
-
* confirmed `'not-landed'` deletes this record's own nonced object; a confirmed
|
|
33
|
-
* `'landed'` cleans up the previous object like the success path and swallows
|
|
34
|
-
* the error, and an `'unverified'` read deletes nothing and rethrows — leaking
|
|
35
|
-
* one object at worst rather than stranding a live row pointing at a deleted
|
|
36
|
-
* one. An inline payload has no object to leak, so it needs no read.
|
|
37
|
-
*/
|
|
38
|
-
async function persistRecord(context, record, existing) {
|
|
39
|
-
let superseded = existing;
|
|
40
|
-
try {
|
|
41
|
-
if (context.offloader) {
|
|
42
|
-
superseded = await (0, overwrite_swap_1.putWithRevisionSwap)(context, record, existing);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
await (0, retry_1.withDynamoDBRetry)(() => context.client.put({ TableName: context.tableName, Item: record }));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
const verdict = record.value.location === codec_1.PayloadLocation.S3
|
|
50
|
-
? await (0, write_verify_1.verifyWriteLanded)(context, record, record.value.s3Key)
|
|
51
|
-
: 'not-landed';
|
|
52
|
-
if (verdict === 'not-landed')
|
|
53
|
-
await cleanUp(context, record.value, 'store.put');
|
|
54
|
-
if (verdict !== 'landed')
|
|
55
|
-
throw error;
|
|
56
|
-
}
|
|
57
|
-
await cleanUp(context, superseded.value, 'store.put.overwrite');
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=persist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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YAAY;YAAE,MAAM,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAChF,IAAI,OAAO,KAAK,QAAQ;YAAE,MAAM,KAAK,CAAC;IACxC,CAAC;IACD,MAAM,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { QueryCommandInput, ScanCommandInput } from '@aws-sdk/lib-dynamodb';
|
|
2
|
-
/** Query input for a scoped prefix (PK = prefix[0], optional SK begins_with). */
|
|
3
|
-
export declare function scopedQuery(tableName: string, prefix: string[]): QueryCommandInput;
|
|
4
|
-
/** Scan input for the rootless case, filtered to store items only. */
|
|
5
|
-
export declare function storeScan(tableName: string): ScanCommandInput;
|
|
6
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/store/internal/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIjF,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,CAgBlF;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAM7D"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scopedQuery = scopedQuery;
|
|
4
|
-
exports.storeScan = storeScan;
|
|
5
|
-
const keys_1 = require("./keys");
|
|
6
|
-
/** Query input for a scoped prefix (PK = prefix[0], optional SK begins_with). */
|
|
7
|
-
function scopedQuery(tableName, prefix) {
|
|
8
|
-
const skPrefix = (0, keys_1.sortKeyPrefix)(prefix);
|
|
9
|
-
if (skPrefix.length === 0) {
|
|
10
|
-
return {
|
|
11
|
-
TableName: tableName,
|
|
12
|
-
KeyConditionExpression: '#pk = :pk',
|
|
13
|
-
ExpressionAttributeNames: { '#pk': 'PK' },
|
|
14
|
-
ExpressionAttributeValues: { ':pk': (0, keys_1.partitionKey)(prefix) },
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
TableName: tableName,
|
|
19
|
-
KeyConditionExpression: '#pk = :pk AND begins_with(#sk, :skp)',
|
|
20
|
-
ExpressionAttributeNames: { '#pk': 'PK', '#sk': 'SK' },
|
|
21
|
-
ExpressionAttributeValues: { ':pk': (0, keys_1.partitionKey)(prefix), ':skp': skPrefix },
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
/** Scan input for the rootless case, filtered to store items only. */
|
|
25
|
-
function storeScan(tableName) {
|
|
26
|
-
return {
|
|
27
|
-
TableName: tableName,
|
|
28
|
-
FilterExpression: 'attribute_exists(#ns)',
|
|
29
|
-
ExpressionAttributeNames: { '#ns': 'namespace' },
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/store/internal/query.ts"],"names":[],"mappings":";;;;AAEA,iCAAqD;AAErD,iFAAiF;AACjF,qBAA4B,SAAiB,EAAE,MAAgB;IAC7D,MAAM,QAAQ,GAAG,IAAA,oBAAa,EAAC,MAAM,CAAC,CAAC;IACvC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO;YACL,SAAS,EAAE,SAAS;YACpB,sBAAsB,EAAE,WAAW;YACnC,wBAAwB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;YACzC,yBAAyB,EAAE,EAAE,KAAK,EAAE,IAAA,mBAAY,EAAC,MAAM,CAAC,EAAE;SAC3D,CAAC;IACJ,CAAC;IACD,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,sBAAsB,EAAE,sCAAsC;QAC9D,wBAAwB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;QACtD,yBAAyB,EAAE,EAAE,KAAK,EAAE,IAAA,mBAAY,EAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE;KAC7E,CAAC;AACJ,CAAC;AAED,sEAAsE;AACtE,mBAA0B,SAAiB;IACzC,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,gBAAgB,EAAE,uBAAuB;QACzC,wBAAwB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;KACjD,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Item, SearchItem } from '@langchain/langgraph-checkpoint';
|
|
2
|
-
/** A decoded item plus its stored embedding, awaiting ranking. */
|
|
3
|
-
export interface RankCandidate {
|
|
4
|
-
item: Item;
|
|
5
|
-
embedding?: number[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Rank candidates by cosine similarity to `queryVector`, descending. Throws a
|
|
9
|
-
* {@link ValidationError} when the candidate count exceeds `maxCandidates`
|
|
10
|
-
* (steer large corpora to an external VectorBackend).
|
|
11
|
-
*/
|
|
12
|
-
export declare function rankInMemory(candidates: RankCandidate[], queryVector: number[], maxCandidates: number): SearchItem[];
|
|
13
|
-
//# sourceMappingURL=ranker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ranker.d.ts","sourceRoot":"","sources":["../../../src/store/internal/ranker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAQxE,kEAAkE;AAClE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,EAAE,EAC3B,WAAW,EAAE,MAAM,EAAE,EACrB,aAAa,EAAE,MAAM,GACpB,UAAU,EAAE,CAiBd"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rankInMemory = rankInMemory;
|
|
4
|
-
const errors_1 = require("../../shared/errors/errors");
|
|
5
|
-
const semantic_search_1 = require("./semantic-search");
|
|
6
|
-
/** Sort weight for an item without an embedding; below the −1 cosine minimum. */
|
|
7
|
-
const UNSCORED_RANK = -2;
|
|
8
|
-
/**
|
|
9
|
-
* Rank candidates by cosine similarity to `queryVector`, descending. Throws a
|
|
10
|
-
* {@link ValidationError} when the candidate count exceeds `maxCandidates`
|
|
11
|
-
* (steer large corpora to an external VectorBackend).
|
|
12
|
-
*/
|
|
13
|
-
function rankInMemory(candidates, queryVector, maxCandidates) {
|
|
14
|
-
if (candidates.length > maxCandidates) {
|
|
15
|
-
throw new errors_1.ValidationError(`Semantic search candidate set (${candidates.length}) exceeds maxSearchCandidates ` +
|
|
16
|
-
`(${maxCandidates}); use a dedicated VectorBackend for large corpora`, 'maxSearchCandidates');
|
|
17
|
-
}
|
|
18
|
-
return candidates
|
|
19
|
-
.map(({ item, embedding }) => ({
|
|
20
|
-
...item,
|
|
21
|
-
score: embedding && embedding.length === queryVector.length
|
|
22
|
-
? (0, semantic_search_1.cosineSimilarity)(queryVector, embedding)
|
|
23
|
-
: undefined,
|
|
24
|
-
}))
|
|
25
|
-
.sort((a, b) => rankValue(b) - rankValue(a));
|
|
26
|
-
}
|
|
27
|
-
/** Sort weight: real cosine score, or a value below the cosine minimum for unscored items. */
|
|
28
|
-
function rankValue(item) {
|
|
29
|
-
return item.score ?? UNSCORED_RANK;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ranker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ranker.js","sourceRoot":"","sources":["../../../src/store/internal/ranker.ts"],"names":[],"mappings":";;;AAEA,uDAA6D;AAC7D,uDAAqD;AAErD,iFAAiF;AACjF,MAAM,aAAa,GAAG,CAAC,CAAC,CAAC;AAQzB;;;;GAIG;AACH,sBACE,UAA2B,EAC3B,WAAqB,EACrB,aAAqB;IAErB,IAAI,UAAU,CAAC,MAAM,GAAG,aAAa,EAAE,CAAC;QACtC,MAAM,IAAI,wBAAe,CACvB,kCAAkC,UAAU,CAAC,MAAM,gCAAgC;YACjF,IAAI,aAAa,oDAAoD,EACvE,qBAAqB,CACtB,CAAC;IACJ,CAAC;IACD,OAAO,UAAU;SACd,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC7B,GAAG,IAAI;QACP,KAAK,EACH,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,WAAW,CAAC,MAAM;YAClD,CAAC,CAAC,IAAA,kCAAgB,EAAC,WAAW,EAAE,SAAS,CAAC;YAC1C,CAAC,CAAC,SAAS;KAChB,CAAC,CAAC;SACF,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC;AAED,8FAA8F;AAC9F,SAAS,SAAS,CAAC,IAAgB;IACjC,OAAO,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC;AACrC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PayloadDescriptor } from '../../shared/codec/codec';
|
|
2
|
-
import type { StoreContext } from './setup';
|
|
3
|
-
/** The previous row's createdAt, payload descriptor and revision. */
|
|
4
|
-
export interface ExistingRecordMeta {
|
|
5
|
-
exists: boolean;
|
|
6
|
-
createdAt?: string;
|
|
7
|
-
value?: PayloadDescriptor;
|
|
8
|
-
revision?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Read the fields a put needs from the row it is about to replace, in one
|
|
12
|
-
* strongly-consistent projection: `createdAt` to preserve, `value` to clean up
|
|
13
|
-
* afterwards, and the revision the compare-and-swap pins.
|
|
14
|
-
*
|
|
15
|
-
* Lives apart from `actions/put.ts` so `persist.ts` can re-read on a lost swap
|
|
16
|
-
* without importing its own caller.
|
|
17
|
-
*/
|
|
18
|
-
export declare function readExisting(context: StoreContext, pk: string, sk: string): Promise<ExistingRecordMeta>;
|
|
19
|
-
//# sourceMappingURL=read-existing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read-existing.d.ts","sourceRoot":"","sources":["../../../src/store/internal/read-existing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,YAAY,EACrB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,kBAAkB,CAAC,CAgB7B"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readExisting = readExisting;
|
|
4
|
-
const conditional_put_1 = require("../../shared/dynamodb/conditional-put");
|
|
5
|
-
const retry_1 = require("../../shared/dynamodb/retry");
|
|
6
|
-
/**
|
|
7
|
-
* Read the fields a put needs from the row it is about to replace, in one
|
|
8
|
-
* strongly-consistent projection: `createdAt` to preserve, `value` to clean up
|
|
9
|
-
* afterwards, and the revision the compare-and-swap pins.
|
|
10
|
-
*
|
|
11
|
-
* Lives apart from `actions/put.ts` so `persist.ts` can re-read on a lost swap
|
|
12
|
-
* without importing its own caller.
|
|
13
|
-
*/
|
|
14
|
-
async function readExisting(context, pk, sk) {
|
|
15
|
-
const existing = await (0, retry_1.withDynamoDBRetry)(() => context.client.get({
|
|
16
|
-
TableName: context.tableName,
|
|
17
|
-
Key: { PK: pk, SK: sk },
|
|
18
|
-
ConsistentRead: true,
|
|
19
|
-
ProjectionExpression: '#c, #v, #r',
|
|
20
|
-
ExpressionAttributeNames: { '#c': 'createdAt', '#v': 'value', '#r': conditional_put_1.REVISION_ATTRIBUTE },
|
|
21
|
-
}));
|
|
22
|
-
return {
|
|
23
|
-
exists: existing.Item !== undefined,
|
|
24
|
-
createdAt: existing.Item?.createdAt,
|
|
25
|
-
value: existing.Item?.value,
|
|
26
|
-
revision: existing.Item?.[conditional_put_1.REVISION_ATTRIBUTE],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=read-existing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read-existing.js","sourceRoot":"","sources":["../../../src/store/internal/read-existing.ts"],"names":[],"mappings":";;;AACA,2EAA2E;AAC3E,uDAAgE;AAWhE;;;;;;;GAOG;AACI,KAAK,uBACV,OAAqB,EACrB,EAAU,EACV,EAAU;IAEV,MAAM,QAAQ,GAAG,MAAM,IAAA,yBAAiB,EAAC,GAAG,EAAE,CAC5C,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;QACvB,cAAc,EAAE,IAAI;QACpB,oBAAoB,EAAE,YAAY;QAClC,wBAAwB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,oCAAkB,EAAE;KACzF,CAAC,CACH,CAAC;IACF,OAAO;QACL,MAAM,EAAE,QAAQ,CAAC,IAAI,KAAK,SAAS;QACnC,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,SAA+B;QACzD,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAsC;QAC5D,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,oCAAkB,CAAuB;KACpE,CAAC;AACJ,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { VectorMatch } from '../vector-backend';
|
|
2
|
-
/** Which direction a {@link VectorBackend} reports its score in. */
|
|
3
|
-
export type VectorScoreDirection = 'relevance' | 'distance';
|
|
4
|
-
/** Every direction {@link toRelevanceScores} recognises, for validating input. */
|
|
5
|
-
export declare const VECTOR_SCORE_DIRECTIONS: readonly VectorScoreDirection[];
|
|
6
|
-
/**
|
|
7
|
-
* Normalise a backend's matches to the relevance direction upstream
|
|
8
|
-
* `SearchItem.score` documents — "higher scores indicate better matches",
|
|
9
|
-
* typically a cosine similarity between -1 and 1.
|
|
10
|
-
*
|
|
11
|
-
* A distance is converted by **negation** rather than `1 / (1 + d)`: negation
|
|
12
|
-
* is monotone over the whole real line, needs no non-negativity precondition,
|
|
13
|
-
* and is exactly invertible, so the original distance is simply `-score`. A
|
|
14
|
-
* reciprocal would silently imply a different `(0, 1]` scale and is undefined
|
|
15
|
-
* at `d === -1`. Negative scores are already in range for this contract, so
|
|
16
|
-
* nothing is lost by producing them.
|
|
17
|
-
*
|
|
18
|
-
* Results are re-sorted after conversion so a backend that returns its matches
|
|
19
|
-
* in some other order still ranks correctly. Anything that is not `'distance'`
|
|
20
|
-
* is returned untouched — its own order stays authoritative, exactly as before.
|
|
21
|
-
*
|
|
22
|
-
* The test is for `'distance'` rather than against `'relevance'` on purpose:
|
|
23
|
-
* converting is the destructive branch, so only the exact value that asks for
|
|
24
|
-
* it may reach it. Testing the other way round made every unrecognised
|
|
25
|
-
* string — `'Distance'`, a typo, a value read from a config file — reverse the
|
|
26
|
-
* ranking silently, with no error and no warning (the ascending-score warning
|
|
27
|
-
* lives downstream of this conversion, so it could never fire). `setUpStore`
|
|
28
|
-
* rejects such a value outright; this keeps the failure harmless for any
|
|
29
|
-
* caller that reaches the function some other way.
|
|
30
|
-
*/
|
|
31
|
-
export declare function toRelevanceScores(matches: VectorMatch[], direction: VectorScoreDirection): VectorMatch[];
|
|
32
|
-
//# sourceMappingURL=score-direction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"score-direction.d.ts","sourceRoot":"","sources":["../../../src/store/internal/score-direction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,oEAAoE;AACpE,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,UAAU,CAAC;AAE5D,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,EAAE,SAAS,oBAAoB,EAA8B,CAAC;AAElG;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,WAAW,EAAE,EACtB,SAAS,EAAE,oBAAoB,GAC9B,WAAW,EAAE,CAKf"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VECTOR_SCORE_DIRECTIONS = void 0;
|
|
4
|
-
exports.toRelevanceScores = toRelevanceScores;
|
|
5
|
-
/** Every direction {@link toRelevanceScores} recognises, for validating input. */
|
|
6
|
-
exports.VECTOR_SCORE_DIRECTIONS = ['relevance', 'distance'];
|
|
7
|
-
/**
|
|
8
|
-
* Normalise a backend's matches to the relevance direction upstream
|
|
9
|
-
* `SearchItem.score` documents — "higher scores indicate better matches",
|
|
10
|
-
* typically a cosine similarity between -1 and 1.
|
|
11
|
-
*
|
|
12
|
-
* A distance is converted by **negation** rather than `1 / (1 + d)`: negation
|
|
13
|
-
* is monotone over the whole real line, needs no non-negativity precondition,
|
|
14
|
-
* and is exactly invertible, so the original distance is simply `-score`. A
|
|
15
|
-
* reciprocal would silently imply a different `(0, 1]` scale and is undefined
|
|
16
|
-
* at `d === -1`. Negative scores are already in range for this contract, so
|
|
17
|
-
* nothing is lost by producing them.
|
|
18
|
-
*
|
|
19
|
-
* Results are re-sorted after conversion so a backend that returns its matches
|
|
20
|
-
* in some other order still ranks correctly. Anything that is not `'distance'`
|
|
21
|
-
* is returned untouched — its own order stays authoritative, exactly as before.
|
|
22
|
-
*
|
|
23
|
-
* The test is for `'distance'` rather than against `'relevance'` on purpose:
|
|
24
|
-
* converting is the destructive branch, so only the exact value that asks for
|
|
25
|
-
* it may reach it. Testing the other way round made every unrecognised
|
|
26
|
-
* string — `'Distance'`, a typo, a value read from a config file — reverse the
|
|
27
|
-
* ranking silently, with no error and no warning (the ascending-score warning
|
|
28
|
-
* lives downstream of this conversion, so it could never fire). `setUpStore`
|
|
29
|
-
* rejects such a value outright; this keeps the failure harmless for any
|
|
30
|
-
* caller that reaches the function some other way.
|
|
31
|
-
*/
|
|
32
|
-
function toRelevanceScores(matches, direction) {
|
|
33
|
-
if (direction !== 'distance')
|
|
34
|
-
return matches;
|
|
35
|
-
return matches
|
|
36
|
-
.map((match) => ({ ...match, score: -match.score }))
|
|
37
|
-
.sort((left, right) => right.score - left.score);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=score-direction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"score-direction.js","sourceRoot":"","sources":["../../../src/store/internal/score-direction.ts"],"names":[],"mappings":";;;;AAKA,kFAAkF;AACrE,QAAA,uBAAuB,GAAoC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAElG;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,2BACE,OAAsB,EACtB,SAA+B;IAE/B,IAAI,SAAS,KAAK,UAAU;QAAE,OAAO,OAAO,CAAC;IAC7C,OAAO,OAAO;SACX,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;SACnD,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Item, SearchOperation } from '@langchain/langgraph-checkpoint';
|
|
2
|
-
/** True when `item` satisfies the search operation's optional metadata filter. */
|
|
3
|
-
export declare function passesFilter(item: Item, op: SearchOperation): boolean;
|
|
4
|
-
//# sourceMappingURL=search-filter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-filter.d.ts","sourceRoot":"","sources":["../../../src/store/internal/search-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAI7E,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,eAAe,GAAG,OAAO,CAMrE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.passesFilter = passesFilter;
|
|
4
|
-
const filter_1 = require("./filter");
|
|
5
|
-
/** True when `item` satisfies the search operation's optional metadata filter. */
|
|
6
|
-
function passesFilter(item, op) {
|
|
7
|
-
if (!op.filter)
|
|
8
|
-
return true;
|
|
9
|
-
return (0, filter_1.matchesStoreFilter)(item.value, op.filter);
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=search-filter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-filter.js","sourceRoot":"","sources":["../../../src/store/internal/search-filter.ts"],"names":[],"mappings":";;;AAEA,qCAA8D;AAE9D,kFAAkF;AAClF,sBAA6B,IAAU,EAAE,EAAmB;IAC1D,IAAI,CAAC,EAAE,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAC5B,OAAO,IAAA,2BAAkB,EACvB,IAAI,CAAC,KAAkC,EACvC,EAAE,CAAC,MAAmC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-search.d.ts","sourceRoot":"","sources":["../../../src/store/internal/semantic-search.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAYjE;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAOtF;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAChC,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,OAAO,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAK/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-search.js","sourceRoot":"","sources":["../../../src/store/internal/semantic-search.ts"],"names":[],"mappings":";;;;;AAAA,0EAAgE;AAKhE,oFAAoF;AACpF,0BAAiC,CAAW,EAAE,CAAW;IACvD,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,CAAC,CAAC;IACpC,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,KAAK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AAC;AACJ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Validate search/listNamespaces paging is non-negative integers. */
|
|
2
|
-
export declare function validatePaging(offset: number, limit: number): void;
|
|
3
|
-
/** Validate the namespace is non-empty and each element is a valid identifier. */
|
|
4
|
-
export declare function validateNamespace(namespace: string[]): void;
|
|
5
|
-
/** Validate an item key is a non-empty, separator- and control-char-free string. */
|
|
6
|
-
export declare function validateKey(key: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* Validate an optional namespace depth cap. Left unchecked, a negative value
|
|
9
|
-
* silently inverted truncation via `Array.prototype.slice(0, -n)`, which drops
|
|
10
|
-
* the *last* n elements rather than erroring.
|
|
11
|
-
*/
|
|
12
|
-
export declare function validateMaxDepth(maxDepth?: number): void;
|
|
13
|
-
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/store/internal/validation.ts"],"names":[],"mappings":"AAOA,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAGlE;AAED,kFAAkF;AAClF,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAK3D;AAED,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAGxD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validatePaging = validatePaging;
|
|
4
|
-
exports.validateNamespace = validateNamespace;
|
|
5
|
-
exports.validateKey = validateKey;
|
|
6
|
-
exports.validateMaxDepth = validateMaxDepth;
|
|
7
|
-
const primitives_1 = require("../../shared/validation/primitives");
|
|
8
|
-
const keys_1 = require("./keys");
|
|
9
|
-
/** Validate search/listNamespaces paging is non-negative integers. */
|
|
10
|
-
function validatePaging(offset, limit) {
|
|
11
|
-
(0, primitives_1.validateInteger)(offset, 'offset', { min: 0 });
|
|
12
|
-
(0, primitives_1.validateInteger)(limit, 'limit', { min: 0 });
|
|
13
|
-
}
|
|
14
|
-
/** Validate the namespace is non-empty and each element is a valid identifier. */
|
|
15
|
-
function validateNamespace(namespace) {
|
|
16
|
-
(0, primitives_1.validateNonEmptyArray)(namespace, 'namespace');
|
|
17
|
-
for (const element of namespace) {
|
|
18
|
-
(0, primitives_1.validateIdentifier)(element, keys_1.NAMESPACE_SEPARATOR, 'namespace element');
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/** Validate an item key is a non-empty, separator- and control-char-free string. */
|
|
22
|
-
function validateKey(key) {
|
|
23
|
-
(0, primitives_1.validateIdentifier)(key, keys_1.NAMESPACE_SEPARATOR, 'key');
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Validate an optional namespace depth cap. Left unchecked, a negative value
|
|
27
|
-
* silently inverted truncation via `Array.prototype.slice(0, -n)`, which drops
|
|
28
|
-
* the *last* n elements rather than erroring.
|
|
29
|
-
*/
|
|
30
|
-
function validateMaxDepth(maxDepth) {
|
|
31
|
-
if (maxDepth === undefined)
|
|
32
|
-
return;
|
|
33
|
-
(0, primitives_1.validateInteger)(maxDepth, 'maxDepth', { min: 1 });
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../src/store/internal/validation.ts"],"names":[],"mappings":";;;;;;AAAA,mEAI4C;AAC5C,iCAA6C;AAE7C,sEAAsE;AACtE,wBAA+B,MAAc,EAAE,KAAa;IAC1D,IAAA,4BAAe,EAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAC9C,IAAA,4BAAe,EAAC,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED,kFAAkF;AAClF,2BAAkC,SAAmB;IACnD,IAAA,kCAAqB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC9C,KAAK,MAAM,OAAO,IAAI,SAAS,EAAE,CAAC;QAChC,IAAA,+BAAkB,EAAC,OAAO,EAAE,0BAAmB,EAAE,mBAAmB,CAAC,CAAC;IACxE,CAAC;AACH,CAAC;AAED,oFAAoF;AACpF,qBAA4B,GAAW;IACrC,IAAA,+BAAkB,EAAC,GAAG,EAAE,0BAAmB,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED;;;;GAIG;AACH,0BAAiC,QAAiB;IAChD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO;IACnC,IAAA,4BAAe,EAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { StoreContext } from './setup';
|
|
2
|
-
/** True when `error` is a {@link RetryExhaustedError} — by name, not `instanceof` (banned repo-wide). */
|
|
3
|
-
export declare function isRetryExhausted(error: Error): boolean;
|
|
4
|
-
/**
|
|
5
|
-
* True when the row is confirmed absent — used to resolve an ambiguous
|
|
6
|
-
* retry-exhausted *delete*, where the delete may well have landed server-side
|
|
7
|
-
* and only its acknowledgement was lost. A failure reading this is not treated
|
|
8
|
-
* as confirmation, which is fail-safe here: the caller only rethrows, and
|
|
9
|
-
* nothing is deleted on the strength of a `false`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function rowIsAbsent(context: StoreContext, key: {
|
|
12
|
-
PK: string;
|
|
13
|
-
SK: string;
|
|
14
|
-
}): Promise<boolean>;
|
|
15
|
-
/** What a post-failure verification read could establish about a write. */
|
|
16
|
-
export type WriteVerdict = 'landed' | 'not-landed' | 'unverified';
|
|
17
|
-
/**
|
|
18
|
-
* Read `record`'s row back to establish what an ambiguous write actually did.
|
|
19
|
-
*
|
|
20
|
-
* - `'landed'`: the row holds `expectedS3Key`, so the write committed
|
|
21
|
-
* server-side and only its acknowledgement was lost.
|
|
22
|
-
* - `'not-landed'`: the row was read and holds something else, or nothing, so
|
|
23
|
-
* this call's own nonced upload is dead and safe to delete.
|
|
24
|
-
* - `'unverified'`: the read itself failed, so nothing is established.
|
|
25
|
-
*
|
|
26
|
-
* The third answer used to be folded into the second as a plain `false`, which
|
|
27
|
-
* made a partition that blocked both the put and this read delete the object a
|
|
28
|
-
* possibly-live row points at — permanently breaking every later read of that
|
|
29
|
-
* item. Only a *confirmed* non-commit may delete the new upload: leaking one
|
|
30
|
-
* object (reclaimed by `ensureS3LifecycleRule`) is recoverable, stranding a
|
|
31
|
-
* live row is not.
|
|
32
|
-
*/
|
|
33
|
-
export declare function verifyWriteLanded(context: StoreContext, record: {
|
|
34
|
-
PK: string;
|
|
35
|
-
SK: string;
|
|
36
|
-
}, expectedS3Key: string): Promise<WriteVerdict>;
|
|
37
|
-
//# sourceMappingURL=write-verify.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-verify.d.ts","sourceRoot":"","sources":["../../../src/store/internal/write-verify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,yGAAyG;AACzG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAEtD;AAED;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,YAAY,EACrB,GAAG,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC9B,OAAO,CAAC,OAAO,CAAC,CAelB;AAED,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAClC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,YAAY,CAAC,CAkBvB"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRetryExhausted = isRetryExhausted;
|
|
4
|
-
exports.rowIsAbsent = rowIsAbsent;
|
|
5
|
-
exports.verifyWriteLanded = verifyWriteLanded;
|
|
6
|
-
const codec_1 = require("../../shared/codec/codec");
|
|
7
|
-
const retry_1 = require("../../shared/dynamodb/retry");
|
|
8
|
-
/** True when `error` is a {@link RetryExhaustedError} — by name, not `instanceof` (banned repo-wide). */
|
|
9
|
-
function isRetryExhausted(error) {
|
|
10
|
-
return error.name === 'RetryExhaustedError';
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* True when the row is confirmed absent — used to resolve an ambiguous
|
|
14
|
-
* retry-exhausted *delete*, where the delete may well have landed server-side
|
|
15
|
-
* and only its acknowledgement was lost. A failure reading this is not treated
|
|
16
|
-
* as confirmation, which is fail-safe here: the caller only rethrows, and
|
|
17
|
-
* nothing is deleted on the strength of a `false`.
|
|
18
|
-
*/
|
|
19
|
-
async function rowIsAbsent(context, key) {
|
|
20
|
-
try {
|
|
21
|
-
const result = await (0, retry_1.withDynamoDBRetry)(() => context.client.get({
|
|
22
|
-
TableName: context.tableName,
|
|
23
|
-
Key: key,
|
|
24
|
-
ConsistentRead: true,
|
|
25
|
-
ProjectionExpression: '#v',
|
|
26
|
-
ExpressionAttributeNames: { '#v': 'value' },
|
|
27
|
-
}));
|
|
28
|
-
return result.Item === undefined;
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Read `record`'s row back to establish what an ambiguous write actually did.
|
|
36
|
-
*
|
|
37
|
-
* - `'landed'`: the row holds `expectedS3Key`, so the write committed
|
|
38
|
-
* server-side and only its acknowledgement was lost.
|
|
39
|
-
* - `'not-landed'`: the row was read and holds something else, or nothing, so
|
|
40
|
-
* this call's own nonced upload is dead and safe to delete.
|
|
41
|
-
* - `'unverified'`: the read itself failed, so nothing is established.
|
|
42
|
-
*
|
|
43
|
-
* The third answer used to be folded into the second as a plain `false`, which
|
|
44
|
-
* made a partition that blocked both the put and this read delete the object a
|
|
45
|
-
* possibly-live row points at — permanently breaking every later read of that
|
|
46
|
-
* item. Only a *confirmed* non-commit may delete the new upload: leaking one
|
|
47
|
-
* object (reclaimed by `ensureS3LifecycleRule`) is recoverable, stranding a
|
|
48
|
-
* live row is not.
|
|
49
|
-
*/
|
|
50
|
-
async function verifyWriteLanded(context, record, expectedS3Key) {
|
|
51
|
-
try {
|
|
52
|
-
const result = await (0, retry_1.withDynamoDBRetry)(() => context.client.get({
|
|
53
|
-
TableName: context.tableName,
|
|
54
|
-
Key: { PK: record.PK, SK: record.SK },
|
|
55
|
-
ConsistentRead: true,
|
|
56
|
-
ProjectionExpression: '#v',
|
|
57
|
-
ExpressionAttributeNames: { '#v': 'value' },
|
|
58
|
-
}));
|
|
59
|
-
const value = result.Item?.value;
|
|
60
|
-
return value?.location === codec_1.PayloadLocation.S3 && value.s3Key === expectedS3Key
|
|
61
|
-
? 'landed'
|
|
62
|
-
: 'not-landed';
|
|
63
|
-
}
|
|
64
|
-
catch {
|
|
65
|
-
return 'unverified';
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=write-verify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"write-verify.js","sourceRoot":"","sources":["../../../src/store/internal/write-verify.ts"],"names":[],"mappings":";;;;;AAAA,oDAAmF;AACn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QAAQ;YACV,CAAC,CAAC,YAAY,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,YAAY,CAAC;IACtB,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/store/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,KAAK,SAAS,EACd,KAAK,gBAAgB,EAEtB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAG1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAe;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAU;IACrC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IAEvE,YAAY,OAAO,EAAE,oBAAoB,EAMxC;IAED,OAAO,CAAC,QAAQ;IAOV,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAMjF;IAED;;;OAGG;IACH,oBAAoB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAE9E;IAED,yEAAyE;IACzE,OAAO,IAAI,IAAI,CAGd;IAED;;;;;;;OAOG;IACG,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAG3C;CACF"}
|
package/dist/store/store.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store/store.ts"],"names":[],"mappings":";;;AAAA,0EAMyC;AAEzC,kDAA8D;AAC9D,uCAAwC;AACxC,+DAA2D;AAC3D,uCAAwC;AACxC,6EAG0C;AAC1C,6CAA+C;A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;IACtB;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAEJ,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,iBAAiB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
package/dist/store/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/store/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vector-backend.d.ts","sourceRoot":"","sources":["../../src/store/vector-backend.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8EAA8E;AAC9E,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1E;;;;OAIG;IACH,KAAK,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9F,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD;;;;OAIG;IACH,QAAQ,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;CAC5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vector-backend.js","sourceRoot":"","sources":["../../src/store/vector-backend.ts"],"names":[],"mappings":""}
|