@delali/narsil 0.3.1-next.145 → 0.3.1-next.146
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/adapters/filesystem.mjs +2 -2
- package/dist/adapters/gcs.mjs +2 -2
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +2 -2
- package/dist/analysis-change-ZCJNYBJM.mjs +39 -0
- package/dist/{analysis-change-entry-V4SQQSXQ.mjs → analysis-change-entry-YN3ELL6C.mjs} +1 -1
- package/dist/browser/{analysis-change-QTCQ5ETU.mjs → analysis-change-M65AZQQG.mjs} +8 -5
- package/dist/browser/{analysis-change-entry-KYEQSP3I.mjs → analysis-change-entry-H3YIOLXZ.mjs} +1 -1
- package/dist/browser/{chunk-GP4QLUQM.mjs → chunk-2JABMB4S.mjs} +10 -6
- package/dist/browser/{chunk-5WYWLTM5.mjs → chunk-4DYLCICG.mjs} +2 -2
- package/dist/browser/{chunk-75PMIFQA.mjs → chunk-4RD3AFSB.mjs} +1 -1
- package/dist/browser/{chunk-XWMEGKDC.mjs → chunk-5V74FFZE.mjs} +2 -2
- package/dist/browser/{chunk-PMBSBSCN.mjs → chunk-6OWX3OP2.mjs} +2 -2
- package/dist/browser/chunk-BRWY3JCN.mjs +678 -0
- package/dist/browser/{chunk-ZALEKEUH.mjs → chunk-BVX2MEHA.mjs} +306 -607
- package/dist/browser/{chunk-FXPMF65P.mjs → chunk-D6UFGBF5.mjs} +15 -45
- package/dist/browser/{chunk-QNDWMPV2.mjs → chunk-IAXZAVYL.mjs} +25 -66
- package/dist/browser/chunk-JNOAKDUM.mjs +31 -0
- package/dist/browser/{chunk-BTMRV5MY.mjs → chunk-KAEVGLYN.mjs} +2 -2
- package/dist/browser/{chunk-FHO5N7FD.mjs → chunk-LURXVCHG.mjs} +1 -1
- package/dist/browser/chunk-MPK76GVS.mjs +63 -0
- package/dist/browser/{chunk-6OFS7RUN.mjs → chunk-NVEJJP4R.mjs} +1 -1
- package/dist/browser/{chunk-U77XQJOY.mjs → chunk-ODQP7P3H.mjs} +455 -66
- package/dist/browser/{chunk-IFGTRRPU.mjs → chunk-PIS7ZAP7.mjs} +3 -25
- package/dist/browser/{chunk-XIHLIMFX.mjs → chunk-QMNZFFD3.mjs} +4 -3
- package/dist/browser/{chunk-AOKLYVTT.mjs → chunk-SRL47USS.mjs} +2 -2
- package/dist/browser/chunk-TY7L6OXO.mjs +69 -0
- package/dist/browser/{chunk-LGJ6XMH5.mjs → chunk-W643QV3L.mjs} +6 -5
- package/dist/browser/chunk-WXLBZJMT.mjs +25 -0
- package/dist/browser/{chunk-ZKVDQ5ZH.mjs → chunk-XILIT5MT.mjs} +8 -8
- package/dist/browser/{cold-module-Y2IJAP7S.mjs → cold-module-A5S6JFDN.mjs} +20 -20
- package/dist/browser/{durability-wiring-MLXZ5QQF.mjs → durability-wiring-W5AVV3RF.mjs} +53 -30
- package/dist/browser/gzip-5S7ROJFJ.mjs +1 -0
- package/dist/browser/import-PTT63AGK.mjs +12 -0
- package/dist/browser/{module-5LMDGXQH.mjs → module-CEKA7MQH.mjs} +13 -10
- package/dist/browser/module-X5PGOE47.mjs +4288 -0
- package/dist/browser/{phrase-module-KXNRTWCS.mjs → phrase-module-CNKMUY4U.mjs} +2 -1
- package/dist/browser/pool-DTYSPBMQ.mjs +296 -0
- package/dist/{restore-queue-UAVGBSJG.mjs → browser/restore-queue-DD4LWZK7.mjs} +2 -2
- package/dist/browser/{runtime-ZNEGK33G.mjs → runtime-D2ULZGCN.mjs} +3 -2
- package/dist/browser/{snapshot-2EGS2FYU.mjs → snapshot-DQ6A4PQP.mjs} +18 -14
- package/dist/browser/{write-WMZA6NSF.mjs → write-MAGRAIEH.mjs} +14 -11
- package/dist/{capabilities-CNnzGtqP.d.ts → capabilities-BT-HLDC8.d.ts} +2 -2
- package/dist/{chunk-FRJ5RGX7.mjs → chunk-2HJWQPR6.mjs} +2 -2
- package/dist/{chunk-DKMZ7JFW.mjs → chunk-3BVGJ4JR.mjs} +10 -4
- package/dist/{chunk-QYMAYU7M.mjs → chunk-3HV7M5OJ.mjs} +155 -149
- package/dist/chunk-3MXV3VHR.mjs +46 -0
- package/dist/{chunk-6FOJKNUR.mjs → chunk-3SBJVQLL.mjs} +2 -2
- package/dist/{chunk-PRID7CA6.mjs → chunk-3TVDTACC.mjs} +1 -1
- package/dist/{chunk-RTVAWNUL.mjs → chunk-5WB2A3XU.mjs} +9 -6
- package/dist/{chunk-LWFK3TC2.mjs → chunk-65WCV5JO.mjs} +1 -1
- package/dist/{chunk-G6Q5DEF5.mjs → chunk-6BWLDLS3.mjs} +3 -46
- package/dist/{chunk-W6M4RRAT.mjs → chunk-6C5EX2QR.mjs} +3 -3
- package/dist/{chunk-HOC5JP2H.mjs → chunk-6F6USYII.mjs} +119 -11
- package/dist/{chunk-7523VCM4.mjs → chunk-7HKWO4BJ.mjs} +7 -7
- package/dist/{chunk-ONDEEBTA.mjs → chunk-7N223GWV.mjs} +2 -2
- package/dist/{chunk-UGQULMSU.mjs → chunk-ADBS5XRI.mjs} +10 -10
- package/dist/{chunk-MJTEU2XK.mjs → chunk-AWNHDBKV.mjs} +429 -73
- package/dist/{chunk-2E2ZFOPT.mjs → chunk-B2FTZNNF.mjs} +2 -2
- package/dist/{chunk-NWTEJ2T7.mjs → chunk-B7XIOAMK.mjs} +3 -3
- package/dist/{chunk-W55X2BYN.mjs → chunk-BEZH7VEH.mjs} +1 -1
- package/dist/chunk-BTPGQC6Z.mjs +27 -0
- package/dist/{chunk-KG5N7LE6.mjs → chunk-CYYSZPVV.mjs} +11 -11
- package/dist/{chunk-HTMUGEFU.mjs → chunk-DOY6EG76.mjs} +6 -6
- package/dist/{chunk-UHVTEVF5.mjs → chunk-F22IOCR2.mjs} +10 -6
- package/dist/{chunk-FTQLF5JI.mjs → chunk-IRWP524D.mjs} +1 -1
- package/dist/{chunk-XLAI4OIO.mjs → chunk-IZT3G24Q.mjs} +2 -2
- package/dist/{chunk-SE7MKJVK.mjs → chunk-J7M73VY7.mjs} +1 -1
- package/dist/chunk-KAKQ74LS.mjs +53 -0
- package/dist/{chunk-GVPYMSLO.mjs → chunk-KYVRZAYP.mjs} +1 -1
- package/dist/{chunk-F442VZUL.mjs → chunk-KZ5GQE4Z.mjs} +5 -5
- package/dist/{chunk-WDEWU46C.mjs → chunk-KZQIVGW7.mjs} +2 -2
- package/dist/{chunk-7AJAW6NN.mjs → chunk-L7TIAYPX.mjs} +8 -8
- package/dist/{chunk-GRFXSEFF.mjs → chunk-LDGGR7YT.mjs} +4 -81
- package/dist/{chunk-WMIV7PJ7.mjs → chunk-LJ4ENXOD.mjs} +15 -14
- package/dist/chunk-LQG5G2LY.mjs +39 -0
- package/dist/{chunk-IQHZMCLX.mjs → chunk-MDF6PDIA.mjs} +2 -0
- package/dist/{chunk-QXH2CS4V.mjs → chunk-NVTFQFUL.mjs} +7 -26
- package/dist/{chunk-5K2JHKM3.mjs → chunk-NYSONUB7.mjs} +1 -1
- package/dist/{chunk-OH7SX5MY.mjs → chunk-O4KUNDVF.mjs} +12 -10
- package/dist/{chunk-EBIHRL7B.mjs → chunk-Q2UL2TPC.mjs} +1 -1
- package/dist/{chunk-RNUP6WZ6.mjs → chunk-QEYF2SQ6.mjs} +2 -2
- package/dist/{chunk-RVBUQITB.mjs → chunk-QN5WVV5K.mjs} +7 -7
- package/dist/{chunk-RIIUZJQ3.mjs → chunk-QYRNLLLI.mjs} +1 -1
- package/dist/{chunk-BTARFTEN.mjs → chunk-SOUZMPME.mjs} +4 -4
- package/dist/{chunk-ISUOSACK.mjs → chunk-T4CJDBBE.mjs} +1 -1
- package/dist/{chunk-DHEJAGVW.mjs → chunk-TTCKT2RT.mjs} +5 -5
- package/dist/{chunk-QU2XF7VI.mjs → chunk-U2726TL5.mjs} +5 -4
- package/dist/{chunk-LYKUJNAV.mjs → chunk-U46IZNCW.mjs} +2 -2
- package/dist/{chunk-SNB4DYL3.mjs → chunk-U6NE6RCV.mjs} +4 -4
- package/dist/{chunk-SA52N7G3.mjs → chunk-VP6XRMWR.mjs} +4 -4
- package/dist/{chunk-YUCGFPMS.mjs → chunk-VQDZVWN3.mjs} +449 -405
- package/dist/{chunk-IWVEG5CX.mjs → chunk-XIHUI4KB.mjs} +2 -2
- package/dist/{chunk-IV2XTSS2.mjs → chunk-XKPNKR3V.mjs} +16 -46
- package/dist/{chunk-UQS5PAS5.mjs → chunk-YGQOPB2Z.mjs} +1 -1
- package/dist/{chunk-SVO6NV4D.mjs → chunk-YKEHQUSZ.mjs} +4 -4
- package/dist/{chunk-6Z22L5RN.mjs → chunk-ZAYWOHVG.mjs} +1 -1
- package/dist/{chunk-QLDLQW36.mjs → chunk-ZEKDO7YX.mjs} +2 -2
- package/dist/chunk-ZXNNR73R.mjs +31 -0
- package/dist/{chunk-VJS4JFBQ.mjs → chunk-ZXX5GZEX.mjs} +3 -1
- package/dist/{chunk-X5SBWARI.mjs → chunk-ZYKUD5NX.mjs} +9 -7
- package/dist/{client-DoYPHcUn.d.ts → client-Cn3gNxUU.d.ts} +3 -3
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +2 -0
- package/dist/{cold-module-NUD332YD.mjs → cold-module-2WWGBFJC.mjs} +36 -33
- package/dist/{config-CuUfls_H.d.ts → config-CfhH1IWQ.d.ts} +1 -1
- package/dist/{config-Dzs46im6.d.ts → config-aIsy7mcL.d.ts} +52 -1
- package/dist/direct-executor-QLVHMELJ.mjs +24 -0
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +150 -255
- package/dist/{durability-wiring-K7RDXWL6.mjs → durability-wiring-GNWQSZI3.mjs} +67 -42
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-C0ifUEcm.d.ts → engine-CJRUHXgf.d.ts} +1 -1
- package/dist/gzip-F4HMIEEQ.mjs +1 -0
- package/dist/import-DX55PN4G.mjs +41 -0
- package/dist/index.browser.mjs +7 -4
- package/dist/index.d.ts +539 -5
- package/dist/index.mjs +22 -16
- package/dist/index.react-native.mjs +19 -0
- package/dist/{long-query-thread-FKVHRCHF.mjs → long-query-thread-SCUE62TO.mjs} +20 -17
- package/dist/{module-GJUKW5VU.mjs → module-HW6IXUM6.mjs} +601 -108
- package/dist/{module-TMFIWOD2.mjs → module-V5K4ZP23.mjs} +29 -23
- package/dist/{paged-partition-archive-WNUEMYWM.mjs → paged-partition-archive-FDIIWZNR.mjs} +31 -25
- package/dist/partial-words.mjs +5 -5
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +28 -22
- package/dist/{phrase-module-OMY3QQV7.mjs → phrase-module-OUQIRUQU.mjs} +1 -1
- package/dist/pool-UPV5PVPY.mjs +298 -0
- package/dist/react-native/chunks/analysis-change-HGW3L6NY.mjs +893 -0
- package/dist/react-native/chunks/analysis-change-entry-BNRU6STO.mjs +1 -0
- package/dist/react-native/chunks/chunk-2J2727V4.mjs +495 -0
- package/dist/react-native/chunks/chunk-3CTWSQRW.mjs +1251 -0
- package/dist/react-native/chunks/chunk-5FV4ZEVA.mjs +2619 -0
- package/dist/react-native/chunks/chunk-7VWQLEFV.mjs +642 -0
- package/dist/react-native/chunks/chunk-AAAETEJK.mjs +27 -0
- package/dist/react-native/chunks/chunk-AM7RSBPF.mjs +32 -0
- package/dist/react-native/chunks/chunk-B6OD63Z3.mjs +997 -0
- package/dist/react-native/chunks/chunk-BRNAVOKP.mjs +177 -0
- package/dist/react-native/chunks/chunk-DKJTZ625.mjs +207 -0
- package/dist/react-native/chunks/chunk-FKGG4UOF.mjs +177 -0
- package/dist/{browser/chunk-K7UFXEJS.mjs → react-native/chunks/chunk-GV5KFQ6M.mjs} +12 -6
- package/dist/react-native/chunks/chunk-HURV3ASY.mjs +4416 -0
- package/dist/react-native/chunks/chunk-IO2SMUQD.mjs +10 -0
- package/dist/react-native/chunks/chunk-JV6VQY2S.mjs +17 -0
- package/dist/react-native/chunks/chunk-KUJOBRKS.mjs +217 -0
- package/dist/react-native/chunks/chunk-KWRW5U65.mjs +226 -0
- package/dist/react-native/chunks/chunk-L4M7QJNP.mjs +110 -0
- package/dist/react-native/chunks/chunk-LQ6Q4L5B.mjs +360 -0
- package/dist/react-native/chunks/chunk-LQAKO5QV.mjs +523 -0
- package/dist/react-native/chunks/chunk-LRGWK367.mjs +11 -0
- package/dist/react-native/chunks/chunk-LVIKKAA6.mjs +93 -0
- package/dist/react-native/chunks/chunk-NFGBOI46.mjs +14 -0
- package/dist/react-native/chunks/chunk-NNE4VDMM.mjs +8 -0
- package/dist/react-native/chunks/chunk-PPEPTUVV.mjs +56 -0
- package/dist/react-native/chunks/chunk-PSWKQVVT.mjs +9 -0
- package/dist/react-native/chunks/chunk-PU55IOG4.mjs +910 -0
- package/dist/react-native/chunks/chunk-QC4ZRBSX.mjs +270 -0
- package/dist/react-native/chunks/chunk-R4EEMYM6.mjs +21 -0
- package/dist/react-native/chunks/chunk-R4OPUZQ5.mjs +86 -0
- package/dist/react-native/chunks/chunk-SLGIAD6B.mjs +2634 -0
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +25 -0
- package/dist/react-native/chunks/chunk-TLYD7IJ2.mjs +23 -0
- package/dist/react-native/chunks/chunk-UFNCLEQM.mjs +73 -0
- package/dist/react-native/chunks/chunk-YH7W556M.mjs +179 -0
- package/dist/react-native/chunks/chunk-YJSMEKRE.mjs +22385 -0
- package/dist/react-native/chunks/chunk-ZCKNBPQ4.mjs +79 -0
- package/dist/react-native/chunks/cold-module-TSFWLYWC.mjs +755 -0
- package/dist/react-native/chunks/durability-wiring-PZR6KOQK.mjs +4509 -0
- package/dist/react-native/chunks/gzip.react-native-7JWCLVOB.mjs +3 -0
- package/dist/react-native/chunks/import-VTODLPLO.mjs +22 -0
- package/dist/{browser/module-Q6VFGLMG.mjs → react-native/chunks/module-JBBH6PZH.mjs} +609 -144
- package/dist/react-native/chunks/module-VEK2KCKU.mjs +25 -0
- package/dist/react-native/chunks/phrase-module-76UAPPSG.mjs +329 -0
- package/dist/react-native/chunks/pool-CD4ANYUI.mjs +296 -0
- package/dist/react-native/chunks/release-D7ZTIANM.mjs +33 -0
- package/dist/react-native/chunks/replace-IMZUVUOE.mjs +57 -0
- package/dist/{browser/restore-queue-SOAHKZSQ.mjs → react-native/chunks/restore-queue-OI5EH7R3.mjs} +2 -2
- package/dist/react-native/chunks/runtime-3MCDLJAF.mjs +559 -0
- package/dist/react-native/chunks/snapshot-AUZMEV36.mjs +1205 -0
- package/dist/react-native/chunks/write-DDC2QBRJ.mjs +197 -0
- package/dist/react-native/partial-words.mjs +733 -0
- package/dist/react-native/pattern.mjs +2442 -0
- package/dist/react-native/synonyms.mjs +460 -0
- package/dist/react.d.ts +7 -7
- package/dist/react.mjs +2 -0
- package/dist/{rerank-ZZ5CHKLW.mjs → rerank-3W54N6P2.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-queue-BQWWNNQI.mjs +41 -0
- package/dist/{runtime-RAOCKSYA.mjs → runtime-L2DZYY6N.mjs} +5 -5
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +32 -28
- package/dist/{snapshot-DB5ZVCDN.mjs → snapshot-EHXTOTW5.mjs} +39 -33
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-ChWp0wrF.d.ts → tasks-C4ElXr4P.d.ts} +2 -2
- package/dist/thread-I7DVHHW7.mjs +31 -0
- package/dist/vector/search-worker.mjs +7 -5
- package/dist/workers/entry.mjs +9 -9
- package/dist/{write-KZVTLGCI.mjs → write-SDJXXQ2G.mjs} +29 -23
- package/package.json +88 -7
- package/dist/analysis-change-D5APH4Z3.mjs +0 -34
- package/dist/browser/import-FTMLTPGQ.mjs +0 -9
- package/dist/direct-executor-FDQYQEJQ.mjs +0 -22
- package/dist/import-6KXFY6XI.mjs +0 -35
- package/dist/thread-OV6T555H.mjs +0 -28
- /package/dist/{chunk-22YPZVMG.mjs → chunk-ZXNQEW43.mjs} +0 -0
|
@@ -1,48 +1,55 @@
|
|
|
1
|
-
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, removeLeftoverRewriteFiles, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-
|
|
3
|
-
import { writeMetadataEnvelope, decodeSegmentManifest, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, metadataConfigOf, durableMetadataConfigOf, readCurrentManifest } from './chunk-
|
|
4
|
-
import { VECTOR_FILE_ENVELOPE_VERSION } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import
|
|
1
|
+
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-QEYF2SQ6.mjs';
|
|
2
|
+
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, removeLeftoverRewriteFiles, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-ZYKUD5NX.mjs';
|
|
3
|
+
import { writeMetadataEnvelope, decodeSegmentManifest, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, metadataConfigOf, durableMetadataConfigOf, readCurrentManifest } from './chunk-XKPNKR3V.mjs';
|
|
4
|
+
import { VECTOR_FILE_ENVELOPE_VERSION } from './chunk-KZ5GQE4Z.mjs';
|
|
5
|
+
import './chunk-ZXNNR73R.mjs';
|
|
6
|
+
import './chunk-7N223GWV.mjs';
|
|
7
|
+
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-ZEKDO7YX.mjs';
|
|
7
8
|
import './chunk-37CD3OKS.mjs';
|
|
8
|
-
import { createDurableDirectory } from './chunk-
|
|
9
|
-
import { spawnNodeWorker } from './chunk-
|
|
9
|
+
import { createDurableDirectory } from './chunk-7HKWO4BJ.mjs';
|
|
10
|
+
import { spawnNodeWorker } from './chunk-BEZH7VEH.mjs';
|
|
10
11
|
import { getFs } from './chunk-HLPRHOSO.mjs';
|
|
11
|
-
import { nextSegmentKey, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, SEGMENT_HEADER_SIZE, buildEntry, captureWholePartition, checkpointLastSeqNo } from './chunk-
|
|
12
|
+
import { nextSegmentKey, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, SEGMENT_HEADER_SIZE, buildEntry, captureWholePartition, checkpointLastSeqNo } from './chunk-CYYSZPVV.mjs';
|
|
12
13
|
import './chunk-JDDXV6UF.mjs';
|
|
13
|
-
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, readSegmentFile, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import { directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION } from './chunk-
|
|
14
|
+
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, readSegmentFile, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-QN5WVV5K.mjs';
|
|
15
|
+
import './chunk-U2726TL5.mjs';
|
|
16
|
+
import { directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION } from './chunk-6C5EX2QR.mjs';
|
|
16
17
|
import './chunk-5QMHMELB.mjs';
|
|
17
|
-
import { toError, openChecksummedEnvelope, HEADER_SIZE } from './chunk-
|
|
18
|
-
import './chunk-
|
|
18
|
+
import { toError, openChecksummedEnvelope, HEADER_SIZE } from './chunk-VQDZVWN3.mjs';
|
|
19
|
+
import './chunk-6F6USYII.mjs';
|
|
20
|
+
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-O4KUNDVF.mjs';
|
|
21
|
+
import './chunk-3HV7M5OJ.mjs';
|
|
22
|
+
import { fnv1a } from './chunk-KAKQ74LS.mjs';
|
|
19
23
|
import './chunk-HJSN7UYG.mjs';
|
|
20
|
-
import { detectRuntime, resolveWorkerEntry } from './chunk-
|
|
24
|
+
import { detectRuntime, resolveWorkerEntry } from './chunk-6BWLDLS3.mjs';
|
|
25
|
+
import './chunk-XIHUI4KB.mjs';
|
|
26
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
27
|
+
import './chunk-3MXV3VHR.mjs';
|
|
21
28
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-EEBCDP36.mjs';
|
|
22
|
-
import
|
|
23
|
-
import { fnv1a } from './chunk-QYMAYU7M.mjs';
|
|
24
|
-
import './chunk-EBIHRL7B.mjs';
|
|
25
|
-
import './chunk-FRJ5RGX7.mjs';
|
|
29
|
+
import './chunk-2HJWQPR6.mjs';
|
|
26
30
|
import './chunk-X5CV2E2B.mjs';
|
|
27
31
|
import './chunk-TGP5M5R7.mjs';
|
|
28
32
|
import './chunk-U2BKYEC7.mjs';
|
|
33
|
+
import './chunk-ZAYWOHVG.mjs';
|
|
29
34
|
import { createRequestId } from './chunk-QHPYS427.mjs';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
35
|
+
import './chunk-QYRNLLLI.mjs';
|
|
36
|
+
import './chunk-ZXNQEW43.mjs';
|
|
32
37
|
import './chunk-KOKM4PQN.mjs';
|
|
33
|
-
import './chunk-
|
|
38
|
+
import './chunk-NVTFQFUL.mjs';
|
|
39
|
+
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite } from './chunk-LQG5G2LY.mjs';
|
|
40
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
34
41
|
import './chunk-RFBLQLLZ.mjs';
|
|
35
|
-
import './chunk-
|
|
42
|
+
import './chunk-U46IZNCW.mjs';
|
|
36
43
|
import './chunk-JUKYYXSP.mjs';
|
|
37
|
-
import { encodeDocument, requireValidFieldTypes } from './chunk-
|
|
44
|
+
import { encodeDocument, requireValidFieldTypes } from './chunk-SOUZMPME.mjs';
|
|
38
45
|
import './chunk-FQBFZAWG.mjs';
|
|
39
|
-
import './chunk-
|
|
46
|
+
import './chunk-65WCV5JO.mjs';
|
|
40
47
|
import './chunk-4UMZ7KQL.mjs';
|
|
41
|
-
import { MIN_M } from './chunk-
|
|
42
|
-
import './chunk-
|
|
48
|
+
import { MIN_M } from './chunk-ZXX5GZEX.mjs';
|
|
49
|
+
import './chunk-KYVRZAYP.mjs';
|
|
43
50
|
import './chunk-L5ORED7V.mjs';
|
|
44
51
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
45
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
52
|
+
import { NarsilError, ErrorCodes } from './chunk-MDF6PDIA.mjs';
|
|
46
53
|
import './chunk-R6A773WK.mjs';
|
|
47
54
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
48
55
|
import { decode } from '@msgpack/msgpack';
|
|
@@ -759,6 +766,15 @@ async function writeCapturedVectors(store, indexName, capture2, priorManifest, r
|
|
|
759
766
|
return { vectors: written.refs, layouts: written.layouts, written: written.written };
|
|
760
767
|
}
|
|
761
768
|
|
|
769
|
+
// src/persistence/durability/checkpoint-worker-entry.ts
|
|
770
|
+
function resolveCheckpointWorkerEntry() {
|
|
771
|
+
return resolveWorkerEntry(
|
|
772
|
+
import.meta.url,
|
|
773
|
+
/\/src\/persistence\/durability\/[^/]+$/,
|
|
774
|
+
"persistence/durability/checkpoint-worker.mjs"
|
|
775
|
+
);
|
|
776
|
+
}
|
|
777
|
+
|
|
762
778
|
// src/persistence/durability/checkpoint-worker-dispatch.ts
|
|
763
779
|
var workerUsable = true;
|
|
764
780
|
var pooledWorker = null;
|
|
@@ -767,11 +783,7 @@ var spawnedWorkerCount = 0;
|
|
|
767
783
|
var workerIdleMs = CHECKPOINT_WORKER_IDLE_MS;
|
|
768
784
|
var idleTimer = null;
|
|
769
785
|
async function spawnWorker() {
|
|
770
|
-
const entryPoint =
|
|
771
|
-
import.meta.url,
|
|
772
|
-
/\/src\/persistence\/durability\/[^/]+$/,
|
|
773
|
-
"persistence/durability/checkpoint-worker.mjs"
|
|
774
|
-
);
|
|
786
|
+
const entryPoint = resolveCheckpointWorkerEntry();
|
|
775
787
|
if (entryPoint === null) return null;
|
|
776
788
|
try {
|
|
777
789
|
const worker = await spawnNodeWorker(new URL(entryPoint));
|
|
@@ -1002,9 +1014,11 @@ function checkpointIsDue(indexState, mutationThreshold, stallAboveBytes = WRITES
|
|
|
1002
1014
|
}
|
|
1003
1015
|
async function stallWhileCheckpointsFallBehind(indexState, stallAboveBytes = WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES) {
|
|
1004
1016
|
while (indexState.documentBytesSinceCheckpoint >= stallAboveBytes && indexState.checkpointInFlight !== null && !indexState.unloading) {
|
|
1005
|
-
await
|
|
1006
|
-
|
|
1007
|
-
|
|
1017
|
+
await waitOutsideCountedWrite(
|
|
1018
|
+
() => new Promise((resume) => {
|
|
1019
|
+
indexState.stalledWrites.push(resume);
|
|
1020
|
+
})
|
|
1021
|
+
);
|
|
1008
1022
|
}
|
|
1009
1023
|
}
|
|
1010
1024
|
function noteCheckpointCommitted(indexState, recordsBeyondTheCheckpoint) {
|
|
@@ -1101,7 +1115,7 @@ async function writeOneBoundedCheckpoint(input) {
|
|
|
1101
1115
|
}
|
|
1102
1116
|
async function adoptWrittenSegments(input, manager, partitions, changes) {
|
|
1103
1117
|
const { indexName, indexState, hooks } = input;
|
|
1104
|
-
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-
|
|
1118
|
+
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-V5K4ZP23.mjs');
|
|
1105
1119
|
const adoption = await prepareDiskAdoption(input.directory, manager, partitions);
|
|
1106
1120
|
if (adoption === null) return [];
|
|
1107
1121
|
const adopted = await whileNoMutationApplies([...indexState.partitions.values()], () => {
|
|
@@ -1156,7 +1170,7 @@ async function finishBoundedCheckpoint(input, manager, store, metadata, priorMan
|
|
|
1156
1170
|
const droppedThisCheckpoint = changes !== null && capture2.recordsLeftInLog === 0 ? new Set(await adoptWrittenSegments(input, manager, segments.partitions, changes)) : /* @__PURE__ */ new Set();
|
|
1157
1171
|
if (!input.holdsCheckpointFiles()) {
|
|
1158
1172
|
const removable = await garbageThatNoFieldStillReads(store, vectorIndexes, written.garbage);
|
|
1159
|
-
const stillRead = metadata.textStorage === "disk" ? (await import('./module-
|
|
1173
|
+
const stillRead = metadata.textStorage === "disk" ? (await import('./module-V5K4ZP23.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
|
|
1160
1174
|
await removeCheckpointGarbage(
|
|
1161
1175
|
store,
|
|
1162
1176
|
removable.filter((key) => !droppedThisCheckpoint.has(key) && !stillRead.has(key))
|
|
@@ -1198,7 +1212,10 @@ function recordsBeyond(indexState, targets) {
|
|
|
1198
1212
|
function createIndexLoads(vectorIndexesOf2) {
|
|
1199
1213
|
const loads = /* @__PURE__ */ new Map();
|
|
1200
1214
|
const startGraphRepairs = (indexName) => {
|
|
1201
|
-
for (const vectorIndex of vectorIndexesOf2(indexName).values())
|
|
1215
|
+
for (const vectorIndex of vectorIndexesOf2(indexName).values()) {
|
|
1216
|
+
vectorIndex.scheduleBuild();
|
|
1217
|
+
vectorIndex.startShuffledRebuildWhenDue();
|
|
1218
|
+
}
|
|
1202
1219
|
};
|
|
1203
1220
|
return {
|
|
1204
1221
|
track(indexName, load, startsGraphRepairs = true) {
|
|
@@ -1483,6 +1500,7 @@ async function recordPartitionBatch(partition, records, deps) {
|
|
|
1483
1500
|
}
|
|
1484
1501
|
const applied = [];
|
|
1485
1502
|
for (let i = 0; i < records.length; i++) {
|
|
1503
|
+
if (turnsAreBudgeted && turnIsSpent()) await yieldTurn();
|
|
1486
1504
|
try {
|
|
1487
1505
|
await records[i].apply();
|
|
1488
1506
|
applied.push(i);
|
|
@@ -1497,6 +1515,7 @@ async function recordPartitionBatch(partition, records, deps) {
|
|
|
1497
1515
|
const entries = [];
|
|
1498
1516
|
try {
|
|
1499
1517
|
for (const i of applied) {
|
|
1518
|
+
if (turnsAreBudgeted && turnIsSpent()) await yieldTurn();
|
|
1500
1519
|
let numbered;
|
|
1501
1520
|
try {
|
|
1502
1521
|
numbered = deps.numberEntry(records[i]);
|
|
@@ -1861,7 +1880,11 @@ function createWalWriter(directory, config) {
|
|
|
1861
1880
|
if (entries.length === 0) {
|
|
1862
1881
|
return;
|
|
1863
1882
|
}
|
|
1864
|
-
const frames =
|
|
1883
|
+
const frames = [];
|
|
1884
|
+
for (const entry of entries) {
|
|
1885
|
+
if (turnsAreBudgeted && turnIsSpent()) await yieldTurn();
|
|
1886
|
+
frames.push(frameRecord(entry));
|
|
1887
|
+
}
|
|
1865
1888
|
await ensureSegment(entries[0].seqNo);
|
|
1866
1889
|
let start = 0;
|
|
1867
1890
|
while (start < frames.length) {
|
|
@@ -2373,7 +2396,7 @@ var decoder = new TextDecoder();
|
|
|
2373
2396
|
async function countPagedPartition(store, partition) {
|
|
2374
2397
|
const { directory } = store;
|
|
2375
2398
|
if (directory === void 0 || partition.segments.length === 0) return null;
|
|
2376
|
-
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-
|
|
2399
|
+
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-V5K4ZP23.mjs');
|
|
2377
2400
|
for (const ref of partition.segments) if (!await isPagedSegmentFile(directory, ref.key)) return null;
|
|
2378
2401
|
const scans = [];
|
|
2379
2402
|
try {
|
|
@@ -2754,7 +2777,8 @@ async function recoverPersistedIndex(deps, indexName, metadataOnly) {
|
|
|
2754
2777
|
manager,
|
|
2755
2778
|
vectorFieldPaths: hooks.getVectorFieldPaths(indexName),
|
|
2756
2779
|
vectorIndexes: hooks.getVectorIndexes(indexName),
|
|
2757
|
-
writeRecords
|
|
2780
|
+
writeRecords,
|
|
2781
|
+
defersGraphBuilds: true
|
|
2758
2782
|
};
|
|
2759
2783
|
const replay = async (checkpoint) => {
|
|
2760
2784
|
const replayed = [];
|
|
@@ -3576,6 +3600,7 @@ function createDurabilityIntegration(tier, hooks) {
|
|
|
3576
3600
|
const outcomes = new Array(mutations.length);
|
|
3577
3601
|
const recordPositions = [];
|
|
3578
3602
|
for (let i = 0; i < mutations.length; i++) {
|
|
3603
|
+
if (turnsAreBudgeted && turnIsSpent()) await yieldTurn();
|
|
3579
3604
|
const mutation = mutations[i];
|
|
3580
3605
|
try {
|
|
3581
3606
|
records.push({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-J7M73VY7.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from '../chunk-MDF6PDIA.mjs';
|
|
3
3
|
|
|
4
4
|
// src/embeddings/constants.ts
|
|
5
5
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-pljAqmrC.js';
|
|
2
2
|
import { B as BM25Params, A as AnyDocument, I as InsertOptions, W as WriteOptions, a as IndexConfig, P as PartitionConfig } from './schema-D33CyXCy.js';
|
|
3
|
-
import { B as BatchResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, L as ListParams, f as ListResult, Q as QueryParams, m as QueryResult, j as PreflightResult, g as SuggestParams, h as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, l as NarsilEventMap } from './config-
|
|
3
|
+
import { B as BatchResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, L as ListParams, f as ListResult, Q as QueryParams, m as QueryResult, j as PreflightResult, g as SuggestParams, h as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, l as NarsilEventMap } from './config-aIsy7mcL.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { gunzip, gzip } from './chunk-ZXNNR73R.mjs';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, readDocumentExport } from './chunk-F22IOCR2.mjs';
|
|
2
|
+
import './chunk-NYSONUB7.mjs';
|
|
3
|
+
import './chunk-CZQ33DLW.mjs';
|
|
4
|
+
import './chunk-IRWP524D.mjs';
|
|
5
|
+
import './chunk-VQDZVWN3.mjs';
|
|
6
|
+
import './chunk-6F6USYII.mjs';
|
|
7
|
+
import './chunk-O4KUNDVF.mjs';
|
|
8
|
+
import './chunk-3HV7M5OJ.mjs';
|
|
9
|
+
import './chunk-KAKQ74LS.mjs';
|
|
10
|
+
import './chunk-HJSN7UYG.mjs';
|
|
11
|
+
import './chunk-6BWLDLS3.mjs';
|
|
12
|
+
import './chunk-XIHUI4KB.mjs';
|
|
13
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
14
|
+
import './chunk-3MXV3VHR.mjs';
|
|
15
|
+
import './chunk-EEBCDP36.mjs';
|
|
16
|
+
import './chunk-2HJWQPR6.mjs';
|
|
17
|
+
import './chunk-X5CV2E2B.mjs';
|
|
18
|
+
import './chunk-TGP5M5R7.mjs';
|
|
19
|
+
import './chunk-U2BKYEC7.mjs';
|
|
20
|
+
import './chunk-ZAYWOHVG.mjs';
|
|
21
|
+
import './chunk-QHPYS427.mjs';
|
|
22
|
+
import './chunk-QYRNLLLI.mjs';
|
|
23
|
+
import './chunk-ZXNQEW43.mjs';
|
|
24
|
+
import './chunk-KOKM4PQN.mjs';
|
|
25
|
+
import './chunk-NVTFQFUL.mjs';
|
|
26
|
+
import './chunk-LQG5G2LY.mjs';
|
|
27
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
28
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
29
|
+
import './chunk-U46IZNCW.mjs';
|
|
30
|
+
import './chunk-JUKYYXSP.mjs';
|
|
31
|
+
import './chunk-SOUZMPME.mjs';
|
|
32
|
+
import './chunk-FQBFZAWG.mjs';
|
|
33
|
+
import './chunk-65WCV5JO.mjs';
|
|
34
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
35
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
36
|
+
import './chunk-KYVRZAYP.mjs';
|
|
37
|
+
import './chunk-L5ORED7V.mjs';
|
|
38
|
+
import './chunk-U476IXKQ.mjs';
|
|
39
|
+
import './chunk-MDF6PDIA.mjs';
|
|
40
|
+
import './chunk-R6A773WK.mjs';
|
|
41
|
+
import './chunk-YTJCGKM4.mjs';
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-BVX2MEHA.mjs';
|
|
2
|
+
import './browser/chunk-MPK76GVS.mjs';
|
|
2
3
|
import './browser/chunk-JPTQZWJQ.mjs';
|
|
3
4
|
import './browser/chunk-26A5JFT2.mjs';
|
|
4
|
-
export { isSimdAvailable } from './browser/chunk-
|
|
5
|
-
import './browser/chunk-
|
|
6
|
-
|
|
5
|
+
export { isSimdAvailable } from './browser/chunk-IAXZAVYL.mjs';
|
|
6
|
+
import './browser/chunk-TY7L6OXO.mjs';
|
|
7
|
+
import './browser/chunk-4RD3AFSB.mjs';
|
|
8
|
+
import './browser/chunk-WXLBZJMT.mjs';
|
|
9
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-PIS7ZAP7.mjs';
|