@delali/narsil 0.3.1-next.162 → 0.3.1-next.169

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.
Files changed (157) hide show
  1. package/README.md +24 -8
  2. package/dist/browser/{chunk-MZHQ65VI.mjs → chunk-2Q45HI5H.mjs} +14 -10
  3. package/dist/browser/{chunk-MMHIIL5B.mjs → chunk-4ZICWS4V.mjs} +1 -1
  4. package/dist/browser/{chunk-KQXKCMGQ.mjs → chunk-JHFBQKUF.mjs} +119 -90
  5. package/dist/browser/{core-leaf-SIWXFZLV.mjs → core-leaf-WYFANMKC.mjs} +61 -13
  6. package/dist/browser/custom-token-results-R5BIX7SL.mjs +59 -0
  7. package/dist/browser/{embed-RF2MPGAO.mjs → embed-24IPR4LP.mjs} +2 -2
  8. package/dist/browser/{module-PMQBRESM.mjs → module-XVLHJ7T7.mjs} +358 -62
  9. package/dist/browser/{optional-writes-WMZX4OEC.mjs → optional-writes-TB34FYUW.mjs} +118 -66
  10. package/dist/browser/{phrase-module-22TKMXWI.mjs → phrase-module-6UGFVW5J.mjs} +1 -0
  11. package/dist/browser/{resolve-vector-text-KI65IHMD.mjs → resolve-vector-text-EJ6DHFF5.mjs} +8 -0
  12. package/dist/browser/{storage-leaf-VGR2BWJJ.mjs → storage-leaf-QFXIWDFK.mjs} +208 -87
  13. package/dist/browser/{worker-copies-WQCPP3TS.mjs → worker-copies-ICHLYYXM.mjs} +1 -0
  14. package/dist/{capabilities-DkXAkb-X.d.ts → capabilities-BQIdsaWy.d.ts} +2 -2
  15. package/dist/{chunk-BKOMO7HT.mjs → chunk-26E5MO3Y.mjs} +5 -5
  16. package/dist/{chunk-EEYDJB4Z.mjs → chunk-2C3BXZGA.mjs} +213 -149
  17. package/dist/{chunk-NXMGUDZA.mjs → chunk-2KWTQ2P7.mjs} +2 -2
  18. package/dist/{chunk-TW543F33.mjs → chunk-34IOOYXA.mjs} +1 -1
  19. package/dist/{chunk-D5GNFN6X.mjs → chunk-7FC2ZILY.mjs} +98 -40
  20. package/dist/{chunk-XRBPHCCT.mjs → chunk-A4XYDUVN.mjs} +5 -5
  21. package/dist/{chunk-R4F7ZTVG.mjs → chunk-BIIROQ5Q.mjs} +2 -2
  22. package/dist/{chunk-Q2WQSAYH.mjs → chunk-CQX5B6L2.mjs} +54 -11
  23. package/dist/{chunk-XXWEUXE4.mjs → chunk-D6FYUTFN.mjs} +1 -1
  24. package/dist/{chunk-OUWZKNO3.mjs → chunk-DG6WIEB3.mjs} +1 -1
  25. package/dist/{chunk-GJKFXKMI.mjs → chunk-F3FDHXCJ.mjs} +12 -9
  26. package/dist/{chunk-3UGZBRDN.mjs → chunk-GO6TRSJ6.mjs} +1 -1
  27. package/dist/{react-native/chunks/chunk-OK3WUA6N.mjs → chunk-I2WJCRIH.mjs} +1 -1
  28. package/dist/{chunk-Q7CUUSJ2.mjs → chunk-ISJ35523.mjs} +2 -2
  29. package/dist/{chunk-GQLOEACG.mjs → chunk-JCWC75NH.mjs} +2 -2
  30. package/dist/{chunk-ZGYF37MG.mjs → chunk-JDIATDPY.mjs} +1 -1
  31. package/dist/{chunk-3B775F3C.mjs → chunk-JP77OWMI.mjs} +3 -1
  32. package/dist/{chunk-KSOZJEYU.mjs → chunk-KHJPMZE2.mjs} +1 -1
  33. package/dist/{chunk-ZQ6QY42L.mjs → chunk-KL6W73BZ.mjs} +8 -0
  34. package/dist/{chunk-ES5EOXT6.mjs → chunk-LOQHA6QK.mjs} +3 -3
  35. package/dist/{chunk-AB27FWZM.mjs → chunk-LPRRFCVU.mjs} +2 -2
  36. package/dist/{chunk-EIR3IQCL.mjs → chunk-QFJMRB7D.mjs} +2 -1
  37. package/dist/{chunk-S3BSDBF7.mjs → chunk-QJGDB3WR.mjs} +1 -1
  38. package/dist/{chunk-EI7U43MX.mjs → chunk-R7PLSVK3.mjs} +2 -2
  39. package/dist/{chunk-5DUTOEK5.mjs → chunk-TBOZHYCF.mjs} +2 -2
  40. package/dist/{chunk-VJOS6MHF.mjs → chunk-TNEU32EN.mjs} +64 -16
  41. package/dist/{chunk-RXMR2SIQ.mjs → chunk-UISV46WX.mjs} +4 -4
  42. package/dist/{chunk-4CAMH7FO.mjs → chunk-X4UMDSB4.mjs} +2 -1
  43. package/dist/{chunk-R4CE4IVU.mjs → chunk-X5NHWOXT.mjs} +15 -11
  44. package/dist/{react-native/chunks/chunk-HEELWLKL.mjs → chunk-XFOL77WH.mjs} +1 -1
  45. package/dist/{chunk-TOZENMM7.mjs → chunk-XITVDRRH.mjs} +5 -5
  46. package/dist/{chunk-FSLQHOKZ.mjs → chunk-XNFBYAXI.mjs} +1 -1
  47. package/dist/{chunk-V4YIEMAI.mjs → chunk-XQQKETAF.mjs} +4 -4
  48. package/dist/{chunk-DSXFN5BF.mjs → chunk-XTSFRWAS.mjs} +8 -8
  49. package/dist/{chunk-K4BMDPPX.mjs → chunk-Y27E2MGC.mjs} +2 -2
  50. package/dist/{chunk-JV74RKCY.mjs → chunk-YM2HI5N5.mjs} +1 -1
  51. package/dist/{chunk-7OE73OO4.mjs → chunk-YPV2L7M5.mjs} +56 -6
  52. package/dist/{chunk-STLNPJXU.mjs → chunk-YXZDTKQS.mjs} +2 -2
  53. package/dist/{chunk-5P72V66D.mjs → chunk-ZB5X5WAK.mjs} +24 -20
  54. package/dist/{client-VJmV_AjZ.d.ts → client-CeUxvIvd.d.ts} +4 -4
  55. package/dist/client.d.ts +8 -8
  56. package/dist/{config-ZZg4cwQz.d.ts → config-CIpLXXxm.d.ts} +2 -2
  57. package/dist/{config-Cb3FOlE_.d.ts → config-DehU-VGL.d.ts} +2 -2
  58. package/dist/{core-leaf-LOXCD7MY.mjs → core-leaf-VIMO377O.mjs} +3 -3
  59. package/dist/custom-token-results-NXHBVY7U.mjs +59 -0
  60. package/dist/{direct-executor-PF4UDSUW.mjs → direct-executor-2WQSGBN3.mjs} +7 -7
  61. package/dist/distribution/coordinator/etcd.d.ts +2 -2
  62. package/dist/distribution/coordinator/etcd.mjs +1 -1
  63. package/dist/distribution/coordinator/in-memory.d.ts +2 -2
  64. package/dist/distribution/transport/grpc.mjs +1 -1
  65. package/dist/distribution/transport/tcp.mjs +1 -1
  66. package/dist/distribution.d.ts +7 -7
  67. package/dist/distribution.mjs +39 -39
  68. package/dist/{embed-4H7RTBVL.mjs → embed-UNHDFGDU.mjs} +2 -2
  69. package/dist/{engine-DdOs682x.d.ts → engine-P-4xhUe4.d.ts} +6 -2
  70. package/dist/{index-Ck9w5WHz.d.ts → index-CBUl4z3E.d.ts} +1 -1
  71. package/dist/index.browser.mjs +3 -3
  72. package/dist/index.d.ts +6 -6
  73. package/dist/index.mjs +7 -7
  74. package/dist/index.react-native.mjs +6 -6
  75. package/dist/{long-query-thread-OTVLP2OI.mjs → long-query-thread-AAYTLYZK.mjs} +19 -19
  76. package/dist/{module-UIKSHY3G.mjs → module-5SXNUCD5.mjs} +315 -64
  77. package/dist/{msgpack-leaf-5WFRP6JM.mjs → msgpack-leaf-7KBYOVTF.mjs} +2 -2
  78. package/dist/{optional-reads-RSLNSGNG.mjs → optional-reads-ENKMVQ4Q.mjs} +1 -1
  79. package/dist/{optional-writes-4ITCV7YT.mjs → optional-writes-N2DFWWZ3.mjs} +39 -26
  80. package/dist/{paged-partition-archive-VMJ2AUA6.mjs → paged-partition-archive-X7L27E5Z.mjs} +19 -19
  81. package/dist/partial-words.browser.mjs +3 -3
  82. package/dist/partial-words.mjs +7 -7
  83. package/dist/pattern.browser.mjs +2 -2
  84. package/dist/pattern.mjs +2 -2
  85. package/dist/persistence/durability/checkpoint-worker.d.ts +1 -1
  86. package/dist/persistence/durability/checkpoint-worker.mjs +17 -17
  87. package/dist/{phrase-module-IWSG2DDZ.mjs → phrase-module-ZY3TLTQA.mjs} +2 -1
  88. package/dist/{query-actions-EW72OQXY.mjs → query-actions-2JOLPELC.mjs} +7 -7
  89. package/dist/query-suggestions/merge-worker.mjs +10 -10
  90. package/dist/query-suggestions.browser.mjs +3 -3
  91. package/dist/query-suggestions.d.ts +2 -2
  92. package/dist/query-suggestions.mjs +8 -8
  93. package/dist/{chunk-ZBVHS5KF.mjs → react-native/chunks/chunk-57R74JWC.mjs} +1 -1
  94. package/dist/react-native/chunks/{chunk-AUXXPSFB.mjs → chunk-F4MIGBBP.mjs} +214 -150
  95. package/dist/react-native/chunks/{chunk-3RUXKZJG.mjs → chunk-F6BJYCF2.mjs} +2 -2
  96. package/dist/react-native/chunks/{chunk-RVHCQJQM.mjs → chunk-GGBATERA.mjs} +3 -3
  97. package/dist/react-native/chunks/{chunk-I5W7A2JF.mjs → chunk-GVWLACAT.mjs} +2 -2
  98. package/dist/react-native/chunks/{chunk-XOCM3BFU.mjs → chunk-H344ZXRH.mjs} +2 -2
  99. package/dist/react-native/chunks/{chunk-VIPNDN4B.mjs → chunk-I7DTUOK2.mjs} +65 -15
  100. package/dist/react-native/chunks/{chunk-2JMAUU26.mjs → chunk-J2BQTJJE.mjs} +1 -1
  101. package/dist/{chunk-QBVTYY4J.mjs → react-native/chunks/chunk-OZ3XEM6D.mjs} +1 -1
  102. package/dist/react-native/chunks/{chunk-4EXKQ2IB.mjs → chunk-SK3DPAI4.mjs} +1 -1
  103. package/dist/react-native/chunks/{chunk-XBTFK3AZ.mjs → chunk-WFQ6YQZA.mjs} +1 -1
  104. package/dist/react-native/chunks/{chunk-FTQ7JNMU.mjs → chunk-ZDDJVR7X.mjs} +15 -11
  105. package/dist/react-native/chunks/{core-leaf-O3236QY3.mjs → core-leaf-UDUMVC3M.mjs} +2 -2
  106. package/dist/react-native/chunks/custom-token-results-3OZEMRE7.mjs +59 -0
  107. package/dist/react-native/chunks/{embed-3WQ2CCR5.mjs → embed-U7CIKEY4.mjs} +2 -2
  108. package/dist/react-native/chunks/{module-LRR7D5ZO.mjs → module-7BJ3VOWQ.mjs} +360 -66
  109. package/dist/react-native/chunks/{msgpack-leaf-TR66ZVAX.mjs → msgpack-leaf-GTKLF6GJ.mjs} +2 -2
  110. package/dist/react-native/chunks/{optional-reads-TOWGNEDH.mjs → optional-reads-74HYI4DO.mjs} +1 -1
  111. package/dist/react-native/chunks/{optional-writes-7AFBIZMN.mjs → optional-writes-TXTJ6HUZ.mjs} +37 -24
  112. package/dist/react-native/chunks/{phrase-module-3A4AKMKL.mjs → phrase-module-UC4YGEBB.mjs} +2 -1
  113. package/dist/react-native/chunks/{resolve-vector-text-LXRYXF7M.mjs → resolve-vector-text-FTPD5EY6.mjs} +8 -0
  114. package/dist/react-native/chunks/{restore-queue-7FSHTGJ5.mjs → restore-queue-SZLWIL3B.mjs} +9 -9
  115. package/dist/react-native/chunks/{segment-codec-leaf-4QV4HO4R.mjs → segment-codec-leaf-WMUZ5P4F.mjs} +7 -7
  116. package/dist/react-native/chunks/{segment-merge-leaf-5DUZZSXJ.mjs → segment-merge-leaf-Q2OEJIQ3.mjs} +8 -8
  117. package/dist/react-native/chunks/{storage-leaf-PNU6HWY7.mjs → storage-leaf-OXYV6O6P.mjs} +213 -100
  118. package/dist/react-native/chunks/{store-leaf-ESVUGYYO.mjs → store-leaf-ZMDXYK4E.mjs} +8 -8
  119. package/dist/react-native/chunks/{suggestions-leaf-MOVOPBGD.mjs → suggestions-leaf-FIMGQZ2T.mjs} +8 -8
  120. package/dist/react-native/chunks/{worker-copies-VQGF3WZX.mjs → worker-copies-72TGFYQB.mjs} +8 -7
  121. package/dist/react-native/partial-words.mjs +6 -6
  122. package/dist/react-native/pattern.mjs +3 -3
  123. package/dist/react-native/query-suggestions.mjs +6 -6
  124. package/dist/react-native/sync.mjs +6 -6
  125. package/dist/react-native/synonyms.mjs +6 -6
  126. package/dist/react.d.ts +9 -9
  127. package/dist/{rerank-QHJXPSAK.mjs → rerank-E2HFKKGJ.mjs} +7 -7
  128. package/dist/{resolve-vector-text-4PDRTPNQ.mjs → resolve-vector-text-6WPFFIX5.mjs} +1 -1
  129. package/dist/{restore-queue-5W5HX44H.mjs → restore-queue-PUVBN6L3.mjs} +10 -10
  130. package/dist/{schema-C_7yRJLt.d.ts → schema-CzG9OUw5.d.ts} +5 -1
  131. package/dist/{segment-codec-leaf-7VLVXKWO.mjs → segment-codec-leaf-24Z3MMQI.mjs} +8 -8
  132. package/dist/{segment-merge-leaf-22XR3IGA.mjs → segment-merge-leaf-FQQDU45E.mjs} +8 -8
  133. package/dist/server.d.ts +10 -10
  134. package/dist/server.mjs +26 -26
  135. package/dist/{storage-leaf-ZZ77C3DX.mjs → storage-leaf-KIA7XO6Y.mjs} +79 -81
  136. package/dist/{store-leaf-LJ6D2PMF.mjs → store-leaf-ESVLL4JO.mjs} +9 -9
  137. package/dist/{suggestions-leaf-KTQHO3PY.mjs → suggestions-leaf-FXF4AHAY.mjs} +11 -11
  138. package/dist/sync/filesystem.d.ts +3 -3
  139. package/dist/sync/filesystem.mjs +15 -15
  140. package/dist/sync/indexeddb.browser.mjs +1 -1
  141. package/dist/sync/indexeddb.d.ts +3 -3
  142. package/dist/sync/indexeddb.mjs +2 -2
  143. package/dist/sync.browser.mjs +3 -3
  144. package/dist/sync.d.ts +4 -4
  145. package/dist/sync.mjs +7 -7
  146. package/dist/synonyms.browser.mjs +3 -3
  147. package/dist/synonyms.mjs +7 -7
  148. package/dist/{tasks-CxA-J_Ty.d.ts → tasks-CXtQ3Zpp.d.ts} +4 -4
  149. package/dist/thread-OWXVP2ZA.mjs +30 -0
  150. package/dist/{types-BboB278g.d.ts → types-CDN70Y_C.d.ts} +2 -2
  151. package/dist/vector/search-worker.d.ts +1 -1
  152. package/dist/vector/search-worker.mjs +5 -5
  153. package/dist/{worker-copies-ODAAGQRC.mjs → worker-copies-XXX7PF4J.mjs} +10 -10
  154. package/dist/workers/entry.mjs +13 -13
  155. package/package.json +9 -8
  156. package/dist/thread-XWDK6TAR.mjs +0 -30
  157. /package/dist/{chunk-77AUVDQ5.mjs → chunk-CV3Q2EKO.mjs} +0 -0
