@delali/narsil 0.3.1-next.161 → 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,34 +1,34 @@
|
|
|
1
|
-
import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES, scheduleSyncRetention } from './chunk-
|
|
2
|
-
export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-
|
|
3
|
-
import { openPagedSegmentScan, countsAsLatestHolder, buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, admitDurableWrite, chunksOf, requireRestoreMemory, memoryCheckpointStore, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, listPersistedIndexes, removeLeftoverRewriteFiles, unpackIndexSnapshotEnvelope, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, bytesThatSegmentsHoldInMemory, loadSegmentedCheckpoint, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, metadataFromConfig, createDetachedIndex, checkPagedSegmentFully, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, drainIndexStateForUnload, readMetadataEnvelope, snapshotCheckpointFor, captureAppliedPrefix, metadataPartitionCount, deserializePayloadV1, createSeqOwner, loadMetadata, readSegmentManifest, reclaimUnlistedKeys, writeLiveVectors, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, dropStoredVectorValues, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, growPartitionsTo, createMarkerWriter, metadataConfigOf, durableMetadataConfigOf } from './chunk-
|
|
4
|
-
export { abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, bytesThatSegmentsHoldInMemory, changeIndexAnalysis, checkPagedSegmentFully, countsAsLatestHolder, createByteReader, dropHeldAnalysisChange, executeRebalance, heldAnalysisIsBuilt, holdsNamedSettings, openPagedSegmentScan, releaseHeldAnalysisChange, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout } from './chunk-
|
|
5
|
-
import { openColdVectorField, readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-
|
|
6
|
-
export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-
|
|
7
|
-
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, updateIndexSync, requireConfigurationShape, decodeIndexConfiguration } from './chunk-
|
|
8
|
-
export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-
|
|
1
|
+
import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES, scheduleSyncRetention } from './chunk-TOZENMM7.mjs';
|
|
2
|
+
export { scheduleSyncRetention, startSyncRetentionSweep } from './chunk-TOZENMM7.mjs';
|
|
3
|
+
import { openPagedSegmentScan, countsAsLatestHolder, buildArchiveFromMemory, indexMetadataOf, archiveStream, createByteReader, admitDurableWrite, chunksOf, requireRestoreMemory, memoryCheckpointStore, createIndexLoads, closePartitionWriter, switchInTurn, writeMetadataEnvelope, listPersistedIndexes, removeLeftoverRewriteFiles, unpackIndexSnapshotEnvelope, earlierSnapshotFootprint, writeArchiveFile, storedBytesOfSegments, archiveFootprint, bytesThatSegmentsHoldInMemory, loadSegmentedCheckpoint, requireCheckpointLayout, holdScheduledCheckpoint, checkpointInTurn, metadataFromConfig, createDetachedIndex, checkPagedSegmentFully, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, drainIndexStateForUnload, readMetadataEnvelope, snapshotCheckpointFor, whileGraphsStayComplete, captureAppliedPrefix, metadataPartitionCount, deserializePayloadV1, createSeqOwner, loadMetadata, readSegmentManifest, reclaimUnlistedKeys, writeLiveVectors, requiresLayoutCheckpoint, transitionKey, readTransition, invalidTransition, unpackEnvelopeBytes, dropStoredVectorValues, replayWal, sanitizeSurfaceForms, patternIndexesFromWire, replayWalUpTo, createRebalancer, growPartitionsTo, createMarkerWriter, metadataConfigOf, durableMetadataConfigOf } from './chunk-D5GNFN6X.mjs';
|
|
4
|
+
export { abandonAnalysisChange, adoptSavedAnalysis, buildHeldAnalysisChange, bytesThatSegmentsHoldInMemory, changeIndexAnalysis, checkPagedSegmentFully, countsAsLatestHolder, createByteReader, dropHeldAnalysisChange, executeRebalance, heldAnalysisIsBuilt, holdsNamedSettings, openPagedSegmentScan, releaseHeldAnalysisChange, resumeAnalysisChange, stampAnalysisGeneration, startReadingOpeningSectionsAhead, targetOfPending, transitionWalLayout } from './chunk-D5GNFN6X.mjs';
|
|
5
|
+
import { openColdVectorField, readVectorFile, readGraphParts, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-7OE73OO4.mjs';
|
|
6
|
+
export { loadFilesByParts, openColdVectorField, waitBeforeColdLoad } from './chunk-7OE73OO4.mjs';
|
|
7
|
+
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, encodeIndexConfiguration, updateIndexSync, requireConfigurationShape, decodeIndexConfiguration } from './chunk-ES5EOXT6.mjs';
|
|
8
|
+
export { decodeIndexConfiguration, encodeIndexConfiguration, holdRenewedSyncEpoch, indexConfigurationOf, requireNoQuerySuggestions, requireSyncSetting, syncStorageOf, updateIndexSync } from './chunk-ES5EOXT6.mjs';
|
|
9
9
|
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-4CAMH7FO.mjs';
|
|
10
|
-
import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-
|
|
11
|
-
export { readSnapshotArchive } from './chunk-
|
|
10
|
+
import { readSnapshotArchive, decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-RXMR2SIQ.mjs';
|
|
11
|
+
export { readSnapshotArchive } from './chunk-RXMR2SIQ.mjs';
|
|
12
12
|
import { createDurableDirectory } from './chunk-TW543F33.mjs';
|
|
13
|
-
import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, readSegmentFile, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, removeCheckpointGarbage, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, writeSegmentHeader, readWalSegments, buildEntry } from './chunk-
|
|
14
|
-
export { checkPagedContents, checkPagedSelections, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-
|
|
15
|
-
import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-
|
|
13
|
+
import { isPagedSegmentFile, openPagedSnapshot, pagedListingOf, createPagedFrozenSegment, writePagedSegment, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, readSegmentFile, SEGMENT_HEADER_SIZE, checkpointLastSeqNo, partitionContentsOf, writeCheckpointSegments, commitCheckpointManifest, removeCheckpointGarbage, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, captureWholePartition, frameRecord, checkpointPrimaryTerm, writeSegmentHeader, readWalSegments, buildEntry } from './chunk-GJKFXKMI.mjs';
|
|
14
|
+
export { checkPagedContents, checkPagedSelections, createPagedFrozenSegment, isPagedSegmentFile, mergePagedWindow, openPagedSnapshot, pagedListingOf, pagedTombstonesFor, writePagedSegment } from './chunk-GJKFXKMI.mjs';
|
|
15
|
+
import { REWRITE_SPILL_BYTES, TOMBSTONES_BETWEEN_YIELDS, encodeSegmentManifest, adapterCheckpointStore, directoryCheckpointStore, readListedFile } from './chunk-5P72V66D.mjs';
|
|
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-
|
|
18
|
+
import { manifestKey, manifestFileRefs, manifestReferencedKeys, manifestWithinPartitionCount, snapshotBundleKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-KSOZJEYU.mjs';
|
|
19
19
|
import { getFs } from './chunk-HLPRHOSO.mjs';
|
|
20
20
|
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-QDZJM7NI.mjs';
|
|
21
21
|
import { encode } from './chunk-77AUVDQ5.mjs';
|
|
22
22
|
export { bindStorageHost } from './chunk-77AUVDQ5.mjs';
|
|
23
23
|
import { sha256 } from './chunk-LNGE7SLY.mjs';
|
|
24
24
|
import { setNestedValue } from './chunk-QBVTYY4J.mjs';
|
|
25
|
-
import { rewriteSpillOf } from './chunk-
|
|
26
|
-
import { deserializePartition } from './chunk-
|
|
27
|
-
import { decodeVectorIndexParts, decodeVectorFilePayload, isDead, bytesToVectors, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-
|
|
28
|
-
export { createHNSWIndex, osqBitsOf } from './chunk-
|
|
25
|
+
import { rewriteSpillOf } from './chunk-ZBVHS5KF.mjs';
|
|
26
|
+
import { deserializePartition } from './chunk-EI7U43MX.mjs';
|
|
27
|
+
import { decodeVectorIndexParts, decodeVectorFilePayload, isDead, bytesToVectors, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-VJOS6MHF.mjs';
|
|
28
|
+
export { createHNSWIndex, osqBitsOf } from './chunk-VJOS6MHF.mjs';
|
|
29
29
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
30
|
-
import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-
|
|
31
|
-
import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, fnv1a, ARRAY_POSITION_GAP, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, toError, decodeStoredDocument, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors,
|
|
30
|
+
import { hasNrslMagic, HEADER_SIZE, readHeader, storedStateOf, attachedRuntimeOf, historyFilesOf, listHistoryFolder, historyFileOf, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, openChecksummedEnvelope, crc32, packChecksummedEnvelope } from './chunk-GQLOEACG.mjs';
|
|
31
|
+
import { isCompositePartition, generateId, mergePartitionStats, resolvePartitionInsertOptions, createPartitionIndex, createCompositePartition, fnv1a, ARRAY_POSITION_GAP, freezeSegmentShared, createFrozenSegment, createSharedFrozenSegment, toError, decodeStoredDocument, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, storedArrayPositionGap, emitSyncChange, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, arrayPositionsAreStale, insertDocumentVectors, createPartitionRouter, buildSegmentPayloads, createRequestId } from './chunk-EEYDJB4Z.mjs';
|
|
32
32
|
import { encodeDocument } from './chunk-KLVMK3R5.mjs';
|
|
33
33
|
import './chunk-AB27FWZM.mjs';
|
|
34
34
|
import { decode } from './chunk-GXCDWLQI.mjs';
|
|
@@ -39,7 +39,7 @@ import { flattenSchema, parseVectorDimension, raiseEarlierReleaseGraphSetting, v
|
|
|
39
39
|
import './chunk-U2BKYEC7.mjs';
|
|
40
40
|
import { detectRuntime, spawnNodeWorker, resolveWorkerEntry } from './chunk-OUWZKNO3.mjs';
|
|
41
41
|
import { STATISTICS_BROADCAST_INTERVAL_MS, turnsAreBudgeted, turnIsSpent, yieldTurn, EXPORT_CHUNK_BYTES, FOREIGN_STATS_TTL_MS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, MAX_IMPORT_REFUSALS_REPORTED, waitOutsideCountedWrite, MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-3B775F3C.mjs';
|
|
42
|
-
import './chunk-
|
|
42
|
+
import './chunk-XXWEUXE4.mjs';
|
|
43
43
|
import { MIN_M } from './chunk-ZXX5GZEX.mjs';
|
|
44
44
|
import { MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-4PY4JYMY.mjs';
|
|
45
45
|
import { NarsilError, ErrorCodes } from './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -440,9 +440,8 @@ function wholePartitionsWhereMostChanged(manager, rules) {
|
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
async function captureCheckpoint(indexState, manager, vectorIndexes, wholePartitionsOf = noWholePartitions, priorCheckpointThatLimitsTheRecords, listedVectorFields = [], termHistoryOf, onCaptured) {
|
|
443
|
-
|
|
444
|
-
return
|
|
445
|
-
[...indexState.partitions.values()],
|
|
443
|
+
const whileNoBuildPassOrMutationRuns = (capture2) => whileGraphsStayComplete(vectorIndexes, () => whileNoMutationApplies([...indexState.partitions.values()], capture2));
|
|
444
|
+
return whileNoBuildPassOrMutationRuns(
|
|
446
445
|
() => captureAppliedPrefix(manager, (cutoffs) => {
|
|
447
446
|
onCaptured?.();
|
|
448
447
|
const partitionCount = manager.partitionCount;
|
|
@@ -3253,14 +3252,15 @@ function priorPartitionsOf(earlier, partitionCount) {
|
|
|
3253
3252
|
async function writeCurrentLayout(deps, earlier, targets, fileRefs) {
|
|
3254
3253
|
const priorVectors = priorVectorsOf(earlier, fileRefs);
|
|
3255
3254
|
const plans = /* @__PURE__ */ new Map();
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3255
|
+
await whileGraphsStayComplete(deps.vectorIndexes, () => {
|
|
3256
|
+
for (const [fieldPath, vectorIndex] of deps.vectorIndexes) {
|
|
3257
|
+
const listed = priorVectors.find((ref) => ref.fieldPath === fieldPath);
|
|
3258
|
+
plans.set(
|
|
3259
|
+
fieldPath,
|
|
3260
|
+
vectorIndex.planCheckpoint(listed === void 0 ? null : listed.files.map((file) => file.key), true)
|
|
3261
|
+
);
|
|
3262
|
+
}
|
|
3263
|
+
});
|
|
3264
3264
|
const written = await writeCheckpointSegments({
|
|
3265
3265
|
store: deps.store,
|
|
3266
3266
|
metadata: deps.metadata,
|
|
@@ -3904,9 +3904,11 @@ async function writeCaptured(input, store, prior, captured) {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
async function writeSnapshotOnlyCheckpoint(input) {
|
|
3906
3906
|
const store = adapterCheckpointStore(input.adapter);
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3907
|
+
const { prior, captured } = await whileGraphsStayComplete(input.vectorIndexes, async () => {
|
|
3908
|
+
const prior2 = await readCurrentManifest(store, input.indexName);
|
|
3909
|
+
const captured2 = await captureAppliedPrefix(input.manager, (cutoffs) => capture(input, prior2, cutoffs));
|
|
3910
|
+
return { prior: prior2, captured: captured2 };
|
|
3911
|
+
});
|
|
3910
3912
|
try {
|
|
3911
3913
|
await writeCaptured(input, store, prior, captured);
|
|
3912
3914
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-STLNPJXU.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-
|
|
4
|
-
import './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-GQLOEACG.mjs';
|
|
4
|
+
import './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 './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-
|
|
2
|
-
export { bindSuggestionsHost } from './chunk-
|
|
3
|
-
import { installSuggestionHooks } from './chunk-
|
|
1
|
+
import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-BKOMO7HT.mjs';
|
|
2
|
+
export { bindSuggestionsHost } from './chunk-NXMGUDZA.mjs';
|
|
3
|
+
import { installSuggestionHooks } from './chunk-STLNPJXU.mjs';
|
|
4
4
|
import './chunk-V6EUBAIT.mjs';
|
|
5
|
-
import { attachedRuntimeOf, attachRuntime } from './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import { attachedRuntimeOf, attachRuntime } from './chunk-GQLOEACG.mjs';
|
|
6
|
+
import './chunk-EEYDJB4Z.mjs';
|
|
7
7
|
import './chunk-KLVMK3R5.mjs';
|
|
8
8
|
import './chunk-AB27FWZM.mjs';
|
|
9
9
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -14,7 +14,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
14
14
|
import './chunk-U2BKYEC7.mjs';
|
|
15
15
|
import './chunk-OUWZKNO3.mjs';
|
|
16
16
|
import './chunk-3B775F3C.mjs';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-XXWEUXE4.mjs';
|
|
18
18
|
import './chunk-ZXX5GZEX.mjs';
|
|
19
19
|
import './chunk-4PY4JYMY.mjs';
|
|
20
20
|
import './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../engine-
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-BboB278g.js';
|
|
2
|
+
import '../engine-DdOs682x.js';
|
|
3
3
|
import '../adapters-pljAqmrC.js';
|
|
4
4
|
import '../schema-C_7yRJLt.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
package/dist/sync/filesystem.mjs
CHANGED
|
@@ -6,12 +6,12 @@ import '../chunk-QDZJM7NI.mjs';
|
|
|
6
6
|
import '../chunk-77AUVDQ5.mjs';
|
|
7
7
|
import '../chunk-LNGE7SLY.mjs';
|
|
8
8
|
import '../chunk-QBVTYY4J.mjs';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-ZBVHS5KF.mjs';
|
|
10
|
+
import '../chunk-EI7U43MX.mjs';
|
|
11
|
+
import '../chunk-VJOS6MHF.mjs';
|
|
12
12
|
import '../chunk-V6EUBAIT.mjs';
|
|
13
|
-
import { crc32 } from '../chunk-
|
|
14
|
-
import '../chunk-
|
|
13
|
+
import { crc32 } from '../chunk-GQLOEACG.mjs';
|
|
14
|
+
import '../chunk-EEYDJB4Z.mjs';
|
|
15
15
|
import '../chunk-KLVMK3R5.mjs';
|
|
16
16
|
import '../chunk-AB27FWZM.mjs';
|
|
17
17
|
import '../chunk-GXCDWLQI.mjs';
|
|
@@ -22,7 +22,7 @@ import { loadMessagePack } from '../chunk-R4CE4IVU.mjs';
|
|
|
22
22
|
import '../chunk-U2BKYEC7.mjs';
|
|
23
23
|
import '../chunk-OUWZKNO3.mjs';
|
|
24
24
|
import '../chunk-3B775F3C.mjs';
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-XXWEUXE4.mjs';
|
|
26
26
|
import '../chunk-ZXX5GZEX.mjs';
|
|
27
27
|
import '../chunk-4PY4JYMY.mjs';
|
|
28
28
|
import { NarsilError, ErrorCodes } from '../chunk-Q3ZZH5Z7.mjs';
|
package/dist/sync/indexeddb.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../engine-
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-BboB278g.js';
|
|
2
|
+
import '../engine-DdOs682x.js';
|
|
3
3
|
import '../adapters-pljAqmrC.js';
|
|
4
4
|
import '../schema-C_7yRJLt.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
package/dist/sync.browser.mjs
CHANGED
|
@@ -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-
|
|
2
|
+
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-KQXKCMGQ.mjs';
|
|
3
3
|
import './browser/chunk-MMHIIL5B.mjs';
|
|
4
4
|
import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
|
|
5
5
|
import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema, ServerErrorCodes, describeError } from './browser/chunk-MZHQ65VI.mjs';
|
package/dist/sync.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as DeviceSyncOptions, a as DeviceSync } from './types-
|
|
2
|
-
export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-
|
|
3
|
-
import './engine-
|
|
1
|
+
import { D as DeviceSyncOptions, a as DeviceSync } from './types-BboB278g.js';
|
|
2
|
+
export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-BboB278g.js';
|
|
3
|
+
import './engine-DdOs682x.js';
|
|
4
4
|
import './adapters-pljAqmrC.js';
|
|
5
5
|
import './schema-C_7yRJLt.js';
|
|
6
6
|
import './synonyms-CpOAHPa-.js';
|
package/dist/sync.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, encodeJson, SYNC_SUBPROTOCOL, decodeScore } from './chunk-FETZYCH7.mjs';
|
|
2
2
|
import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './chunk-6MSZ543Y.mjs';
|
|
3
|
-
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-
|
|
3
|
+
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-EEYDJB4Z.mjs';
|
|
4
4
|
import './chunk-KLVMK3R5.mjs';
|
|
5
5
|
import './chunk-AB27FWZM.mjs';
|
|
6
6
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -11,7 +11,7 @@ import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNested
|
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
12
|
import './chunk-OUWZKNO3.mjs';
|
|
13
13
|
import './chunk-3B775F3C.mjs';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-XXWEUXE4.mjs';
|
|
15
15
|
import './chunk-ZXX5GZEX.mjs';
|
|
16
16
|
import './chunk-4PY4JYMY.mjs';
|
|
17
17
|
import { NarsilError, ErrorCodes, ClientErrorCodes, ServerErrorCodes, describeError } from './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-
|
|
1
|
+
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-KQXKCMGQ.mjs';
|
|
2
2
|
import { storedText } from './browser/chunk-MMHIIL5B.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-MZHQ65VI.mjs';
|
package/dist/synonyms.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { synonymSearchModule } from './chunk-
|
|
1
|
+
import { synonymSearchModule } 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 './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-
|
|
1
|
+
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-ZZg4cwQz.js';
|
|
2
2
|
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-Ck9w5WHz.js';
|
|
3
3
|
import { a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
|
|
4
|
-
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-
|
|
4
|
+
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-DdOs682x.js';
|
|
5
5
|
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-C_7yRJLt.js';
|
|
6
6
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
7
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { closeRequestThread, searchHandler, serveRequests } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { closeRequestThread, searchHandler, serveRequests } from './chunk-XRBPHCCT.mjs';
|
|
2
|
+
import './chunk-DSXFN5BF.mjs';
|
|
3
3
|
import './chunk-FETZYCH7.mjs';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-K4BMDPPX.mjs';
|
|
5
|
+
import './chunk-RXMR2SIQ.mjs';
|
|
6
|
+
import './chunk-KSOZJEYU.mjs';
|
|
7
7
|
import './chunk-77AUVDQ5.mjs';
|
|
8
8
|
import './chunk-LNGE7SLY.mjs';
|
|
9
9
|
import './chunk-QBVTYY4J.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
10
|
+
import './chunk-ZBVHS5KF.mjs';
|
|
11
|
+
import './chunk-EI7U43MX.mjs';
|
|
12
|
+
import './chunk-VJOS6MHF.mjs';
|
|
13
13
|
import './chunk-V6EUBAIT.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-GQLOEACG.mjs';
|
|
15
|
+
import './chunk-EEYDJB4Z.mjs';
|
|
16
16
|
import './chunk-KLVMK3R5.mjs';
|
|
17
17
|
import './chunk-AB27FWZM.mjs';
|
|
18
18
|
import './chunk-GXCDWLQI.mjs';
|
|
@@ -23,7 +23,7 @@ import './chunk-R4CE4IVU.mjs';
|
|
|
23
23
|
import './chunk-U2BKYEC7.mjs';
|
|
24
24
|
import './chunk-OUWZKNO3.mjs';
|
|
25
25
|
import './chunk-3B775F3C.mjs';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-XXWEUXE4.mjs';
|
|
27
27
|
import './chunk-ZXX5GZEX.mjs';
|
|
28
28
|
import './chunk-4PY4JYMY.mjs';
|
|
29
29
|
import './chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openSharedVectorField, createVectorStore } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { osqBitsOf, createHNSWIndex, createOsqQuantizer, osqRecordBytes } from '../chunk-
|
|
1
|
+
import { openSharedVectorField, createVectorStore } from '../chunk-Q2WQSAYH.mjs';
|
|
2
|
+
import '../chunk-T4HMSZCX.mjs';
|
|
3
|
+
import { osqBitsOf, createHNSWIndex, createOsqQuantizer, osqRecordBytes } from '../chunk-VJOS6MHF.mjs';
|
|
4
4
|
import '../chunk-OUWZKNO3.mjs';
|
|
5
5
|
import { MAX_WORKER_COPIES } from '../chunk-3B775F3C.mjs';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-XXWEUXE4.mjs';
|
|
7
7
|
import '../chunk-ZXX5GZEX.mjs';
|
|
8
8
|
import '../chunk-4PY4JYMY.mjs';
|
|
9
9
|
import '../chunk-Q3ZZH5Z7.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { holdCopyPublication, copyGenerationOf, transferIndexToPool, executeRetained, loadIndexOntoWorkers } from './chunk-
|
|
2
|
-
export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-
|
|
3
|
-
import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, 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-
|
|
4
|
-
export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-
|
|
1
|
+
import { holdCopyPublication, copyGenerationOf, transferIndexToPool, executeRetained, loadIndexOntoWorkers } from './chunk-EIR3IQCL.mjs';
|
|
2
|
+
export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-EIR3IQCL.mjs';
|
|
3
|
+
import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, 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-EEYDJB4Z.mjs';
|
|
4
|
+
export { bindWorkerCopiesHost, createWorkerExecutor } 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 { schemaFieldsOf } from './chunk-R4CE4IVU.mjs';
|
|
|
12
12
|
import './chunk-U2BKYEC7.mjs';
|
|
13
13
|
import { resolveWorkerCount, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount } from './chunk-OUWZKNO3.mjs';
|
|
14
14
|
import { MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS, noteThreadSlotGone, threadSlotOfWorker } from './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';
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-
|
|
1
|
+
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } 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 { loadMessagePack } from '../chunk-R4CE4IVU.mjs';
|
|
|
9
9
|
import '../chunk-U2BKYEC7.mjs';
|
|
10
10
|
import '../chunk-OUWZKNO3.mjs';
|
|
11
11
|
import { threadSlotOfWorker, startIdleHeapCleanup } from '../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 { ErrorCodes, NarsilError, isNarsilError } from '../chunk-Q3ZZH5Z7.mjs';
|
|
@@ -31,9 +31,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
31
31
|
await import(moduleUrl);
|
|
32
32
|
}
|
|
33
33
|
async function stopServingRequests() {
|
|
34
|
-
const { closeRequestThread } = await import('../thread-
|
|
34
|
+
const { closeRequestThread } = await import('../thread-XWDK6TAR.mjs');
|
|
35
35
|
closeRequestThread();
|
|
36
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
36
|
+
const { closeLongQueryThread } = await import('../long-query-thread-OTVLP2OI.mjs');
|
|
37
37
|
closeLongQueryThread();
|
|
38
38
|
}
|
|
39
39
|
function holdsCopies(executor) {
|
|
@@ -86,7 +86,7 @@ function createActionHandler(executor) {
|
|
|
86
86
|
if (!holdsCopies(executor)) {
|
|
87
87
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
88
88
|
}
|
|
89
|
-
const starting = import('../thread-
|
|
89
|
+
const starting = import('../thread-XWDK6TAR.mjs').then(
|
|
90
90
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
91
91
|
);
|
|
92
92
|
serving.start = starting.then(
|
|
@@ -103,7 +103,7 @@ function createActionHandler(executor) {
|
|
|
103
103
|
if (!holdsCopies(executor)) {
|
|
104
104
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
105
105
|
}
|
|
106
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
106
|
+
const { serveLongQueries } = await import('../long-query-thread-OTVLP2OI.mjs');
|
|
107
107
|
serveLongQueries(executor, action.settings);
|
|
108
108
|
servingRequests = true;
|
|
109
109
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -151,8 +151,8 @@ async function setup() {
|
|
|
151
151
|
}
|
|
152
152
|
requireSearchBackendSettings();
|
|
153
153
|
const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
|
|
154
|
-
import('../direct-executor-
|
|
155
|
-
import('../query-actions-
|
|
154
|
+
import('../direct-executor-PF4UDSUW.mjs'),
|
|
155
|
+
import('../query-actions-EW72OQXY.mjs'),
|
|
156
156
|
loadVectorCode(),
|
|
157
157
|
loadGeoCode(),
|
|
158
158
|
importOptionalReads(),
|
package/openapi.json
CHANGED
|
@@ -6550,11 +6550,11 @@
|
|
|
6550
6550
|
},
|
|
6551
6551
|
"efSearch": {
|
|
6552
6552
|
"type": "number",
|
|
6553
|
-
"description": "The engine keeps this many candidates as it walks the HNSW graph, so a higher value can find more of the true neighbours, although each query takes longer. The engine applies it only once the field holds a graph. The engine fetches k hits, where k is one more than the number of hits up to the end of the page, so k is `limit` plus 1 on a first page. When a query leaves `efSearch` unset, the engine keeps the larger of 50 and k plus a margin, where the margin is 50 below 768 dimensions, 75 from 768 to 1,023 dimensions, and 0 at 1,024 dimensions and above. Under a filter, the engine counts only the candidates that pass the filter."
|
|
6553
|
+
"description": "The engine keeps this many candidates as it walks the HNSW graph, so a higher value can find more of the true neighbours, although each query takes longer. The engine applies it only once the field holds a graph. The engine fetches k hits, where k is one more than the number of hits up to the end of the page, so k is `limit` plus 1 on a first page. When a query leaves `efSearch` unset, the engine keeps the larger of 50 and k plus a margin, where the margin is 50 below 768 dimensions, 75 from 768 to 1,023 dimensions, and 0 at 1,024 dimensions and above. Under a filter, the engine counts only the candidates that pass the filter. A vector or hybrid query throws a `NarsilError` with `CONFIG_INVALID` before it searches when `efSearch` is not a whole number from 1 to 10,000, whether or not the field holds a graph yet and whether or not its filter matches a document."
|
|
6554
6554
|
},
|
|
6555
6555
|
"oversample": {
|
|
6556
6556
|
"type": "number",
|
|
6557
|
-
"description": "The engine re-scores this many times k candidates in a quantized field against the full-precision vectors before it returns the best `limit`, where k is one more than the number of hits up to the end of the page, so k is `limit` plus 1 on a first page. For a value below 1, or for a value that is not a finite number, the engine throws a `NarsilError` with code `CONFIG_INVALID`. The engine ignores it on a field whose quantization is `none`. When a query leaves it unset, the engine sets the number of candidates that it re-scores from k and from the field's dimension. It rounds that number up, and it re-scores at least 3k candidates under `osq1` and `osq2`, and at least k under `osq4` and `osq8`. Below 768 dimensions, it re-scores 3.23k + 55.9√k under `osq1` and 2.6k + 22.5√k under `osq2`. From 768 to 1,023 dimensions, it re-scores 2.2k + 27√k under `osq1` and k + 16√k under `osq2`, and under `osq2` it re-scores at least the smaller of k + 75 and k + 18√k. At 1,024 dimensions and above, it re-scores 3k under both. Under `osq4`, it re-scores 5k below 1,024 dimensions and 2k from 1,024 dimensions, while under `osq8` it re-scores 2k at every dimension. Under a filter, the engine counts only the candidates that pass the filter. On vectors spread evenly across every dimension, a one-bit or two-bit code can find fewer than 95% of the true nearest neighbours at these defaults, so raise `oversample` on a query that needs more of them."
|
|
6557
|
+
"description": "The engine re-scores this many times k candidates in a quantized field against the full-precision vectors before it returns the best `limit`, where k is one more than the number of hits up to the end of the page, so k is `limit` plus 1 on a first page. For a value below 1, or for a value that is not a finite number, the engine throws a `NarsilError` with code `CONFIG_INVALID`. The engine ignores it on a field whose quantization is `none`. When a query leaves it unset, the engine sets the number of candidates that it re-scores from k and from the field's dimension. It rounds that number up, and it re-scores at least 3k candidates under `osq1` and `osq2`, and at least k under `osq4` and `osq8`. Below 768 dimensions, it re-scores 3.23k + 55.9√k under `osq1` and 2.6k + 22.5√k under `osq2`. From 768 to 1,023 dimensions, it re-scores 2.2k + 27√k under `osq1` and k + 16√k under `osq2`, and under `osq2` it re-scores at least the smaller of k + 75 and k + 18√k. At 1,024 dimensions and above, it re-scores 3k under both. Under `osq4`, it re-scores 5k below 1,024 dimensions and 2k from 1,024 dimensions, while under `osq8` it re-scores 2k at every dimension. Under a filter, the engine counts only the candidates that pass the filter. On vectors spread evenly across every dimension, a one-bit or two-bit code can find fewer than 95% of the true nearest neighbours at these defaults, so raise `oversample` on a query that needs more of them. The engine re-scores at most the larger of 10,000 and the default depth, so a larger `oversample` can't lengthen the walk past that. A vector or hybrid query throws a `NarsilError` with `CONFIG_INVALID` before it searches when `oversample` is not a finite number of at least 1."
|
|
6558
6558
|
}
|
|
6559
6559
|
},
|
|
6560
6560
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delali/narsil",
|
|
3
|
-
"version": "0.3.1-next.
|
|
3
|
+
"version": "0.3.1-next.162",
|
|
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)",
|
|
@@ -652,11 +652,11 @@
|
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
654
|
"optionalDependencies": {
|
|
655
|
-
"@delali/narsil-native-darwin-arm64": "0.3.1-next.
|
|
656
|
-
"@delali/narsil-native-darwin-x64": "0.3.1-next.
|
|
657
|
-
"@delali/narsil-native-linux-arm64": "0.3.1-next.
|
|
658
|
-
"@delali/narsil-native-linux-x64": "0.3.1-next.
|
|
659
|
-
"@delali/narsil-native-win32-arm64": "0.3.1-next.
|
|
660
|
-
"@delali/narsil-native-win32-x64": "0.3.1-next.
|
|
655
|
+
"@delali/narsil-native-darwin-arm64": "0.3.1-next.162",
|
|
656
|
+
"@delali/narsil-native-darwin-x64": "0.3.1-next.162",
|
|
657
|
+
"@delali/narsil-native-linux-arm64": "0.3.1-next.162",
|
|
658
|
+
"@delali/narsil-native-linux-x64": "0.3.1-next.162",
|
|
659
|
+
"@delali/narsil-native-win32-arm64": "0.3.1-next.162",
|
|
660
|
+
"@delali/narsil-native-win32-x64": "0.3.1-next.162"
|
|
661
661
|
}
|
|
662
662
|
}
|
|
File without changes
|