@delali/narsil 0.3.1-next.160 → 0.3.1-next.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{chunk-4RNSFVWI.mjs → chunk-KQXKCMGQ.mjs} +7 -5
- package/dist/browser/{core-leaf-TJAGWPZZ.mjs → core-leaf-SIWXFZLV.mjs} +66 -4
- package/dist/browser/{module-362VSIGR.mjs → module-PMQBRESM.mjs} +167 -45
- package/dist/browser/{storage-leaf-X6CNRHJS.mjs → storage-leaf-VGR2BWJJ.mjs} +35 -26
- package/dist/browser/{store-leaf-AEMTAVHX.mjs → store-leaf-3L33V35P.mjs} +3 -2
- package/dist/browser/{suggestions-leaf-3Y6MR6OF.mjs → suggestions-leaf-UBNDVKBD.mjs} +3 -1
- package/dist/{capabilities-BKDrry0z.d.ts → capabilities-DkXAkb-X.d.ts} +2 -2
- package/dist/{chunk-NC4QLCZC.mjs → chunk-3UGZBRDN.mjs} +1 -1
- package/dist/{chunk-75UNINFA.mjs → chunk-5DUTOEK5.mjs} +1 -1
- package/dist/{chunk-U6B7DUQW.mjs → chunk-5P72V66D.mjs} +4 -4
- package/dist/{chunk-TSLV5P2J.mjs → chunk-7OE73OO4.mjs} +6 -10
- package/dist/{chunk-GF4K7IUK.mjs → chunk-BKOMO7HT.mjs} +5 -5
- package/dist/{chunk-SXIRM4MX.mjs → chunk-D5GNFN6X.mjs} +26 -15
- package/dist/{chunk-SHGN3QIF.mjs → chunk-DSXFN5BF.mjs} +4 -4
- package/dist/{chunk-TINW4BSH.mjs → chunk-EEYDJB4Z.mjs} +17 -14
- package/dist/{chunk-2RIS76RJ.mjs → chunk-EI7U43MX.mjs} +1 -1
- package/dist/{chunk-LF4GB4PO.mjs → chunk-EIR3IQCL.mjs} +1 -1
- package/dist/{chunk-2JRERUNZ.mjs → chunk-ES5EOXT6.mjs} +2 -2
- package/dist/{chunk-FVZ5DB6Y.mjs → chunk-FSLQHOKZ.mjs} +1 -1
- package/dist/{chunk-W34VJXY7.mjs → chunk-GJKFXKMI.mjs} +4 -4
- package/dist/{chunk-6EZW2GQL.mjs → chunk-GQLOEACG.mjs} +4 -3
- package/dist/{chunk-H64YDF5M.mjs → chunk-K4BMDPPX.mjs} +1 -1
- package/dist/{chunk-7MWYORQC.mjs → chunk-KSOZJEYU.mjs} +1 -1
- package/dist/{chunk-BXM7XM4G.mjs → chunk-NXMGUDZA.mjs} +2 -2
- package/dist/{chunk-P5YLI5ED.mjs → chunk-Q2WQSAYH.mjs} +1 -1
- package/dist/{chunk-V3SGPXWQ.mjs → chunk-Q7CUUSJ2.mjs} +2 -2
- package/dist/{chunk-3D6RZGJH.mjs → chunk-R4F7ZTVG.mjs} +2 -2
- package/dist/{chunk-OOO54OVC.mjs → chunk-RXMR2SIQ.mjs} +3 -3
- package/dist/{chunk-HOOR4CP5.mjs → chunk-STLNPJXU.mjs} +2 -2
- package/dist/{chunk-FE3MRIBN.mjs → chunk-TOZENMM7.mjs} +5 -5
- package/dist/{chunk-PTTMGRG5.mjs → chunk-V4YIEMAI.mjs} +2 -2
- package/dist/{chunk-LAWIJRMJ.mjs → chunk-VJOS6MHF.mjs} +67 -5
- package/dist/{chunk-K67I3RF4.mjs → chunk-XRBPHCCT.mjs} +2 -2
- package/dist/{chunk-E2F6LZR3.mjs → chunk-XXWEUXE4.mjs} +1 -1
- package/dist/{react-native/chunks/chunk-ZIU6TWXG.mjs → chunk-ZBVHS5KF.mjs} +1 -1
- package/dist/{chunk-IH3G6SJO.mjs → chunk-ZGYF37MG.mjs} +1 -1
- package/dist/{client-CTp8RRiK.d.ts → client-VJmV_AjZ.d.ts} +3 -3
- package/dist/client.d.ts +6 -6
- package/dist/{config-_WT5grSL.d.ts → config-Cb3FOlE_.d.ts} +1 -1
- package/dist/{config-PCNzWjHL.d.ts → config-ZZg4cwQz.d.ts} +1 -1
- package/dist/{core-leaf-KXFGP74A.mjs → core-leaf-LOXCD7MY.mjs} +2 -2
- package/dist/{direct-executor-MKTZBR26.mjs → direct-executor-PF4UDSUW.mjs} +2 -2
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +31 -32
- package/dist/{engine-DBRVR_d-.d.ts → engine-DdOs682x.d.ts} +9 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/index.react-native.mjs +4 -4
- package/dist/{long-query-thread-JMGNGF6V.mjs → long-query-thread-OTVLP2OI.mjs} +12 -12
- package/dist/{module-ZJ6ARG6V.mjs → module-UIKSHY3G.mjs} +173 -51
- package/dist/{optional-reads-BR3BOVZW.mjs → optional-reads-RSLNSGNG.mjs} +1 -1
- package/dist/{optional-writes-DDFHYUOH.mjs → optional-writes-4ITCV7YT.mjs} +4 -4
- package/dist/{paged-partition-archive-G576XGVE.mjs → paged-partition-archive-VMJ2AUA6.mjs} +11 -11
- package/dist/partial-words.browser.mjs +3 -2
- package/dist/partial-words.mjs +2 -2
- package/dist/persistence/durability/checkpoint-worker.mjs +9 -9
- package/dist/{phrase-module-XK3T44VU.mjs → phrase-module-IWSG2DDZ.mjs} +1 -1
- package/dist/{query-actions-OMXJEC2J.mjs → query-actions-EW72OQXY.mjs} +2 -2
- package/dist/query-suggestions/merge-worker.mjs +5 -5
- package/dist/query-suggestions.browser.mjs +1 -1
- package/dist/query-suggestions.d.ts +1 -1
- package/dist/query-suggestions.mjs +3 -3
- package/dist/react-native/chunks/{chunk-52QD7CBJ.mjs → chunk-2JMAUU26.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-72OKYHZL.mjs → chunk-3RUXKZJG.mjs} +4 -3
- package/dist/react-native/chunks/{chunk-L4R5ITVG.mjs → chunk-AUXXPSFB.mjs} +17 -15
- package/dist/{chunk-IB4BYLE3.mjs → react-native/chunks/chunk-HEELWLKL.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-IY6U6HRA.mjs → chunk-I5W7A2JF.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-AQOWRH2C.mjs → chunk-RVHCQJQM.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-XEGKQKLY.mjs → chunk-VIPNDN4B.mjs} +67 -5
- package/dist/react-native/chunks/{chunk-G3CUQ333.mjs → chunk-XBTFK3AZ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-J2NQW353.mjs → chunk-XOCM3BFU.mjs} +1 -1
- package/dist/react-native/chunks/{core-leaf-5B4JXCVA.mjs → core-leaf-O3236QY3.mjs} +2 -2
- package/dist/react-native/chunks/{module-VUA27HZZ.mjs → module-LRR7D5ZO.mjs} +168 -46
- package/dist/react-native/chunks/{optional-reads-WDTLLHUT.mjs → optional-reads-TOWGNEDH.mjs} +1 -1
- package/dist/react-native/chunks/{optional-writes-FZV3QW34.mjs → optional-writes-7AFBIZMN.mjs} +5 -5
- package/dist/react-native/chunks/{phrase-module-KCQWVXYZ.mjs → phrase-module-3A4AKMKL.mjs} +1 -1
- package/dist/react-native/chunks/{restore-queue-EI2V2I4S.mjs → restore-queue-7FSHTGJ5.mjs} +7 -7
- package/dist/react-native/chunks/{segment-codec-leaf-6ULP7H3I.mjs → segment-codec-leaf-4QV4HO4R.mjs} +5 -5
- package/dist/react-native/chunks/{segment-merge-leaf-F4GQZNK6.mjs → segment-merge-leaf-5DUZZSXJ.mjs} +6 -6
- package/dist/react-native/chunks/{storage-leaf-OAXBU2L6.mjs → storage-leaf-PNU6HWY7.mjs} +42 -33
- package/dist/react-native/chunks/{store-leaf-GY2ZZFXB.mjs → store-leaf-ESVUGYYO.mjs} +6 -6
- package/dist/react-native/chunks/{suggestions-leaf-SQEZ4IBS.mjs → suggestions-leaf-MOVOPBGD.mjs} +7 -7
- package/dist/react-native/chunks/{worker-copies-EEHSCFJW.mjs → worker-copies-VQGF3WZX.mjs} +5 -5
- package/dist/react-native/partial-words.mjs +6 -5
- package/dist/react-native/pattern.mjs +1 -1
- package/dist/react-native/query-suggestions.mjs +4 -4
- package/dist/react-native/sync.mjs +4 -4
- package/dist/react-native/synonyms.mjs +4 -4
- package/dist/react.d.ts +7 -7
- package/dist/{rerank-Y6MWBMTT.mjs → rerank-QHJXPSAK.mjs} +2 -2
- package/dist/{restore-queue-KPYSRJ4A.mjs → restore-queue-5W5HX44H.mjs} +5 -5
- package/dist/{segment-codec-leaf-6IFBSBPN.mjs → segment-codec-leaf-7VLVXKWO.mjs} +3 -3
- package/dist/{segment-merge-leaf-VE3FUSVE.mjs → segment-merge-leaf-22XR3IGA.mjs} +3 -3
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +17 -17
- package/dist/{storage-leaf-HMIIOUYN.mjs → storage-leaf-ZZ77C3DX.mjs} +37 -35
- package/dist/{store-leaf-M7T7SUZJ.mjs → store-leaf-LJ6D2PMF.mjs} +4 -4
- package/dist/{suggestions-leaf-Q3Q5D6XV.mjs → suggestions-leaf-KTQHO3PY.mjs} +6 -6
- package/dist/sync/filesystem.d.ts +2 -2
- package/dist/sync/filesystem.mjs +6 -6
- package/dist/sync/indexeddb.d.ts +2 -2
- package/dist/sync.browser.mjs +1 -1
- package/dist/sync.d.ts +3 -3
- package/dist/sync.mjs +2 -2
- package/dist/synonyms.browser.mjs +1 -1
- package/dist/synonyms.mjs +2 -2
- package/dist/{tasks-B4tT4vmP.d.ts → tasks-CxA-J_Ty.d.ts} +2 -2
- package/dist/{thread-SNILJXX3.mjs → thread-XWDK6TAR.mjs} +11 -11
- package/dist/{types-CTg0KaMy.d.ts → types-BboB278g.d.ts} +1 -1
- package/dist/vector/search-worker.mjs +4 -4
- package/dist/{worker-copies-ZLZS2CUM.mjs → worker-copies-ODAAGQRC.mjs} +5 -5
- package/dist/workers/entry.mjs +8 -8
- package/openapi.json +2 -2
- package/package.json +7 -7
- /package/dist/{chunk-YETKPX5M.mjs → chunk-T4HMSZCX.mjs} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { sha256 } from './chunk-H3MDVPBO.mjs';
|
|
2
2
|
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
|
-
import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-
|
|
4
|
-
import { deserializePartition } from './chunk-
|
|
5
|
-
import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-
|
|
6
|
-
import { HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, packChecksummedEnvelope, hasNrslMagic, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_FOLDER, packEnvelopeWithChecksum, checksumOfChunks, storedStateToWire, storedStateFromWire } from './chunk-
|
|
7
|
-
import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, isCompositePartition, yieldToEventLoop, decodeStoredDocument, buildPartialWordTableFrom, configurationPayloadOf, withOpenIndex, emitSyncChange, newSyncEpoch, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, 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, endOfValue, compareScores, isSyncEpoch, loadSchemaCodeFor, decodeEveryStoredDocument, loadGzip, createPartitionManager, createPartitionRouter, arrayPositionsAreStale, insertDocumentVectors, survivorDocumentsOf, partitionStateOf,
|
|
8
|
-
import './chunk-
|
|
9
|
-
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, STATISTICS_BROADCAST_INTERVAL_MS, turnsAreBudgeted, turnIsSpent, yieldTurn, EXPORT_CHUNK_BYTES, countWrite, ANALYSIS_CHANGE_MEMBERS, collectAndReturnPages, osqRecordBytes, createFixedBuffer, FOREIGN_STATS_TTL_MS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, ANALYSIS_HOLD_APPLY_INTERVAL_MS, magnitude,
|
|
10
|
-
export { createHNSWIndex, osqBitsOf } from './chunk-
|
|
3
|
+
import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-HEELWLKL.mjs';
|
|
4
|
+
import { deserializePartition } from './chunk-XOCM3BFU.mjs';
|
|
5
|
+
import { mergeFieldIndexes, selectionKeeps, fieldIndexRemapOf, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, shareSegmentArrays, freezeSegmentShared, holdsADiscardedField, toError, segmentArraysOf, mergeSegmentContents, buildSegmentPayloads, createRequestId } from './chunk-RVHCQJQM.mjs';
|
|
6
|
+
import { HEADER_SIZE, requireWithinFileLimit, crc32Init, crc32Update, crc32Final, engineVersionParts, writeHeader, crc32, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, packChecksummedEnvelope, hasNrslMagic, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_FOLDER, packEnvelopeWithChecksum, checksumOfChunks, storedStateToWire, storedStateFromWire } from './chunk-3RUXKZJG.mjs';
|
|
7
|
+
import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, generateId, wrapFrozenTokenTable, createEncodedDocumentSource, assemblePagedFrozenSegment, isCompositePartition, yieldToEventLoop, decodeStoredDocument, buildPartialWordTableFrom, configurationPayloadOf, withOpenIndex, emitSyncChange, newSyncEpoch, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, 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, endOfValue, compareScores, isSyncEpoch, loadSchemaCodeFor, decodeEveryStoredDocument, loadGzip, createPartitionManager, createPartitionRouter, arrayPositionsAreStale, insertDocumentVectors, decodeMapWithoutFields, survivorDocumentsOf, partitionStateOf, removeDocumentVectors } from './chunk-AUXXPSFB.mjs';
|
|
8
|
+
import './chunk-2JMAUU26.mjs';
|
|
9
|
+
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, STATISTICS_BROADCAST_INTERVAL_MS, turnsAreBudgeted, turnIsSpent, yieldTurn, EXPORT_CHUNK_BYTES, countWrite, ANALYSIS_CHANGE_MEMBERS, collectAndReturnPages, osqRecordBytes, createFixedBuffer, FOREIGN_STATS_TTL_MS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, ANALYSIS_HOLD_APPLY_INTERVAL_MS, magnitude, rescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, createVectorFileReader, MAX_IMPORT_REFUSALS_REPORTED, decodeVectorIndexParts, signalOfSearch, requireSearchActive, osqQuantize, createOsqScratch, stageQueryLevels, scalarQueryProducts, readTrailer, osqEstimate, osqDistance, toDistance, decodeVectorFilePayload, DEFAULT_VECTOR_METRIC, defaultQuantizationFor, VECTOR_FILE_MAX_VECTORS, deadBytesFor, waitOutsideCountedWrite, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN, vectorsPerFile, vectorsToBytes, decodeVectorGraphPartPayload, assembleGraphParts, nodeThreadId, fnv1a, osqBitsOf, countDead, detectRuntime, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-VIPNDN4B.mjs';
|
|
10
|
+
export { createHNSWIndex, osqBitsOf } from './chunk-VIPNDN4B.mjs';
|
|
11
11
|
import './chunk-4EXKQ2IB.mjs';
|
|
12
|
-
import { nativeSearchCoreIsEnabled, loadNativeCore } from './chunk-
|
|
12
|
+
import { nativeSearchCoreIsEnabled, loadNativeCore } from './chunk-XBTFK3AZ.mjs';
|
|
13
13
|
import { reactNativeHost } from './chunk-PVMEHBQO.mjs';
|
|
14
14
|
import { setNestedValue, restoreVectorFields } from './chunk-OK3WUA6N.mjs';
|
|
15
15
|
import { decode, decodeMulti, encodeDocument } from './chunk-YOTP2FPE.mjs';
|
|
@@ -5728,6 +5728,20 @@ function formatSegmentStart(startSeqNo) {
|
|
|
5728
5728
|
return startSeqNo.toString().padStart(16, "0");
|
|
5729
5729
|
}
|
|
5730
5730
|
|
|
5731
|
+
// src/persistence/durability/complete-graphs.ts
|
|
5732
|
+
async function whileGraphsStayComplete(vectorIndexes, capture3) {
|
|
5733
|
+
const letBuildsIn = [];
|
|
5734
|
+
try {
|
|
5735
|
+
for (const fieldPath of [...vectorIndexes.keys()].sort()) {
|
|
5736
|
+
const vectorIndex = vectorIndexes.get(fieldPath);
|
|
5737
|
+
if (vectorIndex !== void 0) letBuildsIn.push(await vectorIndex.holdGraphComplete());
|
|
5738
|
+
}
|
|
5739
|
+
return await capture3();
|
|
5740
|
+
} finally {
|
|
5741
|
+
for (const release of letBuildsIn) release();
|
|
5742
|
+
}
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5731
5745
|
// src/distribution/replication/replica.ts
|
|
5732
5746
|
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
5733
5747
|
if (entry.document === null) {
|
|
@@ -6825,9 +6839,7 @@ function prepareSearch(data, query, k, options, accepts, excluded, shared) {
|
|
|
6825
6839
|
if (field === null) return null;
|
|
6826
6840
|
const window = options.rescoreWindow ?? k;
|
|
6827
6841
|
let depth = window;
|
|
6828
|
-
if (data.codes !== null)
|
|
6829
|
-
depth = options.oversample === void 0 ? defaultRescoreDepth(data.codes.bits, data.dimension, window) : Math.ceil(window * options.oversample);
|
|
6830
|
-
}
|
|
6842
|
+
if (data.codes !== null) depth = rescoreDepth(data.codes.bits, data.dimension, window, options.oversample);
|
|
6831
6843
|
const ef = Math.max(options.efSearch ?? defaultEfSearch(data.dimension, window), depth);
|
|
6832
6844
|
const capacity = Math.min(data.total, ef);
|
|
6833
6845
|
const allocate2 = (bytes) => shared ? createFixedBuffer(bytes) : new ArrayBuffer(bytes);
|
|
@@ -7125,9 +7137,7 @@ function* walkColdGraph(data, query, k, options, accepts, excluded, fetchesRows)
|
|
|
7125
7137
|
const window = options.rescoreWindow ?? k;
|
|
7126
7138
|
const codes = data.codes;
|
|
7127
7139
|
let depth = window;
|
|
7128
|
-
if (codes !== null)
|
|
7129
|
-
depth = options.oversample === void 0 ? defaultRescoreDepth(codes.bits, data.dimension, window) : Math.ceil(window * options.oversample);
|
|
7130
|
-
}
|
|
7140
|
+
if (codes !== null) depth = rescoreDepth(codes.bits, data.dimension, window, options.oversample);
|
|
7131
7141
|
const ef = Math.max(options.efSearch ?? defaultEfSearch(data.dimension, window), depth);
|
|
7132
7142
|
const codeRowBytes = codes === null ? null : computeCodeBlockLayout(data.dimension, codes.bits).slotStride;
|
|
7133
7143
|
const scope = {
|
|
@@ -8003,9 +8013,8 @@ function wholePartitionsWhereMostChanged(manager, rules) {
|
|
|
8003
8013
|
};
|
|
8004
8014
|
}
|
|
8005
8015
|
async function captureCheckpoint(indexState, manager, vectorIndexes, wholePartitionsOf = noWholePartitions, priorCheckpointThatLimitsTheRecords, listedVectorFields = [], termHistoryOf, onCaptured) {
|
|
8006
|
-
|
|
8007
|
-
return
|
|
8008
|
-
[...indexState.partitions.values()],
|
|
8016
|
+
const whileNoBuildPassOrMutationRuns = (capture3) => whileGraphsStayComplete(vectorIndexes, () => whileNoMutationApplies([...indexState.partitions.values()], capture3));
|
|
8017
|
+
return whileNoBuildPassOrMutationRuns(
|
|
8009
8018
|
() => captureAppliedPrefix(manager, (cutoffs) => {
|
|
8010
8019
|
onCaptured?.();
|
|
8011
8020
|
const partitionCount = manager.partitionCount;
|
|
@@ -13795,14 +13804,15 @@ function priorPartitionsOf(earlier, partitionCount) {
|
|
|
13795
13804
|
async function writeCurrentLayout(deps, earlier, targets, fileRefs) {
|
|
13796
13805
|
const priorVectors = priorVectorsOf(earlier, fileRefs);
|
|
13797
13806
|
const plans = /* @__PURE__ */ new Map();
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13807
|
+
await whileGraphsStayComplete(deps.vectorIndexes, () => {
|
|
13808
|
+
for (const [fieldPath, vectorIndex] of deps.vectorIndexes) {
|
|
13809
|
+
const listed = priorVectors.find((ref) => ref.fieldPath === fieldPath);
|
|
13810
|
+
plans.set(
|
|
13811
|
+
fieldPath,
|
|
13812
|
+
vectorIndex.planCheckpoint(listed === void 0 ? null : listed.files.map((file) => file.key), true)
|
|
13813
|
+
);
|
|
13814
|
+
}
|
|
13815
|
+
});
|
|
13806
13816
|
const written = await writeCheckpointSegments({
|
|
13807
13817
|
store: deps.store,
|
|
13808
13818
|
metadata: deps.metadata,
|
|
@@ -14446,9 +14456,11 @@ async function writeCaptured(input, store, prior, captured) {
|
|
|
14446
14456
|
}
|
|
14447
14457
|
async function writeSnapshotOnlyCheckpoint(input) {
|
|
14448
14458
|
const store = adapterCheckpointStore(input.adapter);
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14459
|
+
const { prior, captured } = await whileGraphsStayComplete(input.vectorIndexes, async () => {
|
|
14460
|
+
const prior2 = await readCurrentManifest(store, input.indexName);
|
|
14461
|
+
const captured2 = await captureAppliedPrefix(input.manager, (cutoffs) => capture(input, prior2, cutoffs));
|
|
14462
|
+
return { prior: prior2, captured: captured2 };
|
|
14463
|
+
});
|
|
14452
14464
|
try {
|
|
14453
14465
|
await writeCaptured(input, store, prior, captured);
|
|
14454
14466
|
return {
|
|
@@ -17099,10 +17111,7 @@ function capture2(input) {
|
|
|
17099
17111
|
return { targets, contents, plans };
|
|
17100
17112
|
}
|
|
17101
17113
|
async function buildArchiveFromMemory(input) {
|
|
17102
|
-
|
|
17103
|
-
for (const vectorIndex of input.vectorIndexes.values()) await vectorIndex.completeGraph();
|
|
17104
|
-
}
|
|
17105
|
-
const captured = capture2(input);
|
|
17114
|
+
const captured = input.partitionId === null ? await whileGraphsStayComplete(input.vectorIndexes, () => capture2(input)) : capture2(input);
|
|
17106
17115
|
const store = memoryCheckpointStore();
|
|
17107
17116
|
const written = await writeCheckpointSegments({
|
|
17108
17117
|
store,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
2
|
-
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-
|
|
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-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
2
|
+
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-I5W7A2JF.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-3RUXKZJG.mjs';
|
|
4
|
+
import './chunk-AUXXPSFB.mjs';
|
|
5
|
+
import './chunk-2JMAUU26.mjs';
|
|
6
|
+
import './chunk-VIPNDN4B.mjs';
|
|
7
7
|
import './chunk-4EXKQ2IB.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-XBTFK3AZ.mjs';
|
|
9
9
|
import './chunk-PVMEHBQO.mjs';
|
|
10
10
|
import './chunk-YOTP2FPE.mjs';
|
|
11
11
|
import './chunk-FTQ7JNMU.mjs';
|
package/dist/react-native/chunks/{suggestions-leaf-SQEZ4IBS.mjs → suggestions-leaf-MOVOPBGD.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
2
|
-
import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-
|
|
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 } from './chunk-
|
|
4
|
-
import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
2
|
+
import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-I5W7A2JF.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-3RUXKZJG.mjs';
|
|
4
|
+
import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-AUXXPSFB.mjs';
|
|
5
|
+
import './chunk-2JMAUU26.mjs';
|
|
6
|
+
import './chunk-VIPNDN4B.mjs';
|
|
7
7
|
import './chunk-4EXKQ2IB.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-XBTFK3AZ.mjs';
|
|
9
9
|
import './chunk-PVMEHBQO.mjs';
|
|
10
10
|
import { decode } from './chunk-YOTP2FPE.mjs';
|
|
11
11
|
import './chunk-FTQ7JNMU.mjs';
|
|
@@ -669,7 +669,7 @@ function updateBans(runtime, indexName, raw) {
|
|
|
669
669
|
function removeQuery(runtime, indexName, raw) {
|
|
670
670
|
const phrase = normaliseBan(raw);
|
|
671
671
|
return runtime.withWriteLock(indexName, async () => {
|
|
672
|
-
await banPhrases(runtime, indexName, (current) =>
|
|
672
|
+
await banPhrases(runtime, indexName, (current) => unionOfBans(current, [phrase]));
|
|
673
673
|
return removeFromSuggestions(runtime, indexName, [phrase]);
|
|
674
674
|
});
|
|
675
675
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-
|
|
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-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS, resolveRequestThreadCount, CONSECUTIVE_TIMEOUTS_BEFORE_DEATH, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-
|
|
1
|
+
import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-RVHCQJQM.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-AUXXPSFB.mjs';
|
|
3
|
+
import './chunk-2JMAUU26.mjs';
|
|
4
|
+
import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS, resolveRequestThreadCount, CONSECUTIVE_TIMEOUTS_BEFORE_DEATH, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-VIPNDN4B.mjs';
|
|
5
5
|
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-4EXKQ2IB.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-XBTFK3AZ.mjs';
|
|
7
7
|
import './chunk-PVMEHBQO.mjs';
|
|
8
8
|
import './chunk-YOTP2FPE.mjs';
|
|
9
9
|
import { schemaFieldsOf } from './chunk-FTQ7JNMU.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH, FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-
|
|
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-AUXXPSFB.mjs';
|
|
2
|
+
import './chunks/chunk-2JMAUU26.mjs';
|
|
3
|
+
import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH, FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-VIPNDN4B.mjs';
|
|
4
4
|
import { fuzzyTermMatches, storedText } from './chunks/chunk-4EXKQ2IB.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-XBTFK3AZ.mjs';
|
|
6
6
|
import './chunks/chunk-PVMEHBQO.mjs';
|
|
7
7
|
import './chunks/chunk-YOTP2FPE.mjs';
|
|
8
8
|
import './chunks/chunk-FTQ7JNMU.mjs';
|
|
@@ -383,7 +383,8 @@ var SpellingTable = class extends SurfaceTable {
|
|
|
383
383
|
for (const _point of word) points++;
|
|
384
384
|
if (points <= 3) continue;
|
|
385
385
|
spellings.add(word);
|
|
386
|
-
plan.
|
|
386
|
+
const entry = plan.prepare(word);
|
|
387
|
+
plan.points[entry] = points;
|
|
387
388
|
}
|
|
388
389
|
reserveStrings(this, spellings);
|
|
389
390
|
const members = collectRuns(plan);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { storedValuesOf, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, bitsetHas, bitsetSet, TYPO_CLAIM_SLOTS_PER_WORD, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, storedText, tabulatedLevenshtein } from './chunks/chunk-4EXKQ2IB.mjs';
|
|
2
|
-
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-
|
|
2
|
+
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-XBTFK3AZ.mjs';
|
|
3
3
|
import './chunks/chunk-PVMEHBQO.mjs';
|
|
4
4
|
import './chunks/chunk-FTQ7JNMU.mjs';
|
|
5
5
|
import { codePointCount, exceedsCodePoints } from './chunks/chunk-HRDMIQ63.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import './chunks/chunk-
|
|
1
|
+
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-AUXXPSFB.mjs';
|
|
2
|
+
import './chunks/chunk-2JMAUU26.mjs';
|
|
3
|
+
import './chunks/chunk-VIPNDN4B.mjs';
|
|
4
4
|
import './chunks/chunk-4EXKQ2IB.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-XBTFK3AZ.mjs';
|
|
6
6
|
import './chunks/chunk-PVMEHBQO.mjs';
|
|
7
7
|
import './chunks/chunk-YOTP2FPE.mjs';
|
|
8
8
|
import './chunks/chunk-FTQ7JNMU.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import './chunks/chunk-
|
|
1
|
+
import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-AUXXPSFB.mjs';
|
|
2
|
+
import './chunks/chunk-2JMAUU26.mjs';
|
|
3
|
+
import './chunks/chunk-VIPNDN4B.mjs';
|
|
4
4
|
import './chunks/chunk-4EXKQ2IB.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-XBTFK3AZ.mjs';
|
|
6
6
|
import './chunks/chunk-PVMEHBQO.mjs';
|
|
7
7
|
import './chunks/chunk-YOTP2FPE.mjs';
|
|
8
8
|
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunks/chunk-FTQ7JNMU.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import './chunks/chunk-
|
|
1
|
+
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-AUXXPSFB.mjs';
|
|
2
|
+
import './chunks/chunk-2JMAUU26.mjs';
|
|
3
|
+
import './chunks/chunk-VIPNDN4B.mjs';
|
|
4
4
|
import { storedText } from './chunks/chunk-4EXKQ2IB.mjs';
|
|
5
|
-
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-
|
|
5
|
+
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-XBTFK3AZ.mjs';
|
|
6
6
|
import './chunks/chunk-PVMEHBQO.mjs';
|
|
7
7
|
import './chunks/chunk-YOTP2FPE.mjs';
|
|
8
8
|
import { requireLoadedMessagePack } from './chunks/chunk-FTQ7JNMU.mjs';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { h as Narsil, N as NarsilError, L as ListParams, l as ListResult, I as IndexInfo, p as IndexStats, Q as QueryParams, o as PreflightResult, j as QueryResult, m as SuggestParams, n as SuggestResult } from './engine-
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './engine-
|
|
3
|
-
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-
|
|
1
|
+
import { h as Narsil, N as NarsilError, L as ListParams, l as ListResult, I as IndexInfo, p as IndexStats, Q as QueryParams, o as PreflightResult, j as QueryResult, m as SuggestParams, n as SuggestResult } from './engine-DdOs682x.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './engine-DdOs682x.js';
|
|
3
|
+
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-CxA-J_Ty.js';
|
|
4
|
+
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-CxA-J_Ty.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
6
|
+
import { N as NarsilClient, I as ImportSource } from './client-VJmV_AjZ.js';
|
|
7
7
|
import { A as AnyDocument } from './schema-C_7yRJLt.js';
|
|
8
8
|
import './adapters-pljAqmrC.js';
|
|
9
9
|
import './query-suggestions-CBYkrQ5T.js';
|
|
10
10
|
import './synonyms-CpOAHPa-.js';
|
|
11
|
-
import './config-
|
|
12
|
-
import './config-
|
|
11
|
+
import './config-ZZg4cwQz.js';
|
|
12
|
+
import './config-Cb3FOlE_.js';
|
|
13
13
|
import './index-Ck9w5WHz.js';
|
|
14
14
|
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadRerankRuntime } from './chunk-
|
|
1
|
+
import { loadRerankRuntime } from './chunk-EEYDJB4Z.mjs';
|
|
2
2
|
import './chunk-KLVMK3R5.mjs';
|
|
3
3
|
import './chunk-AB27FWZM.mjs';
|
|
4
4
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -9,7 +9,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
10
|
import './chunk-OUWZKNO3.mjs';
|
|
11
11
|
import './chunk-3B775F3C.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-XXWEUXE4.mjs';
|
|
13
13
|
import './chunk-ZXX5GZEX.mjs';
|
|
14
14
|
import './chunk-4PY4JYMY.mjs';
|
|
15
15
|
import { NarsilError, ErrorCodes } from './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-
|
|
2
|
-
export { startQuerySuggestions } from './chunk-
|
|
3
|
-
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-
|
|
4
|
-
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-
|
|
1
|
+
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-STLNPJXU.mjs';
|
|
2
|
+
export { startQuerySuggestions } from './chunk-STLNPJXU.mjs';
|
|
3
|
+
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-GQLOEACG.mjs';
|
|
4
|
+
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-EEYDJB4Z.mjs';
|
|
5
5
|
import './chunk-KLVMK3R5.mjs';
|
|
6
6
|
import './chunk-AB27FWZM.mjs';
|
|
7
7
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -12,7 +12,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
12
12
|
import './chunk-U2BKYEC7.mjs';
|
|
13
13
|
import './chunk-OUWZKNO3.mjs';
|
|
14
14
|
import './chunk-3B775F3C.mjs';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-XXWEUXE4.mjs';
|
|
16
16
|
import './chunk-ZXX5GZEX.mjs';
|
|
17
17
|
import './chunk-4PY4JYMY.mjs';
|
|
18
18
|
import { NarsilError, ErrorCodes } from './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-
|
|
2
|
-
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-
|
|
1
|
+
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-ZBVHS5KF.mjs';
|
|
2
|
+
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-EEYDJB4Z.mjs';
|
|
3
3
|
import './chunk-KLVMK3R5.mjs';
|
|
4
4
|
import './chunk-AB27FWZM.mjs';
|
|
5
5
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -10,7 +10,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
10
10
|
import './chunk-U2BKYEC7.mjs';
|
|
11
11
|
import './chunk-OUWZKNO3.mjs';
|
|
12
12
|
import './chunk-3B775F3C.mjs';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-XXWEUXE4.mjs';
|
|
14
14
|
import './chunk-ZXX5GZEX.mjs';
|
|
15
15
|
import './chunk-4PY4JYMY.mjs';
|
|
16
16
|
import './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { deserializePartition, serializePartition } from './chunk-
|
|
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-
|
|
1
|
+
export { deserializePartition, serializePartition } from './chunk-EI7U43MX.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-EEYDJB4Z.mjs';
|
|
3
3
|
import './chunk-KLVMK3R5.mjs';
|
|
4
4
|
import './chunk-AB27FWZM.mjs';
|
|
5
5
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -10,7 +10,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
10
10
|
import './chunk-U2BKYEC7.mjs';
|
|
11
11
|
import './chunk-OUWZKNO3.mjs';
|
|
12
12
|
import './chunk-3B775F3C.mjs';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-XXWEUXE4.mjs';
|
|
14
14
|
import './chunk-ZXX5GZEX.mjs';
|
|
15
15
|
import './chunk-4PY4JYMY.mjs';
|
|
16
16
|
import './chunk-Q3ZZH5Z7.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { G as GroupResult, H as Hit, Q as QueryParams, r as GroupConfig, j as QueryResult, f as SyncSetting, L as ListParams, m as SuggestParams, p as IndexStats, l as ListResult, o as PreflightResult, n as SuggestResult, g as SyncStatus, h as Narsil } from './engine-
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './engine-
|
|
3
|
-
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
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 ServerLimits, i as ServerQuerySuggestionsOptions, j as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
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-
|
|
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-
|
|
1
|
+
import { G as GroupResult, H as Hit, Q as QueryParams, r as GroupConfig, j as QueryResult, f as SyncSetting, L as ListParams, m as SuggestParams, p as IndexStats, l as ListResult, o as PreflightResult, n as SuggestResult, g as SyncStatus, h as Narsil } from './engine-DdOs682x.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './engine-DdOs682x.js';
|
|
3
|
+
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-DkXAkb-X.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 ServerLimits, i as ServerQuerySuggestionsOptions, j as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-DkXAkb-X.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-CxA-J_Ty.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-CxA-J_Ty.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 { i as ClusterHealth } from './config-
|
|
8
|
+
import { i as ClusterHealth } from './config-ZZg4cwQz.js';
|
|
9
9
|
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-C_7yRJLt.js';
|
|
10
10
|
import './adapters-pljAqmrC.js';
|
|
11
11
|
import './synonyms-CpOAHPa-.js';
|
|
12
12
|
import './index-Ck9w5WHz.js';
|
|
13
|
-
import './config-
|
|
13
|
+
import './config-Cb3FOlE_.js';
|
|
14
14
|
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
package/dist/server.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { resolveVectorText } from './chunk-ZQ6QY42L.mjs';
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, registerFeedRoute, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_FEED_WINDOW_BYTES, 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, toHttpError, 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, TIMER_DELAY_LIMIT_MS, FEED_HEAD_RETRY_MS, 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, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, isThreadFeedNote, ENTRIES_MESSAGE_LIMIT_BYTES, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-
|
|
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-
|
|
5
|
-
import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-
|
|
2
|
+
import { answerRequest } from './chunk-FSLQHOKZ.mjs';
|
|
3
|
+
import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, registerFeedRoute, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, DEFAULT_MAX_FEED_BUFFERED_BYTES, DEFAULT_MAX_FEED_CATCH_UPS, DEFAULT_MAX_FEED_CONNECTIONS, DEFAULT_FEED_WINDOW_BYTES, 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, toHttpError, 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, TIMER_DELAY_LIMIT_MS, FEED_HEAD_RETRY_MS, 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, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, isThreadFeedNote, ENTRIES_MESSAGE_LIMIT_BYTES, SERVER_CAPABILITIES, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-DSXFN5BF.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-DSXFN5BF.mjs';
|
|
5
|
+
import { startSyncRetentionSweep, publishedSyncSnapshot, publishedArchiveLayout } from './chunk-TOZENMM7.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, SYNC_CLOSE_GOING_AWAY } from './chunk-FETZYCH7.mjs';
|
|
7
|
-
import { syncServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-
|
|
8
|
-
import { isRecord, validateIndexName } from './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
7
|
+
import { syncServingSourceOf, writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-Q7CUUSJ2.mjs';
|
|
8
|
+
import { isRecord, validateIndexName } from './chunk-V4YIEMAI.mjs';
|
|
9
|
+
import './chunk-K4BMDPPX.mjs';
|
|
10
|
+
import './chunk-ES5EOXT6.mjs';
|
|
11
11
|
import './chunk-4CAMH7FO.mjs';
|
|
12
|
-
import { estimatedArchiveBytes } from './chunk-
|
|
12
|
+
import { estimatedArchiveBytes } from './chunk-RXMR2SIQ.mjs';
|
|
13
13
|
import './chunk-JDDXV6UF.mjs';
|
|
14
|
-
import { manifestFileRefs } from './chunk-
|
|
14
|
+
import { manifestFileRefs } from './chunk-KSOZJEYU.mjs';
|
|
15
15
|
import './chunk-QDZJM7NI.mjs';
|
|
16
16
|
import './chunk-77AUVDQ5.mjs';
|
|
17
17
|
import './chunk-LNGE7SLY.mjs';
|
|
18
18
|
import './chunk-QBVTYY4J.mjs';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
19
|
+
import './chunk-ZBVHS5KF.mjs';
|
|
20
|
+
import './chunk-EI7U43MX.mjs';
|
|
21
|
+
import './chunk-VJOS6MHF.mjs';
|
|
22
22
|
import './chunk-V6EUBAIT.mjs';
|
|
23
|
-
import './chunk-
|
|
24
|
-
import { querySuggestions } from './chunk-
|
|
23
|
+
import './chunk-GQLOEACG.mjs';
|
|
24
|
+
import { querySuggestions } from './chunk-ZGYF37MG.mjs';
|
|
25
25
|
import './chunk-S2POFTLN.mjs';
|
|
26
|
-
import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, rulesOfStoredSynonyms, bindQuerySignal, clearQuerySignal, providedDocId, loadRerankRuntime } from './chunk-
|
|
26
|
+
import { rerankWindowCapOf, engineCoreOf, readMemoryFigures, listenForSyncChanges, MAX_RERANK_WINDOW, rulesOfStoredSynonyms, bindQuerySignal, clearQuerySignal, providedDocId, loadRerankRuntime } from './chunk-EEYDJB4Z.mjs';
|
|
27
27
|
import './chunk-KLVMK3R5.mjs';
|
|
28
28
|
import './chunk-AB27FWZM.mjs';
|
|
29
29
|
import { decode } from './chunk-GXCDWLQI.mjs';
|
|
@@ -34,7 +34,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
34
34
|
import './chunk-U2BKYEC7.mjs';
|
|
35
35
|
import { detectRuntime } from './chunk-OUWZKNO3.mjs';
|
|
36
36
|
import { startIdleHeapCleanup } from './chunk-3B775F3C.mjs';
|
|
37
|
-
import './chunk-
|
|
37
|
+
import './chunk-XXWEUXE4.mjs';
|
|
38
38
|
import './chunk-ZXX5GZEX.mjs';
|
|
39
39
|
import './chunk-IE3Q62QD.mjs';
|
|
40
40
|
import './chunk-4PY4JYMY.mjs';
|