@@ -1,45 +1,45 @@
1
- import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES, scheduleSyncRetention } from './chunk-TOZENMM7.mjs';
2
- export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-TOZENMM7.mjs';
3
- import { openPagedSegmentScan, countsAsLatestHolder, buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, admitDurableWrite, chunksOf, requireRestoreMemory, memoryCheckpointStore, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, listPersistedIndexes, removeLeftoverRewriteFiles, unpackIndexSnapshotEnvelope, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, bytesThatSegmentsHoldInMemory, loadSegmentedCheckpoint, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, metadataFromConfig, createDetachedIndex, checkPagedSegmentFully, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, drainIndexStateForUnload, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, metadataPartitionCount, deserializePayloadV1, createSeqOwner, loadMetadata, readSegmentManifest, reclaimUnlistedKeys, writeLiveVectors, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, dropStoredVectorValues, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, growPartitionsTo, createMarkerWriter, metadataConfigOf, durableMetadataConfigOf } from './chunk-D5GNFN6X.mjs';
4
- export { abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, bytesThatSegmentsHoldInMemory, changeIndexAnalysis, checkPagedSegmentFully, countsAsLatestHolder, createByteReader, dropHeldAnalysisChange, executeRebalance, heldAnalysisIsBuilt, holdsNamedSettings, openPagedSegmentScan, releaseHeldAnalysisChange, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout } from './chunk-D5GNFN6X.mjs';
5
- import { openColdVectorField, readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-7OE73OO4.mjs';
6
- export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-7OE73OO4.mjs';
7
- import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, updateIndexSync, requireConfigurationShape, decodeIndexConfiguration } from './chunk-ES5EOXT6.mjs';
8
- export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-ES5EOXT6.mjs';
9
- import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-4CAMH7FO.mjs';
10
- import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-RXMR2SIQ.mjs';
11
- export { readSnapshotArchive } from './chunk-RXMR2SIQ.mjs';
12
- import { createDurableDirectory } from './chunk-TW543F33.mjs';
13
- import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, readSegmentFile, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, removeCheckpointGarbage, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, writeSegmentHeader, readWalSegments, buildEntry } from './chunk-GJKFXKMI.mjs';
14
- export { checkPagedContents, checkPagedSelections, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-GJKFXKMI.mjs';
15
- import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-5P72V66D.mjs';
1
+ import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES, scheduleSyncRetention } from './chunk-XITVDRRH.mjs';
2
+ export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-XITVDRRH.mjs';
3
+ import { openPagedSegmentScan, countsAsLatestHolder, buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, admitDurableWrite, chunksOf, isRecord, nestedSchemaOf, requireRestoreMemory, memoryCheckpointStore, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, listPersistedIndexes, removeLeftoverRewriteFiles, unpackIndexSnapshotEnvelope, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, bytesThatSegmentsHoldInMemory, loadSegmentedCheckpoint, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, metadataFromConfig, requireSavedPartitionCount, createDetachedIndex, checkPagedSegmentFully, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, drainIndexStateForUnload, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, metadataPartitionCount, deserializePayloadV1, createSeqOwner, loadMetadata, readSegmentManifest, reclaimUnlistedKeys, writeLiveVectors, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, dropStoredVectorValues, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, highestPartitionIdOf, growPartitionsTo, createMarkerWriter, metadataConfigOf, durableMetadataConfigOf } from './chunk-7FC2ZILY.mjs';
4
+ export { abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, bytesThatSegmentsHoldInMemory, changeIndexAnalysis, checkPagedSegmentFully, countsAsLatestHolder, createByteReader, dropHeldAnalysisChange, executeRebalance, heldAnalysisIsBuilt, holdsNamedSettings, openPagedSegmentScan, releaseHeldAnalysisChange, requireSavedPartitionCount, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout } from './chunk-7FC2ZILY.mjs';
5
+ import { openColdVectorField, readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-YPV2L7M5.mjs';
6
+ export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-YPV2L7M5.mjs';
7
+ import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, updateIndexSync, requireConfigurationShape, decodeIndexConfiguration } from './chunk-LOQHA6QK.mjs';
8
+ export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-LOQHA6QK.mjs';
9
+ import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-X4UMDSB4.mjs';
10
+ import { readSnapshotArchive, decodeSegmentManifest, isRecord as isRecord$1, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-UISV46WX.mjs';
11
+ export { readSnapshotArchive } from './chunk-UISV46WX.mjs';
12
+ import { createDurableDirectory } from './chunk-34IOOYXA.mjs';
13
+ import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, readSegmentFile, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, removeCheckpointGarbage, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, writeSegmentHeader, readWalSegments, buildEntry } from './chunk-F3FDHXCJ.mjs';
14
+ export { checkPagedContents, checkPagedSelections, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-F3FDHXCJ.mjs';
15
+ import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-ZB5X5WAK.mjs';
16
16
  import './chunk-5FLRXF73.mjs';
17
17
  import './chunk-JDDXV6UF.mjs';
18
- import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-KSOZJEYU.mjs';
18
+ import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-KHJPMZE2.mjs';
19
19
  import { getFs } from './chunk-HLPRHOSO.mjs';
20
20
  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, 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-QDZJM7NI.mjs';
21
- import { encode } from './chunk-77AUVDQ5.mjs';
22
- export { bindStorageHost } from './chunk-77AUVDQ5.mjs';
21
+ import { encode } from './chunk-CV3Q2EKO.mjs';
22
+ export { bindStorageHost } from './chunk-CV3Q2EKO.mjs';
23
23
  import { sha256 } from './chunk-LNGE7SLY.mjs';
24
- import { setNestedValue } from './chunk-QBVTYY4J.mjs';
25
- import { rewriteSpillOf } from './chunk-ZBVHS5KF.mjs';
26
- import { deserializePartition } from './chunk-EI7U43MX.mjs';
27
- import { decodeVectorIndexParts, decodeVectorFilePayload, isDead, bytesToVectors, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-VJOS6MHF.mjs';
28
- export { createHNSWIndex, osqBitsOf } from './chunk-VJOS6MHF.mjs';
24
+ import { setNestedValue } from './chunk-I2WJCRIH.mjs';
25
+ import { rewriteSpillOf } from './chunk-XFOL77WH.mjs';
26
+ import { deserializePartition } from './chunk-R7PLSVK3.mjs';
27
+ import { decodeVectorIndexParts, decodeVectorFilePayload, isDead, bytesToVectors, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, graphPartsOfEarlierPayload, decodeVectorGraphPayload } from './chunk-TNEU32EN.mjs';
28
+ export { createHNSWIndex, osqBitsOf } from './chunk-TNEU32EN.mjs';
29
29
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
30
- import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-GQLOEACG.mjs';
31
- import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, fnv1a, ARRAY_POSITION_GAP, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, toError, decodeStoredDocument, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-EEYDJB4Z.mjs';
30
+ import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-JCWC75NH.mjs';
31
+ import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, fnv1a, ARRAY_POSITION_GAP, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, toError, decodeStoredDocument, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-2C3BXZGA.mjs';
32
32
  import { encodeDocument } from './chunk-KLVMK3R5.mjs';
33
- import './chunk-AB27FWZM.mjs';
33
+ import './chunk-LPRRFCVU.mjs';
34
34
  import { decode } from './chunk-GXCDWLQI.mjs';
35
35
  import { newSyncEpoch } from './chunk-BUMREPLU.mjs';
36
36
  import './chunk-7T4LAYT4.mjs';
37
- import './chunk-JV74RKCY.mjs';
38
- import { flattenSchema, parseVectorDimension, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, MAX_DOCUMENT_NESTING_DEPTH, requireValidFieldTypes } from './chunk-R4CE4IVU.mjs';
37
+ import './chunk-YM2HI5N5.mjs';
38
+ import { flattenSchema, parseVectorDimension, raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, MAX_DOCUMENT_NESTING_DEPTH, requireValidFieldTypes } from './chunk-X5NHWOXT.mjs';
39
39
  import './chunk-U2BKYEC7.mjs';
40
- import { detectRuntime, spawnNodeWorker, resolveWorkerEntry } from './chunk-OUWZKNO3.mjs';
41
- import { STATISTICS_BROADCAST_INTERVAL_MS, turnsAreBudgeted, turnIsSpent, yieldTurn, EXPORT_CHUNK_BYTES, FOREIGN_STATS_TTL_MS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, MAX_IMPORT_REFUSALS_REPORTED, waitOutsideCountedWrite, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-3B775F3C.mjs';
42
- import './chunk-XXWEUXE4.mjs';
40
+ import { detectRuntime, spawnNodeWorker, resolveWorkerEntry } from './chunk-DG6WIEB3.mjs';
41
+ import { STATISTICS_BROADCAST_INTERVAL_MS, turnsAreBudgeted, turnIsSpent, yieldTurn, EXPORT_CHUNK_BYTES, FOREIGN_STATS_TTL_MS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, MAX_IMPORT_REFUSALS_REPORTED, waitOutsideCountedWrite, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-JP77OWMI.mjs';
42
+ import './chunk-D6FYUTFN.mjs';
43
43
  import { MIN_M } from './chunk-ZXX5GZEX.mjs';
44
44
  import { MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-4PY4JYMY.mjs';
45
45
  import { NarsilError, ErrorCodes } from './chunk-Q3ZZH5Z7.mjs';
@@ -2677,7 +2677,8 @@ function countSnapshotBundleDocuments(bundle) {
2677
2677
  }
2678
2678
  async function loadSnapshotBundle(bytes, deps) {
2679
2679
  const bundle = await decodeSnapshotBundle(bytes);
2680
- while (deps.manager.partitionCount < bundle.partitions.length) deps.manager.addPartition();
2680
+ requireSavedPartitionCount(bundle.partitions.length, "snapshot bundle", deps.manager.indexName);
2681
+ deps.manager.growToSavedPartitionCount(bundle.partitions.length);
2681
2682
  if (bundle.partitions.length > 0) deps.manager.trimPartitions(bundle.partitions.length);
2682
2683
  for (let i = 0; i < bundle.partitions.length; i += 1) {
2683
2684
  deps.manager.deserializePartition(i, deserializePayloadV2(bundle.partitions[i]), deserializePartition);
@@ -2697,7 +2698,7 @@ function checkpointOf2(raw) {
2697
2698
  if (!Array.isArray(raw)) return [];
2698
2699
  const result = [];
2699
2700
  for (const entry of raw) {
2700
- if (!isRecord(entry) || !isUint32(entry.partitionId)) continue;
2701
+ if (!isRecord$1(entry) || !isUint32(entry.partitionId)) continue;
2701
2702
  if (!isSequenceNumber(entry.lastSeqNo) || !isSequenceNumber(entry.primaryTerm)) continue;
2702
2703
  result.push({ partitionId: entry.partitionId, lastSeqNo: entry.lastSeqNo, primaryTerm: entry.primaryTerm });
2703
2704
  }
@@ -2710,7 +2711,7 @@ function segmentsOf(raw, partitionId) {
2710
2711
  }
2711
2712
  const seen = /* @__PURE__ */ new Set();
2712
2713
  return raw.map((segment) => {
2713
- if (!isRecord(segment) || !isId(segment.id) || !isUint32(segment.docCount) || !isUint32(segment.tombstoneCount) || !isKey(segment.key) || seen.has(segment.id)) {
2714
+ if (!isRecord$1(segment) || !isId(segment.id) || !isUint32(segment.docCount) || !isUint32(segment.tombstoneCount) || !isKey(segment.key) || seen.has(segment.id)) {
2714
2715
  invalidManifest("has an invalid segment reference", { partitionId });
2715
2716
  }
2716
2717
  seen.add(segment.id);
@@ -2720,7 +2721,7 @@ function segmentsOf(raw, partitionId) {
2720
2721
  function partitionsOf(raw) {
2721
2722
  if (!Array.isArray(raw)) invalidManifest("is missing partition entries");
2722
2723
  return raw.map((entry) => {
2723
- if (!isRecord(entry) || !isUint32(entry.partitionId)) invalidManifest("has a partition without a valid id");
2724
+ if (!isRecord$1(entry) || !isUint32(entry.partitionId)) invalidManifest("has a partition without a valid id");
2724
2725
  const segments = segmentsOf(entry.segments, entry.partitionId);
2725
2726
  const nextSegmentId = entry.nextSegmentId;
2726
2727
  if (!isId(nextSegmentId) || segments.some((segment) => segment.id >= nextSegmentId)) {
@@ -2730,7 +2731,7 @@ function partitionsOf(raw) {
2730
2731
  });
2731
2732
  }
2732
2733
  function vectorFileOf(raw, fieldPath) {
2733
- if (!isRecord(raw) || !isId(raw.id) || !isKey(raw.key)) invalidManifest("has an invalid vector file reference");
2734
+ if (!isRecord$1(raw) || !isId(raw.id) || !isKey(raw.key)) invalidManifest("has an invalid vector file reference");
2734
2735
  const count = raw.count;
2735
2736
  if (!isUint32(count) || count > VECTOR_FILE_MAX_VECTORS) invalidManifest(`gives "${fieldPath}" an invalid count`);
2736
2737
  const dead = raw.dead ?? null;
@@ -2743,7 +2744,7 @@ function vectorsOf(raw) {
2743
2744
  if (raw === void 0 || raw === null) return [];
2744
2745
  if (!Array.isArray(raw)) invalidManifest("has malformed vector references");
2745
2746
  return raw.map((field) => {
2746
- if (!isRecord(field) || typeof field.fieldPath !== "string") invalidManifest("has an invalid vector reference");
2747
+ if (!isRecord$1(field) || typeof field.fieldPath !== "string") invalidManifest("has an invalid vector reference");
2747
2748
  const fieldPath = field.fieldPath;
2748
2749
  if (!isId(field.nextFileId) || !Array.isArray(field.files) || !isId(field.graphGeneration)) {
2749
2750
  invalidManifest(`gives "${fieldPath}" an invalid vector reference`);
@@ -2763,7 +2764,7 @@ function vectorsOf(raw) {
2763
2764
  }
2764
2765
  function decodeEarlierManifest(raw) {
2765
2766
  const schema = raw.schema;
2766
- if (!isRecord(schema)) invalidManifest("is missing its schema");
2767
+ if (!isRecord$1(schema)) invalidManifest("is missing its schema");
2767
2768
  requireValidFieldTypes(schema);
2768
2769
  if (typeof raw.language !== "string") invalidManifest("is missing its language");
2769
2770
  return {
@@ -3146,9 +3147,7 @@ async function readGraph(store, ref) {
3146
3147
  what: `graph file "${ref.graphKey}"`,
3147
3148
  allowsCompression: true
3148
3149
  });
3149
- const graph = decodeVectorGraphPayload(decode(payload));
3150
- if (graph.graphs.some((numbered) => numbered.m < MIN_M)) return null;
3151
- return graphPartsOfEarlierPayload(graph);
3150
+ return graphPartsOfEarlierPayload(decodeVectorGraphPayload(decode(payload)));
3152
3151
  }
3153
3152
  async function loadVectorField(store, ref, vectorIndex, fileRefs) {
3154
3153
  let liveVectors = 0;
@@ -3193,21 +3192,10 @@ async function loadVectorField(store, ref, vectorIndex, fileRefs) {
3193
3192
  restore.finish();
3194
3193
  }
3195
3194
  async function loadEarlierLayout(store, indexName, manifest, deps) {
3196
- let highestPartitionId = manifest.partitions.length - 1;
3197
- for (const partition of manifest.partitions) {
3198
- if (partition.partitionId > highestPartitionId) highestPartitionId = partition.partitionId;
3199
- }
3195
+ const highestPartitionId = highestPartitionIdOf(manifest.partitions);
3196
+ requireSavedPartitionCount(highestPartitionId + 1, "earlier segment manifest", indexName);
3200
3197
  growPartitionsTo(deps.manager, highestPartitionId);
3201
- for (const partition of manifest.partitions) {
3202
- if (partition.partitionId >= deps.manager.partitionCount) {
3203
- throw new NarsilError(
3204
- ErrorCodes.PERSISTENCE_LOAD_FAILED,
3205
- `Segment manifest references partition ${partition.partitionId} beyond the partition count ${deps.manager.partitionCount}`,
3206
- { indexName, partitionId: partition.partitionId }
3207
- );
3208
- }
3209
- await loadPartition(store, indexName, partition, deps);
3210
- }
3198
+ for (const partition of manifest.partitions) await loadPartition(store, indexName, partition, deps);
3211
3199
  const vectorFileRefs = /* @__PURE__ */ new Map();
3212
3200
  for (const vector of manifest.vectors) {
3213
3201
  const vectorIndex = deps.vectorIndexes.get(vector.fieldPath);
@@ -4777,7 +4765,7 @@ function refuse(path, reason) {
4777
4765
  field: path
4778
4766
  });
4779
4767
  }
4780
- function isRecord2(value) {
4768
+ function isRecord3(value) {
4781
4769
  return typeof value === "object" && value !== null && !Array.isArray(value);
4782
4770
  }
4783
4771
  function startsWithTagPrefix(key) {
@@ -4844,7 +4832,7 @@ function untagTag(tag, value, path, depth) {
4844
4832
  case NUMBER_TAG:
4845
4833
  return numberOf(value, path);
4846
4834
  case OBJECT_TAG:
4847
- if (!isRecord2(value)) refuse(path, `holds an "${OBJECT_TAG}" tag whose value is not an object`);
4835
+ if (!isRecord3(value)) refuse(path, `holds an "${OBJECT_TAG}" tag whose value is not an object`);
4848
4836
  return untagMap(value, path, depth);
4849
4837
  default:
4850
4838
  return refuse(path, `holds an object whose only key, "${tag}", names no tag`);
@@ -4868,9 +4856,6 @@ var DOCUMENT_EXPORT_VERSION = 1;
4868
4856
  function invalidHeader(message) {
4869
4857
  throw new NarsilError(ErrorCodes.CONFIG_INVALID, `The document export header ${message}`);
4870
4858
  }
4871
- function isRecord3(value) {
4872
- return typeof value === "object" && value !== null && !Array.isArray(value);
4873
- }
4874
4859
  function configOfHeader(line) {
4875
4860
  if (line === void 0) invalidHeader("is missing");
4876
4861
  if (!("text" in line)) {
@@ -4884,14 +4869,14 @@ function configOfHeader(line) {
4884
4869
  } catch {
4885
4870
  invalidHeader("is not JSON");
4886
4871
  }
4887
- if (!isRecord3(raw) || raw.format !== DOCUMENT_EXPORT_FORMAT || raw.version !== DOCUMENT_EXPORT_VERSION) {
4872
+ if (!isRecord(raw) || raw.format !== DOCUMENT_EXPORT_FORMAT || raw.version !== DOCUMENT_EXPORT_VERSION) {
4888
4873
  invalidHeader(`must name format "${DOCUMENT_EXPORT_FORMAT}" and version ${DOCUMENT_EXPORT_VERSION}`);
4889
4874
  }
4890
4875
  const configuration = requireConfigurationShape(raw.index, "document export header");
4891
4876
  const fields = restoredConfigFields(configuration, (message) => invalidHeader(message));
4892
4877
  const embedding = restoredEmbedding(configuration.embedding, (message) => invalidHeader(message));
4893
4878
  return {
4894
- schema: configuration.schema,
4879
+ schema: nestedSchemaOf(configuration.schema),
4895
4880
  language: configuration.language,
4896
4881
  ...fields,
4897
4882
  ...embedding === void 0 ? {} : {
@@ -4977,7 +4962,7 @@ async function takeLine(state, entry) {
4977
4962
  refuse2(state, entry.line, ErrorCodes.DOC_VALIDATION_FAILED, "The line is not JSON");
4978
4963
  return;
4979
4964
  }
4980
- if (!isRecord3(document) || typeof document.id !== "string" || document.id.length === 0) {
4965
+ if (!isRecord(document) || typeof document.id !== "string" || document.id.length === 0) {
4981
4966
  refuse2(state, entry.line, ErrorCodes.DOC_VALIDATION_FAILED, "The line holds no document with a string id");
4982
4967
  return;
4983
4968
  }
@@ -5409,7 +5394,7 @@ function prepareRestoredIndex(configuration, deps, reject) {
5409
5394
  const embedding = restoredEmbedding(configuration.embedding, reject);
5410
5395
  const languageName = configuration.language ?? "";
5411
5396
  const language = getLanguage(languageName);
5412
- const schema = validateSchema(configuration.schema);
5397
+ const schema = validateSchema(nestedSchemaOf(configuration.schema));
5413
5398
  validatePatternValueLimit(configFields.patternValueLimit);
5414
5399
  requireSurfaceFormsForPartialFields(schema, configFields.surfaceForms);
5415
5400
  validateVectorPromotion(configFields.vectorPromotion);
@@ -5459,17 +5444,17 @@ function restoredSynonyms(raw, config, language, reject) {
5459
5444
  return prepareStoredSynonyms(raw, config, language, (message) => reject(`synonyms: ${message}`));
5460
5445
  }
5461
5446
  async function prepareDetachedIndex(indexName, prepared, partitionCount, deps) {
5462
- const loadingSchemaCode = loadSchemaCodeFor(prepared.config.schema);
5447
+ if (partitionCount !== null) requireSavedPartitionCount(partitionCount, "snapshot", indexName);
5448
+ const loadingSchemaCode = loadSchemaCodeFor(prepared.config.schema, prepared.config.tokenizer);
5463
5449
  if (loadingSchemaCode !== null) await loadingSchemaCode;
5464
- const detached = createDetachedIndex(
5450
+ return createDetachedIndex(
5465
5451
  indexName,
5466
5452
  prepared.config,
5467
5453
  prepared.language,
5468
5454
  prepared.synonyms?.lookup ?? null,
5469
- deps.executor
5455
+ deps.executor,
5456
+ partitionCount ?? void 0
5470
5457
  );
5471
- while (detached.manager.partitionCount < partitionCount) detached.manager.addPartition();
5472
- return detached;
5473
5458
  }
5474
5459
  function restoredRegistryEntry(prepared, manager, deps) {
5475
5460
  return {
@@ -5547,30 +5532,42 @@ function persistedCheckpoint(indexName, partitionCount, deps) {
5547
5532
  primaryTerm: SINGLE_NODE_PRIMARY_TERM
5548
5533
  }));
5549
5534
  }
5550
- async function commitToStorage(indexName, restored, previousPartitions, deps) {
5535
+ function pagedSegmentsOf(manager) {
5536
+ const paged = [];
5537
+ if (manager === void 0) return paged;
5538
+ for (let partitionId = 0; partitionId < manager.partitionCount; partitionId++) {
5539
+ const partition = manager.getPartition(partitionId);
5540
+ if (!isCompositePartition(partition)) continue;
5541
+ for (const segment of partition.frozenSegments()) if (segment.paged !== null) paged.push(segment.paged);
5542
+ }
5543
+ return paged;
5544
+ }
5545
+ function samePath(path) {
5546
+ return path;
5547
+ }
5548
+ async function commitToStorage(indexName, restored, previous, deps) {
5551
5549
  const durable = deps.durability?.manager;
5552
5550
  const staging = restored.staging;
5553
5551
  if (durable === void 0 || staging === null) return;
5554
- const previous = persistedCheckpoint(indexName, previousPartitions, deps);
5552
+ const previousPartitions = previous?.partitionCount ?? 0;
5553
+ const previousCheckpoint = persistedCheckpoint(indexName, previousPartitions, deps);
5555
5554
  if (previousPartitions > 0) await durable.unloadIndex(indexName);
5556
5555
  const vectorIndexes = [...restored.detached.manager.getVectorIndexes().values()];
5557
5556
  try {
5558
5557
  for (const vectorIndex of vectorIndexes) await vectorIndex.releaseVectorFiles();
5559
5558
  await staging.commit();
5560
5559
  } catch (error) {
5561
- if (previousPartitions > 0) durable.adoptRestoredCheckpoint?.(indexName, previous);
5560
+ if (previousPartitions > 0) durable.adoptRestoredCheckpoint?.(indexName, previousCheckpoint);
5562
5561
  throw error;
5563
5562
  }
5563
+ for (const paged of pagedSegmentsOf(previous)) paged.close();
5564
+ const restoredSegments = pagedSegmentsOf(restored.detached.manager);
5565
+ for (const paged of restoredSegments) paged.suspend();
5564
5566
  await staging.finish();
5565
5567
  const relocate = await staging.relocation().catch(() => null);
5568
+ for (const paged of restoredSegments) paged.resume(relocate ?? samePath);
5566
5569
  if (relocate === null) return;
5567
5570
  for (const vectorIndex of vectorIndexes) vectorIndex.relocateVectorFiles(relocate);
5568
- const { manager } = restored.detached;
5569
- for (let partitionId = 0; partitionId < manager.partitionCount; partitionId++) {
5570
- const partition = manager.getPartition(partitionId);
5571
- if (!isCompositePartition(partition)) continue;
5572
- for (const segment of partition.frozenSegments()) segment.paged?.relocate(relocate);
5573
- }
5574
5571
  }
5575
5572
  function activate(indexName, restored, entry, deps) {
5576
5573
  deps.executor.installDetachedIndex(restored.detached);
@@ -5600,7 +5597,7 @@ async function replaceExisting(indexName, restored, entry, deps) {
5600
5597
  const vectorIndexes = previous === void 0 ? [] : vectorIndexesOf2(indexName, deps);
5601
5598
  await withinLimit(indexName, release, holdVectorCopies(vectorIndexes, release), deps);
5602
5599
  for (const vectorIndex of vectorIndexes) await vectorIndex.releaseVectorFiles();
5603
- await commitToStorage(indexName, restored, previous?.partitionCount ?? 0, deps);
5600
+ await commitToStorage(indexName, restored, previous, deps);
5604
5601
  if (previous === void 0) activate(indexName, restored, entry, deps);
5605
5602
  else await previous.publication.write(() => activate(indexName, restored, entry, deps));
5606
5603
  await deps.querySuggestions?.afterActivate(entry);
@@ -5616,7 +5613,7 @@ async function createFresh(indexName, restored, entry, deps) {
5616
5613
  deps.indexRegistry.set(indexName, entry);
5617
5614
  try {
5618
5615
  await deps.indexState.registerReplacing(indexName, async () => {
5619
- await commitToStorage(indexName, restored, 0, deps);
5616
+ await commitToStorage(indexName, restored, void 0, deps);
5620
5617
  activate(indexName, restored, entry, deps);
5621
5618
  await deps.querySuggestions?.afterActivate(entry);
5622
5619
  });
@@ -5887,7 +5884,8 @@ async function stageBuiltIndex(indexName, prepared, built, staging, deps) {
5887
5884
  return archive.manifest;
5888
5885
  }
5889
5886
  async function buildRestoredIndex(indexName, envelope, prepared, staging, deps) {
5890
- const built = await prepareDetachedIndex(indexName, prepared, envelope.partitions?.length ?? 0, deps);
5887
+ const savedPartitions = envelope.partitions?.length ?? 0;
5888
+ const built = await prepareDetachedIndex(indexName, prepared, savedPartitions > 0 ? savedPartitions : null, deps);
5891
5889
  let manifest;
5892
5890
  try {
5893
5891
  insertSnapshotDocuments(envelope, built.manager);
@@ -1,18 +1,18 @@
1
- export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-STLNPJXU.mjs';
1
+ export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-YXZDTKQS.mjs';
2
2
  export { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
3
- export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-GQLOEACG.mjs';
4
- import './chunk-EEYDJB4Z.mjs';
3
+ export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-JCWC75NH.mjs';
4
+ import './chunk-2C3BXZGA.mjs';
5
5
  import './chunk-KLVMK3R5.mjs';
6
- import './chunk-AB27FWZM.mjs';
6
+ import './chunk-LPRRFCVU.mjs';
7
7
  import './chunk-GXCDWLQI.mjs';
8
8
  import './chunk-BUMREPLU.mjs';
9
9
  import './chunk-7T4LAYT4.mjs';
10
- import './chunk-JV74RKCY.mjs';
11
- import './chunk-R4CE4IVU.mjs';
10
+ import './chunk-YM2HI5N5.mjs';
11
+ import './chunk-X5NHWOXT.mjs';
12
12
  import './chunk-U2BKYEC7.mjs';
13
- import './chunk-OUWZKNO3.mjs';
14
- import './chunk-3B775F3C.mjs';
15
- import './chunk-XXWEUXE4.mjs';
13
+ import './chunk-DG6WIEB3.mjs';
14
+ import './chunk-JP77OWMI.mjs';
15
+ import './chunk-D6FYUTFN.mjs';
16
16
  import './chunk-ZXX5GZEX.mjs';
17
17
  import './chunk-4PY4JYMY.mjs';
18
18
  import './chunk-Q3ZZH5Z7.mjs';
@@ -1,20 +1,20 @@
1
- import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-BKOMO7HT.mjs';
2
- export { bindSuggestionsHost } from './chunk-NXMGUDZA.mjs';
3
- import { installSuggestionHooks } from './chunk-STLNPJXU.mjs';
1
+ import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-26E5MO3Y.mjs';
2
+ export { bindSuggestionsHost } from './chunk-2KWTQ2P7.mjs';
3
+ import { installSuggestionHooks } from './chunk-YXZDTKQS.mjs';
4
4
  import './chunk-V6EUBAIT.mjs';
5
- import { attachedRuntimeOf, attachRuntime } from './chunk-GQLOEACG.mjs';
6
- import './chunk-EEYDJB4Z.mjs';
5
+ import { attachedRuntimeOf, attachRuntime } from './chunk-JCWC75NH.mjs';
6
+ import './chunk-2C3BXZGA.mjs';
7
7
  import './chunk-KLVMK3R5.mjs';
8
- import './chunk-AB27FWZM.mjs';
8
+ import './chunk-LPRRFCVU.mjs';
9
9
  import './chunk-GXCDWLQI.mjs';
10
10
  import './chunk-BUMREPLU.mjs';
11
11
  import './chunk-7T4LAYT4.mjs';
12
- import './chunk-JV74RKCY.mjs';
13
- import './chunk-R4CE4IVU.mjs';
12
+ import './chunk-YM2HI5N5.mjs';
13
+ import './chunk-X5NHWOXT.mjs';
14
14
  import './chunk-U2BKYEC7.mjs';
15
- import './chunk-OUWZKNO3.mjs';
16
- import './chunk-3B775F3C.mjs';
17
- import './chunk-XXWEUXE4.mjs';
15
+ import './chunk-DG6WIEB3.mjs';
16
+ import './chunk-JP77OWMI.mjs';
17
+ import './chunk-D6FYUTFN.mjs';
18
18
  import './chunk-ZXX5GZEX.mjs';
19
19
  import './chunk-4PY4JYMY.mjs';
20
20
  import './chunk-Q3ZZH5Z7.mjs';
@@ -1,7 +1,7 @@
1
- import { d as DeviceSyncStore } from '../types-BboB278g.js';
2
- import '../engine-DdOs682x.js';
1
+ import { d as DeviceSyncStore } from '../types-CDN70Y_C.js';
2
+ import '../engine-P-4xhUe4.js';
3
3
  import '../adapters-pljAqmrC.js';
4
- import '../schema-C_7yRJLt.js';
4
+ import '../schema-CzG9OUw5.js';
5
5
  import '../synonyms-CpOAHPa-.js';
6
6
  import '../query-suggestions-CBYkrQ5T.js';
7
7
 
@@ -1,28 +1,28 @@
1
- import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-S3BSDBF7.mjs';
1
+ import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-QJGDB3WR.mjs';
2
2
  import { createSerial, QUEUE_COMPACTION_BYTES, DOWNLOAD_FRAME_BYTES, STORE_FRAME_LIMIT_BYTES } from '../chunk-6MSZ543Y.mjs';
3
- import { createDurableDirectory } from '../chunk-TW543F33.mjs';
3
+ import { createDurableDirectory } from '../chunk-34IOOYXA.mjs';
4
4
  import '../chunk-HLPRHOSO.mjs';
5
5
  import '../chunk-QDZJM7NI.mjs';
6
- import '../chunk-77AUVDQ5.mjs';
6
+ import '../chunk-CV3Q2EKO.mjs';
7
7
  import '../chunk-LNGE7SLY.mjs';
8
- import '../chunk-QBVTYY4J.mjs';
9
- import '../chunk-ZBVHS5KF.mjs';
10
- import '../chunk-EI7U43MX.mjs';
11
- import '../chunk-VJOS6MHF.mjs';
8
+ import '../chunk-I2WJCRIH.mjs';
9
+ import '../chunk-XFOL77WH.mjs';
10
+ import '../chunk-R7PLSVK3.mjs';
11
+ import '../chunk-TNEU32EN.mjs';
12
12
  import '../chunk-V6EUBAIT.mjs';
13
- import { crc32 } from '../chunk-GQLOEACG.mjs';
14
- import '../chunk-EEYDJB4Z.mjs';
13
+ import { crc32 } from '../chunk-JCWC75NH.mjs';
14
+ import '../chunk-2C3BXZGA.mjs';
15
15
  import '../chunk-KLVMK3R5.mjs';
16
- import '../chunk-AB27FWZM.mjs';
16
+ import '../chunk-LPRRFCVU.mjs';
17
17
  import '../chunk-GXCDWLQI.mjs';
18
18
  import '../chunk-BUMREPLU.mjs';
19
19
  import '../chunk-7T4LAYT4.mjs';
20
- import '../chunk-JV74RKCY.mjs';
21
- import { loadMessagePack } from '../chunk-R4CE4IVU.mjs';
20
+ import '../chunk-YM2HI5N5.mjs';
21
+ import { loadMessagePack } from '../chunk-X5NHWOXT.mjs';
22
22
  import '../chunk-U2BKYEC7.mjs';
23
- import '../chunk-OUWZKNO3.mjs';
24
- import '../chunk-3B775F3C.mjs';
25
- import '../chunk-XXWEUXE4.mjs';
23
+ import '../chunk-DG6WIEB3.mjs';
24
+ import '../chunk-JP77OWMI.mjs';
25
+ import '../chunk-D6FYUTFN.mjs';
26
26
  import '../chunk-ZXX5GZEX.mjs';
27
27
  import '../chunk-4PY4JYMY.mjs';
28
28
  import { NarsilError, ErrorCodes } from '../chunk-Q3ZZH5Z7.mjs';
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../browser/chunk-WC2DEXWU.mjs';
2
2
  import { isSyncEpoch } from '../browser/chunk-YJHGOJAC.mjs';
3
- import { loadMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack } from '../browser/chunk-MZHQ65VI.mjs';
3
+ import { loadMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack } from '../browser/chunk-2Q45HI5H.mjs';
4
4
 
5
5
  // src/sync/device/stores/indexeddb-requests.ts
6
6
  var META_STORE = "meta";
@@ -1,7 +1,7 @@
1
- import { d as DeviceSyncStore } from '../types-BboB278g.js';
2
- import '../engine-DdOs682x.js';
1
+ import { d as DeviceSyncStore } from '../types-CDN70Y_C.js';
2
+ import '../engine-P-4xhUe4.js';
3
3
  import '../adapters-pljAqmrC.js';
4
- import '../schema-C_7yRJLt.js';
4
+ import '../schema-CzG9OUw5.js';
5
5
  import '../synonyms-CpOAHPa-.js';
6
6
  import '../query-suggestions-CBYkrQ5T.js';
7
7
 
@@ -1,7 +1,7 @@
1
- import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-S3BSDBF7.mjs';
1
+ import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-QJGDB3WR.mjs';
2
2
  import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../chunk-6MSZ543Y.mjs';
3
3
  import '../chunk-BUMREPLU.mjs';
4
- import { loadMessagePack } from '../chunk-R4CE4IVU.mjs';
4
+ import { loadMessagePack } from '../chunk-X5NHWOXT.mjs';
5
5
  import '../chunk-ZXX5GZEX.mjs';
6
6
  import '../chunk-4PY4JYMY.mjs';
7
7
  import { NarsilError, ErrorCodes } from '../chunk-Q3ZZH5Z7.mjs';
@@ -1,8 +1,8 @@
1
1
  import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './browser/chunk-WC2DEXWU.mjs';
2
- import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-KQXKCMGQ.mjs';
3
- import './browser/chunk-MMHIIL5B.mjs';
2
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-JHFBQKUF.mjs';
3
+ import './browser/chunk-4ZICWS4V.mjs';
4
4
  import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
5
- import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema, ServerErrorCodes, describeError } from './browser/chunk-MZHQ65VI.mjs';
5
+ import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema, ServerErrorCodes, describeError } from './browser/chunk-2Q45HI5H.mjs';
6
6
 
7
7
  // src/json-encoding.ts
8
8
  function toPlainNumbers(key, value) {
package/dist/sync.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { D as DeviceSyncOptions, a as DeviceSync } from './types-BboB278g.js';
2
- export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-BboB278g.js';
3
- import './engine-DdOs682x.js';
1
+ import { D as DeviceSyncOptions, a as DeviceSync } from './types-CDN70Y_C.js';
2
+ export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-CDN70Y_C.js';
3
+ import './engine-P-4xhUe4.js';
4
4
  import './adapters-pljAqmrC.js';
5
- import './schema-C_7yRJLt.js';
5
+ import './schema-CzG9OUw5.js';
6
6
  import './synonyms-CpOAHPa-.js';
7
7
  import './query-suggestions-CBYkrQ5T.js';
8
8
 
package/dist/sync.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, encodeJson, SYNC_SUBPROTOCOL, decodeScore } from './chunk-FETZYCH7.mjs';
2
2
  import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './chunk-6MSZ543Y.mjs';
3
- import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-EEYDJB4Z.mjs';
3
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-2C3BXZGA.mjs';
4
4
  import './chunk-KLVMK3R5.mjs';
5
- import './chunk-AB27FWZM.mjs';
5
+ import './chunk-LPRRFCVU.mjs';
6
6
  import './chunk-GXCDWLQI.mjs';
7
7
  import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
8
8
  import './chunk-7T4LAYT4.mjs';
9
- import './chunk-JV74RKCY.mjs';
10
- import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-R4CE4IVU.mjs';
9
+ import './chunk-YM2HI5N5.mjs';
10
+ import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-X5NHWOXT.mjs';
11
11
  import './chunk-U2BKYEC7.mjs';
12
- import './chunk-OUWZKNO3.mjs';
13
- import './chunk-3B775F3C.mjs';
14
- import './chunk-XXWEUXE4.mjs';
12
+ import './chunk-DG6WIEB3.mjs';
13
+ import './chunk-JP77OWMI.mjs';
14
+ import './chunk-D6FYUTFN.mjs';
15
15
  import './chunk-ZXX5GZEX.mjs';
16
16
  import './chunk-4PY4JYMY.mjs';
17
17
  import { NarsilError, ErrorCodes, ClientErrorCodes, ServerErrorCodes, describeError } from './chunk-Q3ZZH5Z7.mjs';
@@ -1,7 +1,7 @@
1
- import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-KQXKCMGQ.mjs';
2
- import { storedText } from './browser/chunk-MMHIIL5B.mjs';
1
+ import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-JHFBQKUF.mjs';
2
+ import { storedText } from './browser/chunk-4ZICWS4V.mjs';
3
3
  import './browser/chunk-YJHGOJAC.mjs';
4
- import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-MZHQ65VI.mjs';
4
+ import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-2Q45HI5H.mjs';
5
5
 
6
6
  // src/core/synonyms/combined-postings.ts
7
7
  var NO_DELETED = { size: 0, has: () => false };
package/dist/synonyms.mjs CHANGED
@@ -1,15 +1,15 @@
1
- import { synonymSearchModule } from './chunk-EEYDJB4Z.mjs';
1
+ import { synonymSearchModule } from './chunk-2C3BXZGA.mjs';
2
2
  import './chunk-KLVMK3R5.mjs';
3
- import './chunk-AB27FWZM.mjs';
3
+ import './chunk-LPRRFCVU.mjs';
4
4
  import './chunk-GXCDWLQI.mjs';
5
5
  import './chunk-BUMREPLU.mjs';
6
6
  import './chunk-7T4LAYT4.mjs';
7
- import './chunk-JV74RKCY.mjs';
8
- import './chunk-R4CE4IVU.mjs';
7
+ import './chunk-YM2HI5N5.mjs';
8
+ import './chunk-X5NHWOXT.mjs';
9
9
  import './chunk-U2BKYEC7.mjs';
10
- import './chunk-OUWZKNO3.mjs';
11
- import './chunk-3B775F3C.mjs';
12
- import './chunk-XXWEUXE4.mjs';
10
+ import './chunk-DG6WIEB3.mjs';
11
+ import './chunk-JP77OWMI.mjs';
12
+ import './chunk-D6FYUTFN.mjs';
13
13
  import './chunk-ZXX5GZEX.mjs';
14
14
  import './chunk-4PY4JYMY.mjs';
15
15
  import './chunk-Q3ZZH5Z7.mjs';
@@ -1,8 +1,8 @@
1
- import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-ZZg4cwQz.js';
2
- import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-Ck9w5WHz.js';
1
+ import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-CIpLXXxm.js';
2
+ import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-CBUl4z3E.js';
3
3
  import { a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
4
- import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-DdOs682x.js';
5
- import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-C_7yRJLt.js';
4
+ import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-P-4xhUe4.js';
5
+ import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-CzG9OUw5.js';
6
6
  import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
7
7
 
8
8
  /**