@delali/narsil 0.3.1-next.129 → 0.3.1-next.131
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/adapters/filesystem.mjs +1 -1
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/browser/chunk-26A5JFT2.mjs +89 -0
- package/dist/browser/{chunk-5D6NJD6C.mjs → chunk-2Y3CO4EQ.mjs} +342 -201
- package/dist/browser/{chunk-WLD6DDIX.mjs → chunk-AIIJDWMG.mjs} +1 -1
- package/dist/browser/{chunk-YAGXZU4W.mjs → chunk-D7WQF6DV.mjs} +2 -2
- package/dist/browser/{chunk-WZBTVTSU.mjs → chunk-M5UAAXGU.mjs} +2 -2
- package/dist/browser/{chunk-XTFJZHQP.mjs → chunk-NSCSR6MA.mjs} +15 -5
- package/dist/browser/{chunk-3NVZD52E.mjs → chunk-UDGB2MWT.mjs} +5 -28
- package/dist/browser/{chunk-II5POT55.mjs → chunk-VBBLTD7O.mjs} +4 -3
- package/dist/browser/chunk-VEGHFP2P.mjs +30 -0
- package/dist/browser/{durability-wiring-HCCC6BJB.mjs → durability-wiring-FNZSRH4N.mjs} +8 -6
- package/dist/browser/{module-S2VDU2JE.mjs → module-4HIMOQM5.mjs} +6 -5
- package/dist/browser/phrase-module-WESYVU7K.mjs +327 -0
- package/dist/browser/{restore-queue-BZ7WWEC4.mjs → restore-queue-GEZ54CA5.mjs} +1 -1
- package/dist/browser/{runtime-PL4TTFJE.mjs → runtime-3X7ZJ5T3.mjs} +2 -1
- package/dist/browser/{snapshot-RTUCHI2L.mjs → snapshot-V7VF6BN6.mjs} +25 -10
- package/dist/browser/{write-IMU7G5NU.mjs → write-YIC2MKRY.mjs} +7 -5
- package/dist/{capabilities-BTjv-tK8.d.ts → capabilities-B6WxrWxt.d.ts} +3 -10
- package/dist/{chunk-3XHFVYIQ.mjs → chunk-2C3WXBQS.mjs} +1 -1
- package/dist/{chunk-37RTD6KD.mjs → chunk-2JWNJSNE.mjs} +8 -8
- package/dist/{chunk-K76F5YYX.mjs → chunk-2MKX2SCO.mjs} +219 -58
- package/dist/{chunk-AN3CUMPZ.mjs → chunk-2SEL6SBS.mjs} +4 -95
- package/dist/{chunk-OPO5SE4J.mjs → chunk-2WBY4Y4M.mjs} +1 -1
- package/dist/{chunk-PTIJAZWL.mjs → chunk-4GDLFDPZ.mjs} +1 -1
- package/dist/chunk-4UMZ7KQL.mjs +17 -0
- package/dist/{chunk-TY64A3ZW.mjs → chunk-5LX6MOIB.mjs} +2 -2
- package/dist/{chunk-3LJVM6XM.mjs → chunk-5W7AEVTH.mjs} +2 -2
- package/dist/{chunk-PCRWCOZC.mjs → chunk-6M6SDH3S.mjs} +43 -23
- package/dist/{chunk-MGD7XETB.mjs → chunk-6SSVIW7Y.mjs} +19 -3
- package/dist/{chunk-5LC5VMDQ.mjs → chunk-7OIQ2SIO.mjs} +4 -4
- package/dist/{chunk-4XEVROSP.mjs → chunk-7XY6VD7B.mjs} +1 -1
- package/dist/{chunk-WI5Q3L43.mjs → chunk-CZ7ISLXA.mjs} +2 -0
- package/dist/{chunk-RC27KF7F.mjs → chunk-D5TFRB5G.mjs} +3 -15
- package/dist/{chunk-F4UKMTKM.mjs → chunk-EUCX5K74.mjs} +4 -4
- package/dist/{chunk-CTF6WFTX.mjs → chunk-F6AAXI7T.mjs} +3 -3
- package/dist/{chunk-DX2FI4LU.mjs → chunk-FQBFZAWG.mjs} +3 -1
- package/dist/{chunk-XTER67YM.mjs → chunk-HCGJKDZV.mjs} +1 -1
- package/dist/{chunk-WQYB4TNR.mjs → chunk-JJ6EUMXB.mjs} +2 -2
- package/dist/{chunk-2HQQ7Y5D.mjs → chunk-JT3YZGCE.mjs} +2 -2
- package/dist/chunk-JUKYYXSP.mjs +93 -0
- package/dist/{chunk-WUIDPBSY.mjs → chunk-K77FJXKS.mjs} +17 -7
- package/dist/{chunk-CSSCLRGY.mjs → chunk-NMXRXFGZ.mjs} +2 -2
- package/dist/{chunk-44TB6AIZ.mjs → chunk-NNO7CO3A.mjs} +1 -1
- package/dist/{chunk-EZIGAOUJ.mjs → chunk-OGLV4I3L.mjs} +6 -5
- package/dist/{chunk-FRSWYMXH.mjs → chunk-PATMDIMN.mjs} +1 -1
- package/dist/{chunk-AFOZR4ZQ.mjs → chunk-PU6SKH7O.mjs} +2 -2
- package/dist/{chunk-TB7YMDD5.mjs → chunk-RCMNL7RI.mjs} +650 -100
- package/dist/{chunk-Y4NOHICF.mjs → chunk-RNSC4NFI.mjs} +1 -1
- package/dist/{chunk-RYH3PASD.mjs → chunk-RWESFSJI.mjs} +21 -11
- package/dist/{chunk-QQS4QZQA.mjs → chunk-SOHMMNCH.mjs} +4 -4
- package/dist/{chunk-K73PZTBR.mjs → chunk-SZGRYEIC.mjs} +4 -4
- package/dist/{chunk-43Q7HAI2.mjs → chunk-T4OFG4IQ.mjs} +4 -4
- package/dist/{chunk-2YOAGAGF.mjs → chunk-TGHNXN7W.mjs} +59 -30
- package/dist/{chunk-J4LRE5Q7.mjs → chunk-WVRDRLIC.mjs} +6 -6
- package/dist/{chunk-XRXBCOA4.mjs → chunk-X5CNUKD5.mjs} +2 -2
- package/dist/{chunk-Y4US5EGH.mjs → chunk-Y2U5VVWX.mjs} +1 -1
- package/dist/{chunk-5VSTAJET.mjs → chunk-Y4BVTQ53.mjs} +2 -2
- package/dist/{chunk-M6MBSVIJ.mjs → chunk-ZR4VM4A6.mjs} +1 -1
- package/dist/{client-BOcveV7A.d.ts → client-gNAfaHcE.d.ts} +3 -3
- package/dist/client.d.ts +7 -8
- package/dist/client.mjs +2 -0
- package/dist/{config-CPmIY3aH.d.ts → config-CmYJO34X.d.ts} +3 -3
- package/dist/{events-pM0lna7M.d.ts → config-D1cDv3sE.d.ts} +431 -3
- package/dist/direct-executor-HQ4QVDX7.mjs +28 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +7 -8
- package/dist/distribution.mjs +85 -45
- package/dist/{durability-wiring-6R26AJDI.mjs → durability-wiring-S7OX2MAI.mjs} +27 -25
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-JjRAXpT3.d.ts → engine-m_Ddr1bz.d.ts} +2 -2
- package/dist/{index-DkQ2DlgR.d.ts → index-HYnqS1SE.d.ts} +2 -2
- package/dist/index.browser.mjs +5 -3
- package/dist/index.d.ts +6 -7
- package/dist/index.mjs +20 -18
- package/dist/{long-query-thread-6VLA6YJI.mjs → long-query-thread-BSL25PD6.mjs} +17 -15
- package/dist/{module-S4WGMFNW.mjs → module-2E4XYSGT.mjs} +11 -11
- package/dist/partial-words.mjs +7 -6
- package/dist/pattern.mjs +4 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +2 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +23 -21
- package/dist/phrase-module-JERF2IDG.mjs +329 -0
- package/dist/react.d.ts +11 -8
- package/dist/react.mjs +2 -0
- package/dist/{rerank-V4J4MIWR.mjs → rerank-DMMT4FZA.mjs} +6 -6
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{restore-queue-PUGWCPCX.mjs → restore-queue-JAMNRC6T.mjs} +1 -1
- package/dist/{runtime-TBFBQQQO.mjs → runtime-7MLQ7J64.mjs} +7 -7
- package/dist/{schema-DGAP_8HJ.d.ts → schema-BTXbHCqA.d.ts} +8 -5
- package/dist/server.d.ts +198 -11
- package/dist/server.mjs +30 -19
- package/dist/{snapshot-PUVSMV7E.mjs → snapshot-DOQLGGEX.mjs} +44 -29
- package/dist/synonyms.mjs +4 -3
- package/dist/tasks-Co8HfRD7.d.ts +704 -0
- package/dist/{thread-TA7QQBWP.mjs → thread-SKO7CN3R.mjs} +16 -14
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +4 -4
- package/dist/workers/entry.mjs +7 -7
- package/dist/{write-TGKYT3C4.mjs → write-ZKR7SNRT.mjs} +22 -20
- package/openapi.json +5215 -0
- package/package.json +16 -8
- package/dist/config-C3YXk5Rn.d.ts +0 -412
- package/dist/direct-executor-ULA6V5HC.mjs +0 -26
- package/dist/tasks-txGvNz6h.d.ts +0 -302
package/dist/distribution.mjs
CHANGED
|
@@ -1,63 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-WVRDRLIC.mjs';
|
|
2
|
+
import { DEFAULT_NODE_LIFECYCLE_CONFIG, bindWriteBlockLookup, bindEngineWriteBlock, bindIndexReads, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, metadataWithBm25, indexConfigKey, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, isRecord2, decodeIndexSettings, HIDDEN_GENERATION_PREFIX, indexConfigFromSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, RESHARD_FORWARD_BATCH_DOCUMENTS, storedSynonymSetOf, RESHARD_RETRY_DELAY_MS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, TEARDOWN_RETRY_ROUNDS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS } from './chunk-T4OFG4IQ.mjs';
|
|
3
|
+
import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, DEFAULT_RESUME_WRITES_BELOW, DEFAULT_BLOCK_WRITES_ABOVE, readMemoryFigures, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, refuseEncodeWithoutRoom, readRecentMemoryFigures, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, MAX_SOURCE_ID_LENGTH, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, COPY_FAILURE_RETRY_DELAY_MS, FETCH_GROUP_DOCUMENT_IDS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, FULL_MEMORY_COLLECTION_INTERVAL_MS, MEMORY_SAMPLE_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-4GDLFDPZ.mjs';
|
|
4
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-4GDLFDPZ.mjs';
|
|
4
5
|
import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
|
|
6
|
+
import './chunk-SOHMMNCH.mjs';
|
|
5
7
|
import { onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes, collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal } from './chunk-IWVEG5CX.mjs';
|
|
6
|
-
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-
|
|
7
|
-
import { closePartitionWriter, replaySyncedWal } from './chunk-
|
|
8
|
-
import {
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-WUIDPBSY.mjs';
|
|
11
|
-
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-Y4US5EGH.mjs';
|
|
8
|
+
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-5LX6MOIB.mjs';
|
|
9
|
+
import { closePartitionWriter, replaySyncedWal } from './chunk-F6AAXI7T.mjs';
|
|
10
|
+
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-K77FJXKS.mjs';
|
|
11
|
+
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-Y2U5VVWX.mjs';
|
|
12
12
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
13
13
|
import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-X5CNUKD5.mjs';
|
|
15
15
|
import './chunk-DJHHF2L5.mjs';
|
|
16
16
|
import './chunk-37CD3OKS.mjs';
|
|
17
17
|
import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
|
|
18
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, readListedFile, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, directoryCheckpointStore, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
19
|
-
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-
|
|
18
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, readListedFile, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, directoryCheckpointStore, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-2JWNJSNE.mjs';
|
|
19
|
+
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-7OIQ2SIO.mjs';
|
|
20
20
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-P36MUFEJ.mjs';
|
|
21
21
|
import { TransportErrorCodes, ReplicationMessageTypes, ClusterMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-YH5OIL7B.mjs';
|
|
22
|
-
import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, emptySerializablePartition, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-
|
|
23
|
-
import { runtimeHost, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, validateBM25Shape, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-
|
|
24
|
-
import { bindRerankWindowSource, rerankWindowCapOf, providedDocId, engineCoreOf } from './chunk-
|
|
25
|
-
import './chunk-
|
|
22
|
+
import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-TGHNXN7W.mjs';
|
|
23
|
+
import { runtimeHost, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, validateBM25Shape, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-6M6SDH3S.mjs';
|
|
24
|
+
import { bindRerankWindowSource, rerankWindowCapOf, providedDocId, engineCoreOf } from './chunk-JT3YZGCE.mjs';
|
|
25
|
+
import './chunk-NNO7CO3A.mjs';
|
|
26
26
|
import './chunk-AV4IJKD2.mjs';
|
|
27
|
-
import { synonymModule } from './chunk-
|
|
28
|
-
import { oversampledShardSize, bm25SetsValue, normalizeSort, sortModesOf, readSortValues, resolveProjection, fnv1a, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, fnv1aUint32s, mergePartitionStats } from './chunk-
|
|
29
|
-
import { generateId, getLanguage } from './chunk-
|
|
27
|
+
import { synonymModule } from './chunk-RWESFSJI.mjs';
|
|
28
|
+
import { oversampledShardSize, bm25SetsValue, normalizeSort, sortModesOf, readSortValues, resolveProjection, fnv1a, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, holdsQuotedText, requireWithinResultWindow, sortSignatureEntry, fnv1aUint32s, mergePartitionStats } from './chunk-2MKX2SCO.mjs';
|
|
29
|
+
import { generateId, getLanguage } from './chunk-ZR4VM4A6.mjs';
|
|
30
30
|
import './chunk-ZATRDAYU.mjs';
|
|
31
31
|
import './chunk-EBIHRL7B.mjs';
|
|
32
32
|
import './chunk-HJSN7UYG.mjs';
|
|
33
|
-
import { MAX_DOC_ID_LENGTH, BATCH_CHUNK_SIZE, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-
|
|
33
|
+
import { MAX_DOC_ID_LENGTH, BATCH_CHUNK_SIZE, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-RNSC4NFI.mjs';
|
|
34
34
|
import './chunk-TGP5M5R7.mjs';
|
|
35
35
|
import './chunk-U2BKYEC7.mjs';
|
|
36
36
|
import './chunk-KOKM4PQN.mjs';
|
|
37
37
|
import { MIN_OVERSAMPLE } from './chunk-QSK35UC2.mjs';
|
|
38
|
-
import './chunk-
|
|
39
|
-
import { isPatternTolerance } from './chunk-
|
|
38
|
+
import './chunk-2C3WXBQS.mjs';
|
|
39
|
+
import { isPatternTolerance } from './chunk-2SEL6SBS.mjs';
|
|
40
40
|
import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, MAX_FILTER_ARRAY_SIZE } from './chunk-WQBCBKY3.mjs';
|
|
41
|
-
import
|
|
42
|
-
import {
|
|
41
|
+
import './chunk-JUKYYXSP.mjs';
|
|
42
|
+
import { getNestedValue } from './chunk-EUCX5K74.mjs';
|
|
43
|
+
import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-PU6SKH7O.mjs';
|
|
43
44
|
import { MAX_DOCUMENT_ENCODING_DEPTH } from './chunk-U476IXKQ.mjs';
|
|
44
|
-
import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-
|
|
45
|
+
import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-FQBFZAWG.mjs';
|
|
45
46
|
import './chunk-VJS4JFBQ.mjs';
|
|
46
47
|
import './chunk-GES7U2PM.mjs';
|
|
47
|
-
import './chunk-
|
|
48
|
-
import { resolveIndexAnalysis } from './chunk-
|
|
48
|
+
import './chunk-7XY6VD7B.mjs';
|
|
49
|
+
import { resolveIndexAnalysis } from './chunk-6SSVIW7Y.mjs';
|
|
49
50
|
import './chunk-X5CV2E2B.mjs';
|
|
50
51
|
import './chunk-7X5JST5L.mjs';
|
|
51
|
-
import './chunk-
|
|
52
|
+
import './chunk-D5TFRB5G.mjs';
|
|
53
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
52
54
|
import { isSortMode, SORT_MODES, toComparableSortValue, compareComparableKeys, compareSortValues } from './chunk-R6A773WK.mjs';
|
|
53
55
|
import { compareCodePoints, exceedsCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
54
56
|
import { collectAndReturnPages } from './chunk-RIIUZJQ3.mjs';
|
|
55
57
|
import './chunk-UJWGQIXU.mjs';
|
|
56
|
-
import './chunk-
|
|
58
|
+
import './chunk-HCGJKDZV.mjs';
|
|
57
59
|
import { HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-22YPZVMG.mjs';
|
|
58
60
|
import './chunk-RFBLQLLZ.mjs';
|
|
59
61
|
import { MAX_STORED_VECTOR_DIMENSION, MAX_NESTING_DEPTH } from './chunk-L5ORED7V.mjs';
|
|
60
|
-
import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-
|
|
62
|
+
import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-CZ7ISLXA.mjs';
|
|
61
63
|
import { encode, decode } from '@msgpack/msgpack';
|
|
62
64
|
import { randomUUID } from 'crypto';
|
|
63
65
|
import { openSync, writeSync, closeSync, rmSync, readSync } from 'fs';
|
|
@@ -728,6 +730,7 @@ async function stopRegistrationHeartbeat(state) {
|
|
|
728
730
|
|
|
729
731
|
// src/distribution/cluster/version.ts
|
|
730
732
|
var SPEC_VERSION = "1.1";
|
|
733
|
+
var PHRASE_SEARCH_SPEC_VERSION = "1.1";
|
|
731
734
|
var BM25_TUNING_SPEC_VERSION = "1.1";
|
|
732
735
|
var VERSION_PATTERN = /^(\d+)\.(\d+)$/;
|
|
733
736
|
function versionPartsOf(version) {
|
|
@@ -7951,6 +7954,7 @@ async function receiveArchive(indexName, partitionId, source, schema) {
|
|
|
7951
7954
|
const store = memoryCheckpointStore();
|
|
7952
7955
|
let language = "";
|
|
7953
7956
|
let analysisRevision = null;
|
|
7957
|
+
let arrayPositionGap = null;
|
|
7954
7958
|
let received = null;
|
|
7955
7959
|
await readSnapshotArchive(createByteReader(source), {
|
|
7956
7960
|
config: async (bytes) => {
|
|
@@ -7963,6 +7967,7 @@ async function receiveArchive(indexName, partitionId, source, schema) {
|
|
|
7963
7967
|
if (typeof raw.language !== "string") restoreFailed("partition archive names no language", { indexName });
|
|
7964
7968
|
language = raw.language;
|
|
7965
7969
|
analysisRevision = typeof raw.analysisRevision === "string" ? raw.analysisRevision : null;
|
|
7970
|
+
arrayPositionGap = storedArrayPositionGap(raw.arrayPositionGap);
|
|
7966
7971
|
},
|
|
7967
7972
|
manifest: async (manifest, sourceName) => {
|
|
7968
7973
|
const listed = manifest.partitions.map((partition) => partition.partitionId);
|
|
@@ -7989,7 +7994,7 @@ async function receiveArchive(indexName, partitionId, source, schema) {
|
|
|
7989
7994
|
file: async (name, _ref, bytes) => store.write(`${indexName}/${name}`, [bytes])
|
|
7990
7995
|
});
|
|
7991
7996
|
if (received === null) restoreFailed("partition archive holds no manifest", { indexName, partitionId });
|
|
7992
|
-
return { language, analysisRevision, manifest: received, store };
|
|
7997
|
+
return { language, analysisRevision, arrayPositionGap, manifest: received, store };
|
|
7993
7998
|
}
|
|
7994
7999
|
async function replacePartition(manager, partitionId, archive, writeRecords) {
|
|
7995
8000
|
const vectorIndexes = manager.getVectorIndexes();
|
|
@@ -8033,11 +8038,15 @@ async function replacePartition(manager, partitionId, archive, writeRecords) {
|
|
|
8033
8038
|
vectorIndex.scheduleBuild();
|
|
8034
8039
|
}
|
|
8035
8040
|
}
|
|
8036
|
-
function recordReceivedAnalysis(core, indexName, receivedRevision) {
|
|
8041
|
+
function recordReceivedAnalysis(core, indexName, receivedRevision, receivedGap) {
|
|
8037
8042
|
const entry = core.requireIndex(indexName);
|
|
8038
8043
|
const current = entry.language.revision;
|
|
8039
|
-
|
|
8040
|
-
|
|
8044
|
+
const staleGap = arrayPositionsAreStale(entry.config, receivedGap);
|
|
8045
|
+
if (receivedRevision === current && !staleGap) return;
|
|
8046
|
+
if (staleGap) entry.arrayPositionGap = null;
|
|
8047
|
+
if (receivedRevision !== current) {
|
|
8048
|
+
entry.analysisRevision = entry.analysisRevision === current || entry.analysisRevision === receivedRevision ? receivedRevision : null;
|
|
8049
|
+
}
|
|
8041
8050
|
core.analysisRebuild.markStale({
|
|
8042
8051
|
indexName,
|
|
8043
8052
|
language: entry.language.name,
|
|
@@ -8074,7 +8083,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
|
|
|
8074
8083
|
const wasScaledOut = core.orchestrator.desyncIndex(indexName);
|
|
8075
8084
|
try {
|
|
8076
8085
|
await replacePartition(core.requireManager(indexName), partitionId, archive, writeRecords);
|
|
8077
|
-
recordReceivedAnalysis(core, indexName, archive.analysisRevision);
|
|
8086
|
+
recordReceivedAnalysis(core, indexName, archive.analysisRevision, archive.arrayPositionGap);
|
|
8078
8087
|
} finally {
|
|
8079
8088
|
await core.orchestrator.resyncIndex(indexName, wasScaledOut);
|
|
8080
8089
|
}
|
|
@@ -10183,6 +10192,8 @@ var QUERY_REJECTION_CODES = /* @__PURE__ */ new Set([
|
|
|
10183
10192
|
ErrorCodes.SEARCH_INVALID_CURSOR,
|
|
10184
10193
|
ErrorCodes.SEARCH_RESULT_WINDOW_EXCEEDED,
|
|
10185
10194
|
ErrorCodes.SEARCH_WORK_CAP_EXCEEDED,
|
|
10195
|
+
ErrorCodes.SEARCH_INVALID_PHRASE,
|
|
10196
|
+
ErrorCodes.SEARCH_PHRASE_NOT_READY,
|
|
10186
10197
|
ErrorCodes.BM25_NOT_READY,
|
|
10187
10198
|
ErrorCodes.VECTOR_DIMENSION_MISMATCH,
|
|
10188
10199
|
ErrorCodes.CONFIG_INVALID
|
|
@@ -13632,14 +13643,8 @@ async function rebuildClusterAnalysis(deps, indexName) {
|
|
|
13632
13643
|
indexName
|
|
13633
13644
|
});
|
|
13634
13645
|
}
|
|
13635
|
-
const holders = /* @__PURE__ */ new Set();
|
|
13636
|
-
for (const assignment of table.assignments.values()) {
|
|
13637
|
-
if (assignment.primary !== null) holders.add(assignment.primary);
|
|
13638
|
-
for (const replica of assignment.replicas) holders.add(replica);
|
|
13639
|
-
for (const replica of assignment.removingReplicas ?? []) holders.add(replica);
|
|
13640
|
-
}
|
|
13641
13646
|
const payload = { indexName, indexUuid: metadata.indexUuid };
|
|
13642
|
-
const holderIds = [...
|
|
13647
|
+
const holderIds = [...copyHoldersOf2(table)].sort();
|
|
13643
13648
|
const outcomes = await Promise.allSettled(holderIds.map((holder) => rebuildOn(deps, holder, payload)));
|
|
13644
13649
|
const failedNodeIds = holderIds.filter((_, position) => outcomes[position]?.status === "rejected");
|
|
13645
13650
|
if (failedNodeIds.length > 0) {
|
|
@@ -15800,6 +15805,38 @@ async function sendToFirstReachableTarget2(transport, targets, message) {
|
|
|
15800
15805
|
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
15801
15806
|
}
|
|
15802
15807
|
|
|
15808
|
+
// src/distribution/query/phrase-routing.ts
|
|
15809
|
+
function queryReadsPhrases(term) {
|
|
15810
|
+
return typeof term === "string" && holdsQuotedText(term);
|
|
15811
|
+
}
|
|
15812
|
+
function withRegisteredCopies2(assignment, registered) {
|
|
15813
|
+
return {
|
|
15814
|
+
...assignment,
|
|
15815
|
+
primary: assignment.primary !== null && registered.has(assignment.primary) ? assignment.primary : null,
|
|
15816
|
+
replicas: assignment.replicas.filter((replica) => registered.has(replica))
|
|
15817
|
+
};
|
|
15818
|
+
}
|
|
15819
|
+
async function allocationForPhraseQuery(indexName, table, listNodes) {
|
|
15820
|
+
const nodes = await listNodes();
|
|
15821
|
+
const versions = new Map(nodes.map((node) => [node.nodeId, node.version]));
|
|
15822
|
+
const olderNodes = [...copyHoldersOf2(table)].filter(
|
|
15823
|
+
(holder) => versions.has(holder) && !reachesVersion(versions.get(holder), PHRASE_SEARCH_SPEC_VERSION)
|
|
15824
|
+
);
|
|
15825
|
+
if (olderNodes.length > 0) {
|
|
15826
|
+
throw new NarsilError(
|
|
15827
|
+
ErrorCodes.SEARCH_PHRASE_NOT_READY,
|
|
15828
|
+
`Index '${indexName}' has copies on ${olderNodes.length} node(s) below specification version ${PHRASE_SEARCH_SPEC_VERSION}, which cannot match a phrase. Try the query again once every node registers that version`,
|
|
15829
|
+
{ indexName, nodeIds: olderNodes.sort(), minimumVersion: PHRASE_SEARCH_SPEC_VERSION }
|
|
15830
|
+
);
|
|
15831
|
+
}
|
|
15832
|
+
const registered = new Set(versions.keys());
|
|
15833
|
+
const assignments = /* @__PURE__ */ new Map();
|
|
15834
|
+
for (const [partitionId, assignment] of table.assignments) {
|
|
15835
|
+
assignments.set(partitionId, withRegisteredCopies2(assignment, registered));
|
|
15836
|
+
}
|
|
15837
|
+
return { ...table, assignments };
|
|
15838
|
+
}
|
|
15839
|
+
|
|
15803
15840
|
// src/distribution/query/search-contexts.ts
|
|
15804
15841
|
function searchContextKeepAlive(routing, partitionTimeout, transport) {
|
|
15805
15842
|
let copies = 1;
|
|
@@ -15906,6 +15943,7 @@ async function countLeftOutTokens(indexName, answered, deps, config) {
|
|
|
15906
15943
|
return extra;
|
|
15907
15944
|
}
|
|
15908
15945
|
async function collectDistributedStats(indexName, params, routing, deps, config) {
|
|
15946
|
+
if (routing.nodeToPartitions.size === 0 && queryReadsPhrases(params.term)) return mergePartitionStats([]);
|
|
15909
15947
|
const terms = params.term !== null ? params.term.split(/\s+/).filter((t) => t.length > 0) : [];
|
|
15910
15948
|
const expansion = statsExpansionOf(params);
|
|
15911
15949
|
const outcomes = await sendWithFailover(
|
|
@@ -16539,7 +16577,8 @@ async function distributedQuery(indexName, params, deps, config, selector) {
|
|
|
16539
16577
|
coverage: { totalPartitions: 0, queriedPartitions: 0, timedOutPartitions: 0, failedPartitions: 0 }
|
|
16540
16578
|
};
|
|
16541
16579
|
}
|
|
16542
|
-
const
|
|
16580
|
+
const bm25Table = deps.listNodes !== void 0 && deps.carriesBm25 === true ? await allocationForBm25Query(indexName, allocationTable, deps.listNodes) : allocationTable;
|
|
16581
|
+
const routedTable = deps.listNodes !== void 0 && queryReadsPhrases(params.term) ? await allocationForPhraseQuery(indexName, bm25Table, deps.listNodes) : bm25Table;
|
|
16543
16582
|
const routing = selectReplicasForQuery(routedTable, queryKeyedSelector(binding));
|
|
16544
16583
|
const totalPartitions = allocationTable.assignments.size;
|
|
16545
16584
|
if (routing.unavailablePartitions.length > 0 && !resolvedConfig.allowPartialResults) {
|
|
@@ -17288,7 +17327,8 @@ async function preflightCluster(deps, indexName, params, settingName) {
|
|
|
17288
17327
|
const startTime = performance.now();
|
|
17289
17328
|
const { wireParams, indexBm25, carriesBm25 } = await bm25RoutingFor(deps, settingName, params);
|
|
17290
17329
|
const coordinator = deps.config.coordinator;
|
|
17291
|
-
const
|
|
17330
|
+
const bm25Allocation = carriesBm25 ? await allocationForBm25Query(indexName, allocation, () => coordinator.listNodes()) : allocation;
|
|
17331
|
+
const routedAllocation = queryReadsPhrases(params.term) ? await allocationForPhraseQuery(indexName, bm25Allocation, () => coordinator.listNodes()) : bm25Allocation;
|
|
17292
17332
|
const gathered = await gatherFromEveryPartition(routedAllocation, indexName, async (group) => {
|
|
17293
17333
|
if (group.nodeId === deps.nodeId) {
|
|
17294
17334
|
const local = await deps.engine.preflightPartitions(indexName, params, group.partitionIds, indexBm25).catch(rethrowAsRefusal);
|
|
@@ -17376,7 +17416,7 @@ async function queryCluster(deps, indexName, params, settingName) {
|
|
|
17376
17416
|
(reader) => searchCluster(deps, indexName, settingName, params, allocation, reader, false)
|
|
17377
17417
|
);
|
|
17378
17418
|
}
|
|
17379
|
-
const { rerankClusterQuery } = await import('./rerank-
|
|
17419
|
+
const { rerankClusterQuery } = await import('./rerank-DMMT4FZA.mjs');
|
|
17380
17420
|
return withRankedReader(
|
|
17381
17421
|
deps,
|
|
17382
17422
|
indexName,
|
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-
|
|
3
|
-
import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-
|
|
4
|
-
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-
|
|
1
|
+
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-JJ6EUMXB.mjs';
|
|
2
|
+
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-F6AAXI7T.mjs';
|
|
3
|
+
import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-K77FJXKS.mjs';
|
|
4
|
+
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-Y2U5VVWX.mjs';
|
|
5
5
|
import './chunk-37CD3OKS.mjs';
|
|
6
|
-
import { createDurableDirectory } from './chunk-
|
|
6
|
+
import { createDurableDirectory } from './chunk-NMXRXFGZ.mjs';
|
|
7
7
|
import { spawnNodeWorker } from './chunk-W55X2BYN.mjs';
|
|
8
8
|
import { getFs } from './chunk-HLPRHOSO.mjs';
|
|
9
|
-
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, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
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, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-2JWNJSNE.mjs';
|
|
10
|
+
import './chunk-7OIQ2SIO.mjs';
|
|
11
11
|
import './chunk-P36MUFEJ.mjs';
|
|
12
12
|
import './chunk-YH5OIL7B.mjs';
|
|
13
|
-
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import { resolveWorkerEntry } from './chunk-
|
|
13
|
+
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-TGHNXN7W.mjs';
|
|
14
|
+
import './chunk-6M6SDH3S.mjs';
|
|
15
|
+
import './chunk-JT3YZGCE.mjs';
|
|
16
|
+
import { resolveWorkerEntry } from './chunk-NNO7CO3A.mjs';
|
|
17
17
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
18
|
-
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-
|
|
19
|
-
import { fnv1a } from './chunk-
|
|
20
|
-
import './chunk-
|
|
18
|
+
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-RWESFSJI.mjs';
|
|
19
|
+
import { fnv1a } from './chunk-2MKX2SCO.mjs';
|
|
20
|
+
import './chunk-ZR4VM4A6.mjs';
|
|
21
21
|
import './chunk-ZATRDAYU.mjs';
|
|
22
22
|
import './chunk-EBIHRL7B.mjs';
|
|
23
23
|
import './chunk-HJSN7UYG.mjs';
|
|
24
|
-
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-
|
|
24
|
+
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-RNSC4NFI.mjs';
|
|
25
25
|
import './chunk-TGP5M5R7.mjs';
|
|
26
26
|
import './chunk-U2BKYEC7.mjs';
|
|
27
27
|
import './chunk-KOKM4PQN.mjs';
|
|
28
28
|
import './chunk-QSK35UC2.mjs';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
29
|
+
import './chunk-2C3WXBQS.mjs';
|
|
30
|
+
import './chunk-2SEL6SBS.mjs';
|
|
31
31
|
import './chunk-WQBCBKY3.mjs';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import
|
|
32
|
+
import './chunk-JUKYYXSP.mjs';
|
|
33
|
+
import './chunk-EUCX5K74.mjs';
|
|
34
|
+
import { encodeDocument, requireValidFieldTypes } from './chunk-PU6SKH7O.mjs';
|
|
34
35
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
35
|
-
import './chunk-
|
|
36
|
+
import './chunk-FQBFZAWG.mjs';
|
|
36
37
|
import { MIN_M } from './chunk-VJS4JFBQ.mjs';
|
|
37
38
|
import './chunk-GES7U2PM.mjs';
|
|
38
|
-
import './chunk-
|
|
39
|
-
import './chunk-
|
|
39
|
+
import './chunk-7XY6VD7B.mjs';
|
|
40
|
+
import './chunk-6SSVIW7Y.mjs';
|
|
40
41
|
import './chunk-X5CV2E2B.mjs';
|
|
41
42
|
import './chunk-7X5JST5L.mjs';
|
|
42
|
-
import './chunk-
|
|
43
|
+
import './chunk-D5TFRB5G.mjs';
|
|
44
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
43
45
|
import './chunk-R6A773WK.mjs';
|
|
44
46
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
45
47
|
import './chunk-UJWGQIXU.mjs';
|
|
46
|
-
import './chunk-
|
|
48
|
+
import './chunk-HCGJKDZV.mjs';
|
|
47
49
|
import './chunk-22YPZVMG.mjs';
|
|
48
50
|
import './chunk-RFBLQLLZ.mjs';
|
|
49
51
|
import './chunk-L5ORED7V.mjs';
|
|
50
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
52
|
+
import { NarsilError, ErrorCodes } from './chunk-CZ7ISLXA.mjs';
|
|
51
53
|
import { decode } from '@msgpack/msgpack';
|
|
52
54
|
|
|
53
55
|
// src/persistence/durability/sha256.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-2WBY4Y4M.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from '../chunk-CZ7ISLXA.mjs';
|
|
3
3
|
|
|
4
4
|
// src/embeddings/constants.ts
|
|
5
5
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { B as BM25Params, A as AnyDocument,
|
|
3
|
-
import { B as BatchResult, I as IndexInfo, k as IndexStats,
|
|
2
|
+
import { B as BM25Params, A as AnyDocument, I as InsertOptions, W as WriteOptions, a as IndexConfig, P as PartitionConfig } from './schema-BTXbHCqA.js';
|
|
3
|
+
import { B as BatchResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, L as ListParams, f as ListResult, Q as QueryParams, m as QueryResult, j as PreflightResult, g as SuggestParams, h as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, l as NarsilEventMap } from './config-D1cDv3sE.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SchemaDefinition } from './schema-
|
|
1
|
+
import { S as SchemaDefinition } from './schema-BTXbHCqA.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Tells watchers that the stored metadata of an index changed.
|
|
@@ -516,4 +516,4 @@ interface ClusterCoordinator extends IndexMetadataWatch {
|
|
|
516
516
|
shutdown(): Promise<void>;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
export type { AllocationTable as A, ClusterCoordinator as C, IndexMetadataEvent as I, NodeRole as N, PartitionAssignment as P, RegistrationLease as R, SchemaEvent as S, UnassignedReason as U, NodeRegistration as a, NodeCapacity as b,
|
|
519
|
+
export type { AllocationTable as A, ClusterCoordinator as C, IndexMetadataEvent as I, NodeRole as N, PartitionAssignment as P, RegistrationLease as R, SchemaEvent as S, UnassignedReason as U, NodeRegistration as a, NodeCapacity as b, NodeMemoryReport as c, AllocationConstraints as d, AllocationEvent as e, IndexMetadataWatch as f, IndexPartitionBytes as g, NodeEvent as h, PartitionState as i };
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
2
|
-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-2Y3CO4EQ.mjs';
|
|
2
|
+
import './browser/chunk-26A5JFT2.mjs';
|
|
3
|
+
export { isSimdAvailable } from './browser/chunk-AIIJDWMG.mjs';
|
|
3
4
|
import './browser/chunk-JPTQZWJQ.mjs';
|
|
4
|
-
|
|
5
|
+
import './browser/chunk-VEGHFP2P.mjs';
|
|
6
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-UDGB2MWT.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { b as StopWordOverride, C as CustomTokenizer } from './schema-
|
|
2
|
-
export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig,
|
|
1
|
+
import { b as StopWordOverride, C as CustomTokenizer } from './schema-BTXbHCqA.js';
|
|
2
|
+
export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig, d as FieldOptionChain, F as FieldType, a as IndexConfig, I as InsertOptions, P as PartitionConfig, S as SchemaDefinition, e as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, f as VectorQuantizationMode, g as VectorStorageMode, W as WriteOptions } from './schema-BTXbHCqA.js';
|
|
3
3
|
import { P as PartialWordSearch } from './partial-words-DTIHO8G4.js';
|
|
4
4
|
import { P as PatternSearch } from './pattern-Cledccbl.js';
|
|
5
5
|
import { S as SynonymSearch } from './synonyms-CpOAHPa-.js';
|
|
6
6
|
export { O as OneWaySynonymRule, a as SynonymRule, T as TwoWaySynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
7
|
import { L as LanguageModule } from './language-DB8KG1z5.js';
|
|
8
8
|
export { T as TokenizerConfig } from './language-DB8KG1z5.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export { A as AdapterRegistrationOperations, B as BM25Operations, a as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-JjRAXpT3.js';
|
|
9
|
+
import { e as NarsilConfig } from './config-D1cDv3sE.js';
|
|
10
|
+
export { A as AnalysisConfig, o as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, p as ComparisonFilter, D as DocumentImportResult, q as DocumentProjection, r as DurabilityConfig, E as ErrorCode, b as ErrorCodes, F as FacetConfig, s as FacetResult, t as FieldFilter, u as FilterExpression, v as GeoFilter, w as GeoPolygonFilter, x as GeoRadiusFilter, n as GroupConfig, y as GroupReducer, G as GroupResult, H as HeldCheckpointReport, z as HighlightConfig, J as HighlightMatch, K as Hit, O as HybridConfig, R as IndexContext, I as IndexInfo, T as IndexLifecycleConfig, k as IndexStats, U as InsertContext, L as ListParams, f as ListResult, W as ListedDocument, X as MainCopyQueries, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, Y as NarsilEventHandlers, l as NarsilEventMap, Z as NarsilPlugin, _ as PartitionContext, P as PartitionStatsResult, j as PreflightResult, $ as PresenceFilter, a0 as ProcessMemoryReport, a1 as QueryCoverage, Q as QueryParams, m as QueryResult, a2 as RemoveContext, a3 as RerankConfig, a4 as ScoreComponents, a5 as SearchContext, a6 as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, a7 as SortField, a8 as SortSpec, a9 as StaleAnalysis, aa as StringFilter, g as SuggestParams, h as SuggestResult, ab as TermMatchPolicy, ac as UpdateContext, V as VectorMaintenanceResult, ad as VectorQueryConfig, ae as WorkerConfig, af as WorkerContext, ag as WorkerCopyReport, i as isNarsilError } from './config-D1cDv3sE.js';
|
|
11
|
+
import { N as Narsil } from './engine-m_Ddr1bz.js';
|
|
12
|
+
export { A as AdapterRegistrationOperations, B as BM25Operations, a as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-m_Ddr1bz.js';
|
|
14
13
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
15
14
|
|
|
16
15
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
export { VERSION, createNarsil } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { VERSION, createNarsil } from './chunk-TGHNXN7W.mjs';
|
|
2
|
+
import './chunk-6M6SDH3S.mjs';
|
|
3
|
+
import './chunk-JT3YZGCE.mjs';
|
|
4
|
+
import './chunk-NNO7CO3A.mjs';
|
|
5
5
|
import './chunk-AV4IJKD2.mjs';
|
|
6
|
-
export { registerSynonyms } from './chunk-
|
|
7
|
-
export { registerPartialWordSearch, registerPatternSearch } from './chunk-
|
|
8
|
-
export { getLanguage, registerLanguage } from './chunk-
|
|
6
|
+
export { registerSynonyms } from './chunk-RWESFSJI.mjs';
|
|
7
|
+
export { registerPartialWordSearch, registerPatternSearch } from './chunk-2MKX2SCO.mjs';
|
|
8
|
+
export { getLanguage, registerLanguage } from './chunk-ZR4VM4A6.mjs';
|
|
9
9
|
import './chunk-ZATRDAYU.mjs';
|
|
10
10
|
import './chunk-EBIHRL7B.mjs';
|
|
11
11
|
import './chunk-HJSN7UYG.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-RNSC4NFI.mjs';
|
|
13
13
|
import './chunk-TGP5M5R7.mjs';
|
|
14
14
|
import './chunk-U2BKYEC7.mjs';
|
|
15
15
|
export { isSimdAvailable } from './chunk-KOKM4PQN.mjs';
|
|
16
16
|
import './chunk-QSK35UC2.mjs';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
17
|
+
import './chunk-2C3WXBQS.mjs';
|
|
18
|
+
import './chunk-2SEL6SBS.mjs';
|
|
19
19
|
import './chunk-WQBCBKY3.mjs';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
20
|
+
import './chunk-JUKYYXSP.mjs';
|
|
21
|
+
import './chunk-EUCX5K74.mjs';
|
|
22
|
+
import './chunk-PU6SKH7O.mjs';
|
|
22
23
|
import './chunk-U476IXKQ.mjs';
|
|
23
|
-
import './chunk-
|
|
24
|
+
import './chunk-FQBFZAWG.mjs';
|
|
24
25
|
import './chunk-VJS4JFBQ.mjs';
|
|
25
26
|
import './chunk-GES7U2PM.mjs';
|
|
26
|
-
import './chunk-
|
|
27
|
-
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerStopWords, registerTokenizer } from './chunk-
|
|
27
|
+
import './chunk-7XY6VD7B.mjs';
|
|
28
|
+
export { getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerStopWords, registerTokenizer } from './chunk-6SSVIW7Y.mjs';
|
|
28
29
|
import './chunk-X5CV2E2B.mjs';
|
|
29
30
|
import './chunk-7X5JST5L.mjs';
|
|
30
|
-
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-
|
|
31
|
+
export { clearNormalizationCache, configureNormalizationCache, getNormalizationCacheSize, resetNormalizationCache } from './chunk-D5TFRB5G.mjs';
|
|
32
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
31
33
|
import './chunk-R6A773WK.mjs';
|
|
32
34
|
import './chunk-YTJCGKM4.mjs';
|
|
33
35
|
import './chunk-UJWGQIXU.mjs';
|
|
34
|
-
import './chunk-
|
|
36
|
+
import './chunk-HCGJKDZV.mjs';
|
|
35
37
|
import './chunk-22YPZVMG.mjs';
|
|
36
38
|
import './chunk-RFBLQLLZ.mjs';
|
|
37
39
|
import './chunk-L5ORED7V.mjs';
|
|
38
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-
|
|
40
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-CZ7ISLXA.mjs';
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-OGLV4I3L.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-5W7AEVTH.mjs';
|
|
3
|
+
import './chunk-RCMNL7RI.mjs';
|
|
4
4
|
import './chunk-KZ3NX2P7.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-4GDLFDPZ.mjs';
|
|
6
6
|
import './chunk-IWVEG5CX.mjs';
|
|
7
7
|
import './chunk-DJHHF2L5.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-6M6SDH3S.mjs';
|
|
9
|
+
import './chunk-2MKX2SCO.mjs';
|
|
10
10
|
import './chunk-ZATRDAYU.mjs';
|
|
11
11
|
import './chunk-EBIHRL7B.mjs';
|
|
12
12
|
import './chunk-HJSN7UYG.mjs';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-RNSC4NFI.mjs';
|
|
14
14
|
import './chunk-QSK35UC2.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-2C3WXBQS.mjs';
|
|
16
|
+
import './chunk-2SEL6SBS.mjs';
|
|
17
17
|
import './chunk-WQBCBKY3.mjs';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
18
|
+
import './chunk-JUKYYXSP.mjs';
|
|
19
|
+
import './chunk-EUCX5K74.mjs';
|
|
20
|
+
import './chunk-PU6SKH7O.mjs';
|
|
20
21
|
import './chunk-U476IXKQ.mjs';
|
|
21
|
-
import './chunk-
|
|
22
|
+
import './chunk-FQBFZAWG.mjs';
|
|
22
23
|
import './chunk-VJS4JFBQ.mjs';
|
|
23
24
|
import './chunk-GES7U2PM.mjs';
|
|
24
|
-
import './chunk-
|
|
25
|
+
import './chunk-7XY6VD7B.mjs';
|
|
25
26
|
import './chunk-X5CV2E2B.mjs';
|
|
26
|
-
import './chunk-
|
|
27
|
+
import './chunk-D5TFRB5G.mjs';
|
|
28
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
27
29
|
import './chunk-R6A773WK.mjs';
|
|
28
30
|
import './chunk-YTJCGKM4.mjs';
|
|
29
31
|
import './chunk-RIIUZJQ3.mjs';
|
|
30
32
|
import './chunk-22YPZVMG.mjs';
|
|
31
33
|
import './chunk-L5ORED7V.mjs';
|
|
32
|
-
import './chunk-
|
|
34
|
+
import './chunk-CZ7ISLXA.mjs';
|
|
33
35
|
|
|
34
36
|
// src/server/request-threads/long-query-thread.ts
|
|
35
37
|
var serving = null;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { noteWaitingForMemory, admitsBackgroundBytes } from './chunk-PELHVTO7.mjs';
|
|
2
|
+
import { VECTOR_WORKER_COPIES_ALLOWED, DEFAULT_PROMOTION_THRESHOLD, DEFAULT_FILTER_THRESHOLD, noBuildHistory, recordCheckpoint, planCheckpoint, deserialize, assignStorePartitions, liveSize, ordinalFilterForSubsets, handOverBuildTurns, threadsHoldCurrentLayout, filterForOptions, OSQ4_MIN_DIMENSION, emptyFieldBeforeRestore, ESTIMATED_MS_PER_TOMBSTONE, graphNeedsRebuild, ESTIMATED_MS_PER_VECTOR_REBUILD, releaseReplacedVectors, yieldBuildTurn, WORKER_COPY_MIN_VECTORS, allLiveDocIds, SHUFFLED_REBUILD_MEMORY_RETRY_MS, recalibrateFromStore, signatureOf, adoptGraph, BUILD_RETRY_MAX_DELAY_MS, BUILD_RETRY_FIRST_DELAY_MS, fieldHandlesOf, liveOrdinals, RECALIBRATION_CHUNK_VECTORS, BUILD_CHUNK_SIZE, DRIFT_CHECK_GROWTH_FACTOR, DISK_ADOPTION_YIELD_INTERVAL, adoptLoadedCalibration, RECALIBRATION_DRIFT_RATIO } from './chunk-SOHMMNCH.mjs';
|
|
2
3
|
import { chargeHeapBytes } from './chunk-IWVEG5CX.mjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { releaseLocksHeldBy } from './chunk-XRXBCOA4.mjs';
|
|
4
|
+
import { isDead, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors } from './chunk-Y2U5VVWX.mjs';
|
|
5
|
+
import { createVectorStore } from './chunk-Y4BVTQ53.mjs';
|
|
6
|
+
export { openSharedVectorField } from './chunk-Y4BVTQ53.mjs';
|
|
7
|
+
import { osqBitsOf, createOsqQuantizer, STORE_ORDINAL_LAYOUT_GENERATION, ordinalFilterValues, STORE_UNPLACED_COUNT, STORE_LIVE_COUNT, STORE_REMOVED_COUNT, createOrdinalFilter, addToOrdinalFilter, nativeScoresOf, toScore, ordinalFilterHas, magnitude, nativeStoreScratchBytes, toDistance, euclideanDistance, dotProduct, cosineSimilarityWithMagnitudes, createHNSWIndex, topLayerInParts, sharedMemoryAvailable, requireWholeNeighbourLists, shuffleInPlace, createCentroidSums, centroidOfCentroidSums, meanOfCentroidSums, countOfCentroidSums, squaredLengthsOfCentroidSums, releaseLocksHeldBy } from './chunk-X5CNUKD5.mjs';
|
|
8
|
+
export { releaseLocksHeldBy } from './chunk-X5CNUKD5.mjs';
|
|
9
9
|
import { noteFallback } from './chunk-DJHHF2L5.mjs';
|
|
10
10
|
import './chunk-37CD3OKS.mjs';
|
|
11
11
|
import { spawnNodeWorker } from './chunk-W55X2BYN.mjs';
|
|
12
|
-
import { resolveWorkerCount, resolveWorkerEntry, workerResourceLimits } from './chunk-
|
|
12
|
+
import { resolveWorkerCount, resolveWorkerEntry, workerResourceLimits } from './chunk-NNO7CO3A.mjs';
|
|
13
13
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
14
14
|
import './chunk-EBIHRL7B.mjs';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-RNSC4NFI.mjs';
|
|
16
16
|
import './chunk-KOKM4PQN.mjs';
|
|
17
17
|
import { MAX_RENUMBERED_SEARCH_ATTEMPTS, DISK_STORAGE_BLOCK_BYTES, UNPLACED_FLAG_CHUNK_ORDINALS, GRAPH_BUILD_CHUNKS_IN_FLIGHT_PER_WORKER, GRAPH_BUILD_DISPATCH_CHUNK, VECTOR_SEARCH_TIMEOUT_MS, VECTOR_SEARCH_LOAD_TIMEOUT_MS, VECTOR_SCRATCH_SLOTS, VECTOR_INSERT_TIMEOUT_MS } from './chunk-QSK35UC2.mjs';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-2C3WXBQS.mjs';
|
|
19
19
|
import './chunk-U476IXKQ.mjs';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-FQBFZAWG.mjs';
|
|
21
21
|
import './chunk-VJS4JFBQ.mjs';
|
|
22
22
|
import './chunk-R6A773WK.mjs';
|
|
23
23
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
24
24
|
import './chunk-RIIUZJQ3.mjs';
|
|
25
25
|
import './chunk-22YPZVMG.mjs';
|
|
26
26
|
import { noteThreadSlotLive, noteThreadSlotGone } from './chunk-RFBLQLLZ.mjs';
|
|
27
|
-
import { NarsilError, ErrorCodes, isNarsilError } from './chunk-
|
|
27
|
+
import { NarsilError, ErrorCodes, isNarsilError } from './chunk-CZ7ISLXA.mjs';
|
|
28
28
|
|
|
29
29
|
// src/core/heap.ts
|
|
30
30
|
function createMaxHeap(compare) {
|