@delali/narsil 0.3.1-next.195 → 0.3.1-next.197

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 (104) hide show
  1. package/dist/browser/{chunk-UHJHOEMY.mjs → chunk-XD3WJ25T.mjs} +5 -5
  2. package/dist/browser/{optional-writes-J5BHKEQL.mjs → optional-writes-76DWMRQH.mjs} +35 -0
  3. package/dist/browser/{storage-leaf-N3JMQ6CF.mjs → storage-leaf-5UTR5K7J.mjs} +73 -44
  4. package/dist/{capabilities-CLnQHIqV.d.ts → capabilities-B5lsGETP.d.ts} +2 -2
  5. package/dist/{chunk-RWJQ3XU7.mjs → chunk-2HZ3ZNL4.mjs} +1 -1
  6. package/dist/{chunk-ZVJPJZIP.mjs → chunk-3LQ6C3H6.mjs} +1 -1
  7. package/dist/{chunk-3Y3QYL6Q.mjs → chunk-3VI4BSE2.mjs} +2 -2
  8. package/dist/{chunk-Y3T4HQGT.mjs → chunk-4H44U3EK.mjs} +2 -2
  9. package/dist/{chunk-QIMI4O6R.mjs → chunk-57N7OIXT.mjs} +5 -5
  10. package/dist/{chunk-UPDNNOTG.mjs → chunk-5EI5CXO6.mjs} +3 -1
  11. package/dist/{chunk-VSLFZDVA.mjs → chunk-6R2CWCKV.mjs} +3 -3
  12. package/dist/{chunk-P3JMBYEG.mjs → chunk-ANZQUMXO.mjs} +3 -3
  13. package/dist/{chunk-UP5TJ3II.mjs → chunk-AXX7CSFV.mjs} +2 -2
  14. package/dist/{chunk-YYNLEWSP.mjs → chunk-CXUBNJMW.mjs} +6 -6
  15. package/dist/{chunk-5IXLDFKK.mjs → chunk-EM4CXG25.mjs} +2 -2
  16. package/dist/{chunk-5WN5TOPY.mjs → chunk-HQCQPOBP.mjs} +1 -1
  17. package/dist/{chunk-ZS2YUB2L.mjs → chunk-IZXDYPLB.mjs} +2 -2
  18. package/dist/{chunk-BBSLCYJM.mjs → chunk-J6B57IET.mjs} +1 -1
  19. package/dist/{chunk-AH5J62FF.mjs → chunk-J777QLZN.mjs} +2 -2
  20. package/dist/{chunk-5SLAXEVJ.mjs → chunk-JA6NCMYV.mjs} +21 -5
  21. package/dist/{chunk-AOYQTX6W.mjs → chunk-JDVLZUKE.mjs} +2 -2
  22. package/dist/{chunk-KRCP4W26.mjs → chunk-JVZFCFDN.mjs} +1 -1
  23. package/dist/{chunk-I2FKNCDS.mjs → chunk-JZCWNKL2.mjs} +118 -31
  24. package/dist/{chunk-VPOPC7JA.mjs → chunk-M2LTO64S.mjs} +2 -2
  25. package/dist/{chunk-SCZI7COG.mjs → chunk-OJ7KOWSW.mjs} +1 -1
  26. package/dist/{chunk-KBU3ZFJN.mjs → chunk-R724DJSG.mjs} +1 -1
  27. package/dist/{chunk-KDLH3BWY.mjs → chunk-SBJ4W7O4.mjs} +1 -1
  28. package/dist/{chunk-DU5HRFLQ.mjs → chunk-SKEBGNOX.mjs} +2 -2
  29. package/dist/{chunk-OICMFLQF.mjs → chunk-SR54PLRE.mjs} +14 -14
  30. package/dist/{chunk-DKTRJCPP.mjs → chunk-SU6KDH3L.mjs} +5 -5
  31. package/dist/{chunk-KYVJPISW.mjs → chunk-UKYJXML2.mjs} +5 -5
  32. package/dist/{chunk-WORMC6FN.mjs → chunk-WMJUZKPT.mjs} +1 -1
  33. package/dist/{chunk-ZV25WJNK.mjs → chunk-WXLDFCYT.mjs} +1 -1
  34. package/dist/{chunk-MQMZ25D7.mjs → chunk-ZIMKME6P.mjs} +3 -3
  35. package/dist/{chunk-RORNUNXW.mjs → chunk-ZVUEH2JS.mjs} +1 -1
  36. package/dist/{client-uB0kp2yT.d.ts → client-Cdz3YK_X.d.ts} +2 -2
  37. package/dist/client.d.ts +5 -5
  38. package/dist/{config-BvHQ-C7U.d.ts → config-CazZHGDa.d.ts} +13 -10
  39. package/dist/{core-leaf-TAR3GJVE.mjs → core-leaf-6JVHEVFB.mjs} +2 -2
  40. package/dist/{direct-executor-YDIA6FU5.mjs → direct-executor-5J2T5XFW.mjs} +4 -4
  41. package/dist/distribution/coordinator/etcd.d.ts +1 -1
  42. package/dist/distribution/coordinator/in-memory.d.ts +1 -1
  43. package/dist/distribution.d.ts +4 -4
  44. package/dist/distribution.mjs +29 -29
  45. package/dist/{index-BaQIAnk0.d.ts → index-B_vmxpgW.d.ts} +9 -4
  46. package/dist/index.browser.mjs +1 -1
  47. package/dist/index.mjs +4 -4
  48. package/dist/index.react-native.mjs +3 -3
  49. package/dist/{long-query-thread-4E6J6WME.mjs → long-query-thread-7IF2INYK.mjs} +14 -14
  50. package/dist/{module-UQFIJQMG.mjs → module-KLBY3HCR.mjs} +7 -7
  51. package/dist/{optional-writes-H6WO6E6B.mjs → optional-writes-NI3YJGNG.mjs} +6 -6
  52. package/dist/{paged-partition-archive-O3RUZ3II.mjs → paged-partition-archive-B3RVFKHP.mjs} +13 -13
  53. package/dist/partial-words.browser.mjs +1 -1
  54. package/dist/partial-words.mjs +4 -4
  55. package/dist/persistence/durability/checkpoint-worker.mjs +12 -12
  56. package/dist/{query-actions-UTAYIRGP.mjs → query-actions-QK33MJBK.mjs} +4 -4
  57. package/dist/query-suggestions/merge-worker.mjs +7 -7
  58. package/dist/query-suggestions.browser.mjs +1 -1
  59. package/dist/query-suggestions.mjs +5 -5
  60. package/dist/react-native/chunks/{chunk-AN4HKLB4.mjs → chunk-3NHQ3CGV.mjs} +1 -1
  61. package/dist/react-native/chunks/{chunk-JZCEJO3N.mjs → chunk-KPF6KEQJ.mjs} +1 -1
  62. package/dist/react-native/chunks/{chunk-GJQIMGXT.mjs → chunk-PPS5E3XI.mjs} +1 -1
  63. package/dist/react-native/chunks/{chunk-5KRTKOH6.mjs → chunk-YLLHNLW7.mjs} +1 -1
  64. package/dist/react-native/chunks/{chunk-2S57X2ZY.mjs → chunk-ZJAOGFBT.mjs} +58 -23
  65. package/dist/react-native/chunks/{chunk-3OHO4SEF.mjs → chunk-ZKAHFCZT.mjs} +2 -2
  66. package/dist/react-native/chunks/{chunk-UEBUWCYN.mjs → chunk-ZO3RYBYX.mjs} +1 -1
  67. package/dist/react-native/chunks/{core-leaf-5PVST5PR.mjs → core-leaf-BIVBQRER.mjs} +1 -1
  68. package/dist/react-native/chunks/{module-QRCYB7QV.mjs → module-7D4CEFXK.mjs} +3 -3
  69. package/dist/react-native/chunks/{optional-writes-LG24CKDY.mjs → optional-writes-5F4IH6QN.mjs} +4 -4
  70. package/dist/react-native/chunks/{restore-queue-6BL75XHS.mjs → restore-queue-ZGDYH567.mjs} +6 -6
  71. package/dist/react-native/chunks/{segment-codec-leaf-OFY6JAIV.mjs → segment-codec-leaf-VSKJBVWY.mjs} +4 -4
  72. package/dist/react-native/chunks/{segment-merge-leaf-S2EGW7J7.mjs → segment-merge-leaf-ZQGIQVA5.mjs} +5 -5
  73. package/dist/react-native/chunks/{storage-leaf-SWCGMIES.mjs → storage-leaf-S6UTUUER.mjs} +79 -50
  74. package/dist/react-native/chunks/{store-leaf-PK2G37EL.mjs → store-leaf-JGKMH427.mjs} +5 -5
  75. package/dist/react-native/chunks/{suggestions-leaf-MJXF4PPT.mjs → suggestions-leaf-OIZIMHBE.mjs} +5 -5
  76. package/dist/react-native/chunks/{worker-copies-PCLN3TVS.mjs → worker-copies-M4VYL4RP.mjs} +4 -4
  77. package/dist/react-native/partial-words.mjs +3 -3
  78. package/dist/react-native/query-suggestions.mjs +3 -3
  79. package/dist/react-native/sync.mjs +3 -3
  80. package/dist/react-native/synonyms.mjs +3 -3
  81. package/dist/react.d.ts +5 -5
  82. package/dist/{rerank-FQU2Z64X.mjs → rerank-GJVKHEJE.mjs} +4 -4
  83. package/dist/{restore-queue-4OM3MMJ7.mjs → restore-queue-UG3JV6AH.mjs} +7 -7
  84. package/dist/{segment-codec-leaf-ZJL3UUED.mjs → segment-codec-leaf-RZOSU5F3.mjs} +5 -5
  85. package/dist/{segment-merge-leaf-VDQ7BLE7.mjs → segment-merge-leaf-YPKP5MQX.mjs} +5 -5
  86. package/dist/server.d.ts +6 -6
  87. package/dist/server.mjs +19 -19
  88. package/dist/{storage-leaf-7IYAULRJ.mjs → storage-leaf-CWGPJ5TV.mjs} +76 -63
  89. package/dist/{store-leaf-VI3FC46A.mjs → store-leaf-VCGW4NA2.mjs} +6 -6
  90. package/dist/{suggestions-leaf-YP3BMVLS.mjs → suggestions-leaf-TMXRXDSO.mjs} +8 -8
  91. package/dist/sync/filesystem.mjs +9 -9
  92. package/dist/sync.browser.mjs +1 -1
  93. package/dist/sync.mjs +4 -4
  94. package/dist/synonyms.browser.mjs +1 -1
  95. package/dist/synonyms.mjs +4 -4
  96. package/dist/{tasks-C65V7lIr.d.ts → tasks--3oWn3xJ.d.ts} +2 -2
  97. package/dist/{thread-X36MGME4.mjs → thread-W4C2PCMF.mjs} +13 -13
  98. package/dist/vector/search-worker.mjs +4 -4
  99. package/dist/{worker-copies-R53BVAFV.mjs → worker-copies-W6PULM5W.mjs} +7 -7
  100. package/dist/workers/entry.mjs +10 -10
  101. package/openapi.json +2 -2
  102. package/package.json +7 -6
  103. /package/dist/browser/{core-leaf-WYFANMKC.mjs → core-leaf-HWAXCEWX.mjs} +0 -0
  104. /package/dist/react-native/chunks/{chunk-G434H5WG.mjs → chunk-QNZHMXPO.mjs} +0 -0
