@delali/narsil 0.4.6-next.333 → 0.4.6-next.334

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 (80) hide show
  1. package/dist/browser/{chunk-75MBWQFW.mjs → chunk-J343PP7Q.mjs} +23 -10
  2. package/dist/browser/{optional-writes-3HKIVZFU.mjs → optional-writes-OFPF77WY.mjs} +2 -1
  3. package/dist/browser/{segment-codec-leaf-NDVBIBJJ.mjs → segment-codec-leaf-E4YHXUAI.mjs} +4 -2
  4. package/dist/browser/{storage-leaf-NCOXQTXQ.mjs → storage-leaf-WJMD66YX.mjs} +3 -2
  5. package/dist/{chunk-FBGUKBW2.mjs → chunk-2QQCR7KF.mjs} +2 -2
  6. package/dist/{chunk-GYQKMYPG.mjs → chunk-4QNWK42S.mjs} +35 -19
  7. package/dist/{chunk-NOEMVUBS.mjs → chunk-5PUNOJC7.mjs} +1 -1
  8. package/dist/{chunk-43UYNPPC.mjs → chunk-6S5QPDPP.mjs} +2 -2
  9. package/dist/{chunk-2M55WPWK.mjs → chunk-AKLCYPUY.mjs} +1 -1
  10. package/dist/{chunk-5E46Y42F.mjs → chunk-B276ZQIH.mjs} +2 -2
  11. package/dist/{chunk-26AKUBDX.mjs → chunk-B6VO3BCX.mjs} +4 -4
  12. package/dist/{chunk-HFF2R73P.mjs → chunk-BVFJ5XAU.mjs} +2 -2
  13. package/dist/{chunk-3EFLY5LQ.mjs → chunk-CHGJGKST.mjs} +2 -2
  14. package/dist/{chunk-3TENTQKL.mjs → chunk-CVCBVUH4.mjs} +2 -2
  15. package/dist/{chunk-E6CHNSMY.mjs → chunk-HB3EBTKC.mjs} +5 -5
  16. package/dist/{chunk-3UAYJW6R.mjs → chunk-HNE4HNC2.mjs} +1 -1
  17. package/dist/{chunk-H2R4BTSO.mjs → chunk-I255IQTR.mjs} +2 -2
  18. package/dist/{chunk-NSMF4OHE.mjs → chunk-IALJ2X74.mjs} +3 -3
  19. package/dist/{chunk-HJCYLTVA.mjs → chunk-ICEZRKIS.mjs} +1 -1
  20. package/dist/{chunk-GZ4YU36L.mjs → chunk-IVVNKTHC.mjs} +1 -1
  21. package/dist/{chunk-34QTB6O7.mjs → chunk-KHZ6LAFB.mjs} +1 -1
  22. package/dist/{chunk-L2W4FGTD.mjs → chunk-N3DJTTKK.mjs} +2 -2
  23. package/dist/{chunk-47NXBGQG.mjs → chunk-QWYIMVYT.mjs} +2 -2
  24. package/dist/{chunk-5CYLXJYQ.mjs → chunk-R5OFJZNI.mjs} +1 -1
  25. package/dist/{chunk-PBVLCGCW.mjs → chunk-RHFUQ76T.mjs} +1 -1
  26. package/dist/{chunk-U6B3HHTP.mjs → chunk-SCUYG24W.mjs} +4 -4
  27. package/dist/{chunk-OPWZ7PZZ.mjs → chunk-TNBOFWDS.mjs} +1 -1
  28. package/dist/{chunk-6U4C7VAD.mjs → chunk-UFDD57KD.mjs} +3 -3
  29. package/dist/{chunk-3WYTRM24.mjs → chunk-UJQ2S5QU.mjs} +2 -2
  30. package/dist/{chunk-KFUHQC6X.mjs → chunk-Z622PLNH.mjs} +12 -11
  31. package/dist/{direct-executor-2Y3JPVXT.mjs → direct-executor-P2Z7T57F.mjs} +1 -1
  32. package/dist/distribution.mjs +27 -27
  33. package/dist/index.browser.mjs +1 -1
  34. package/dist/index.mjs +1 -1
  35. package/dist/index.react-native.mjs +1 -1
  36. package/dist/{long-query-thread-6B2HXSBI.mjs → long-query-thread-SOJ25FZU.mjs} +10 -10
  37. package/dist/{optional-writes-27NHTIAL.mjs → optional-writes-GVHTEENI.mjs} +3 -3
  38. package/dist/{paged-partition-archive-EFCEC4TD.mjs → paged-partition-archive-XCETVLZW.mjs} +9 -9
  39. package/dist/partial-words.browser.mjs +1 -1
  40. package/dist/partial-words.mjs +1 -1
  41. package/dist/persistence/durability/checkpoint-worker.mjs +7 -7
  42. package/dist/{query-actions-H6H54EJE.mjs → query-actions-WKC4SQEZ.mjs} +1 -1
  43. package/dist/query-suggestions/merge-worker.mjs +4 -4
  44. package/dist/query-suggestions.browser.mjs +1 -1
  45. package/dist/query-suggestions.mjs +2 -2
  46. package/dist/react-native/chunks/{chunk-YMIPG3VC.mjs → chunk-4JY2CZWV.mjs} +1 -1
  47. package/dist/react-native/chunks/{chunk-XCJVLU6J.mjs → chunk-FN3HBVNY.mjs} +2 -2
  48. package/dist/react-native/chunks/{chunk-DYAAQB5R.mjs → chunk-LR6OK725.mjs} +1 -1
  49. package/dist/react-native/chunks/{chunk-GCD64RZ2.mjs → chunk-MPNHORPY.mjs} +1 -1
  50. package/dist/react-native/chunks/{chunk-7TURQEZZ.mjs → chunk-QT2G6OMI.mjs} +34 -18
  51. package/dist/react-native/chunks/{chunk-UTYWL2W6.mjs → chunk-QZUFYRFX.mjs} +1 -1
  52. package/dist/react-native/chunks/{optional-writes-NYFF5NTC.mjs → optional-writes-TCVHZRRM.mjs} +2 -2
  53. package/dist/react-native/chunks/{restore-queue-4OXFRQ6N.mjs → restore-queue-RLQ3L223.mjs} +4 -4
  54. package/dist/react-native/chunks/{segment-codec-leaf-YKUO5DU6.mjs → segment-codec-leaf-IM6YCP7M.mjs} +2 -2
  55. package/dist/react-native/chunks/{segment-merge-leaf-HIOWV5UN.mjs → segment-merge-leaf-32YR2ZTM.mjs} +3 -3
  56. package/dist/react-native/chunks/{storage-leaf-H64VNQKE.mjs → storage-leaf-RKI6S6T5.mjs} +8 -7
  57. package/dist/react-native/chunks/{store-leaf-ZG5DR7QA.mjs → store-leaf-YQXG6NOD.mjs} +3 -3
  58. package/dist/react-native/chunks/{suggestions-leaf-AJZ3SHZO.mjs → suggestions-leaf-Q3ABULFB.mjs} +3 -3
  59. package/dist/react-native/chunks/{worker-copies-IY4ZIA6W.mjs → worker-copies-W63KWZZN.mjs} +2 -2
  60. package/dist/react-native/partial-words.mjs +1 -1
  61. package/dist/react-native/query-suggestions.mjs +1 -1
  62. package/dist/react-native/sync.mjs +1 -1
  63. package/dist/react-native/synonyms.mjs +1 -1
  64. package/dist/{rerank-JTIQNROU.mjs → rerank-OJLSVUYV.mjs} +6 -6
  65. package/dist/{restore-queue-JIJW3XKK.mjs → restore-queue-BYO4AJLZ.mjs} +4 -4
  66. package/dist/{segment-codec-leaf-LTIODLBH.mjs → segment-codec-leaf-V52PQEVL.mjs} +2 -2
  67. package/dist/{segment-merge-leaf-CXOMXPAP.mjs → segment-merge-leaf-M3ZLJYDD.mjs} +2 -2
  68. package/dist/server.mjs +19 -21
  69. package/dist/{storage-leaf-VB5OG66O.mjs → storage-leaf-YYO4FLHQ.mjs} +18 -18
  70. package/dist/{store-leaf-RBK3Y2H4.mjs → store-leaf-KK7VD3P3.mjs} +3 -3
  71. package/dist/{suggestions-leaf-27TNMJ37.mjs → suggestions-leaf-EJCNU3NM.mjs} +5 -5
  72. package/dist/sync/filesystem.mjs +4 -4
  73. package/dist/sync.browser.mjs +1 -1
  74. package/dist/sync.mjs +1 -1
  75. package/dist/synonyms.browser.mjs +1 -1
  76. package/dist/synonyms.mjs +1 -1
  77. package/dist/{thread-J32AOE3H.mjs → thread-6BVFFMP7.mjs} +9 -9
  78. package/dist/{worker-copies-F2WVSQQO.mjs → worker-copies-5V5JGCWU.mjs} +4 -4
  79. package/dist/workers/entry.mjs +7 -7
  80. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