@@ -1,13 +1,13 @@
1
1
  import { sha256 } from './chunk-H3MDVPBO.mjs';
2
2
  import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
3
- import { openChecksummedEnvelope, HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, hasNrslMagic, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, packEnvelopeWithChecksum, checksumOfChunks, QUERY_HISTORY_FOLDER, storedStateToWire, storedStateFromWire } from './chunk-UEBUWCYN.mjs';
4
- import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-GJQIMGXT.mjs';
5
- import { deserializePartition } from './chunk-JZCEJO3N.mjs';
6
- import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-5KRTKOH6.mjs';
7
- import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, loadSchemaCodeFor, decodeStoredDocument, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, yieldToEventLoop, buildPartialWordTableFrom, configurationPayloadOf, withOpenIndex, emitSyncChange, newSyncEpoch, isCompositePartition, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, isSyncEpoch, prepareDocumentVectors, removedSurfaceSpellings, prepareConfiguredSynonyms, decodeSurfaceTable, mergeDocFrequencies, TermLookup, createFrozenRemovals, mergeKeywordSources, createSharedFrozenSegment, ARRAY_POSITION_GAP, createFrozenSegment, createPublicationGate, prepareRemovalText, prepareDocumentText, writePartitionDocument, updateDocumentVectors, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, readHeapStatistics, readResidentMemory, holdSyncEpochChange, emptyPendingRegions, mergePostings2, scanPostingBlocks, SegmentRefusal, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, validQueryFilter, createPatternWorkMeter, compareScores, endOfValue, decodeEveryStoredDocument, createPartitionManager, createPartitionRouter, loadGzip, arrayPositionsAreStale, insertDocumentVectors, decodeMapWithoutFields, survivorDocumentsOf, partitionStateOf, noteDocumentChurn, removeDocumentVectors } from './chunk-2S57X2ZY.mjs';
8
- import './chunk-AN4HKLB4.mjs';
9
- import { turnsAreBudgeted, turnIsSpent, yieldTurn, isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, countWrite, collectAndReturnPages, requireBoundedUpperLists, osqRecordBytes, createFixedBuffer, magnitude, rescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, createVectorFileReader, decodeVectorIndexParts, signalOfSearch, requireSearchActive, osqQuantize, createOsqScratch, stageQueryLevels, scalarQueryProducts, readTrailer, osqEstimate, osqDistance, toDistance, decodeVectorFilePayload, DEFAULT_VECTOR_METRIC, defaultQuantizationFor, VECTOR_FILE_MAX_VECTORS, deadBytesFor, vectorsPerFile, vectorsToBytes, decodeVectorGraphPartPayload, assembleGraphParts, waitOutsideCountedWrite, fnv1a, osqBitsOf, countDead, nodeThreadId, detectRuntime, graphPartsOfEarlierPayload, decodeVectorGraphPayload } from './chunk-G434H5WG.mjs';
10
- export { createHNSWIndex, osqBitsOf } from './chunk-G434H5WG.mjs';
3
+ import { openChecksummedEnvelope, HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, hasNrslMagic, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, packEnvelopeWithChecksum, checksumOfChunks, QUERY_HISTORY_FOLDER, storedStateToWire, storedStateFromWire } from './chunk-ZO3RYBYX.mjs';
4
+ import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-PPS5E3XI.mjs';
5
+ import { deserializePartition } from './chunk-KPF6KEQJ.mjs';
6
+ import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-YLLHNLW7.mjs';
7
+ import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, loadSchemaCodeFor, decodeStoredDocument, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, yieldToEventLoop, buildPartialWordTableFrom, configurationPayloadOf, withOpenIndex, emitSyncChange, newSyncEpoch, isCompositePartition, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, isSyncEpoch, prepareDocumentVectors, removedSurfaceSpellings, prepareConfiguredSynonyms, decodeSurfaceTable, mergeDocFrequencies, TermLookup, createFrozenRemovals, mergeKeywordSources, createSharedFrozenSegment, ARRAY_POSITION_GAP, createFrozenSegment, createPublicationGate, prepareRemovalText, prepareDocumentText, writePartitionDocument, updateDocumentVectors, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, readHeapStatistics, readProcessMemoryUse, holdSyncEpochChange, emptyPendingRegions, mergePostings2, scanPostingBlocks, SegmentRefusal, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, validQueryFilter, createPatternWorkMeter, compareScores, endOfValue, decodeEveryStoredDocument, createPartitionManager, createPartitionRouter, loadGzip, arrayPositionsAreStale, insertDocumentVectors, decodeMapWithoutFields, survivorDocumentsOf, partitionStateOf, noteDocumentChurn, removeDocumentVectors } from './chunk-ZJAOGFBT.mjs';
8
+ import './chunk-3NHQ3CGV.mjs';
9
+ import { turnsAreBudgeted, turnIsSpent, yieldTurn, isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, countWrite, collectAndReturnPages, requireBoundedUpperLists, osqRecordBytes, createFixedBuffer, magnitude, rescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, createVectorFileReader, decodeVectorIndexParts, signalOfSearch, requireSearchActive, osqQuantize, createOsqScratch, stageQueryLevels, scalarQueryProducts, readTrailer, osqEstimate, osqDistance, toDistance, decodeVectorFilePayload, DEFAULT_VECTOR_METRIC, defaultQuantizationFor, VECTOR_FILE_MAX_VECTORS, deadBytesFor, vectorsPerFile, vectorsToBytes, decodeVectorGraphPartPayload, assembleGraphParts, waitOutsideCountedWrite, fnv1a, osqBitsOf, countDead, nodeThreadId, detectRuntime, graphPartsOfEarlierPayload, decodeVectorGraphPayload } from './chunk-QNZHMXPO.mjs';
10
+ export { createHNSWIndex, osqBitsOf } from './chunk-QNZHMXPO.mjs';
11
11
  import { DEFAULT_MAX_PARTITIONS, EXPORT_CHUNK_BYTES, MAX_PARTITIONS, STATISTICS_BROADCAST_INTERVAL_MS, ANALYSIS_CHANGE_MEMBERS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, FOREIGN_STATS_TTL_MS, ANALYSIS_HOLD_APPLY_INTERVAL_MS, MAX_IMPORT_REFUSALS_REPORTED, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-LX62Y4B5.mjs';
12
12
  import './chunk-HTBY4GON.mjs';
13
13
  import { nativeSearchCoreIsEnabled, loadNativeCore } from './chunk-UYKIV2KT.mjs';
@@ -622,9 +622,9 @@ function shortfallOf(heapBytes, processBytes, countInUse) {
622
622
  const availableBytes = countInUse ? limitBytes - heap.usedBytes : limitBytes;
623
623
  if (heapBytes > availableBytes) return { budget: "heap", neededBytes: heapBytes, availableBytes };
624
624
  }
625
- const resident = readResidentMemory();
626
- if (resident !== null) {
627
- const availableBytes = countInUse ? resident.limitBytes - resident.residentBytes : resident.limitBytes;
625
+ const memory = readProcessMemoryUse();
626
+ if (memory !== null) {
627
+ const availableBytes = countInUse ? memory.limitBytes - memory.processBytes : memory.limitBytes;
628
628
  if (processBytes > availableBytes) return { budget: "process", neededBytes: processBytes, availableBytes };
629
629
  }
630
630
  return null;
@@ -8019,6 +8019,22 @@ function frameRecord(entry) {
8019
8019
  view.setUint32(RECORD_LENGTH_SIZE + payload.length, crc32(payload), false);
8020
8020
  return frame;
8021
8021
  }
8022
+ function joinFrames(frames) {
8023
+ if (frames.length === 1) {
8024
+ return frames[0];
8025
+ }
8026
+ let totalBytes = 0;
8027
+ for (const frame of frames) {
8028
+ totalBytes += frame.length;
8029
+ }
8030
+ const joined4 = new Uint8Array(totalBytes);
8031
+ let offset = 0;
8032
+ for (const frame of frames) {
8033
+ joined4.set(frame, offset);
8034
+ offset += frame.length;
8035
+ }
8036
+ return joined4;
8037
+ }
8022
8038
  function checkSegmentHeader(data) {
8023
8039
  if (data.length < SEGMENT_HEADER_SIZE) {
8024
8040
  return { ok: false, reason: "segment shorter than the 8-byte header", code: ErrorCodes.PERSISTENCE_WAL_CORRUPT };
@@ -16862,6 +16878,8 @@ function createWalWriter(directory, config) {
16862
16878
  let highestDurableSeqNo = 0;
16863
16879
  let markerWriter = null;
16864
16880
  let durabilityLock = Promise.resolve();
16881
+ let synced = null;
16882
+ let failure = null;
16865
16883
  const coordinator = createGroupCommitCoordinator(() => withDurabilityLock(flushActiveSegment));
16866
16884
  function withDurabilityLock(fn) {
16867
16885
  const result = durabilityLock.then(fn);
@@ -16884,18 +16902,37 @@ function createWalWriter(directory, config) {
16884
16902
  }
16885
16903
  return markerWriter;
16886
16904
  }
16905
+ function latchFailure(err) {
16906
+ if (failure === null) {
16907
+ failure = { error: err };
16908
+ }
16909
+ return failure.error;
16910
+ }
16887
16911
  async function flushActiveSegment() {
16888
- if (handle === null) {
16912
+ if (failure !== null) {
16913
+ throw failure.error;
16914
+ }
16915
+ const flushing = handle;
16916
+ if (flushing === null) {
16889
16917
  return;
16890
16918
  }
16891
- const writer = await getMarkerWriter();
16892
16919
  const durableByteLength = activeBytes;
16893
16920
  const activeSegmentSeqNo = activeStartSeqNo;
16894
- const durableSeqNo = Math.max(highestAppendedSeqNo, highestDurableSeqNo);
16895
- await handle.sync();
16896
- await writer.commit({ activeSegmentSeqNo, durableByteLength, highestDurableSeqNo: durableSeqNo });
16897
- if (durableSeqNo > highestDurableSeqNo) {
16898
- highestDurableSeqNo = durableSeqNo;
16921
+ const appendedSeqNo = highestAppendedSeqNo;
16922
+ if (synced !== null && synced.startSeqNo === activeSegmentSeqNo && synced.bytes === durableByteLength) {
16923
+ return;
16924
+ }
16925
+ try {
16926
+ const writer = await getMarkerWriter();
16927
+ const durableSeqNo = Math.max(appendedSeqNo, highestDurableSeqNo);
16928
+ await flushing.sync();
16929
+ await writer.commit({ activeSegmentSeqNo, durableByteLength, highestDurableSeqNo: durableSeqNo });
16930
+ if (durableSeqNo > highestDurableSeqNo) {
16931
+ highestDurableSeqNo = durableSeqNo;
16932
+ }
16933
+ synced = { startSeqNo: activeSegmentSeqNo, bytes: durableByteLength };
16934
+ } catch (err) {
16935
+ throw latchFailure(err);
16899
16936
  }
16900
16937
  }
16901
16938
  function formatVersionFor(holdsPreviousDocument) {
@@ -16998,22 +17035,30 @@ function createWalWriter(directory, config) {
16998
17035
  }
16999
17036
  }
17000
17037
  async function swapToPreparedSegment(sealed) {
17001
- const writer = await getMarkerWriter();
17002
- const startSeqNo = highestAppendedSeqNo + 1;
17003
- const durableSeqNo = Math.max(highestAppendedSeqNo, highestDurableSeqNo);
17004
- const key = segmentKey2(config.indexName, config.partitionId, startSeqNo);
17005
- await Promise.all([sealed.sync(), directory.move(preparedKey, key)]);
17006
- handle = await directory.appendHandle(key);
17007
- activeKey = key;
17008
- activeStartSeqNo = startSeqNo;
17009
- activeBytes = SEGMENT_HEADER_SIZE;
17010
- activeFormatVersion = preparedFormatVersion;
17011
- await writer.commit({
17012
- activeSegmentSeqNo: startSeqNo,
17013
- durableByteLength: SEGMENT_HEADER_SIZE,
17014
- highestDurableSeqNo: durableSeqNo
17015
- });
17016
- highestDurableSeqNo = durableSeqNo;
17038
+ if (failure !== null) {
17039
+ throw failure.error;
17040
+ }
17041
+ try {
17042
+ const writer = await getMarkerWriter();
17043
+ const startSeqNo = highestAppendedSeqNo + 1;
17044
+ const durableSeqNo = Math.max(highestAppendedSeqNo, highestDurableSeqNo);
17045
+ const key = segmentKey2(config.indexName, config.partitionId, startSeqNo);
17046
+ await Promise.all([sealed.sync(), directory.move(preparedKey, key)]);
17047
+ handle = await directory.appendHandle(key);
17048
+ activeKey = key;
17049
+ activeStartSeqNo = startSeqNo;
17050
+ activeBytes = SEGMENT_HEADER_SIZE;
17051
+ activeFormatVersion = preparedFormatVersion;
17052
+ await writer.commit({
17053
+ activeSegmentSeqNo: startSeqNo,
17054
+ durableByteLength: SEGMENT_HEADER_SIZE,
17055
+ highestDurableSeqNo: durableSeqNo
17056
+ });
17057
+ highestDurableSeqNo = durableSeqNo;
17058
+ synced = { startSeqNo, bytes: SEGMENT_HEADER_SIZE };
17059
+ } catch (err) {
17060
+ throw latchFailure(err);
17061
+ }
17017
17062
  await sealed.close();
17018
17063
  }
17019
17064
  async function maybeRoll(nextSeqNo, appendedBytes, holdsPreviousDocument) {
@@ -17024,22 +17069,6 @@ function createWalWriter(directory, config) {
17024
17069
  await withDurabilityLock(() => rollUnderLock(nextSeqNo, formatVersionFor(holdsPreviousDocument)));
17025
17070
  }
17026
17071
  }
17027
- function joinFrames(frames) {
17028
- if (frames.length === 1) {
17029
- return frames[0];
17030
- }
17031
- let totalBytes = 0;
17032
- for (const frame of frames) {
17033
- totalBytes += frame.length;
17034
- }
17035
- const joined4 = new Uint8Array(totalBytes);
17036
- let offset = 0;
17037
- for (const frame of frames) {
17038
- joined4.set(frame, offset);
17039
- offset += frame.length;
17040
- }
17041
- return joined4;
17042
- }
17043
17072
  function framesThatFit(frames, start) {
17044
17073
  const room = segmentMaxBytes - activeBytes;
17045
17074
  let end = start + 1;
@@ -1,9 +1,9 @@
1
- export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-3OHO4SEF.mjs';
1
+ export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-ZKAHFCZT.mjs';
2
2
  export { oneSyncChangeAtATime } from './chunk-Q32DDFKX.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-UEBUWCYN.mjs';
4
- import './chunk-2S57X2ZY.mjs';
5
- import './chunk-AN4HKLB4.mjs';
6
- import './chunk-G434H5WG.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-ZO3RYBYX.mjs';
4
+ import './chunk-ZJAOGFBT.mjs';
5
+ import './chunk-3NHQ3CGV.mjs';
6
+ import './chunk-QNZHMXPO.mjs';
7
7
  import './chunk-LX62Y4B5.mjs';
8
8
  import './chunk-HTBY4GON.mjs';
9
9
  import './chunk-UYKIV2KT.mjs';
@@ -1,9 +1,9 @@
1
- import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-3OHO4SEF.mjs';
1
+ import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-ZKAHFCZT.mjs';
2
2
  import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
3
- import { attachedRuntimeOf, attachRuntime, isGroup, invalidSetting, MIN_KEY_BYTES, historyFilesOf, buildRecordKey, resolveSetting, acceptedPhrase, normaliseBan, banListFromInput, validateSetting, withState, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, isPerson, removeHistoryFolder, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, BUILD_WRITE_BATCH, MAX_TIMER_DELAY_MS, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-UEBUWCYN.mjs';
4
- import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-2S57X2ZY.mjs';
5
- import './chunk-AN4HKLB4.mjs';
6
- import './chunk-G434H5WG.mjs';
3
+ import { attachedRuntimeOf, attachRuntime, isGroup, invalidSetting, MIN_KEY_BYTES, historyFilesOf, buildRecordKey, resolveSetting, acceptedPhrase, normaliseBan, banListFromInput, validateSetting, withState, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, isPerson, removeHistoryFolder, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, BUILD_WRITE_BATCH, MAX_TIMER_DELAY_MS, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-ZO3RYBYX.mjs';
4
+ import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-ZJAOGFBT.mjs';
5
+ import './chunk-3NHQ3CGV.mjs';
6
+ import './chunk-QNZHMXPO.mjs';
7
7
  import './chunk-LX62Y4B5.mjs';
8
8
  import './chunk-HTBY4GON.mjs';
9
9
  import './chunk-UYKIV2KT.mjs';
@@ -1,7 +1,7 @@
1
- import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-5KRTKOH6.mjs';
2
- import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, encodeSegmentState, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-2S57X2ZY.mjs';
3
- import './chunk-AN4HKLB4.mjs';
4
- import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount, CONSECUTIVE_TIMEOUTS_BEFORE_DEATH, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-G434H5WG.mjs';
1
+ import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-YLLHNLW7.mjs';
2
+ import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, encodeSegmentState, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-ZJAOGFBT.mjs';
3
+ import './chunk-3NHQ3CGV.mjs';
4
+ import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount, CONSECUTIVE_TIMEOUTS_BEFORE_DEATH, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-QNZHMXPO.mjs';
5
5
  import { MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS } from './chunk-LX62Y4B5.mjs';
6
6
  import { MATCHER_STATE_BUDGET_BYTES } from './chunk-HTBY4GON.mjs';
7
7
  import './chunk-UYKIV2KT.mjs';
@@ -1,6 +1,6 @@
1
- import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, typedRegion, regionsOverlap, mergeText } from './chunks/chunk-2S57X2ZY.mjs';
2
- import './chunks/chunk-AN4HKLB4.mjs';
3
- import { FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-G434H5WG.mjs';
1
+ import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, typedRegion, regionsOverlap, mergeText } from './chunks/chunk-ZJAOGFBT.mjs';
2
+ import './chunks/chunk-3NHQ3CGV.mjs';
3
+ import { FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-QNZHMXPO.mjs';
4
4
  import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH } from './chunks/chunk-LX62Y4B5.mjs';
5
5
  import { fuzzyTermMatches, storedText } from './chunks/chunk-HTBY4GON.mjs';
6
6
  import './chunks/chunk-UYKIV2KT.mjs';
@@ -1,6 +1,6 @@
1
- import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-2S57X2ZY.mjs';
2
- import './chunks/chunk-AN4HKLB4.mjs';
3
- import './chunks/chunk-G434H5WG.mjs';
1
+ import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-ZJAOGFBT.mjs';
2
+ import './chunks/chunk-3NHQ3CGV.mjs';
3
+ import './chunks/chunk-QNZHMXPO.mjs';
4
4
  import './chunks/chunk-LX62Y4B5.mjs';
5
5
  import './chunks/chunk-HTBY4GON.mjs';
6
6
  import './chunks/chunk-UYKIV2KT.mjs';
@@ -1,6 +1,6 @@
1
- import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-2S57X2ZY.mjs';
2
- import './chunks/chunk-AN4HKLB4.mjs';
3
- import './chunks/chunk-G434H5WG.mjs';
1
+ import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-ZJAOGFBT.mjs';
2
+ import './chunks/chunk-3NHQ3CGV.mjs';
3
+ import './chunks/chunk-QNZHMXPO.mjs';
4
4
  import './chunks/chunk-LX62Y4B5.mjs';
5
5
  import './chunks/chunk-HTBY4GON.mjs';
6
6
  import './chunks/chunk-UYKIV2KT.mjs';
@@ -1,6 +1,6 @@
1
- import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-2S57X2ZY.mjs';
2
- import './chunks/chunk-AN4HKLB4.mjs';
3
- import './chunks/chunk-G434H5WG.mjs';
1
+ import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-ZJAOGFBT.mjs';
2
+ import './chunks/chunk-3NHQ3CGV.mjs';
3
+ import './chunks/chunk-QNZHMXPO.mjs';
4
4
  import './chunks/chunk-LX62Y4B5.mjs';
5
5
  import { storedText } from './chunks/chunk-HTBY4GON.mjs';
6
6
  import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-UYKIV2KT.mjs';
package/dist/react.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  import { s as Narsil, N as NarsilError, L as ListParams, y as ListResult, I as IndexInfo, x as IndexStats, Q as QueryParams, z as PreflightResult, t as QueryResult, w as SuggestParams, A as SuggestResult } from './engine-qjAxJSKk.js';
2
2
  export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-qjAxJSKk.js';
3
- import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-C65V7lIr.js';
4
- export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-C65V7lIr.js';
3
+ import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks--3oWn3xJ.js';
4
+ export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks--3oWn3xJ.js';
5
5
  import { ReactNode, ReactElement } from 'react';
6
- import { N as NarsilClient, I as ImportSource } from './client-uB0kp2yT.js';
6
+ import { N as NarsilClient, I as ImportSource } from './client-Cdz3YK_X.js';
7
7
  import { A as AnyDocument } from './schema-CzG9OUw5.js';
8
8
  import './adapters-pljAqmrC.js';
9
9
  import './query-suggestions-CBYkrQ5T.js';
10
10
  import './synonyms-CpOAHPa-.js';
11
- import './config-BvHQ-C7U.js';
11
+ import './config-CazZHGDa.js';
12
12
  import './config-PqgNY1H7.js';
13
- import './index-BaQIAnk0.js';
13
+ import './index-B_vmxpgW.js';
14
14
  import './types-DvncmvuQ.js';
15
15
 
16
16
  /**
@@ -1,14 +1,14 @@
1
- import { loadRerankRuntime } from './chunk-I2FKNCDS.mjs';
1
+ import { loadRerankRuntime } from './chunk-JZCWNKL2.mjs';
2
2
  import './chunk-2CKDCC65.mjs';
3
- import './chunk-AOYQTX6W.mjs';
3
+ import './chunk-JDVLZUKE.mjs';
4
4
  import './chunk-GXCDWLQI.mjs';
5
5
  import './chunk-BUMREPLU.mjs';
6
6
  import './chunk-7T4LAYT4.mjs';
7
7
  import './chunk-IL5DRCNU.mjs';
8
8
  import './chunk-7P5YWDRQ.mjs';
9
9
  import './chunk-U2BKYEC7.mjs';
10
- import './chunk-RORNUNXW.mjs';
11
- import './chunk-UPDNNOTG.mjs';
10
+ import './chunk-ZVUEH2JS.mjs';
11
+ import './chunk-5EI5CXO6.mjs';
12
12
  import './chunk-3ECIRFS5.mjs';
13
13
  import './chunk-ASZLNVWW.mjs';
14
14
  import './chunk-ZXX5GZEX.mjs';
@@ -1,17 +1,17 @@
1
- import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-Y3T4HQGT.mjs';
2
- export { startQuerySuggestions } from './chunk-Y3T4HQGT.mjs';
3
- import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-ZVJPJZIP.mjs';
4
- import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-I2FKNCDS.mjs';
1
+ import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-4H44U3EK.mjs';
2
+ export { startQuerySuggestions } from './chunk-4H44U3EK.mjs';
3
+ import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-3LQ6C3H6.mjs';
4
+ import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-JZCWNKL2.mjs';
5
5
  import './chunk-2CKDCC65.mjs';
6
- import './chunk-AOYQTX6W.mjs';
6
+ import './chunk-JDVLZUKE.mjs';
7
7
  import './chunk-GXCDWLQI.mjs';
8
8
  import './chunk-BUMREPLU.mjs';
9
9
  import './chunk-7T4LAYT4.mjs';
10
10
  import './chunk-IL5DRCNU.mjs';
11
11
  import './chunk-7P5YWDRQ.mjs';
12
12
  import './chunk-U2BKYEC7.mjs';
13
- import './chunk-RORNUNXW.mjs';
14
- import './chunk-UPDNNOTG.mjs';
13
+ import './chunk-ZVUEH2JS.mjs';
14
+ import './chunk-5EI5CXO6.mjs';
15
15
  import './chunk-3ECIRFS5.mjs';
16
16
  import './chunk-ASZLNVWW.mjs';
17
17
  import './chunk-ZXX5GZEX.mjs';
@@ -1,15 +1,15 @@
1
- export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-RWJQ3XU7.mjs';
2
- export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-I2FKNCDS.mjs';
1
+ export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-2HZ3ZNL4.mjs';
2
+ export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-JZCWNKL2.mjs';
3
3
  import './chunk-2CKDCC65.mjs';
4
- import './chunk-AOYQTX6W.mjs';
4
+ import './chunk-JDVLZUKE.mjs';
5
5
  import './chunk-GXCDWLQI.mjs';
6
6
  import './chunk-BUMREPLU.mjs';
7
7
  import './chunk-7T4LAYT4.mjs';
8
8
  import './chunk-IL5DRCNU.mjs';
9
9
  import './chunk-7P5YWDRQ.mjs';
10
10
  import './chunk-U2BKYEC7.mjs';
11
- import './chunk-RORNUNXW.mjs';
12
- import './chunk-UPDNNOTG.mjs';
11
+ import './chunk-ZVUEH2JS.mjs';
12
+ import './chunk-5EI5CXO6.mjs';
13
13
  import './chunk-3ECIRFS5.mjs';
14
14
  import './chunk-ASZLNVWW.mjs';
15
15
  import './chunk-ZXX5GZEX.mjs';
@@ -1,15 +1,15 @@
1
- export { deserializePartition, serializePartition } from './chunk-KDLH3BWY.mjs';
2
- export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-I2FKNCDS.mjs';
1
+ export { deserializePartition, serializePartition } from './chunk-SBJ4W7O4.mjs';
2
+ export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-JZCWNKL2.mjs';
3
3
  import './chunk-2CKDCC65.mjs';
4
- import './chunk-AOYQTX6W.mjs';
4
+ import './chunk-JDVLZUKE.mjs';
5
5
  import './chunk-GXCDWLQI.mjs';
6
6
  import './chunk-BUMREPLU.mjs';
7
7
  import './chunk-7T4LAYT4.mjs';
8
8
  import './chunk-IL5DRCNU.mjs';
9
9
  import './chunk-7P5YWDRQ.mjs';
10
10
  import './chunk-U2BKYEC7.mjs';
11
- import './chunk-RORNUNXW.mjs';
12
- import './chunk-UPDNNOTG.mjs';
11
+ import './chunk-ZVUEH2JS.mjs';
12
+ import './chunk-5EI5CXO6.mjs';
13
13
  import './chunk-3ECIRFS5.mjs';
14
14
  import './chunk-ASZLNVWW.mjs';
15
15
  import './chunk-ZXX5GZEX.mjs';
package/dist/server.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { G as GroupResult, H as Hit, Q as QueryParams, v as GroupConfig, t as QueryResult, p as SyncSetting, g as ChangesSetting, L as ListParams, w as SuggestParams, x as IndexStats, y as ListResult, z as PreflightResult, A as SuggestResult, q as SyncStatus, h as ChangesStatus, s as Narsil } from './engine-qjAxJSKk.js';
2
2
  export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-qjAxJSKk.js';
3
- import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-CLnQHIqV.js';
4
- export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-CLnQHIqV.js';
5
- import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-C65V7lIr.js';
6
- export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-C65V7lIr.js';
3
+ import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-B5lsGETP.js';
4
+ export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-B5lsGETP.js';
5
+ import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks--3oWn3xJ.js';
6
+ export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks--3oWn3xJ.js';
7
7
  import { d as QuerySuggestionsSetting, M as ManualQuerySuggestion, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
8
- import { c as ClusterHealth } from './config-BvHQ-C7U.js';
8
+ import { c as ClusterHealth } from './config-CazZHGDa.js';
9
9
  import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-CzG9OUw5.js';
10
10
  import './adapters-pljAqmrC.js';
11
11
  import './synonyms-CpOAHPa-.js';
12
- import './index-BaQIAnk0.js';
12
+ import './index-B_vmxpgW.js';
13
13
  import './config-PqgNY1H7.js';
14
14
  import './types-DvncmvuQ.js';
15
15
 
package/dist/server.mjs CHANGED
@@ -1,39 +1,39 @@
1
- import { answerRequest } from './chunk-ZV25WJNK.mjs';
1
+ import { answerRequest } from './chunk-WXLDFCYT.mjs';
2
2
  import { resolveVectorText } from './chunk-NJJN4FMM.mjs';
3
- import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, createSyncSnapshotHandler, acceptorOf, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, clearGateSlot, clearBodyBudgetSlot, createCloseAtExitWords, createDepartureWord, departureConfirmed, refusedRegex, toHttpError, parseJson, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJson, validateDocumentBody, validateSuggest, validateQuery, refuseRegex, requestSignal, withServerRerankWindow, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, isThreadFeedNote, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-YYNLEWSP.mjs';
4
- export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-YYNLEWSP.mjs';
5
- import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-KYVJPISW.mjs';
3
+ import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, createSyncSnapshotHandler, acceptorOf, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, clearGateSlot, clearBodyBudgetSlot, createCloseAtExitWords, createDepartureWord, departureConfirmed, refusedRegex, toHttpError, parseJson, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJson, validateDocumentBody, validateSuggest, validateQuery, refuseRegex, requestSignal, withServerRerankWindow, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, isThreadFeedNote, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-CXUBNJMW.mjs';
4
+ export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-CXUBNJMW.mjs';
5
+ import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-UKYJXML2.mjs';
6
6
  import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, SYNC_CLOSE_POLICY, MAX_DEVICE_MESSAGE_BYTES, SYNC_CLOSE_TOO_LARGE, deviceMessageOf, SYNC_CLOSE_SERVER_ERROR, positionList, positionsByPartition, CHANGES_CLOSE_RESYNC, CHANGES_CLOSE_POLICY, MAX_SUBSCRIBER_MESSAGE_BYTES, CHANGES_CLOSE_TOO_LARGE, closeReasonOf, CHANGES_CLOSE_CREDENTIAL_EXPIRED, CHANGES_CLOSE_SETTING, CHANGES_CLOSE_SERVER_ERROR, CHANGES_CLOSE_GOING_AWAY, SYNC_CLOSE_GOING_AWAY } from './chunk-F6F4G322.mjs';
7
- import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-3Y3QYL6Q.mjs';
8
- import { isRecord, validateIndexName } from './chunk-VPOPC7JA.mjs';
9
- import './chunk-UP5TJ3II.mjs';
10
- import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-AH5J62FF.mjs';
7
+ import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-3VI4BSE2.mjs';
8
+ import { isRecord, validateIndexName } from './chunk-M2LTO64S.mjs';
9
+ import './chunk-AXX7CSFV.mjs';
10
+ import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-J777QLZN.mjs';
11
11
  import './chunk-M2Z5WVWW.mjs';
12
- import { DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_FEED_WINDOW_BYTES, estimatedArchiveBytes, TIMER_DELAY_LIMIT_MS, FEED_HEAD_RETRY_MS, ENTRIES_MESSAGE_LIMIT_BYTES } from './chunk-VSLFZDVA.mjs';
12
+ import { DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_FEED_WINDOW_BYTES, estimatedArchiveBytes, TIMER_DELAY_LIMIT_MS, FEED_HEAD_RETRY_MS, ENTRIES_MESSAGE_LIMIT_BYTES } from './chunk-6R2CWCKV.mjs';
13
13
  import './chunk-JDDXV6UF.mjs';
14
- import { manifestFileRefs } from './chunk-5WN5TOPY.mjs';
14
+ import { manifestFileRefs } from './chunk-HQCQPOBP.mjs';
15
15
  import './chunk-MSIN4NM3.mjs';
16
16
  import { encode as encode$1 } from './chunk-S5QMWECL.mjs';
17
17
  import './chunk-LNGE7SLY.mjs';
18
18
  import './chunk-R2PJKSNL.mjs';
19
- import './chunk-RWJQ3XU7.mjs';
20
- import './chunk-KDLH3BWY.mjs';
21
- import './chunk-KBU3ZFJN.mjs';
19
+ import './chunk-2HZ3ZNL4.mjs';
20
+ import './chunk-SBJ4W7O4.mjs';
21
+ import './chunk-R724DJSG.mjs';
22
22
  import './chunk-V6EUBAIT.mjs';
23
- import './chunk-ZVJPJZIP.mjs';
24
- import { querySuggestions } from './chunk-KRCP4W26.mjs';
23
+ import './chunk-3LQ6C3H6.mjs';
24
+ import { querySuggestions } from './chunk-JVZFCFDN.mjs';
25
25
  import './chunk-S2POFTLN.mjs';
26
- import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-I2FKNCDS.mjs';
26
+ import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-JZCWNKL2.mjs';
27
27
  import './chunk-2CKDCC65.mjs';
28
- import './chunk-AOYQTX6W.mjs';
28
+ import './chunk-JDVLZUKE.mjs';
29
29
  import { decode } from './chunk-GXCDWLQI.mjs';
30
30
  import './chunk-BUMREPLU.mjs';
31
31
  import './chunk-7T4LAYT4.mjs';
32
32
  import './chunk-IL5DRCNU.mjs';
33
33
  import './chunk-7P5YWDRQ.mjs';
34
34
  import './chunk-U2BKYEC7.mjs';
35
- import { detectRuntime } from './chunk-RORNUNXW.mjs';
36
- import { startIdleHeapCleanup } from './chunk-UPDNNOTG.mjs';
35
+ import { detectRuntime } from './chunk-ZVUEH2JS.mjs';
36
+ import { startIdleHeapCleanup } from './chunk-5EI5CXO6.mjs';
37
37
  import './chunk-3ECIRFS5.mjs';
38
38
  import './chunk-ASZLNVWW.mjs';
39
39
  import './chunk-ZXX5GZEX.mjs';