- import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-XCJVLU6J.mjs';
2
- export { startQuerySuggestions } from './chunk-XCJVLU6J.mjs';
3
- import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-UTYWL2W6.mjs';
4
- import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-7TURQEZZ.mjs';
1
+ import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-FN3HBVNY.mjs';
2
+ export { startQuerySuggestions } from './chunk-FN3HBVNY.mjs';
3
+ import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-QZUFYRFX.mjs';
4
+ import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-QT2G6OMI.mjs';
5
5
  import './chunk-QFPZ3VKE.mjs';
6
6
  import './chunk-XE7AMKEW.mjs';
7
7
  import './chunk-LX62Y4B5.mjs';
@@ -1,5 +1,5 @@
1
- export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-DYAAQB5R.mjs';
2
- export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-7TURQEZZ.mjs';
1
+ export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-LR6OK725.mjs';
2
+ export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-QT2G6OMI.mjs';
3
3
  import './chunk-QFPZ3VKE.mjs';
4
4
  import './chunk-XE7AMKEW.mjs';
5
5
  import './chunk-LX62Y4B5.mjs';
@@ -1,6 +1,6 @@
1
- export { deserializePartition, serializePartition } from './chunk-GCD64RZ2.mjs';
2
- export { alreadyPresentOnWorker, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-YMIPG3VC.mjs';
3
- export { bindSegmentMergeHost, mergePostings } from './chunk-7TURQEZZ.mjs';
1
+ export { deserializePartition, serializePartition } from './chunk-MPNHORPY.mjs';
2
+ export { alreadyPresentOnWorker, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-4JY2CZWV.mjs';
3
+ export { bindSegmentMergeHost, mergePostings } from './chunk-QT2G6OMI.mjs';
4
4
  import './chunk-QFPZ3VKE.mjs';
5
5
  import './chunk-XE7AMKEW.mjs';
6
6
  import './chunk-LX62Y4B5.mjs';
@@ -1,10 +1,10 @@
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-UTYWL2W6.mjs';
4
- import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-DYAAQB5R.mjs';
5
- import { deserializePartition } from './chunk-GCD64RZ2.mjs';
6
- import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-YMIPG3VC.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-7TURQEZZ.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-QZUFYRFX.mjs';
4
+ import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-LR6OK725.mjs';
5
+ import { deserializePartition } from './chunk-MPNHORPY.mjs';
6
+ import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-4JY2CZWV.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-QT2G6OMI.mjs';
8
8
  import './chunk-QFPZ3VKE.mjs';
9
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-XE7AMKEW.mjs';
10
10
  export { createHNSWIndex, osqBitsOf } from './chunk-XE7AMKEW.mjs';
@@ -12150,7 +12150,7 @@ function dropStoredVectorValues(documents, schema) {
12150
12150
  }
12151
12151
  function removeFieldAtPath(fields, fieldPath) {
12152
12152
  if (!fieldPath.includes(".")) {
12153
- delete fields[fieldPath];
12153
+ if (fields[fieldPath] !== null) delete fields[fieldPath];
12154
12154
  return;
12155
12155
  }
12156
12156
  const segments = fieldPath.split(".");
@@ -12162,7 +12162,8 @@ function removeFieldAtPath(fields, fieldPath) {
12162
12162
  }
12163
12163
  current = next;
12164
12164
  }
12165
- delete current[segments[segments.length - 1]];
12165
+ const leaf = segments[segments.length - 1];
12166
+ if (current[leaf] !== null) delete current[leaf];
12166
12167
  }
12167
12168
 
12168
12169
  // src/serialization/payload-v1/partition.ts
@@ -1,7 +1,7 @@
1
- export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-XCJVLU6J.mjs';
1
+ export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-FN3HBVNY.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-UTYWL2W6.mjs';
4
- import './chunk-7TURQEZZ.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-QZUFYRFX.mjs';
4
+ import './chunk-QT2G6OMI.mjs';
5
5
  import './chunk-QFPZ3VKE.mjs';
6
6
  import './chunk-XE7AMKEW.mjs';
7
7
  import './chunk-LX62Y4B5.mjs';
@@ -1,7 +1,7 @@
1
- import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-XCJVLU6J.mjs';
1
+ import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-FN3HBVNY.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-UTYWL2W6.mjs';
4
- import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-7TURQEZZ.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-QZUFYRFX.mjs';
4
+ import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-QT2G6OMI.mjs';
5
5
  import './chunk-QFPZ3VKE.mjs';
6
6
  import './chunk-XE7AMKEW.mjs';
7
7
  import './chunk-LX62Y4B5.mjs';
@@ -1,5 +1,5 @@
1
- import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-YMIPG3VC.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-7TURQEZZ.mjs';
1
+ import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-4JY2CZWV.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-QT2G6OMI.mjs';
3
3
  import './chunk-QFPZ3VKE.mjs';
4
4
  import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-XE7AMKEW.mjs';
5
5
  import { MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS } from './chunk-LX62Y4B5.mjs';
@@ -1,4 +1,4 @@
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-7TURQEZZ.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-QT2G6OMI.mjs';
2
2
  import './chunks/chunk-QFPZ3VKE.mjs';
3
3
  import { FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-XE7AMKEW.mjs';
4
4
  import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH } from './chunks/chunk-LX62Y4B5.mjs';
@@ -1,4 +1,4 @@
1
- import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-7TURQEZZ.mjs';
1
+ import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-QT2G6OMI.mjs';
2
2
  import './chunks/chunk-QFPZ3VKE.mjs';
3
3
  import './chunks/chunk-XE7AMKEW.mjs';
4
4
  import './chunks/chunk-LX62Y4B5.mjs';
@@ -1,4 +1,4 @@
1
- import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-7TURQEZZ.mjs';
1
+ import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-QT2G6OMI.mjs';
2
2
  import './chunks/chunk-QFPZ3VKE.mjs';
3
3
  import './chunks/chunk-XE7AMKEW.mjs';
4
4
  import './chunks/chunk-LX62Y4B5.mjs';
@@ -1,4 +1,4 @@
1
- import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-7TURQEZZ.mjs';
1
+ import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-QT2G6OMI.mjs';
2
2
  import './chunks/chunk-QFPZ3VKE.mjs';
3
3
  import './chunks/chunk-XE7AMKEW.mjs';
4
4
  import './chunks/chunk-LX62Y4B5.mjs';
@@ -1,16 +1,16 @@
1
- import { keepsAnyVectorField } from './chunk-43UYNPPC.mjs';
2
- import './chunk-3WYTRM24.mjs';
1
+ import { keepsAnyVectorField } from './chunk-6S5QPDPP.mjs';
2
+ import './chunk-UJQ2S5QU.mjs';
3
3
  import './chunk-UGMOBSMD.mjs';
4
4
  import './chunk-JDDXV6UF.mjs';
5
5
  import './chunk-S5QMWECL.mjs';
6
6
  import './chunk-LNGE7SLY.mjs';
7
7
  import './chunk-L2GYY6KY.mjs';
8
- import './chunk-2M55WPWK.mjs';
9
- import './chunk-3UAYJW6R.mjs';
8
+ import './chunk-AKLCYPUY.mjs';
9
+ import './chunk-HNE4HNC2.mjs';
10
10
  import './chunk-R724DJSG.mjs';
11
11
  import './chunk-V6EUBAIT.mjs';
12
- import './chunk-5CYLXJYQ.mjs';
13
- import { loadRerankRuntime } from './chunk-GYQKMYPG.mjs';
12
+ import './chunk-R5OFJZNI.mjs';
13
+ import { loadRerankRuntime } from './chunk-4QNWK42S.mjs';
14
14
  import './chunk-2CKDCC65.mjs';
15
15
  import './chunk-BRTABNC7.mjs';
16
16
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,7 +1,7 @@
1
- import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-3EFLY5LQ.mjs';
2
- export { startQuerySuggestions } from './chunk-3EFLY5LQ.mjs';
3
- import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-5CYLXJYQ.mjs';
4
- import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-GYQKMYPG.mjs';
1
+ import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-CHGJGKST.mjs';
2
+ export { startQuerySuggestions } from './chunk-CHGJGKST.mjs';
3
+ import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-R5OFJZNI.mjs';
4
+ import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-4QNWK42S.mjs';
5
5
  import './chunk-2CKDCC65.mjs';
6
6
  import './chunk-BRTABNC7.mjs';
7
7
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,5 +1,5 @@
1
- export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-2M55WPWK.mjs';
2
- export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-GYQKMYPG.mjs';
1
+ export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-AKLCYPUY.mjs';
2
+ export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-4QNWK42S.mjs';
3
3
  import './chunk-2CKDCC65.mjs';
4
4
  import './chunk-BRTABNC7.mjs';
5
5
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,5 +1,5 @@
1
- export { deserializePartition, serializePartition } from './chunk-3UAYJW6R.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-GYQKMYPG.mjs';
1
+ export { deserializePartition, serializePartition } from './chunk-HNE4HNC2.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-4QNWK42S.mjs';
3
3
  import './chunk-2CKDCC65.mjs';
4
4
  import './chunk-BRTABNC7.mjs';
5
5
  import './chunk-Y7GXGJFZ.mjs';
package/dist/server.mjs CHANGED
@@ -1,29 +1,29 @@
1
- import { answerRequest } from './chunk-GZ4YU36L.mjs';
1
+ import { answerRequest } from './chunk-IVVNKTHC.mjs';
2
2
  import { resolveVectorText } from './chunk-NJJN4FMM.mjs';
3
- import { DEFAULT_MAX_RETAINED_TASKS, isTerminalTaskStatus, TASK_RECORD_LOAD_CONCURRENCY, loadUWebSockets, SERVER_CLOSE_DRAIN_DEADLINE_MS, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, isTaskType, isTaskStatus, 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, createServerCloseSignal, signalServerClose, LeavingResponse, refuseAndClose, 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, createCloseAtExitWords, createDepartureWord, departureConfirmed, threadCloseAcknowledgedWithin, SERVER_CLOSE_ACKNOWLEDGE_GRACE_MS, threadCloseAcknowledged, refusedRegex, toHttpError, parseJsonObject, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJsonObject, validateDocumentBody, validateSuggest, readQueryBody, withServerQueryLimits, requestSignal, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, parseJson, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, isThreadFeedNote, clearGateSlot, clearBodyBudgetSlot, confirmDeparture, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-6U4C7VAD.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-6U4C7VAD.mjs';
5
- import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-E6CHNSMY.mjs';
3
+ import { DEFAULT_MAX_RETAINED_TASKS, isTerminalTaskStatus, TASK_RECORD_LOAD_CONCURRENCY, loadUWebSockets, SERVER_CLOSE_DRAIN_DEADLINE_MS, registerFeedRoute, SYNC_FEED_ROUTE, CHANGES_FEED_ROUTE, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, isTaskType, isTaskStatus, 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, createServerCloseSignal, signalServerClose, LeavingResponse, refuseAndClose, 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, createCloseAtExitWords, createDepartureWord, departureConfirmed, threadCloseAcknowledgedWithin, SERVER_CLOSE_ACKNOWLEDGE_GRACE_MS, threadCloseAcknowledged, refusedRegex, toHttpError, parseJsonObject, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJsonObject, validateDocumentBody, validateSuggest, readQueryBody, withServerQueryLimits, requestSignal, respondAnswer, encodeQueryResult, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, parseJson, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, respondPreparingError, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, isThreadFeedNote, clearGateSlot, clearBodyBudgetSlot, confirmDeparture, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-UFDD57KD.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-UFDD57KD.mjs';
5
+ import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-HB3EBTKC.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-TACP6VK6.mjs';
7
- import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-HFF2R73P.mjs';
8
- import { isRecord, validateIndexName } from './chunk-3WYTRM24.mjs';
7
+ import { syncServingSourceOf, changesServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-BVFJ5XAU.mjs';
8
+ import { isRecord, validateIndexName } from './chunk-UJQ2S5QU.mjs';
9
9
  import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
10
- import './chunk-34QTB6O7.mjs';
11
- import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-3TENTQKL.mjs';
10
+ import './chunk-KHZ6LAFB.mjs';
11
+ import { engineChangeSource, createSemaphore, createByteBudget, changesNotEnabled, subscriberMessageOf, ChangeCursor, changePositionList, seqNosByPartition } from './chunk-CVCBVUH4.mjs';
12
12
  import './chunk-UGMOBSMD.mjs';
13
- 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-H2R4BTSO.mjs';
13
+ 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-I255IQTR.mjs';
14
14
  import './chunk-JDDXV6UF.mjs';
15
- import { manifestFileRefs } from './chunk-HJCYLTVA.mjs';
15
+ import { manifestFileRefs } from './chunk-ICEZRKIS.mjs';
16
16
  import { encode as encode$1 } from './chunk-S5QMWECL.mjs';
17
17
  import './chunk-LNGE7SLY.mjs';
18
18
  import './chunk-L2GYY6KY.mjs';
19
- import './chunk-2M55WPWK.mjs';
20
- import './chunk-3UAYJW6R.mjs';
19
+ import './chunk-AKLCYPUY.mjs';
20
+ import './chunk-HNE4HNC2.mjs';
21
21
  import './chunk-R724DJSG.mjs';
22
22
  import './chunk-V6EUBAIT.mjs';
23
- import './chunk-5CYLXJYQ.mjs';
24
- import { querySuggestions } from './chunk-NOEMVUBS.mjs';
23
+ import './chunk-R5OFJZNI.mjs';
24
+ import { querySuggestions } from './chunk-5PUNOJC7.mjs';
25
25
  import './chunk-S2POFTLN.mjs';
26
- import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, validateReturnVectors, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-GYQKMYPG.mjs';
26
+ import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, bindQuerySignal, clearQuerySignal, providedDocId, validateBooleanOnlySettings, loadRerankRuntime, rulesOfStoredSynonyms } from './chunk-4QNWK42S.mjs';
27
27
  import './chunk-2CKDCC65.mjs';
28
28
  import './chunk-BRTABNC7.mjs';
29
29
  import { decodeBoundedMessage } from './chunk-Y7GXGJFZ.mjs';
@@ -1411,7 +1411,7 @@ function assertAllowRegex(allowRegex) {
1411
1411
  }
1412
1412
 
1413
1413
  // package.json
1414
- var version = "0.4.6-next.333";
1414
+ var version = "0.4.6-next.334";
1415
1415
 
1416
1416
  // src/server/package-version.ts
1417
1417
  function publishedPackageVersion() {
@@ -2959,6 +2959,7 @@ function mapHttpIndexConfig(http) {
2959
2959
  if (typeof http.schema !== "object" || http.schema === null || Array.isArray(http.schema)) {
2960
2960
  throw new NarsilError(ErrorCodes.CONFIG_INVALID, 'Index config requires a "schema" object');
2961
2961
  }
2962
+ validateBooleanOnlySettings(http);
2962
2963
  const config = { schema: http.schema };
2963
2964
  if (http.language !== void 0) config.language = http.language;
2964
2965
  if (http.partitions !== void 0) config.partitions = http.partitions;
@@ -2966,13 +2967,10 @@ function mapHttpIndexConfig(http) {
2966
2967
  if (http.bm25 !== void 0) config.bm25 = http.bm25;
2967
2968
  if (http.trackPositions !== void 0) config.trackPositions = http.trackPositions;
2968
2969
  if (http.textStorage !== void 0) config.textStorage = http.textStorage;
2969
- if (http.surfaceForms !== void 0) config.surfaceForms = http.surfaceForms === true;
2970
+ if (http.surfaceForms !== void 0) config.surfaceForms = http.surfaceForms;
2970
2971
  if (http.vectorPromotion !== void 0) config.vectorPromotion = http.vectorPromotion;
2971
2972
  if (http.strict !== void 0) config.strict = http.strict;
2972
- if (http.returnVectors !== void 0) {
2973
- validateReturnVectors(http.returnVectors);
2974
- config.returnVectors = http.returnVectors;
2975
- }
2973
+ if (http.returnVectors !== void 0) config.returnVectors = http.returnVectors;
2976
2974
  if (http.required !== void 0) config.required = http.required;
2977
2975
  if (http.patternValueLimit !== void 0) config.patternValueLimit = http.patternValueLimit;
2978
2976
  if (http.synonyms !== void 0) config.synonyms = http.synonyms;
@@ -1,32 +1,32 @@
1
- import { scheduleSyncRetention, createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-E6CHNSMY.mjs';
2
- export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-E6CHNSMY.mjs';
3
- import { buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, documentExportStream, requireRestoreMemory, memoryCheckpointStore, admitDurableWrite, metadataConfigOf, durableMetadataConfigOf, unpackIndexSnapshotEnvelope, nestedSchemaOf, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, loadSegmentedCheckpoint, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, commitAppended, listPersistedIndexes, removeLeftoverRewriteFiles, requireSavedPartitionCount, createDetachedIndex, shutDownRefusal, recordBatchesByPartition, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, partitionFailureFor, SINGLE_NODE_PRIMARY_TERM, deserializePayloadV1, readCurrentManifest, drainIndexStateForUnload, readSegmentManifest, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, createSeqOwner, commitEveryPartition, loadMetadata, reclaimUnlistedKeys, writeLiveVectors, dropStoredVectorValues, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, highestPartitionIdOf, growPartitionsTo, createMarkerWriter, metadataFromConfig, metadataPartitionCount } from './chunk-KFUHQC6X.mjs';
4
- export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, changeIndexAnalysis, changesOf, createByteReader, documentExportStream, dropHeldAnalysisChange, executeRebalance, followIndexChanges, heldAnalysisIsBuilt, holdsNamedSettings, openFileVectorReads, pagedPartitionLines, readDocumentExport, releaseHeldAnalysisChange, requireSavedPartitionCount, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout, updateChangesOf } from './chunk-KFUHQC6X.mjs';
5
- import { readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-NSMF4OHE.mjs';
6
- export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-NSMF4OHE.mjs';
7
- import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, indexConfigurationOf, updateIndexSync, decodeIndexConfiguration } from './chunk-3TENTQKL.mjs';
8
- export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, persistEpochStates, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-3TENTQKL.mjs';
1
+ import { scheduleSyncRetention, createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-HB3EBTKC.mjs';
2
+ export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-HB3EBTKC.mjs';
3
+ import { buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, documentExportStream, requireRestoreMemory, memoryCheckpointStore, admitDurableWrite, metadataConfigOf, durableMetadataConfigOf, unpackIndexSnapshotEnvelope, nestedSchemaOf, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, loadSegmentedCheckpoint, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, commitAppended, listPersistedIndexes, removeLeftoverRewriteFiles, requireSavedPartitionCount, createDetachedIndex, shutDownRefusal, recordBatchesByPartition, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, partitionFailureFor, SINGLE_NODE_PRIMARY_TERM, deserializePayloadV1, readCurrentManifest, drainIndexStateForUnload, readSegmentManifest, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, createSeqOwner, commitEveryPartition, loadMetadata, reclaimUnlistedKeys, writeLiveVectors, dropStoredVectorValues, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, highestPartitionIdOf, growPartitionsTo, createMarkerWriter, metadataFromConfig, metadataPartitionCount } from './chunk-Z622PLNH.mjs';
4
+ export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, changeIndexAnalysis, changesOf, createByteReader, documentExportStream, dropHeldAnalysisChange, executeRebalance, followIndexChanges, heldAnalysisIsBuilt, holdsNamedSettings, openFileVectorReads, pagedPartitionLines, readDocumentExport, releaseHeldAnalysisChange, requireSavedPartitionCount, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout, updateChangesOf } from './chunk-Z622PLNH.mjs';
5
+ import { readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-IALJ2X74.mjs';
6
+ export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-IALJ2X74.mjs';
7
+ import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, indexConfigurationOf, updateIndexSync, decodeIndexConfiguration } from './chunk-CVCBVUH4.mjs';
8
+ export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, persistEpochStates, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-CVCBVUH4.mjs';
9
9
  import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-UGMOBSMD.mjs';
10
- import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-H2R4BTSO.mjs';
11
- export { readSnapshotArchive } from './chunk-H2R4BTSO.mjs';
10
+ import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-I255IQTR.mjs';
11
+ export { readSnapshotArchive } from './chunk-I255IQTR.mjs';
12
12
  import { createDurableDirectory } from './chunk-57HDOVEE.mjs';
13
- import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, bytesThatSegmentsHoldInMemory, savedBytesOfManifest, checkPagedSegmentFully, readSegmentFile, buildEntry, NOTHING_SAVED, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, checkpointGarbage, removeCheckpointGarbage, nextSegmentKey, rewrittenHeaderKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, openPagedSegmentScan, countsAsLatestHolder, segmentKey, WAL_FORMAT_VERSION_WITH_PREVIOUS_DOCUMENT, SEGMENT_TAIL_PATTERN, writeSegmentHeader, WAL_FORMAT_VERSION, parseSegmentStartSeqNo, readWalSegments, joinFrames } from './chunk-26AKUBDX.mjs';
14
- export { bytesThatSegmentsHoldInMemory, checkPagedContents, checkPagedSegmentFully, checkPagedSelections, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSegmentScan, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-26AKUBDX.mjs';
15
- import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-47NXBGQG.mjs';
13
+ import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, bytesThatSegmentsHoldInMemory, savedBytesOfManifest, checkPagedSegmentFully, readSegmentFile, buildEntry, NOTHING_SAVED, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, checkpointGarbage, removeCheckpointGarbage, nextSegmentKey, rewrittenHeaderKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, openPagedSegmentScan, countsAsLatestHolder, segmentKey, WAL_FORMAT_VERSION_WITH_PREVIOUS_DOCUMENT, SEGMENT_TAIL_PATTERN, writeSegmentHeader, WAL_FORMAT_VERSION, parseSegmentStartSeqNo, readWalSegments, joinFrames } from './chunk-B6VO3BCX.mjs';
14
+ export { bytesThatSegmentsHoldInMemory, checkPagedContents, checkPagedSegmentFully, checkPagedSelections, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSegmentScan, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-B6VO3BCX.mjs';
15
+ import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-QWYIMVYT.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-HJCYLTVA.mjs';
18
+ import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-ICEZRKIS.mjs';
19
19
  import { encode } from './chunk-S5QMWECL.mjs';
20
20
  export { bindStorageHost } from './chunk-S5QMWECL.mjs';
21
21
  import { sha256 } from './chunk-LNGE7SLY.mjs';
22
22
  import { setNestedValue } from './chunk-L2GYY6KY.mjs';
23
- import { rewriteSpillOf } from './chunk-2M55WPWK.mjs';
24
- import { deserializePartition } from './chunk-3UAYJW6R.mjs';
23
+ import { rewriteSpillOf } from './chunk-AKLCYPUY.mjs';
24
+ import { deserializePartition } from './chunk-HNE4HNC2.mjs';
25
25
  import { decodeVectorIndexParts, bytesToVectors, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, graphPartsOfEarlierPayload, decodeVectorGraphPayload } from './chunk-R724DJSG.mjs';
26
26
  export { createHNSWIndex, osqBitsOf } from './chunk-R724DJSG.mjs';
27
27
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
28
- import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-5CYLXJYQ.mjs';
29
- import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, ARRAY_POSITION_GAP, fnv1a, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, toError, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-GYQKMYPG.mjs';
28
+ import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-R5OFJZNI.mjs';
29
+ import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, ARRAY_POSITION_GAP, fnv1a, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, toError, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-4QNWK42S.mjs';
30
30
  import { encodeDocument } from './chunk-2CKDCC65.mjs';
31
31
  import './chunk-BRTABNC7.mjs';
32
32
  import { decode } from './chunk-Y7GXGJFZ.mjs';
@@ -1,7 +1,7 @@
1
- export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-3EFLY5LQ.mjs';
1
+ export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-CHGJGKST.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-5CYLXJYQ.mjs';
4
- import './chunk-GYQKMYPG.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-R5OFJZNI.mjs';
4
+ import './chunk-4QNWK42S.mjs';
5
5
  import './chunk-2CKDCC65.mjs';
6
6
  import './chunk-BRTABNC7.mjs';
7
7
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,9 +1,9 @@
1
- import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-U6B3HHTP.mjs';
2
- export { bindSuggestionsHost } from './chunk-5E46Y42F.mjs';
3
- import { installSuggestionHooks } from './chunk-3EFLY5LQ.mjs';
1
+ import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-SCUYG24W.mjs';
2
+ export { bindSuggestionsHost } from './chunk-B276ZQIH.mjs';
3
+ import { installSuggestionHooks } from './chunk-CHGJGKST.mjs';
4
4
  import './chunk-V6EUBAIT.mjs';
5
- import { attachedRuntimeOf, attachRuntime } from './chunk-5CYLXJYQ.mjs';
6
- import './chunk-GYQKMYPG.mjs';
5
+ import { attachedRuntimeOf, attachRuntime } from './chunk-R5OFJZNI.mjs';
6
+ import './chunk-4QNWK42S.mjs';
7
7
  import './chunk-2CKDCC65.mjs';
8
8
  import './chunk-BRTABNC7.mjs';
9
9
  import './chunk-Y7GXGJFZ.mjs';
@@ -4,12 +4,12 @@ import { createDurableDirectory } from '../chunk-57HDOVEE.mjs';
4
4
  import '../chunk-S5QMWECL.mjs';
5
5
  import '../chunk-LNGE7SLY.mjs';
6
6
  import '../chunk-L2GYY6KY.mjs';
7
- import '../chunk-2M55WPWK.mjs';
8
- import '../chunk-3UAYJW6R.mjs';
7
+ import '../chunk-AKLCYPUY.mjs';
8
+ import '../chunk-HNE4HNC2.mjs';
9
9
  import '../chunk-R724DJSG.mjs';
10
10
  import '../chunk-V6EUBAIT.mjs';
11
- import { crc32 } from '../chunk-5CYLXJYQ.mjs';
12
- import '../chunk-GYQKMYPG.mjs';
11
+ import { crc32 } from '../chunk-R5OFJZNI.mjs';
12
+ import '../chunk-4QNWK42S.mjs';
13
13
  import '../chunk-2CKDCC65.mjs';
14
14
  import '../chunk-BRTABNC7.mjs';
15
15
  import '../chunk-Y7GXGJFZ.mjs';
@@ -1,5 +1,5 @@
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-75MBWQFW.mjs';
2
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-J343PP7Q.mjs';
3
3
  import './browser/chunk-HIC42RBU.mjs';
4
4
  import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
5
5
  import { createNarsilClient } from './browser/chunk-FBDTHGDR.mjs';
package/dist/sync.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, encodeJson, SYNC_SUBPROTOCOL, CHANGES_SUBPROTOCOL, decodeScore } from './chunk-TACP6VK6.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-GYQKMYPG.mjs';
3
+ import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-4QNWK42S.mjs';
4
4
  import './chunk-2CKDCC65.mjs';
5
5
  import './chunk-BRTABNC7.mjs';
6
6
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,4 +1,4 @@
1
- import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-75MBWQFW.mjs';
1
+ import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-J343PP7Q.mjs';
2
2
  import { storedText } from './browser/chunk-HIC42RBU.mjs';
3
3
  import './browser/chunk-YJHGOJAC.mjs';
4
4
  import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-3PGIOK7Z.mjs';
package/dist/synonyms.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { synonymSearchModule } from './chunk-GYQKMYPG.mjs';
1
+ import { synonymSearchModule } from './chunk-4QNWK42S.mjs';
2
2
  import './chunk-2CKDCC65.mjs';
3
3
  import './chunk-BRTABNC7.mjs';
4
4
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,18 +1,18 @@
1
- export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-FBGUKBW2.mjs';
2
- import './chunk-6U4C7VAD.mjs';
1
+ export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-2QQCR7KF.mjs';
2
+ import './chunk-UFDD57KD.mjs';
3
3
  import './chunk-TACP6VK6.mjs';
4
- import './chunk-34QTB6O7.mjs';
5
- import './chunk-H2R4BTSO.mjs';
6
- import './chunk-HJCYLTVA.mjs';
4
+ import './chunk-KHZ6LAFB.mjs';
5
+ import './chunk-I255IQTR.mjs';
6
+ import './chunk-ICEZRKIS.mjs';
7
7
  import './chunk-S5QMWECL.mjs';
8
8
  import './chunk-LNGE7SLY.mjs';
9
9
  import './chunk-L2GYY6KY.mjs';
10
- import './chunk-2M55WPWK.mjs';
11
- import './chunk-3UAYJW6R.mjs';
10
+ import './chunk-AKLCYPUY.mjs';
11
+ import './chunk-HNE4HNC2.mjs';
12
12
  import './chunk-R724DJSG.mjs';
13
13
  import './chunk-V6EUBAIT.mjs';
14
- import './chunk-5CYLXJYQ.mjs';
15
- import './chunk-GYQKMYPG.mjs';
14
+ import './chunk-R5OFJZNI.mjs';
15
+ import './chunk-4QNWK42S.mjs';
16
16
  import './chunk-2CKDCC65.mjs';
17
17
  import './chunk-BRTABNC7.mjs';
18
18
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,8 +1,8 @@
1
- import { holdCopyPublication, copyGenerationOf, transferIndexToPool, loadIndexOntoWorkers } from './chunk-PBVLCGCW.mjs';
2
- export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-PBVLCGCW.mjs';
1
+ import { holdCopyPublication, copyGenerationOf, transferIndexToPool, loadIndexOntoWorkers } from './chunk-RHFUQ76T.mjs';
2
+ export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-RHFUQ76T.mjs';
3
3
  import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
4
- import { DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_MAX_THREADS_LEFT_RUNNING, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, toError, isDeterministicFailure, workerIneligibility, reportIneligible, fnv1a, selectionKeeps, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, alreadyPresentOnWorker, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, eligibleIndexNames, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-GYQKMYPG.mjs';
5
- export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-GYQKMYPG.mjs';
4
+ import { DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_MAX_THREADS_LEFT_RUNNING, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, toError, isDeterministicFailure, workerIneligibility, reportIneligible, fnv1a, selectionKeeps, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, alreadyPresentOnWorker, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, eligibleIndexNames, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-4QNWK42S.mjs';
5
+ export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-4QNWK42S.mjs';
6
6
  import './chunk-2CKDCC65.mjs';
7
7
  import './chunk-BRTABNC7.mjs';
8
8
  import './chunk-Y7GXGJFZ.mjs';
@@ -1,4 +1,4 @@
1
- import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-GYQKMYPG.mjs';
1
+ import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-4QNWK42S.mjs';
2
2
  import '../chunk-2CKDCC65.mjs';
3
3
  import '../chunk-BRTABNC7.mjs';
4
4
  import '../chunk-Y7GXGJFZ.mjs';
@@ -32,9 +32,9 @@ async function importBootstrapModule(moduleUrl) {
32
32
  await import(moduleUrl);
33
33
  }
34
34
  async function stopServingRequests(refuseNewRequests) {
35
- const { drainRequestThread } = await import('../thread-J32AOE3H.mjs');
35
+ const { drainRequestThread } = await import('../thread-6BVFFMP7.mjs');
36
36
  await drainRequestThread(refuseNewRequests);
37
- const { closeLongQueryThread } = await import('../long-query-thread-6B2HXSBI.mjs');
37
+ const { closeLongQueryThread } = await import('../long-query-thread-SOJ25FZU.mjs');
38
38
  closeLongQueryThread();
39
39
  }
40
40
  function holdsCopies(executor) {
@@ -91,7 +91,7 @@ function createActionHandler(executor) {
91
91
  if (!holdsCopies(executor)) {
92
92
  throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
93
93
  }
94
- const starting = import('../thread-J32AOE3H.mjs').then(
94
+ const starting = import('../thread-6BVFFMP7.mjs').then(
95
95
  ({ serveRequests }) => serveRequests(executor, action.settings)
96
96
  );
97
97
  serving.start = starting.then(
@@ -108,7 +108,7 @@ function createActionHandler(executor) {
108
108
  if (!holdsCopies(executor)) {
109
109
  throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
110
110
  }
111
- const { serveLongQueries } = await import('../long-query-thread-6B2HXSBI.mjs');
111
+ const { serveLongQueries } = await import('../long-query-thread-SOJ25FZU.mjs');
112
112
  serveLongQueries(executor, action.settings);
113
113
  servingRequests = true;
114
114
  post(buildSuccessResponse(action.requestId, void 0));
@@ -156,8 +156,8 @@ async function setup() {
156
156
  }
157
157
  requireSearchBackendSettings();
158
158
  const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
159
- import('../direct-executor-2Y3JPVXT.mjs'),
160
- import('../query-actions-H6H54EJE.mjs'),
159
+ import('../direct-executor-P2Z7T57F.mjs'),
160
+ import('../query-actions-WKC4SQEZ.mjs'),
161
161
  loadVectorCode(),
162
162
  loadGeoCode(),
163
163
  importOptionalReads(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delali/narsil",
3
- "version": "0.4.6-next.333",
3
+ "version": "0.4.6-next.334",
4
4
  "type": "module",
5
5
  "description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
6
6
  "author": "Delali (https://sondelali.com)",
@@ -656,9 +656,9 @@
656
656
  }
657
657
  },
658
658
  "optionalDependencies": {
659
- "@delali/narsil-native-linux-arm64": "0.4.6-next.333",
660
- "@delali/narsil-native-linux-x64": "0.4.6-next.333",
661
- "@delali/narsil-native-win32-arm64": "0.4.6-next.333",
662
- "@delali/narsil-native-win32-x64": "0.4.6-next.333"
659
+ "@delali/narsil-native-linux-arm64": "0.4.6-next.334",
660
+ "@delali/narsil-native-linux-x64": "0.4.6-next.334",
661
+ "@delali/narsil-native-win32-arm64": "0.4.6-next.334",
662
+ "@delali/narsil-native-win32-x64": "0.4.6-next.334"
663
663
  }
664
664
  }